@ni/nimble-angular 17.5.15 → 17.6.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/esm2020/table-column/anchor/nimble-table-column-anchor.directive.mjs +5 -49
- package/esm2020/table-column/date-text/nimble-table-column-date-text.directive.mjs +4 -49
- package/esm2020/table-column/enum-text/nimble-table-column-enum-text.directive.mjs +4 -49
- package/esm2020/table-column/icon/nimble-table-column-icon.directive.mjs +4 -49
- package/esm2020/table-column/mixins/fractional-width-column.mjs +42 -0
- package/esm2020/table-column/mixins/groupable-column.mjs +42 -0
- package/esm2020/table-column/nimble-table-column-base.directive.mjs +1 -1
- package/esm2020/table-column/number-text/nimble-table-column-number-text.directive.mjs +5 -49
- package/esm2020/table-column/public-api.mjs +3 -1
- package/esm2020/table-column/text/nimble-table-column-text.directive.mjs +6 -54
- package/fesm2015/ni-nimble-angular-table-column-anchor.mjs +4 -48
- package/fesm2015/ni-nimble-angular-table-column-anchor.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column-date-text.mjs +3 -48
- package/fesm2015/ni-nimble-angular-table-column-date-text.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column-enum-text.mjs +3 -48
- package/fesm2015/ni-nimble-angular-table-column-enum-text.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column-icon.mjs +3 -48
- package/fesm2015/ni-nimble-angular-table-column-icon.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column-number-text.mjs +4 -48
- package/fesm2015/ni-nimble-angular-table-column-number-text.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column-text.mjs +5 -53
- package/fesm2015/ni-nimble-angular-table-column-text.mjs.map +1 -1
- package/fesm2015/ni-nimble-angular-table-column.mjs +79 -1
- package/fesm2015/ni-nimble-angular-table-column.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-anchor.mjs +4 -48
- package/fesm2020/ni-nimble-angular-table-column-anchor.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-date-text.mjs +3 -48
- package/fesm2020/ni-nimble-angular-table-column-date-text.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-enum-text.mjs +3 -48
- package/fesm2020/ni-nimble-angular-table-column-enum-text.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-icon.mjs +3 -48
- package/fesm2020/ni-nimble-angular-table-column-icon.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-number-text.mjs +4 -48
- package/fesm2020/ni-nimble-angular-table-column-number-text.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column-text.mjs +5 -53
- package/fesm2020/ni-nimble-angular-table-column-text.mjs.map +1 -1
- package/fesm2020/ni-nimble-angular-table-column.mjs +79 -1
- package/fesm2020/ni-nimble-angular-table-column.mjs.map +1 -1
- package/package.json +1 -1
- package/table-column/anchor/nimble-table-column-anchor.directive.d.ts +40 -11
- package/table-column/date-text/nimble-table-column-date-text.directive.d.ts +39 -11
- package/table-column/enum-text/nimble-table-column-enum-text.directive.d.ts +39 -11
- package/table-column/icon/nimble-table-column-icon.directive.d.ts +39 -11
- package/table-column/mixins/fractional-width-column.d.ts +22 -0
- package/table-column/mixins/groupable-column.d.ts +22 -0
- package/table-column/nimble-table-column-base.directive.d.ts +4 -2
- package/table-column/number-text/nimble-table-column-number-text.directive.d.ts +40 -11
- package/table-column/public-api.d.ts +2 -0
- package/table-column/text/nimble-table-column-text.directive.d.ts +39 -13
|
@@ -90,9 +90,87 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
90
90
|
args: ['sort-index']
|
|
91
91
|
}] } });
|
|
92
92
|
|
|
93
|
+
// As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
|
|
95
|
+
function mixinGroupableColumnAPI(base) {
|
|
96
|
+
/**
|
|
97
|
+
* The Mixin that provides a concrete column directive with the API to allow grouping
|
|
98
|
+
* by the values in that column.
|
|
99
|
+
*/
|
|
100
|
+
class GroupableColumnDirective extends base {
|
|
101
|
+
get groupIndex() {
|
|
102
|
+
return this.elementRef.nativeElement.groupIndex;
|
|
103
|
+
}
|
|
104
|
+
// Renaming because property should have camel casing, but attribute should not
|
|
105
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
106
|
+
set groupIndex(value) {
|
|
107
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
|
|
108
|
+
}
|
|
109
|
+
get groupingDisabled() {
|
|
110
|
+
return this.elementRef.nativeElement.groupingDisabled;
|
|
111
|
+
}
|
|
112
|
+
// Renaming because property should have camel casing, but attribute should not
|
|
113
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
114
|
+
set groupingDisabled(value) {
|
|
115
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
GroupableColumnDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GroupableColumnDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
119
|
+
GroupableColumnDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: GroupableColumnDirective, inputs: { groupIndex: ["group-index", "groupIndex"], groupingDisabled: ["grouping-disabled", "groupingDisabled"] }, usesInheritance: true, ngImport: i0 });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GroupableColumnDirective, decorators: [{
|
|
121
|
+
type: Directive
|
|
122
|
+
}], propDecorators: { groupIndex: [{
|
|
123
|
+
type: Input,
|
|
124
|
+
args: ['group-index']
|
|
125
|
+
}], groupingDisabled: [{
|
|
126
|
+
type: Input,
|
|
127
|
+
args: ['grouping-disabled']
|
|
128
|
+
}] } });
|
|
129
|
+
return GroupableColumnDirective;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference
|
|
133
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type
|
|
134
|
+
function mixinFractionalWidthColumnAPI(base) {
|
|
135
|
+
/**
|
|
136
|
+
* The Mixin that provides a concrete column directive with the API to support being resized
|
|
137
|
+
* proportionally within a Table.
|
|
138
|
+
*/
|
|
139
|
+
class FractionalWidthColumnDirective extends base {
|
|
140
|
+
get fractionalWidth() {
|
|
141
|
+
return this.elementRef.nativeElement.fractionalWidth;
|
|
142
|
+
}
|
|
143
|
+
// Renaming because property should have camel casing, but attribute should not
|
|
144
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
145
|
+
set fractionalWidth(value) {
|
|
146
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
|
|
147
|
+
}
|
|
148
|
+
get minPixelWidth() {
|
|
149
|
+
return this.elementRef.nativeElement.minPixelWidth;
|
|
150
|
+
}
|
|
151
|
+
// Renaming because property should have camel casing, but attribute should not
|
|
152
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
153
|
+
set minPixelWidth(value) {
|
|
154
|
+
this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
FractionalWidthColumnDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FractionalWidthColumnDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
158
|
+
FractionalWidthColumnDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: FractionalWidthColumnDirective, inputs: { fractionalWidth: ["fractional-width", "fractionalWidth"], minPixelWidth: ["min-pixel-width", "minPixelWidth"] }, usesInheritance: true, ngImport: i0 });
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: FractionalWidthColumnDirective, decorators: [{
|
|
160
|
+
type: Directive
|
|
161
|
+
}], propDecorators: { fractionalWidth: [{
|
|
162
|
+
type: Input,
|
|
163
|
+
args: ['fractional-width']
|
|
164
|
+
}], minPixelWidth: [{
|
|
165
|
+
type: Input,
|
|
166
|
+
args: ['min-pixel-width']
|
|
167
|
+
}] } });
|
|
168
|
+
return FractionalWidthColumnDirective;
|
|
169
|
+
}
|
|
170
|
+
|
|
93
171
|
/**
|
|
94
172
|
* Generated bundle index. Do not edit.
|
|
95
173
|
*/
|
|
96
174
|
|
|
97
|
-
export { NimbleTableColumnBaseDirective };
|
|
175
|
+
export { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI };
|
|
98
176
|
//# sourceMappingURL=ni-nimble-angular-table-column.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ni-nimble-angular-table-column.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/nimble-table-column-base.directive.ts","../../../../projects/ni/nimble-angular/table-column/ni-nimble-angular-table-column.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport type { TableColumn } from '@ni/nimble-components/dist/esm/table-column/base';\nimport type { DelegatedEventEventDetails, TableColumnValidity } from '@ni/nimble-components/dist/esm/table-column/base/types';\nimport { TableColumnSortDirection } from '@ni/nimble-components/dist/esm/table/types';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\n\nexport { TableColumnSortDirection, DelegatedEventEventDetails, TableColumnValidity };\n\n/**\n * Base class for table column directives.\n */\n@Directive()\nexport class NimbleTableColumnBaseDirective<T extends TableColumn> {\n public get columnId(): string | undefined {\n return this.elementRef.nativeElement.columnId;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('column-id') public set columnId(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'columnId', value);\n }\n\n public get actionMenuSlot(): string | undefined {\n return this.elementRef.nativeElement.actionMenuSlot;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('action-menu-slot') public set actionMenuSlot(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'actionMenuSlot', value);\n }\n\n public get actionMenuLabel(): string | undefined {\n return this.elementRef.nativeElement.actionMenuLabel;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('action-menu-label') public set actionMenuLabel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'actionMenuLabel', value);\n }\n\n public get columnHidden(): boolean {\n return this.elementRef.nativeElement.columnHidden;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('column-hidden') public set columnHidden(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'columnHidden', toBooleanProperty(value));\n }\n\n public get sortDirection(): TableColumnSortDirection {\n return this.elementRef.nativeElement.sortDirection;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('sort-direction') public set sortDirection(value: TableColumnSortDirection) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sortDirection', value);\n }\n\n public get sortIndex(): number | null | undefined {\n return this.elementRef.nativeElement.sortIndex;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('sort-index') public set sortIndex(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sortIndex', toNullableNumberProperty(value));\n }\n\n public constructor(protected readonly renderer: Renderer2, protected readonly elementRef: ElementRef<T>) {}\n\n public checkValidity(): boolean {\n return this.elementRef.nativeElement.checkValidity();\n }\n\n public get validity(): TableColumnValidity {\n return this.elementRef.nativeElement.validity;\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAQA;;AAEG;MAEU,8BAA8B,CAAA;IA6DvC,WAAsC,CAAA,QAAmB,EAAqB,UAAyB,EAAA;AAAjE,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;AAAqB,QAAA,IAAU,CAAA,UAAA,GAAV,UAAU,CAAe;KAAI;AA5D3G,IAAA,IAAW,QAAQ,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC;KACjD;;;IAID,IAA+B,QAAQ,CAAC,KAAyB,EAAA;AAC7D,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;KAC/E;AAED,IAAA,IAAW,cAAc,GAAA;AACrB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC;KACvD;;;IAID,IAAsC,cAAc,CAAC,KAAyB,EAAA;AAC1E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;KACrF;AAED,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC;KACxD;;;IAID,IAAuC,eAAe,CAAC,KAAyB,EAAA;AAC5E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;KACtF;AAED,IAAA,IA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EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,EAAA,UAAA,CAAA,EAAA,cAAA,EAAA,CAAA,kBAAA,EAAA,gBAAA,CAAA,EAAA,eAAA,EAAA,CAAA,mBAAA,EAAA,iBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,eAAA,EAAA,cAAA,CAAA,EAAA,aAAA,EAAA,CAAA,gBAAA,EAAA,eAAA,CAAA,EAAA,SAAA,EAAA,CAAA,YAAA,EAAA,WAAA,CAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAD1C,SAAS;yHAQyB,QAAQ,EAAA,CAAA;sBAAtC,KAAK;uBAAC,WAAW,CAAA;gBAUoB,cAAc,EAAA,CAAA;sBAAnD,KAAK;uBAAC,kBAAkB,CAAA;gBAUc,eAAe,EAAA,CAAA;sBAArD,KAAK;uBAAC,mBAAmB,CAAA;gBAUS,YAAY,EAAA,CAAA;sBAA9C,KAAK;uBAAC,eAAe,CAAA;gBAUc,aAAa,EAAA,CAAA;sBAAhD,KAAK;uBAAC,gBAAgB,CAAA;gBAUS,SAAS,EAAA,CAAA;sBAAxC,KAAK;uBAAC,YAAY,CAAA;;;ACrEvB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ni-nimble-angular-table-column.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/nimble-table-column-base.directive.ts","../../../../projects/ni/nimble-angular/table-column/mixins/groupable-column.ts","../../../../projects/ni/nimble-angular/table-column/mixins/fractional-width-column.ts","../../../../projects/ni/nimble-angular/table-column/ni-nimble-angular-table-column.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport type { TableColumn } from '@ni/nimble-components/dist/esm/table-column/base';\nimport type { DelegatedEventEventDetails, TableColumnValidity } from '@ni/nimble-components/dist/esm/table-column/base/types';\nimport { TableColumnSortDirection } from '@ni/nimble-components/dist/esm/table/types';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\n\nexport { TableColumnSortDirection, DelegatedEventEventDetails, TableColumnValidity };\n\n/**\n * Base class for table column directives.\n */\n@Directive()\nexport class NimbleTableColumnBaseDirective<T extends TableColumn> {\n public get columnId(): string | undefined {\n return this.elementRef.nativeElement.columnId;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('column-id') public set columnId(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'columnId', value);\n }\n\n public get actionMenuSlot(): string | undefined {\n return this.elementRef.nativeElement.actionMenuSlot;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('action-menu-slot') public set actionMenuSlot(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'actionMenuSlot', value);\n }\n\n public get actionMenuLabel(): string | undefined {\n return this.elementRef.nativeElement.actionMenuLabel;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('action-menu-label') public set actionMenuLabel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'actionMenuLabel', value);\n }\n\n public get columnHidden(): boolean {\n return this.elementRef.nativeElement.columnHidden;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('column-hidden') public set columnHidden(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'columnHidden', toBooleanProperty(value));\n }\n\n public get sortDirection(): TableColumnSortDirection {\n return this.elementRef.nativeElement.sortDirection;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('sort-direction') public set sortDirection(value: TableColumnSortDirection) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sortDirection', value);\n }\n\n public get sortIndex(): number | null | undefined {\n return this.elementRef.nativeElement.sortIndex;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('sort-index') public set sortIndex(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'sortIndex', toNullableNumberProperty(value));\n }\n\n /** @internal */\n public readonly renderer: Renderer2;\n /** @internal */\n public readonly elementRef: ElementRef<T>;\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<T>) {\n this.renderer = renderer;\n this.elementRef = elementRef;\n }\n\n public checkValidity(): boolean {\n return this.elementRef.nativeElement.checkValidity();\n }\n\n public get validity(): TableColumnValidity {\n return this.elementRef.nativeElement.validity;\n }\n}","import { Directive, Input } from '@angular/core';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport type { TableColumn } from '@ni/nimble-components/dist/esm/table-column/base';\nimport type { NimbleTableColumnBaseDirective } from '../nimble-table-column-base.directive';\n\ntype GroupableColumn = TableColumn & {\n groupingDisabled: boolean,\n groupIndex?: number | null\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype GroupableColumnDirectiveConstructor<T extends GroupableColumn> = abstract new (...args: any[]) => NimbleTableColumnBaseDirective<T>;\n\n// As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function mixinGroupableColumnAPI<TBase extends GroupableColumnDirectiveConstructor<GroupableColumn>>(base: TBase) {\n /**\n * The Mixin that provides a concrete column directive with the API to allow grouping\n * by the values in that column.\n */\n @Directive()\n abstract class GroupableColumnDirective extends base {\n public get groupIndex(): number | null | undefined {\n return this.elementRef.nativeElement.groupIndex;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('group-index') public set groupIndex(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));\n }\n\n public get groupingDisabled(): boolean {\n return this.elementRef.nativeElement.groupingDisabled;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('grouping-disabled') public set groupingDisabled(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));\n }\n }\n return GroupableColumnDirective;\n}","import { Directive, Input } from '@angular/core';\nimport { NumberValueOrAttribute, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport type { TableColumn } from '@ni/nimble-components/dist/esm/table-column/base';\nimport type { NimbleTableColumnBaseDirective } from '../nimble-table-column-base.directive';\n\ntype FractionalWidthColumn = TableColumn & {\n fractionalWidth?: number | null,\n minPixelWidth?: number | null\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype FractionalWidthColumnDirectiveConstructor<T extends FractionalWidthColumn> = abstract new (...args: any[]) => NimbleTableColumnBaseDirective<T>;\n\n// As the returned class is internal to the function, we can't write a signature that uses is directly, so rely on inference\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type\nexport function mixinFractionalWidthColumnAPI<TBase extends FractionalWidthColumnDirectiveConstructor<FractionalWidthColumn>>(base: TBase) {\n /**\n * The Mixin that provides a concrete column directive with the API to support being resized\n * proportionally within a Table.\n */\n @Directive()\n abstract class FractionalWidthColumnDirective extends base {\n public get fractionalWidth(): number | null | undefined {\n return this.elementRef.nativeElement.fractionalWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('fractional-width') public set fractionalWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));\n }\n\n public get minPixelWidth(): number | null | undefined {\n return this.elementRef.nativeElement.minPixelWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('min-pixel-width') public set minPixelWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));\n }\n }\n return FractionalWidthColumnDirective;\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAQA;;AAEG;MAEU,8BAA8B,CAAA;IAkEvC,WAAmB,CAAA,QAAmB,EAAE,UAAyB,EAAA;AAC7D,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;KAChC;AApED,IAAA,IAAW,QAAQ,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC;KACjD;;;IAID,IAA+B,QAAQ,CAAC,KAAyB,EAAA;AAC7D,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;KAC/E;AAED,IAAA,IAAW,cAAc,GAAA;AACrB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC;KACvD;;;IAID,IAAsC,cAAc,CAAC,KAAyB,EAAA;AAC1E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;KACrF;AAED,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC;KACxD;;;IAID,IAAuC,eAAe,CAAC,KAAyB,EAAA;AAC5E,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,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IAAW,aAAa,GAAA;AACpB,YAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC;SACtD;;;QAID,IAAqC,aAAa,CAAC,KAAgD,EAAA;AAC/F,YAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,eAAe,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;SAC9G;;+HAnBU,8BAA8B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mHAA9B,8BAA8B,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,CAAA,kBAAA,EAAA,iBAAA,CAAA,EAAA,aAAA,EAAA,CAAA,iBAAA,EAAA,eAAA,CAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;+FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;sBAD5C,SAAS;kCAQgC,eAAe,EAAA,CAAA;0BAApD,KAAK;2BAAC,kBAAkB,CAAA;oBAUY,aAAa,EAAA,CAAA;0BAAjD,KAAK;2BAAC,iBAAiB,CAAA;;AAI5B,IAAA,OAAO,8BAA8B,CAAC;AACzC;;AC3CD;;AAEG;;;;"}
|
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Directive, Input, HostListener, NgModule } from '@angular/core';
|
|
3
3
|
export { tableColumnAnchorTag } from '@ni/nimble-components/dist/esm/table-column/anchor';
|
|
4
4
|
export { AnchorAppearance } from '@ni/nimble-components/dist/esm/anchor/types';
|
|
5
|
-
import { toBooleanProperty
|
|
6
|
-
import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
5
|
+
import { toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
|
|
6
|
+
import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -56,7 +56,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
56
56
|
/**
|
|
57
57
|
* Directive to provide Angular integration for the table column element for links.
|
|
58
58
|
*/
|
|
59
|
-
class NimbleTableColumnAnchorDirective extends NimbleTableColumnBaseDirective {
|
|
59
|
+
class NimbleTableColumnAnchorDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
|
|
60
60
|
constructor(renderer, elementRef) {
|
|
61
61
|
super(renderer, elementRef);
|
|
62
62
|
}
|
|
@@ -132,41 +132,9 @@ class NimbleTableColumnAnchorDirective extends NimbleTableColumnBaseDirective {
|
|
|
132
132
|
set download(value) {
|
|
133
133
|
this.renderer.setProperty(this.elementRef.nativeElement, 'download', value);
|
|
134
134
|
}
|
|
135
|
-
get fractionalWidth() {
|
|
136
|
-
return this.elementRef.nativeElement.fractionalWidth;
|
|
137
|
-
}
|
|
138
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
139
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
140
|
-
set fractionalWidth(value) {
|
|
141
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
|
|
142
|
-
}
|
|
143
|
-
get minPixelWidth() {
|
|
144
|
-
return this.elementRef.nativeElement.minPixelWidth;
|
|
145
|
-
}
|
|
146
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
147
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
148
|
-
set minPixelWidth(value) {
|
|
149
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
|
|
150
|
-
}
|
|
151
|
-
get groupIndex() {
|
|
152
|
-
return this.elementRef.nativeElement.groupIndex;
|
|
153
|
-
}
|
|
154
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
155
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
156
|
-
set groupIndex(value) {
|
|
157
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
|
|
158
|
-
}
|
|
159
|
-
get groupingDisabled() {
|
|
160
|
-
return this.elementRef.nativeElement.groupingDisabled;
|
|
161
|
-
}
|
|
162
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
163
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
164
|
-
set groupingDisabled(value) {
|
|
165
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
|
|
166
|
-
}
|
|
167
135
|
}
|
|
168
136
|
NimbleTableColumnAnchorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnAnchorDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
169
|
-
NimbleTableColumnAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnAnchorDirective, selector: "nimble-table-column-anchor", inputs: { labelFieldName: ["label-field-name", "labelFieldName"], hrefFieldName: ["href-field-name", "hrefFieldName"], appearance: "appearance", underlineHidden: ["underline-hidden", "underlineHidden"], hreflang: "hreflang", ping: "ping", referrerpolicy: "referrerpolicy", rel: "rel", target: "target", type: "type", download: "download"
|
|
137
|
+
NimbleTableColumnAnchorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnAnchorDirective, selector: "nimble-table-column-anchor", inputs: { labelFieldName: ["label-field-name", "labelFieldName"], hrefFieldName: ["href-field-name", "hrefFieldName"], appearance: "appearance", underlineHidden: ["underline-hidden", "underlineHidden"], hreflang: "hreflang", ping: "ping", referrerpolicy: "referrerpolicy", rel: "rel", target: "target", type: "type", download: "download" }, usesInheritance: true, ngImport: i0 });
|
|
170
138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnAnchorDirective, decorators: [{
|
|
171
139
|
type: Directive,
|
|
172
140
|
args: [{
|
|
@@ -197,18 +165,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
197
165
|
type: Input
|
|
198
166
|
}], download: [{
|
|
199
167
|
type: Input
|
|
200
|
-
}], fractionalWidth: [{
|
|
201
|
-
type: Input,
|
|
202
|
-
args: ['fractional-width']
|
|
203
|
-
}], minPixelWidth: [{
|
|
204
|
-
type: Input,
|
|
205
|
-
args: ['min-pixel-width']
|
|
206
|
-
}], groupIndex: [{
|
|
207
|
-
type: Input,
|
|
208
|
-
args: ['group-index']
|
|
209
|
-
}], groupingDisabled: [{
|
|
210
|
-
type: Input,
|
|
211
|
-
args: ['grouping-disabled']
|
|
212
168
|
}] } });
|
|
213
169
|
|
|
214
170
|
class NimbleTableColumnAnchorModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ni-nimble-angular-table-column-anchor.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor-navigation-guard.directive.ts","../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor.directive.ts","../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor.module.ts","../../../../projects/ni/nimble-angular/table-column/anchor/ni-nimble-angular-table-column-anchor.ts"],"sourcesContent":["import { Directive, HostListener, Input } from '@angular/core';\nimport type { TableColumnAnchorCellView } from '@ni/nimble-components/dist/esm/table-column/anchor/cell-view';\n\nexport type NavigationGuard = (rowRecordId: string | undefined) => boolean;\n\n/**\n * Directive to allow client to intercept anchor clicks and do router navigation instead of\n * letting the default action handle the navigation. The client supplies a function which is\n * expected to build the proper url and call one of the router's navigation functions, passing\n * the url and any navigation options. If the router successfully navigated, the function should\n * return false to prevent the link's default click handler from also performing the navigation.\n */\n@Directive({\n selector: 'nimble-table-column-anchor[navigationGuard]'\n})\nexport class NimbleTableColumnAnchorNavigationGuardDirective {\n @Input()\n public navigationGuard?: NavigationGuard;\n\n @HostListener('delegated-event', ['$event.detail.originalEvent', '$event.detail.recordId'])\n private onDelegatedEvent(delegatedEvent: Event, recordId: string | undefined): void {\n if (delegatedEvent.type !== 'click') {\n return;\n }\n\n const clickEvent = delegatedEvent as MouseEvent;\n // Only call the navigationGuard for plain left clicks.\n // Those are the only ones that should potentially use the router.\n // Based on: https://github.com/angular/angular/blob/35a3fde5b71ef3b50282fe6f7b37ca1c92b8d2a0/packages/router/src/directives/router_link.ts#L453\n if (clickEvent.button !== 0 || clickEvent.ctrlKey || clickEvent.shiftKey || clickEvent.altKey || clickEvent.metaKey) {\n return;\n }\n\n const cellView = delegatedEvent.target as TableColumnAnchorCellView;\n // Based on: https://github.com/angular/angular/blob/35a3fde5b71ef3b50282fe6f7b37ca1c92b8d2a0/packages/router/src/directives/router_link.ts#L457\n if (typeof cellView.columnConfig?.target === 'string' && cellView.columnConfig.target !== '_self') {\n return;\n }\n\n const href = cellView.cellRecord?.href;\n if (!href) {\n return;\n }\n\n if (this.navigationGuard && !this.navigationGuard(recordId)) {\n clickEvent.preventDefault();\n }\n }\n}\n","import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnAnchor, tableColumnAnchorTag } from '@ni/nimble-components/dist/esm/table-column/anchor';\nimport { AnchorAppearance } from '@ni/nimble-components/dist/esm/anchor/types';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\n\nexport type { TableColumnAnchor };\nexport { tableColumnAnchorTag };\nexport { AnchorAppearance };\n\n/**\n * Directive to provide Angular integration for the table column element for links.\n */\n@Directive({\n selector: 'nimble-table-column-anchor'\n})\nexport class NimbleTableColumnAnchorDirective extends NimbleTableColumnBaseDirective<TableColumnAnchor> {\n public get labelFieldName(): string | undefined {\n return this.elementRef.nativeElement.labelFieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('label-field-name') public set labelFieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'labelFieldName', value);\n }\n\n public get hrefFieldName(): string | undefined {\n return this.elementRef.nativeElement.hrefFieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('href-field-name') public set hrefFieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'hrefFieldName', value);\n }\n\n public get appearance(): AnchorAppearance {\n return this.elementRef.nativeElement.appearance;\n }\n\n @Input() public set appearance(value: AnchorAppearance) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);\n }\n\n public get underlineHidden(): boolean {\n return this.elementRef.nativeElement.underlineHidden;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('underline-hidden') public set underlineHidden(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'underlineHidden', toBooleanProperty(value));\n }\n\n public get hreflang(): string | undefined {\n return this.elementRef.nativeElement.hreflang;\n }\n\n @Input() public set hreflang(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'hreflang', value);\n }\n\n public get ping(): string | undefined {\n return this.elementRef.nativeElement.ping;\n }\n\n @Input() public set ping(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'ping', value);\n }\n\n public get referrerpolicy(): string | undefined {\n return this.elementRef.nativeElement.referrerpolicy;\n }\n\n @Input() public set referrerpolicy(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'referrerpolicy', value);\n }\n\n public get rel(): string | undefined {\n return this.elementRef.nativeElement.rel;\n }\n\n @Input() public set rel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'rel', value);\n }\n\n public get target(): string | undefined {\n return this.elementRef.nativeElement.target;\n }\n\n @Input() public set target(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'target', value);\n }\n\n public get type(): string | undefined {\n return this.elementRef.nativeElement.type;\n }\n\n @Input() public set type(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);\n }\n\n public get download(): string | undefined {\n return this.elementRef.nativeElement.download;\n }\n\n @Input() public set download(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'download', value);\n }\n\n public get fractionalWidth(): number | null | undefined {\n return this.elementRef.nativeElement.fractionalWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('fractional-width') public set fractionalWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));\n }\n\n public get minPixelWidth(): number | null | undefined {\n return this.elementRef.nativeElement.minPixelWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('min-pixel-width') public set minPixelWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));\n }\n\n public get groupIndex(): number | null | undefined {\n return this.elementRef.nativeElement.groupIndex;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('group-index') public set groupIndex(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));\n }\n\n public get groupingDisabled(): boolean {\n return this.elementRef.nativeElement.groupingDisabled;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('grouping-disabled') public set groupingDisabled(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnAnchor>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnAnchorDirective } from './nimble-table-column-anchor.directive';\nimport { NimbleTableColumnAnchorNavigationGuardDirective } from './nimble-table-column-anchor-navigation-guard.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/anchor';\n\n@NgModule({\n declarations: [NimbleTableColumnAnchorDirective, NimbleTableColumnAnchorNavigationGuardDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnAnchorDirective, NimbleTableColumnAnchorNavigationGuardDirective]\n})\nexport class NimbleTableColumnAnchorModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAKA;;;;;;AAMG;MAIU,+CAA+C,CAAA;IAKhD,gBAAgB,CAAC,cAAqB,EAAE,QAA4B,EAAA;AACxE,QAAA,IAAI,cAAc,CAAC,IAAI,KAAK,OAAO,EAAE;YACjC,OAAO;AACV,SAAA;QAED,MAAM,UAAU,GAAG,cAA4B,CAAC;;;;QAIhD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,EAAE;YACjH,OAAO;AACV,SAAA;AAED,QAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAmC,CAAC;;AAEpE,QAAA,IAAI,OAAO,QAAQ,CAAC,YAAY,EAAE,MAAM,KAAK,QAAQ,IAAI,QAAQ,CAAC,YAAY,CAAC,MAAM,KAAK,OAAO,EAAE;YAC/F,OAAO;AACV,SAAA;AAED,QAAA,MAA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zC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,gCAAgC,EAAE,+CAA+C,CAAC;oBACjG,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,CAAC,gCAAgC,EAAE,+CAA+C,CAAC;AAC/F,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ni-nimble-angular-table-column-anchor.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor-navigation-guard.directive.ts","../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor.directive.ts","../../../../projects/ni/nimble-angular/table-column/anchor/nimble-table-column-anchor.module.ts","../../../../projects/ni/nimble-angular/table-column/anchor/ni-nimble-angular-table-column-anchor.ts"],"sourcesContent":["import { Directive, HostListener, Input } from '@angular/core';\nimport type { TableColumnAnchorCellView } from '@ni/nimble-components/dist/esm/table-column/anchor/cell-view';\n\nexport type NavigationGuard = (rowRecordId: string | undefined) => boolean;\n\n/**\n * Directive to allow client to intercept anchor clicks and do router navigation instead of\n * letting the default action handle the navigation. The client supplies a function which is\n * expected to build the proper url and call one of the router's navigation functions, passing\n * the url and any navigation options. If the router successfully navigated, the function should\n * return false to prevent the link's default click handler from also performing the navigation.\n */\n@Directive({\n selector: 'nimble-table-column-anchor[navigationGuard]'\n})\nexport class NimbleTableColumnAnchorNavigationGuardDirective {\n @Input()\n public navigationGuard?: NavigationGuard;\n\n @HostListener('delegated-event', ['$event.detail.originalEvent', '$event.detail.recordId'])\n private onDelegatedEvent(delegatedEvent: Event, recordId: string | undefined): void {\n if (delegatedEvent.type !== 'click') {\n return;\n }\n\n const clickEvent = delegatedEvent as MouseEvent;\n // Only call the navigationGuard for plain left clicks.\n // Those are the only ones that should potentially use the router.\n // Based on: https://github.com/angular/angular/blob/35a3fde5b71ef3b50282fe6f7b37ca1c92b8d2a0/packages/router/src/directives/router_link.ts#L453\n if (clickEvent.button !== 0 || clickEvent.ctrlKey || clickEvent.shiftKey || clickEvent.altKey || clickEvent.metaKey) {\n return;\n }\n\n const cellView = delegatedEvent.target as TableColumnAnchorCellView;\n // Based on: https://github.com/angular/angular/blob/35a3fde5b71ef3b50282fe6f7b37ca1c92b8d2a0/packages/router/src/directives/router_link.ts#L457\n if (typeof cellView.columnConfig?.target === 'string' && cellView.columnConfig.target !== '_self') {\n return;\n }\n\n const href = cellView.cellRecord?.href;\n if (!href) {\n return;\n }\n\n if (this.navigationGuard && !this.navigationGuard(recordId)) {\n clickEvent.preventDefault();\n }\n }\n}\n","import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnAnchor, tableColumnAnchorTag } from '@ni/nimble-components/dist/esm/table-column/anchor';\nimport { AnchorAppearance } from '@ni/nimble-components/dist/esm/anchor/types';\nimport { BooleanValueOrAttribute, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI } from '@ni/nimble-angular/table-column';\n\nexport type { TableColumnAnchor };\nexport { tableColumnAnchorTag };\nexport { AnchorAppearance };\n\n/**\n * Directive to provide Angular integration for the table column element for links.\n */\n@Directive({\n selector: 'nimble-table-column-anchor'\n})\nexport class NimbleTableColumnAnchorDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnAnchor>)) {\n public get labelFieldName(): string | undefined {\n return this.elementRef.nativeElement.labelFieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('label-field-name') public set labelFieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'labelFieldName', value);\n }\n\n public get hrefFieldName(): string | undefined {\n return this.elementRef.nativeElement.hrefFieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('href-field-name') public set hrefFieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'hrefFieldName', value);\n }\n\n public get appearance(): AnchorAppearance {\n return this.elementRef.nativeElement.appearance;\n }\n\n @Input() public set appearance(value: AnchorAppearance) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'appearance', value);\n }\n\n public get underlineHidden(): boolean {\n return this.elementRef.nativeElement.underlineHidden;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('underline-hidden') public set underlineHidden(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'underlineHidden', toBooleanProperty(value));\n }\n\n public get hreflang(): string | undefined {\n return this.elementRef.nativeElement.hreflang;\n }\n\n @Input() public set hreflang(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'hreflang', value);\n }\n\n public get ping(): string | undefined {\n return this.elementRef.nativeElement.ping;\n }\n\n @Input() public set ping(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'ping', value);\n }\n\n public get referrerpolicy(): string | undefined {\n return this.elementRef.nativeElement.referrerpolicy;\n }\n\n @Input() public set referrerpolicy(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'referrerpolicy', value);\n }\n\n public get rel(): string | undefined {\n return this.elementRef.nativeElement.rel;\n }\n\n @Input() public set rel(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'rel', value);\n }\n\n public get target(): string | undefined {\n return this.elementRef.nativeElement.target;\n }\n\n @Input() public set target(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'target', value);\n }\n\n public get type(): string | undefined {\n return this.elementRef.nativeElement.type;\n }\n\n @Input() public set type(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'type', value);\n }\n\n public get download(): string | undefined {\n return this.elementRef.nativeElement.download;\n }\n\n @Input() public set download(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'download', value);\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnAnchor>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnAnchorDirective } from './nimble-table-column-anchor.directive';\nimport { NimbleTableColumnAnchorNavigationGuardDirective } from './nimble-table-column-anchor-navigation-guard.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/anchor';\n\n@NgModule({\n declarations: [NimbleTableColumnAnchorDirective, NimbleTableColumnAnchorNavigationGuardDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnAnchorDirective, NimbleTableColumnAnchorNavigationGuardDirective]\n})\nexport class NimbleTableColumnAnchorModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAKA;;;;;;AAMG;MAIU,+CAA+C,CAAA;IAKhD,gBAAgB,CAAC,cAAqB,EAAE,QAA4B,EAAA;AACxE,QAAA,IAAI,cAAc,CAAC,IAAI,KAAK,OAAO,EAAE;YACjC,OAAO;AACV,SAAA;QAED,MAAM,UAAU,GAAG,cAA4B,CAAC;;;;QAIhD,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,IAAI,UAAU,CAAC,QAAQ,IAAI,UAAU,CAAC,MAAM,IAAI,UAAU,CAAC,OAAO,EAAE;YACjH,OAAO;AACV,SAAA;AAED,QAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAmC,CAAC;;AAEpE,QAAA,IAAI,OAAO,QAAQ,CAAC,YAAY,EAAE,MAAM,KAAK,QAAQ,IAAI,QAAQ,CAAC,YAAY,CAAC,MAAM,KAAK,OAAO,EAAE;YAC/F,OAAO;AACV,SAAA;AAED,QAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC;QACvC,IAAI,CAAC,IAAI,EAAE;YACP,OAAO;AACV,SAAA;QAED,IAAI,IAAI,CA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,EAAA,CAAA;sBAA3B,KAAK;gBAQc,IAAI,EAAA,CAAA;sBAAvB,KAAK;gBAQc,cAAc,EAAA,CAAA;sBAAjC,KAAK;gBAQc,GAAG,EAAA,CAAA;sBAAtB,KAAK;gBAQc,MAAM,EAAA,CAAA;sBAAzB,KAAK;gBAQc,IAAI,EAAA,CAAA;sBAAvB,KAAK;gBAQc,QAAQ,EAAA,CAAA;sBAA3B,KAAK;;;MC/FG,6BAA6B,CAAA;;0HAA7B,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2HAA7B,6BAA6B,EAAA,YAAA,EAAA,CAJvB,gCAAgC,EAAE,+CAA+C,aACtF,YAAY,CAAA,EAAA,OAAA,EAAA,CACZ,gCAAgC,EAAE,+CAA+C,CAAA,EAAA,CAAA,CAAA;AAElF,6BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,YAH5B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGb,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBALzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,gCAAgC,EAAE,+CAA+C,CAAC;oBACjG,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,CAAC,gCAAgC,EAAE,+CAA+C,CAAC;AAC/F,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, Input, NgModule } from '@angular/core';
|
|
3
3
|
export { tableColumnDateTextTag } from '@ni/nimble-components/dist/esm/table-column/date-text';
|
|
4
|
-
import {
|
|
5
|
-
import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
4
|
+
import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
6
5
|
export { DateTextFormat } from '@ni/nimble-components/dist/esm/table-column/date-text/types';
|
|
7
6
|
import { CommonModule } from '@angular/common';
|
|
8
7
|
import '@ni/nimble-components/dist/esm/table-column/text';
|
|
@@ -10,7 +9,7 @@ import '@ni/nimble-components/dist/esm/table-column/text';
|
|
|
10
9
|
/**
|
|
11
10
|
* Directive to provide Angular integration for the table column element for date text.
|
|
12
11
|
*/
|
|
13
|
-
class NimbleTableColumnDateTextDirective extends NimbleTableColumnBaseDirective {
|
|
12
|
+
class NimbleTableColumnDateTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
|
|
14
13
|
constructor(renderer, elementRef) {
|
|
15
14
|
super(renderer, elementRef);
|
|
16
15
|
}
|
|
@@ -190,41 +189,9 @@ class NimbleTableColumnDateTextDirective extends NimbleTableColumnBaseDirective
|
|
|
190
189
|
set customHourCycle(value) {
|
|
191
190
|
this.renderer.setProperty(this.elementRef.nativeElement, 'customHourCycle', value);
|
|
192
191
|
}
|
|
193
|
-
get fractionalWidth() {
|
|
194
|
-
return this.elementRef.nativeElement.fractionalWidth;
|
|
195
|
-
}
|
|
196
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
197
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
198
|
-
set fractionalWidth(value) {
|
|
199
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
|
|
200
|
-
}
|
|
201
|
-
get minPixelWidth() {
|
|
202
|
-
return this.elementRef.nativeElement.minPixelWidth;
|
|
203
|
-
}
|
|
204
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
205
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
206
|
-
set minPixelWidth(value) {
|
|
207
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
|
|
208
|
-
}
|
|
209
|
-
get groupIndex() {
|
|
210
|
-
return this.elementRef.nativeElement.groupIndex;
|
|
211
|
-
}
|
|
212
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
213
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
214
|
-
set groupIndex(value) {
|
|
215
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
|
|
216
|
-
}
|
|
217
|
-
get groupingDisabled() {
|
|
218
|
-
return this.elementRef.nativeElement.groupingDisabled;
|
|
219
|
-
}
|
|
220
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
221
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
222
|
-
set groupingDisabled(value) {
|
|
223
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
|
|
224
|
-
}
|
|
225
192
|
}
|
|
226
193
|
NimbleTableColumnDateTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnDateTextDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
227
|
-
NimbleTableColumnDateTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnDateTextDirective, selector: "nimble-table-column-date-text", inputs: { fieldName: ["field-name", "fieldName"], format: "format", customLocaleMatcher: ["custom-locale-matcher", "customLocaleMatcher"], customWeekday: ["custom-weekday", "customWeekday"], customEra: ["custom-era", "customEra"], customYear: ["custom-year", "customYear"], customMonth: ["custom-month", "customMonth"], customDay: ["custom-day", "customDay"], customHour: ["custom-hour", "customHour"], customMinute: ["custom-minute", "customMinute"], customSecond: ["custom-second", "customSecond"], customTimeZoneName: ["custom-time-zone-name", "customTimeZoneName"], customFormatMatcher: ["custom-format-matcher", "customFormatMatcher"], customHour12: ["custom-hour12", "customHour12"], customTimeZone: ["custom-time-zone", "customTimeZone"], customCalendar: ["custom-calendar", "customCalendar"], customDayPeriod: ["custom-day-period", "customDayPeriod"], customNumberingSystem: ["custom-numbering-system", "customNumberingSystem"], customDateStyle: ["custom-date-style", "customDateStyle"], customTimeStyle: ["custom-time-style", "customTimeStyle"], customHourCycle: ["custom-hour-cycle", "customHourCycle"]
|
|
194
|
+
NimbleTableColumnDateTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnDateTextDirective, selector: "nimble-table-column-date-text", inputs: { fieldName: ["field-name", "fieldName"], format: "format", customLocaleMatcher: ["custom-locale-matcher", "customLocaleMatcher"], customWeekday: ["custom-weekday", "customWeekday"], customEra: ["custom-era", "customEra"], customYear: ["custom-year", "customYear"], customMonth: ["custom-month", "customMonth"], customDay: ["custom-day", "customDay"], customHour: ["custom-hour", "customHour"], customMinute: ["custom-minute", "customMinute"], customSecond: ["custom-second", "customSecond"], customTimeZoneName: ["custom-time-zone-name", "customTimeZoneName"], customFormatMatcher: ["custom-format-matcher", "customFormatMatcher"], customHour12: ["custom-hour12", "customHour12"], customTimeZone: ["custom-time-zone", "customTimeZone"], customCalendar: ["custom-calendar", "customCalendar"], customDayPeriod: ["custom-day-period", "customDayPeriod"], customNumberingSystem: ["custom-numbering-system", "customNumberingSystem"], customDateStyle: ["custom-date-style", "customDateStyle"], customTimeStyle: ["custom-time-style", "customTimeStyle"], customHourCycle: ["custom-hour-cycle", "customHourCycle"] }, usesInheritance: true, ngImport: i0 });
|
|
228
195
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnDateTextDirective, decorators: [{
|
|
229
196
|
type: Directive,
|
|
230
197
|
args: [{
|
|
@@ -292,18 +259,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
292
259
|
}], customHourCycle: [{
|
|
293
260
|
type: Input,
|
|
294
261
|
args: ['custom-hour-cycle']
|
|
295
|
-
}], fractionalWidth: [{
|
|
296
|
-
type: Input,
|
|
297
|
-
args: ['fractional-width']
|
|
298
|
-
}], minPixelWidth: [{
|
|
299
|
-
type: Input,
|
|
300
|
-
args: ['min-pixel-width']
|
|
301
|
-
}], groupIndex: [{
|
|
302
|
-
type: Input,
|
|
303
|
-
args: ['group-index']
|
|
304
|
-
}], groupingDisabled: [{
|
|
305
|
-
type: Input,
|
|
306
|
-
args: ['grouping-disabled']
|
|
307
262
|
}] } });
|
|
308
263
|
|
|
309
264
|
class NimbleTableColumnDateTextModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ni-nimble-angular-table-column-date-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/date-text/nimble-table-column-date-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/date-text/nimble-table-column-date-text.module.ts","../../../../projects/ni/nimble-angular/table-column/date-text/ni-nimble-angular-table-column-date-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnDateText, tableColumnDateTextTag } from '@ni/nimble-components/dist/esm/table-column/date-text';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\nimport {\n DateTextFormat,\n DateStyle,\n DayFormat,\n DayPeriodFormat,\n EraFormat,\n FormatMatcherAlgorithm,\n HourCycleFormat,\n HourFormat,\n LocaleMatcherAlgorithm,\n MinuteFormat,\n MonthFormat,\n SecondFormat,\n TimeStyle,\n TimeZoneNameFormat,\n WeekdayFormat,\n YearFormat\n} from '@ni/nimble-components/dist/esm/table-column/date-text/types';\n\nexport type { TableColumnDateText };\nexport { DateStyle };\nexport { DateTextFormat };\nexport { DayFormat };\nexport { DayPeriodFormat };\nexport { EraFormat };\nexport { FormatMatcherAlgorithm };\nexport { HourCycleFormat };\nexport { HourFormat };\nexport { LocaleMatcherAlgorithm };\nexport { MinuteFormat };\nexport { MonthFormat };\nexport { SecondFormat };\nexport { TimeStyle };\nexport { TimeZoneNameFormat };\nexport { WeekdayFormat };\nexport { YearFormat };\nexport { tableColumnDateTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for date text.\n */\n@Directive({\n selector: 'nimble-table-column-date-text'\n})\nexport class NimbleTableColumnDateTextDirective extends NimbleTableColumnBaseDirective<TableColumnDateText> {\n public get fieldName(): string | undefined {\n return this.elementRef.nativeElement.fieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('field-name') public set fieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'fieldName', value);\n }\n\n public get format(): DateTextFormat {\n return this.elementRef.nativeElement.format;\n }\n\n @Input() public set format(value: DateTextFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'format', value);\n }\n\n public get customLocaleMatcher(): LocaleMatcherAlgorithm {\n return this.elementRef.nativeElement.customLocaleMatcher;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-locale-matcher') public set customLocaleMatcher(value: LocaleMatcherAlgorithm) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customLocaleMatcher', value);\n }\n\n public get customWeekday(): WeekdayFormat {\n return this.elementRef.nativeElement.customWeekday;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-weekday') public set customWeekday(value: WeekdayFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customWeekday', value);\n }\n\n public get customEra(): EraFormat {\n return this.elementRef.nativeElement.customEra;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-era') public set customEra(value: EraFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customEra', value);\n }\n\n public get customYear(): YearFormat {\n return this.elementRef.nativeElement.customYear;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-year') public set customYear(value: YearFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customYear', value);\n }\n\n public get customMonth(): MonthFormat {\n return this.elementRef.nativeElement.customMonth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-month') public set customMonth(value: MonthFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customMonth', value);\n }\n\n public get customDay(): DayFormat {\n return this.elementRef.nativeElement.customDay;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-day') public set customDay(value: DayFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDay', value);\n }\n\n public get customHour(): HourFormat {\n return this.elementRef.nativeElement.customHour;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour') public set customHour(value: HourFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHour', value);\n }\n\n public get customMinute(): MinuteFormat {\n return this.elementRef.nativeElement.customMinute;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-minute') public set customMinute(value: MinuteFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customMinute', value);\n }\n\n public get customSecond(): SecondFormat {\n return this.elementRef.nativeElement.customSecond;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-second') public set customSecond(value: SecondFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customSecond', value);\n }\n\n public get customTimeZoneName(): TimeZoneNameFormat {\n return this.elementRef.nativeElement.customTimeZoneName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-zone-name') public set customTimeZoneName(value: TimeZoneNameFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeZoneName', value);\n }\n\n public get customFormatMatcher(): FormatMatcherAlgorithm {\n return this.elementRef.nativeElement.customFormatMatcher;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-format-matcher') public set customFormatMatcher(value: FormatMatcherAlgorithm) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customFormatMatcher', value);\n }\n\n public get customHour12(): boolean | undefined {\n return this.elementRef.nativeElement.customHour12;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour12') public set customHour12(value: boolean | 'true' | 'false' | undefined) {\n let convertedValue;\n if (typeof value === 'boolean') {\n convertedValue = value;\n } else if (value === undefined) {\n convertedValue = undefined;\n } else {\n convertedValue = value === 'true';\n }\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHour12', convertedValue);\n }\n\n public get customTimeZone(): string | undefined {\n return this.elementRef.nativeElement.customTimeZone;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-zone') public set customTimeZone(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeZone', value);\n }\n\n public get customCalendar(): string | undefined {\n return this.elementRef.nativeElement.customCalendar;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-calendar') public set customCalendar(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customCalendar', value);\n }\n\n public get customDayPeriod(): DayPeriodFormat {\n return this.elementRef.nativeElement.customDayPeriod;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-day-period') public set customDayPeriod(value: DayPeriodFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDayPeriod', value);\n }\n\n public get customNumberingSystem(): string | undefined {\n return this.elementRef.nativeElement.customNumberingSystem;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-numbering-system') public set customNumberingSystem(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customNumberingSystem', value);\n }\n\n public get customDateStyle(): DateStyle {\n return this.elementRef.nativeElement.customDateStyle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-date-style') public set customDateStyle(value: DateStyle) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDateStyle', value);\n }\n\n public get customTimeStyle(): TimeStyle {\n return this.elementRef.nativeElement.customTimeStyle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-style') public set customTimeStyle(value: TimeStyle) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeStyle', value);\n }\n\n public get customHourCycle(): HourCycleFormat {\n return this.elementRef.nativeElement.customHourCycle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour-cycle') public set customHourCycle(value: HourCycleFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHourCycle', value);\n }\n\n public get fractionalWidth(): number | null | undefined {\n return this.elementRef.nativeElement.fractionalWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('fractional-width') public set fractionalWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));\n }\n\n public get minPixelWidth(): number | null | undefined {\n return this.elementRef.nativeElement.minPixelWidth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('min-pixel-width') public set minPixelWidth(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));\n }\n\n public get groupIndex(): number | null | undefined {\n return this.elementRef.nativeElement.groupIndex;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('group-index') public set groupIndex(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));\n }\n\n public get groupingDisabled(): boolean {\n return this.elementRef.nativeElement.groupingDisabled;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('grouping-disabled') public set groupingDisabled(value: BooleanValueOrAttribute) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnDateText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnDateTextDirective } from './nimble-table-column-date-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnDateTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnDateTextDirective]\n})\nexport class NimbleTableColumnDateTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AA0CA;;AAEG;AAIG,MAAO,kCAAmC,SAAQ,8BAAmD,CAAA;IAiQvG,WAAmB,CAAA,QAAmB,EAAE,UAA2C,EAAA;AAC/E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AAlQD,IAAA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ni/nimble-angular/table-column/date-text/nimble-table-column-date-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/date-text/nimble-table-column-date-text.module.ts","../../../../projects/ni/nimble-angular/table-column/date-text/ni-nimble-angular-table-column-date-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnDateText, tableColumnDateTextTag } from '@ni/nimble-components/dist/esm/table-column/date-text';\nimport { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI } from '@ni/nimble-angular/table-column';\nimport {\n DateTextFormat,\n DateStyle,\n DayFormat,\n DayPeriodFormat,\n EraFormat,\n FormatMatcherAlgorithm,\n HourCycleFormat,\n HourFormat,\n LocaleMatcherAlgorithm,\n MinuteFormat,\n MonthFormat,\n SecondFormat,\n TimeStyle,\n TimeZoneNameFormat,\n WeekdayFormat,\n YearFormat\n} from '@ni/nimble-components/dist/esm/table-column/date-text/types';\n\nexport type { TableColumnDateText };\nexport { DateStyle };\nexport { DateTextFormat };\nexport { DayFormat };\nexport { DayPeriodFormat };\nexport { EraFormat };\nexport { FormatMatcherAlgorithm };\nexport { HourCycleFormat };\nexport { HourFormat };\nexport { LocaleMatcherAlgorithm };\nexport { MinuteFormat };\nexport { MonthFormat };\nexport { SecondFormat };\nexport { TimeStyle };\nexport { TimeZoneNameFormat };\nexport { WeekdayFormat };\nexport { YearFormat };\nexport { tableColumnDateTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for date text.\n */\n@Directive({\n selector: 'nimble-table-column-date-text'\n})\nexport class NimbleTableColumnDateTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnDateText>)) {\n public get fieldName(): string | undefined {\n return this.elementRef.nativeElement.fieldName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('field-name') public set fieldName(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'fieldName', value);\n }\n\n public get format(): DateTextFormat {\n return this.elementRef.nativeElement.format;\n }\n\n @Input() public set format(value: DateTextFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'format', value);\n }\n\n public get customLocaleMatcher(): LocaleMatcherAlgorithm {\n return this.elementRef.nativeElement.customLocaleMatcher;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-locale-matcher') public set customLocaleMatcher(value: LocaleMatcherAlgorithm) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customLocaleMatcher', value);\n }\n\n public get customWeekday(): WeekdayFormat {\n return this.elementRef.nativeElement.customWeekday;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-weekday') public set customWeekday(value: WeekdayFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customWeekday', value);\n }\n\n public get customEra(): EraFormat {\n return this.elementRef.nativeElement.customEra;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-era') public set customEra(value: EraFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customEra', value);\n }\n\n public get customYear(): YearFormat {\n return this.elementRef.nativeElement.customYear;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-year') public set customYear(value: YearFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customYear', value);\n }\n\n public get customMonth(): MonthFormat {\n return this.elementRef.nativeElement.customMonth;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-month') public set customMonth(value: MonthFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customMonth', value);\n }\n\n public get customDay(): DayFormat {\n return this.elementRef.nativeElement.customDay;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-day') public set customDay(value: DayFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDay', value);\n }\n\n public get customHour(): HourFormat {\n return this.elementRef.nativeElement.customHour;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour') public set customHour(value: HourFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHour', value);\n }\n\n public get customMinute(): MinuteFormat {\n return this.elementRef.nativeElement.customMinute;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-minute') public set customMinute(value: MinuteFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customMinute', value);\n }\n\n public get customSecond(): SecondFormat {\n return this.elementRef.nativeElement.customSecond;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-second') public set customSecond(value: SecondFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customSecond', value);\n }\n\n public get customTimeZoneName(): TimeZoneNameFormat {\n return this.elementRef.nativeElement.customTimeZoneName;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-zone-name') public set customTimeZoneName(value: TimeZoneNameFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeZoneName', value);\n }\n\n public get customFormatMatcher(): FormatMatcherAlgorithm {\n return this.elementRef.nativeElement.customFormatMatcher;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-format-matcher') public set customFormatMatcher(value: FormatMatcherAlgorithm) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customFormatMatcher', value);\n }\n\n public get customHour12(): boolean | undefined {\n return this.elementRef.nativeElement.customHour12;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour12') public set customHour12(value: boolean | 'true' | 'false' | undefined) {\n let convertedValue;\n if (typeof value === 'boolean') {\n convertedValue = value;\n } else if (value === undefined) {\n convertedValue = undefined;\n } else {\n convertedValue = value === 'true';\n }\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHour12', convertedValue);\n }\n\n public get customTimeZone(): string | undefined {\n return this.elementRef.nativeElement.customTimeZone;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-zone') public set customTimeZone(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeZone', value);\n }\n\n public get customCalendar(): string | undefined {\n return this.elementRef.nativeElement.customCalendar;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-calendar') public set customCalendar(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customCalendar', value);\n }\n\n public get customDayPeriod(): DayPeriodFormat {\n return this.elementRef.nativeElement.customDayPeriod;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-day-period') public set customDayPeriod(value: DayPeriodFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDayPeriod', value);\n }\n\n public get customNumberingSystem(): string | undefined {\n return this.elementRef.nativeElement.customNumberingSystem;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-numbering-system') public set customNumberingSystem(value: string | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customNumberingSystem', value);\n }\n\n public get customDateStyle(): DateStyle {\n return this.elementRef.nativeElement.customDateStyle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-date-style') public set customDateStyle(value: DateStyle) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customDateStyle', value);\n }\n\n public get customTimeStyle(): TimeStyle {\n return this.elementRef.nativeElement.customTimeStyle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-time-style') public set customTimeStyle(value: TimeStyle) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customTimeStyle', value);\n }\n\n public get customHourCycle(): HourCycleFormat {\n return this.elementRef.nativeElement.customHourCycle;\n }\n\n // Renaming because property should have camel casing, but attribute should not\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('custom-hour-cycle') public set customHourCycle(value: HourCycleFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'customHourCycle', value);\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnDateText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnDateTextDirective } from './nimble-table-column-date-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnDateTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnDateTextDirective]\n})\nexport class NimbleTableColumnDateTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAyCA;;AAEG;AAIG,MAAO,kCAAmC,SAAQ,6BAA6B,CAAC,uBAAuB,EAAC,8BAAmD,EAAC,CAAC,CAAA;IAyN/J,WAAmB,CAAA,QAAmB,EAAE,UAA2C,EAAA;AAC/E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AA1ND,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;KAClD;;;IAID,IAAgC,SAAS,CAAC,KAAyB,EAAA;AAC/D,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAA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A,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,EAJzB,YAAA,EAAA,CAAA,kCAAkC,CACvC,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,kCAAkC,CAAA,EAAA,CAAA,CAAA;AAEnC,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAH9B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGb,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,kCAAkC,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,kCAAkC,CAAC;AAChD,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, Input, NgModule } from '@angular/core';
|
|
3
3
|
export { tableColumnEnumTextTag } from '@ni/nimble-components/dist/esm/table-column/enum-text';
|
|
4
|
-
import {
|
|
5
|
-
import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
4
|
+
import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
|
|
6
5
|
export { MappingKeyType } from '@ni/nimble-components/dist/esm/table-column/enum-base/types';
|
|
7
6
|
import { CommonModule } from '@angular/common';
|
|
8
7
|
import '@ni/nimble-components/dist/esm/table-column/text';
|
|
@@ -10,7 +9,7 @@ import '@ni/nimble-components/dist/esm/table-column/text';
|
|
|
10
9
|
/**
|
|
11
10
|
* Directive to provide Angular integration for the table column element for enum text.
|
|
12
11
|
*/
|
|
13
|
-
class NimbleTableColumnEnumTextDirective extends NimbleTableColumnBaseDirective {
|
|
12
|
+
class NimbleTableColumnEnumTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
|
|
14
13
|
constructor(renderer, elementRef) {
|
|
15
14
|
super(renderer, elementRef);
|
|
16
15
|
}
|
|
@@ -30,41 +29,9 @@ class NimbleTableColumnEnumTextDirective extends NimbleTableColumnBaseDirective
|
|
|
30
29
|
set keyType(value) {
|
|
31
30
|
this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', value);
|
|
32
31
|
}
|
|
33
|
-
get fractionalWidth() {
|
|
34
|
-
return this.elementRef.nativeElement.fractionalWidth;
|
|
35
|
-
}
|
|
36
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
37
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
38
|
-
set fractionalWidth(value) {
|
|
39
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
|
|
40
|
-
}
|
|
41
|
-
get minPixelWidth() {
|
|
42
|
-
return this.elementRef.nativeElement.minPixelWidth;
|
|
43
|
-
}
|
|
44
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
45
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
46
|
-
set minPixelWidth(value) {
|
|
47
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
|
|
48
|
-
}
|
|
49
|
-
get groupIndex() {
|
|
50
|
-
return this.elementRef.nativeElement.groupIndex;
|
|
51
|
-
}
|
|
52
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
53
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
54
|
-
set groupIndex(value) {
|
|
55
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
|
|
56
|
-
}
|
|
57
|
-
get groupingDisabled() {
|
|
58
|
-
return this.elementRef.nativeElement.groupingDisabled;
|
|
59
|
-
}
|
|
60
|
-
// Renaming because property should have camel casing, but attribute should not
|
|
61
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
62
|
-
set groupingDisabled(value) {
|
|
63
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
|
|
64
|
-
}
|
|
65
32
|
}
|
|
66
33
|
NimbleTableColumnEnumTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnEnumTextDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
67
|
-
NimbleTableColumnEnumTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnEnumTextDirective, selector: "nimble-table-column-enum-text", inputs: { fieldName: ["field-name", "fieldName"], keyType: ["key-type", "keyType"]
|
|
34
|
+
NimbleTableColumnEnumTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnEnumTextDirective, selector: "nimble-table-column-enum-text", inputs: { fieldName: ["field-name", "fieldName"], keyType: ["key-type", "keyType"] }, usesInheritance: true, ngImport: i0 });
|
|
68
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnEnumTextDirective, decorators: [{
|
|
69
36
|
type: Directive,
|
|
70
37
|
args: [{
|
|
@@ -76,18 +43,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
76
43
|
}], keyType: [{
|
|
77
44
|
type: Input,
|
|
78
45
|
args: ['key-type']
|
|
79
|
-
}], fractionalWidth: [{
|
|
80
|
-
type: Input,
|
|
81
|
-
args: ['fractional-width']
|
|
82
|
-
}], minPixelWidth: [{
|
|
83
|
-
type: Input,
|
|
84
|
-
args: ['min-pixel-width']
|
|
85
|
-
}], groupIndex: [{
|
|
86
|
-
type: Input,
|
|
87
|
-
args: ['group-index']
|
|
88
|
-
}], groupingDisabled: [{
|
|
89
|
-
type: Input,
|
|
90
|
-
args: ['grouping-disabled']
|
|
91
46
|
}] } });
|
|
92
47
|
|
|
93
48
|
class NimbleTableColumnEnumTextModule {
|