@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.
Files changed (49) hide show
  1. package/esm2020/table-column/anchor/nimble-table-column-anchor.directive.mjs +5 -49
  2. package/esm2020/table-column/date-text/nimble-table-column-date-text.directive.mjs +4 -49
  3. package/esm2020/table-column/enum-text/nimble-table-column-enum-text.directive.mjs +4 -49
  4. package/esm2020/table-column/icon/nimble-table-column-icon.directive.mjs +4 -49
  5. package/esm2020/table-column/mixins/fractional-width-column.mjs +42 -0
  6. package/esm2020/table-column/mixins/groupable-column.mjs +42 -0
  7. package/esm2020/table-column/nimble-table-column-base.directive.mjs +1 -1
  8. package/esm2020/table-column/number-text/nimble-table-column-number-text.directive.mjs +5 -49
  9. package/esm2020/table-column/public-api.mjs +3 -1
  10. package/esm2020/table-column/text/nimble-table-column-text.directive.mjs +6 -54
  11. package/fesm2015/ni-nimble-angular-table-column-anchor.mjs +4 -48
  12. package/fesm2015/ni-nimble-angular-table-column-anchor.mjs.map +1 -1
  13. package/fesm2015/ni-nimble-angular-table-column-date-text.mjs +3 -48
  14. package/fesm2015/ni-nimble-angular-table-column-date-text.mjs.map +1 -1
  15. package/fesm2015/ni-nimble-angular-table-column-enum-text.mjs +3 -48
  16. package/fesm2015/ni-nimble-angular-table-column-enum-text.mjs.map +1 -1
  17. package/fesm2015/ni-nimble-angular-table-column-icon.mjs +3 -48
  18. package/fesm2015/ni-nimble-angular-table-column-icon.mjs.map +1 -1
  19. package/fesm2015/ni-nimble-angular-table-column-number-text.mjs +4 -48
  20. package/fesm2015/ni-nimble-angular-table-column-number-text.mjs.map +1 -1
  21. package/fesm2015/ni-nimble-angular-table-column-text.mjs +5 -53
  22. package/fesm2015/ni-nimble-angular-table-column-text.mjs.map +1 -1
  23. package/fesm2015/ni-nimble-angular-table-column.mjs +79 -1
  24. package/fesm2015/ni-nimble-angular-table-column.mjs.map +1 -1
  25. package/fesm2020/ni-nimble-angular-table-column-anchor.mjs +4 -48
  26. package/fesm2020/ni-nimble-angular-table-column-anchor.mjs.map +1 -1
  27. package/fesm2020/ni-nimble-angular-table-column-date-text.mjs +3 -48
  28. package/fesm2020/ni-nimble-angular-table-column-date-text.mjs.map +1 -1
  29. package/fesm2020/ni-nimble-angular-table-column-enum-text.mjs +3 -48
  30. package/fesm2020/ni-nimble-angular-table-column-enum-text.mjs.map +1 -1
  31. package/fesm2020/ni-nimble-angular-table-column-icon.mjs +3 -48
  32. package/fesm2020/ni-nimble-angular-table-column-icon.mjs.map +1 -1
  33. package/fesm2020/ni-nimble-angular-table-column-number-text.mjs +4 -48
  34. package/fesm2020/ni-nimble-angular-table-column-number-text.mjs.map +1 -1
  35. package/fesm2020/ni-nimble-angular-table-column-text.mjs +5 -53
  36. package/fesm2020/ni-nimble-angular-table-column-text.mjs.map +1 -1
  37. package/fesm2020/ni-nimble-angular-table-column.mjs +79 -1
  38. package/fesm2020/ni-nimble-angular-table-column.mjs.map +1 -1
  39. package/package.json +1 -1
  40. package/table-column/anchor/nimble-table-column-anchor.directive.d.ts +40 -11
  41. package/table-column/date-text/nimble-table-column-date-text.directive.d.ts +39 -11
  42. package/table-column/enum-text/nimble-table-column-enum-text.directive.d.ts +39 -11
  43. package/table-column/icon/nimble-table-column-icon.directive.d.ts +39 -11
  44. package/table-column/mixins/fractional-width-column.d.ts +22 -0
  45. package/table-column/mixins/groupable-column.d.ts +22 -0
  46. package/table-column/nimble-table-column-base.directive.d.ts +4 -2
  47. package/table-column/number-text/nimble-table-column-number-text.directive.d.ts +40 -11
  48. package/table-column/public-api.d.ts +2 -0
  49. package/table-column/text/nimble-table-column-text.directive.d.ts +39 -13
@@ -1 +1 @@
1
- {"version":3,"file":"ni-nimble-angular-table-column-enum-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/enum-text/nimble-table-column-enum-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/enum-text/nimble-table-column-enum-text.module.ts","../../../../projects/ni/nimble-angular/table-column/enum-text/ni-nimble-angular-table-column-enum-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnEnumText, tableColumnEnumTextTag } from '@ni/nimble-components/dist/esm/table-column/enum-text';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\nimport { MappingKeyType } from '@ni/nimble-components/dist/esm/table-column/enum-base/types';\n\nexport { MappingKeyType };\nexport type { TableColumnEnumText };\nexport { tableColumnEnumTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for enum text.\n */\n@Directive({\n selector: 'nimble-table-column-enum-text'\n})\nexport class NimbleTableColumnEnumTextDirective extends NimbleTableColumnBaseDirective<TableColumnEnumText> {\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 keyType(): MappingKeyType {\n return this.elementRef.nativeElement.keyType;\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('key-type') public set keyType(value: MappingKeyType) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', 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<TableColumnEnumText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnEnumTextDirective } from './nimble-table-column-enum-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnEnumTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnEnumTextDirective]\n})\nexport class NimbleTableColumnEnumTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAUA;;AAEG;AAIG,MAAO,kCAAmC,SAAQ,8BAAmD,CAAA;IA6DvG,WAAmB,CAAA,QAAmB,EAAE,UAA2C,EAAA;AAC/E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AA9DD,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAA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EAAA,CAAA;sBAApC,KAAK;uBAAC,UAAU,CAAA;gBAUqB,eAAe,EAAA,CAAA;sBAApD,KAAK;uBAAC,kBAAkB,CAAA;gBAUY,aAAa,EAAA,CAAA;sBAAjD,KAAK;uBAAC,iBAAiB,CAAA;gBAUS,UAAU,EAAA,CAAA;sBAA1C,KAAK;uBAAC,aAAa,CAAA;gBAUmB,gBAAgB,EAAA,CAAA;sBAAtD,KAAK;uBAAC,mBAAmB,CAAA;;;MC9DjB,+BAA+B,CAAA;;4HAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA/B,+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,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
+ {"version":3,"file":"ni-nimble-angular-table-column-enum-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/enum-text/nimble-table-column-enum-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/enum-text/nimble-table-column-enum-text.module.ts","../../../../projects/ni/nimble-angular/table-column/enum-text/ni-nimble-angular-table-column-enum-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnEnumText, tableColumnEnumTextTag } from '@ni/nimble-components/dist/esm/table-column/enum-text';\nimport { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI } from '@ni/nimble-angular/table-column';\nimport { MappingKeyType } from '@ni/nimble-components/dist/esm/table-column/enum-base/types';\n\nexport { MappingKeyType };\nexport type { TableColumnEnumText };\nexport { tableColumnEnumTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for enum text.\n */\n@Directive({\n selector: 'nimble-table-column-enum-text'\n})\nexport class NimbleTableColumnEnumTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnEnumText>)) {\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 keyType(): MappingKeyType {\n return this.elementRef.nativeElement.keyType;\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('key-type') public set keyType(value: MappingKeyType) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', value);\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnEnumText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnEnumTextDirective } from './nimble-table-column-enum-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnEnumTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnEnumTextDirective]\n})\nexport class NimbleTableColumnEnumTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AASA;;AAEG;AAIG,MAAO,kCAAmC,SAAQ,6BAA6B,CAAC,uBAAuB,EAAC,8BAAmD,EAAC,CAAC,CAAA;IAqB/J,WAAmB,CAAA,QAAmB,EAAE,UAA2C,EAAA;AAC/E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AAtBD,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,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;KAChF;AAED,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC;KAChD;;;IAID,IAA8B,OAAO,CAAC,KAAqB,EAAA;AACvD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;KAC9E;;+HAnBQ,kCAAkC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mHAAlC,kCAAkC,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,CAAA,YAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,UAAA,EAAA,SAAA,CAAA,EAAA,E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
3
3
  export { tableColumnIconTag } from '@ni/nimble-components/dist/esm/table-column/icon';
4
- import { toNullableNumberProperty, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
5
- import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
4
+ import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
6
5
  import { CommonModule } from '@angular/common';
7
6
 
8
7
  /**
9
8
  * Directive to provide Angular integration for the table column element for icons/spinners.
10
9
  */
11
- class NimbleTableColumnIconDirective extends NimbleTableColumnBaseDirective {
10
+ class NimbleTableColumnIconDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
12
11
  constructor(renderer, elementRef) {
13
12
  super(renderer, elementRef);
14
13
  }
@@ -28,41 +27,9 @@ class NimbleTableColumnIconDirective extends NimbleTableColumnBaseDirective {
28
27
  set keyType(value) {
29
28
  this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', value);
30
29
  }
31
- get fractionalWidth() {
32
- return this.elementRef.nativeElement.fractionalWidth;
33
- }
34
- // Renaming because property should have camel casing, but attribute should not
35
- // eslint-disable-next-line @angular-eslint/no-input-rename
36
- set fractionalWidth(value) {
37
- this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
38
- }
39
- get minPixelWidth() {
40
- return this.elementRef.nativeElement.minPixelWidth;
41
- }
42
- // Renaming because property should have camel casing, but attribute should not
43
- // eslint-disable-next-line @angular-eslint/no-input-rename
44
- set minPixelWidth(value) {
45
- this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
46
- }
47
- get groupIndex() {
48
- return this.elementRef.nativeElement.groupIndex;
49
- }
50
- // Renaming because property should have camel casing, but attribute should not
51
- // eslint-disable-next-line @angular-eslint/no-input-rename
52
- set groupIndex(value) {
53
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
54
- }
55
- get groupingDisabled() {
56
- return this.elementRef.nativeElement.groupingDisabled;
57
- }
58
- // Renaming because property should have camel casing, but attribute should not
59
- // eslint-disable-next-line @angular-eslint/no-input-rename
60
- set groupingDisabled(value) {
61
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
62
- }
63
30
  }
64
31
  NimbleTableColumnIconDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnIconDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
65
- NimbleTableColumnIconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnIconDirective, selector: "nimble-table-column-icon", inputs: { fieldName: ["field-name", "fieldName"], keyType: ["key-type", "keyType"], fractionalWidth: ["fractional-width", "fractionalWidth"], minPixelWidth: ["min-pixel-width", "minPixelWidth"], groupIndex: ["group-index", "groupIndex"], groupingDisabled: ["grouping-disabled", "groupingDisabled"] }, usesInheritance: true, ngImport: i0 });
32
+ NimbleTableColumnIconDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnIconDirective, selector: "nimble-table-column-icon", inputs: { fieldName: ["field-name", "fieldName"], keyType: ["key-type", "keyType"] }, usesInheritance: true, ngImport: i0 });
66
33
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnIconDirective, decorators: [{
67
34
  type: Directive,
68
35
  args: [{
@@ -74,18 +41,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
74
41
  }], keyType: [{
75
42
  type: Input,
76
43
  args: ['key-type']
77
- }], fractionalWidth: [{
78
- type: Input,
79
- args: ['fractional-width']
80
- }], minPixelWidth: [{
81
- type: Input,
82
- args: ['min-pixel-width']
83
- }], groupIndex: [{
84
- type: Input,
85
- args: ['group-index']
86
- }], groupingDisabled: [{
87
- type: Input,
88
- args: ['grouping-disabled']
89
44
  }] } });
90
45
 
91
46
  class NimbleTableColumnIconModule {
@@ -1 +1 @@
1
- {"version":3,"file":"ni-nimble-angular-table-column-icon.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/icon/nimble-table-column-icon.directive.ts","../../../../projects/ni/nimble-angular/table-column/icon/nimble-table-column-icon.module.ts","../../../../projects/ni/nimble-angular/table-column/icon/ni-nimble-angular-table-column-icon.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnIcon, tableColumnIconTag } from '@ni/nimble-components/dist/esm/table-column/icon';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\nimport type { MappingKeyType } from '@ni/nimble-components/dist/esm/table-column/enum-base/types';\n\nexport type { TableColumnIcon };\nexport { tableColumnIconTag };\n\n/**\n * Directive to provide Angular integration for the table column element for icons/spinners.\n */\n@Directive({\n selector: 'nimble-table-column-icon'\n})\nexport class NimbleTableColumnIconDirective extends NimbleTableColumnBaseDirective<TableColumnIcon> {\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 keyType(): MappingKeyType {\n return this.elementRef.nativeElement.keyType;\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('key-type') public set keyType(value: MappingKeyType) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', 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<TableColumnIcon>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnIconDirective } from './nimble-table-column-icon.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/icon';\n\n@NgModule({\n declarations: [NimbleTableColumnIconDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnIconDirective]\n})\nexport class NimbleTableColumnIconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n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CAAC,8BAA8B,CAAC;oBAC9C,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,8BAA8B,CAAC;AAC5C,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"ni-nimble-angular-table-column-icon.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/icon/nimble-table-column-icon.directive.ts","../../../../projects/ni/nimble-angular/table-column/icon/nimble-table-column-icon.module.ts","../../../../projects/ni/nimble-angular/table-column/icon/ni-nimble-angular-table-column-icon.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnIcon, tableColumnIconTag } from '@ni/nimble-components/dist/esm/table-column/icon';\nimport { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI } from '@ni/nimble-angular/table-column';\nimport type { MappingKeyType } from '@ni/nimble-components/dist/esm/table-column/enum-base/types';\n\nexport type { TableColumnIcon };\nexport { tableColumnIconTag };\n\n/**\n * Directive to provide Angular integration for the table column element for icons/spinners.\n */\n@Directive({\n selector: 'nimble-table-column-icon'\n})\nexport class NimbleTableColumnIconDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnIcon>)) {\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 keyType(): MappingKeyType {\n return this.elementRef.nativeElement.keyType;\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('key-type') public set keyType(value: MappingKeyType) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'keyType', value);\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnIcon>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnIconDirective } from './nimble-table-column-icon.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/icon';\n\n@NgModule({\n declarations: [NimbleTableColumnIconDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnIconDirective]\n})\nexport class NimbleTableColumnIconModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAQA;;AAEG;AAIG,MAAO,8BAA+B,SAAQ,6BAA6B,CAAC,uBAAuB,EAAC,8BAA+C,EAAC,CAAC,CAAA;IAqBvJ,WAAmB,CAAA,QAAmB,EAAE,UAAuC,EAAA;AAC3E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AAtBD,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,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;KAChF;AAED,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC;KAChD;;;IAID,IAA8B,OAAO,CAAC,KAAqB,EAAA;AACvD,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;KAC9E;;2HAnBQ,8BAA8B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAA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,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,8BAA8B,CAAC;AAC5C,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Directive, Input, NgModule } from '@angular/core';
3
- import { toNullableNumberProperty, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
4
- import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
3
+ import { toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';
4
+ import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
5
5
  export { tableColumnNumberTextTag } from '@ni/nimble-components/dist/esm/table-column/number-text';
6
6
  export { NumberTextAlignment, NumberTextFormat } from '@ni/nimble-components/dist/esm/table-column/number-text/types';
7
7
  import { CommonModule } from '@angular/common';
@@ -9,7 +9,7 @@ import { CommonModule } from '@angular/common';
9
9
  /**
10
10
  * Directive to provide Angular integration for the table column element for number text.
11
11
  */
12
- class NimbleTableColumnNumberTextDirective extends NimbleTableColumnBaseDirective {
12
+ class NimbleTableColumnNumberTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
13
13
  constructor(renderer, elementRef) {
14
14
  super(renderer, elementRef);
15
15
  }
@@ -41,41 +41,9 @@ class NimbleTableColumnNumberTextDirective extends NimbleTableColumnBaseDirectiv
41
41
  set decimalDigits(value) {
42
42
  this.renderer.setProperty(this.elementRef.nativeElement, 'decimalDigits', toNullableNumberProperty(value));
43
43
  }
44
- get fractionalWidth() {
45
- return this.elementRef.nativeElement.fractionalWidth;
46
- }
47
- // Renaming because property should have camel casing, but attribute should not
48
- // eslint-disable-next-line @angular-eslint/no-input-rename
49
- set fractionalWidth(value) {
50
- this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
51
- }
52
- get minPixelWidth() {
53
- return this.elementRef.nativeElement.minPixelWidth;
54
- }
55
- // Renaming because property should have camel casing, but attribute should not
56
- // eslint-disable-next-line @angular-eslint/no-input-rename
57
- set minPixelWidth(value) {
58
- this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
59
- }
60
- get groupIndex() {
61
- return this.elementRef.nativeElement.groupIndex;
62
- }
63
- // Renaming because property should have camel casing, but attribute should not
64
- // eslint-disable-next-line @angular-eslint/no-input-rename
65
- set groupIndex(value) {
66
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
67
- }
68
- get groupingDisabled() {
69
- return this.elementRef.nativeElement.groupingDisabled;
70
- }
71
- // Renaming because property should have camel casing, but attribute should not
72
- // eslint-disable-next-line @angular-eslint/no-input-rename
73
- set groupingDisabled(value) {
74
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
75
- }
76
44
  }
77
45
  NimbleTableColumnNumberTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnNumberTextDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
78
- NimbleTableColumnNumberTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnNumberTextDirective, selector: "nimble-table-column-number-text", inputs: { fieldName: ["field-name", "fieldName"], format: "format", alignment: "alignment", decimalDigits: ["decimal-digits", "decimalDigits"], fractionalWidth: ["fractional-width", "fractionalWidth"], minPixelWidth: ["min-pixel-width", "minPixelWidth"], groupIndex: ["group-index", "groupIndex"], groupingDisabled: ["grouping-disabled", "groupingDisabled"] }, usesInheritance: true, ngImport: i0 });
46
+ NimbleTableColumnNumberTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnNumberTextDirective, selector: "nimble-table-column-number-text", inputs: { fieldName: ["field-name", "fieldName"], format: "format", alignment: "alignment", decimalDigits: ["decimal-digits", "decimalDigits"] }, usesInheritance: true, ngImport: i0 });
79
47
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnNumberTextDirective, decorators: [{
80
48
  type: Directive,
81
49
  args: [{
@@ -91,18 +59,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
91
59
  }], decimalDigits: [{
92
60
  type: Input,
93
61
  args: ['decimal-digits']
94
- }], fractionalWidth: [{
95
- type: Input,
96
- args: ['fractional-width']
97
- }], minPixelWidth: [{
98
- type: Input,
99
- args: ['min-pixel-width']
100
- }], groupIndex: [{
101
- type: Input,
102
- args: ['group-index']
103
- }], groupingDisabled: [{
104
- type: Input,
105
- args: ['grouping-disabled']
106
62
  }] } });
107
63
 
108
64
  class NimbleTableColumnNumberTextModule {
@@ -1 +1 @@
1
- {"version":3,"file":"ni-nimble-angular-table-column-number-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/number-text/nimble-table-column-number-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/number-text/nimble-table-column-number-text.module.ts","../../../../projects/ni/nimble-angular/table-column/number-text/ni-nimble-angular-table-column-number-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\nimport { type TableColumnNumberText, tableColumnNumberTextTag } from '@ni/nimble-components/dist/esm/table-column/number-text';\nimport { NumberTextAlignment, NumberTextFormat } from '@ni/nimble-components/dist/esm/table-column/number-text/types';\n\nexport type { TableColumnNumberText };\nexport { tableColumnNumberTextTag, NumberTextFormat, NumberTextAlignment };\n\n/**\n * Directive to provide Angular integration for the table column element for number text.\n */\n@Directive({\n selector: 'nimble-table-column-number-text'\n})\nexport class NimbleTableColumnNumberTextDirective extends NimbleTableColumnBaseDirective<TableColumnNumberText> {\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(): NumberTextFormat {\n return this.elementRef.nativeElement.format;\n }\n\n @Input() public set format(value: NumberTextFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'format', value);\n }\n\n public get alignment(): NumberTextAlignment {\n return this.elementRef.nativeElement.alignment;\n }\n\n @Input() public set alignment(value: NumberTextAlignment) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'alignment', value);\n }\n\n public get decimalDigits(): number | null | undefined {\n return this.elementRef.nativeElement.decimalDigits;\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('decimal-digits') public set decimalDigits(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'decimalDigits', toNullableNumberProperty(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<TableColumnNumberText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnNumberTextDirective } from './nimble-table-column-number-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/number-text';\n\n@NgModule({\n declarations: [NimbleTableColumnNumberTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnNumberTextDirective]\n})\nexport class NimbleTableColumnNumberTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AASA;;AAEG;AAIG,MAAO,oCAAqC,SAAQ,8BAAqD,CAAA;IA6E3G,WAAmB,CAAA,QAAmB,EAAE,UAA6C,EAAA;AACjF,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AA9ED,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,CAAC,UAAU,CAAC,aAAa,E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EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,YAHhC,YAAY,CAAA,EAAA,CAAA,CAAA;2FAGb,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAL7C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,oCAAoC,CAAC;oBACpD,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,oCAAoC,CAAC;AAClD,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"ni-nimble-angular-table-column-number-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/number-text/nimble-table-column-number-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/number-text/nimble-table-column-number-text.module.ts","../../../../projects/ni/nimble-angular/table-column/number-text/ni-nimble-angular-table-column-number-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { NumberValueOrAttribute, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective, mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI } from '@ni/nimble-angular/table-column';\nimport { type TableColumnNumberText, tableColumnNumberTextTag } from '@ni/nimble-components/dist/esm/table-column/number-text';\nimport { NumberTextAlignment, NumberTextFormat } from '@ni/nimble-components/dist/esm/table-column/number-text/types';\n\nexport type { TableColumnNumberText };\nexport { tableColumnNumberTextTag, NumberTextFormat, NumberTextAlignment };\n\n/**\n * Directive to provide Angular integration for the table column element for number text.\n */\n@Directive({\n selector: 'nimble-table-column-number-text'\n})\nexport class NimbleTableColumnNumberTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnNumberText>)) {\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(): NumberTextFormat {\n return this.elementRef.nativeElement.format;\n }\n\n @Input() public set format(value: NumberTextFormat) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'format', value);\n }\n\n public get alignment(): NumberTextAlignment {\n return this.elementRef.nativeElement.alignment;\n }\n\n @Input() public set alignment(value: NumberTextAlignment) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'alignment', value);\n }\n\n public get decimalDigits(): number | null | undefined {\n return this.elementRef.nativeElement.decimalDigits;\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('decimal-digits') public set decimalDigits(value: NumberValueOrAttribute | null | undefined) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'decimalDigits', toNullableNumberProperty(value));\n }\n\n public constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnNumberText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnNumberTextDirective } from './nimble-table-column-number-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/number-text';\n\n@NgModule({\n declarations: [NimbleTableColumnNumberTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnNumberTextDirective]\n})\nexport class NimbleTableColumnNumberTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AASA;;AAEG;AAIG,MAAO,oCAAqC,SAAQ,6BAA6B,CAAC,uBAAuB,EAAC,8BAAqD,EAAC,CAAC,CAAA;IAqCnK,WAAmB,CAAA,QAAmB,EAAE,UAA6C,EAAA;AACjF,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AAtCD,IAAA,IAAW,SAAS,GAAA;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iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAL7C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,oCAAoC,CAAC;oBACpD,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,oCAAoC,CAAC;AAClD,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,17 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Directive, Input, NgModule } from '@angular/core';
3
3
  export { tableColumnTextTag } from '@ni/nimble-components/dist/esm/table-column/text';
4
- import { toNullableNumberProperty, toBooleanProperty } from '@ni/nimble-angular/internal-utilities';
5
- import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
4
+ import { mixinFractionalWidthColumnAPI, mixinGroupableColumnAPI, NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
6
5
  import { CommonModule } from '@angular/common';
7
6
 
8
7
  /**
9
8
  * Directive to provide Angular integration for the table column element for text.
10
9
  */
11
- class NimbleTableColumnTextDirective extends NimbleTableColumnBaseDirective {
12
- constructor(renderer, elementRef) {
13
- super(renderer, elementRef);
14
- }
10
+ class NimbleTableColumnTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI((NimbleTableColumnBaseDirective))) {
15
11
  get fieldName() {
16
12
  return this.elementRef.nativeElement.fieldName;
17
13
  }
@@ -20,61 +16,17 @@ class NimbleTableColumnTextDirective extends NimbleTableColumnBaseDirective {
20
16
  set fieldName(value) {
21
17
  this.renderer.setProperty(this.elementRef.nativeElement, 'fieldName', value);
22
18
  }
23
- get fractionalWidth() {
24
- return this.elementRef.nativeElement.fractionalWidth;
25
- }
26
- // Renaming because property should have camel casing, but attribute should not
27
- // eslint-disable-next-line @angular-eslint/no-input-rename
28
- set fractionalWidth(value) {
29
- this.renderer.setProperty(this.elementRef.nativeElement, 'fractionalWidth', toNullableNumberProperty(value));
30
- }
31
- get minPixelWidth() {
32
- return this.elementRef.nativeElement.minPixelWidth;
33
- }
34
- // Renaming because property should have camel casing, but attribute should not
35
- // eslint-disable-next-line @angular-eslint/no-input-rename
36
- set minPixelWidth(value) {
37
- this.renderer.setProperty(this.elementRef.nativeElement, 'minPixelWidth', toNullableNumberProperty(value));
38
- }
39
- get groupIndex() {
40
- return this.elementRef.nativeElement.groupIndex;
41
- }
42
- // Renaming because property should have camel casing, but attribute should not
43
- // eslint-disable-next-line @angular-eslint/no-input-rename
44
- set groupIndex(value) {
45
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupIndex', toNullableNumberProperty(value));
46
- }
47
- get groupingDisabled() {
48
- return this.elementRef.nativeElement.groupingDisabled;
49
- }
50
- // Renaming because property should have camel casing, but attribute should not
51
- // eslint-disable-next-line @angular-eslint/no-input-rename
52
- set groupingDisabled(value) {
53
- this.renderer.setProperty(this.elementRef.nativeElement, 'groupingDisabled', toBooleanProperty(value));
54
- }
55
19
  }
56
- NimbleTableColumnTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnTextDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
57
- NimbleTableColumnTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnTextDirective, selector: "nimble-table-column-text", inputs: { fieldName: ["field-name", "fieldName"], fractionalWidth: ["fractional-width", "fractionalWidth"], minPixelWidth: ["min-pixel-width", "minPixelWidth"], groupIndex: ["group-index", "groupIndex"], groupingDisabled: ["grouping-disabled", "groupingDisabled"] }, usesInheritance: true, ngImport: i0 });
20
+ NimbleTableColumnTextDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnTextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
21
+ NimbleTableColumnTextDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.3.0", type: NimbleTableColumnTextDirective, selector: "nimble-table-column-text", inputs: { fieldName: ["field-name", "fieldName"] }, usesInheritance: true, ngImport: i0 });
58
22
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NimbleTableColumnTextDirective, decorators: [{
59
23
  type: Directive,
60
24
  args: [{
61
25
  selector: 'nimble-table-column-text'
62
26
  }]
63
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { fieldName: [{
27
+ }], propDecorators: { fieldName: [{
64
28
  type: Input,
65
29
  args: ['field-name']
66
- }], fractionalWidth: [{
67
- type: Input,
68
- args: ['fractional-width']
69
- }], minPixelWidth: [{
70
- type: Input,
71
- args: ['min-pixel-width']
72
- }], groupIndex: [{
73
- type: Input,
74
- args: ['group-index']
75
- }], groupingDisabled: [{
76
- type: Input,
77
- args: ['grouping-disabled']
78
30
  }] } });
79
31
 
80
32
  class NimbleTableColumnTextModule {
@@ -1 +1 @@
1
- {"version":3,"file":"ni-nimble-angular-table-column-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/text/nimble-table-column-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/text/nimble-table-column-text.module.ts","../../../../projects/ni/nimble-angular/table-column/text/ni-nimble-angular-table-column-text.ts"],"sourcesContent":["import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';\nimport { type TableColumnText, tableColumnTextTag } from '@ni/nimble-components/dist/esm/table-column/text';\nimport { BooleanValueOrAttribute, NumberValueOrAttribute, toBooleanProperty, toNullableNumberProperty } from '@ni/nimble-angular/internal-utilities';\nimport { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';\n\nexport type { TableColumnText };\nexport { tableColumnTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for text.\n */\n@Directive({\n selector: 'nimble-table-column-text'\n})\nexport class NimbleTableColumnTextDirective extends NimbleTableColumnBaseDirective<TableColumnText> {\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 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<TableColumnText>) {\n super(renderer, elementRef);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnTextDirective } from './nimble-table-column-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnTextDirective]\n})\nexport class NimbleTableColumnTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAQA;;AAEG;AAIG,MAAO,8BAA+B,SAAQ,8BAA+C,CAAA;IAmD/F,WAAmB,CAAA,QAAmB,EAAE,UAAuC,EAAA;AAC3E,QAAA,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC/B;AApDD,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,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;KAChF;AAED,IAAA,IAAW,eAAe,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC;KACxD;;;IAID,IAAsC,eAAe,CAAC,KAAgD,EAAA;AAClG,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,iBAAiB,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;KAChH;AAED,IAAA,IAAW,aAAa,GAAA;AACpB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC;KACtD;;;IAID,IAAqC,aAAa,CAAC,KAAgD,EAAA;AAC/F,QAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,eAAe,EAAE,wBAAwB,CAAC,KAAK,CAAC,CA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 {"version":3,"file":"ni-nimble-angular-table-column-text.mjs","sources":["../../../../projects/ni/nimble-angular/table-column/text/nimble-table-column-text.directive.ts","../../../../projects/ni/nimble-angular/table-column/text/nimble-table-column-text.module.ts","../../../../projects/ni/nimble-angular/table-column/text/ni-nimble-angular-table-column-text.ts"],"sourcesContent":["import { Directive, Input } from '@angular/core';\nimport { type TableColumnText, tableColumnTextTag } from '@ni/nimble-components/dist/esm/table-column/text';\nimport { NimbleTableColumnBaseDirective, mixinGroupableColumnAPI, mixinFractionalWidthColumnAPI } from '@ni/nimble-angular/table-column';\n\nexport type { TableColumnText };\nexport { tableColumnTextTag };\n\n/**\n * Directive to provide Angular integration for the table column element for text.\n */\n@Directive({\n selector: 'nimble-table-column-text'\n})\nexport class NimbleTableColumnTextDirective extends mixinFractionalWidthColumnAPI(mixinGroupableColumnAPI(NimbleTableColumnBaseDirective<TableColumnText>)) {\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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NimbleTableColumnTextDirective } from './nimble-table-column-text.directive';\n\nimport '@ni/nimble-components/dist/esm/table-column/text';\n\n@NgModule({\n declarations: [NimbleTableColumnTextDirective],\n imports: [CommonModule],\n exports: [NimbleTableColumnTextDirective]\n})\nexport class NimbleTableColumnTextModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAOA;;AAEG;AAIG,MAAO,8BAA+B,SAAQ,6BAA6B,CAAC,uBAAuB,EAAC,8BAA+C,EAAC,CAAC,CAAA;AACvJ,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,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EAAA,CAAA,CAAA;2FAGb,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,8BAA8B,CAAC;oBAC9C,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,8BAA8B,CAAC;AAC5C,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -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;QAAjE,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QAAqB,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,IAAW,YAAY,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,YAAY,CAAC;KACrD;;;IAID,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A,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,UAAU,CAAC,aAAa,EAAE,iBAAiB,EAAE,KAAK,CAAC,CAAC;KACtF;AAED,IAAA,IAAW,YAAY,GAAA;AACnB,QAAA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D;;;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;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-angular",
3
- "version": "17.5.15",
3
+ "version": "17.6.0",
4
4
  "description": "Angular components for the NI Nimble Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,16 +1,53 @@
1
1
  import { ElementRef, Renderer2 } from '@angular/core';
2
2
  import { type TableColumnAnchor, tableColumnAnchorTag } from '@ni/nimble-components/dist/esm/table-column/anchor';
3
3
  import { AnchorAppearance } from '@ni/nimble-components/dist/esm/anchor/types';
4
- import { BooleanValueOrAttribute, NumberValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
4
+ import { BooleanValueOrAttribute } from '@ni/nimble-angular/internal-utilities';
5
5
  import { NimbleTableColumnBaseDirective } from '@ni/nimble-angular/table-column';
6
6
  import * as i0 from "@angular/core";
7
7
  export type { TableColumnAnchor };
8
8
  export { tableColumnAnchorTag };
9
9
  export { AnchorAppearance };
10
+ declare const NimbleTableColumnAnchorDirective_base: (abstract new (...args: any[]) => {
11
+ fractionalWidth: number | null | undefined;
12
+ minPixelWidth: number | null | undefined;
13
+ columnId: string | undefined;
14
+ actionMenuSlot: string | undefined;
15
+ actionMenuLabel: string | undefined;
16
+ columnHidden: boolean;
17
+ sortDirection: import("@ni/nimble-angular/table-column").TableColumnSortDirection;
18
+ sortIndex: number | null | undefined;
19
+ readonly renderer: Renderer2;
20
+ readonly elementRef: ElementRef<import("@ni/nimble-components/dist/esm/table-column/base").TableColumn<unknown> & {
21
+ fractionalWidth?: number | null | undefined;
22
+ minPixelWidth?: number | null | undefined;
23
+ }>;
24
+ checkValidity(): boolean;
25
+ readonly validity: import("@ni/nimble-angular/table-column").TableColumnValidity;
26
+ }) & (abstract new (...args: any[]) => {
27
+ groupIndex: number | null | undefined;
28
+ groupingDisabled: boolean;
29
+ columnId: string | undefined;
30
+ actionMenuSlot: string | undefined;
31
+ actionMenuLabel: string | undefined;
32
+ columnHidden: boolean;
33
+ sortDirection: import("@ni/nimble-angular/table-column").TableColumnSortDirection;
34
+ sortIndex: number | null | undefined;
35
+ readonly renderer: Renderer2;
36
+ readonly elementRef: ElementRef<import("@ni/nimble-components/dist/esm/table-column/base").TableColumn<unknown> & {
37
+ groupingDisabled: boolean;
38
+ groupIndex?: number | null | undefined;
39
+ }>;
40
+ checkValidity(): boolean;
41
+ readonly validity: import("@ni/nimble-angular/table-column").TableColumnValidity;
42
+ }) & {
43
+ new (renderer: Renderer2, elementRef: ElementRef<TableColumnAnchor>): NimbleTableColumnBaseDirective<TableColumnAnchor>;
44
+ ɵfac: unknown;
45
+ ɵdir: unknown;
46
+ };
10
47
  /**
11
48
  * Directive to provide Angular integration for the table column element for links.
12
49
  */
13
- export declare class NimbleTableColumnAnchorDirective extends NimbleTableColumnBaseDirective<TableColumnAnchor> {
50
+ export declare class NimbleTableColumnAnchorDirective extends NimbleTableColumnAnchorDirective_base {
14
51
  get labelFieldName(): string | undefined;
15
52
  set labelFieldName(value: string | undefined);
16
53
  get hrefFieldName(): string | undefined;
@@ -33,15 +70,7 @@ export declare class NimbleTableColumnAnchorDirective extends NimbleTableColumnB
33
70
  set type(value: string | undefined);
34
71
  get download(): string | undefined;
35
72
  set download(value: string | undefined);
36
- get fractionalWidth(): number | null | undefined;
37
- set fractionalWidth(value: NumberValueOrAttribute | null | undefined);
38
- get minPixelWidth(): number | null | undefined;
39
- set minPixelWidth(value: NumberValueOrAttribute | null | undefined);
40
- get groupIndex(): number | null | undefined;
41
- set groupIndex(value: NumberValueOrAttribute | null | undefined);
42
- get groupingDisabled(): boolean;
43
- set groupingDisabled(value: BooleanValueOrAttribute);
44
73
  constructor(renderer: Renderer2, elementRef: ElementRef<TableColumnAnchor>);
45
74
  static ɵfac: i0.ɵɵFactoryDeclaration<NimbleTableColumnAnchorDirective, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<NimbleTableColumnAnchorDirective, "nimble-table-column-anchor", never, { "labelFieldName": "label-field-name"; "hrefFieldName": "href-field-name"; "appearance": "appearance"; "underlineHidden": "underline-hidden"; "hreflang": "hreflang"; "ping": "ping"; "referrerpolicy": "referrerpolicy"; "rel": "rel"; "target": "target"; "type": "type"; "download": "download"; "fractionalWidth": "fractional-width"; "minPixelWidth": "min-pixel-width"; "groupIndex": "group-index"; "groupingDisabled": "grouping-disabled"; }, {}, never, never, false>;
75
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NimbleTableColumnAnchorDirective, "nimble-table-column-anchor", never, { "labelFieldName": "label-field-name"; "hrefFieldName": "href-field-name"; "appearance": "appearance"; "underlineHidden": "underline-hidden"; "hreflang": "hreflang"; "ping": "ping"; "referrerpolicy": "referrerpolicy"; "rel": "rel"; "target": "target"; "type": "type"; "download": "download"; }, {}, never, never, false>;
47
76
  }