This repository has been archived by the owner. It is now read-only.
Aurelia controls for sensenet ECM
Switch branches/tags
develop greenkeeper/aurelia-bootstrapper-2.3.1 greenkeeper/aurelia-bootstrapper-pin-2.3.0 greenkeeper/aurelia-pal-nodejs-1.1.1 greenkeeper/aurelia-pal-nodejs-1.2.0 greenkeeper/aurelia-router-1.6.3 greenkeeper/aurelia-router-pin-1.6.2 greenkeeper/aurelia-templating-1.9.0 greenkeeper/aurelia-templating-1.10.0 greenkeeper/aurelia-templating-1.10.1 greenkeeper/aurelia-templating-binding-1.5.0 greenkeeper/aurelia-templating-binding-1.5.1 greenkeeper/aurelia-templating-binding-1.5.2 greenkeeper/aurelia-templating-binding-pin-1.4.3 greenkeeper/aurelia-templating-pin-1.8.3 greenkeeper/aurelia-testing-1.0.0 greenkeeper/aurelia-testing-pin-1.0.0-beta.4.0.0 greenkeeper/aurelia-validation-1.2.3 greenkeeper/aurelia-validation-1.3.0 greenkeeper/aurelia-validation-1.3.1 greenkeeper/aurelia-validation-1.3.2 greenkeeper/aurelia-validation-pin-1.2.2 greenkeeper/jsdom-12.0.0 greenkeeper/jsdom-12.1.0 greenkeeper/jsdom-12.2.0 greenkeeper/jsdom-13.0.0 greenkeeper/lodash-4.17.11 greenkeeper/lodash-pin-4.17.10 greenkeeper/material-components-web-0.36.1 greenkeeper/material-components-web-0.37.0 greenkeeper/material-components-web-0.37.1 greenkeeper/material-components-web-0.38.0 greenkeeper/material-components-web-0.38.1 greenkeeper/material-components-web-0.38.2 greenkeeper/material-components-web-0.39.0 greenkeeper/material-components-web-0.39.1 greenkeeper/material-components-web-0.39.2 greenkeeper/material-components-web-0.39.3 greenkeeper/material-components-web-0.40.0 greenkeeper/material-components-web-0.40.1 greenkeeper/material-components-web-0.41.0 greenkeeper/material-components-web-0.41.1 greenkeeper/material-components-web-0.42.0 greenkeeper/moment-timezone-0.5.22 greenkeeper/moment-timezone-0.5.23 greenkeeper/moment-timezone-pin-0.5.21 greenkeeper/node-sass-4.9.4 greenkeeper/node-sass-4.10.0 greenkeeper/node-sass-4.11.0 greenkeeper/node-sass-pin-4.9.3 greenkeeper/@sensenet/client-core-1.3.1 greenkeeper/@sensenet/client-core-pin-1.3.0 greenkeeper/@sensenet/control-mapper-1.0.2 greenkeeper/@sensenet/control-mapper-pin-1.0.1 greenkeeper/@sensenet/repository-events-1.2.1 greenkeeper/@sensenet/repository-events-pin-1.2.0 greenkeeper/@types/lodash-4.14.117 greenkeeper/@types/lodash-4.14.118 greenkeeper/@types/lodash-4.14.119 greenkeeper/@types/lodash-pin-4.14.116 greenkeeper/@types/moment-timezone-0.5.9 greenkeeper/@types/moment-timezone-pin-0.5.8 greenkeeper/@types/node-10.0.3 greenkeeper/@types/node-10.10.0 greenkeeper/@types/node-10.10.1 greenkeeper/@types/node-10.10.2 greenkeeper/@types/node-10.10.3 greenkeeper/@types/node-10.11.0 greenkeeper/@types/node-10.11.1 greenkeeper/@types/node-10.11.2 greenkeeper/@types/node-10.11.3 greenkeeper/@types/node-10.11.4 greenkeeper/@types/node-10.11.5 greenkeeper/@types/node-10.11.6 greenkeeper/@types/node-10.11.7 greenkeeper/@types/node-10.12.0 greenkeeper/@types/node-10.12.1 greenkeeper/@types/node-10.12.2 greenkeeper/@types/node-10.12.3 greenkeeper/@types/node-10.12.4 greenkeeper/@types/node-10.12.5 greenkeeper/@types/node-10.12.6 greenkeeper/@types/node-10.12.7 greenkeeper/@types/node-10.12.8 greenkeeper/@types/node-10.12.9 greenkeeper/@types/node-10.12.10 greenkeeper/@types/node-10.12.11 greenkeeper/@types/node-10.12.12 greenkeeper/@types/node-pin-10.9.4 greenkeeper/@types/quill-1.3.10 greenkeeper/@types/quill-2.0.0 greenkeeper/@types/quill-2.0.1 greenkeeper/@types/quill-pin-1.3.9 master
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
src
test
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
package-lock.json
package.json
tsconfig.json
tsconfig.test.json
tslint.json

README.md

sn-controls-aurelia


This package is not under active development. You can find our latest packages in the sensenset/sn-client monorepo.


Gitter chat Build Status codecov Codacy Badge NPM version NPM downloads License semantic-release Commitizen friendly Greenkeeper badge

This package contains a collection of UI components and controls for sensenet, written in Aurelia Framewok

Sense/Net Services

Usage and installation

You can install the latest version from NPM

npm install --save @sensenet/controls-aurelia

You can import into your Aurelia application's entry point

import { Repository } from '@sensenet/client-core';
// ... your other imports

export async function configure(aurelia: Aurelia) {
    aurelia.use
    .standardConfiguration()
    .developmentLogging()
    // ... your other features and plugins
    .plugin(PLATFORM.moduleName('aurelia-validation'))
    .plugin(PLATFORM.moduleName('sn-controls-aurelia'));

    aurelia.container.registerSingleton(Repository, () => {
        const repo = new Repository(
        {
            repositoryUrl: 'https://my-sn7-instance',
        });
        return repo;
    });

    await aurelia.start();
    await aurelia.setRoot(PLATFORM.moduleName('app'));
}

If you are using Webpack, add these dependencies into your webpack.config's plugins section:

new ModuleDependenciesPlugin({
    "sn-controls-aurelia": [
    './attributes/ContentDragCustomAttribute',
    './attributes/ContentDropCustomAttribute',
    './attributes/SettingsValidationCustomAttribute'
    ]
}),

Please also add these into your HTML template's <head> section:

<head>
  
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
  
</head>