@exhaustive-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11

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 (188) hide show
  1. package/README.md +22 -4
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs +6 -0
  3. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/exhaustive-ui-core-api.mjs +7 -5
  5. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  6. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +24 -13
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  8. package/fesm2022/exhaustive-ui-core-autofocus.mjs +4 -4
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  10. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +12 -2
  11. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  12. package/fesm2022/exhaustive-ui-core-blockui.mjs +7 -0
  13. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  14. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
  15. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/exhaustive-ui-core-button.mjs +30 -8
  17. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  18. package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
  19. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  20. package/fesm2022/exhaustive-ui-core-carousel.mjs +7 -2
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  22. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +7 -7
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  24. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +64 -25
  26. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +26 -3
  28. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +14 -7
  30. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-datepicker.mjs +172 -93
  32. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-dialog.mjs +29 -11
  34. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
  36. package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-drawer.mjs +22 -4
  38. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
  40. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-fileupload.mjs +24 -13
  44. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
  46. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
  48. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-image.mjs +10 -2
  50. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-inplace.mjs +1 -1
  52. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
  54. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-inputmask.mjs +29 -5
  56. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +83 -23
  58. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-inputotp.mjs +15 -3
  60. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
  62. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
  64. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-listbox.mjs +15 -4
  66. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
  68. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-menu.mjs +19 -8
  70. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-menubar.mjs +57 -13
  72. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
  74. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -25
  76. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-orderlist.mjs +17 -4
  78. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-overlay.mjs +4 -0
  80. package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
  84. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-panel.mjs +7 -9
  86. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +38 -12
  88. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-password.mjs +90 -22
  90. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-picklist.mjs +17 -10
  92. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
  94. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-progressbar.mjs +3 -3
  96. package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-radiobutton.mjs +6 -1
  98. package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-scroller.mjs +13 -3
  100. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +10 -2
  102. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-select.mjs +66 -27
  104. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +12 -6
  106. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-slider.mjs +17 -4
  108. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +8 -4
  110. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-splitter.mjs +27 -6
  112. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
  114. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-table.mjs +338 -167
  116. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
  118. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -1
  120. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +28 -13
  122. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-toast.mjs +15 -1
  124. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
  126. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
  128. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
  130. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-tree.mjs +28 -9
  132. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-treeselect.mjs +51 -4
  134. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-treetable.mjs +80 -8
  136. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
  138. package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
  139. package/package.json +5 -5
  140. package/schematics/migrations/remove-dead-inputs/migration.js +5 -4
  141. package/schematics/migrations/remove-dead-outputs/migration.js +6 -5
  142. package/schematics/utils/versions.json +8 -8
  143. package/types/exhaustive-ui-core-api.d.ts +4 -0
  144. package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
  145. package/types/exhaustive-ui-core-autofocus.d.ts +1 -1
  146. package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
  147. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  148. package/types/exhaustive-ui-core-button.d.ts +12 -1
  149. package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
  150. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  151. package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
  152. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  153. package/types/exhaustive-ui-core-datepicker.d.ts +9 -2
  154. package/types/exhaustive-ui-core-dialog.d.ts +2 -0
  155. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  156. package/types/exhaustive-ui-core-dynamicdialog.d.ts +2 -2
  157. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  158. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  159. package/types/exhaustive-ui-core-image.d.ts +6 -1
  160. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  161. package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
  162. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  163. package/types/exhaustive-ui-core-menu.d.ts +2 -0
  164. package/types/exhaustive-ui-core-menubar.d.ts +5 -0
  165. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  166. package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
  167. package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
  168. package/types/exhaustive-ui-core-paginator.d.ts +1 -0
  169. package/types/exhaustive-ui-core-panelmenu.d.ts +5 -0
  170. package/types/exhaustive-ui-core-password.d.ts +9 -1
  171. package/types/exhaustive-ui-core-picklist.d.ts +3 -3
  172. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  173. package/types/exhaustive-ui-core-select.d.ts +4 -1
  174. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  175. package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
  176. package/types/exhaustive-ui-core-splitter.d.ts +7 -1
  177. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  178. package/types/exhaustive-ui-core-table.d.ts +16 -3
  179. package/types/exhaustive-ui-core-tabs.d.ts +4 -0
  180. package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
  181. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  182. package/types/exhaustive-ui-core-tree.d.ts +2 -0
  183. package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
  184. package/types/exhaustive-ui-core-treetable.d.ts +22 -2
  185. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  186. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  187. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  188. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"exhaustive-ui-core-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/exhaustive-ui-core-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/breadcrumb';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://exhaustive-ui.com/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterEveryRender, ChangeDetectionStrategy, Component, computed, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { Router, RouterLink, RouterLinkActive, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule, TranslationKeys } from '@exhaustive-ui/core/api';\nimport { Badge } from '@exhaustive-ui/core/badge';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ChevronRightIcon, HomeIcon } from '@exhaustive-ui/core/icons';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { BreadcrumbItemClickEvent, BreadcrumbItemTemplateContext, BreadcrumbPassThrough } from '@exhaustive-ui/core/types/breadcrumb';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],\n template: `\n <nav [pBind]=\"ptm('root')\" [class]=\"cn(cx('root'), styleClass())\" [style]=\"style()\">\n <ol [class]=\"cx('list')\" [pBind]=\"ptm('list')\">\n @if (home() && home()?.visible !== false) {\n <li [attr.id]=\"home().id\" [class]=\"cn(cx('homeItem'), home().styleClass)\" [ngStyle]=\"home().style\" pTooltip [tooltipOptions]=\"home().tooltipOptions\" [pBind]=\"ptm('homeItem')\" [unstyled]=\"unstyled()\">\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: home() }\"></ng-template>\n } @else {\n @if (!home().routerLink) {\n <a\n [href]=\"home().url ? home().url : null\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n @if (home().routerLink) {\n <a\n [routerLink]=\"home().routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [queryParams]=\"home().queryParams\"\n [routerLinkActiveOptions]=\"home().routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [fragment]=\"home().fragment\"\n [queryParamsHandling]=\"home().queryParamsHandling\"\n [preserveFragment]=\"home().preserveFragment\"\n [skipLocationChange]=\"home().skipLocationChange\"\n [replaceUrl]=\"home().replaceUrl\"\n [state]=\"home().state\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (model() && home()) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n @for (menuitem of model(); track menuitem; let end = $last; let i = $index) {\n @if (menuitem.visible !== false) {\n <li\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [pBind]=\"getPTOptions(menuitem, i, 'item')\"\n [pTooltipUnstyled]=\"unstyled()\"\n >\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }\"></ng-template>\n } @else {\n @if (!menuitem?.routerLink) {\n <a\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [attr.aria-current]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (!itemTemplate() && !_itemTemplate()) {\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n }\n </a>\n }\n @if (menuitem?.routerLink) {\n <a\n [routerLink]=\"menuitem?.routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n [ariaCurrentWhenActive]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (!end && menuitem.visible !== false) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n }\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],\n hostDirectives: [Bind]\n})\nexport class Breadcrumb extends BaseComponent<BreadcrumbPassThrough> {\n componentName = 'Breadcrumb';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));\n }\n /**\n * An array of menuitems.\n * @group Props\n */\n readonly model = input<MenuItem[] | undefined>();\n /**\n * Inline style of the component.\n * @group Props\n */\n readonly style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Style class of the component.\n * @group Props\n */\n readonly styleClass = input<string | undefined>();\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n readonly home = input<MenuItem | undefined>();\n /**\n * Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label.\n * @group Props\n */\n readonly homeAriaLabel = input<string | undefined>();\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n readonly onItemClick = output<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n router = inject(Router);\n\n get homeLinkAriaLabel(): string | undefined {\n if (this.homeAriaLabel()) {\n return this.homeAriaLabel();\n }\n\n // A visible label already names the link, so an aria-label would only override it.\n return this.home()?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Custom item template.\n * @group Templates\n */\n readonly itemTemplate = contentChild<TemplateRef<BreadcrumbItemTemplateContext>>('item');\n\n /**\n * Custom separator template.\n * @group Templates\n */\n readonly separatorTemplate = contentChild<TemplateRef<void>>('separator');\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _separatorTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'separator')\n .at(-1)?.template\n );\n\n readonly _itemTemplate = computed<TemplateRef<BreadcrumbItemTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() !== 'separator')\n .at(-1)?.template\n );\n\n getPTOptions(item: MenuItem, index: number, key: string) {\n return this.ptm(key, {\n context: {\n item,\n index\n }\n });\n }\n\n isCurrentPage(index: number): boolean {\n const model = this.model();\n\n if (!model) {\n return false;\n }\n\n for (let i = model.length - 1; i >= 0; i--) {\n if (model[i]?.visible !== false) {\n return i === index;\n }\n }\n\n return false;\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class Breadc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EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAvIhB,UAAU,EAoIG,YAAY,CAAA,EAAA,OAAA,EAAA,CApIzB,UAAU,EAqIG,YAAY,CAAA,EAAA,CAAA;AAEzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;ACxVD;;AAEG;;;;"}
1
+ {"version":3,"file":"exhaustive-ui-core-breadcrumb.mjs","sources":["../../src/breadcrumb/style/breadcrumbstyle.ts","../../src/breadcrumb/breadcrumb.ts","../../src/breadcrumb/exhaustive-ui-core-breadcrumb.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { style } from '@exhaustive-ui/styles/breadcrumb';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst classes = {\n root: () => ['p-breadcrumb p-component'],\n list: 'p-breadcrumb-list',\n homeItem: 'p-breadcrumb-home-item',\n separator: 'p-breadcrumb-separator',\n item: ({ menuitem }) => ['p-breadcrumb-item', { 'p-disabled': menuitem.disabled }],\n itemLink: 'p-breadcrumb-item-link',\n itemIcon: 'p-breadcrumb-item-icon',\n itemLabel: 'p-breadcrumb-item-label'\n};\n\n@Injectable()\nexport class BreadCrumbStyle extends BaseStyle {\n name = 'breadcrumb';\n\n style = style;\n\n classes = classes;\n}\n\n/**\n *\n * Breadcrumb provides contextual information about page hierarchy.\n *\n * [Live Demo](https://exhaustive-ui.com/breadcrumb/)\n *\n * @module breadcrumbstyle\n *\n */\nexport enum BreadcrumbClasses {\n /**\n * Class name of the root element\n */\n root = 'p-breadcrumb',\n /**\n * Class name of the list element\n */\n list = 'p-breadcrumb-list',\n /**\n * Class name of the home item element\n */\n homeItem = 'p-breadcrumb-home-item',\n /**\n * Class name of the separator element\n */\n separator = 'p-breadcrumb-separator',\n /**\n * Class name of the item element\n */\n item = 'p-breadcrumb-item',\n /**\n * Class name of the item link element\n */\n itemLink = 'p-breadcrumb-item-link',\n /**\n * Class name of the item icon element\n */\n itemIcon = 'p-breadcrumb-item-icon',\n /**\n * Class name of the item label element\n */\n itemLabel = 'p-breadcrumb-item-label'\n}\n\nexport interface BreadcrumbStyle extends BaseStyle {}\n","import { CommonModule } from '@angular/common';\nimport { afterEveryRender, ChangeDetectionStrategy, Component, computed, inject, input, NgModule, TemplateRef, ViewEncapsulation, contentChild, contentChildren, output } from '@angular/core';\nimport { Router, RouterLink, RouterLinkActive, RouterModule } from '@angular/router';\nimport { MenuItem, PrimeTemplate, SharedModule, TranslationKeys } from '@exhaustive-ui/core/api';\nimport { Badge } from '@exhaustive-ui/core/badge';\nimport { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';\nimport { Bind } from '@exhaustive-ui/core/bind';\nimport { ChevronRightIcon, HomeIcon } from '@exhaustive-ui/core/icons';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { BreadcrumbItemClickEvent, BreadcrumbItemTemplateContext, BreadcrumbPassThrough } from '@exhaustive-ui/core/types/breadcrumb';\nimport { BreadCrumbStyle } from './style/breadcrumbstyle';\n\n/**\n * Breadcrumb provides contextual information about page hierarchy.\n * @group Components\n */\n@Component({\n selector: 'p-breadcrumb',\n imports: [CommonModule, RouterModule, RouterLink, RouterLinkActive, TooltipModule, ChevronRightIcon, HomeIcon, SharedModule, Bind, Badge],\n template: `\n <nav [pBind]=\"ptm('root')\" [class]=\"cn(cx('root'), styleClass())\" [style]=\"style()\" [attr.aria-label]=\"ariaLabel()\">\n <ol [class]=\"cx('list')\" [pBind]=\"ptm('list')\">\n @if (home() && home()?.visible !== false) {\n <li [attr.id]=\"home().id\" [class]=\"cn(cx('homeItem'), home().styleClass)\" [ngStyle]=\"home().style\" pTooltip [tooltipOptions]=\"home().tooltipOptions\" [pBind]=\"ptm('homeItem')\" [unstyled]=\"unstyled()\">\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: home() }\"></ng-template>\n } @else {\n @if (!home().routerLink) {\n <a\n [href]=\"home().url ? home().url : null\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n @if (home().routerLink) {\n <a\n [routerLink]=\"home().routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [attr.aria-label]=\"homeLinkAriaLabel\"\n [queryParams]=\"home().queryParams\"\n [routerLinkActiveOptions]=\"home().routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), home().linkClass)\"\n [ngStyle]=\"home().linkStyle\"\n (click)=\"onClick($event, home())\"\n [target]=\"home().target\"\n [attr.title]=\"home().title\"\n [attr.tabindex]=\"home().disabled ? null : home().tabindex || '0'\"\n [attr.data-automationid]=\"home().automationId\"\n [fragment]=\"home().fragment\"\n [queryParamsHandling]=\"home().queryParamsHandling\"\n [preserveFragment]=\"home().preserveFragment\"\n [skipLocationChange]=\"home().skipLocationChange\"\n [replaceUrl]=\"home().replaceUrl\"\n [state]=\"home().state\"\n [pBind]=\"ptm('itemLink')\"\n >\n @if (home().icon) {\n <span [class]=\"cn(cx('itemIcon'), home().icon, home().iconClass)\" [ngStyle]=\"home().iconStyle\" [pBind]=\"ptm('itemIcon')\"></span>\n }\n @if (!home().icon) {\n <svg data-p-icon=\"home\" [class]=\"cx('itemIcon')\" [pBind]=\"ptm('itemIcon')\" />\n }\n @if (home().label) {\n @if (home().escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [pBind]=\"ptm('itemLabel')\">{{ home().label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), home().labelClass)\" [ngStyle]=\"home().labelStyle\" [innerHTML]=\"home().label\" [pBind]=\"ptm('itemLabel')\"></span>\n }\n }\n @if (home().badge) {\n <p-badge [class]=\"home().badgeStyleClass\" [value]=\"home().badge\" [pt]=\"ptm('pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (model() && home()) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n @for (menuitem of model(); track $index; let end = $last; let i = $index) {\n @if (menuitem.visible !== false) {\n <li\n [class]=\"cn(cx('item', { menuitem }), menuitem.styleClass)\"\n [attr.id]=\"menuitem.id\"\n [style]=\"menuitem.style\"\n pTooltip\n [tooltipOptions]=\"menuitem.tooltipOptions\"\n [pBind]=\"getPTOptions(menuitem, i, 'item')\"\n [pTooltipUnstyled]=\"unstyled()\"\n >\n @if (itemTemplate() || _itemTemplate()) {\n <ng-template *ngTemplateOutlet=\"itemTemplate() || _itemTemplate(); context: { $implicit: menuitem }\"></ng-template>\n } @else {\n @if (!menuitem?.routerLink) {\n <a\n [attr.href]=\"menuitem?.url ? menuitem?.url : null\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [attr.aria-current]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (!itemTemplate() && !_itemTemplate()) {\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n }\n </a>\n }\n @if (menuitem?.routerLink) {\n <a\n [routerLink]=\"menuitem?.routerLink\"\n routerLinkActive=\"p-menuitem-link-active\"\n [queryParams]=\"menuitem?.queryParams\"\n [routerLinkActiveOptions]=\"menuitem?.routerLinkActiveOptions || { exact: false }\"\n [class]=\"cn(cx('itemLink'), menuitem?.linkClass)\"\n [ngStyle]=\"menuitem?.linkStyle\"\n (click)=\"onClick($event, menuitem)\"\n [target]=\"menuitem?.target\"\n [attr.title]=\"menuitem?.title\"\n [attr.tabindex]=\"menuitem?.disabled ? null : menuitem?.tabindex || '0'\"\n [attr.data-automationid]=\"menuitem?.automationId\"\n [fragment]=\"menuitem?.fragment\"\n [queryParamsHandling]=\"menuitem?.queryParamsHandling\"\n [preserveFragment]=\"menuitem?.preserveFragment\"\n [skipLocationChange]=\"menuitem?.skipLocationChange\"\n [replaceUrl]=\"menuitem?.replaceUrl\"\n [state]=\"menuitem?.state\"\n [ariaCurrentWhenActive]=\"isCurrentPage(i) ? 'page' : undefined\"\n [pBind]=\"getPTOptions(menuitem, i, 'itemLink')\"\n >\n @if (menuitem?.icon) {\n <span [class]=\"cn(cx('itemIcon'), menuitem?.icon, menuitem?.iconClass)\" [ngStyle]=\"menuitem?.iconStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemIcon')\"></span>\n }\n @if (menuitem?.label) {\n @if (menuitem?.escape !== false) {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\">{{ menuitem?.label }}</span>\n } @else {\n <span [class]=\"cn(cx('itemLabel'), menuitem?.labelClass)\" [ngStyle]=\"menuitem?.labelStyle\" [innerHTML]=\"menuitem?.label\" [pBind]=\"getPTOptions(menuitem, i, 'itemLabel')\"></span>\n }\n }\n @if (menuitem?.badge) {\n <p-badge [class]=\"menuitem?.badgeStyleClass\" [value]=\"menuitem?.badge\" [pt]=\"getPTOptions(menuitem, i, 'pcBadge')\" [unstyled]=\"unstyled()\" />\n }\n </a>\n }\n }\n </li>\n }\n @if (!end && menuitem.visible !== false) {\n <li [class]=\"cx('separator')\" [pBind]=\"ptm('separator')\" aria-hidden=\"true\">\n @if (!separatorTemplate() && !_separatorTemplate()) {\n <svg data-p-icon=\"chevron-right\" [pBind]=\"ptm('separatorIcon')\" />\n }\n <ng-template *ngTemplateOutlet=\"separatorTemplate() || _separatorTemplate()\"></ng-template>\n </li>\n }\n }\n </ol>\n </nav>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [BreadCrumbStyle, { provide: PARENT_INSTANCE, useExisting: Breadcrumb }],\n hostDirectives: [Bind]\n})\nexport class Breadcrumb extends BaseComponent<BreadcrumbPassThrough> {\n componentName = 'Breadcrumb';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));\n }\n /**\n * An array of menuitems.\n * @group Props\n */\n readonly model = input<MenuItem[] | undefined>();\n /**\n * Inline style of the component.\n * @group Props\n */\n readonly style = input<{ [klass: string]: any } | null | undefined>();\n /**\n * Style class of the component.\n * @group Props\n */\n readonly styleClass = input<string | undefined>();\n /**\n * MenuItem configuration for the home icon.\n * @group Props\n */\n readonly home = input<MenuItem | undefined>();\n /**\n * Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label.\n * @group Props\n */\n readonly homeAriaLabel = input<string | undefined>();\n /**\n * Defines a string that labels the nav landmark for accessibility. Give each breadcrumb on a page a distinct label.\n * @defaultValue 'Breadcrumb'\n * @group Props\n */\n readonly ariaLabel = input<string | undefined>('Breadcrumb');\n /**\n * Fired when an item is selected.\n * @param {BreadcrumbItemClickEvent} event - custom click event.\n * @group Emits\n */\n readonly onItemClick = output<BreadcrumbItemClickEvent>();\n\n _componentStyle = inject(BreadCrumbStyle);\n\n router = inject(Router);\n\n get homeLinkAriaLabel(): string | undefined {\n if (this.homeAriaLabel()) {\n return this.homeAriaLabel();\n }\n\n // A visible label already names the link, so an aria-label would only override it.\n return this.home()?.label ? undefined : this.config.getTranslation(TranslationKeys.ARIA)?.home;\n }\n\n onClick(event: MouseEvent, item: MenuItem) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url && !item.routerLink) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n this.onItemClick.emit({\n originalEvent: event,\n item: item\n });\n }\n\n /**\n * Custom item template.\n * @group Templates\n */\n readonly itemTemplate = contentChild<TemplateRef<BreadcrumbItemTemplateContext>>('item');\n\n /**\n * Custom separator template.\n * @group Templates\n */\n readonly separatorTemplate = contentChild<TemplateRef<void>>('separator');\n\n readonly templates = contentChildren(PrimeTemplate);\n\n readonly _separatorTemplate = computed<TemplateRef<void> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() === 'separator')\n .at(-1)?.template\n );\n\n readonly _itemTemplate = computed<TemplateRef<BreadcrumbItemTemplateContext> | undefined>(\n () =>\n this.templates()\n .filter((item) => item.getType() !== 'separator')\n .at(-1)?.template\n );\n\n getPTOptions(item: MenuItem, index: number, key: string) {\n return this.ptm(key, {\n context: {\n item,\n index\n }\n });\n }\n\n isCurrentPage(index: number): boolean {\n const model = this.model();\n\n if (!model) {\n return false;\n }\n\n for (let i = model.length - 1; i >= 0; i--) {\n if (model[i]?.visible !== false) {\n return i === index;\n }\n }\n\n return false;\n }\n}\n\n@NgModule({\n imports: [Breadcrumb, SharedModule],\n exports: [Breadcrumb, SharedModule]\n})\nexport class BreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAIA,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE,MAAM,CAAC,0BAA0B,CAAC;AACxC,IAAA,IAAI,EAAE,mBAAmB;AACzB,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE,wBAAwB;AACnC,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,mBAAmB,EAAE,EAAE,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC;AAClF,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,QAAQ,EAAE,wBAAwB;AAClC,IAAA,SAAS,EAAE;CACd;AAGK,MAAO,eAAgB,SAAQ,SAAS,CAAA;IAC1C,IAAI,GAAG,YAAY;IAEnB,KAAK,GAAG,KAAK;IAEb,OAAO,GAAG,OAAO;uGALR,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAf,eAAe,EAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,cAAqB;AACrB;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,mBAA0B;AAC1B;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,wBAAmC;AACnC;;AAEG;AACH,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,wBAAoC;AACpC;;AAEG;AACH,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,mBAA0B;AAC1B;;AAEG;AACH,IAAA,iBAAA,CAAA,UAAA,CAAA,G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CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YA7IhB,UAAU,EA0IG,YAAY,CAAA,EAAA,OAAA,EAAA,CA1IzB,UAAU,EA2IG,YAAY,CAAA,EAAA,CAAA;AAEzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,OAAA,EAAA,CAHf,UAAU,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEzB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY;AACrC,iBAAA;;;AC9VD;;AAEG;;;;"}
@@ -41,10 +41,10 @@ const classes = {
41
41
  'p-button-icon',
42
42
  {
43
43
  [`p-button-icon-${instance.iconPos() || instance.buttonProps()?.iconPos}`]: instance.label() || instance.buttonProps()?.label,
44
- 'p-button-icon-left': ((instance.iconPos() === 'left' || instance.buttonProps()?.iconPos === 'left') && instance.label()) || instance.buttonProps()?.label,
45
- 'p-button-icon-right': ((instance.iconPos() === 'right' || instance.buttonProps()?.iconPos === 'right') && instance.label()) || instance.buttonProps()?.label,
46
- 'p-button-icon-top': ((instance.iconPos() === 'top' || instance.buttonProps()?.iconPos === 'top') && instance.label()) || instance.buttonProps()?.label,
47
- 'p-button-icon-bottom': ((instance.iconPos() === 'bottom' || instance.buttonProps()?.iconPos === 'bottom') && instance.label()) || instance.buttonProps()?.label
44
+ 'p-button-icon-left': (instance.iconPos() === 'left' || instance.buttonProps()?.iconPos === 'left') && (instance.label() || instance.buttonProps()?.label),
45
+ 'p-button-icon-right': (instance.iconPos() === 'right' || instance.buttonProps()?.iconPos === 'right') && (instance.label() || instance.buttonProps()?.label),
46
+ 'p-button-icon-top': (instance.iconPos() === 'top' || instance.buttonProps()?.iconPos === 'top') && (instance.label() || instance.buttonProps()?.label),
47
+ 'p-button-icon-bottom': (instance.iconPos() === 'bottom' || instance.buttonProps()?.iconPos === 'bottom') && (instance.label() || instance.buttonProps()?.label)
48
48
  },
49
49
  instance.icon(),
50
50
  instance.buttonProps()?.icon
@@ -297,7 +297,10 @@ class ButtonDirective extends BaseComponent {
297
297
  });
298
298
  });
299
299
  afterNextRender(() => {
300
- !this.$unstyled() && addClass(this.htmlElement, this.getStyleClass().join(' '));
300
+ if (!this.$unstyled()) {
301
+ this._appliedClasses = this.getStyleClass();
302
+ addClass(this.htmlElement, this._appliedClasses.join(' '));
303
+ }
301
304
  this.createIcon();
302
305
  this.createLabel();
303
306
  this.initialized.set(true);
@@ -373,6 +376,7 @@ class ButtonDirective extends BaseComponent {
373
376
  return this.el.nativeElement;
374
377
  }
375
378
  _internalClasses = Object.values(INTERNAL_BUTTON_CLASSES);
379
+ _appliedClasses = [];
376
380
  pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
377
381
  isTextButton = computed(() => !!(!this.iconSignal() && this.labelSignal() && this.text()), /* @ts-ignore */
378
382
  ...(ngDevMode ? [{ debugName: "isTextButton" }] : /* istanbul ignore next */ []));
@@ -473,8 +477,10 @@ class ButtonDirective extends BaseComponent {
473
477
  setStyleClass() {
474
478
  const styleClass = this.getStyleClass();
475
479
  this.removeExistingSeverityClass();
476
- this.htmlElement.classList.remove(...this._internalClasses);
480
+ // also drop the variant classes (outlined, text, raised, size...) applied by the previous call
481
+ this.htmlElement.classList.remove(...this._internalClasses, ...this._appliedClasses);
477
482
  this.htmlElement.classList.add(...styleClass);
483
+ this._appliedClasses = styleClass;
478
484
  }
479
485
  removeExistingSeverityClass() {
480
486
  const severityArray = ['success', 'info', 'warn', 'danger', 'help', 'primary', 'secondary', 'contrast'];
@@ -657,6 +663,18 @@ class Button extends BaseComponent {
657
663
  */
658
664
  ariaLabel = input(/* @ts-ignore */
659
665
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
666
+ /**
667
+ * Value of the aria-expanded attribute of the button, for a button that shows or hides an element.
668
+ * @group Props
669
+ */
670
+ ariaExpanded = input(/* @ts-ignore */
671
+ ...(ngDevMode ? [undefined, { debugName: "ariaExpanded" }] : /* istanbul ignore next */ []));
672
+ /**
673
+ * Id of the element the button controls, set as its aria-controls attribute.
674
+ * @group Props
675
+ */
676
+ ariaControls = input(/* @ts-ignore */
677
+ ...(ngDevMode ? [undefined, { debugName: "ariaControls" }] : /* istanbul ignore next */ []));
660
678
  /**
661
679
  * When present, it specifies that the component should automatically get focus on load.
662
680
  * @group Props
@@ -791,10 +809,12 @@ class Button extends BaseComponent {
791
809
  }), /* @ts-ignore */
792
810
  ...(ngDevMode ? [{ debugName: "dataLabelP" }] : /* istanbul ignore next */ []));
793
811
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
794
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Button, isStandalone: true, selector: "p-button", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
812
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Button, isStandalone: true, selector: "p-button", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, badgeSeverity: { classPropertyName: "badgeSeverity", publicName: "badgeSeverity", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaExpanded: { classPropertyName: "ariaExpanded", publicName: "ariaExpanded", isSignal: true, isRequired: false, transformFunction: null }, ariaControls: { classPropertyName: "ariaControls", publicName: "ariaControls", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur" }, providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"], descendants: true, isSignal: true }, { propertyName: "iconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
795
813
  <button
796
814
  [attr.type]="type() || buttonProps()?.type"
797
815
  [attr.aria-label]="ariaLabel() || buttonProps()?.ariaLabel"
816
+ [attr.aria-expanded]="ariaExpanded()"
817
+ [attr.aria-controls]="ariaControls()"
798
818
  [ngStyle]="style() || buttonProps()?.style"
799
819
  [disabled]="disabled() || loading() || buttonProps()?.disabled"
800
820
  [class]="cn(cx('root'), styleClass(), buttonProps()?.styleClass)"
@@ -850,6 +870,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
850
870
  <button
851
871
  [attr.type]="type() || buttonProps()?.type"
852
872
  [attr.aria-label]="ariaLabel() || buttonProps()?.ariaLabel"
873
+ [attr.aria-expanded]="ariaExpanded()"
874
+ [attr.aria-controls]="ariaControls()"
853
875
  [ngStyle]="style() || buttonProps()?.style"
854
876
  [disabled]="disabled() || loading() || buttonProps()?.disabled"
855
877
  [class]="cn(cx('root'), styleClass(), buttonProps()?.styleClass)"
@@ -900,7 +922,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
900
922
  providers: [ButtonStyle, { provide: BUTTON_INSTANCE, useExisting: Button }, { provide: PARENT_INSTANCE, useExisting: Button }],
901
923
  hostDirectives: [Bind]
902
924
  }]
903
- }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
925
+ }], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], badgeSeverity: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeSeverity", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaExpanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaExpanded", required: false }] }], ariaControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaControls", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIcon", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], loadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingicon', { isSignal: true }] }], iconTemplate: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
904
926
  class ButtonModule {
905
927
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
906
928
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ButtonModule, imports: [CommonModule, ButtonDirective, Button, SharedModule, ButtonLabel, ButtonIcon], exports: [ButtonDirective, Button, ButtonLabel, ButtonIcon, SharedModule] });