@ni/nimble-angular 7.4.0 → 8.0.0
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/bundles/ni-nimble-angular.umd.js +244 -57
- package/bundles/ni-nimble-angular.umd.js.map +1 -1
- package/directives/combobox/nimble-combobox-control-value-accessor.directive.d.ts +61 -7
- package/directives/list-option/nimble-combobox-list-option.directive.d.ts +29 -0
- package/directives/list-option/nimble-list-option.module.d.ts +6 -4
- package/directives/list-option/{nimble-list-option.directive.d.ts → nimble-select-list-option.directive.d.ts} +4 -5
- package/directives/select/nimble-select.directive.d.ts +11 -1
- package/esm2015/directives/combobox/nimble-combobox-control-value-accessor.directive.js +87 -20
- package/esm2015/directives/combobox/nimble-combobox.directive.js +1 -1
- package/esm2015/directives/list-option/nimble-combobox-list-option.directive.js +70 -0
- package/esm2015/directives/list-option/nimble-list-option.module.js +7 -6
- package/esm2015/directives/list-option/nimble-select-list-option.directive.js +40 -0
- package/esm2015/directives/select/nimble-select.directive.js +26 -5
- package/esm2015/public-api.js +4 -2
- package/fesm2015/ni-nimble-angular.js +185 -32
- package/fesm2015/ni-nimble-angular.js.map +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +3 -1
- package/esm2015/directives/list-option/nimble-list-option.directive.js +0 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/nimble-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Angular components for the NI Nimble Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@angular/core": "^12.1.0",
|
|
20
20
|
"@angular/forms": "^12.1.0",
|
|
21
21
|
"@angular/router": "^12.1.0",
|
|
22
|
-
"@ni/nimble-components": "^11.
|
|
22
|
+
"@ni/nimble-components": "^11.6.2"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.2.0"
|
package/public-api.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export * from './directives/combobox/nimble-combobox.module';
|
|
|
15
15
|
export * from './directives/drawer/nimble-drawer.directive';
|
|
16
16
|
export * from './directives/drawer/nimble-drawer.module';
|
|
17
17
|
export * from './directives/icons';
|
|
18
|
-
export * from './directives/list-option/nimble-list-option.directive';
|
|
18
|
+
export * from './directives/list-option/nimble-combobox-list-option.directive';
|
|
19
|
+
export * from './directives/list-option/nimble-select-list-option.directive';
|
|
19
20
|
export * from './directives/list-option/nimble-list-option.module';
|
|
20
21
|
export * from './directives/menu/nimble-menu.directive';
|
|
21
22
|
export * from './directives/menu/nimble-menu.module';
|
|
@@ -59,4 +60,5 @@ export * from './directives/tree-view/nimble-tree-view.directive';
|
|
|
59
60
|
export * from './directives/tree-view/nimble-tree-view.module';
|
|
60
61
|
export * from './testing/async-helpers';
|
|
61
62
|
export { ButtonAppearance } from '@ni/nimble-components/dist/esm/patterns/button/types';
|
|
63
|
+
export { DropdownAppearance } from '@ni/nimble-components/dist/esm/patterns/dropdown/types';
|
|
62
64
|
export { IconStatus } from '@ni/nimble-components/dist/esm/icon-base/types';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Directive, Host, Inject, Input, Optional } from '@angular/core';
|
|
2
|
-
import { NgSelectOption } from '@angular/forms';
|
|
3
|
-
import { NimbleSelectControlValueAccessorDirective } from '../select/nimble-select-control-value-accessor.directive';
|
|
4
|
-
import { toBooleanProperty } from '../utilities/template-value-helpers';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../select/nimble-select-control-value-accessor.directive";
|
|
7
|
-
/**
|
|
8
|
-
* Directive to provide Angular integration for the list option.
|
|
9
|
-
*/
|
|
10
|
-
export class NimbleListOptionDirective extends NgSelectOption {
|
|
11
|
-
constructor(elementRef, renderer, select) {
|
|
12
|
-
super(elementRef, renderer, select);
|
|
13
|
-
this.elementRef = elementRef;
|
|
14
|
-
this.renderer = renderer;
|
|
15
|
-
}
|
|
16
|
-
get disabled() {
|
|
17
|
-
return this.elementRef.nativeElement.disabled;
|
|
18
|
-
}
|
|
19
|
-
set disabled(value) {
|
|
20
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
NimbleListOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListOptionDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: NimbleSelectControlValueAccessorDirective, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
-
NimbleListOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: NimbleListOptionDirective, selector: "nimble-list-option", inputs: { disabled: "disabled" }, usesInheritance: true, ngImport: i0 });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: NimbleListOptionDirective, decorators: [{
|
|
26
|
-
type: Directive,
|
|
27
|
-
args: [{
|
|
28
|
-
selector: 'nimble-list-option'
|
|
29
|
-
}]
|
|
30
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.NimbleSelectControlValueAccessorDirective, decorators: [{
|
|
31
|
-
type: Inject,
|
|
32
|
-
args: [NimbleSelectControlValueAccessorDirective]
|
|
33
|
-
}, {
|
|
34
|
-
type: Optional
|
|
35
|
-
}, {
|
|
36
|
-
type: Host
|
|
37
|
-
}] }]; }, propDecorators: { disabled: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}] } });
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmltYmxlLWxpc3Qtb3B0aW9uLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIi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