@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
@@ -1 +1 @@
1
- {"version":3,"file":"anguless-angulux-chip.mjs","sources":["../../src/chip/style/chipstyle.ts","../../src/chip/chip.ts","../../src/chip/anguless-angulux-chip.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@anguless/angulux-styles/chip';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst inlineStyles = {\n root: ({ instance }) => ({\n display: !instance.visible && 'none'\n })\n};\n\nconst classes = {\n root: ({ instance }) => [\n 'p-chip p-component',\n {\n 'p-disabled': instance.disabled\n }\n ],\n image: 'p-chip-image',\n icon: 'p-chip-icon',\n label: 'p-chip-label',\n removeIcon: 'p-chip-remove-icon'\n};\n\n@Injectable()\nexport class ChipStyle extends BaseStyle {\n name = 'chip';\n\n style = style;\n\n classes = classes;\n\n inlineStyles = inlineStyles;\n}\n\n/**\n *\n * Chip represents people using icons, labels and images.\n *\n * @module chipstyle\n *\n */\nexport enum ChipClasses {\n /**\n * Class name of the root element\n */\n root = 'p-chip',\n /**\n * Class name of the image element\n */\n image = 'p-chip-image',\n /**\n * Class name of the icon element\n */\n icon = 'p-chip-icon',\n /**\n * Class name of the label element\n */\n label = 'p-chip-label',\n /**\n * Class name of the remove icon element\n */\n removeIcon = 'p-chip-remove-icon'\n}\n\nexport interface ChipStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n inject,\n InjectionToken,\n Input,\n NgModule,\n Output,\n QueryList,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { AglTemplate, SharedModule, TranslationKeys } from '@anguless/angulux/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { Bind } from '@anguless/angulux/bind';\nimport { TimesCircleIcon } from '@anguless/angulux/icons';\nimport { ChipProps, ChipPassThrough } from '@anguless/angulux/types/chip';\nimport { ChipStyle } from './style/chipstyle';\n\nconst CHIP_INSTANCE = new InjectionToken<Chip>('CHIP_INSTANCE');\n\n/**\n * Chip represents people using icons, labels and images.\n * @group Components\n */\n@Component({\n selector: 'agl-chip',\n standalone: true,\n imports: [CommonModule, TimesCircleIcon, SharedModule, Bind],\n template: `\n <ng-content></ng-content>\n <img [aglBind]=\"ptm('image')\" [class]=\"cx('image')\" [src]=\"image\" *ngIf=\"image; else iconTemplate\" (error)=\"imageError($event)\" [alt]=\"alt\" />\n <ng-template #iconTemplate><span [aglBind]=\"ptm('icon')\" *ngIf=\"icon\" [class]=\"icon\" [ngClass]=\"cx('icon')\"></span></ng-template>\n <div [aglBind]=\"ptm('label')\" [class]=\"cx('label')\" *ngIf=\"label\">{{ label }}</div>\n <ng-container *ngIf=\"removable\">\n <ng-container *ngIf=\"!removeIconTemplate && !_removeIconTemplate\">\n <span\n [aglBind]=\"ptm('removeIcon')\"\n *ngIf=\"removeIcon\"\n [class]=\"removeIcon\"\n [ngClass]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n ></span>\n <svg\n [aglBind]=\"ptm('removeIcon')\"\n data-p-icon=\"times-circle\"\n *ngIf=\"!removeIcon\"\n [class]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n />\n </ng-container>\n <span\n [aglBind]=\"ptm('removeIcon')\"\n *ngIf=\"removeIconTemplate || _removeIconTemplate\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [class]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n >\n <ng-template *ngTemplateOutlet=\"removeIconTemplate || _removeIconTemplate\"></ng-template>\n </span>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [ChipStyle, { provide: CHIP_INSTANCE, useExisting: Chip }, { provide: PARENT_INSTANCE, useExisting: Chip }],\n host: {\n '[class]': \"cn(cx('root'), styleClass)\",\n '[style]': \"sx('root')\",\n '[attr.aria-label]': 'label',\n '[attr.data-p]': 'dataP'\n },\n hostDirectives: [Bind]\n})\nexport class Chip extends BaseComponent<ChipPassThrough> {\n componentName = 'Chip';\n\n $pcChip: Chip | undefined = inject(CHIP_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 * Defines the text to display.\n * @group Props\n */\n @Input() label: string | undefined;\n /**\n * Defines the icon to display.\n * @group Props\n */\n @Input() icon: string | undefined;\n /**\n * Defines the image to display.\n * @group Props\n */\n @Input() image: string | undefined;\n /**\n * Alt attribute of the image.\n * @group Props\n */\n @Input() alt: string | undefined;\n /**\n * Class of the element.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) disabled: boolean | undefined = false;\n /**\n * Whether to display a remove icon.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) removable: boolean | undefined = false;\n /**\n * Icon of the remove element.\n * @group Props\n */\n @Input() removeIcon: string | undefined;\n /**\n * Callback to invoke when a chip is removed.\n * @param {MouseEvent} event - Mouse event.\n * @group Emits\n */\n @Output() onRemove: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();\n /**\n * This event is triggered if an error occurs while loading an image file.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n @Output() onImageError: EventEmitter<Event> = new EventEmitter<Event>();\n\n visible: boolean = true;\n\n get removeAriaLabel() {\n return this.config.getTranslation(TranslationKeys.ARIA)['removeLabel'];\n }\n /**\n * Used to pass all properties of the chipProps to the Chip component.\n * @group Props\n */\n @Input() get chipProps(): ChipProps | undefined {\n return this._chipProps;\n }\n set chipProps(val: ChipProps | undefined) {\n this._chipProps = val;\n\n if (val && typeof val === 'object') {\n //@ts-ignore\n Object.entries(val).forEach(([k, v]) => this[`_${k}`] !== v && (this[`_${k}`] = v));\n }\n }\n\n _chipProps: ChipProps | undefined;\n\n _componentStyle = inject(ChipStyle);\n\n /**\n * Custom remove icon template.\n * @group Templates\n */\n @ContentChild('removeicon', { descendants: false }) removeIconTemplate: TemplateRef<void> | undefined;\n\n @ContentChildren(AglTemplate) templates: QueryList<AglTemplate> | undefined;\n\n _removeIconTemplate: TemplateRef<void> | undefined;\n\n onAfterContentInit() {\n (this.templates as QueryList<AglTemplate>).forEach((item) => {\n switch (item.getType()) {\n case 'removeicon':\n this._removeIconTemplate = item.template;\n break;\n\n default:\n this._removeIconTemplate = item.template;\n break;\n }\n });\n }\n\n onChanges(simpleChanges: SimpleChanges) {\n if (simpleChanges.chipProps && simpleChanges.chipProps.currentValue) {\n const { currentValue } = simpleChanges.chipProps;\n\n if (currentValue.label !== undefined) {\n this.label = currentValue.label;\n }\n if (currentValue.icon !== undefined) {\n this.icon = currentValue.icon;\n }\n if (currentValue.image !== undefined) {\n this.image = currentValue.image;\n }\n if (currentValue.alt !== undefined) {\n this.alt = currentValue.alt;\n }\n if (currentValue.styleClass !== undefined) {\n this.styleClass = currentValue.styleClass;\n }\n if (currentValue.removable !== undefined) {\n this.removable = currentValue.removable;\n }\n if (currentValue.removeIcon !== undefined) {\n this.removeIcon = currentValue.removeIcon;\n }\n }\n }\n\n close(event: MouseEvent) {\n this.visible = false;\n this.onRemove.emit(event);\n }\n\n onKeydown(event) {\n if (event.key === 'Enter' || event.key === 'Backspace') {\n this.close(event);\n }\n }\n\n imageError(event: Event) {\n this.onImageError.emit(event);\n }\n\n get dataP() {\n return this.cn({\n removable: this.removable\n });\n }\n}\n\n@NgModule({\n imports: [Chip, SharedModule],\n exports: [Chip, SharedModule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AAA,EAAA,CAHT,IAAI,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEnB,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY;AAC/B,iBAAA;;;ACjQD;;AAEG;;;;"}
1
+ {"version":3,"file":"anguless-angulux-chip.mjs","sources":["../../src/chip/style/chipstyle.ts","../../src/chip/chip.ts","../../src/chip/anguless-angulux-chip.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@anguless/angulux-styles/chip';\nimport { BaseStyle } from '@anguless/angulux/base';\n\nconst inlineStyles = {\n root: ({ instance }) => ({\n display: !instance.visible && 'none'\n })\n};\n\nconst classes = {\n root: ({ instance }) => [\n 'p-chip p-component',\n {\n 'p-disabled': instance.disabled\n }\n ],\n image: 'p-chip-image',\n icon: 'p-chip-icon',\n label: 'p-chip-label',\n removeIcon: 'p-chip-remove-icon'\n};\n\n@Injectable()\nexport class ChipStyle extends BaseStyle {\n name = 'chip';\n\n style = style;\n\n classes = classes;\n\n inlineStyles = inlineStyles;\n}\n\n/**\n *\n * Chip represents people using icons, labels and images.\n *\n * @module chipstyle\n *\n */\nexport enum ChipClasses {\n /**\n * Class name of the root element\n */\n root = 'p-chip',\n /**\n * Class name of the image element\n */\n image = 'p-chip-image',\n /**\n * Class name of the icon element\n */\n icon = 'p-chip-icon',\n /**\n * Class name of the label element\n */\n label = 'p-chip-label',\n /**\n * Class name of the remove icon element\n */\n removeIcon = 'p-chip-remove-icon'\n}\n\nexport interface ChipStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport {\n AfterContentInit,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n contentChild, EventEmitter,\n inject,\n InjectionToken,\n Input,\n NgModule,\n Output,\n SimpleChanges,\n TemplateRef,\n ViewEncapsulation\n} from '@angular/core';\nimport { SharedModule, TranslationKeys } from '@anguless/angulux/api';\nimport { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';\nimport { Bind } from '@anguless/angulux/bind';\nimport { TimesCircleIcon } from '@anguless/angulux/icons';\nimport { ChipProps, ChipPassThrough } from '@anguless/angulux/types/chip';\nimport { ChipStyle } from './style/chipstyle';\n\nconst CHIP_INSTANCE = new InjectionToken<Chip>('CHIP_INSTANCE');\n\n/**\n * Chip represents people using icons, labels and images.\n * @group Components\n */\n@Component({\n selector: 'agl-chip',\n standalone: true,\n imports: [CommonModule, TimesCircleIcon, SharedModule, Bind],\n template: `\n <ng-content></ng-content>\n <img [aglBind]=\"ptm('image')\" [class]=\"cx('image')\" [src]=\"image\" *ngIf=\"image; else iconTemplate\" (error)=\"imageError($event)\" [alt]=\"alt\" />\n <ng-template #iconTemplate><span [aglBind]=\"ptm('icon')\" *ngIf=\"icon\" [class]=\"icon\" [ngClass]=\"cx('icon')\"></span></ng-template>\n <div [aglBind]=\"ptm('label')\" [class]=\"cx('label')\" *ngIf=\"label\">{{ label }}</div>\n <ng-container *ngIf=\"removable\">\n <ng-container *ngIf=\"!removeIconTemplate()\">\n <span\n [aglBind]=\"ptm('removeIcon')\"\n *ngIf=\"removeIcon\"\n [class]=\"removeIcon\"\n [ngClass]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n ></span>\n <svg\n [aglBind]=\"ptm('removeIcon')\"\n data-p-icon=\"times-circle\"\n *ngIf=\"!removeIcon\"\n [class]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n />\n </ng-container>\n <span\n [aglBind]=\"ptm('removeIcon')\"\n *ngIf=\"removeIconTemplate()\"\n [attr.tabindex]=\"disabled ? -1 : 0\"\n [class]=\"cx('removeIcon')\"\n (click)=\"close($event)\"\n (keydown)=\"onKeydown($event)\"\n [attr.aria-label]=\"removeAriaLabel\"\n role=\"button\"\n >\n <ng-template *ngTemplateOutlet=\"removeIconTemplate()\"></ng-template>\n </span>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [ChipStyle, { provide: CHIP_INSTANCE, useExisting: Chip }, { provide: PARENT_INSTANCE, useExisting: Chip }],\n host: {\n '[class]': \"cn(cx('root'), styleClass)\",\n '[style]': \"sx('root')\",\n '[attr.aria-label]': 'label',\n '[attr.data-p]': 'dataP'\n },\n hostDirectives: [Bind]\n})\nexport class Chip extends BaseComponent<ChipPassThrough> {\n componentName = 'Chip';\n\n $pcChip: Chip | undefined = inject(CHIP_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 * Defines the text to display.\n * @group Props\n */\n @Input() label: string | undefined;\n /**\n * Defines the icon to display.\n * @group Props\n */\n @Input() icon: string | undefined;\n /**\n * Defines the image to display.\n * @group Props\n */\n @Input() image: string | undefined;\n /**\n * Alt attribute of the image.\n * @group Props\n */\n @Input() alt: string | undefined;\n /**\n * Class of the element.\n * @deprecated since v20.0.0, use `class` instead.\n * @group Props\n */\n @Input() styleClass: string | undefined;\n /**\n * When present, it specifies that the element should be disabled.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) disabled: boolean | undefined = false;\n /**\n * Whether to display a remove icon.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) removable: boolean | undefined = false;\n /**\n * Icon of the remove element.\n * @group Props\n */\n @Input() removeIcon: string | undefined;\n /**\n * Callback to invoke when a chip is removed.\n * @param {MouseEvent} event - Mouse event.\n * @group Emits\n */\n @Output() onRemove: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();\n /**\n * This event is triggered if an error occurs while loading an image file.\n * @param {Event} event - Browser event.\n * @group Emits\n */\n @Output() onImageError: EventEmitter<Event> = new EventEmitter<Event>();\n\n visible: boolean = true;\n\n get removeAriaLabel() {\n return this.config.getTranslation(TranslationKeys.ARIA)['removeLabel'];\n }\n /**\n * Used to pass all properties of the chipProps to the Chip component.\n * @group Props\n */\n @Input() get chipProps(): ChipProps | undefined {\n return this._chipProps;\n }\n set chipProps(val: ChipProps | undefined) {\n this._chipProps = val;\n\n if (val && typeof val === 'object') {\n //@ts-ignore\n Object.entries(val).forEach(([k, v]) => this[`_${k}`] !== v && (this[`_${k}`] = v));\n }\n }\n\n _chipProps: ChipProps | undefined;\n\n _componentStyle = inject(ChipStyle);\n\n /**\n * Custom remove icon template.\n * @group Templates\n */\n removeIconTemplate = contentChild<TemplateRef<void>>('removeicon', { descendants: false });\n\n onChanges(simpleChanges: SimpleChanges) {\n if (simpleChanges.chipProps && simpleChanges.chipProps.currentValue) {\n const { currentValue } = simpleChanges.chipProps;\n\n if (currentValue.label !== undefined) {\n this.label = currentValue.label;\n }\n if (currentValue.icon !== undefined) {\n this.icon = currentValue.icon;\n }\n if (currentValue.image !== undefined) {\n this.image = currentValue.image;\n }\n if (currentValue.alt !== undefined) {\n this.alt = currentValue.alt;\n }\n if (currentValue.styleClass !== undefined) {\n this.styleClass = currentValue.styleClass;\n }\n if (currentValue.removable !== undefined) {\n this.removable = currentValue.removable;\n }\n if (currentValue.removeIcon !== undefined) {\n this.removeIcon = currentValue.removeIcon;\n }\n }\n }\n\n close(event: MouseEvent) {\n this.visible = false;\n this.onRemove.emit(event);\n }\n\n onKeydown(event) {\n if (event.key === 'Enter' || event.key === 'Backspace') {\n this.close(event);\n }\n }\n\n imageError(event: Event) {\n this.onImageError.emit(event);\n }\n\n get dataP() {\n return this.cn({\n removable: this.removable\n });\n }\n}\n\n@NgModule({\n imports: [Chip, SharedModule],\n exports: [Chip, SharedModule]\n})\nexport class ChipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,MAAM,YAAY,GAAG;IACjB,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM;AACrB,QAAA,OAAO,EAAE,CAAC,QAAQ,CAAC,OAAO,IAAI;KACjC;CACJ;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK;QACpB,oBAAoB;AACpB,QAAA;YACI,YAAY,EAAE,QAAQ,CAAC;AAC1B;AACJ,KAAA;AACD,IAAA,KAAK,EAAE,cAAc;AACrB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,KAAK,EAAE,cAAc;AACrB,IAAA,UAAU,EAAE;CACf;AAGK,MAAO,SAAU,SAAQ,SAAS,CAAA;IACpC,IAAI,GAAG,MAAM;IAEb,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;IAEjB,YAAY,GAAG,YAAY;uGAPlB,SAAS,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAT,SAAS,EAAA,CAAA;;2FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBADrB;;AAWD;;;;;;AAMG;IACS;AAAZ,CAAA,UAAY,WAAW,EAAA;AACnB;;AAEG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,QAAe;AACf;;AAEG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,cAAsB;AACtB;;AAEG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,aAAoB;AACpB;;AAEG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,cAAsB;AACtB;;AAEG;AACH,IAAA,WAAA,CAAA,YAAA,CAAA,GAAA,oBAAiC;AACrC,CAAC,EArBW,W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;AAC7B,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,YAAY;AAC/B,iBAAA;;;AC5OD;;AAEG;;;;"}
@@ -40,10 +40,10 @@ class ColorPickerStyle extends BaseStyle {
40
40
  name = 'colorpicker';
41
41
  style = style;
42
42
  classes = classes;
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
44
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerStyle });
43
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
44
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerStyle });
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerStyle, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerStyle, decorators: [{
47
47
  type: Injectable
48
48
  }] });
49
49
  /**
@@ -622,8 +622,8 @@ class ColorPicker extends BaseEditableHolder {
622
622
  ZIndexUtils.clear(this.overlayViewChild?.nativeElement);
623
623
  }
624
624
  }
625
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPicker, deps: [{ token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
626
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: ColorPicker, isStandalone: true, selector: "agl-colorPicker, agl-colorpicker, agl-color-picker", inputs: { styleClass: { classPropertyName: "styleClass", publicName: "styleClass", 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 }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, format: { classPropertyName: "format", publicName: "format", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, defaultColor: { classPropertyName: "defaultColor", publicName: "defaultColor", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onShow: "onShow", onHide: "onHide" }, host: { properties: { "class": "cn(cx('root'), styleClass)" } }, providers: [COLORPICKER_VALUE_ACCESSOR, ColorPickerStyle, { provide: COLORPICKER_INSTANCE, useExisting: ColorPicker }, { provide: PARENT_INSTANCE, useExisting: ColorPicker }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "colorSelector", first: true, predicate: ["colorSelector"], descendants: true }, { propertyName: "colorHandle", first: true, predicate: ["colorHandle"], descendants: true }, { propertyName: "hue", first: true, predicate: ["hue"], descendants: true }, { propertyName: "hueHandle", first: true, predicate: ["hueHandle"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
625
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPicker, deps: [{ token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
626
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.1", type: ColorPicker, isStandalone: true, selector: "agl-colorPicker, agl-colorpicker, agl-color-picker", inputs: { styleClass: { classPropertyName: "styleClass", publicName: "styleClass", 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 }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, format: { classPropertyName: "format", publicName: "format", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, defaultColor: { classPropertyName: "defaultColor", publicName: "defaultColor", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onShow: "onShow", onHide: "onHide" }, host: { properties: { "class": "cn(cx('root'), styleClass)" } }, providers: [COLORPICKER_VALUE_ACCESSOR, ColorPickerStyle, { provide: COLORPICKER_INSTANCE, useExisting: ColorPicker }, { provide: PARENT_INSTANCE, useExisting: ColorPicker }], viewQueries: [{ propertyName: "inputViewChild", first: true, predicate: ["input"], descendants: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "colorSelector", first: true, predicate: ["colorSelector"], descendants: true }, { propertyName: "colorHandle", first: true, predicate: ["colorHandle"], descendants: true }, { propertyName: "hue", first: true, predicate: ["hue"], descendants: true }, { propertyName: "hueHandle", first: true, predicate: ["hueHandle"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
627
627
  <input
628
628
  *ngIf="!inline"
629
629
  #input
@@ -674,7 +674,7 @@ class ColorPicker extends BaseEditableHolder {
674
674
  </agl-overlay>
675
675
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: AutoFocusModule }, { kind: "directive", type: i4.AutoFocus, selector: "[aglAutoFocus]", inputs: ["aglAutoFocus"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "ngmodule", type: OverlayModule }, { kind: "component", type: i5.Overlay, selector: "agl-overlay", inputs: ["hostName", "visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "inline", "motionOptions", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
676
676
  }
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPicker, decorators: [{
677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPicker, decorators: [{
678
678
  type: Component,
679
679
  args: [{
680
680
  selector: 'agl-colorPicker, agl-colorpicker, agl-color-picker',
@@ -787,11 +787,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
787
787
  args: ['hueHandle']
788
788
  }] } });
789
789
  class ColorPickerModule {
790
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
791
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerModule, imports: [ColorPicker, SharedModule], exports: [ColorPicker, SharedModule] });
792
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerModule, imports: [ColorPicker, SharedModule, SharedModule] });
790
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
791
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerModule, imports: [ColorPicker, SharedModule], exports: [ColorPicker, SharedModule] });
792
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerModule, imports: [ColorPicker, SharedModule, SharedModule] });
793
793
  }
794
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ColorPickerModule, decorators: [{
794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ColorPickerModule, decorators: [{
795
795
  type: NgModule,
796
796
  args: [{
797
797
  imports: [ColorPicker, SharedModule],
@@ -66,10 +66,10 @@ class ThemeProvider {
66
66
  if (csp)
67
67
  this.csp.set(csp);
68
68
  }
69
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
70
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProvider, providedIn: 'root' });
69
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ThemeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
70
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ThemeProvider, providedIn: 'root' });
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ThemeProvider, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ThemeProvider, decorators: [{
73
73
  type: Injectable,
74
74
  args: [{ providedIn: 'root' }]
75
75
  }], ctorParameters: () => [] });
@@ -278,10 +278,10 @@ class AnguluxConfig extends ThemeProvider {
278
278
  csp
279
279
  });
280
280
  }
281
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AnguluxConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
282
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AnguluxConfig, providedIn: 'root' });
281
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AnguluxConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
282
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AnguluxConfig, providedIn: 'root' });
283
283
  }
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AnguluxConfig, decorators: [{
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AnguluxConfig, decorators: [{
285
285
  type: Injectable,
286
286
  args: [{ providedIn: 'root' }]
287
287
  }] });
@@ -1,10 +1,10 @@
1
1
  import * as i3 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, InjectionToken, inject, input, EventEmitter, computed, booleanAttribute, numberAttribute, ContentChildren, ContentChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
4
+ import { Injectable, InjectionToken, inject, input, EventEmitter, contentChild, computed, booleanAttribute, numberAttribute, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
5
5
  import { uuid, findSingle, setAttribute } from '@anguless/angulux-utils';
6
6
  import * as i1 from '@anguless/angulux/api';
7
- import { ConfirmEventType, TranslationKeys, SharedModule, Footer, AglTemplate } from '@anguless/angulux/api';
7
+ import { ConfirmEventType, TranslationKeys, SharedModule } from '@anguless/angulux/api';
8
8
  import { BaseComponent, PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
9
9
  import * as i2 from '@anguless/angulux/bind';
10
10
  import { Bind } from '@anguless/angulux/bind';
@@ -25,10 +25,10 @@ class ConfirmDialogStyle extends BaseStyle {
25
25
  name = 'confirmdialog';
26
26
  style = style;
27
27
  classes = classes;
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
29
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogStyle });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
29
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogStyle });
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogStyle, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogStyle, decorators: [{
32
32
  type: Injectable
33
33
  }] });
34
34
  /**
@@ -269,53 +269,44 @@ class ConfirmDialog extends BaseComponent {
269
269
  * @group Emits
270
270
  */
271
271
  onHide = new EventEmitter();
272
- footer;
273
272
  _componentStyle = inject(ConfirmDialogStyle);
274
273
  /**
275
274
  * Custom header template.
276
275
  * @group Templates
277
276
  */
278
- headerTemplate;
277
+ headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
279
278
  /**
280
279
  * Custom footer template.
281
280
  * @group Templates
282
281
  */
283
- footerTemplate;
282
+ footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
284
283
  /**
285
284
  * Custom reject icon template.
286
285
  * @group Templates
287
286
  */
288
- rejectIconTemplate;
287
+ rejectIconTemplate = contentChild('rejecticon', { ...(ngDevMode ? { debugName: "rejectIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
289
288
  /**
290
289
  * Custom accept icon template.
291
290
  * @group Templates
292
291
  */
293
- acceptIconTemplate;
292
+ acceptIconTemplate = contentChild('accepticon', { ...(ngDevMode ? { debugName: "acceptIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
294
293
  /**
295
294
  * Custom message template.
296
295
  * @group Templates
297
296
  */
298
- messageTemplate;
297
+ messageTemplate = contentChild('message', { ...(ngDevMode ? { debugName: "messageTemplate" } : /* istanbul ignore next */ {}), descendants: false });
299
298
  /**
300
299
  * Custom icon template.
301
300
  * @group Templates
302
301
  */
303
- iconTemplate;
302
+ iconTemplate = contentChild('icon', { ...(ngDevMode ? { debugName: "iconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
304
303
  /**
305
304
  * Custom headless template.
306
305
  * @group Templates
307
306
  */
308
- headlessTemplate;
309
- templates;
307
+ headlessTemplate = contentChild('headless', { ...(ngDevMode ? { debugName: "headlessTemplate" } : /* istanbul ignore next */ {}), descendants: false });
310
308
  $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
311
309
  ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
312
- _headerTemplate;
313
- _footerTemplate;
314
- _rejectIconTemplate;
315
- _acceptIconTemplate;
316
- _messageTemplate;
317
- _iconTemplate;
318
- _headlessTemplate;
319
310
  confirmation;
320
311
  _visible;
321
312
  _style;
@@ -366,33 +357,6 @@ class ConfirmDialog extends BaseComponent {
366
357
  }
367
358
  });
368
359
  }
369
- onAfterContentInit() {
370
- this.templates?.forEach((item) => {
371
- switch (item.getType()) {
372
- case 'header':
373
- this._headerTemplate = item.template;
374
- break;
375
- case 'footer':
376
- this._footerTemplate = item.template;
377
- break;
378
- case 'message':
379
- this._messageTemplate = item.template;
380
- break;
381
- case 'icon':
382
- this._iconTemplate = item.template;
383
- break;
384
- case 'rejecticon':
385
- this._rejectIconTemplate = item.template;
386
- break;
387
- case 'accepticon':
388
- this._acceptIconTemplate = item.template;
389
- break;
390
- case 'headless':
391
- this._headlessTemplate = item.template;
392
- break;
393
- }
394
- });
395
- }
396
360
  getAriaLabelledBy() {
397
361
  return this.header !== null ? uuid('pn_id_') + '_header' : null;
398
362
  }
@@ -514,8 +478,8 @@ class ConfirmDialog extends BaseComponent {
514
478
  getRejectButtonProps() {
515
479
  return this.option('rejectButtonProps');
516
480
  }
517
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialog, deps: [{ token: i1.ConfirmationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
518
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: ConfirmDialog, isStandalone: true, selector: "agl-confirmDialog, agl-confirmdialog, agl-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: false, isRequired: false, transformFunction: null }, acceptIcon: { classPropertyName: "acceptIcon", publicName: "acceptIcon", isSignal: false, isRequired: false, transformFunction: null }, acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: false, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, acceptAriaLabel: { classPropertyName: "acceptAriaLabel", publicName: "acceptAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, acceptVisible: { classPropertyName: "acceptVisible", publicName: "acceptVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rejectIcon: { classPropertyName: "rejectIcon", publicName: "rejectIcon", isSignal: false, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: false, isRequired: false, transformFunction: null }, rejectAriaLabel: { classPropertyName: "rejectAriaLabel", publicName: "rejectAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, rejectVisible: { classPropertyName: "rejectVisible", publicName: "rejectVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, acceptButtonStyleClass: { classPropertyName: "acceptButtonStyleClass", publicName: "acceptButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, rejectButtonStyleClass: { classPropertyName: "rejectButtonStyleClass", publicName: "rejectButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", isSignal: false, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: false, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: false, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onHide: "onHide" }, providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }], queries: [{ propertyName: "footer", first: true, predicate: Footer, descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"] }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"] }, { propertyName: "messageTemplate", first: true, predicate: ["message"] }, { propertyName: "iconTemplate", first: true, predicate: ["icon"] }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"] }, { propertyName: "templates", predicate: AglTemplate }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
481
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialog, deps: [{ token: i1.ConfirmationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
482
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: ConfirmDialog, isStandalone: true, selector: "agl-confirmDialog, agl-confirmdialog, agl-confirm-dialog", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: false, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: false, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, maskStyleClass: { classPropertyName: "maskStyleClass", publicName: "maskStyleClass", isSignal: false, isRequired: false, transformFunction: null }, acceptIcon: { classPropertyName: "acceptIcon", publicName: "acceptIcon", isSignal: false, isRequired: false, transformFunction: null }, acceptLabel: { classPropertyName: "acceptLabel", publicName: "acceptLabel", isSignal: false, isRequired: false, transformFunction: null }, closeAriaLabel: { classPropertyName: "closeAriaLabel", publicName: "closeAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, acceptAriaLabel: { classPropertyName: "acceptAriaLabel", publicName: "acceptAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, acceptVisible: { classPropertyName: "acceptVisible", publicName: "acceptVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rejectIcon: { classPropertyName: "rejectIcon", publicName: "rejectIcon", isSignal: false, isRequired: false, transformFunction: null }, rejectLabel: { classPropertyName: "rejectLabel", publicName: "rejectLabel", isSignal: false, isRequired: false, transformFunction: null }, rejectAriaLabel: { classPropertyName: "rejectAriaLabel", publicName: "rejectAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, rejectVisible: { classPropertyName: "rejectVisible", publicName: "rejectVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, acceptButtonStyleClass: { classPropertyName: "acceptButtonStyleClass", publicName: "acceptButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, rejectButtonStyleClass: { classPropertyName: "rejectButtonStyleClass", publicName: "rejectButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dismissableMask: { classPropertyName: "dismissableMask", publicName: "dismissableMask", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, blockScroll: { classPropertyName: "blockScroll", publicName: "blockScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, rtl: { classPropertyName: "rtl", publicName: "rtl", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: false, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, defaultFocus: { classPropertyName: "defaultFocus", publicName: "defaultFocus", isSignal: false, isRequired: false, transformFunction: null }, breakpoints: { classPropertyName: "breakpoints", publicName: "breakpoints", isSignal: false, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: false, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { onHide: "onHide" }, providers: [ConfirmDialogStyle, { provide: CONFIRMDIALOG_INSTANCE, useExisting: ConfirmDialog }, { provide: PARENT_INSTANCE, useExisting: ConfirmDialog }], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "rejectIconTemplate", first: true, predicate: ["rejecticon"], isSignal: true }, { propertyName: "acceptIconTemplate", first: true, predicate: ["accepticon"], isSignal: true }, { propertyName: "messageTemplate", first: true, predicate: ["message"], isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], isSignal: true }, { propertyName: "headlessTemplate", first: true, predicate: ["headless"], isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
519
483
  <agl-dialog
520
484
  [pt]="pt"
521
485
  #dialog
@@ -539,11 +503,11 @@ class ConfirmDialog extends BaseComponent {
539
503
  [unstyled]="unstyled()"
540
504
  (onHide)="onDialogHide()"
541
505
  >
542
- @if (headlessTemplate || _headlessTemplate) {
506
+ @if (headlessTemplate()) {
543
507
  <ng-template #headless>
544
508
  <ng-container
545
509
  *ngTemplateOutlet="
546
- headlessTemplate || _headlessTemplate;
510
+ headlessTemplate();
547
511
  context: {
548
512
  $implicit: confirmation,
549
513
  onAccept: onAccept.bind(this),
@@ -553,31 +517,30 @@ class ConfirmDialog extends BaseComponent {
553
517
  ></ng-container>
554
518
  </ng-template>
555
519
  } @else {
556
- @if (headerTemplate || _headerTemplate) {
520
+ @if (headerTemplate()) {
557
521
  <ng-template #header>
558
- <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
522
+ <ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
559
523
  </ng-template>
560
524
  }
561
525
 
562
526
  <ng-template #content>
563
- @if (iconTemplate || _iconTemplate) {
564
- <ng-template *ngTemplateOutlet="iconTemplate || _iconTemplate"></ng-template>
565
- } @else if (!iconTemplate && !_iconTemplate && !_messageTemplate && !messageTemplate) {
527
+ @if (iconTemplate()) {
528
+ <ng-template *ngTemplateOutlet="iconTemplate()"></ng-template>
529
+ } @else if (!iconTemplate() && !messageTemplate()) {
566
530
  <i [ngClass]="cx('icon')" [class]="option('icon')" [aglBind]="ptm('icon')" *ngIf="option('icon')"></i>
567
531
  }
568
- @if (messageTemplate || _messageTemplate) {
569
- <ng-template *ngTemplateOutlet="messageTemplate || _messageTemplate; context: { $implicit: confirmation }"></ng-template>
532
+ @if (messageTemplate()) {
533
+ <ng-template *ngTemplateOutlet="messageTemplate(); context: { $implicit: confirmation }"></ng-template>
570
534
  } @else {
571
535
  <span [class]="cx('message')" [aglBind]="ptm('message')" [innerHTML]="option('message')"> </span>
572
536
  }
573
537
  </ng-template>
574
538
  }
575
539
  <ng-template #footer>
576
- @if (footerTemplate || _footerTemplate) {
577
- <ng-content select="agl-footer"></ng-content>
578
- <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
540
+ @if (footerTemplate()) {
541
+ <ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
579
542
  }
580
- @if (!footerTemplate && !_footerTemplate) {
543
+ @if (!footerTemplate()) {
581
544
  <agl-button
582
545
  [pt]="ptm('pcRejectButton')"
583
546
  *ngIf="option('rejectVisible')"
@@ -589,10 +552,10 @@ class ConfirmDialog extends BaseComponent {
589
552
  [unstyled]="unstyled()"
590
553
  >
591
554
  <ng-template #icon>
592
- @if (rejectIcon && !rejectIconTemplate && !_rejectIconTemplate) {
555
+ @if (rejectIcon && !rejectIconTemplate()) {
593
556
  <i *ngIf="option('rejectIcon')" [class]="option('rejectIcon')" [aglBind]="ptm('pcRejectButton')['icon']"></i>
594
557
  }
595
- <ng-template *ngTemplateOutlet="rejectIconTemplate || _rejectIconTemplate"></ng-template>
558
+ <ng-template *ngTemplateOutlet="rejectIconTemplate()"></ng-template>
596
559
  </ng-template>
597
560
  </agl-button>
598
561
  <agl-button
@@ -606,10 +569,10 @@ class ConfirmDialog extends BaseComponent {
606
569
  [unstyled]="unstyled()"
607
570
  >
608
571
  <ng-template #icon>
609
- @if (acceptIcon && !_acceptIconTemplate && !acceptIconTemplate) {
572
+ @if (acceptIcon && !acceptIconTemplate()) {
610
573
  <i *ngIf="option('acceptIcon')" [class]="option('acceptIcon')" [aglBind]="ptm('pcAcceptButton')['icon']"></i>
611
574
  }
612
- <ng-template *ngTemplateOutlet="acceptIconTemplate || _acceptIconTemplate"></ng-template>
575
+ <ng-template *ngTemplateOutlet="acceptIconTemplate()"></ng-template>
613
576
  </ng-template>
614
577
  </agl-button>
615
578
  }
@@ -617,7 +580,7 @@ class ConfirmDialog extends BaseComponent {
617
580
  </agl-dialog>
618
581
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: Button, selector: "agl-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: Dialog, selector: "agl-dialog", inputs: ["hostName", "header", "draggable", "resizable", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "breakpoints", "styleClass", "maskStyleClass", "maskStyle", "showHeader", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "maskMotionOptions", "motionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "closeButtonProps", "maximizeButtonProps", "visible", "style", "position", "role", "appendTo", "content", "contentTemplate", "footerTemplate", "closeIconTemplate", "maximizeIconTemplate", "minimizeIconTemplate", "headlessTemplate"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Bind, selector: "[aglBind]", inputs: ["aglBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
619
582
  }
620
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialog, decorators: [{
583
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialog, decorators: [{
621
584
  type: Component,
622
585
  args: [{
623
586
  selector: 'agl-confirmDialog, agl-confirmdialog, agl-confirm-dialog',
@@ -647,11 +610,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
647
610
  [unstyled]="unstyled()"
648
611
  (onHide)="onDialogHide()"
649
612
  >
650
- @if (headlessTemplate || _headlessTemplate) {
613
+ @if (headlessTemplate()) {
651
614
  <ng-template #headless>
652
615
  <ng-container
653
616
  *ngTemplateOutlet="
654
- headlessTemplate || _headlessTemplate;
617
+ headlessTemplate();
655
618
  context: {
656
619
  $implicit: confirmation,
657
620
  onAccept: onAccept.bind(this),
@@ -661,31 +624,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
661
624
  ></ng-container>
662
625
  </ng-template>
663
626
  } @else {
664
- @if (headerTemplate || _headerTemplate) {
627
+ @if (headerTemplate()) {
665
628
  <ng-template #header>
666
- <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
629
+ <ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
667
630
  </ng-template>
668
631
  }
669
632
 
670
633
  <ng-template #content>
671
- @if (iconTemplate || _iconTemplate) {
672
- <ng-template *ngTemplateOutlet="iconTemplate || _iconTemplate"></ng-template>
673
- } @else if (!iconTemplate && !_iconTemplate && !_messageTemplate && !messageTemplate) {
634
+ @if (iconTemplate()) {
635
+ <ng-template *ngTemplateOutlet="iconTemplate()"></ng-template>
636
+ } @else if (!iconTemplate() && !messageTemplate()) {
674
637
  <i [ngClass]="cx('icon')" [class]="option('icon')" [aglBind]="ptm('icon')" *ngIf="option('icon')"></i>
675
638
  }
676
- @if (messageTemplate || _messageTemplate) {
677
- <ng-template *ngTemplateOutlet="messageTemplate || _messageTemplate; context: { $implicit: confirmation }"></ng-template>
639
+ @if (messageTemplate()) {
640
+ <ng-template *ngTemplateOutlet="messageTemplate(); context: { $implicit: confirmation }"></ng-template>
678
641
  } @else {
679
642
  <span [class]="cx('message')" [aglBind]="ptm('message')" [innerHTML]="option('message')"> </span>
680
643
  }
681
644
  </ng-template>
682
645
  }
683
646
  <ng-template #footer>
684
- @if (footerTemplate || _footerTemplate) {
685
- <ng-content select="agl-footer"></ng-content>
686
- <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
647
+ @if (footerTemplate()) {
648
+ <ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
687
649
  }
688
- @if (!footerTemplate && !_footerTemplate) {
650
+ @if (!footerTemplate()) {
689
651
  <agl-button
690
652
  [pt]="ptm('pcRejectButton')"
691
653
  *ngIf="option('rejectVisible')"
@@ -697,10 +659,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
697
659
  [unstyled]="unstyled()"
698
660
  >
699
661
  <ng-template #icon>
700
- @if (rejectIcon && !rejectIconTemplate && !_rejectIconTemplate) {
662
+ @if (rejectIcon && !rejectIconTemplate()) {
701
663
  <i *ngIf="option('rejectIcon')" [class]="option('rejectIcon')" [aglBind]="ptm('pcRejectButton')['icon']"></i>
702
664
  }
703
- <ng-template *ngTemplateOutlet="rejectIconTemplate || _rejectIconTemplate"></ng-template>
665
+ <ng-template *ngTemplateOutlet="rejectIconTemplate()"></ng-template>
704
666
  </ng-template>
705
667
  </agl-button>
706
668
  <agl-button
@@ -714,10 +676,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
714
676
  [unstyled]="unstyled()"
715
677
  >
716
678
  <ng-template #icon>
717
- @if (acceptIcon && !_acceptIconTemplate && !acceptIconTemplate) {
679
+ @if (acceptIcon && !acceptIconTemplate()) {
718
680
  <i *ngIf="option('acceptIcon')" [class]="option('acceptIcon')" [aglBind]="ptm('pcAcceptButton')['icon']"></i>
719
681
  }
720
- <ng-template *ngTemplateOutlet="acceptIconTemplate || _acceptIconTemplate"></ng-template>
682
+ <ng-template *ngTemplateOutlet="acceptIconTemplate()"></ng-template>
721
683
  </ng-template>
722
684
  </agl-button>
723
685
  }
@@ -809,40 +771,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
809
771
  args: [{ transform: booleanAttribute }]
810
772
  }], onHide: [{
811
773
  type: Output
812
- }], footer: [{
813
- type: ContentChild,
814
- args: [Footer]
815
- }], headerTemplate: [{
816
- type: ContentChild,
817
- args: ['header', { descendants: false }]
818
- }], footerTemplate: [{
819
- type: ContentChild,
820
- args: ['footer', { descendants: false }]
821
- }], rejectIconTemplate: [{
822
- type: ContentChild,
823
- args: ['rejecticon', { descendants: false }]
824
- }], acceptIconTemplate: [{
825
- type: ContentChild,
826
- args: ['accepticon', { descendants: false }]
827
- }], messageTemplate: [{
828
- type: ContentChild,
829
- args: ['message', { descendants: false }]
830
- }], iconTemplate: [{
831
- type: ContentChild,
832
- args: ['icon', { descendants: false }]
833
- }], headlessTemplate: [{
834
- type: ContentChild,
835
- args: ['headless', { descendants: false }]
836
- }], templates: [{
837
- type: ContentChildren,
838
- args: [AglTemplate]
839
- }] } });
774
+ }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], rejectIconTemplate: [{ type: i0.ContentChild, args: ['rejecticon', { ...{ descendants: false }, isSignal: true }] }], acceptIconTemplate: [{ type: i0.ContentChild, args: ['accepticon', { ...{ descendants: false }, isSignal: true }] }], messageTemplate: [{ type: i0.ContentChild, args: ['message', { ...{ descendants: false }, isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { ...{ descendants: false }, isSignal: true }] }], headlessTemplate: [{ type: i0.ContentChild, args: ['headless', { ...{ descendants: false }, isSignal: true }] }] } });
840
775
  class ConfirmDialogModule {
841
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
842
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule], exports: [ConfirmDialog, SharedModule] });
843
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule, SharedModule] });
776
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
777
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule], exports: [ConfirmDialog, SharedModule] });
778
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, imports: [ConfirmDialog, SharedModule, SharedModule] });
844
779
  }
845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ConfirmDialogModule, decorators: [{
780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ConfirmDialogModule, decorators: [{
846
781
  type: NgModule,
847
782
  args: [{
848
783
  imports: [ConfirmDialog, SharedModule],