t-systems-aurelia-components v1.1.8
Aurelia components
Common useful components for the Aurelia Framework (https://aurelia.io)
Documentation
You can find the documentation within the source.
Install
npm install t-systems-aurelia-components --saveUse in your Aurelia project
Since this library doesn't provide any precompiled dist/ files, you need to reference the source code in your project.
Aurelia features
Open main.ts
aurelia.use
.globalResources([
PLATFORM.moduleName('t-systems-aurelia-components/src/value-converters/date-format-value-converter'),
])Direct imports
import {CacheService} from "t-systems-aurelia-components/src/service/cache-service";Locale related features
Some extensions like date-format-value-converter or currency-value-converter support localization. To change their internal locale, use the aurelia-i18n library.
import {I18N} from 'aurelia-i18n';
import {autoinject} from 'aurelia-framework';
@autoinject()
export class App {
constructor(
private readonly _i18n:I18N
) {
this._i18n.setLocale("en");
}
}Dependencies
Some of these libraries have dependencies which are not provided by this library, so please install them by yourself in your project.
npm install moment --saveIf you want to use the sanitize-html-html-sanitizer value-converter:
npm install sanitize-html --savePublish this library to NPM
- Enable 2FA in your account
- Login as user (not as organisation)
npm login - Change version in
package.json - Set new version tag
Run
npm publish
Developing with this library
You can develop and bundling with this library directly by adding the library repository as dependency:
git clone https://github.com/telekom-mms/aurelia-components.git t-system-aurelia-components
cd your-project
npm install ../t-systems-aurelia-componentsIn this case you may need to install the library's dependencies first:
cd t-systems-aurelia-components
npm install bootstrap@4.4.1Unit tests
Run jest tests with
npm testIf tests are finished an HTML report is opened automatically.
References
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago