@anguless/angulux 22.0.0-rc.0 → 22.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +291 -0
  2. package/fesm2022/anguless-angulux-api.mjs +40 -82
  3. package/fesm2022/anguless-angulux-api.mjs.map +1 -1
  4. package/fesm2022/anguless-angulux-autofocus.mjs +7 -7
  5. package/fesm2022/anguless-angulux-avatar.mjs +10 -10
  6. package/fesm2022/anguless-angulux-avatargroup.mjs +10 -10
  7. package/fesm2022/anguless-angulux-badge.mjs +13 -13
  8. package/fesm2022/anguless-angulux-base.mjs +3 -3
  9. package/fesm2022/anguless-angulux-basecomponent.mjs +6 -6
  10. package/fesm2022/anguless-angulux-baseeditableholder.mjs +3 -3
  11. package/fesm2022/anguless-angulux-baseinput.mjs +3 -3
  12. package/fesm2022/anguless-angulux-basemodelholder.mjs +3 -3
  13. package/fesm2022/anguless-angulux-bind.mjs +7 -7
  14. package/fesm2022/anguless-angulux-button.mjs +43 -74
  15. package/fesm2022/anguless-angulux-button.mjs.map +1 -1
  16. package/fesm2022/anguless-angulux-card.mjs +42 -102
  17. package/fesm2022/anguless-angulux-card.mjs.map +1 -1
  18. package/fesm2022/anguless-angulux-chart.mjs +10 -10
  19. package/fesm2022/anguless-angulux-checkbox.mjs +18 -38
  20. package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
  21. package/fesm2022/anguless-angulux-chip.mjs +20 -40
  22. package/fesm2022/anguless-angulux-chip.mjs.map +1 -1
  23. package/fesm2022/anguless-angulux-colorpicker.mjs +10 -10
  24. package/fesm2022/anguless-angulux-config.mjs +6 -6
  25. package/fesm2022/anguless-angulux-confirmdialog.mjs +52 -117
  26. package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
  27. package/fesm2022/anguless-angulux-datepicker.mjs +104 -212
  28. package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
  29. package/fesm2022/anguless-angulux-dialog.mjs +50 -114
  30. package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
  31. package/fesm2022/anguless-angulux-divider.mjs +10 -10
  32. package/fesm2022/anguless-angulux-dom.mjs +7 -0
  33. package/fesm2022/anguless-angulux-dom.mjs.map +1 -1
  34. package/fesm2022/anguless-angulux-drawer.mjs +34 -82
  35. package/fesm2022/anguless-angulux-drawer.mjs.map +1 -1
  36. package/fesm2022/anguless-angulux-fileupload.mjs +83 -159
  37. package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
  38. package/fesm2022/anguless-angulux-fluid.mjs +10 -10
  39. package/fesm2022/anguless-angulux-focustrap.mjs +7 -7
  40. package/fesm2022/anguless-angulux-iconfield.mjs +10 -10
  41. package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +3 -3
  42. package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +3 -3
  43. package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +3 -3
  44. package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +3 -3
  45. package/fesm2022/anguless-angulux-icons-angledown.mjs +3 -3
  46. package/fesm2022/anguless-angulux-icons-angleleft.mjs +3 -3
  47. package/fesm2022/anguless-angulux-icons-angleright.mjs +3 -3
  48. package/fesm2022/anguless-angulux-icons-angleup.mjs +3 -3
  49. package/fesm2022/anguless-angulux-icons-arrowdown.mjs +3 -3
  50. package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +3 -3
  51. package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +3 -3
  52. package/fesm2022/anguless-angulux-icons-arrowleft.mjs +3 -3
  53. package/fesm2022/anguless-angulux-icons-arrowright.mjs +3 -3
  54. package/fesm2022/anguless-angulux-icons-arrowup.mjs +3 -3
  55. package/fesm2022/anguless-angulux-icons-ban.mjs +3 -3
  56. package/fesm2022/anguless-angulux-icons-bars.mjs +3 -3
  57. package/fesm2022/anguless-angulux-icons-baseicon.mjs +6 -6
  58. package/fesm2022/anguless-angulux-icons-blank.mjs +3 -3
  59. package/fesm2022/anguless-angulux-icons-calendar.mjs +3 -3
  60. package/fesm2022/anguless-angulux-icons-caretleft.mjs +3 -3
  61. package/fesm2022/anguless-angulux-icons-caretright.mjs +3 -3
  62. package/fesm2022/anguless-angulux-icons-check.mjs +3 -3
  63. package/fesm2022/anguless-angulux-icons-chevrondown.mjs +3 -3
  64. package/fesm2022/anguless-angulux-icons-chevronleft.mjs +3 -3
  65. package/fesm2022/anguless-angulux-icons-chevronright.mjs +3 -3
  66. package/fesm2022/anguless-angulux-icons-chevronup.mjs +3 -3
  67. package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +3 -3
  68. package/fesm2022/anguless-angulux-icons-eye.mjs +3 -3
  69. package/fesm2022/anguless-angulux-icons-eyeslash.mjs +3 -3
  70. package/fesm2022/anguless-angulux-icons-filter.mjs +3 -3
  71. package/fesm2022/anguless-angulux-icons-filterfill.mjs +3 -3
  72. package/fesm2022/anguless-angulux-icons-filterslash.mjs +3 -3
  73. package/fesm2022/anguless-angulux-icons-home.mjs +3 -3
  74. package/fesm2022/anguless-angulux-icons-infocircle.mjs +3 -3
  75. package/fesm2022/anguless-angulux-icons-minus.mjs +3 -3
  76. package/fesm2022/anguless-angulux-icons-pencil.mjs +3 -3
  77. package/fesm2022/anguless-angulux-icons-plus.mjs +3 -3
  78. package/fesm2022/anguless-angulux-icons-refresh.mjs +3 -3
  79. package/fesm2022/anguless-angulux-icons-search.mjs +3 -3
  80. package/fesm2022/anguless-angulux-icons-searchminus.mjs +3 -3
  81. package/fesm2022/anguless-angulux-icons-searchplus.mjs +3 -3
  82. package/fesm2022/anguless-angulux-icons-sortalt.mjs +3 -3
  83. package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +3 -3
  84. package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +3 -3
  85. package/fesm2022/anguless-angulux-icons-spinner.mjs +3 -3
  86. package/fesm2022/anguless-angulux-icons-star.mjs +3 -3
  87. package/fesm2022/anguless-angulux-icons-starfill.mjs +3 -3
  88. package/fesm2022/anguless-angulux-icons-thlarge.mjs +3 -3
  89. package/fesm2022/anguless-angulux-icons-times.mjs +3 -3
  90. package/fesm2022/anguless-angulux-icons-timescircle.mjs +3 -3
  91. package/fesm2022/anguless-angulux-icons-trash.mjs +3 -3
  92. package/fesm2022/anguless-angulux-icons-undo.mjs +3 -3
  93. package/fesm2022/anguless-angulux-icons-upload.mjs +3 -3
  94. package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +3 -3
  95. package/fesm2022/anguless-angulux-icons-windowminimize.mjs +3 -3
  96. package/fesm2022/anguless-angulux-inputicon.mjs +10 -10
  97. package/fesm2022/anguless-angulux-inputnumber.mjs +38 -69
  98. package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
  99. package/fesm2022/anguless-angulux-inputtext.mjs +10 -10
  100. package/fesm2022/anguless-angulux-menu.mjs +44 -90
  101. package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
  102. package/fesm2022/anguless-angulux-message.mjs +30 -61
  103. package/fesm2022/anguless-angulux-message.mjs.map +1 -1
  104. package/fesm2022/anguless-angulux-motion.mjs +13 -13
  105. package/fesm2022/anguless-angulux-multiselect.mjs +103 -248
  106. package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
  107. package/fesm2022/anguless-angulux-overlay.mjs +18 -39
  108. package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
  109. package/fesm2022/anguless-angulux-paginator.mjs +57 -103
  110. package/fesm2022/anguless-angulux-paginator.mjs.map +1 -1
  111. package/fesm2022/anguless-angulux-password.mjs +49 -104
  112. package/fesm2022/anguless-angulux-password.mjs.map +1 -1
  113. package/fesm2022/anguless-angulux-popover.mjs +16 -33
  114. package/fesm2022/anguless-angulux-popover.mjs.map +1 -1
  115. package/fesm2022/anguless-angulux-progressbar.mjs +18 -37
  116. package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
  117. package/fesm2022/anguless-angulux-progressspinner.mjs +10 -10
  118. package/fesm2022/anguless-angulux-radiobutton.mjs +13 -13
  119. package/fesm2022/anguless-angulux-ripple.mjs +10 -10
  120. package/fesm2022/anguless-angulux-scroller.mjs +36 -77
  121. package/fesm2022/anguless-angulux-scroller.mjs.map +1 -1
  122. package/fesm2022/anguless-angulux-select.mjs +85 -225
  123. package/fesm2022/anguless-angulux-select.mjs.map +1 -1
  124. package/fesm2022/anguless-angulux-selectbutton.mjs +18 -35
  125. package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
  126. package/fesm2022/anguless-angulux-skeleton.mjs +10 -10
  127. package/fesm2022/anguless-angulux-splitbutton.mjs +23 -50
  128. package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -1
  129. package/fesm2022/anguless-angulux-table.mjs +332 -638
  130. package/fesm2022/anguless-angulux-table.mjs.map +1 -1
  131. package/fesm2022/anguless-angulux-tabs.mjs +47 -71
  132. package/fesm2022/anguless-angulux-tabs.mjs.map +1 -1
  133. package/fesm2022/anguless-angulux-tag.mjs +20 -37
  134. package/fesm2022/anguless-angulux-tag.mjs.map +1 -1
  135. package/fesm2022/anguless-angulux-textarea.mjs +10 -10
  136. package/fesm2022/anguless-angulux-tieredmenu.mjs +28 -55
  137. package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
  138. package/fesm2022/anguless-angulux-timeline.mjs +24 -55
  139. package/fesm2022/anguless-angulux-timeline.mjs.map +1 -1
  140. package/fesm2022/anguless-angulux-toast.mjs +24 -49
  141. package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
  142. package/fesm2022/anguless-angulux-togglebutton.mjs +23 -50
  143. package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
  144. package/fesm2022/anguless-angulux-toggleswitch.mjs +18 -38
  145. package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
  146. package/fesm2022/anguless-angulux-tooltip.mjs +10 -10
  147. package/fesm2022/anguless-angulux-treetable.mjs +229 -428
  148. package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
  149. package/fesm2022/anguless-angulux-usestyle.mjs +3 -3
  150. package/package.json +6 -6
  151. package/types/anguless-angulux-api.d.ts +17 -21
  152. package/types/anguless-angulux-button.d.ts +6 -12
  153. package/types/anguless-angulux-card.d.ts +8 -17
  154. package/types/anguless-angulux-checkbox.d.ts +4 -8
  155. package/types/anguless-angulux-chip.d.ts +4 -8
  156. package/types/anguless-angulux-confirmdialog.d.ts +19 -29
  157. package/types/anguless-angulux-datepicker.d.ts +27 -42
  158. package/types/anguless-angulux-dialog.d.ts +10 -20
  159. package/types/anguless-angulux-drawer.d.ts +8 -16
  160. package/types/anguless-angulux-fileupload.d.ts +27 -38
  161. package/types/anguless-angulux-inputnumber.d.ts +6 -12
  162. package/types/anguless-angulux-menu.d.ts +27 -39
  163. package/types/anguless-angulux-message.d.ts +6 -12
  164. package/types/anguless-angulux-multiselect.d.ts +20 -41
  165. package/types/anguless-angulux-overlay.d.ts +4 -7
  166. package/types/anguless-angulux-paginator.d.ts +17 -25
  167. package/types/anguless-angulux-password.d.ts +30 -38
  168. package/types/anguless-angulux-popover.d.ts +4 -7
  169. package/types/anguless-angulux-progressbar.d.ts +4 -8
  170. package/types/anguless-angulux-scroller.d.ts +7 -13
  171. package/types/anguless-angulux-select.d.ts +16 -49
  172. package/types/anguless-angulux-selectbutton.d.ts +4 -8
  173. package/types/anguless-angulux-splitbutton.d.ts +17 -21
  174. package/types/anguless-angulux-table.d.ts +42 -93
  175. package/types/anguless-angulux-tabs.d.ts +4 -9
  176. package/types/anguless-angulux-tag.d.ts +4 -8
  177. package/types/anguless-angulux-tieredmenu.d.ts +5 -9
  178. package/types/anguless-angulux-timeline.d.ts +5 -11
  179. package/types/anguless-angulux-toast.d.ts +22 -26
  180. package/types/anguless-angulux-togglebutton.d.ts +5 -11
  181. package/types/anguless-angulux-toggleswitch.d.ts +4 -8
  182. package/types/anguless-angulux-treetable.d.ts +40 -62
@@ -2,11 +2,11 @@ export * from '@anguless/angulux/types/selectbutton';
2
2
  import * as i3 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, forwardRef, input, booleanAttribute, EventEmitter, inject, numberAttribute, ContentChildren, ContentChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, forwardRef, input, booleanAttribute, EventEmitter, contentChild, inject, numberAttribute, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import * as i2 from '@angular/forms';
7
7
  import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
8
8
  import { resolveFieldData, equals } from '@anguless/angulux-utils';
9
- import { SharedModule, AglTemplate } from '@anguless/angulux/api';
9
+ import { SharedModule } from '@anguless/angulux/api';
10
10
  import { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
11
11
  import { BaseEditableHolder } from '@anguless/angulux/baseeditableholder';
12
12
  import * as i1 from '@anguless/angulux/bind';
@@ -37,10 +37,10 @@ class SelectButtonStyle extends BaseStyle {
37
37
  name = 'selectbutton';
38
38
  style = style;
39
39
  classes = classes;
40
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
41
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonStyle });
40
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
41
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonStyle });
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonStyle, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonStyle, decorators: [{
44
44
  type: Injectable
45
45
  }] });
46
46
  /**
@@ -168,8 +168,7 @@ class SelectButton extends BaseEditableHolder {
168
168
  * @see {@link SelectButtonItemTemplateContext}
169
169
  * @group Templates
170
170
  */
171
- itemTemplate;
172
- _itemTemplate;
171
+ itemTemplate = contentChild('item', { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), descendants: false });
173
172
  get equalityKey() {
174
173
  return this.optionValue ? null : this.dataKey;
175
174
  }
@@ -280,16 +279,6 @@ class SelectButton extends BaseEditableHolder {
280
279
  }
281
280
  return selected;
282
281
  }
283
- templates;
284
- onAfterContentInit() {
285
- this.templates.forEach((item) => {
286
- switch (item.getType()) {
287
- case 'item':
288
- this._itemTemplate = item.template;
289
- break;
290
- }
291
- });
292
- }
293
282
  /**
294
283
  * @override
295
284
  *
@@ -306,8 +295,8 @@ class SelectButton extends BaseEditableHolder {
306
295
  invalid: this.invalid()
307
296
  });
308
297
  }
309
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
310
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: SelectButton, isStandalone: true, selector: "agl-selectButton, agl-selectbutton, agl-select-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: false, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: false, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: false, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOptionClick: "onOptionClick", onChange: "onChange" }, host: { properties: { "class": "cx('root')", "attr.role": "\"group\"", "attr.aria-labelledby": "ariaLabelledBy", "attr.data-p": "dataP" } }, providers: [SELECTBUTTON_VALUE_ACCESSOR, SelectButtonStyle, { provide: SELECTBUTTON_INSTANCE, useExisting: SelectButton }, { provide: PARENT_INSTANCE, useExisting: SelectButton }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "templates", predicate: AglTemplate }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
298
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
299
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: SelectButton, isStandalone: true, selector: "agl-selectButton, agl-selectbutton, agl-select-button", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: false, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: false, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: false, isRequired: false, transformFunction: null }, unselectable: { classPropertyName: "unselectable", publicName: "unselectable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, allowEmpty: { classPropertyName: "allowEmpty", publicName: "allowEmpty", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onOptionClick: "onOptionClick", onChange: "onChange" }, host: { properties: { "class": "cx('root')", "attr.role": "\"group\"", "attr.aria-labelledby": "ariaLabelledBy", "attr.data-p": "dataP" } }, providers: [SELECTBUTTON_VALUE_ACCESSOR, SelectButtonStyle, { provide: SELECTBUTTON_INSTANCE, useExisting: SelectButton }, { provide: PARENT_INSTANCE, useExisting: SelectButton }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
311
300
  @for (option of options; track getOptionLabel(option); let i = $index) {
312
301
  <agl-togglebutton
313
302
  [autofocus]="autofocus"
@@ -323,16 +312,16 @@ class SelectButton extends BaseEditableHolder {
323
312
  [pt]="ptm('pcToggleButton')"
324
313
  [unstyled]="unstyled()"
325
314
  >
326
- @if (itemTemplate || _itemTemplate) {
315
+ @if (itemTemplate()) {
327
316
  <ng-template #content>
328
- <ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: option, index: i }"></ng-container>
317
+ <ng-container *ngTemplateOutlet="itemTemplate(); context: { $implicit: option, index: i }"></ng-container>
329
318
  </ng-template>
330
319
  }
331
320
  </agl-togglebutton>
332
321
  }
333
322
  `, isInline: true, dependencies: [{ kind: "component", type: ToggleButton, selector: "agl-toggleButton, agl-togglebutton, agl-toggle-button", inputs: ["onLabel", "offLabel", "onIcon", "offIcon", "ariaLabel", "ariaLabelledBy", "styleClass", "inputId", "tabindex", "iconPos", "autofocus", "size", "allowEmpty", "fluid"], outputs: ["onChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
334
323
  }
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButton, decorators: [{
324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButton, decorators: [{
336
325
  type: Component,
337
326
  args: [{
338
327
  selector: 'agl-selectButton, agl-selectbutton, agl-select-button',
@@ -354,9 +343,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
354
343
  [pt]="ptm('pcToggleButton')"
355
344
  [unstyled]="unstyled()"
356
345
  >
357
- @if (itemTemplate || _itemTemplate) {
346
+ @if (itemTemplate()) {
358
347
  <ng-template #content>
359
- <ng-container *ngTemplateOutlet="itemTemplate || _itemTemplate; context: { $implicit: option, index: i }"></ng-container>
348
+ <ng-container *ngTemplateOutlet="itemTemplate(); context: { $implicit: option, index: i }"></ng-container>
360
349
  </ng-template>
361
350
  }
362
351
  </agl-togglebutton>
@@ -406,19 +395,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
406
395
  type: Output
407
396
  }], onChange: [{
408
397
  type: Output
409
- }], itemTemplate: [{
410
- type: ContentChild,
411
- args: ['item', { descendants: false }]
412
- }], templates: [{
413
- type: ContentChildren,
414
- args: [AglTemplate]
415
- }] } });
398
+ }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }] } });
416
399
  class SelectButtonModule {
417
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
418
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonModule, imports: [SelectButton, SharedModule], exports: [SelectButton, SharedModule] });
419
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonModule, imports: [SelectButton, SharedModule, SharedModule] });
400
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
401
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonModule, imports: [SelectButton, SharedModule], exports: [SelectButton, SharedModule] });
402
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonModule, imports: [SelectButton, SharedModule, SharedModule] });
420
403
  }
421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SelectButtonModule, decorators: [{
404
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SelectButtonModule, decorators: [{
422
405
  type: NgModule,
423
406
  args: [{
424
407
  imports: [SelectButton, SharedModule],
@@ -1 +1 @@
1
- {"version":3,"file":"anguless-angulux-selectbutton.mjs","sources":["../../src/selectbutton/style/selectbuttonstyle.ts","../../src/selectbutton/selectbutton.ts","../../src/selectbutton/anguless-angulux-selectbutton.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as selectbutton_style } from '@anguless/angulux-styles/selectbutton';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst style = /*css*/ `\n ${selectbutton_style}\n\n /* For AnguluxConfig */\n .p-selectbutton.ng-invalid.ng-dirty {\n outline: 1px solid dt('selectbutton.invalid.border.color');\n outline-offset: 0;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-selectbutton p-component',\n {\n 'p-invalid': instance.invalid(),\n 'p-selectbutton-fluid': instance.fluid()\n }\n ]\n};\n\n@Injectable()\nexport class SelectButtonStyle extends BaseStyle {\n name = 'selectbutton';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * SelectButton is used to choose single or multiple items from a list using buttons.\n *\n * @module selectbuttonstyle\n *\n */\nexport enum SelectButtonClasses {\n /**\n * Class name of the root element\n */\n root = 'p-selectbutton'\n}\n\nexport interface SelectButtonStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewChecked,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n forwardRef,\n inject,\n InjectionToken,\n input,\n Input,\n NgModule,\n numberAttribute,\n Output,\n QueryList,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { equals, resolveFieldData } from '@anguless/angulux-utils';\nimport { AglTemplate, SharedModule } from '@anguless/angulux/api';\nimport { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { BaseEditableHolder } from '@anguless/angulux/baseeditableholder';\nimport { Bind, BindModule } from '@anguless/angulux/bind';\nimport { ToggleButton } from '@anguless/angulux/togglebutton';\nimport { SelectButtonChangeEvent, SelectButtonItemTemplateContext, SelectButtonOptionClickEvent, SelectButtonPassThrough } from '@anguless/angulux/types/selectbutton';\nimport { SelectButtonStyle } from './style/selectbuttonstyle';\n\nconst SELECTBUTTON_INSTANCE = new InjectionToken<SelectButton>('SELECTBUTTON_INSTANCE');\n\nexport const SELECTBUTTON_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectButton),\n multi: true\n};\n/**\n * SelectButton is used to choose single or multiple items from a list using buttons.\n * @group Components\n */\n@Component({\n selector: 'agl-selectButton, agl-selectbutton, agl-select-button',\n standalone: true,\n imports: [ToggleButton, FormsModule, CommonModule, SharedModule, BindModule],\n template: `\n @for (option of options; track getOptionLabel(option); let i = $index) {\n <agl-togglebutton\n [autofocus]=\"autofocus\"\n [styleClass]=\"styleClass\"\n [ngModel]=\"isSelected(option)\"\n [onLabel]=\"this.getOptionLabel(option)\"\n [offLabel]=\"this.getOptionLabel(option)\"\n [disabled]=\"$disabled() || isOptionDisabled(option)\"\n (onChange)=\"onOptionSelect($event, option, i)\"\n [allowEmpty]=\"getAllowEmpty()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [pt]=\"ptm('pcToggleButton')\"\n [unstyled]=\"unstyled()\"\n >\n @if (itemTemplate || _itemTemplate) {\n <ng-template #content>\n <ng-container *ngTemplateOutlet=\"itemTemplate || _itemTemplate; context: { $implicit: option, index: i }\"></ng-container>\n </ng-template>\n }\n </agl-togglebutton>\n }\n `,\n providers: [SELECTBUTTON_VALUE_ACCESSOR, SelectButtonStyle, { provide: SELECTBUTTON_INSTANCE, useExisting: SelectButton }, { provide: PARENT_INSTANCE, useExisting: SelectButton }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cx('root')\",\n '[attr.role]': '\"group\"',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n '[attr.data-p]': 'dataP'\n },\n hostDirectives: [Bind]\n})\nexport class SelectButton extends BaseEditableHolder<SelectButtonPassThrough> implements AfterViewChecked {\n componentName = 'SelectButton';\n /**\n * An array of selectitems to display as the available options.\n * @group Props\n */\n @Input() options: any[] | undefined;\n /**\n * Name of the label field of an option.\n * @group Props\n */\n @Input() optionLabel: string | undefined;\n /**\n * Name of the value field of an option.\n * @group Props\n */\n @Input() optionValue: string | undefined;\n /**\n * Name of the disabled field of an option.\n * @group Props\n */\n @Input() optionDisabled: string | undefined;\n /**\n * Whether selection can be cleared.\n * @group Props\n */\n get unselectable(): boolean {\n return this._unselectable;\n }\n private _unselectable: boolean = false;\n\n @Input({ transform: booleanAttribute })\n set unselectable(value: boolean) {\n this._unselectable = value;\n this.allowEmpty = !value;\n }\n\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n @Input({ transform: numberAttribute }) tabindex: number = 0;\n /**\n * When specified, allows selecting multiple values.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) multiple: boolean | undefined;\n /**\n * Whether selection can not be cleared.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) allowEmpty: boolean = true;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * A property to uniquely identify a value in options.\n * @group Props\n */\n @Input() dataKey: string | undefined;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autofocus: boolean | undefined;\n /**\n * Specifies the size of the component.\n * @defaultValue undefined\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * Callback to invoke on input click.\n * @param {SelectButtonOptionClickEvent} event - Custom click event.\n * @group Emits\n */\n @Output() onOptionClick: EventEmitter<SelectButtonOptionClickEvent> = new EventEmitter<SelectButtonOptionClickEvent>();\n /**\n * Callback to invoke on selection change.\n * @param {SelectButtonChangeEvent} event - Custom change event.\n * @group Emits\n */\n @Output() onChange: EventEmitter<SelectButtonChangeEvent> = new EventEmitter<SelectButtonChangeEvent>();\n /**\n * Custom item template.\n * @param {SelectButtonItemTemplateContext} context - item context.\n * @see {@link SelectButtonItemTemplateContext}\n * @group Templates\n */\n @ContentChild('item', { descendants: false }) itemTemplate: TemplateRef<SelectButtonItemTemplateContext> | undefined;\n\n _itemTemplate: TemplateRef<SelectButtonItemTemplateContext> | undefined;\n\n get equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n\n value: any;\n\n focusedIndex: number = 0;\n\n _componentStyle = inject(SelectButtonStyle);\n\n $pcSelectButton: SelectButton | undefined = inject(SELECTBUTTON_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n getAllowEmpty() {\n if (this.multiple) {\n return this.allowEmpty || this.value?.length !== 1;\n }\n return this.allowEmpty;\n }\n\n getOptionLabel(option: any) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;\n }\n\n getOptionValue(option: any) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : this.optionLabel || option.value === undefined ? option : option.value;\n }\n\n isOptionDisabled(option: any) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : option.disabled !== undefined ? option.disabled : false;\n }\n\n onOptionSelect(event, option, index) {\n if (this.$disabled() || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && this.unselectable) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.value.filter((val) => !equals(val, optionValue, this.equalityKey || undefined));\n else newValue = this.value ? [...this.value, optionValue] : [optionValue];\n } else {\n if (selected && !this.allowEmpty) {\n return;\n }\n newValue = selected ? null : optionValue;\n }\n\n this.focusedIndex = index;\n this.value = newValue;\n this.writeModelValue(this.value);\n this.onModelChange(this.value);\n\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n\n this.onOptionClick.emit({\n originalEvent: event,\n option: option,\n index: index\n });\n }\n\n changeTabIndexes(event, direction) {\n let firstTabableChild, index;\n\n for (let i = 0; i <= this.el.nativeElement.children.length - 1; i++) {\n if (this.el.nativeElement.children[i].getAttribute('tabindex') === '0') firstTabableChild = { elem: this.el.nativeElement.children[i], index: i };\n }\n\n if (direction === 'prev') {\n if (firstTabableChild.index === 0) index = this.el.nativeElement.children.length - 1;\n else index = firstTabableChild.index - 1;\n } else {\n if (firstTabableChild.index === this.el.nativeElement.children.length - 1) index = 0;\n else index = firstTabableChild.index + 1;\n }\n\n this.focusedIndex = index;\n this.el.nativeElement.children[index].focus();\n }\n\n onFocus(event: Event, index: number) {\n this.focusedIndex = index;\n }\n\n onBlur() {\n this.onModelTouched();\n }\n\n removeOption(option: any): void {\n this.value = this.value.filter((val: any) => !equals(val, this.getOptionValue(option), this.dataKey));\n }\n\n isSelected(option: any) {\n let selected = false;\n const optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.value && Array.isArray(this.value)) {\n for (let val of this.value) {\n if (equals(val, optionValue, this.dataKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.getOptionValue(option), this.value, this.equalityKey || undefined);\n }\n\n return selected;\n }\n\n @ContentChildren(AglTemplate) templates: QueryList<AglTemplate> | undefined;\n\n onAfterContentInit() {\n (this.templates as QueryList<AglTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'item':\n this._itemTemplate = item.template;\n break;\n }\n });\n }\n\n /**\n * @override\n *\n * @see {@link BaseEditableHolder.writeControlValue}\n * Writes the value to the control.\n */\n writeControlValue(value: any, setModelValue: (value: any) => void): void {\n this.value = value;\n setModelValue(this.value);\n this.cd.markForCheck();\n }\n\n get dataP() {\n return this.cn({\n invalid: this.invalid()\n });\n }\n}\n\n@NgModule({\n imports: [SelectButton, SharedModule],\n exports: [SelectButton, SharedModule]\n})\nexport class SelectButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["selectbutton_style"],"mappings":";;;;;;;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAkB;;;;;;;CAOvB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,4BAA4B;AAC5B,QAAA;AACI,YAAA,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE;AAC/B,YAAA,sBAAsB,EAAE,QAAQ,CAAC,KAAK;AACzC;AACJ;CACJ;AAGK,MAAO,iBAAkB,SAAQ,SAAS,CAAA;IAC5C,IAAI,GAAG,cAAc;IAErB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAjB,iBAAiB,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B;;AASD;;;;;;AAMG;IACS;AAAZ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3Q3B,YAAY,EA4QG,YAAY,CAAA,EAAA,CAAA;AAE3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAAA,OAAA,EAAA,CAHjB,YAAY,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAE3B,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY;AACvC,iBAAA;;;AC/VD;;AAEG;;;;"}
1
+ {"version":3,"file":"anguless-angulux-selectbutton.mjs","sources":["../../src/selectbutton/style/selectbuttonstyle.ts","../../src/selectbutton/selectbutton.ts","../../src/selectbutton/anguless-angulux-selectbutton.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style as selectbutton_style } from '@anguless/angulux-styles/selectbutton';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst style = /*css*/ `\n ${selectbutton_style}\n\n /* For AnguluxConfig */\n .p-selectbutton.ng-invalid.ng-dirty {\n outline: 1px solid dt('selectbutton.invalid.border.color');\n outline-offset: 0;\n }\n`;\n\nconst classes = {\n root: ({ instance }) => [\n 'p-selectbutton p-component',\n {\n 'p-invalid': instance.invalid(),\n 'p-selectbutton-fluid': instance.fluid()\n }\n ]\n};\n\n@Injectable()\nexport class SelectButtonStyle extends BaseStyle {\n name = 'selectbutton';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * SelectButton is used to choose single or multiple items from a list using buttons.\n *\n * @module selectbuttonstyle\n *\n */\nexport enum SelectButtonClasses {\n /**\n * Class name of the root element\n */\n root = 'p-selectbutton'\n}\n\nexport interface SelectButtonStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewChecked,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChild, EventEmitter,\n forwardRef,\n inject,\n InjectionToken,\n input,\n Input,\n NgModule,\n numberAttribute,\n Output,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { equals, resolveFieldData } from '@anguless/angulux-utils';\nimport { SharedModule } from '@anguless/angulux/api';\nimport { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { BaseEditableHolder } from '@anguless/angulux/baseeditableholder';\nimport { Bind, BindModule } from '@anguless/angulux/bind';\nimport { ToggleButton } from '@anguless/angulux/togglebutton';\nimport { SelectButtonChangeEvent, SelectButtonItemTemplateContext, SelectButtonOptionClickEvent, SelectButtonPassThrough } from '@anguless/angulux/types/selectbutton';\nimport { SelectButtonStyle } from './style/selectbuttonstyle';\n\nconst SELECTBUTTON_INSTANCE = new InjectionToken<SelectButton>('SELECTBUTTON_INSTANCE');\n\nexport const SELECTBUTTON_VALUE_ACCESSOR: any = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SelectButton),\n multi: true\n};\n/**\n * SelectButton is used to choose single or multiple items from a list using buttons.\n * @group Components\n */\n@Component({\n selector: 'agl-selectButton, agl-selectbutton, agl-select-button',\n standalone: true,\n imports: [ToggleButton, FormsModule, CommonModule, SharedModule, BindModule],\n template: `\n @for (option of options; track getOptionLabel(option); let i = $index) {\n <agl-togglebutton\n [autofocus]=\"autofocus\"\n [styleClass]=\"styleClass\"\n [ngModel]=\"isSelected(option)\"\n [onLabel]=\"this.getOptionLabel(option)\"\n [offLabel]=\"this.getOptionLabel(option)\"\n [disabled]=\"$disabled() || isOptionDisabled(option)\"\n (onChange)=\"onOptionSelect($event, option, i)\"\n [allowEmpty]=\"getAllowEmpty()\"\n [size]=\"size()\"\n [fluid]=\"fluid()\"\n [pt]=\"ptm('pcToggleButton')\"\n [unstyled]=\"unstyled()\"\n >\n @if (itemTemplate()) {\n <ng-template #content>\n <ng-container *ngTemplateOutlet=\"itemTemplate(); context: { $implicit: option, index: i }\"></ng-container>\n </ng-template>\n }\n </agl-togglebutton>\n }\n `,\n providers: [SELECTBUTTON_VALUE_ACCESSOR, SelectButtonStyle, { provide: SELECTBUTTON_INSTANCE, useExisting: SelectButton }, { provide: PARENT_INSTANCE, useExisting: SelectButton }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cx('root')\",\n '[attr.role]': '\"group\"',\n '[attr.aria-labelledby]': 'ariaLabelledBy',\n '[attr.data-p]': 'dataP'\n },\n hostDirectives: [Bind]\n})\nexport class SelectButton extends BaseEditableHolder<SelectButtonPassThrough> implements AfterViewChecked {\n componentName = 'SelectButton';\n /**\n * An array of selectitems to display as the available options.\n * @group Props\n */\n @Input() options: any[] | undefined;\n /**\n * Name of the label field of an option.\n * @group Props\n */\n @Input() optionLabel: string | undefined;\n /**\n * Name of the value field of an option.\n * @group Props\n */\n @Input() optionValue: string | undefined;\n /**\n * Name of the disabled field of an option.\n * @group Props\n */\n @Input() optionDisabled: string | undefined;\n /**\n * Whether selection can be cleared.\n * @group Props\n */\n get unselectable(): boolean {\n return this._unselectable;\n }\n private _unselectable: boolean = false;\n\n @Input({ transform: booleanAttribute })\n set unselectable(value: boolean) {\n this._unselectable = value;\n this.allowEmpty = !value;\n }\n\n /**\n * Index of the element in tabbing order.\n * @group Props\n */\n @Input({ transform: numberAttribute }) tabindex: number = 0;\n /**\n * When specified, allows selecting multiple values.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) multiple: boolean | undefined;\n /**\n * Whether selection can not be cleared.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) allowEmpty: boolean = true;\n /**\n * Style class of the component.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * A property to uniquely identify a value in options.\n * @group Props\n */\n @Input() dataKey: string | undefined;\n /**\n * When present, it specifies that the component should automatically get focus on load.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) autofocus: boolean | undefined;\n /**\n * Specifies the size of the component.\n * @defaultValue undefined\n * @group Props\n */\n size = input<'large' | 'small' | undefined>();\n /**\n * Spans 100% width of the container when enabled.\n * @defaultValue undefined\n * @group Props\n */\n fluid = input(undefined, { transform: booleanAttribute });\n /**\n * Callback to invoke on input click.\n * @param {SelectButtonOptionClickEvent} event - Custom click event.\n * @group Emits\n */\n @Output() onOptionClick: EventEmitter<SelectButtonOptionClickEvent> = new EventEmitter<SelectButtonOptionClickEvent>();\n /**\n * Callback to invoke on selection change.\n * @param {SelectButtonChangeEvent} event - Custom change event.\n * @group Emits\n */\n @Output() onChange: EventEmitter<SelectButtonChangeEvent> = new EventEmitter<SelectButtonChangeEvent>();\n /**\n * Custom item template.\n * @param {SelectButtonItemTemplateContext} context - item context.\n * @see {@link SelectButtonItemTemplateContext}\n * @group Templates\n */\n itemTemplate = contentChild<TemplateRef<SelectButtonItemTemplateContext>>('item', { descendants: false });\n\n get equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n\n value: any;\n\n focusedIndex: number = 0;\n\n _componentStyle = inject(SelectButtonStyle);\n\n $pcSelectButton: SelectButton | undefined = inject(SELECTBUTTON_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n getAllowEmpty() {\n if (this.multiple) {\n return this.allowEmpty || this.value?.length !== 1;\n }\n return this.allowEmpty;\n }\n\n getOptionLabel(option: any) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;\n }\n\n getOptionValue(option: any) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : this.optionLabel || option.value === undefined ? option : option.value;\n }\n\n isOptionDisabled(option: any) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : option.disabled !== undefined ? option.disabled : false;\n }\n\n onOptionSelect(event, option, index) {\n if (this.$disabled() || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && this.unselectable) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.value.filter((val) => !equals(val, optionValue, this.equalityKey || undefined));\n else newValue = this.value ? [...this.value, optionValue] : [optionValue];\n } else {\n if (selected && !this.allowEmpty) {\n return;\n }\n newValue = selected ? null : optionValue;\n }\n\n this.focusedIndex = index;\n this.value = newValue;\n this.writeModelValue(this.value);\n this.onModelChange(this.value);\n\n this.onChange.emit({\n originalEvent: event,\n value: this.value\n });\n\n this.onOptionClick.emit({\n originalEvent: event,\n option: option,\n index: index\n });\n }\n\n changeTabIndexes(event, direction) {\n let firstTabableChild, index;\n\n for (let i = 0; i <= this.el.nativeElement.children.length - 1; i++) {\n if (this.el.nativeElement.children[i].getAttribute('tabindex') === '0') firstTabableChild = { elem: this.el.nativeElement.children[i], index: i };\n }\n\n if (direction === 'prev') {\n if (firstTabableChild.index === 0) index = this.el.nativeElement.children.length - 1;\n else index = firstTabableChild.index - 1;\n } else {\n if (firstTabableChild.index === this.el.nativeElement.children.length - 1) index = 0;\n else index = firstTabableChild.index + 1;\n }\n\n this.focusedIndex = index;\n this.el.nativeElement.children[index].focus();\n }\n\n onFocus(event: Event, index: number) {\n this.focusedIndex = index;\n }\n\n onBlur() {\n this.onModelTouched();\n }\n\n removeOption(option: any): void {\n this.value = this.value.filter((val: any) => !equals(val, this.getOptionValue(option), this.dataKey));\n }\n\n isSelected(option: any) {\n let selected = false;\n const optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.value && Array.isArray(this.value)) {\n for (let val of this.value) {\n if (equals(val, optionValue, this.dataKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.getOptionValue(option), this.value, this.equalityKey || undefined);\n }\n\n return selected;\n }\n\n /**\n * @override\n *\n * @see {@link BaseEditableHolder.writeControlValue}\n * Writes the value to the control.\n */\n writeControlValue(value: any, setModelValue: (value: any) => void): void {\n this.value = value;\n setModelValue(this.value);\n this.cd.markForCheck();\n }\n\n get dataP() {\n return this.cn({\n invalid: this.invalid()\n });\n }\n}\n\n@NgModule({\n imports: [SelectButton, SharedModule],\n exports: [SelectButton, SharedModule]\n})\nexport class SelectButtonModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["selectbutton_style"],"mappings":";;;;;;;;;;;;;;;;;AAIA,MAAM,KAAK,WAAW;MAChBA,OAAkB;;;;;;;CAOvB;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,4BAA4B;AAC5B,QAAA;AACI,YAAA,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE;AAC/B,YAAA,sBAAsB,EAAE,QAAQ,CAAC,KAAK;AACzC;AACJ;CACJ;AAGK,MAAO,iBAAkB,SAAQ,SAAS,CAAA;IAC5C,IAAI,GAAG,cAAc;IAErB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAjB,iBAAiB,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B;;AASD;;;;;;AAMG;IACS;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC3B;;AAEG;AACH,IAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,gBAAuB;AAC3B,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,GAAA,EAAA,CAAA,CAAA;;ACX/B,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAA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oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY;AACvC,iBAAA;;;AC9UD;;AAEG;;;;"}
@@ -25,10 +25,10 @@ class SkeletonStyle extends BaseStyle {
25
25
  style = style;
26
26
  classes = classes;
27
27
  inlineStyles = inlineStyles;
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
29
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonStyle });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
29
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonStyle });
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonStyle, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonStyle, decorators: [{
32
32
  type: Injectable
33
33
  }] });
34
34
  /**
@@ -111,10 +111,10 @@ class Skeleton extends BaseComponent {
111
111
  [this.shape]: this.shape
112
112
  });
113
113
  }
114
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Skeleton, deps: null, target: i0.ɵɵFactoryTarget.Component });
115
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: Skeleton, isStandalone: true, selector: "agl-skeleton", inputs: { styleClass: "styleClass", shape: "shape", animation: "animation", borderRadius: "borderRadius", size: "size", width: "width", height: "height" }, host: { properties: { "attr.aria-hidden": "true", "class": "cn(cx('root'), styleClass)", "style": "containerStyle", "attr.data-p": "dataP" } }, providers: [SkeletonStyle, { provide: SKELETON_INSTANCE, useExisting: Skeleton }, { provide: PARENT_INSTANCE, useExisting: Skeleton }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
114
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Skeleton, deps: null, target: i0.ɵɵFactoryTarget.Component });
115
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.1", type: Skeleton, isStandalone: true, selector: "agl-skeleton", inputs: { styleClass: "styleClass", shape: "shape", animation: "animation", borderRadius: "borderRadius", size: "size", width: "width", height: "height" }, host: { properties: { "attr.aria-hidden": "true", "class": "cn(cx('root'), styleClass)", "style": "containerStyle", "attr.data-p": "dataP" } }, providers: [SkeletonStyle, { provide: SKELETON_INSTANCE, useExisting: Skeleton }, { provide: PARENT_INSTANCE, useExisting: Skeleton }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Skeleton, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: Skeleton, decorators: [{
118
118
  type: Component,
119
119
  args: [{
120
120
  selector: 'agl-skeleton',
@@ -148,11 +148,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
148
148
  type: Input
149
149
  }] } });
150
150
  class SkeletonModule {
151
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
152
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: SkeletonModule, imports: [Skeleton, SharedModule], exports: [Skeleton, SharedModule] });
153
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonModule, imports: [Skeleton, SharedModule, SharedModule] });
151
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
152
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: SkeletonModule, imports: [Skeleton, SharedModule], exports: [Skeleton, SharedModule] });
153
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonModule, imports: [Skeleton, SharedModule, SharedModule] });
154
154
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SkeletonModule, decorators: [{
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SkeletonModule, decorators: [{
156
156
  type: NgModule,
157
157
  args: [{
158
158
  imports: [Skeleton, SharedModule],
@@ -2,9 +2,9 @@ export * from '@anguless/angulux/types/splitbutton';
2
2
  import * as i2 from '@angular/common';
3
3
  import { CommonModule } from '@angular/common';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, InjectionToken, inject, input, computed, EventEmitter, signal, booleanAttribute, numberAttribute, ContentChildren, ContentChild, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
+ import { Injectable, InjectionToken, inject, input, computed, EventEmitter, contentChild, signal, booleanAttribute, numberAttribute, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
6
  import { uuid } from '@anguless/angulux-utils';
7
- import { SharedModule, AglTemplate } from '@anguless/angulux/api';
7
+ import { SharedModule } from '@anguless/angulux/api';
8
8
  import { AutoFocus } from '@anguless/angulux/autofocus';
9
9
  import { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
10
10
  import * as i1 from '@anguless/angulux/bind';
@@ -36,10 +36,10 @@ class SplitButtonStyle extends BaseStyle {
36
36
  name = 'splitbutton';
37
37
  style = style;
38
38
  classes = classes;
39
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
40
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonStyle });
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
40
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonStyle });
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonStyle, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonStyle, decorators: [{
43
43
  type: Injectable
44
44
  }] });
45
45
  /**
@@ -273,40 +273,22 @@ class SplitButton extends BaseComponent {
273
273
  * Custom content template.
274
274
  * @group Templates
275
275
  */
276
- contentTemplate;
276
+ contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
277
277
  /**
278
278
  * Custom dropdown icon template.
279
279
  * @group Templates
280
280
  **/
281
- dropdownIconTemplate;
282
- templates;
281
+ dropdownIconTemplate = contentChild('dropdownicon', { ...(ngDevMode ? { debugName: "dropdownIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
283
282
  ariaId;
284
283
  isExpanded = signal(false, /* @ts-ignore */
285
284
  ...(ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []));
286
285
  _disabled;
287
286
  _componentStyle = inject(SplitButtonStyle);
288
- _contentTemplate;
289
- _dropdownIconTemplate;
290
287
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
291
288
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
292
289
  onInit() {
293
290
  this.ariaId = uuid('pn_id_');
294
291
  }
295
- onAfterContentInit() {
296
- this.templates?.forEach((item) => {
297
- switch (item.getType()) {
298
- case 'content':
299
- this._contentTemplate = item.template;
300
- break;
301
- case 'dropdownicon':
302
- this._dropdownIconTemplate = item.template;
303
- break;
304
- default:
305
- this._contentTemplate = item.template;
306
- break;
307
- }
308
- });
309
- }
310
292
  onDefaultButtonClick(event) {
311
293
  this.onClick?.emit(event);
312
294
  this.menu?.hide();
@@ -329,9 +311,9 @@ class SplitButton extends BaseComponent {
329
311
  this.isExpanded.set(true);
330
312
  this.onMenuShow.emit();
331
313
  }
332
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
333
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: SplitButton, isStandalone: true, selector: "agl-splitbutton, agl-splitButton, agl-split-button", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: false, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, menuStyle: { classPropertyName: "menuStyle", publicName: "menuStyle", isSignal: false, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: false, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: false, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null }, menuButtonProps: { classPropertyName: "menuButtonProps", publicName: "menuButtonProps", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, menuButtonDisabled: { classPropertyName: "menuButtonDisabled", publicName: "menuButtonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onClick: "onClick", onMenuHide: "onMenuHide", onMenuShow: "onMenuShow", onDropdownClick: "onDropdownClick" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p-severity": "severity" } }, providers: [SplitButtonStyle, { provide: SPLITBUTTON_INSTANCE, useExisting: SplitButton }, { provide: PARENT_INSTANCE, useExisting: SplitButton }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"] }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"] }, { propertyName: "templates", predicate: AglTemplate }], viewQueries: [{ propertyName: "buttonViewChild", first: true, predicate: ["defaultbtn"], descendants: true }, { propertyName: "menu", first: true, predicate: ["menu"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
334
- <ng-container *ngIf="contentTemplate || _contentTemplate; else defaultButton">
314
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButton, deps: null, target: i0.ɵɵFactoryTarget.Component });
315
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.1", type: SplitButton, isStandalone: true, selector: "agl-splitbutton, agl-splitButton, agl-split-button", inputs: { model: { classPropertyName: "model", publicName: "model", isSignal: false, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: false, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, text: { classPropertyName: "text", publicName: "text", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: false, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: false, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: false, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipOptions: { classPropertyName: "tooltipOptions", publicName: "tooltipOptions", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, menuStyle: { classPropertyName: "menuStyle", publicName: "menuStyle", isSignal: false, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: false, isRequired: false, transformFunction: null }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: false, isRequired: false, transformFunction: null }, expandAriaLabel: { classPropertyName: "expandAriaLabel", publicName: "expandAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: false, isRequired: false, transformFunction: null }, menuButtonProps: { classPropertyName: "menuButtonProps", publicName: "menuButtonProps", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, menuButtonDisabled: { classPropertyName: "menuButtonDisabled", publicName: "menuButtonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, buttonDisabled: { classPropertyName: "buttonDisabled", publicName: "buttonDisabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onClick: "onClick", onMenuHide: "onMenuHide", onMenuShow: "onMenuShow", onDropdownClick: "onDropdownClick" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "attr.data-p-severity": "severity" } }, providers: [SplitButtonStyle, { provide: SPLITBUTTON_INSTANCE, useExisting: SplitButton }, { provide: PARENT_INSTANCE, useExisting: SplitButton }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"], isSignal: true }], viewQueries: [{ propertyName: "buttonViewChild", first: true, predicate: ["defaultbtn"], descendants: true }, { propertyName: "menu", first: true, predicate: ["menu"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
316
+ <ng-container *ngIf="contentTemplate(); else defaultButton">
335
317
  <button
336
318
  [class]="cx('pcButton')"
337
319
  type="button"
@@ -354,7 +336,7 @@ class SplitButton extends BaseComponent {
354
336
  [pt]="ptm('pcButton')"
355
337
  [unstyled]="unstyled()"
356
338
  >
357
- <ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
339
+ <ng-container *ngTemplateOutlet="contentTemplate()"></ng-container>
358
340
  </button>
359
341
  </ng-container>
360
342
  <ng-template #defaultButton>
@@ -404,8 +386,8 @@ class SplitButton extends BaseComponent {
404
386
  >
405
387
  <span *ngIf="dropdownIcon" [class]="dropdownIcon"></span>
406
388
  <ng-container *ngIf="!dropdownIcon">
407
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
408
- <ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
389
+ <svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate()" />
390
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate()"></ng-template>
409
391
  </ng-container>
410
392
  </button>
411
393
  <agl-tieredmenu
@@ -424,14 +406,14 @@ class SplitButton extends BaseComponent {
424
406
  ></agl-tieredmenu>
425
407
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: ButtonDirective, selector: "[aglButton]", inputs: ["ptButtonDirective", "pButtonPT", "pButtonUnstyled", "hostName", "text", "plain", "raised", "size", "outlined", "rounded", "iconPos", "loadingIcon", "fluid", "label", "icon", "loading", "buttonProps", "severity"] }, { kind: "component", type: TieredMenu, selector: "agl-tieredMenu, agl-tieredmenu, agl-tiered-menu", inputs: ["model", "popup", "style", "styleClass", "breakpoint", "autoZIndex", "baseZIndex", "autoDisplay", "showTransitionOptions", "hideTransitionOptions", "id", "ariaLabel", "ariaLabelledBy", "disabled", "tabindex", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: AutoFocus, selector: "[aglAutoFocus]", inputs: ["aglAutoFocus"] }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "directive", type: Ripple, selector: "[aglRipple]" }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i3.Tooltip, selector: "[aglTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "showOnEllipsis", "aglTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip", "pTooltipPT", "pTooltipUnstyled"] }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
426
408
  }
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButton, decorators: [{
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButton, decorators: [{
428
410
  type: Component,
429
411
  args: [{
430
412
  selector: 'agl-splitbutton, agl-splitButton, agl-split-button',
431
413
  standalone: true,
432
414
  imports: [CommonModule, ButtonDirective, TieredMenu, AutoFocus, ChevronDownIcon, Ripple, TooltipModule, SharedModule],
433
415
  template: `
434
- <ng-container *ngIf="contentTemplate || _contentTemplate; else defaultButton">
416
+ <ng-container *ngIf="contentTemplate(); else defaultButton">
435
417
  <button
436
418
  [class]="cx('pcButton')"
437
419
  type="button"
@@ -454,7 +436,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
454
436
  [pt]="ptm('pcButton')"
455
437
  [unstyled]="unstyled()"
456
438
  >
457
- <ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
439
+ <ng-container *ngTemplateOutlet="contentTemplate()"></ng-container>
458
440
  </button>
459
441
  </ng-container>
460
442
  <ng-template #defaultButton>
@@ -504,8 +486,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
504
486
  >
505
487
  <span *ngIf="dropdownIcon" [class]="dropdownIcon"></span>
506
488
  <ng-container *ngIf="!dropdownIcon">
507
- <svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
508
- <ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
489
+ <svg data-p-icon="chevron-down" *ngIf="!dropdownIconTemplate()" />
490
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate()"></ng-template>
509
491
  </ng-container>
510
492
  </button>
511
493
  <agl-tieredmenu
@@ -612,22 +594,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
612
594
  }], menu: [{
613
595
  type: ViewChild,
614
596
  args: ['menu']
615
- }], contentTemplate: [{
616
- type: ContentChild,
617
- args: ['content', { descendants: false }]
618
- }], dropdownIconTemplate: [{
619
- type: ContentChild,
620
- args: ['dropdownicon', { descendants: false }]
621
- }], templates: [{
622
- type: ContentChildren,
623
- args: [AglTemplate]
624
- }] } });
597
+ }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], dropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownicon', { ...{ descendants: false }, isSignal: true }] }] } });
625
598
  class SplitButtonModule {
626
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
627
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonModule, imports: [SplitButton, SharedModule], exports: [SplitButton, SharedModule] });
628
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonModule, imports: [SplitButton, SharedModule, SharedModule] });
599
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
600
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonModule, imports: [SplitButton, SharedModule], exports: [SplitButton, SharedModule] });
601
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonModule, imports: [SplitButton, SharedModule, SharedModule] });
629
602
  }
630
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: SplitButtonModule, decorators: [{
603
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SplitButtonModule, decorators: [{
631
604
  type: NgModule,
632
605
  args: [{
633
606
  imports: [SplitButton, SharedModule],