@ngneers/controls 0.0.1-pre5 → 0.0.1-pre7

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 (168) hide show
  1. package/fesm2022/ngneers-controls-accordion.mjs +33 -33
  2. package/fesm2022/ngneers-controls-accordion.mjs.map +1 -1
  3. package/fesm2022/ngneers-controls-api-ng.mjs +22 -19
  4. package/fesm2022/ngneers-controls-api-ng.mjs.map +1 -1
  5. package/fesm2022/ngneers-controls-api-resize.mjs +706 -0
  6. package/fesm2022/ngneers-controls-api-resize.mjs.map +1 -0
  7. package/fesm2022/ngneers-controls-avatar.mjs +13 -13
  8. package/fesm2022/ngneers-controls-avatar.mjs.map +1 -1
  9. package/fesm2022/ngneers-controls-base.mjs +89 -64
  10. package/fesm2022/ngneers-controls-base.mjs.map +1 -1
  11. package/fesm2022/ngneers-controls-breadcrumb.mjs +19 -19
  12. package/fesm2022/ngneers-controls-breadcrumb.mjs.map +1 -1
  13. package/fesm2022/ngneers-controls-button-group.mjs +8 -8
  14. package/fesm2022/ngneers-controls-button-group.mjs.map +1 -1
  15. package/fesm2022/ngneers-controls-button.mjs +15 -10
  16. package/fesm2022/ngneers-controls-button.mjs.map +1 -1
  17. package/fesm2022/{ngneers-controls-calendar-time-BEeJIqIX.mjs → ngneers-controls-calendar-time-CKAqRgOP.mjs} +9 -9
  18. package/fesm2022/{ngneers-controls-calendar-time-BEeJIqIX.mjs.map → ngneers-controls-calendar-time-CKAqRgOP.mjs.map} +1 -1
  19. package/fesm2022/ngneers-controls-calendar.mjs +56 -56
  20. package/fesm2022/ngneers-controls-calendar.mjs.map +1 -1
  21. package/fesm2022/ngneers-controls-checkbox.mjs +9 -9
  22. package/fesm2022/ngneers-controls-checkbox.mjs.map +1 -1
  23. package/fesm2022/ngneers-controls-chip.mjs +7 -7
  24. package/fesm2022/ngneers-controls-chip.mjs.map +1 -1
  25. package/fesm2022/ngneers-controls-default-icons.mjs +61 -0
  26. package/fesm2022/ngneers-controls-default-icons.mjs.map +1 -0
  27. package/fesm2022/ngneers-controls-defer.mjs +10 -10
  28. package/fesm2022/ngneers-controls-defer.mjs.map +1 -1
  29. package/fesm2022/ngneers-controls-dialog.mjs +38 -40
  30. package/fesm2022/ngneers-controls-dialog.mjs.map +1 -1
  31. package/fesm2022/ngneers-controls-directives.mjs +45 -39
  32. package/fesm2022/ngneers-controls-directives.mjs.map +1 -1
  33. package/fesm2022/ngneers-controls-drawer.mjs +29 -29
  34. package/fesm2022/ngneers-controls-drawer.mjs.map +1 -1
  35. package/fesm2022/ngneers-controls-edit-inplace.mjs +16 -16
  36. package/fesm2022/ngneers-controls-edit-inplace.mjs.map +1 -1
  37. package/fesm2022/ngneers-controls-filter.mjs +192 -44
  38. package/fesm2022/ngneers-controls-filter.mjs.map +1 -1
  39. package/fesm2022/{ngneers-controls-i18n-de-CdTPeBiR.mjs → ngneers-controls-i18n-de-CF0xTWEX.mjs} +9 -5
  40. package/fesm2022/ngneers-controls-i18n-de-CF0xTWEX.mjs.map +1 -0
  41. package/fesm2022/{ngneers-controls-i18n-en-Cfp2pOLY.mjs → ngneers-controls-i18n-en-8B7xAjH2.mjs} +9 -5
  42. package/fesm2022/ngneers-controls-i18n-en-8B7xAjH2.mjs.map +1 -0
  43. package/fesm2022/ngneers-controls-i18n.mjs +5 -5
  44. package/fesm2022/ngneers-controls-i18n.mjs.map +1 -1
  45. package/fesm2022/ngneers-controls-icon.mjs +111 -47
  46. package/fesm2022/ngneers-controls-icon.mjs.map +1 -1
  47. package/fesm2022/ngneers-controls-inplace.mjs +18 -18
  48. package/fesm2022/ngneers-controls-inplace.mjs.map +1 -1
  49. package/fesm2022/ngneers-controls-input-field.mjs +16 -16
  50. package/fesm2022/ngneers-controls-input-field.mjs.map +1 -1
  51. package/fesm2022/ngneers-controls-input-mask.mjs +8 -8
  52. package/fesm2022/ngneers-controls-input-mask.mjs.map +1 -1
  53. package/fesm2022/ngneers-controls-input.mjs +6 -6
  54. package/fesm2022/ngneers-controls-input.mjs.map +1 -1
  55. package/fesm2022/ngneers-controls-item-view.mjs +33 -33
  56. package/fesm2022/ngneers-controls-item-view.mjs.map +1 -1
  57. package/fesm2022/ngneers-controls-list-box.mjs +31 -31
  58. package/fesm2022/ngneers-controls-list-box.mjs.map +1 -1
  59. package/fesm2022/ngneers-controls-menu.mjs +33 -33
  60. package/fesm2022/ngneers-controls-menu.mjs.map +1 -1
  61. package/fesm2022/ngneers-controls-message.mjs +4 -4
  62. package/fesm2022/ngneers-controls-message.mjs.map +1 -1
  63. package/fesm2022/ngneers-controls-paginator.mjs +13 -13
  64. package/fesm2022/ngneers-controls-paginator.mjs.map +1 -1
  65. package/fesm2022/ngneers-controls-popover.mjs +21 -16
  66. package/fesm2022/ngneers-controls-popover.mjs.map +1 -1
  67. package/fesm2022/ngneers-controls-progress.mjs +16 -16
  68. package/fesm2022/ngneers-controls-progress.mjs.map +1 -1
  69. package/fesm2022/ngneers-controls-scroll-shadow.mjs +54 -0
  70. package/fesm2022/ngneers-controls-scroll-shadow.mjs.map +1 -0
  71. package/fesm2022/ngneers-controls-scroller.mjs +74 -39
  72. package/fesm2022/ngneers-controls-scroller.mjs.map +1 -1
  73. package/fesm2022/ngneers-controls-select-button.mjs +7 -7
  74. package/fesm2022/ngneers-controls-select-button.mjs.map +1 -1
  75. package/fesm2022/ngneers-controls-select.mjs +48 -47
  76. package/fesm2022/ngneers-controls-select.mjs.map +1 -1
  77. package/fesm2022/ngneers-controls-slider.mjs +11 -11
  78. package/fesm2022/ngneers-controls-slider.mjs.map +1 -1
  79. package/fesm2022/ngneers-controls-spinner.mjs +7 -7
  80. package/fesm2022/ngneers-controls-spinner.mjs.map +1 -1
  81. package/fesm2022/ngneers-controls-splitter.mjs +141 -328
  82. package/fesm2022/ngneers-controls-splitter.mjs.map +1 -1
  83. package/fesm2022/ngneers-controls-switch.mjs +3 -3
  84. package/fesm2022/ngneers-controls-switch.mjs.map +1 -1
  85. package/fesm2022/ngneers-controls-table.mjs +1456 -82
  86. package/fesm2022/ngneers-controls-table.mjs.map +1 -1
  87. package/fesm2022/ngneers-controls-tabs.mjs +41 -40
  88. package/fesm2022/ngneers-controls-tabs.mjs.map +1 -1
  89. package/fesm2022/ngneers-controls-tag.mjs +4 -4
  90. package/fesm2022/ngneers-controls-tag.mjs.map +1 -1
  91. package/fesm2022/ngneers-controls-toast.mjs +19 -19
  92. package/fesm2022/ngneers-controls-toast.mjs.map +1 -1
  93. package/fesm2022/ngneers-controls-toggle-button.mjs +10 -10
  94. package/fesm2022/ngneers-controls-toggle-button.mjs.map +1 -1
  95. package/fesm2022/ngneers-controls-tooltip.mjs +74 -38
  96. package/fesm2022/ngneers-controls-tooltip.mjs.map +1 -1
  97. package/fesm2022/ngneers-controls-utils-ng.mjs +9 -9
  98. package/fesm2022/ngneers-controls-utils-ng.mjs.map +1 -1
  99. package/fesm2022/ngneers-controls-utils.mjs +1 -1
  100. package/fesm2022/ngneers-controls-utils.mjs.map +1 -1
  101. package/package.json +34 -12
  102. package/types/ngneers-controls-accordion.d.ts +6 -4
  103. package/types/ngneers-controls-api-ng.d.ts +7 -2
  104. package/types/ngneers-controls-api-resize.d.ts +318 -0
  105. package/types/ngneers-controls-api.d.ts +2 -2
  106. package/types/ngneers-controls-base.d.ts +8 -0
  107. package/types/ngneers-controls-breadcrumb.d.ts +6 -4
  108. package/types/ngneers-controls-button.d.ts +13 -8
  109. package/types/ngneers-controls-calendar.d.ts +5 -1
  110. package/types/ngneers-controls-checkbox.d.ts +6 -4
  111. package/types/ngneers-controls-chip.d.ts +3 -1
  112. package/types/ngneers-controls-default-icons.d.ts +5 -0
  113. package/types/ngneers-controls-directives.d.ts +7 -1
  114. package/types/ngneers-controls-drawer.d.ts +7 -1
  115. package/types/ngneers-controls-edit-inplace.d.ts +4 -0
  116. package/types/ngneers-controls-filter.d.ts +52 -3
  117. package/types/ngneers-controls-i18n.d.ts +4 -0
  118. package/types/ngneers-controls-icon.d.ts +23 -40
  119. package/types/ngneers-controls-input-field.d.ts +7 -1
  120. package/types/ngneers-controls-item-view.d.ts +4 -2
  121. package/types/ngneers-controls-list-box.d.ts +5 -1
  122. package/types/ngneers-controls-menu.d.ts +4 -2
  123. package/types/ngneers-controls-message.d.ts +3 -1
  124. package/types/ngneers-controls-paginator.d.ts +4 -0
  125. package/types/ngneers-controls-popover.d.ts +2 -1
  126. package/types/ngneers-controls-scroll-shadow.d.ts +16 -0
  127. package/types/ngneers-controls-scroller.d.ts +12 -2
  128. package/types/ngneers-controls-select.d.ts +11 -12
  129. package/types/ngneers-controls-spinner.d.ts +1 -1
  130. package/types/ngneers-controls-splitter.d.ts +29 -59
  131. package/types/ngneers-controls-table.d.ts +380 -24
  132. package/types/ngneers-controls-tabs.d.ts +4 -2
  133. package/types/ngneers-controls-tag.d.ts +3 -1
  134. package/types/ngneers-controls-toast.d.ts +5 -3
  135. package/types/ngneers-controls-toggle-button.d.ts +5 -3
  136. package/types/ngneers-controls-tooltip.d.ts +7 -1
  137. package/fesm2022/ngneers-controls-i18n-de-CdTPeBiR.mjs.map +0 -1
  138. package/fesm2022/ngneers-controls-i18n-en-Cfp2pOLY.mjs.map +0 -1
  139. package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs +0 -4
  140. package/fesm2022/ngneers-controls-icon-calendar-z5xA9wTT.mjs.map +0 -1
  141. package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs +0 -4
  142. package/fesm2022/ngneers-controls-icon-check-DdAQ9k-T.mjs.map +0 -1
  143. package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs +0 -4
  144. package/fesm2022/ngneers-controls-icon-chevron_down-HO-z-xOr.mjs.map +0 -1
  145. package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs +0 -4
  146. package/fesm2022/ngneers-controls-icon-chevron_left-CC5psi16.mjs.map +0 -1
  147. package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs +0 -4
  148. package/fesm2022/ngneers-controls-icon-chevron_right-BRxlzx4G.mjs.map +0 -1
  149. package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs +0 -4
  150. package/fesm2022/ngneers-controls-icon-chevron_up-cqhPO7g2.mjs.map +0 -1
  151. package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs +0 -4
  152. package/fesm2022/ngneers-controls-icon-ellipsis-DXIGA1sk.mjs.map +0 -1
  153. package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs +0 -4
  154. package/fesm2022/ngneers-controls-icon-filter-oU7E6Xgr.mjs.map +0 -1
  155. package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs +0 -4
  156. package/fesm2022/ngneers-controls-icon-filter_solid-CqIKuR4N.mjs.map +0 -1
  157. package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs +0 -4
  158. package/fesm2022/ngneers-controls-icon-magnifying_glass-T4Hzbkig.mjs.map +0 -1
  159. package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs +0 -4
  160. package/fesm2022/ngneers-controls-icon-minus-oGDEFO4E.mjs.map +0 -1
  161. package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs +0 -4
  162. package/fesm2022/ngneers-controls-icon-sort-CRD4tafz.mjs.map +0 -1
  163. package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs +0 -4
  164. package/fesm2022/ngneers-controls-icon-sort_down-DiFB1P6R.mjs.map +0 -1
  165. package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs +0 -4
  166. package/fesm2022/ngneers-controls-icon-sort_up-Bq_q3hIi.mjs.map +0 -1
  167. package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs +0 -4
  168. package/fesm2022/ngneers-controls-icon-xmark-BZKZORiu.mjs.map +0 -1
@@ -17,60 +17,60 @@ import { selectControlTemplate } from '@ngneers/controls-themes/templates/select
17
17
  class SelectTemplates extends ValueControlBase {
18
18
  // Item template
19
19
  _defaultItemTemplate = viewChild.required('defaultItemTemplate');
20
- _userItemTemplate = contentChild('item', ...(ngDevMode ? [{ debugName: "_userItemTemplate" }] : []));
20
+ _userItemTemplate = contentChild('item', ...(ngDevMode ? [{ debugName: "_userItemTemplate" }] : /* istanbul ignore next */ []));
21
21
  /**
22
22
  * Set a custom template for an item of the select control.
23
23
  * Can also be set using an `<ng-template>` element with `#item` template reference variable.
24
24
  */
25
- templateItem = input(null, ...(ngDevMode ? [{ debugName: "templateItem" }] : []));
26
- itemTemplate = computed(() => this._userItemTemplate() ?? this.templateItem() ?? this._defaultItemTemplate(), ...(ngDevMode ? [{ debugName: "itemTemplate" }] : []));
25
+ templateItem = input(null, ...(ngDevMode ? [{ debugName: "templateItem" }] : /* istanbul ignore next */ []));
26
+ itemTemplate = computed(() => this._userItemTemplate() ?? this.templateItem() ?? this._defaultItemTemplate(), ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
27
27
  // Selected item template
28
28
  _defaultSelectedItemTemplate = viewChild.required('defaultSelectedItemTemplate');
29
- _userSelectedItemTemplate = contentChild('selectedItem', ...(ngDevMode ? [{ debugName: "_userSelectedItemTemplate" }] : []));
29
+ _userSelectedItemTemplate = contentChild('selectedItem', ...(ngDevMode ? [{ debugName: "_userSelectedItemTemplate" }] : /* istanbul ignore next */ []));
30
30
  /**
31
31
  * Set a custom template for the selected item of the select control.
32
32
  * Can also be set using an `<ng-template>` element with `#selectedItem` template reference variable.
33
33
  */
34
- templateSelectedItem = input(null, ...(ngDevMode ? [{ debugName: "templateSelectedItem" }] : []));
34
+ templateSelectedItem = input(null, ...(ngDevMode ? [{ debugName: "templateSelectedItem" }] : /* istanbul ignore next */ []));
35
35
  selectedItemTemplate = computed(() => this._userSelectedItemTemplate() ??
36
36
  this.templateSelectedItem() ??
37
- this._defaultSelectedItemTemplate(), ...(ngDevMode ? [{ debugName: "selectedItemTemplate" }] : []));
37
+ this._defaultSelectedItemTemplate(), ...(ngDevMode ? [{ debugName: "selectedItemTemplate" }] : /* istanbul ignore next */ []));
38
38
  // Selected items template
39
39
  _defaultSelectedItemsTemplate = viewChild.required('defaultSelectedItemsTemplate');
40
- _userSelectedItemsTemplate = contentChild('selectedItems', ...(ngDevMode ? [{ debugName: "_userSelectedItemsTemplate" }] : []));
40
+ _userSelectedItemsTemplate = contentChild('selectedItems', ...(ngDevMode ? [{ debugName: "_userSelectedItemsTemplate" }] : /* istanbul ignore next */ []));
41
41
  /**
42
42
  * Set a custom template for the selected items of the select control if {@link multiple} is `true`.
43
43
  * Can also be set using an `<ng-template>` element with `#selectedItems` template reference variable.
44
44
  */
45
- templateSelectedItems = input(null, ...(ngDevMode ? [{ debugName: "templateSelectedItems" }] : []));
45
+ templateSelectedItems = input(null, ...(ngDevMode ? [{ debugName: "templateSelectedItems" }] : /* istanbul ignore next */ []));
46
46
  selectedItemsTemplate = computed(() => this._userSelectedItemsTemplate() ??
47
47
  this.templateSelectedItems() ??
48
- this._defaultSelectedItemsTemplate(), ...(ngDevMode ? [{ debugName: "selectedItemsTemplate" }] : []));
48
+ this._defaultSelectedItemsTemplate(), ...(ngDevMode ? [{ debugName: "selectedItemsTemplate" }] : /* istanbul ignore next */ []));
49
49
  // Group template
50
50
  _defaultGroupTemplate = viewChild.required('defaultGroupTemplate');
51
- _userGroupTemplate = contentChild('group', ...(ngDevMode ? [{ debugName: "_userGroupTemplate" }] : []));
51
+ _userGroupTemplate = contentChild('group', ...(ngDevMode ? [{ debugName: "_userGroupTemplate" }] : /* istanbul ignore next */ []));
52
52
  /**
53
53
  * Set a custom template for a group in the select control.
54
54
  * Can also be set using an `<ng-template>` element with `#group` template reference variable.
55
55
  */
56
- templateGroup = input(null, ...(ngDevMode ? [{ debugName: "templateGroup" }] : []));
57
- groupTemplate = computed(() => this._userGroupTemplate() ?? this.templateGroup() ?? this._defaultGroupTemplate(), ...(ngDevMode ? [{ debugName: "groupTemplate" }] : []));
56
+ templateGroup = input(null, ...(ngDevMode ? [{ debugName: "templateGroup" }] : /* istanbul ignore next */ []));
57
+ groupTemplate = computed(() => this._userGroupTemplate() ?? this.templateGroup() ?? this._defaultGroupTemplate(), ...(ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []));
58
58
  // No items template
59
- _userNoItemsTemplate = contentChild('noItems', ...(ngDevMode ? [{ debugName: "_userNoItemsTemplate" }] : []));
59
+ _userNoItemsTemplate = contentChild('noItems', ...(ngDevMode ? [{ debugName: "_userNoItemsTemplate" }] : /* istanbul ignore next */ []));
60
60
  /**
61
61
  * Set a custom template for the no items state of the select control.
62
62
  * Can also be set using an `<ng-template>` element with `#noItems` template reference variable.
63
63
  */
64
- templateNoItems = input(null, ...(ngDevMode ? [{ debugName: "templateNoItems" }] : []));
65
- noItemsTemplate = computed(() => this._userNoItemsTemplate() ?? this.templateNoItems(), ...(ngDevMode ? [{ debugName: "noItemsTemplate" }] : []));
64
+ templateNoItems = input(null, ...(ngDevMode ? [{ debugName: "templateNoItems" }] : /* istanbul ignore next */ []));
65
+ noItemsTemplate = computed(() => this._userNoItemsTemplate() ?? this.templateNoItems(), ...(ngDevMode ? [{ debugName: "noItemsTemplate" }] : /* istanbul ignore next */ []));
66
66
  /**
67
67
  * Types for the dialog templates.
68
68
  */
69
69
  templateTypes = templateTypesFn();
70
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SelectTemplates, deps: null, target: i0.ɵɵFactoryTarget.Directive });
71
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.1.0", type: SelectTemplates, isStandalone: true, inputs: { templateItem: { classPropertyName: "templateItem", publicName: "templateItem", isSignal: true, isRequired: false, transformFunction: null }, templateSelectedItem: { classPropertyName: "templateSelectedItem", publicName: "templateSelectedItem", isSignal: true, isRequired: false, transformFunction: null }, templateSelectedItems: { classPropertyName: "templateSelectedItems", publicName: "templateSelectedItems", isSignal: true, isRequired: false, transformFunction: null }, templateGroup: { classPropertyName: "templateGroup", publicName: "templateGroup", isSignal: true, isRequired: false, transformFunction: null }, templateNoItems: { classPropertyName: "templateNoItems", publicName: "templateNoItems", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_userItemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "_userSelectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "_userSelectedItemsTemplate", first: true, predicate: ["selectedItems"], descendants: true, isSignal: true }, { propertyName: "_userGroupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "_userNoItemsTemplate", first: true, predicate: ["noItems"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_defaultItemTemplate", first: true, predicate: ["defaultItemTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultSelectedItemTemplate", first: true, predicate: ["defaultSelectedItemTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultSelectedItemsTemplate", first: true, predicate: ["defaultSelectedItemsTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultGroupTemplate", first: true, predicate: ["defaultGroupTemplate"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
70
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: SelectTemplates, deps: null, target: i0.ɵɵFactoryTarget.Directive });
71
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.10", type: SelectTemplates, isStandalone: true, inputs: { templateItem: { classPropertyName: "templateItem", publicName: "templateItem", isSignal: true, isRequired: false, transformFunction: null }, templateSelectedItem: { classPropertyName: "templateSelectedItem", publicName: "templateSelectedItem", isSignal: true, isRequired: false, transformFunction: null }, templateSelectedItems: { classPropertyName: "templateSelectedItems", publicName: "templateSelectedItems", isSignal: true, isRequired: false, transformFunction: null }, templateGroup: { classPropertyName: "templateGroup", publicName: "templateGroup", isSignal: true, isRequired: false, transformFunction: null }, templateNoItems: { classPropertyName: "templateNoItems", publicName: "templateNoItems", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_userItemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "_userSelectedItemTemplate", first: true, predicate: ["selectedItem"], descendants: true, isSignal: true }, { propertyName: "_userSelectedItemsTemplate", first: true, predicate: ["selectedItems"], descendants: true, isSignal: true }, { propertyName: "_userGroupTemplate", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "_userNoItemsTemplate", first: true, predicate: ["noItems"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_defaultItemTemplate", first: true, predicate: ["defaultItemTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultSelectedItemTemplate", first: true, predicate: ["defaultSelectedItemTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultSelectedItemsTemplate", first: true, predicate: ["defaultSelectedItemsTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultGroupTemplate", first: true, predicate: ["defaultGroupTemplate"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: SelectTemplates, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: SelectTemplates, decorators: [{
74
74
  type: Directive
75
75
  }], propDecorators: { _defaultItemTemplate: [{ type: i0.ViewChild, args: ['defaultItemTemplate', { isSignal: true }] }], _userItemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], templateItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateItem", required: false }] }], _defaultSelectedItemTemplate: [{ type: i0.ViewChild, args: ['defaultSelectedItemTemplate', { isSignal: true }] }], _userSelectedItemTemplate: [{ type: i0.ContentChild, args: ['selectedItem', { isSignal: true }] }], templateSelectedItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateSelectedItem", required: false }] }], _defaultSelectedItemsTemplate: [{ type: i0.ViewChild, args: ['defaultSelectedItemsTemplate', { isSignal: true }] }], _userSelectedItemsTemplate: [{ type: i0.ContentChild, args: ['selectedItems', { isSignal: true }] }], templateSelectedItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateSelectedItems", required: false }] }], _defaultGroupTemplate: [{ type: i0.ViewChild, args: ['defaultGroupTemplate', { isSignal: true }] }], _userGroupTemplate: [{ type: i0.ContentChild, args: ['group', { isSignal: true }] }], templateGroup: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateGroup", required: false }] }], _userNoItemsTemplate: [{ type: i0.ContentChild, args: ['noItems', { isSignal: true }] }], templateNoItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateNoItems", required: false }] }] } });
76
76
 
@@ -81,12 +81,12 @@ class NgnSelect extends SelectTemplates {
81
81
  theme = this.injectThemeTemplate(selectControlTemplate, 'root');
82
82
  i18n = inject(I18n).translations;
83
83
  _popover = viewChild.required(NgnPopover);
84
- _customEditableInput = contentChild(NgnInput, ...(ngDevMode ? [{ debugName: "_customEditableInput" }] : []));
84
+ _customEditableInput = contentChild(NgnInput, ...(ngDevMode ? [{ debugName: "_customEditableInput" }] : /* istanbul ignore next */ []));
85
85
  _customEditableSub;
86
86
  /**
87
87
  * Options for the popover.
88
88
  */
89
- popoverOptions = input({}, ...(ngDevMode ? [{ debugName: "popoverOptions" }] : []));
89
+ popoverOptions = input({}, ...(ngDevMode ? [{ debugName: "popoverOptions" }] : /* istanbul ignore next */ []));
90
90
  appliedPopoverOptions = computed(() => deepMerge({
91
91
  sizeConstraints: {
92
92
  width: 1,
@@ -94,40 +94,41 @@ class NgnSelect extends SelectTemplates {
94
94
  minHeight: '250px',
95
95
  maxHeight: '700px',
96
96
  },
97
- }, this.popoverOptions()), ...(ngDevMode ? [{ debugName: "appliedPopoverOptions" }] : []));
97
+ cache: true,
98
+ }, this.popoverOptions()), ...(ngDevMode ? [{ debugName: "appliedPopoverOptions" }] : /* istanbul ignore next */ []));
98
99
  /**
99
100
  * The available options to choose from. They can either be
100
101
  * * A list of {@link NgnItem} objects
101
102
  * * A list of plain objects. You'll have to provide a {@link fields} input to specify how to map the plain objects to {@link NgnItem} objects.
102
103
  */
103
- options = input([], ...(ngDevMode ? [{ debugName: "options" }] : []));
104
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
104
105
  /**
105
106
  * Accepts a boolean value that determines whether the filter is enabled.
106
107
  * Alternatively, you can provide `SelectFilterOptions` to customize the filter behavior.
107
108
  * @default `false`
108
109
  */
109
- filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : []));
110
+ filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
110
111
  /**
111
112
  * Manually set the filter text.
112
113
  */
113
- filterText = input(null, ...(ngDevMode ? [{ debugName: "filterText" }] : []));
114
+ filterText = input(null, ...(ngDevMode ? [{ debugName: "filterText" }] : /* istanbul ignore next */ []));
114
115
  /**
115
116
  * The icon to display in the filter input.
116
117
  */
117
- filterIcon = input(...(ngDevMode ? [undefined, { debugName: "filterIcon" }] : []));
118
+ filterIcon = input(...(ngDevMode ? [undefined, { debugName: "filterIcon" }] : /* istanbul ignore next */ []));
118
119
  /**
119
120
  * The icon to display in the dropdown.
120
121
  */
121
- dropdownIcon = input(...(ngDevMode ? [undefined, { debugName: "dropdownIcon" }] : []));
122
+ dropdownIcon = input(...(ngDevMode ? [undefined, { debugName: "dropdownIcon" }] : /* istanbul ignore next */ []));
122
123
  /**
123
124
  * Whether the select is virtualized.
124
125
  * @default `false`
125
126
  */
126
- virtual = input(false, { ...(ngDevMode ? { debugName: "virtual" } : {}), transform: booleanAttribute });
127
+ virtual = input(false, { ...(ngDevMode ? { debugName: "virtual" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
127
128
  /**
128
129
  * When {@link virtual} is enabled, this property defines the height of each item in the list.
129
130
  */
130
- itemHeight = input(...(ngDevMode ? [undefined, { debugName: "itemHeight" }] : []));
131
+ itemHeight = input(...(ngDevMode ? [undefined, { debugName: "itemHeight" }] : /* istanbul ignore next */ []));
131
132
  /**
132
133
  * Enable this to allow the user to type in a value that is not in the list.
133
134
  * When enabled, the value of the control becomes the label of a selected item or the typed value.
@@ -138,12 +139,12 @@ class NgnSelect extends SelectTemplates {
138
139
  *
139
140
  * @default `false`
140
141
  */
141
- editable = input(...(ngDevMode ? [undefined, { debugName: "editable" }] : []));
142
+ editable = input(...(ngDevMode ? [undefined, { debugName: "editable" }] : /* istanbul ignore next */ []));
142
143
  /**
143
144
  * Whether to automatically filter the options based on the user's input in the {@link editable} input.
144
145
  * @default `true`
145
146
  */
146
- editableAutoFilter = input(true, { ...(ngDevMode ? { debugName: "editableAutoFilter" } : {}), transform: booleanAttribute });
147
+ editableAutoFilter = input(true, { ...(ngDevMode ? { debugName: "editableAutoFilter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
147
148
  /**
148
149
  * Enable this to allow the user to select multiple values.
149
150
  * When enabled, the value of the control becomes an array of selected items.
@@ -151,39 +152,39 @@ class NgnSelect extends SelectTemplates {
151
152
  * This is only applicable when {@link editable} is `false`.
152
153
  * @default `false`
153
154
  */
154
- multiple = input(...(ngDevMode ? [undefined, { debugName: "multiple" }] : []));
155
+ multiple = input(...(ngDevMode ? [undefined, { debugName: "multiple" }] : /* istanbul ignore next */ []));
155
156
  /**
156
157
  * Whether to scroll to the selected item when the dropdown is opened.
157
158
  * @default `true`
158
159
  */
159
- scrollToSelectedItemOnOpen = input(true, ...(ngDevMode ? [{ debugName: "scrollToSelectedItemOnOpen" }] : []));
160
+ scrollToSelectedItemOnOpen = input(true, ...(ngDevMode ? [{ debugName: "scrollToSelectedItemOnOpen" }] : /* istanbul ignore next */ []));
160
161
  /**
161
162
  * Tabindex for the select control.
162
163
  * @default `0`
163
164
  */
164
- tabindex = input(0, ...(ngDevMode ? [{ debugName: "tabindex" }] : []));
165
+ tabindex = input(0, ...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
165
166
  /**
166
167
  * Whether to use a checkbox to indicate selection state.
167
168
  *
168
169
  * This option is true per default when {@link multiple} is `true`.
169
170
  * @default multiple()
170
171
  */
171
- checkbox = input(...(ngDevMode ? [undefined, { debugName: "checkbox" }] : []));
172
+ checkbox = input(...(ngDevMode ? [undefined, { debugName: "checkbox" }] : /* istanbul ignore next */ []));
172
173
  maybeCallback = maybeCallback;
173
- _listbox = viewChild(NgnListBox, ...(ngDevMode ? [{ debugName: "_listbox" }] : []));
174
+ _listbox = viewChild(NgnListBox, ...(ngDevMode ? [{ debugName: "_listbox" }] : /* istanbul ignore next */ []));
174
175
  _userChangedEditableInput = false;
175
- filterTextInternal = linkedSignal(this.filterText, ...(ngDevMode ? [{ debugName: "filterTextInternal" }] : []));
176
- currentHighlightedValue = signal(null, ...(ngDevMode ? [{ debugName: "currentHighlightedValue" }] : []));
176
+ filterTextInternal = linkedSignal(this.filterText, ...(ngDevMode ? [{ debugName: "filterTextInternal" }] : /* istanbul ignore next */ []));
177
+ currentHighlightedValue = signal(null, ...(ngDevMode ? [{ debugName: "currentHighlightedValue" }] : /* istanbul ignore next */ []));
177
178
  valueStr = computed(() => {
178
179
  const v = this.value();
179
180
  return typeof v === 'string' ? v : null;
180
- }, ...(ngDevMode ? [{ debugName: "valueStr" }] : []));
181
+ }, ...(ngDevMode ? [{ debugName: "valueStr" }] : /* istanbul ignore next */ []));
181
182
  valueArray = computed(() => {
182
183
  const v = this.value();
183
184
  return Array.isArray(v) ? v : v ? [v] : [];
184
- }, ...(ngDevMode ? [{ debugName: "valueArray" }] : []));
185
- appliedFilter = computed(() => this.filter() || this.editable() || false, ...(ngDevMode ? [{ debugName: "appliedFilter" }] : []));
186
- _flatOptions = computed(() => mapToItems(this.options()), ...(ngDevMode ? [{ debugName: "_flatOptions" }] : []));
185
+ }, ...(ngDevMode ? [{ debugName: "valueArray" }] : /* istanbul ignore next */ []));
186
+ appliedFilter = computed(() => this.filter() || this.editable() || false, ...(ngDevMode ? [{ debugName: "appliedFilter" }] : /* istanbul ignore next */ []));
187
+ _flatOptions = computed(() => mapToItems(this.options()), ...(ngDevMode ? [{ debugName: "_flatOptions" }] : /* istanbul ignore next */ []));
187
188
  selectedItems = computed(() => {
188
189
  if (this.editable()) {
189
190
  return [this._flatOptions().find(option => option.label === this.value())];
@@ -191,8 +192,8 @@ class NgnSelect extends SelectTemplates {
191
192
  else {
192
193
  return this.valueArray().map(value => this._flatOptions().find(option => option.value === value));
193
194
  }
194
- }, ...(ngDevMode ? [{ debugName: "selectedItems" }] : []));
195
- selectedItemsValues = computed(() => this.selectedItems().map(item => item?.value), ...(ngDevMode ? [{ debugName: "selectedItemsValues" }] : []));
195
+ }, ...(ngDevMode ? [{ debugName: "selectedItems" }] : /* istanbul ignore next */ []));
196
+ selectedItemsValues = computed(() => this.selectedItems().map(item => item?.value), ...(ngDevMode ? [{ debugName: "selectedItemsValues" }] : /* istanbul ignore next */ []));
196
197
  constructor() {
197
198
  super();
198
199
  effect(() => {
@@ -337,10 +338,10 @@ class NgnSelect extends SelectTemplates {
337
338
  this.touched.set(true);
338
339
  });
339
340
  }
340
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NgnSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
341
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.0", type: NgnSelect, isStandalone: true, selector: "ngn-select", inputs: { popoverOptions: { classPropertyName: "popoverOptions", publicName: "popoverOptions", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterText: { classPropertyName: "filterText", publicName: "filterText", isSignal: true, isRequired: false, transformFunction: null }, filterIcon: { classPropertyName: "filterIcon", publicName: "filterIcon", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, virtual: { classPropertyName: "virtual", publicName: "virtual", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, editableAutoFilter: { classPropertyName: "editableAutoFilter", publicName: "editableAutoFilter", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, scrollToSelectedItemOnOpen: { classPropertyName: "scrollToSelectedItemOnOpen", publicName: "scrollToSelectedItemOnOpen", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: block;" }, providers: [provideSelf(NgnSelect)], queries: [{ propertyName: "_customEditableInput", first: true, predicate: NgnInput, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_popover", first: true, predicate: NgnPopover, descendants: true, isSignal: true }, { propertyName: "_listbox", first: true, predicate: NgnListBox, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon [ptInt]=\"this\" [ptClass]=\"'icon'\" [icon]=\"dropdownIcon()\" defaultIcon=\"chevron_down\" />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"magnifying_glass\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgnPt, selector: "[ptInt]", inputs: ["ptInt", "ptClass"] }, { kind: "component", type: NgnInputField, selector: "ngn-input-field", inputs: ["label", "labelledBy", "labelKind", "inputId", "showClearButton", "iconClearButton", "tabindex", "invalid", "readonly", "disabled"] }, { kind: "component", type: NgnListBox, selector: "ngn-list-box", inputs: ["items", "scrollToSelectedItemOnInit", "selectable", "selectOnHover", "focussable", "virtual", "itemHeight", "multiple", "checkbox", "filter", "filterText"], outputs: ["itemClicked"] }, { kind: "component", type: NgnPopover, selector: "ngn-popover", inputs: ["open", "anchor", "options", "hasShrinkableContent", "closeBy"], outputs: ["closed", "closing", "openChange"] }, { kind: "directive", type: NgnInput, selector: "input[ngnInput], textarea[ngnInput]", inputs: ["invalid", "value"], outputs: ["valueChange"], exportAs: ["ngnInput"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgnTemplate, selector: "ng-template[ngnTemplate]", inputs: ["ngnTemplate"] }, { kind: "component", type: NgnItemView, selector: "ngn-item-view", inputs: ["idField", "items", "separator", "iconItemSeparator", "overflowStrategy", "overflowStrategyFreezeCount", "overflowStrategyIndex", "sameWidthItems"] }, { kind: "component", type: NgnIcon, selector: "ngn-icon", inputs: ["defaultIcon", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
341
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: NgnSelect, deps: [], target: i0.ɵɵFactoryTarget.Component });
342
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.10", type: NgnSelect, isStandalone: true, selector: "ngn-select", inputs: { popoverOptions: { classPropertyName: "popoverOptions", publicName: "popoverOptions", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterText: { classPropertyName: "filterText", publicName: "filterText", isSignal: true, isRequired: false, transformFunction: null }, filterIcon: { classPropertyName: "filterIcon", publicName: "filterIcon", isSignal: true, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: true, isRequired: false, transformFunction: null }, virtual: { classPropertyName: "virtual", publicName: "virtual", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, editableAutoFilter: { classPropertyName: "editableAutoFilter", publicName: "editableAutoFilter", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, scrollToSelectedItemOnOpen: { classPropertyName: "scrollToSelectedItemOnOpen", publicName: "scrollToSelectedItemOnOpen", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: true, isRequired: false, transformFunction: null } }, host: { styleAttribute: "display: block;" }, providers: [provideSelf(NgnSelect)], queries: [{ propertyName: "_customEditableInput", first: true, predicate: NgnInput, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_popover", first: true, predicate: NgnPopover, descendants: true, isSignal: true }, { propertyName: "_listbox", first: true, predicate: NgnListBox, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'icon'\"\r\n [icon]=\"dropdownIcon()\"\r\n defaultIcon=\"dropdown-toggle\"\r\n />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"search\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n", dependencies: [{ kind: "directive", type: NgnPt, selector: "[ptInt]", inputs: ["ptInt", "ptClass"] }, { kind: "component", type: NgnInputField, selector: "ngn-input-field", inputs: ["label", "labelledBy", "labelKind", "inputId", "showClearButton", "iconClearButton", "tabindex", "invalid", "readonly", "disabled"] }, { kind: "component", type: NgnListBox, selector: "ngn-list-box", inputs: ["items", "scrollToSelectedItemOnInit", "selectable", "selectOnHover", "focussable", "virtual", "itemHeight", "multiple", "checkbox", "filter", "filterText"], outputs: ["itemClicked"] }, { kind: "component", type: NgnPopover, selector: "ngn-popover", inputs: ["open", "anchor", "options", "hasShrinkableContent", "closeBy"], outputs: ["closed", "closing", "openChange"] }, { kind: "directive", type: NgnInput, selector: "input[ngnInput], textarea[ngnInput]", inputs: ["invalid", "value"], outputs: ["valueChange"], exportAs: ["ngnInput"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgnTemplate, selector: "ng-template[ngnTemplate]", inputs: ["ngnTemplate"] }, { kind: "component", type: NgnItemView, selector: "ngn-item-view", inputs: ["idField", "items", "separator", "iconItemSeparator", "overflowStrategy", "overflowStrategyFreezeCount", "overflowStrategyIndex", "sameWidthItems"] }, { kind: "component", type: NgnIcon, selector: "ngn-icon", inputs: ["defaultIcon", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
342
343
  }
343
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: NgnSelect, decorators: [{
344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: NgnSelect, decorators: [{
344
345
  type: Component,
345
346
  args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ngn-select', imports: [
346
347
  NgnPt,
@@ -354,7 +355,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
354
355
  NgnIcon,
355
356
  ], providers: [provideSelf(NgnSelect)], host: {
356
357
  style: 'display: block;',
357
- }, template: "<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon [ptInt]=\"this\" [ptClass]=\"'icon'\" [icon]=\"dropdownIcon()\" defaultIcon=\"chevron_down\" />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"magnifying_glass\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n" }]
358
+ }, template: "<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'icon'\"\r\n [icon]=\"dropdownIcon()\"\r\n defaultIcon=\"dropdown-toggle\"\r\n />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"search\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n" }]
358
359
  }], ctorParameters: () => [], propDecorators: { _popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgnPopover), { isSignal: true }] }], _customEditableInput: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NgnInput), { isSignal: true }] }], popoverOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "popoverOptions", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterText: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterText", required: false }] }], filterIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterIcon", required: false }] }], dropdownIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIcon", required: false }] }], virtual: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtual", required: false }] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], editableAutoFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "editableAutoFilter", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], scrollToSelectedItemOnOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollToSelectedItemOnOpen", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], checkbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkbox", required: false }] }], _listbox: [{ type: i0.ViewChild, args: [i0.forwardRef(() => NgnListBox), { isSignal: true }] }] } });
359
360
 
360
361
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ngneers-controls-select.mjs","sources":["../../src/select/select-templates.ts","../../src/select/select.ts","../../src/select/select.html","../../src/select/ngneers-controls-select.ts"],"sourcesContent":["import { computed, contentChild, Directive, input, TemplateRef, viewChild } from '@angular/core';\r\nimport { templateTypesFn } from '@ngneers/controls/api/ng';\r\nimport { ValueControlBase } from '@ngneers/controls/base';\r\n\r\nimport type { NgnItem } from '@ngneers/controls/api';\r\nimport type { InputGeneric } from '@ngneers/controls/utils';\r\n\r\n/**\r\n * This type determines the value type for the select control.\r\n * * If `multiple` is true, the value is an array of items: `T[K][]`.\r\n * * If `editable` is true, the value is a `string`.\r\n * * If neither is true, the value is the item's value type `T[K]`.\r\n */\r\nexport type ValueType<V, Editable extends boolean, Multiple extends boolean> =\r\n InputGeneric<Multiple, false> extends true\r\n ? V[]\r\n : InputGeneric<Editable, false> extends true\r\n ? string\r\n : V;\r\n\r\n@Directive()\r\nexport abstract class SelectTemplates<\r\n V,\r\n Editable extends boolean,\r\n Multiple extends boolean,\r\n> extends ValueControlBase<'select', ValueType<V, Editable, Multiple> | null> {\r\n // Item template\r\n private readonly _defaultItemTemplate =\r\n viewChild.required<TemplateRef<typeof this.templateTypes.item>>('defaultItemTemplate');\r\n private readonly _userItemTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('item');\r\n /**\r\n * Set a custom template for an item of the select control.\r\n * Can also be set using an `<ng-template>` element with `#item` template reference variable.\r\n */\r\n public readonly templateItem = input<TemplateRef<typeof this.templateTypes.item> | null>(null);\r\n protected readonly itemTemplate = computed(\r\n () => this._userItemTemplate() ?? this.templateItem() ?? this._defaultItemTemplate()\r\n );\r\n\r\n // Selected item template\r\n private readonly _defaultSelectedItemTemplate = viewChild.required<\r\n TemplateRef<typeof this.templateTypes.item>\r\n >('defaultSelectedItemTemplate');\r\n private readonly _userSelectedItemTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('selectedItem');\r\n /**\r\n * Set a custom template for the selected item of the select control.\r\n * Can also be set using an `<ng-template>` element with `#selectedItem` template reference variable.\r\n */\r\n public readonly templateSelectedItem = input<TemplateRef<typeof this.templateTypes.item> | null>(\r\n null\r\n );\r\n protected readonly selectedItemTemplate = computed(\r\n () =>\r\n this._userSelectedItemTemplate() ??\r\n this.templateSelectedItem() ??\r\n this._defaultSelectedItemTemplate()\r\n );\r\n\r\n // Selected items template\r\n private readonly _defaultSelectedItemsTemplate = viewChild.required<\r\n TemplateRef<typeof this.templateTypes.selectedItems>\r\n >('defaultSelectedItemsTemplate');\r\n private readonly _userSelectedItemsTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.selectedItems>>('selectedItems');\r\n /**\r\n * Set a custom template for the selected items of the select control if {@link multiple} is `true`.\r\n * Can also be set using an `<ng-template>` element with `#selectedItems` template reference variable.\r\n */\r\n public readonly templateSelectedItems = input<TemplateRef<\r\n typeof this.templateTypes.selectedItems\r\n > | null>(null);\r\n protected readonly selectedItemsTemplate = computed(\r\n () =>\r\n this._userSelectedItemsTemplate() ??\r\n this.templateSelectedItems() ??\r\n this._defaultSelectedItemsTemplate()\r\n );\r\n\r\n // Group template\r\n private readonly _defaultGroupTemplate =\r\n viewChild.required<TemplateRef<typeof this.templateTypes.item>>('defaultGroupTemplate');\r\n private readonly _userGroupTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('group');\r\n /**\r\n * Set a custom template for a group in the select control.\r\n * Can also be set using an `<ng-template>` element with `#group` template reference variable.\r\n */\r\n public readonly templateGroup = input<TemplateRef<typeof this.templateTypes.item> | null>(null);\r\n protected readonly groupTemplate = computed(\r\n () => this._userGroupTemplate() ?? this.templateGroup() ?? this._defaultGroupTemplate()\r\n );\r\n\r\n // No items template\r\n private readonly _userNoItemsTemplate = contentChild<TemplateRef<unknown>>('noItems');\r\n /**\r\n * Set a custom template for the no items state of the select control.\r\n * Can also be set using an `<ng-template>` element with `#noItems` template reference variable.\r\n */\r\n public readonly templateNoItems = input<TemplateRef<unknown> | null>(null);\r\n protected readonly noItemsTemplate = computed(\r\n () => this._userNoItemsTemplate() ?? this.templateNoItems()\r\n );\r\n\r\n /**\r\n * Types for the dialog templates.\r\n */\r\n public readonly templateTypes = templateTypesFn<{\r\n item: {\r\n $implicit: NgnItem<unknown, V> | undefined;\r\n };\r\n selectedItems: {\r\n $implicit: NgnItem<unknown, V>[];\r\n };\r\n }>();\r\n}\r\n","import { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n booleanAttribute,\r\n Component,\r\n computed,\r\n contentChild,\r\n effect,\r\n input,\r\n linkedSignal,\r\n type OutputRefSubscription,\r\n type Signal,\r\n signal,\r\n viewChild,\r\n ChangeDetectionStrategy,\r\n inject,\r\n} from '@angular/core';\r\nimport { type FilterConfig, mapToItems, type NgnItem } from '@ngneers/controls/api';\r\nimport { NgnTemplate } from '@ngneers/controls/api/ng';\r\nimport { NgnPt, provideSelf } from '@ngneers/controls/base';\r\nimport { I18n } from '@ngneers/controls/i18n';\r\nimport { NgnIcon } from '@ngneers/controls/icon';\r\nimport { NgnInput } from '@ngneers/controls/input';\r\nimport { NgnInputField } from '@ngneers/controls/input-field';\r\nimport { NgnItemView } from '@ngneers/controls/item-view';\r\nimport { NgnListBox } from '@ngneers/controls/list-box';\r\nimport { NgnPopover, type PopoverOptions } from '@ngneers/controls/popover';\r\nimport { deepMerge, maybeCallback, NgnError } from '@ngneers/controls/utils';\r\nimport { selectControlTemplate } from '@ngneers/controls-themes/templates/select';\r\n\r\nimport { SelectTemplates, type ValueType } from './select-templates';\r\n\r\nimport type { SelectFilterOptions } from './types';\r\nimport type { IconType } from '@ngneers/controls-custom-types';\r\n\r\n/**\r\n * @category control\r\n */\r\n@Component({\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n selector: 'ngn-select',\r\n templateUrl: './select.html',\r\n imports: [\r\n NgnPt,\r\n NgnInputField,\r\n NgnListBox,\r\n NgnPopover,\r\n NgnInput,\r\n NgTemplateOutlet,\r\n NgnTemplate,\r\n NgnItemView,\r\n NgnIcon,\r\n ],\r\n providers: [provideSelf(NgnSelect)],\r\n host: {\r\n style: 'display: block;',\r\n },\r\n})\r\nexport class NgnSelect<\r\n V,\r\n Editable extends boolean = false,\r\n Multiple extends boolean = false,\r\n> extends SelectTemplates<V, Editable, Multiple> {\r\n protected readonly theme = this.injectThemeTemplate(selectControlTemplate, 'root');\r\n protected readonly i18n = inject(I18n).translations;\r\n private readonly _popover = viewChild.required<NgnPopover>(NgnPopover);\r\n private readonly _customEditableInput = contentChild(NgnInput);\r\n private _customEditableSub?: OutputRefSubscription;\r\n\r\n /**\r\n * Options for the popover.\r\n */\r\n public readonly popoverOptions = input<PopoverOptions>({});\r\n protected readonly appliedPopoverOptions = computed(() =>\r\n deepMerge(\r\n {\r\n sizeConstraints: {\r\n width: 1,\r\n maxWidth: 1,\r\n minHeight: '250px',\r\n maxHeight: '700px',\r\n },\r\n },\r\n this.popoverOptions()\r\n )\r\n );\r\n /**\r\n * The available options to choose from. They can either be\r\n * * A list of {@link NgnItem} objects\r\n * * A list of plain objects. You'll have to provide a {@link fields} input to specify how to map the plain objects to {@link NgnItem} objects.\r\n */\r\n public readonly options = input<readonly NgnItem<unknown, V>[]>([]);\r\n /**\r\n * Accepts a boolean value that determines whether the filter is enabled.\r\n * Alternatively, you can provide `SelectFilterOptions` to customize the filter behavior.\r\n * @default `false`\r\n */\r\n public readonly filter = input<SelectFilterOptions<NgnItem<unknown, V>> | boolean>(false);\r\n /**\r\n * Manually set the filter text.\r\n */\r\n public readonly filterText = input<string | null>(null);\r\n /**\r\n * The icon to display in the filter input.\r\n */\r\n public readonly filterIcon = input<IconType>();\r\n /**\r\n * The icon to display in the dropdown.\r\n */\r\n public readonly dropdownIcon = input<IconType>();\r\n /**\r\n * Whether the select is virtualized.\r\n * @default `false`\r\n */\r\n public readonly virtual = input(false, { transform: booleanAttribute });\r\n /**\r\n * When {@link virtual} is enabled, this property defines the height of each item in the list.\r\n */\r\n public readonly itemHeight = input<number>();\r\n /**\r\n * Enable this to allow the user to type in a value that is not in the list.\r\n * When enabled, the value of the control becomes the label of a selected item or the typed value.\r\n *\r\n * Cannot be used with\r\n * * {@link multiple} selection\r\n * * {@link filter} without also setting {@link editableAutoFilter} to `false`\r\n *\r\n * @default `false`\r\n */\r\n public readonly editable = input<Editable>();\r\n /**\r\n * Whether to automatically filter the options based on the user's input in the {@link editable} input.\r\n * @default `true`\r\n */\r\n public readonly editableAutoFilter = input(true, { transform: booleanAttribute });\r\n /**\r\n * Enable this to allow the user to select multiple values.\r\n * When enabled, the value of the control becomes an array of selected items.\r\n *\r\n * This is only applicable when {@link editable} is `false`.\r\n * @default `false`\r\n */\r\n public readonly multiple = input<Multiple>();\r\n /**\r\n * Whether to scroll to the selected item when the dropdown is opened.\r\n * @default `true`\r\n */\r\n public readonly scrollToSelectedItemOnOpen = input<boolean | ScrollLogicalPosition>(true);\r\n /**\r\n * Tabindex for the select control.\r\n * @default `0`\r\n */\r\n public readonly tabindex = input<number>(0);\r\n /**\r\n * Whether to use a checkbox to indicate selection state.\r\n *\r\n * This option is true per default when {@link multiple} is `true`.\r\n * @default multiple()\r\n */\r\n public readonly checkbox = input<boolean>();\r\n\r\n protected readonly maybeCallback = maybeCallback;\r\n\r\n private readonly _listbox = viewChild(NgnListBox);\r\n private _userChangedEditableInput = false;\r\n\r\n protected readonly filterTextInternal = linkedSignal(this.filterText);\r\n protected readonly currentHighlightedValue = signal<V | null>(null);\r\n protected readonly valueStr = computed(() => {\r\n const v = this.value();\r\n return typeof v === 'string' ? v : null;\r\n });\r\n protected readonly valueArray = computed(() => {\r\n const v = this.value();\r\n return Array.isArray(v) ? v : v ? [v] : [];\r\n });\r\n\r\n protected readonly appliedFilter: Signal<FilterConfig<NgnItem> | boolean> = computed(\r\n () => this.filter() || this.editable() || false\r\n );\r\n\r\n private readonly _flatOptions = computed(() => mapToItems(this.options()));\r\n\r\n protected readonly selectedItems = computed(() => {\r\n if (this.editable()) {\r\n return [this._flatOptions().find(option => option.label === this.value())];\r\n } else {\r\n return this.valueArray().map(value =>\r\n this._flatOptions().find(option => option.value === value)\r\n );\r\n }\r\n });\r\n protected readonly selectedItemsValues = computed(() =>\r\n this.selectedItems().map(item => item?.value)\r\n );\r\n\r\n constructor() {\r\n super();\r\n effect(() => {\r\n if (this.editable() && this.multiple()) {\r\n throw new NgnError('select', 'Editable and multiple selection cannot be used together');\r\n }\r\n if (this.editable() && this.filter()) {\r\n throw new NgnError('select', 'Editable and filtering cannot be used together');\r\n }\r\n });\r\n effect(() => {\r\n this._customEditableSub?.unsubscribe();\r\n const editable = this.editable();\r\n const customEditableInput = this._customEditableInput();\r\n if (!editable || !customEditableInput) {\r\n return;\r\n }\r\n\r\n this._customEditableSub = customEditableInput.value.subscribe(value => {\r\n this.onEditableChange(value);\r\n });\r\n // Set ARIA attributes for accessibility\r\n customEditableInput.element.nativeElement.setAttribute('aria-autocomplete', 'list');\r\n customEditableInput.element.nativeElement.setAttribute(\r\n 'aria-expanded',\r\n `${this._popover().open()}`\r\n );\r\n customEditableInput.element.nativeElement.setAttribute('aria-haspopup', 'listbox');\r\n customEditableInput.element.nativeElement.setAttribute(\r\n 'aria-controls',\r\n `${this.inputId()}_listbox`\r\n );\r\n });\r\n effect(() => {\r\n if (!this.editable()) {\r\n return;\r\n }\r\n const valueSig = this._customEditableInput()?.value;\r\n if (valueSig) {\r\n valueSig.set((this.value() as string) || '');\r\n }\r\n });\r\n effect(() => {\r\n if (!this.editable()) {\r\n return;\r\n }\r\n const hasOptions = !!this._listbox()?.displayedItems().length;\r\n if (!this._userChangedEditableInput) {\r\n return;\r\n }\r\n this._userChangedEditableInput = false;\r\n if (hasOptions) {\r\n this.show();\r\n } else {\r\n this.hide();\r\n }\r\n });\r\n }\r\n\r\n protected onKeyDown(event: KeyboardEvent) {\r\n this._listbox()?.onKeyDown(event);\r\n // if event is not handled by the listbox, we can handle it here\r\n if (!event.defaultPrevented) {\r\n if (event.key === 'Enter') {\r\n if (this.readonly() || this.disabled()) {\r\n return;\r\n }\r\n this._popover().toggle();\r\n event.stopPropagation();\r\n event.preventDefault();\r\n }\r\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\r\n if (this.readonly() || this.disabled()) {\r\n return;\r\n }\r\n const currentIndex = this.options().findIndex(option => option.value === this.value());\r\n let newIndex = event.key === 'ArrowDown' ? currentIndex + 1 : currentIndex - 1;\r\n if (newIndex < 0) {\r\n newIndex = 0;\r\n }\r\n if (newIndex >= this.options().length) {\r\n newIndex = this.options().length - 1;\r\n }\r\n const newValue = this.options()[newIndex]?.value;\r\n if (newValue !== undefined) {\r\n this.onSelect(newValue as ValueType<V, false, Multiple>);\r\n }\r\n }\r\n }\r\n }\r\n\r\n protected onPopoverClosed() {\r\n this.potentiallyBlurred();\r\n this.currentHighlightedValue.set(null);\r\n const filter = this.filter();\r\n if (filter === true || (typeof filter === 'object' && filter.clearFilterOnClose)) {\r\n if (!this.editable()) {\r\n this.filterTextInternal.set('');\r\n }\r\n }\r\n }\r\n\r\n protected onSelect(value: ValueType<V, false, Multiple> | null) {\r\n if (this.editable()) {\r\n const item = this._flatOptions().find(option => option.value === value);\r\n if (item) {\r\n this.value.set(maybeCallback(item.label) as ValueType<V, Editable, Multiple>);\r\n }\r\n } else {\r\n const v = value as ValueType<V, Editable, Multiple>;\r\n if (this.value() !== v) {\r\n this.value.set(v);\r\n }\r\n }\r\n }\r\n\r\n protected onItemClicked() {\r\n if (!this.multiple()) {\r\n this.hide();\r\n }\r\n }\r\n\r\n /**\r\n * Shows the select dropdown.\r\n */\r\n public show() {\r\n if (this.disabled() || this.readonly()) {\r\n return;\r\n }\r\n this._popover().show();\r\n }\r\n\r\n /**\r\n * Hides the select dropdown.\r\n */\r\n public hide() {\r\n this._popover().hide();\r\n }\r\n\r\n protected onEditableChange(value: string | null) {\r\n if (this.editable()) {\r\n this.value.set(maybeCallback(value) as ValueType<V, Editable, Multiple>);\r\n this._userChangedEditableInput = true;\r\n if (this.editableAutoFilter()) {\r\n this.filterTextInternal.set(value);\r\n }\r\n }\r\n }\r\n\r\n protected potentiallyBlurred() {\r\n setTimeout(() => {\r\n if (this.element.nativeElement.contains(document.activeElement) || this._popover().open()) {\r\n return;\r\n }\r\n this.touched.set(true);\r\n });\r\n }\r\n}\r\n","<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon [ptInt]=\"this\" [ptClass]=\"'icon'\" [icon]=\"dropdownIcon()\" defaultIcon=\"chevron_down\" />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"magnifying_glass\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAqBM,MAAgB,eAIpB,SAAQ,gBAAmE,CAAA;;AAE1D,IAAA,oBAAoB,GACnC,SAAS,CAAC,QAAQ,CAA8C,qBAAqB,CAAC;AACvE,IAAA,iBAAiB,GAChC,YAAY,CAA8C,MAAM,6DAAC;AACnE;;;AAGG;AACa,IAAA,YAAY,GAAG,KAAK,CAAqD,IAAI,wDAAC;IAC3E,YAAY,GAAG,QAAQ,CACxC,MAAM,IAAI,CAAC,iBAAiB,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE,IAAI,IAAI,CAAC,oBAAoB,EAAE,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,cAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CACrF;;AAGgB,IAAA,4BAA4B,GAAG,SAAS,CAAC,QAAQ,CAEhE,6BAA6B,CAAC;AACf,IAAA,yBAAyB,GACxC,YAAY,CAA8C,cAAc,qEAAC;AAC3E;;;AAGG;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file":"ngneers-controls-select.mjs","sources":["../../src/select/select-templates.ts","../../src/select/select.ts","../../src/select/select.html","../../src/select/ngneers-controls-select.ts"],"sourcesContent":["import { computed, contentChild, Directive, input, TemplateRef, viewChild } from '@angular/core';\r\nimport { templateTypesFn } from '@ngneers/controls/api/ng';\r\nimport { ValueControlBase } from '@ngneers/controls/base';\r\n\r\nimport type { NgnItem } from '@ngneers/controls/api';\r\nimport type { InputGeneric } from '@ngneers/controls/utils';\r\n\r\n/**\r\n * This type determines the value type for the select control.\r\n * * If `multiple` is true, the value is an array of items: `T[K][]`.\r\n * * If `editable` is true, the value is a `string`.\r\n * * If neither is true, the value is the item's value type `T[K]`.\r\n */\r\nexport type ValueType<V, Editable extends boolean, Multiple extends boolean> =\r\n InputGeneric<Multiple, false> extends true\r\n ? V[]\r\n : InputGeneric<Editable, false> extends true\r\n ? string\r\n : V;\r\n\r\n@Directive()\r\nexport abstract class SelectTemplates<\r\n V,\r\n Editable extends boolean,\r\n Multiple extends boolean,\r\n> extends ValueControlBase<'select', ValueType<V, Editable, Multiple> | null> {\r\n // Item template\r\n private readonly _defaultItemTemplate =\r\n viewChild.required<TemplateRef<typeof this.templateTypes.item>>('defaultItemTemplate');\r\n private readonly _userItemTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('item');\r\n /**\r\n * Set a custom template for an item of the select control.\r\n * Can also be set using an `<ng-template>` element with `#item` template reference variable.\r\n */\r\n public readonly templateItem = input<TemplateRef<typeof this.templateTypes.item> | null>(null);\r\n protected readonly itemTemplate = computed(\r\n () => this._userItemTemplate() ?? this.templateItem() ?? this._defaultItemTemplate()\r\n );\r\n\r\n // Selected item template\r\n private readonly _defaultSelectedItemTemplate = viewChild.required<\r\n TemplateRef<typeof this.templateTypes.item>\r\n >('defaultSelectedItemTemplate');\r\n private readonly _userSelectedItemTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('selectedItem');\r\n /**\r\n * Set a custom template for the selected item of the select control.\r\n * Can also be set using an `<ng-template>` element with `#selectedItem` template reference variable.\r\n */\r\n public readonly templateSelectedItem = input<TemplateRef<typeof this.templateTypes.item> | null>(\r\n null\r\n );\r\n protected readonly selectedItemTemplate = computed(\r\n () =>\r\n this._userSelectedItemTemplate() ??\r\n this.templateSelectedItem() ??\r\n this._defaultSelectedItemTemplate()\r\n );\r\n\r\n // Selected items template\r\n private readonly _defaultSelectedItemsTemplate = viewChild.required<\r\n TemplateRef<typeof this.templateTypes.selectedItems>\r\n >('defaultSelectedItemsTemplate');\r\n private readonly _userSelectedItemsTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.selectedItems>>('selectedItems');\r\n /**\r\n * Set a custom template for the selected items of the select control if {@link multiple} is `true`.\r\n * Can also be set using an `<ng-template>` element with `#selectedItems` template reference variable.\r\n */\r\n public readonly templateSelectedItems = input<TemplateRef<\r\n typeof this.templateTypes.selectedItems\r\n > | null>(null);\r\n protected readonly selectedItemsTemplate = computed(\r\n () =>\r\n this._userSelectedItemsTemplate() ??\r\n this.templateSelectedItems() ??\r\n this._defaultSelectedItemsTemplate()\r\n );\r\n\r\n // Group template\r\n private readonly _defaultGroupTemplate =\r\n viewChild.required<TemplateRef<typeof this.templateTypes.item>>('defaultGroupTemplate');\r\n private readonly _userGroupTemplate =\r\n contentChild<TemplateRef<typeof this.templateTypes.item>>('group');\r\n /**\r\n * Set a custom template for a group in the select control.\r\n * Can also be set using an `<ng-template>` element with `#group` template reference variable.\r\n */\r\n public readonly templateGroup = input<TemplateRef<typeof this.templateTypes.item> | null>(null);\r\n protected readonly groupTemplate = computed(\r\n () => this._userGroupTemplate() ?? this.templateGroup() ?? this._defaultGroupTemplate()\r\n );\r\n\r\n // No items template\r\n private readonly _userNoItemsTemplate = contentChild<TemplateRef<unknown>>('noItems');\r\n /**\r\n * Set a custom template for the no items state of the select control.\r\n * Can also be set using an `<ng-template>` element with `#noItems` template reference variable.\r\n */\r\n public readonly templateNoItems = input<TemplateRef<unknown> | null>(null);\r\n protected readonly noItemsTemplate = computed(\r\n () => this._userNoItemsTemplate() ?? this.templateNoItems()\r\n );\r\n\r\n /**\r\n * Types for the dialog templates.\r\n */\r\n public readonly templateTypes = templateTypesFn<{\r\n item: {\r\n $implicit: NgnItem<unknown, V> | undefined;\r\n };\r\n selectedItems: {\r\n $implicit: NgnItem<unknown, V>[];\r\n };\r\n }>();\r\n}\r\n","import { NgTemplateOutlet } from '@angular/common';\r\nimport {\r\n booleanAttribute,\r\n Component,\r\n computed,\r\n contentChild,\r\n effect,\r\n input,\r\n linkedSignal,\r\n type OutputRefSubscription,\r\n type Signal,\r\n signal,\r\n viewChild,\r\n ChangeDetectionStrategy,\r\n inject,\r\n} from '@angular/core';\r\nimport { type FilterConfig, mapToItems, type NgnItem } from '@ngneers/controls/api';\r\nimport { NgnTemplate } from '@ngneers/controls/api/ng';\r\nimport { NgnPt, provideSelf } from '@ngneers/controls/base';\r\nimport { I18n } from '@ngneers/controls/i18n';\r\nimport { NgnIcon } from '@ngneers/controls/icon';\r\nimport { NgnInput } from '@ngneers/controls/input';\r\nimport { NgnInputField } from '@ngneers/controls/input-field';\r\nimport { NgnItemView } from '@ngneers/controls/item-view';\r\nimport { NgnListBox } from '@ngneers/controls/list-box';\r\nimport { NgnPopover, type PopoverOptions } from '@ngneers/controls/popover';\r\nimport { deepMerge, maybeCallback, NgnError } from '@ngneers/controls/utils';\r\nimport { selectControlTemplate } from '@ngneers/controls-themes/templates/select';\r\n\r\nimport { SelectTemplates, type ValueType } from './select-templates';\r\n\r\nimport type { SelectFilterOptions } from './types';\r\nimport type { IconType } from '@ngneers/controls-custom-types';\r\n\r\n/**\r\n * @category control\r\n */\r\n@Component({\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n selector: 'ngn-select',\r\n templateUrl: './select.html',\r\n imports: [\r\n NgnPt,\r\n NgnInputField,\r\n NgnListBox,\r\n NgnPopover,\r\n NgnInput,\r\n NgTemplateOutlet,\r\n NgnTemplate,\r\n NgnItemView,\r\n NgnIcon,\r\n ],\r\n providers: [provideSelf(NgnSelect)],\r\n host: {\r\n style: 'display: block;',\r\n },\r\n})\r\nexport class NgnSelect<\r\n V,\r\n Editable extends boolean = false,\r\n Multiple extends boolean = false,\r\n> extends SelectTemplates<V, Editable, Multiple> {\r\n protected readonly theme = this.injectThemeTemplate(selectControlTemplate, 'root');\r\n protected readonly i18n = inject(I18n).translations;\r\n private readonly _popover = viewChild.required<NgnPopover>(NgnPopover);\r\n private readonly _customEditableInput = contentChild(NgnInput);\r\n private _customEditableSub?: OutputRefSubscription;\r\n\r\n /**\r\n * Options for the popover.\r\n */\r\n public readonly popoverOptions = input<PopoverOptions>({});\r\n protected readonly appliedPopoverOptions = computed<PopoverOptions>(() =>\r\n deepMerge<PopoverOptions, PopoverOptions>(\r\n {\r\n sizeConstraints: {\r\n width: 1,\r\n maxWidth: 1,\r\n minHeight: '250px',\r\n maxHeight: '700px',\r\n },\r\n cache: true,\r\n },\r\n this.popoverOptions()\r\n )\r\n );\r\n /**\r\n * The available options to choose from. They can either be\r\n * * A list of {@link NgnItem} objects\r\n * * A list of plain objects. You'll have to provide a {@link fields} input to specify how to map the plain objects to {@link NgnItem} objects.\r\n */\r\n public readonly options = input<readonly NgnItem<unknown, V>[]>([]);\r\n /**\r\n * Accepts a boolean value that determines whether the filter is enabled.\r\n * Alternatively, you can provide `SelectFilterOptions` to customize the filter behavior.\r\n * @default `false`\r\n */\r\n public readonly filter = input<SelectFilterOptions<NgnItem<unknown, V>> | boolean>(false);\r\n /**\r\n * Manually set the filter text.\r\n */\r\n public readonly filterText = input<string | null>(null);\r\n /**\r\n * The icon to display in the filter input.\r\n */\r\n public readonly filterIcon = input<IconType>();\r\n /**\r\n * The icon to display in the dropdown.\r\n */\r\n public readonly dropdownIcon = input<IconType>();\r\n /**\r\n * Whether the select is virtualized.\r\n * @default `false`\r\n */\r\n public readonly virtual = input(false, { transform: booleanAttribute });\r\n /**\r\n * When {@link virtual} is enabled, this property defines the height of each item in the list.\r\n */\r\n public readonly itemHeight = input<number>();\r\n /**\r\n * Enable this to allow the user to type in a value that is not in the list.\r\n * When enabled, the value of the control becomes the label of a selected item or the typed value.\r\n *\r\n * Cannot be used with\r\n * * {@link multiple} selection\r\n * * {@link filter} without also setting {@link editableAutoFilter} to `false`\r\n *\r\n * @default `false`\r\n */\r\n public readonly editable = input<Editable>();\r\n /**\r\n * Whether to automatically filter the options based on the user's input in the {@link editable} input.\r\n * @default `true`\r\n */\r\n public readonly editableAutoFilter = input(true, { transform: booleanAttribute });\r\n /**\r\n * Enable this to allow the user to select multiple values.\r\n * When enabled, the value of the control becomes an array of selected items.\r\n *\r\n * This is only applicable when {@link editable} is `false`.\r\n * @default `false`\r\n */\r\n public readonly multiple = input<Multiple>();\r\n /**\r\n * Whether to scroll to the selected item when the dropdown is opened.\r\n * @default `true`\r\n */\r\n public readonly scrollToSelectedItemOnOpen = input<boolean | ScrollLogicalPosition>(true);\r\n /**\r\n * Tabindex for the select control.\r\n * @default `0`\r\n */\r\n public readonly tabindex = input<number>(0);\r\n /**\r\n * Whether to use a checkbox to indicate selection state.\r\n *\r\n * This option is true per default when {@link multiple} is `true`.\r\n * @default multiple()\r\n */\r\n public readonly checkbox = input<boolean>();\r\n\r\n protected readonly maybeCallback = maybeCallback;\r\n\r\n private readonly _listbox = viewChild(NgnListBox);\r\n private _userChangedEditableInput = false;\r\n\r\n protected readonly filterTextInternal = linkedSignal(this.filterText);\r\n protected readonly currentHighlightedValue = signal<V | null>(null);\r\n protected readonly valueStr = computed(() => {\r\n const v = this.value();\r\n return typeof v === 'string' ? v : null;\r\n });\r\n protected readonly valueArray = computed(() => {\r\n const v = this.value();\r\n return Array.isArray(v) ? v : v ? [v] : [];\r\n });\r\n\r\n protected readonly appliedFilter: Signal<FilterConfig<NgnItem> | boolean> = computed(\r\n () => this.filter() || this.editable() || false\r\n );\r\n\r\n private readonly _flatOptions = computed(() => mapToItems(this.options()));\r\n\r\n protected readonly selectedItems = computed(() => {\r\n if (this.editable()) {\r\n return [this._flatOptions().find(option => option.label === this.value())];\r\n } else {\r\n return this.valueArray().map(value =>\r\n this._flatOptions().find(option => option.value === value)\r\n );\r\n }\r\n });\r\n protected readonly selectedItemsValues = computed(() =>\r\n this.selectedItems().map(item => item?.value)\r\n );\r\n\r\n constructor() {\r\n super();\r\n effect(() => {\r\n if (this.editable() && this.multiple()) {\r\n throw new NgnError('select', 'Editable and multiple selection cannot be used together');\r\n }\r\n if (this.editable() && this.filter()) {\r\n throw new NgnError('select', 'Editable and filtering cannot be used together');\r\n }\r\n });\r\n effect(() => {\r\n this._customEditableSub?.unsubscribe();\r\n const editable = this.editable();\r\n const customEditableInput = this._customEditableInput();\r\n if (!editable || !customEditableInput) {\r\n return;\r\n }\r\n\r\n this._customEditableSub = customEditableInput.value.subscribe(value => {\r\n this.onEditableChange(value);\r\n });\r\n // Set ARIA attributes for accessibility\r\n customEditableInput.element.nativeElement.setAttribute('aria-autocomplete', 'list');\r\n customEditableInput.element.nativeElement.setAttribute(\r\n 'aria-expanded',\r\n `${this._popover().open()}`\r\n );\r\n customEditableInput.element.nativeElement.setAttribute('aria-haspopup', 'listbox');\r\n customEditableInput.element.nativeElement.setAttribute(\r\n 'aria-controls',\r\n `${this.inputId()}_listbox`\r\n );\r\n });\r\n effect(() => {\r\n if (!this.editable()) {\r\n return;\r\n }\r\n const valueSig = this._customEditableInput()?.value;\r\n if (valueSig) {\r\n valueSig.set((this.value() as string) || '');\r\n }\r\n });\r\n effect(() => {\r\n if (!this.editable()) {\r\n return;\r\n }\r\n const hasOptions = !!this._listbox()?.displayedItems().length;\r\n if (!this._userChangedEditableInput) {\r\n return;\r\n }\r\n this._userChangedEditableInput = false;\r\n if (hasOptions) {\r\n this.show();\r\n } else {\r\n this.hide();\r\n }\r\n });\r\n }\r\n\r\n protected onKeyDown(event: KeyboardEvent) {\r\n this._listbox()?.onKeyDown(event);\r\n // if event is not handled by the listbox, we can handle it here\r\n if (!event.defaultPrevented) {\r\n if (event.key === 'Enter') {\r\n if (this.readonly() || this.disabled()) {\r\n return;\r\n }\r\n this._popover().toggle();\r\n event.stopPropagation();\r\n event.preventDefault();\r\n }\r\n if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\r\n if (this.readonly() || this.disabled()) {\r\n return;\r\n }\r\n const currentIndex = this.options().findIndex(option => option.value === this.value());\r\n let newIndex = event.key === 'ArrowDown' ? currentIndex + 1 : currentIndex - 1;\r\n if (newIndex < 0) {\r\n newIndex = 0;\r\n }\r\n if (newIndex >= this.options().length) {\r\n newIndex = this.options().length - 1;\r\n }\r\n const newValue = this.options()[newIndex]?.value;\r\n if (newValue !== undefined) {\r\n this.onSelect(newValue as ValueType<V, false, Multiple>);\r\n }\r\n }\r\n }\r\n }\r\n\r\n protected onPopoverClosed() {\r\n this.potentiallyBlurred();\r\n this.currentHighlightedValue.set(null);\r\n const filter = this.filter();\r\n if (filter === true || (typeof filter === 'object' && filter.clearFilterOnClose)) {\r\n if (!this.editable()) {\r\n this.filterTextInternal.set('');\r\n }\r\n }\r\n }\r\n\r\n protected onSelect(value: ValueType<V, false, Multiple> | null) {\r\n if (this.editable()) {\r\n const item = this._flatOptions().find(option => option.value === value);\r\n if (item) {\r\n this.value.set(maybeCallback(item.label) as ValueType<V, Editable, Multiple>);\r\n }\r\n } else {\r\n const v = value as ValueType<V, Editable, Multiple>;\r\n if (this.value() !== v) {\r\n this.value.set(v);\r\n }\r\n }\r\n }\r\n\r\n protected onItemClicked() {\r\n if (!this.multiple()) {\r\n this.hide();\r\n }\r\n }\r\n\r\n /**\r\n * Shows the select dropdown.\r\n */\r\n public show() {\r\n if (this.disabled() || this.readonly()) {\r\n return;\r\n }\r\n this._popover().show();\r\n }\r\n\r\n /**\r\n * Hides the select dropdown.\r\n */\r\n public hide() {\r\n this._popover().hide();\r\n }\r\n\r\n protected onEditableChange(value: string | null) {\r\n if (this.editable()) {\r\n this.value.set(maybeCallback(value) as ValueType<V, Editable, Multiple>);\r\n this._userChangedEditableInput = true;\r\n if (this.editableAutoFilter()) {\r\n this.filterTextInternal.set(value);\r\n }\r\n }\r\n }\r\n\r\n protected potentiallyBlurred() {\r\n setTimeout(() => {\r\n if (this.element.nativeElement.contains(document.activeElement) || this._popover().open()) {\r\n return;\r\n }\r\n this.touched.set(true);\r\n });\r\n }\r\n}\r\n","<ngn-input-field\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n input: true,\r\n 'input-editable': editable(),\r\n }\"\r\n (click)=\"show()\"\r\n (keydown)=\"onKeyDown($event)\"\r\n #field\r\n [label]=\"label()\"\r\n [labelledBy]=\"labelledBy()\"\r\n [inputId]=\"inputId()\"\r\n [invalid]=\"invalid()\"\r\n [readonly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n [tabindex]=\"editable() || disabled() ? -1 : tabindex()\"\r\n (focusout)=\"potentiallyBlurred()\"\r\n>\r\n @if (editable()) {\r\n <ng-content select=\"[ngnInput]\">\r\n <input\r\n ngnInput\r\n autocomplete=\"list\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [id]=\"inputId()\"\r\n [value]=\"valueStr() || ''\"\r\n (valueChange)=\"onEditableChange($event)\"\r\n [readOnly]=\"readonly()\"\r\n [disabled]=\"disabled()\"\r\n />\r\n </ng-content>\r\n } @else {\r\n <div\r\n role=\"combobox\"\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'combobox'\"\r\n [aria-expanded]=\"popover.open()\"\r\n aria-haspopup=\"listbox\"\r\n [attr.aria-controls]=\"inputId() + '_listbox'\"\r\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\r\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\r\n [attr.disabled]=\"disabled() ? '' : null\"\r\n [id]=\"inputId()\"\r\n >\r\n @if (multiple()) {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemsTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems(),\r\n }\"\r\n />\r\n } @else {\r\n <ng-container\r\n [ngTemplateOutlet]=\"selectedItemTemplate()\"\r\n [ngTemplateOutletContext]=\"{\r\n $implicit: selectedItems()[0],\r\n }\"\r\n />\r\n }\r\n </div>\r\n }\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'icon'\"\r\n [icon]=\"dropdownIcon()\"\r\n defaultIcon=\"dropdown-toggle\"\r\n />\r\n</ngn-input-field>\r\n<ngn-popover\r\n #popover\r\n [options]=\"appliedPopoverOptions()\"\r\n [anchor]=\"field.element.nativeElement\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (closed)=\"onPopoverClosed()\"\r\n [id]=\"inputId() + '_popover'\"\r\n [hasShrinkableContent]=\"true\"\r\n>\r\n <ng-template #lazy>\r\n <div [ptInt]=\"this\" [ptClass]=\"'popover-content'\">\r\n @if (filter()) {\r\n <ngn-input-field [ptInt]=\"this\" [ptClass]=\"'filter'\">\r\n <input\r\n ngnInput\r\n [value]=\"filterTextInternal()\"\r\n (valueChange)=\"filterTextInternal.set($event)\"\r\n />\r\n <ngn-icon\r\n [ptInt]=\"this\"\r\n [ptClass]=\"'filter-icon'\"\r\n defaultIcon=\"search\"\r\n [icon]=\"filterIcon()\"\r\n />\r\n </ngn-input-field>\r\n }\r\n <ngn-list-box\r\n [ptInt]=\"this\"\r\n [ptClass]=\"{\r\n 'list-box': true,\r\n }\"\r\n style=\"height: 100%; min-height: 0\"\r\n [focussable]=\"false\"\r\n [selectable]=\"true\"\r\n [filter]=\"appliedFilter()\"\r\n [filterText]=\"filterTextInternal()\"\r\n [items]=\"options()\"\r\n [itemHeight]=\"itemHeight()\"\r\n [virtual]=\"virtual()\"\r\n [templateItem]=\"itemTemplate()\"\r\n [templateGroup]=\"groupTemplate()\"\r\n [multiple]=\"multiple()\"\r\n [value]=\"multiple() ? selectedItemsValues() : selectedItemsValues()[0]\"\r\n [scrollToSelectedItemOnInit]=\"scrollToSelectedItemOnOpen()\"\r\n (valueChange)=\"onSelect($event)\"\r\n (itemClicked)=\"onItemClicked()\"\r\n [inputId]=\"inputId() + '_listbox'\"\r\n [templateEmpty]=\"noItemsTemplate()\"\r\n [checkbox]=\"checkbox()\"\r\n />\r\n </div>\r\n </ng-template>\r\n</ngn-popover>\r\n\r\n<ng-template #defaultItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n <span [attr.data-testid]=\"item?.testId\">\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultGroupTemplate [ngnTemplate]=\"templateTypes.item\" let-group>\r\n <span [attr.data-testid]=\"group?.testId\">\r\n @let label = group?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"group?.testId\">{{ maybeCallback(label) }}</span>\r\n }\r\n </span>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemTemplate [ngnTemplate]=\"templateTypes.item\" let-item>\r\n @let label = item?.label;\r\n @if (label) {\r\n <span [attr.data-testid]=\"item?.testId\">{{ maybeCallback(label) }}</span>\r\n } @else {\r\n <span [attr.data-testid]=\"item?.testId\">&ZeroWidthSpace;</span>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectedItemsTemplate [ngnTemplate]=\"templateTypes.selectedItems\" let-items>\r\n <ngn-item-view\r\n #itemView\r\n [items]=\"items\"\r\n [idField]=\"'value'\"\r\n [separator]=\"true\"\r\n style=\"margin-right: 8px\"\r\n >\r\n <ng-template #item let-item [ngnTemplate]=\"itemView.templateTypes.item\">\r\n <ng-container\r\n *ngTemplateOutlet=\"selectedItemTemplate(); context: { $implicit: item }\"\r\n ></ng-container>\r\n </ng-template>\r\n </ngn-item-view>\r\n @if (items.length < 1) {\r\n &ZeroWidthSpace;\r\n }\r\n</ng-template>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;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