@ni/nimble-angular 1.0.0-beta.9 → 1.0.0-beta.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/bundles/ni-nimble-angular.umd.js +953 -0
- package/bundles/ni-nimble-angular.umd.js.map +1 -0
- package/directives/button/index.d.ts +2 -0
- package/directives/button/nimble-button.directive.d.ts +11 -0
- package/directives/button/nimble-button.module.d.ts +9 -0
- package/directives/checkbox/index.d.ts +3 -0
- package/directives/checkbox/nimble-checkbox-control-value-accessor.directive.d.ts +12 -0
- package/directives/checkbox/nimble-checkbox.directive.d.ts +8 -0
- package/directives/checkbox/nimble-checkbox.module.d.ts +10 -0
- package/directives/control-value-accessor/index.d.ts +3 -0
- package/directives/control-value-accessor/nimble-control-value-accessor.module.d.ts +9 -0
- package/directives/control-value-accessor/nimble-default-control-value-accessor.directive.d.ts +12 -0
- package/directives/control-value-accessor/nimble-number-control-value-accessor.directive.d.ts +12 -0
- package/directives/listbox-option/index.d.ts +2 -0
- package/directives/listbox-option/nimble-listbox-option.directive.d.ts +14 -0
- package/directives/listbox-option/nimble-listbox-option.module.d.ts +9 -0
- package/directives/number-field/index.d.ts +2 -0
- package/directives/number-field/nimble-number-field.directive.d.ts +13 -0
- package/directives/number-field/nimble-number-field.module.d.ts +10 -0
- package/directives/select/index.d.ts +3 -0
- package/directives/select/nimble-select-control-value-accessor.directive.d.ts +14 -0
- package/directives/select/nimble-select.directive.d.ts +8 -0
- package/directives/select/nimble-select.module.d.ts +10 -0
- package/directives/text-field/index.d.ts +2 -0
- package/directives/text-field/nimble-text-field.directive.d.ts +9 -0
- package/directives/text-field/nimble-text-field.module.d.ts +10 -0
- package/directives/theme-provider/index.d.ts +2 -0
- package/directives/theme-provider/nimble-theme-provider.directive.d.ts +9 -0
- package/directives/theme-provider/nimble-theme-provider.module.d.ts +9 -0
- package/directives/tree-item/index.d.ts +2 -0
- package/directives/tree-item/nimble-tree-item.directive.d.ts +19 -0
- package/directives/tree-item/nimble-tree-item.module.d.ts +9 -0
- package/directives/tree-view/index.d.ts +2 -0
- package/directives/tree-view/nimble-tree-view.directive.d.ts +8 -0
- package/directives/tree-view/nimble-tree-view.module.d.ts +9 -0
- package/esm2015/directives/button/index.js +3 -0
- package/esm2015/directives/button/nimble-button.directive.js +26 -0
- package/esm2015/directives/button/nimble-button.module.js +19 -0
- package/esm2015/directives/checkbox/index.js +4 -0
- package/esm2015/directives/checkbox/nimble-checkbox-control-value-accessor.directive.js +32 -0
- package/esm2015/directives/checkbox/nimble-checkbox.directive.js +16 -0
- package/esm2015/directives/checkbox/nimble-checkbox.module.js +20 -0
- package/esm2015/directives/control-value-accessor/index.js +4 -0
- package/esm2015/directives/control-value-accessor/nimble-control-value-accessor.module.js +19 -0
- package/esm2015/directives/control-value-accessor/nimble-default-control-value-accessor.directive.js +37 -0
- package/esm2015/directives/control-value-accessor/nimble-number-control-value-accessor.directive.js +32 -0
- package/esm2015/directives/listbox-option/index.js +3 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.directive.js +30 -0
- package/esm2015/directives/listbox-option/nimble-listbox-option.module.js +19 -0
- package/esm2015/directives/number-field/index.js +3 -0
- package/esm2015/directives/number-field/nimble-number-field.directive.js +41 -0
- package/esm2015/directives/number-field/nimble-number-field.module.js +21 -0
- package/esm2015/directives/select/index.js +4 -0
- package/esm2015/directives/select/nimble-select-control-value-accessor.directive.js +34 -0
- package/esm2015/directives/select/nimble-select.directive.js +16 -0
- package/esm2015/directives/select/nimble-select.module.js +20 -0
- package/esm2015/directives/text-field/index.js +3 -0
- package/esm2015/directives/text-field/nimble-text-field.directive.js +21 -0
- package/esm2015/directives/text-field/nimble-text-field.module.js +21 -0
- package/esm2015/directives/theme-provider/index.js +3 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.directive.js +21 -0
- package/esm2015/directives/theme-provider/nimble-theme-provider.module.js +19 -0
- package/esm2015/directives/tree-item/index.js +3 -0
- package/esm2015/directives/tree-item/nimble-tree-item.directive.js +63 -0
- package/esm2015/directives/tree-item/nimble-tree-item.module.js +19 -0
- package/esm2015/directives/tree-view/index.js +3 -0
- package/esm2015/directives/tree-view/nimble-tree-view.directive.js +16 -0
- package/esm2015/directives/tree-view/nimble-tree-view.module.js +19 -0
- package/esm2015/ni-nimble-angular.js +5 -0
- package/esm2015/public-api.js +14 -0
- package/fesm2015/ni-nimble-angular.js +519 -0
- package/fesm2015/ni-nimble-angular.js.map +1 -0
- package/ni-nimble-angular.d.ts +5 -0
- package/package.json +22 -13
- package/public-api.d.ts +10 -0
- package/.eslintrc.js +0 -38
- package/karma.conf.js +0 -46
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Directive to provide Angular integration for the tree view.
|
|
5
|
+
*/
|
|
6
|
+
export class NimbleTreeViewDirective {
|
|
7
|
+
}
|
|
8
|
+
NimbleTreeViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
9
|
+
NimbleTreeViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeViewDirective, selector: "nimble-tree-view", ngImport: i0 });
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewDirective, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{
|
|
13
|
+
selector: 'nimble-tree-view'
|
|
14
|
+
}]
|
|
15
|
+
}] });
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmltYmxlLXRyZWUtdmlldy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaS9uaW1ibGUtYW5ndWxhci9zcmMvZGlyZWN0aXZlcy90cmVlLXZpZXcvbmltYmxlLXRyZWUtdmlldy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFMUM7O0dBRUc7QUFJSCxNQUFNLE9BQU8sdUJBQXVCOztvSEFBdkIsdUJBQXVCO3dHQUF2Qix1QkFBdUI7MkZBQXZCLHVCQUF1QjtrQkFIbkMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsa0JBQWtCO2lCQUMvQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIERpcmVjdGl2ZSB0byBwcm92aWRlIEFuZ3VsYXIgaW50ZWdyYXRpb24gZm9yIHRoZSB0cmVlIHZpZXcuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICAgIHNlbGVjdG9yOiAnbmltYmxlLXRyZWUtdmlldydcbn0pXG5leHBvcnQgY2xhc3MgTmltYmxlVHJlZVZpZXdEaXJlY3RpdmUge1xufVxuIl19
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { NimbleTreeViewDirective } from './nimble-tree-view.directive';
|
|
4
|
+
import '@ni/nimble-components/dist/esm/tree-view';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class NimbleTreeViewModule {
|
|
7
|
+
}
|
|
8
|
+
NimbleTreeViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
NimbleTreeViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, declarations: [NimbleTreeViewDirective], imports: [CommonModule], exports: [NimbleTreeViewDirective] });
|
|
10
|
+
NimbleTreeViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, imports: [[CommonModule]] });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, decorators: [{
|
|
12
|
+
type: NgModule,
|
|
13
|
+
args: [{
|
|
14
|
+
declarations: [NimbleTreeViewDirective],
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
exports: [NimbleTreeViewDirective]
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmltYmxlLXRyZWUtdmlldy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uaS9uaW1ibGUtYW5ndWxhci9zcmMvZGlyZWN0aXZlcy90cmVlLXZpZXcvbmltYmxlLXRyZWUtdmlldy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFFdkUsT0FBTywwQ0FBMEMsQ0FBQzs7QUFPbEQsTUFBTSxPQUFPLG9CQUFvQjs7aUhBQXBCLG9CQUFvQjtrSEFBcEIsb0JBQW9CLGlCQUpkLHVCQUF1QixhQUM1QixZQUFZLGFBQ1osdUJBQXVCO2tIQUV4QixvQkFBb0IsWUFIcEIsQ0FBQyxZQUFZLENBQUM7MkZBR2Qsb0JBQW9CO2tCQUxoQyxRQUFRO21CQUFDO29CQUNOLFlBQVksRUFBRSxDQUFDLHVCQUF1QixDQUFDO29CQUN2QyxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7b0JBQ3ZCLE9BQU8sRUFBRSxDQUFDLHVCQUF1QixDQUFDO2lCQUNyQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE5nTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmltYmxlVHJlZVZpZXdEaXJlY3RpdmUgfSBmcm9tICcuL25pbWJsZS10cmVlLXZpZXcuZGlyZWN0aXZlJztcblxuaW1wb3J0ICdAbmkvbmltYmxlLWNvbXBvbmVudHMvZGlzdC9lc20vdHJlZS12aWV3JztcblxuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtOaW1ibGVUcmVlVmlld0RpcmVjdGl2ZV0sXG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG4gICAgZXhwb3J0czogW05pbWJsZVRyZWVWaWV3RGlyZWN0aXZlXVxufSlcbmV4cG9ydCBjbGFzcyBOaW1ibGVUcmVlVmlld01vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmktbmltYmxlLWFuZ3VsYXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uaS9uaW1ibGUtYW5ndWxhci9zcmMvbmktbmltYmxlLWFuZ3VsYXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of nimble-angular
|
|
3
|
+
*/
|
|
4
|
+
export * from './directives/theme-provider';
|
|
5
|
+
export * from './directives/text-field';
|
|
6
|
+
export * from './directives/number-field';
|
|
7
|
+
export * from './directives/listbox-option';
|
|
8
|
+
export * from './directives/select';
|
|
9
|
+
export * from './directives/button';
|
|
10
|
+
export * from './directives/control-value-accessor';
|
|
11
|
+
export * from './directives/tree-view';
|
|
12
|
+
export * from './directives/tree-item';
|
|
13
|
+
export * from './directives/checkbox';
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25pL25pbWJsZS1hbmd1bGFyL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx1QkFBdUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgbmltYmxlLWFuZ3VsYXJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvdGhlbWUtcHJvdmlkZXInO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL3RleHQtZmllbGQnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL251bWJlci1maWVsZCc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvbGlzdGJveC1vcHRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL3NlbGVjdCc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvYnV0dG9uJztcbmV4cG9ydCAqIGZyb20gJy4vZGlyZWN0aXZlcy9jb250cm9sLXZhbHVlLWFjY2Vzc29yJztcbmV4cG9ydCAqIGZyb20gJy4vZGlyZWN0aXZlcy90cmVlLXZpZXcnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL3RyZWUtaXRlbSc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvY2hlY2tib3gnO1xuIl19
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, HostBinding, Input, NgModule, forwardRef, Optional, Host, EventEmitter, Output, HostListener } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import '@ni/nimble-components/dist/esm/theme-provider';
|
|
5
|
+
import { DefaultValueAccessor, NG_VALUE_ACCESSOR, NumberValueAccessor, SelectControlValueAccessor, NgSelectOption, CheckboxControlValueAccessor } from '@angular/forms';
|
|
6
|
+
import '@ni/nimble-components/dist/esm/text-field';
|
|
7
|
+
import '@ni/nimble-components/dist/esm/number-field';
|
|
8
|
+
import '@ni/nimble-components/dist/esm/select';
|
|
9
|
+
import '@ni/nimble-components/dist/esm/listbox-option';
|
|
10
|
+
import '@ni/nimble-components/dist/esm/button';
|
|
11
|
+
import '@ni/nimble-components/dist/esm/tree-view';
|
|
12
|
+
import '@ni/nimble-components/dist/esm/tree-item';
|
|
13
|
+
import '@ni/nimble-components/dist/esm/checkbox';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Directive for Angular integration for the theme provider
|
|
17
|
+
*/
|
|
18
|
+
class NimbleThemeProviderDirective {
|
|
19
|
+
}
|
|
20
|
+
NimbleThemeProviderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
NimbleThemeProviderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleThemeProviderDirective, selector: "nimble-theme-provider", inputs: { theme: "theme" }, host: { properties: { "attr.theme": "this.theme" } }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderDirective, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{
|
|
25
|
+
selector: 'nimble-theme-provider'
|
|
26
|
+
}]
|
|
27
|
+
}], propDecorators: { theme: [{
|
|
28
|
+
type: HostBinding,
|
|
29
|
+
args: ['attr.theme']
|
|
30
|
+
}, {
|
|
31
|
+
type: Input
|
|
32
|
+
}] } });
|
|
33
|
+
|
|
34
|
+
class NimbleThemeProviderModule {
|
|
35
|
+
}
|
|
36
|
+
NimbleThemeProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
37
|
+
NimbleThemeProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderModule, declarations: [NimbleThemeProviderDirective], imports: [CommonModule], exports: [NimbleThemeProviderDirective] });
|
|
38
|
+
NimbleThemeProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderModule, imports: [[CommonModule]] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleThemeProviderModule, decorators: [{
|
|
40
|
+
type: NgModule,
|
|
41
|
+
args: [{
|
|
42
|
+
declarations: [NimbleThemeProviderDirective],
|
|
43
|
+
imports: [CommonModule],
|
|
44
|
+
exports: [NimbleThemeProviderDirective]
|
|
45
|
+
}]
|
|
46
|
+
}] });
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Directive to provide Angular integration for the text field
|
|
50
|
+
*/
|
|
51
|
+
class NimbleTextFieldDirective {
|
|
52
|
+
}
|
|
53
|
+
NimbleTextFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
54
|
+
NimbleTextFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTextFieldDirective, selector: "nimble-text-field", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "this.readonly" } }, ngImport: i0 });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldDirective, decorators: [{
|
|
56
|
+
type: Directive,
|
|
57
|
+
args: [{
|
|
58
|
+
selector: 'nimble-text-field'
|
|
59
|
+
}]
|
|
60
|
+
}], propDecorators: { readonly: [{
|
|
61
|
+
type: HostBinding,
|
|
62
|
+
args: ['attr.readonly']
|
|
63
|
+
}, {
|
|
64
|
+
type: Input
|
|
65
|
+
}] } });
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Extension of Angular's DefaultValueAccessor to target the text-based inputs.
|
|
69
|
+
*
|
|
70
|
+
* Directive decorator based on DefaultValueAccessor decorator
|
|
71
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/default_value_accessor.ts#L72
|
|
72
|
+
*/
|
|
73
|
+
class NimbleDefaultControlValueAccessorDirective extends DefaultValueAccessor {
|
|
74
|
+
}
|
|
75
|
+
NimbleDefaultControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleDefaultControlValueAccessorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
+
NimbleDefaultControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleDefaultControlValueAccessorDirective, selector: "nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [{
|
|
77
|
+
provide: NG_VALUE_ACCESSOR,
|
|
78
|
+
useExisting: forwardRef(() => NimbleDefaultControlValueAccessorDirective),
|
|
79
|
+
multi: true
|
|
80
|
+
}], usesInheritance: true, ngImport: i0 });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleDefaultControlValueAccessorDirective, decorators: [{
|
|
82
|
+
type: Directive,
|
|
83
|
+
args: [{
|
|
84
|
+
selector: 'nimble-text-field[formControlName],nimble-text-field[formControl],nimble-text-field[ngModel]',
|
|
85
|
+
// The following host metadata is duplicated from DefaultValueAccessor
|
|
86
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
87
|
+
host: {
|
|
88
|
+
'(input)': '$any(this)._handleInput($event.target.value)',
|
|
89
|
+
'(blur)': 'onTouched()',
|
|
90
|
+
'(compositionstart)': '$any(this)._compositionStart()',
|
|
91
|
+
'(compositionend)': '$any(this)._compositionEnd($event.target.value)'
|
|
92
|
+
},
|
|
93
|
+
providers: [{
|
|
94
|
+
provide: NG_VALUE_ACCESSOR,
|
|
95
|
+
useExisting: forwardRef(() => NimbleDefaultControlValueAccessorDirective),
|
|
96
|
+
multi: true
|
|
97
|
+
}]
|
|
98
|
+
}]
|
|
99
|
+
}] });
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Extension of Angular's NumberValueAccessor to target the number-based inputs.
|
|
103
|
+
*
|
|
104
|
+
* Directive decorator based on NumberValueAccessor decorator
|
|
105
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/number_value_accessor.ts#L43
|
|
106
|
+
*/
|
|
107
|
+
class NimbleNumberControlValueAccessorDirective extends NumberValueAccessor {
|
|
108
|
+
}
|
|
109
|
+
NimbleNumberControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberControlValueAccessorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
110
|
+
NimbleNumberControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberControlValueAccessorDirective, selector: "nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
111
|
+
provide: NG_VALUE_ACCESSOR,
|
|
112
|
+
useExisting: forwardRef(() => NimbleNumberControlValueAccessorDirective),
|
|
113
|
+
multi: true
|
|
114
|
+
}], usesInheritance: true, ngImport: i0 });
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberControlValueAccessorDirective, decorators: [{
|
|
116
|
+
type: Directive,
|
|
117
|
+
args: [{
|
|
118
|
+
selector: 'nimble-number-field[formControlName],nimble-number-field[formControl],nimble-number-field[ngModel]',
|
|
119
|
+
// The following host metadata is duplicated from NumberValueAccessor
|
|
120
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
121
|
+
host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
122
|
+
providers: [{
|
|
123
|
+
provide: NG_VALUE_ACCESSOR,
|
|
124
|
+
useExisting: forwardRef(() => NimbleNumberControlValueAccessorDirective),
|
|
125
|
+
multi: true
|
|
126
|
+
}]
|
|
127
|
+
}]
|
|
128
|
+
}] });
|
|
129
|
+
|
|
130
|
+
class NimbleControlValueAccessorModule {
|
|
131
|
+
}
|
|
132
|
+
NimbleControlValueAccessorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleControlValueAccessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
133
|
+
NimbleControlValueAccessorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleControlValueAccessorModule, declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective], imports: [CommonModule], exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective] });
|
|
134
|
+
NimbleControlValueAccessorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleControlValueAccessorModule, imports: [[CommonModule]] });
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleControlValueAccessorModule, decorators: [{
|
|
136
|
+
type: NgModule,
|
|
137
|
+
args: [{
|
|
138
|
+
declarations: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective],
|
|
139
|
+
imports: [CommonModule],
|
|
140
|
+
exports: [NimbleDefaultControlValueAccessorDirective, NimbleNumberControlValueAccessorDirective]
|
|
141
|
+
}]
|
|
142
|
+
}] });
|
|
143
|
+
|
|
144
|
+
class NimbleTextFieldModule {
|
|
145
|
+
}
|
|
146
|
+
NimbleTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
147
|
+
NimbleTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldModule, declarations: [NimbleTextFieldDirective], imports: [CommonModule, NimbleControlValueAccessorModule], exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule] });
|
|
148
|
+
NimbleTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldModule, providers: [], imports: [[CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTextFieldModule, decorators: [{
|
|
150
|
+
type: NgModule,
|
|
151
|
+
args: [{
|
|
152
|
+
declarations: [NimbleTextFieldDirective],
|
|
153
|
+
imports: [CommonModule, NimbleControlValueAccessorModule],
|
|
154
|
+
providers: [],
|
|
155
|
+
exports: [NimbleTextFieldDirective, NimbleControlValueAccessorModule]
|
|
156
|
+
}]
|
|
157
|
+
}] });
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Directive to provide Angular integration for the number field.
|
|
161
|
+
*/
|
|
162
|
+
class NimbleNumberFieldDirective {
|
|
163
|
+
}
|
|
164
|
+
NimbleNumberFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
165
|
+
NimbleNumberFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleNumberFieldDirective, selector: "nimble-number-field", inputs: { readonly: "readonly", min: "min", max: "max", step: "step", placeholder: "placeholder" }, host: { properties: { "attr.readonly": "this.readonly", "attr.min": "this.min", "attr.max": "this.max", "attr.step": "this.step", "attr.placeholder": "this.placeholder" } }, ngImport: i0 });
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldDirective, decorators: [{
|
|
167
|
+
type: Directive,
|
|
168
|
+
args: [{
|
|
169
|
+
selector: 'nimble-number-field'
|
|
170
|
+
}]
|
|
171
|
+
}], propDecorators: { readonly: [{
|
|
172
|
+
type: HostBinding,
|
|
173
|
+
args: ['attr.readonly']
|
|
174
|
+
}, {
|
|
175
|
+
type: Input
|
|
176
|
+
}], min: [{
|
|
177
|
+
type: HostBinding,
|
|
178
|
+
args: ['attr.min']
|
|
179
|
+
}, {
|
|
180
|
+
type: Input
|
|
181
|
+
}], max: [{
|
|
182
|
+
type: HostBinding,
|
|
183
|
+
args: ['attr.max']
|
|
184
|
+
}, {
|
|
185
|
+
type: Input
|
|
186
|
+
}], step: [{
|
|
187
|
+
type: HostBinding,
|
|
188
|
+
args: ['attr.step']
|
|
189
|
+
}, {
|
|
190
|
+
type: Input
|
|
191
|
+
}], placeholder: [{
|
|
192
|
+
type: HostBinding,
|
|
193
|
+
args: ['attr.placeholder']
|
|
194
|
+
}, {
|
|
195
|
+
type: Input
|
|
196
|
+
}] } });
|
|
197
|
+
|
|
198
|
+
class NimbleNumberFieldModule {
|
|
199
|
+
}
|
|
200
|
+
NimbleNumberFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
201
|
+
NimbleNumberFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldModule, declarations: [NimbleNumberFieldDirective], imports: [CommonModule, NimbleControlValueAccessorModule], exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule] });
|
|
202
|
+
NimbleNumberFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldModule, providers: [], imports: [[CommonModule, NimbleControlValueAccessorModule], NimbleControlValueAccessorModule] });
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleNumberFieldModule, decorators: [{
|
|
204
|
+
type: NgModule,
|
|
205
|
+
args: [{
|
|
206
|
+
declarations: [NimbleNumberFieldDirective],
|
|
207
|
+
imports: [CommonModule, NimbleControlValueAccessorModule],
|
|
208
|
+
providers: [],
|
|
209
|
+
exports: [NimbleNumberFieldDirective, NimbleControlValueAccessorModule]
|
|
210
|
+
}]
|
|
211
|
+
}] });
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Directive for Nimble select control Angular integration
|
|
215
|
+
*/
|
|
216
|
+
class NimbleSelectDirective {
|
|
217
|
+
}
|
|
218
|
+
NimbleSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
219
|
+
NimbleSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectDirective, selector: "nimble-select", ngImport: i0 });
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectDirective, decorators: [{
|
|
221
|
+
type: Directive,
|
|
222
|
+
args: [{
|
|
223
|
+
selector: 'nimble-select',
|
|
224
|
+
}]
|
|
225
|
+
}] });
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Extension of Angular's SelectControlValueAccessor to target the Nimble select control.
|
|
229
|
+
*
|
|
230
|
+
* @see NimbleSelectOptionDirective
|
|
231
|
+
*
|
|
232
|
+
* Directive decorator based on SelectControlValueAccessor decorator
|
|
233
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/select_control_value_accessor.ts#L85
|
|
234
|
+
*/
|
|
235
|
+
class NimbleSelectControlValueAccessorDirective extends SelectControlValueAccessor {
|
|
236
|
+
}
|
|
237
|
+
NimbleSelectControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectControlValueAccessorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
238
|
+
NimbleSelectControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleSelectControlValueAccessorDirective, selector: "nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [{
|
|
239
|
+
provide: NG_VALUE_ACCESSOR,
|
|
240
|
+
useExisting: forwardRef(() => NimbleSelectControlValueAccessorDirective),
|
|
241
|
+
multi: true
|
|
242
|
+
}], usesInheritance: true, ngImport: i0 });
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
244
|
+
type: Directive,
|
|
245
|
+
args: [{
|
|
246
|
+
selector: 'nimble-select:not([multiple])[formControlName],nimble-select:not([multiple])[formControl],nimble-select:not([multiple])[ngModel]',
|
|
247
|
+
// The following host metadata is duplicated from SelectControlValueAccessor
|
|
248
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
249
|
+
host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
|
|
250
|
+
providers: [{
|
|
251
|
+
provide: NG_VALUE_ACCESSOR,
|
|
252
|
+
useExisting: forwardRef(() => NimbleSelectControlValueAccessorDirective),
|
|
253
|
+
multi: true
|
|
254
|
+
}]
|
|
255
|
+
}]
|
|
256
|
+
}] });
|
|
257
|
+
|
|
258
|
+
class NimbleSelectModule {
|
|
259
|
+
}
|
|
260
|
+
NimbleSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
261
|
+
NimbleSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectModule, declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective], imports: [CommonModule], exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective] });
|
|
262
|
+
NimbleSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectModule, imports: [[CommonModule]] });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleSelectModule, decorators: [{
|
|
264
|
+
type: NgModule,
|
|
265
|
+
args: [{
|
|
266
|
+
declarations: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective],
|
|
267
|
+
imports: [CommonModule],
|
|
268
|
+
exports: [NimbleSelectDirective, NimbleSelectControlValueAccessorDirective]
|
|
269
|
+
}]
|
|
270
|
+
}] });
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Directive to provide Angular integration for the listbox option.
|
|
274
|
+
*/
|
|
275
|
+
class NimbleListboxOptionDirective extends NgSelectOption {
|
|
276
|
+
constructor(element, renderer, select) {
|
|
277
|
+
super(element, renderer, select);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
NimbleListboxOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: NimbleSelectControlValueAccessorDirective, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
281
|
+
NimbleListboxOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleListboxOptionDirective, selector: "nimble-listbox-option", inputs: { disabled: "disabled" }, host: { properties: { "attr.disabled": "this.disabled" } }, usesInheritance: true, ngImport: i0 });
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionDirective, decorators: [{
|
|
283
|
+
type: Directive,
|
|
284
|
+
args: [{
|
|
285
|
+
selector: 'nimble-listbox-option'
|
|
286
|
+
}]
|
|
287
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
288
|
+
type: Optional
|
|
289
|
+
}, {
|
|
290
|
+
type: Host
|
|
291
|
+
}] }]; }, propDecorators: { disabled: [{
|
|
292
|
+
type: HostBinding,
|
|
293
|
+
args: ['attr.disabled']
|
|
294
|
+
}, {
|
|
295
|
+
type: Input
|
|
296
|
+
}] } });
|
|
297
|
+
|
|
298
|
+
class NimbleListboxOptionModule {
|
|
299
|
+
}
|
|
300
|
+
NimbleListboxOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
301
|
+
NimbleListboxOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionModule, declarations: [NimbleListboxOptionDirective], imports: [CommonModule], exports: [NimbleListboxOptionDirective] });
|
|
302
|
+
NimbleListboxOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionModule, imports: [[CommonModule]] });
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListboxOptionModule, decorators: [{
|
|
304
|
+
type: NgModule,
|
|
305
|
+
args: [{
|
|
306
|
+
declarations: [NimbleListboxOptionDirective],
|
|
307
|
+
imports: [CommonModule],
|
|
308
|
+
exports: [NimbleListboxOptionDirective]
|
|
309
|
+
}]
|
|
310
|
+
}] });
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Directive to provide Angular integration for the button.
|
|
314
|
+
*/
|
|
315
|
+
class NimbleButtonDirective {
|
|
316
|
+
}
|
|
317
|
+
NimbleButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
318
|
+
NimbleButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleButtonDirective, selector: "nimble-button", inputs: { disabled: "disabled", appearance: "appearance" }, host: { properties: { "disabled": "this.disabled", "appearance": "this.appearance" } }, ngImport: i0 });
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonDirective, decorators: [{
|
|
320
|
+
type: Directive,
|
|
321
|
+
args: [{
|
|
322
|
+
selector: 'nimble-button'
|
|
323
|
+
}]
|
|
324
|
+
}], propDecorators: { disabled: [{
|
|
325
|
+
type: HostBinding,
|
|
326
|
+
args: ['disabled']
|
|
327
|
+
}, {
|
|
328
|
+
type: Input
|
|
329
|
+
}], appearance: [{
|
|
330
|
+
type: HostBinding,
|
|
331
|
+
args: ['appearance']
|
|
332
|
+
}, {
|
|
333
|
+
type: Input
|
|
334
|
+
}] } });
|
|
335
|
+
|
|
336
|
+
class NimbleButtonModule {
|
|
337
|
+
}
|
|
338
|
+
NimbleButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
339
|
+
NimbleButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonModule, declarations: [NimbleButtonDirective], imports: [CommonModule], exports: [NimbleButtonDirective] });
|
|
340
|
+
NimbleButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonModule, imports: [[CommonModule]] });
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleButtonModule, decorators: [{
|
|
342
|
+
type: NgModule,
|
|
343
|
+
args: [{
|
|
344
|
+
declarations: [NimbleButtonDirective],
|
|
345
|
+
imports: [CommonModule],
|
|
346
|
+
exports: [NimbleButtonDirective]
|
|
347
|
+
}]
|
|
348
|
+
}] });
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Directive to provide Angular integration for the tree view.
|
|
352
|
+
*/
|
|
353
|
+
class NimbleTreeViewDirective {
|
|
354
|
+
}
|
|
355
|
+
NimbleTreeViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
356
|
+
NimbleTreeViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeViewDirective, selector: "nimble-tree-view", ngImport: i0 });
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewDirective, decorators: [{
|
|
358
|
+
type: Directive,
|
|
359
|
+
args: [{
|
|
360
|
+
selector: 'nimble-tree-view'
|
|
361
|
+
}]
|
|
362
|
+
}] });
|
|
363
|
+
|
|
364
|
+
class NimbleTreeViewModule {
|
|
365
|
+
}
|
|
366
|
+
NimbleTreeViewModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
367
|
+
NimbleTreeViewModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, declarations: [NimbleTreeViewDirective], imports: [CommonModule], exports: [NimbleTreeViewDirective] });
|
|
368
|
+
NimbleTreeViewModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, imports: [[CommonModule]] });
|
|
369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeViewModule, decorators: [{
|
|
370
|
+
type: NgModule,
|
|
371
|
+
args: [{
|
|
372
|
+
declarations: [NimbleTreeViewDirective],
|
|
373
|
+
imports: [CommonModule],
|
|
374
|
+
exports: [NimbleTreeViewDirective]
|
|
375
|
+
}]
|
|
376
|
+
}] });
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Directive to provide Angular integration for the tree item.
|
|
380
|
+
*/
|
|
381
|
+
class NimbleTreeItemDirective {
|
|
382
|
+
constructor(treeItemReference) {
|
|
383
|
+
this.treeItemReference = treeItemReference;
|
|
384
|
+
this.selectedChange = new EventEmitter();
|
|
385
|
+
this.expandedChange = new EventEmitter();
|
|
386
|
+
}
|
|
387
|
+
onSelectedChange($event) {
|
|
388
|
+
const treeItemElement = this.treeItemReference.nativeElement;
|
|
389
|
+
if ($event.target === treeItemElement) {
|
|
390
|
+
this.selected = treeItemElement.selected;
|
|
391
|
+
this.selectedChange.emit(this.selected);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
onExpandedChange($event) {
|
|
395
|
+
const treeItemElement = this.treeItemReference.nativeElement;
|
|
396
|
+
if ($event.target === treeItemElement) {
|
|
397
|
+
this.expanded = treeItemElement.expanded;
|
|
398
|
+
this.expandedChange.emit(treeItemElement.expanded);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
NimbleTreeItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
403
|
+
NimbleTreeItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleTreeItemDirective, selector: "nimble-tree-item", inputs: { disabled: "disabled", expanded: "expanded", selected: "selected" }, outputs: { selectedChange: "selectedChange", expandedChange: "expandedChange" }, host: { listeners: { "selected-change": "onSelectedChange($event)", "expanded-change": "onExpandedChange($event)" }, properties: { "disabled": "this.disabled", "expanded": "this.expanded", "selected": "this.selected", "attr.aria-selected": "this.selected" } }, ngImport: i0 });
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemDirective, decorators: [{
|
|
405
|
+
type: Directive,
|
|
406
|
+
args: [{
|
|
407
|
+
selector: 'nimble-tree-item'
|
|
408
|
+
}]
|
|
409
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
|
|
410
|
+
type: HostBinding,
|
|
411
|
+
args: ['disabled']
|
|
412
|
+
}, {
|
|
413
|
+
type: Input
|
|
414
|
+
}], expanded: [{
|
|
415
|
+
type: HostBinding,
|
|
416
|
+
args: ['expanded']
|
|
417
|
+
}, {
|
|
418
|
+
type: Input
|
|
419
|
+
}], selected: [{
|
|
420
|
+
type: HostBinding,
|
|
421
|
+
args: ['selected']
|
|
422
|
+
}, {
|
|
423
|
+
type: HostBinding,
|
|
424
|
+
args: ['attr.aria-selected']
|
|
425
|
+
}, {
|
|
426
|
+
type: Input
|
|
427
|
+
}], selectedChange: [{
|
|
428
|
+
type: Output
|
|
429
|
+
}], expandedChange: [{
|
|
430
|
+
type: Output
|
|
431
|
+
}], onSelectedChange: [{
|
|
432
|
+
type: HostListener,
|
|
433
|
+
args: ['selected-change', ['$event']]
|
|
434
|
+
}], onExpandedChange: [{
|
|
435
|
+
type: HostListener,
|
|
436
|
+
args: ['expanded-change', ['$event']]
|
|
437
|
+
}] } });
|
|
438
|
+
|
|
439
|
+
class NimbleTreeItemModule {
|
|
440
|
+
}
|
|
441
|
+
NimbleTreeItemModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
442
|
+
NimbleTreeItemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemModule, declarations: [NimbleTreeItemDirective], imports: [CommonModule], exports: [NimbleTreeItemDirective] });
|
|
443
|
+
NimbleTreeItemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemModule, imports: [[CommonModule]] });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleTreeItemModule, decorators: [{
|
|
445
|
+
type: NgModule,
|
|
446
|
+
args: [{
|
|
447
|
+
declarations: [NimbleTreeItemDirective],
|
|
448
|
+
imports: [CommonModule],
|
|
449
|
+
exports: [NimbleTreeItemDirective]
|
|
450
|
+
}]
|
|
451
|
+
}] });
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Directive to provide Angular integration for the checkbox.
|
|
455
|
+
*/
|
|
456
|
+
class NimbleCheckboxDirective {
|
|
457
|
+
}
|
|
458
|
+
NimbleCheckboxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
459
|
+
NimbleCheckboxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxDirective, selector: "nimble-checkbox", ngImport: i0 });
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxDirective, decorators: [{
|
|
461
|
+
type: Directive,
|
|
462
|
+
args: [{
|
|
463
|
+
selector: 'nimble-checkbox'
|
|
464
|
+
}]
|
|
465
|
+
}] });
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Extension of Angular's CheckboxControlValueAccessor to target the Nimble checkbox control.
|
|
469
|
+
*
|
|
470
|
+
* Directive decorator based on CheckboxControlValueAccessor decorator
|
|
471
|
+
* https://github.com/angular/angular/blob/master/packages/forms/src/directives/checkbox_value_accessor.ts#L42
|
|
472
|
+
*/
|
|
473
|
+
class NimbleCheckboxControlValueAccessorDirective extends CheckboxControlValueAccessor {
|
|
474
|
+
}
|
|
475
|
+
NimbleCheckboxControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxControlValueAccessorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
476
|
+
NimbleCheckboxControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleCheckboxControlValueAccessorDirective, selector: "nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [{
|
|
477
|
+
provide: NG_VALUE_ACCESSOR,
|
|
478
|
+
useExisting: forwardRef(() => NimbleCheckboxControlValueAccessorDirective),
|
|
479
|
+
multi: true
|
|
480
|
+
}], usesInheritance: true, ngImport: i0 });
|
|
481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxControlValueAccessorDirective, decorators: [{
|
|
482
|
+
type: Directive,
|
|
483
|
+
args: [{
|
|
484
|
+
selector: 'nimble-checkbox[formControlName],nimble-checkbox[formControl],nimble-checkbox[ngModel]',
|
|
485
|
+
// The following host metadata is duplicated from CheckboxControlValueAccessor
|
|
486
|
+
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
487
|
+
host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
|
|
488
|
+
providers: [{
|
|
489
|
+
provide: NG_VALUE_ACCESSOR,
|
|
490
|
+
useExisting: forwardRef(() => NimbleCheckboxControlValueAccessorDirective),
|
|
491
|
+
multi: true
|
|
492
|
+
}]
|
|
493
|
+
}]
|
|
494
|
+
}] });
|
|
495
|
+
|
|
496
|
+
class NimbleCheckboxModule {
|
|
497
|
+
}
|
|
498
|
+
NimbleCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
499
|
+
NimbleCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxModule, declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective], imports: [CommonModule], exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective] });
|
|
500
|
+
NimbleCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxModule, imports: [[CommonModule]] });
|
|
501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleCheckboxModule, decorators: [{
|
|
502
|
+
type: NgModule,
|
|
503
|
+
args: [{
|
|
504
|
+
declarations: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective],
|
|
505
|
+
imports: [CommonModule],
|
|
506
|
+
exports: [NimbleCheckboxDirective, NimbleCheckboxControlValueAccessorDirective]
|
|
507
|
+
}]
|
|
508
|
+
}] });
|
|
509
|
+
|
|
510
|
+
/*
|
|
511
|
+
* Public API Surface of nimble-angular
|
|
512
|
+
*/
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Generated bundle index. Do not edit.
|
|
516
|
+
*/
|
|
517
|
+
|
|
518
|
+
export { NimbleButtonDirective, NimbleButtonModule, NimbleCheckboxControlValueAccessorDirective, NimbleCheckboxDirective, NimbleCheckboxModule, NimbleControlValueAccessorModule, NimbleDefaultControlValueAccessorDirective, NimbleListboxOptionDirective, NimbleListboxOptionModule, NimbleNumberControlValueAccessorDirective, NimbleNumberFieldDirective, NimbleNumberFieldModule, NimbleSelectControlValueAccessorDirective, NimbleSelectDirective, NimbleSelectModule, NimbleTextFieldDirective, NimbleTextFieldModule, NimbleThemeProviderDirective, NimbleThemeProviderModule, NimbleTreeItemDirective, NimbleTreeItemModule, NimbleTreeViewDirective, NimbleTreeViewModule };
|
|
519
|
+
//# sourceMappingURL=ni-nimble-angular.js.map
|