@ni/ok-angular 2.0.9 → 2.1.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.
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive, NgModule } from '@angular/core';
|
|
3
|
+
export { fvAccordionItemTag } from '@ni/ok-components/dist/esm/fv-accordion-item';
|
|
4
|
+
export { FvAccordionItemAppearance } from '@ni/ok-components/dist/esm/fv-accordion-item/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 accordion item.
|
|
10
|
+
*/
|
|
11
|
+
class OkFvAccordionItemDirective {
|
|
12
|
+
get header() {
|
|
13
|
+
return this.elementRef.nativeElement.header;
|
|
14
|
+
}
|
|
15
|
+
set header(value) {
|
|
16
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'header', value);
|
|
17
|
+
}
|
|
18
|
+
get expanded() {
|
|
19
|
+
return this.elementRef.nativeElement.expanded;
|
|
20
|
+
}
|
|
21
|
+
set expanded(value) {
|
|
22
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'expanded', 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(elementRef, renderer) {
|
|
31
|
+
this.elementRef = elementRef;
|
|
32
|
+
this.renderer = renderer;
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
35
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.18", type: OkFvAccordionItemDirective, isStandalone: false, selector: "ok-fv-accordion-item", inputs: { header: "header", expanded: "expanded", appearance: "appearance" }, ngImport: i0 }); }
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemDirective, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: 'ok-fv-accordion-item',
|
|
41
|
+
standalone: false
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { header: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], expanded: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], appearance: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}] } });
|
|
50
|
+
|
|
51
|
+
class OkFvAccordionItemModule {
|
|
52
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
53
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemModule, declarations: [OkFvAccordionItemDirective], imports: [CommonModule], exports: [OkFvAccordionItemDirective] }); }
|
|
54
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemModule, imports: [CommonModule] }); }
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.18", ngImport: i0, type: OkFvAccordionItemModule, decorators: [{
|
|
57
|
+
type: NgModule,
|
|
58
|
+
args: [{
|
|
59
|
+
declarations: [OkFvAccordionItemDirective],
|
|
60
|
+
imports: [CommonModule],
|
|
61
|
+
exports: [OkFvAccordionItemDirective]
|
|
62
|
+
}]
|
|
63
|
+
}] });
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Generated bundle index. Do not edit.
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
export { OkFvAccordionItemDirective, OkFvAccordionItemModule };
|
|
70
|
+
//# sourceMappingURL=ni-ok-angular-fv-accordion-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ni-ok-angular-fv-accordion-item.mjs","sources":["../../../ok-angular/fv-accordion-item/fv-accordion-item.directive.ts","../../../ok-angular/fv-accordion-item/fv-accordion-item.module.ts","../../../ok-angular/fv-accordion-item/ni-ok-angular-fv-accordion-item.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport type { FvAccordionItem } from '@ni/ok-components/dist/esm/fv-accordion-item';\nimport { fvAccordionItemTag } from '@ni/ok-components/dist/esm/fv-accordion-item';\nimport { FvAccordionItemAppearance } from '@ni/ok-components/dist/esm/fv-accordion-item/types';\nimport { type BooleanValueOrAttribute, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';\n\nexport type { FvAccordionItem };\nexport { fvAccordionItemTag };\nexport { FvAccordionItemAppearance };\n\n/**\n * Directive to provide Angular integration for the accordion item.\n */\n@Directive({\n selector: 'ok-fv-accordion-item',\n standalone: false\n})\nexport class OkFvAccordionItemDirective {\n public get header(): string {\n return this.elementRef.nativeElement.header;\n }\n\n @Input()\n public set header(value: string) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'header', value);\n }\n\n public get expanded(): boolean {\n return this.elementRef.nativeElement.expanded;\n }\n\n @Input()\n public set expanded(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'expanded', toBooleanProperty(value));\n }\n\n public get appearance(): FvAccordionItemAppearance {\n return this.elementRef.nativeElement.appearance;\n }\n\n @Input()\n public set appearance(value: FvAccordionItemAppearance) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);\n }\n\n public constructor(\n private readonly elementRef: ElementRef<FvAccordionItem>,\n private readonly renderer: Renderer2\n ) {}\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { OkFvAccordionItemDirective } from './fv-accordion-item.directive';\n\nimport '@ni/ok-components/dist/esm/fv-accordion-item';\n\n@NgModule({\n declarations: [OkFvAccordionItemDirective],\n imports: [CommonModule],\n exports: [OkFvAccordionItemDirective]\n})\nexport class OkFvAccordionItemModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAUA;;AAEG;MAKU,0BAA0B,CAAA;AACnC,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM;IAC/C;IAEA,IACW,MAAM,CAAC,KAAa,EAAA;AAC3B,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;IAC7E;AAEA,IAAA,IAAW,QAAQ,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ;IACjD;IAEA,IACW,QAAQ,CAAC,KAA8B,EAAA;AAC9C,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,IACW,UAAU,CAAC,KAAgC,EAAA;AAClD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,Y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EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAHtB,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAGb,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;oBAC1C,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,0BAA0B;AACvC,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
+
import { FvAccordionItem } from '@ni/ok-components/dist/esm/fv-accordion-item';
|
|
4
|
+
export { FvAccordionItem, fvAccordionItemTag } from '@ni/ok-components/dist/esm/fv-accordion-item';
|
|
5
|
+
import { FvAccordionItemAppearance } from '@ni/ok-components/dist/esm/fv-accordion-item/types';
|
|
6
|
+
export { FvAccordionItemAppearance } from '@ni/ok-components/dist/esm/fv-accordion-item/types';
|
|
7
|
+
import { BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
|
|
8
|
+
import * as i2 from '@angular/common';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Directive to provide Angular integration for the accordion item.
|
|
12
|
+
*/
|
|
13
|
+
declare class OkFvAccordionItemDirective {
|
|
14
|
+
private readonly elementRef;
|
|
15
|
+
private readonly renderer;
|
|
16
|
+
get header(): string;
|
|
17
|
+
set header(value: string);
|
|
18
|
+
get expanded(): boolean;
|
|
19
|
+
set expanded(value: BooleanValueOrAttribute);
|
|
20
|
+
get appearance(): FvAccordionItemAppearance;
|
|
21
|
+
set appearance(value: FvAccordionItemAppearance);
|
|
22
|
+
constructor(elementRef: ElementRef<FvAccordionItem>, renderer: Renderer2);
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OkFvAccordionItemDirective, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OkFvAccordionItemDirective, "ok-fv-accordion-item", never, { "header": { "alias": "header"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class OkFvAccordionItemModule {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OkFvAccordionItemModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OkFvAccordionItemModule, [typeof OkFvAccordionItemDirective], [typeof i2.CommonModule], [typeof OkFvAccordionItemDirective]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<OkFvAccordionItemModule>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { OkFvAccordionItemDirective, OkFvAccordionItemModule };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ni/ok-angular",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Angular components for NI OK Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@angular/common": "^20.3.15",
|
|
26
26
|
"@angular/core": "^20.3.15",
|
|
27
27
|
"@angular/localize": "^20.3.15",
|
|
28
|
-
"@ni/ok-components": "^0.
|
|
28
|
+
"@ni/ok-components": "^0.4.0"
|
|
29
29
|
},
|
|
30
30
|
"module": "fesm2022/ni-ok-angular.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
"./button": {
|
|
41
41
|
"types": "./button/index.d.ts",
|
|
42
42
|
"default": "./fesm2022/ni-ok-angular-button.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./fv-accordion-item": {
|
|
45
|
+
"types": "./fv-accordion-item/index.d.ts",
|
|
46
|
+
"default": "./fesm2022/ni-ok-angular-fv-accordion-item.mjs"
|
|
43
47
|
}
|
|
44
48
|
},
|
|
45
49
|
"sideEffects": false
|