@ni/nimble-angular 32.0.2 → 32.1.1

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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ni/nimble-angular/chip" />
5
+ export * from './public-api';
@@ -0,0 +1,24 @@
1
+ import { ElementRef, Renderer2 } from '@angular/core';
2
+ import { type Chip, chipTag } from '@ni/nimble-components/dist/esm/chip';
3
+ import { ChipAppearance } from '@ni/nimble-components/dist/esm/chip/types';
4
+ import { type BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
5
+ import * as i0 from "@angular/core";
6
+ export type { Chip };
7
+ export { chipTag };
8
+ export { ChipAppearance };
9
+ /**
10
+ * Directive to provide Angular integration for the chip.
11
+ */
12
+ export declare class NimbleChipDirective {
13
+ private readonly renderer;
14
+ private readonly elementRef;
15
+ get removable(): boolean;
16
+ set removable(value: BooleanValueOrAttribute);
17
+ get disabled(): boolean;
18
+ set disabled(value: BooleanValueOrAttribute);
19
+ get appearance(): ChipAppearance;
20
+ set appearance(value: ChipAppearance);
21
+ constructor(renderer: Renderer2, elementRef: ElementRef<Chip>);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<NimbleChipDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NimbleChipDirective, "nimble-chip", never, { "removable": { "alias": "removable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, false, never>;
24
+ }
@@ -0,0 +1,9 @@
1
+ import '@ni/nimble-components/dist/esm/chip';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./nimble-chip.directive";
4
+ import * as i2 from "@angular/common";
5
+ export declare class NimbleChipModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NimbleChipModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NimbleChipModule, [typeof i1.NimbleChipDirective], [typeof i2.CommonModule], [typeof i1.NimbleChipDirective]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<NimbleChipModule>;
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './nimble-chip.directive';
2
+ export * from './nimble-chip.module';
@@ -0,0 +1,2 @@
1
+ import { ChipPageObject } from '@ni/nimble-components/dist/esm/chip/testing/chip.pageobject';
2
+ export { ChipPageObject };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ni/nimble-angular/chip/testing" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export { ChipPageObject } from './chip.pageobject';
@@ -0,0 +1,6 @@
1
+ export { ChipPageObject } from '@ni/nimble-components/dist/esm/chip/testing/chip.pageobject';
2
+
3
+ /**
4
+ * Generated bundle index. Do not edit.
5
+ */
6
+ //# sourceMappingURL=ni-nimble-angular-chip-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ni-nimble-angular-chip-testing.mjs","sources":["../../../nimble-angular/chip/testing/ni-nimble-angular-chip-testing.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAAA;;AAEG"}
@@ -0,0 +1,70 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Input, Directive, NgModule } from '@angular/core';
3
+ export { chipTag } from '@ni/nimble-components/dist/esm/chip';
4
+ export { ChipAppearance } from '@ni/nimble-components/dist/esm/chip/types';
5
+ import { toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
6
+ import { CommonModule } from '@angular/common';
7
+
8
+ /**
9
+ * Directive to provide Angular integration for the chip.
10
+ */
11
+ class NimbleChipDirective {
12
+ get removable() {
13
+ return this.elementRef.nativeElement.removable;
14
+ }
15
+ set removable(value) {
16
+ this.renderer.setProperty(this.elementRef.nativeElement, 'removable', toBooleanProperty(value));
17
+ }
18
+ get disabled() {
19
+ return this.elementRef.nativeElement.disabled;
20
+ }
21
+ set disabled(value) {
22
+ this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));
23
+ }
24
+ get appearance() {
25
+ return this.elementRef.nativeElement.appearance;
26
+ }
27
+ set appearance(value) {
28
+ this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);
29
+ }
30
+ constructor(renderer, elementRef) {
31
+ this.renderer = renderer;
32
+ this.elementRef = elementRef;
33
+ }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
35
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.18", type: NimbleChipDirective, isStandalone: false, selector: "nimble-chip", inputs: { removable: "removable", disabled: "disabled", appearance: "appearance" }, ngImport: i0 }); }
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipDirective, decorators: [{
38
+ type: Directive,
39
+ args: [{
40
+ selector: 'nimble-chip',
41
+ standalone: false
42
+ }]
43
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { removable: [{
44
+ type: Input
45
+ }], disabled: [{
46
+ type: Input
47
+ }], appearance: [{
48
+ type: Input
49
+ }] } });
50
+
51
+ class NimbleChipModule {
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
53
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipModule, declarations: [NimbleChipDirective], imports: [CommonModule], exports: [NimbleChipDirective] }); }
54
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipModule, imports: [CommonModule] }); }
55
+ }
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NimbleChipModule, decorators: [{
57
+ type: NgModule,
58
+ args: [{
59
+ declarations: [NimbleChipDirective],
60
+ imports: [CommonModule],
61
+ exports: [NimbleChipDirective]
62
+ }]
63
+ }] });
64
+
65
+ /**
66
+ * Generated bundle index. Do not edit.
67
+ */
68
+
69
+ export { NimbleChipDirective, NimbleChipModule };
70
+ //# sourceMappingURL=ni-nimble-angular-chip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ni-nimble-angular-chip.mjs","sources":["../../../nimble-angular/chip/nimble-chip.directive.ts","../../../nimble-angular/chip/nimble-chip.module.ts","../../../nimble-angular/chip/ni-nimble-angular-chip.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type Chip, chipTag } from '@ni/nimble-components/dist/esm/chip';\nimport { ChipAppearance } from '@ni/nimble-components/dist/esm/chip/types';\nimport { type BooleanValueOrAttribute, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';\n\nexport type { Chip };\nexport { chipTag };\nexport { ChipAppearance };\n\n/**\n * Directive to provide Angular integration for the chip.\n */\n@Directive({\n selector: 'nimble-chip',\n standalone: false\n})\nexport class NimbleChipDirective {\n public get removable(): boolean {\n return this.elementRef.nativeElement.removable;\n }\n\n @Input() public set removable(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'removable', toBooleanProperty(value));\n }\n\n public get disabled(): boolean {\n return this.elementRef.nativeElement.disabled;\n }\n\n @Input() public set disabled(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'disabled', toBooleanProperty(value));\n }\n\n public get appearance(): ChipAppearance {\n return this.elementRef.nativeElement.appearance;\n }\n\n @Input() public set appearance(value: ChipAppearance) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);\n }\n\n public constructor(private readonly renderer: Renderer2, private readonly elementRef: ElementRef<Chip>) {}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleChipDirective } from './nimble-chip.directive';\n\nimport '@ni/nimble-components/dist/esm/chip';\n\n@NgModule({\n declarations: [NimbleChipDirective],\n imports: [CommonModule],\n exports: [NimbleChipDirective]\n})\nexport class NimbleChipModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AASA;;AAEG;MAKU,mBAAmB,CAAA;AAC5B,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS;IAClD;IAEA,IAAoB,SAAS,CAAC,KAA8B,EAAA;AACxD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACnG;AAEA,IAAA,IAAW,QAAQ,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ;IACjD;IAEA,IAAoB,QAAQ,CAAC,KAA8B,EAAA;AACvD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAClG;AAEA,IAAA,IAAW,UAAU,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU;IACnD;IAEA,IAAoB,UAAU,CAAC,KAAqB,EAAA;AAChD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,EAAE,KAAK,CAAC;IACjF;IAEA,WAAA,CAAoC,QAAmB,EAAmB,UAA4B,EAAA;QAAlE,IAAA,C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,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAHf,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAGb,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,mBAAmB;AAChC,iBAAA;;;ACVD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-angular",
3
- "version": "32.0.2",
3
+ "version": "32.1.1",
4
4
  "description": "Angular components for the NI Nimble Design System",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,6 +18,10 @@
18
18
  "types": "./card/index.d.ts",
19
19
  "default": "./fesm2022/ni-nimble-angular-card.mjs"
20
20
  },
21
+ "./chip": {
22
+ "types": "./chip/index.d.ts",
23
+ "default": "./fesm2022/ni-nimble-angular-chip.mjs"
24
+ },
21
25
  "./internal-utilities": {
22
26
  "types": "./internal-utilities/index.d.ts",
23
27
  "default": "./fesm2022/ni-nimble-angular-internal-utilities.mjs"
@@ -42,6 +46,10 @@
42
46
  "types": "./breadcrumb/testing/index.d.ts",
43
47
  "default": "./fesm2022/ni-nimble-angular-breadcrumb-testing.mjs"
44
48
  },
49
+ "./chip/testing": {
50
+ "types": "./chip/testing/index.d.ts",
51
+ "default": "./fesm2022/ni-nimble-angular-chip-testing.mjs"
52
+ },
45
53
  "./combobox/testing": {
46
54
  "types": "./combobox/testing/index.d.ts",
47
55
  "default": "./fesm2022/ni-nimble-angular-combobox-testing.mjs"
@@ -195,7 +203,7 @@
195
203
  "@angular/forms": "^19.2.17",
196
204
  "@angular/localize": "^19.2.17",
197
205
  "@angular/router": "^19.2.17",
198
- "@ni/nimble-components": "^35.0.2",
206
+ "@ni/nimble-components": "^35.0.3",
199
207
  "@ni/unit-format": "^1.0.2"
200
208
  },
201
209
  "module": "fesm2022/ni-nimble-angular.mjs",