@eui/ecl 22.0.0-alpha.69 → 22.0.0-alpha.70

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 (244) hide show
  1. package/docs/changelog.html +10 -0
  2. package/docs/classes/EclDomEvent.html +2 -0
  3. package/docs/classes/EclGalleryMediaSource.html +2 -2
  4. package/docs/classes/EclGalleryMediaTrack.html +4 -4
  5. package/docs/classes/EclGalleryPictureImage.html +3 -3
  6. package/docs/classes/EclGalleryPictureSource.html +2 -2
  7. package/docs/classes/EclLanguageService.html +1 -1
  8. package/docs/classes/EclMenuItemCaretEvent.html +16 -12
  9. package/docs/classes/EclMenuItemFocusEvent.html +16 -12
  10. package/docs/classes/EclMenuItemHoverEvent.html +16 -12
  11. package/docs/classes/EclMenuItemHoverOutEvent.html +16 -12
  12. package/docs/classes/EclMenuItemKeydownEvent.html +16 -12
  13. package/docs/classes/EclMenuItemSelectEvent.html +16 -12
  14. package/docs/classes/EclSortTableEvent.html +3 -3
  15. package/docs/components/EclBlockquoteComponent.html +0 -5
  16. package/docs/components/EclBreadcrumbComponent.html +1 -6
  17. package/docs/components/EclBreadcrumbSegmentComponent.html +1 -1
  18. package/docs/components/EclCategoryFilterComponent.html +0 -5
  19. package/docs/components/EclCategoryFilterItemComponent.html +1 -6
  20. package/docs/components/EclDateBlockComponent.html +2 -27
  21. package/docs/components/EclExpandableComponent.html +0 -10
  22. package/docs/components/EclFeaturedComponent.html +0 -5
  23. package/docs/components/EclGalleryFooterComponent.html +1 -6
  24. package/docs/components/EclGalleryItemComponent.html +2 -37
  25. package/docs/components/EclIconComponent.html +0 -15
  26. package/docs/components/EclInpageNavigationComponent.html +5 -15
  27. package/docs/components/EclInpageNavigationItemComponent.html +2 -12
  28. package/docs/components/EclMegaMenuComponent.html +2 -2
  29. package/docs/components/EclMegaMenuFeaturedComponent.html +0 -10
  30. package/docs/components/EclMegaMenuInfoComponent.html +0 -10
  31. package/docs/components/EclMegaMenuItemComponent.html +2 -12
  32. package/docs/components/EclMegaMenuSubitemComponent.html +2 -17
  33. package/docs/components/EclMenuItemComponent.html +4 -24
  34. package/docs/components/EclMenuMegaItemComponent.html +2 -17
  35. package/docs/components/EclModalHeaderComponent.html +1 -1
  36. package/docs/components/EclMultiselectComponent.html +3 -18
  37. package/docs/components/EclMultiselectDropdownComponent.html +1 -1
  38. package/docs/components/EclMultiselectInputComponent.html +3 -18
  39. package/docs/components/EclMultiselectOptgroupComponent.html +0 -5
  40. package/docs/components/EclNewsTickerComponent.html +1 -1
  41. package/docs/components/EclNewsTickerItemComponent.html +1 -1
  42. package/docs/components/EclNotificationComponent.html +0 -5
  43. package/docs/components/EclPaginationComponent.html +4 -4
  44. package/docs/components/EclPaginationItemComponent.html +3 -13
  45. package/docs/components/EclRatingFieldComponent.html +1 -1
  46. package/docs/components/EclSearchFormComponent.html +3 -13
  47. package/docs/components/EclSelectContainerComponent.html +4 -4
  48. package/docs/components/EclSiteFooterCoownerComponent.html +1 -1
  49. package/docs/components/EclSiteFooterCoreComponent.html +0 -5
  50. package/docs/components/EclSiteFooterFeedbackComponent.html +1 -1
  51. package/docs/components/EclSiteFooterFixedContentEUComponent.html +0 -10
  52. package/docs/components/EclSiteFooterRowCommonComponent.html +0 -5
  53. package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +0 -30
  54. package/docs/components/EclSiteHeaderSearchComponent.html +0 -10
  55. package/docs/components/EclSocialMediaFollowComponent.html +0 -5
  56. package/docs/components/EclSocialMediaFollowItemComponent.html +1 -6
  57. package/docs/components/EclSplashPageLanguageLinkComponent.html +1 -1
  58. package/docs/components/EclStickyContainerComponent.html +2 -2
  59. package/docs/components/EclTagComponent.html +0 -5
  60. package/docs/components/EclTimelineItemComponent.html +0 -5
  61. package/docs/directives/ECLClickOutsideDirective.html +2 -2
  62. package/docs/directives/EclFileUploadDirective.html +0 -5
  63. package/docs/directives/EclGalleryMediaDirective.html +0 -5
  64. package/docs/directives/EclMediaContainerItemDirective.html +0 -5
  65. package/docs/directives/EclModalCloseDirective.html +6 -0
  66. package/docs/directives/EclMultiselectOptionDirective.html +0 -10
  67. package/docs/directives/EclSelectDirective.html +0 -5
  68. package/docs/directives/EclSiteHeaderCustomActionLinkDirective.html +1 -1
  69. package/docs/directives/EclTableHeaderDirective.html +1 -6
  70. package/docs/interfaces/EclGalleryItem.html +6 -6
  71. package/docs/interfaces/EclMenuItem.html +4 -4
  72. package/docs/js/search/search_index.js +2 -2
  73. package/docs/json/EclBreadcrumbComponent.md +1 -1
  74. package/docs/json/EclBreadcrumbSegmentComponent.md +1 -1
  75. package/docs/json/EclCategoryFilterItemComponent.md +1 -1
  76. package/docs/json/EclDateBlockComponent.md +2 -2
  77. package/docs/json/EclInpageNavigationItemComponent.md +2 -2
  78. package/docs/json/EclMegaMenuItemComponent.md +2 -2
  79. package/docs/json/EclMegaMenuSubitemComponent.md +2 -2
  80. package/docs/json/EclMenuItemComponent.md +2 -2
  81. package/docs/json/EclMenuMegaItemComponent.md +2 -2
  82. package/docs/json/EclModalCloseDirective.md +1 -1
  83. package/docs/json/EclMultiselectComponent.md +3 -3
  84. package/docs/json/EclMultiselectInputComponent.md +3 -3
  85. package/docs/json/EclPaginationItemComponent.md +2 -2
  86. package/docs/json/EclSearchFormComponent.md +2 -2
  87. package/docs/json/EclSelectContainerComponent.md +4 -4
  88. package/docs/json/EclSiteFooterCoownerComponent.md +1 -1
  89. package/docs/json/EclSiteFooterFeedbackComponent.md +1 -1
  90. package/docs/json/EclSocialMediaFollowItemComponent.md +1 -1
  91. package/docs/json/EclStickyContainerComponent.md +2 -2
  92. package/docs/json/EclTableHeaderDirective.md +1 -1
  93. package/docs/json/documentation.json +752 -813
  94. package/docs/llms.txt +150 -150
  95. package/docs/miscellaneous/functions.html +1 -5
  96. package/docs/properties.html +1 -1
  97. package/fesm2022/eui-ecl-components-ecl-banner.mjs +6 -5
  98. package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
  99. package/fesm2022/eui-ecl-components-ecl-blockquote.mjs +1 -1
  100. package/fesm2022/eui-ecl-components-ecl-blockquote.mjs.map +1 -1
  101. package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs +11 -6
  102. package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs.map +1 -1
  103. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs +4 -3
  104. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs.map +1 -1
  105. package/fesm2022/eui-ecl-components-ecl-date-block.mjs +7 -7
  106. package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
  107. package/fesm2022/eui-ecl-components-ecl-expandable.mjs +2 -2
  108. package/fesm2022/eui-ecl-components-ecl-expandable.mjs.map +1 -1
  109. package/fesm2022/eui-ecl-components-ecl-featured.mjs +3 -2
  110. package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
  111. package/fesm2022/eui-ecl-components-ecl-file-upload.mjs +5 -5
  112. package/fesm2022/eui-ecl-components-ecl-file-upload.mjs.map +1 -1
  113. package/fesm2022/eui-ecl-components-ecl-gallery.mjs +23 -15
  114. package/fesm2022/eui-ecl-components-ecl-gallery.mjs.map +1 -1
  115. package/fesm2022/eui-ecl-components-ecl-icon.mjs +3 -3
  116. package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
  117. package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs +13 -12
  118. package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs.map +1 -1
  119. package/fesm2022/eui-ecl-components-ecl-media-container.mjs +7 -6
  120. package/fesm2022/eui-ecl-components-ecl-media-container.mjs.map +1 -1
  121. package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs +26 -26
  122. package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
  123. package/fesm2022/eui-ecl-components-ecl-menu.mjs +20 -23
  124. package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
  125. package/fesm2022/eui-ecl-components-ecl-modal.mjs +12 -8
  126. package/fesm2022/eui-ecl-components-ecl-modal.mjs.map +1 -1
  127. package/fesm2022/eui-ecl-components-ecl-multiselect.mjs +12 -12
  128. package/fesm2022/eui-ecl-components-ecl-multiselect.mjs.map +1 -1
  129. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs +13 -8
  130. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs.map +1 -1
  131. package/fesm2022/eui-ecl-components-ecl-notification.mjs +1 -1
  132. package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
  133. package/fesm2022/eui-ecl-components-ecl-pagination.mjs +13 -9
  134. package/fesm2022/eui-ecl-components-ecl-pagination.mjs.map +1 -1
  135. package/fesm2022/eui-ecl-components-ecl-popover.mjs +0 -1
  136. package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
  137. package/fesm2022/eui-ecl-components-ecl-quiz.mjs +4 -4
  138. package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
  139. package/fesm2022/eui-ecl-components-ecl-radio.mjs +1 -1
  140. package/fesm2022/eui-ecl-components-ecl-radio.mjs.map +1 -1
  141. package/fesm2022/eui-ecl-components-ecl-range.mjs +2 -2
  142. package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
  143. package/fesm2022/eui-ecl-components-ecl-rating-field.mjs.map +1 -1
  144. package/fesm2022/eui-ecl-components-ecl-search-form.mjs +4 -4
  145. package/fesm2022/eui-ecl-components-ecl-search-form.mjs.map +1 -1
  146. package/fesm2022/eui-ecl-components-ecl-select.mjs +2 -2
  147. package/fesm2022/eui-ecl-components-ecl-select.mjs.map +1 -1
  148. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +5 -5
  149. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
  150. package/fesm2022/eui-ecl-components-ecl-site-header.mjs +40 -27
  151. package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
  152. package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs +2 -2
  153. package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs.map +1 -1
  154. package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs +2 -2
  155. package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs.map +1 -1
  156. package/fesm2022/eui-ecl-components-ecl-splash-page.mjs.map +1 -1
  157. package/fesm2022/eui-ecl-components-ecl-spotlight.mjs +5 -3
  158. package/fesm2022/eui-ecl-components-ecl-spotlight.mjs.map +1 -1
  159. package/fesm2022/eui-ecl-components-ecl-sticky-container.mjs.map +1 -1
  160. package/fesm2022/eui-ecl-components-ecl-story-card.mjs +1 -1
  161. package/fesm2022/eui-ecl-components-ecl-story-card.mjs.map +1 -1
  162. package/fesm2022/eui-ecl-components-ecl-table.mjs +2 -2
  163. package/fesm2022/eui-ecl-components-ecl-table.mjs.map +1 -1
  164. package/fesm2022/eui-ecl-components-ecl-tabs.mjs +6 -4
  165. package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
  166. package/fesm2022/eui-ecl-components-ecl-tag.mjs +2 -2
  167. package/fesm2022/eui-ecl-components-ecl-tag.mjs.map +1 -1
  168. package/fesm2022/eui-ecl-components-ecl-text-area.mjs +1 -1
  169. package/fesm2022/eui-ecl-components-ecl-text-area.mjs.map +1 -1
  170. package/fesm2022/eui-ecl-components-ecl-timeline.mjs +1 -1
  171. package/fesm2022/eui-ecl-components-ecl-timeline.mjs.map +1 -1
  172. package/fesm2022/eui-ecl-components-ecl-tooltip.mjs +1 -1
  173. package/fesm2022/eui-ecl-components-ecl-tooltip.mjs.map +1 -1
  174. package/fesm2022/eui-ecl-core.mjs +7 -3
  175. package/fesm2022/eui-ecl-core.mjs.map +1 -1
  176. package/package.json +1 -1
  177. package/types/eui-ecl-components-ecl-add-to-calendar.d.ts +4 -4
  178. package/types/eui-ecl-components-ecl-animated-numbers.d.ts +7 -7
  179. package/types/eui-ecl-components-ecl-app.d.ts +3 -3
  180. package/types/eui-ecl-components-ecl-banner.d.ts +9 -9
  181. package/types/eui-ecl-components-ecl-banner.d.ts.map +1 -1
  182. package/types/eui-ecl-components-ecl-blockquote.d.ts +2 -2
  183. package/types/eui-ecl-components-ecl-breadcrumb.d.ts +7 -7
  184. package/types/eui-ecl-components-ecl-breadcrumb.d.ts.map +1 -1
  185. package/types/eui-ecl-components-ecl-button.d.ts +1 -1
  186. package/types/eui-ecl-components-ecl-carousel.d.ts +5 -5
  187. package/types/eui-ecl-components-ecl-category-filter.d.ts +6 -6
  188. package/types/eui-ecl-components-ecl-checkbox.d.ts +1 -1
  189. package/types/eui-ecl-components-ecl-content-block.d.ts +1 -1
  190. package/types/eui-ecl-components-ecl-date-block.d.ts +8 -8
  191. package/types/eui-ecl-components-ecl-date-picker.d.ts +1 -1
  192. package/types/eui-ecl-components-ecl-expandable.d.ts +3 -3
  193. package/types/eui-ecl-components-ecl-fact-figures.d.ts +3 -3
  194. package/types/eui-ecl-components-ecl-featured.d.ts +7 -7
  195. package/types/eui-ecl-components-ecl-file-upload.d.ts +4 -4
  196. package/types/eui-ecl-components-ecl-file.d.ts +15 -15
  197. package/types/eui-ecl-components-ecl-gallery.d.ts +36 -36
  198. package/types/eui-ecl-components-ecl-gallery.d.ts.map +1 -1
  199. package/types/eui-ecl-components-ecl-icon.d.ts +9 -9
  200. package/types/eui-ecl-components-ecl-inpage-navigation.d.ts +15 -15
  201. package/types/eui-ecl-components-ecl-layout-wrapper.d.ts +1 -1
  202. package/types/eui-ecl-components-ecl-link.d.ts +2 -2
  203. package/types/eui-ecl-components-ecl-list-illustration.d.ts +3 -3
  204. package/types/eui-ecl-components-ecl-list.d.ts +2 -2
  205. package/types/eui-ecl-components-ecl-media-container.d.ts +10 -10
  206. package/types/eui-ecl-components-ecl-media-container.d.ts.map +1 -1
  207. package/types/eui-ecl-components-ecl-mega-menu.d.ts +36 -36
  208. package/types/eui-ecl-components-ecl-mega-menu.d.ts.map +1 -1
  209. package/types/eui-ecl-components-ecl-menu.d.ts +36 -42
  210. package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
  211. package/types/eui-ecl-components-ecl-modal.d.ts +9 -8
  212. package/types/eui-ecl-components-ecl-modal.d.ts.map +1 -1
  213. package/types/eui-ecl-components-ecl-multiselect.d.ts +21 -21
  214. package/types/eui-ecl-components-ecl-news-ticker.d.ts +10 -10
  215. package/types/eui-ecl-components-ecl-news-ticker.d.ts.map +1 -1
  216. package/types/eui-ecl-components-ecl-notification.d.ts +2 -2
  217. package/types/eui-ecl-components-ecl-page-header.d.ts +2 -2
  218. package/types/eui-ecl-components-ecl-page-summary.d.ts +2 -2
  219. package/types/eui-ecl-components-ecl-pagination.d.ts +12 -11
  220. package/types/eui-ecl-components-ecl-pagination.d.ts.map +1 -1
  221. package/types/eui-ecl-components-ecl-popover.d.ts +3 -3
  222. package/types/eui-ecl-components-ecl-quiz.d.ts +3 -3
  223. package/types/eui-ecl-components-ecl-radio.d.ts +2 -2
  224. package/types/eui-ecl-components-ecl-range.d.ts +3 -3
  225. package/types/eui-ecl-components-ecl-rating-field.d.ts +2 -2
  226. package/types/eui-ecl-components-ecl-search-form.d.ts +4 -4
  227. package/types/eui-ecl-components-ecl-select.d.ts +5 -5
  228. package/types/eui-ecl-components-ecl-site-footer.d.ts +7 -7
  229. package/types/eui-ecl-components-ecl-site-header.d.ts +32 -32
  230. package/types/eui-ecl-components-ecl-site-header.d.ts.map +1 -1
  231. package/types/eui-ecl-components-ecl-slogan-ticker.d.ts +4 -4
  232. package/types/eui-ecl-components-ecl-social-media-follow.d.ts +5 -5
  233. package/types/eui-ecl-components-ecl-splash-page.d.ts +4 -4
  234. package/types/eui-ecl-components-ecl-spotlight.d.ts +2 -2
  235. package/types/eui-ecl-components-ecl-sticky-container.d.ts +2 -2
  236. package/types/eui-ecl-components-ecl-story-card.d.ts +2 -2
  237. package/types/eui-ecl-components-ecl-table.d.ts +13 -13
  238. package/types/eui-ecl-components-ecl-tabs.d.ts +4 -4
  239. package/types/eui-ecl-components-ecl-tabs.d.ts.map +1 -1
  240. package/types/eui-ecl-components-ecl-tag.d.ts +1 -1
  241. package/types/eui-ecl-components-ecl-text-input.d.ts +1 -1
  242. package/types/eui-ecl-components-ecl-timeline.d.ts +1 -1
  243. package/types/eui-ecl-core.d.ts +7 -7
  244. package/types/eui-ecl-core.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-tabs.mjs","names":["i1"],"sources":["../../components/ecl-tabs/ecl-tab-label.component.ts","../../components/ecl-tabs/ecl-tab-label.component.html","../../components/ecl-tabs/events/ecl-tab-select.event.ts","../../components/ecl-tabs/ecl-tab.component.ts","../../components/ecl-tabs/ecl-tab.component.html","../../components/ecl-tabs/ecl-tabs.component.ts","../../components/ecl-tabs/ecl-tabs.component.html","../../components/ecl-tabs/index.ts"],"sourcesContent":["import { Component, ElementRef, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing a tab label within ECL Tabs.\n * Used as a container for the tab's visual label content.\n */\n@Component({\n selector: 'ecl-tab-label',\n templateUrl: './ecl-tab-label.component.html',\n})\nexport class EclTabLabelComponent extends ECLBaseDirective {\n el = inject(ElementRef);\n}\n","<ng-content></ng-content>\n","import { EclBaseEvent } from '@eui/ecl/core';\nimport { EclTabComponent } from '../ecl-tab.component';\n\n/**\n * Event emitted when a tab is selected.\n *\n * Contains a reference to the selected tab instance.\n */\nexport class EclTabSelectEvent extends EclBaseEvent {\n /**\n * The tab instance that has been selected.\n */\n constructor(public tab: EclTabComponent) {\n super();\n }\n}\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n model,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective, EUI_ECL_LINK } from '@eui/ecl/components/ecl-link';\nimport { EclTabLabelComponent } from './ecl-tab-label.component';\nimport { EclTabSelectEvent } from './events/ecl-tab-select.event';\n\n/**\n * Single tab item within the ECL Tabs component.\n * Projects a label via `ecl-tab-label` and panel content via an `#content` template ref.\n * Manages its own active/hidden state and emits events for selection and keyboard interaction.\n *\n * - Selector: `div[eclTab]`.\n * - `isActive` initialises the tab as the selected tab; managed reactively via the `_isActive` signal.\n * - `isHidden` hides the tab from the main bar (used by `EclTabsComponent` to build the \"More\" dropdown).\n * - `id` sets the tab's HTML id; auto-generated when omitted.\n * - Emits `selectTab` on click, `keydownTab` on keyboard events.\n */\n@Component({\n selector: 'div[eclTab]',\n host: {\n '[attr.id]': 'id()',\n '[class]': 'cssClasses()',\n '[class.ecl-tabs__item--hidden]': 'isHidden()',\n },\n templateUrl: './ecl-tab.component.html',\n imports: [...EUI_ECL_LINK],\n})\nexport class EclTabComponent extends ECLBaseDirective implements AfterViewInit {\n /**\n * Unique identifier for the tab.\n */\n readonly id = input<string>();\n\n /**\n * Extra classes to be added to the anchor tag.\n */\n readonly anchorExtraClasses = input<string>();\n\n /**\n * Hides the tab when true by applying the `ecl-tabs__item--hidden` CSS class.\n */\n readonly isHidden = model(false);\n\n /**\n * Marks the tab as active.\n */\n readonly isActive = input(false, { transform: booleanAttribute });\n readonly _isActive = signal(false);\n\n /**\n * Emits when the tab is selected via click.\n */\n readonly selectTab = output<EclTabSelectEvent>();\n\n /**\n * Emits when a keydown event occurs on the tab.\n */\n readonly keydownTab = output<Event>();\n\n /**\n * Reference to the tab content template.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly contentTemplate = viewChild<TemplateRef<any>>('content');\n\n /**\n * Contains the inner HTML of the tab label.\n */\n tabLabel = '';\n\n /**\n * The computed id used across the tab's DOM hooks.\n */\n readonly finalId = computed(() => this.id() ?? this.generatedId());\n\n /**\n * The tab index value for the tab's link.\n */\n protected readonly hrefTabindex = computed(() => this._isActive() ? 0 : -1);\n\n /**\n * CSS classes applied to the host element, bound via the `host` metadata (`[class]`).\n * Reactive to the base `class` model signal.\n */\n protected readonly cssClasses = computed(() => this.getCssClasses('ecl-tabs__item'));\n\n protected readonly linkId = computed(() => `${this.finalId()}-link`);\n\n protected readonly ariaControls = computed(() => `${this.finalId()}-tabpanel`);\n\n private readonly link = viewChild(EclLinkDirective);\n\n private readonly label = contentChild(EclTabLabelComponent);\n\n private readonly generatedId = signal(crypto.randomUUID());\n\n private readonly elementRef = inject(ElementRef);\n\n private isFirstCall = true;\n\n private width: number;\n\n constructor() {\n super();\n effect(() => {\n this._isActive.set(this.isActive());\n });\n }\n\n /**\n * Returns the host HTML element of the tab component.\n */\n get hostElement(): HTMLElement {\n return this.elementRef?.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.tabLabel = this.label().el.nativeElement.innerHTML;\n // this._isActive.set(this.isActive());\n }\n\n /**\n * Returns the inner HTML content of the tab label.\n */\n getTabLabel(): string {\n return this.label().el.nativeElement.innerHTML;\n }\n\n /**\n * Returns the width of the tab element in pixels.\n * The measurement is cached after the first call.\n */\n getWidth(): number {\n if (this.isFirstCall) {\n this.width = this.hostElement.getBoundingClientRect().width;\n this.isFirstCall = false;\n }\n return this.width;\n }\n\n /**\n * Calls the focus method on the inner link directive.\n */\n onFocus(): void {\n this.link().onFocus();\n }\n\n /**\n * Calls the blur method on the inner link directive.\n */\n onBlur(): void {\n this.link().onBlur();\n }\n\n /**\n * Handles a click event on the tab and emits the `selectTab` event.\n */\n protected onTabClick(): void {\n this.selectTab.emit(new EclTabSelectEvent(this));\n }\n\n /**\n * Handles a keydown event on the tab and emits the `keydownTab` event.\n */\n protected onKeydown(event: Event): void {\n this.keydownTab.emit(event);\n }\n}\n","<a\n eclLink\n role=\"tab\"\n class=\"ecl-tabs__link eui-ecl-u-cursor-pointer {{anchorExtraClasses()}}\"\n [class.ecl-tabs__link--active]=\"_isActive()\"\n [attr.aria-selected]=\"_isActive()\"\n [tabindex]=\"hrefTabindex()\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onTabClick()\"\n [id]=\"linkId()\"\n [attr.aria-controls]=\"ariaControls()\">\n <ng-content select=\"ecl-tab-label\"></ng-content>\n</a>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { BreakpointObserver } from '@angular/cdk/layout';\nimport {\n afterNextRender,\n ChangeDetectorRef,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n OnInit,\n PLATFORM_ID,\n signal,\n ViewEncapsulation,\n output,\n input,\n contentChildren,\n viewChild,\n} from '@angular/core';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { OutputRefSubscription } from '@angular/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { KeyCode } from '@eui/ecl/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclButtonComponent, EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { EclTabComponent } from './ecl-tab.component';\nimport { EclTabSelectEvent } from './events/ecl-tab-select.event';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclTabLabelComponent } from './ecl-tab-label.component';\n\nexport enum ShiftDirection {\n NEXT = 'next',\n PREVIOUS = 'prev',\n}\n\n/**\n * ECL Tabs component for displaying tabbed content with overflow handling and keyboard navigation.\n * Tabs that overflow the available width are moved into a \"More\" dropdown; on narrow viewports\n * the tab list switches to a horizontally scrollable carousel.\n *\n * - Selector: `div[eclTabs]`.\n * - Child tabs are projected as `div[eclTab]` elements, each with an `ecl-tab-label` sub-component\n * for the label content and a `#content` template for the panel body.\n * - `bodyClass` sets extra classes on the tab body container. Default: `'ecl-u-mt-s'`.\n * - Emits `tabSelect` (`EclTabSelectEvent`) when the active tab changes.\n * - Full keyboard navigation: Arrow Left/Right, Home, End, Enter, Tab.\n * - RTL layout is handled automatically via `EclRtlService`.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'div[eclTabs]',\n templateUrl: './ecl-tabs.component.html',\n imports: [TranslatePipe, NgTemplateOutlet, ...EUI_ECL_BUTTON, ...EUI_ECL_ICON, EclTabComponent, EclTabLabelComponent],\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'ecl-tabs',\n 'data-ecl-auto-initialized': 'true',\n '(document:click)': 'onClick($event.target)',\n },\n})\nexport class EclTabsComponent extends ECLBaseDirective implements OnInit {\n /**\n * Class applied to the tab body container.\n */\n readonly bodyClass = input('ecl-u-mt-s');\n\n /**\n * Emits an event when a tab is selected.\n */\n readonly tabSelect = output<EclTabSelectEvent>();\n\n /**\n * All projected tabs inside the component.\n */\n protected readonly tabs = contentChildren(forwardRef(() => EclTabComponent));\n\n /**\n * Tabs displayed in the visible list.\n */\n protected readonly listTabs = signal<EclTabComponent[]>([]);\n\n /**\n * Indicates whether the dropdown is expanded.\n */\n protected readonly isDropdownExpanded = signal(false);\n\n /**\n * Indicates whether the scroll previous button is shown.\n */\n protected readonly isScrollPrevBtnShow = signal(false);\n\n /**\n * Indicates whether the scroll next button is shown.\n */\n protected readonly isScrollNextBtnShow = signal(false);\n\n /**\n * CSS transform applied to the scrollable tab list.\n */\n protected readonly styleTransform = signal('translate3d(0px, 0px, 0px)');\n\n /**\n * Whether any visible tab is active.\n */\n protected readonly isMoreButtonActive = computed(\n () => this.listTabs().find((el) => el._isActive() && !el.isHidden()) !== undefined,\n );\n\n /**\n * Get the tabindex for more button.\n */\n protected readonly customTabIndex = computed(() => {\n if (!this.isMoreButtonActive()) {\n return '-1';\n }\n return this.isDropdownExpanded() ? '-1' : '0';\n });\n\n /**\n * Returns the number of tabs shown in the dropdown.\n *\n * Counts the dropdown clones that are visible (`isHidden() === false`), which is the\n * exact set rendered in the dropdown. Counting the main tabs' hidden state instead can\n * diverge from what the dropdown shows, because the main-bar hidden signals are updated\n * by the imperative resize measurement pass.\n */\n protected readonly hiddenTabsCount = computed(() => this.listTabs().filter((item) => !item.isHidden()).length);\n\n /**\n * Returns the duration of the transition animation.\n */\n protected readonly transitionDuration = computed(() => (this.isMobileBreakpoint() ? '0.4s' : '0'));\n\n private readonly tabsList = viewChild<ElementRef>('tabsList');\n\n private readonly moreButton = viewChild<EclButtonComponent>('moreButton');\n\n private readonly btnPrev = viewChild<EclButtonComponent>('btnPrev');\n\n private readonly dropdownList = viewChild<ElementRef>('dropdownList');\n\n private readonly moreItem = viewChild<ElementRef>('moreItem');\n\n /**\n * Index of the active tab.\n */\n private readonly index = signal(0);\n\n /**\n * Indicates whether the mobile breakpoint is active.\n */\n private readonly isMobileBreakpoint = signal(false);\n\n private readonly differs = inject(IterableDiffers);\n private readonly cdkBreakpointObserver = inject(BreakpointObserver);\n private readonly cd = inject(ChangeDetectorRef);\n private readonly el = inject(ElementRef);\n private readonly eclRtlService = inject(EclRtlService);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n private readonly tabsChanges$ = toObservable(this.tabs);\n private readonly tabSubscriptions = new Map<EclTabComponent, OutputRefSubscription[]>();\n private differ: IterableDiffer<EclTabComponent>;\n private diff: IterableChanges<EclTabComponent>;\n private isRtl = false;\n private TIMEOUT_INTERVAL = 0;\n\n constructor() {\n super();\n this.differ = this.differs.find([]).create();\n afterNextRender(() => {\n this.observeTabsChanges();\n this.observeElementSizeChanges();\n this.cd.detectChanges();\n });\n }\n\n ngOnInit(): void {\n if (isPlatformBrowser(this.platformId)) {\n this.observeBreakpointChanges();\n this.handleRtlChangeState();\n }\n }\n\n protected onClick(target): void {\n if (!this.moreButton().el.nativeElement.contains(target) && !this.dropdownList().nativeElement.contains(target)) {\n this.closeDropdown();\n }\n }\n\n /**\n * Scrolls the tab list to the left.\n */\n protected onScrollPrev(): void {\n this.shiftTabs(ShiftDirection.PREVIOUS);\n }\n\n /**\n * Scrolls the tab list to the right.\n */\n protected onScrollNext(): void {\n this.shiftTabs(ShiftDirection.NEXT);\n }\n\n /**\n * Toggles the dropdown visibility.\n */\n protected onDropdownToggle(): void {\n this.isDropdownExpanded.set(!this.isDropdownExpanded());\n }\n\n /**\n * Returns the label of the tab at the specified index.\n */\n protected getTabLabel(index: number): string {\n return this.getTabsAsArray()[index].getTabLabel();\n }\n\n /**\n * Handles tab selection.\n * @param tab Tab to activate.\n */\n protected onTabSelect(tab: EclTabComponent): void {\n this.deactivateAllTabs(Array.from(this.tabs()), this.listTabs());\n this.activateTab(tab);\n this.sendTabSelectEvent(tab);\n }\n\n /**\n * Handles all supported keyboard events for a tab.\n * @param event KeyboardEvent triggered.\n * @param tab Target tab.\n */\n protected onTabKeydown(event: Event, tab: EclTabComponent): void {\n if (!(event instanceof KeyboardEvent)) {\n return;\n }\n\n const index = this.getCurrentTabIndex(tab);\n switch (event.key) {\n case KeyCode.ARROW_LEFT: {\n event.preventDefault();\n this.onTabKeydownArrowLeft(index);\n break;\n }\n case KeyCode.ARROW_RIGHT: {\n event.preventDefault();\n this.onTabKeydownArrowRight(index);\n break;\n }\n case KeyCode.END: {\n event.preventDefault();\n this.onTabKeydownEnd();\n break;\n }\n case KeyCode.HOME: {\n event.preventDefault();\n this.onTabKeydownHome();\n break;\n }\n case KeyCode.ENTER: {\n event.preventDefault();\n this.onTabSelect(tab);\n break;\n }\n case KeyCode.TAB: {\n this.onTabTab();\n break;\n }\n default: {\n break;\n }\n }\n }\n\n protected onMoreButtonFocus(): void {\n const index = this.listTabs().findIndex(\n (el) => el._isActive() && !el.isHidden()\n );\n if (index < 0) return;\n this.openDropdown();\n this.moreButton().el.nativeElement.blur();\n this.focusOnDropdownTab(index);\n }\n\n /**\n * Handles right arrow key navigation.\n * @param index Current tab index.\n */\n private onTabKeydownArrowRight(index: number): void {\n if (this.isMobileBreakpoint()) {\n this.shiftTabs(ShiftDirection.NEXT);\n if (index === this.getTabsCount() - 1) {\n return;\n }\n }\n if (index === this.getTabsCount() - 1 && !this.isMobileBreakpoint()) {\n this.focusOnFirstTab();\n } else {\n this.focusOnNextTab(index);\n }\n }\n\n /**\n * Handles left arrow key navigation.\n * @param index Current tab index.\n */\n private onTabKeydownArrowLeft(index: number): void {\n if (this.isMobileBreakpoint()) {\n this.shiftTabs(ShiftDirection.PREVIOUS);\n if (index === 0) {\n return;\n }\n }\n\n if (index === 0 && !this.isMobileBreakpoint()) {\n this.focusOnLastTab();\n } else {\n this.focusOnPrevTab(index);\n }\n }\n\n /**\n * Focuses the first tab in the list.\n */\n private onTabKeydownHome(): void {\n this.focusOnFirstTab();\n }\n\n /**\n * Focuses the last tab in the list.\n */\n private onTabKeydownEnd(): void {\n this.focusOnLastTab();\n }\n\n private onTabTab(): void {\n this.closeDropdown();\n }\n\n private getCurrentTabIndex(tab: EclTabComponent): number {\n const index = this.getTabsAsArray().indexOf(tab)\n return index !== -1 ? index : this.listTabs().indexOf(tab);\n }\n\n private shiftTabs(dir: string): void {\n const newIndex = this.getShifIndex(dir, this.index());\n this.index.set(newIndex);\n\n this.isScrollPrevBtnShow.set(newIndex >= 1);\n this.isScrollNextBtnShow.set(newIndex < this.getTabsCount() - 1);\n\n const leftMargin = newIndex === 0 ? 0 : this.btnPrev().el.nativeElement.getBoundingClientRect().width + 13;\n\n let newOffset = 0;\n if (this.isRtl) {\n newOffset = Math.ceil(\n this.tabsList().nativeElement.offsetWidth -\n this.getTabsAsArray()[newIndex].hostElement.offsetLeft -\n this.getTabsAsArray()[newIndex].hostElement.offsetWidth -\n leftMargin,\n );\n } else {\n newOffset = Math.ceil(this.getTabsAsArray()[newIndex]?.hostElement.offsetLeft - leftMargin);\n }\n\n const maxScroll = Math.ceil(this.getTabsListWidth() - this.el.nativeElement.getBoundingClientRect().width);\n\n if (newOffset > maxScroll) {\n this.isScrollNextBtnShow.set(false);\n newOffset = maxScroll;\n }\n\n if (this.isRtl) {\n this.styleTransform.set(`translate3d(${newOffset}px, 0px, 0px)`);\n } else {\n this.styleTransform.set(`translate3d(-${newOffset}px, 0px, 0px)`);\n }\n }\n\n private getShifIndex(dir: string, index: number): number {\n if (dir === ShiftDirection.NEXT) {\n if (index === this.getTabsCount() - 1 && !this.isMobileBreakpoint() ) {\n return 0;\n } else {\n return index + 1;\n }\n } else {\n if (index === 0 && !this.isMobileBreakpoint()) {\n return this.getTabsCount() - 1;\n } else {\n return index - 1;\n }\n }\n }\n\n private createSecondListForDropdown(): void {\n const newList: EclTabComponent[] = [];\n this.tabs().forEach((tab) => {\n // Shallow-copying a tab would share the original's `isHidden`/`_isActive`\n // signal references, so writes to a dropdown clone would mutate the real tab\n // (corrupting the main-bar hidden state, the \"More\" count, and keyboard focus).\n // Build the clone with its own independent writable signals instead. A plain\n // `signal` is used (not `model`) because `model()` may only be called in a class\n // field initializer, and the clone only needs read/`set` access.\n const newTab = {\n ...tab,\n isHidden: signal(true),\n _isActive: signal(tab.isActive()),\n } as unknown as EclTabComponent;\n newList.push(newTab);\n });\n this.listTabs.set(newList);\n }\n\n private getTabsAsArray(): EclTabComponent[] {\n return Array.from(this.tabs());\n }\n\n private getTabsCount(): number {\n return this.tabs().length;\n }\n\n private closeDropdown(): void {\n this.isDropdownExpanded.set(false);\n }\n\n private openDropdown(): void {\n this.isDropdownExpanded.set(true);\n }\n\n private observeTabsChanges(): void {\n this.tabsChanges$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(this.onTabsChanges.bind(this));\n }\n\n private onTabsChanges(): void {\n this.diff = this.differ.diff(this.tabs());\n\n if (!this.diff) {\n this.tabs().forEach((tab) => {\n this.connectTabEvents(tab);\n });\n } else {\n this.diff.forEachAddedItem((change) => {\n this.connectTabEvents(change.item);\n });\n\n this.diff.forEachRemovedItem((change) => {\n this.disconnectTabEvents(change.item);\n });\n }\n this.createSecondListForDropdown();\n }\n\n private connectTabEvents(tab: EclTabComponent): void {\n if (this.tabSubscriptions.has(tab)) {\n return;\n }\n const subscriptions: OutputRefSubscription[] = [\n tab.selectTab.subscribe(() => {\n this.onTabSelect(tab);\n }),\n tab.keydownTab.subscribe((event) => {\n this.onTabKeydown(event, tab);\n }),\n ];\n this.tabSubscriptions.set(tab, subscriptions);\n }\n\n private focusOnNextTab(index: number): void {\n if (this.getTabsAsArray()[index + 1].isHidden()) {\n this.openDropdown();\n this.focusOnDropdownTab(index + 1);\n } else {\n this.closeDropdown();\n this.getTabsAsArray()[index + 1].onFocus();\n }\n }\n\n private focusOnFirstTab(): void {\n this.closeDropdown();\n this.getFirstTabFromArray().onFocus();\n }\n\n private focusOnLastTab(): void {\n if (!this.getLastTabFromArray().isHidden()) {\n this.getLastTabFromArray().onFocus();\n } else {\n this.openDropdown();\n this.focusOnDropdownTab(this.getTabsCount() - 1);\n }\n }\n\n private focusOnPrevTab(index: number): void {\n if (!this.listTabs()[index - 1].isHidden()) {\n this.focusOnDropdownTab(index - 1);\n } else {\n this.closeDropdown();\n this.getTabsAsArray()[index - 1].onFocus();\n }\n }\n\n private focusOnDropdownTab(index: number): void {\n this.dropdownList().nativeElement.children[index].firstChild.focus();\n }\n\n private getLastTabFromArray(): EclTabComponent {\n return this.getTabsAsArray()[this.getTabsAsArray().length - 1];\n }\n\n private getFirstTabFromArray(): EclTabComponent {\n return this.getTabsAsArray()[0];\n }\n\n private disconnectTabEvents(tab: EclTabComponent): void {\n const subscriptions = this.tabSubscriptions.get(tab);\n if (subscriptions) {\n subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.tabSubscriptions.delete(tab);\n }\n }\n\n private deactivateAllTabs(tabs: EclTabComponent[], listTabs: EclTabComponent[]): void {\n tabs.forEach((it) => {\n it._isActive.set(false);\n });\n\n listTabs.forEach((it) => {\n it._isActive.set(false);\n });\n }\n\n private activateTab(tab: EclTabComponent): void {\n tab._isActive.set(true);\n }\n\n private sendTabSelectEvent(tab: EclTabComponent): void {\n this.tabSelect.emit(new EclTabSelectEvent(tab));\n }\n\n private observeBreakpointChanges(): void {\n this.cdkBreakpointObserver\n .observe(['(max-width: 480px)'])\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((result) => {\n this.isMobileBreakpoint.set(result.matches);\n });\n }\n\n private handleResize(): void {\n this.closeDropdown();\n if (this.isMobileBreakpoint()) {\n this.handleMobile();\n return;\n }\n\n this.styleTransform.set('translate3d(0px, 0px, 0px)');\n this.index.set(0);\n this.isScrollNextBtnShow.set(false);\n this.isScrollPrevBtnShow.set(false);\n\n // Reset list width to auto for measurement (direct DOM, same as ECL)\n this.tabsList().nativeElement.style.width = 'auto';\n\n // Temporarily show the more button to get its actual width\n this.moreItem().nativeElement.classList.remove('ecl-tabs__item--hidden');\n this.moreButton().el.nativeElement.classList.remove('ecl-tabs__toggle--hidden');\n const moreButtonWidth = this.moreButton().el.nativeElement.getBoundingClientRect().width;\n this.moreItem().nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton().el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n\n const hiddenItems: number[] = [];\n const listWidth = this.getTabsListWidth();\n\n // Measure all items first to check if they fit without the button\n this.tabs().forEach((item) => {\n item.isHidden.set(false);\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n });\n const itemWidths = this.tabs().map((item) => {\n const itemMargin = parseFloat(getComputedStyle(item.hostElement).marginInlineEnd) || 0;\n return item.hostElement.getBoundingClientRect().width + itemMargin;\n });\n const totalWidth = itemWidths.reduce((sum, w) => sum + w, 0);\n\n if (totalWidth > listWidth) {\n // Reserve space for the more button and hide items that don't fit\n this.tabs().forEach((item) => {\n item.isHidden.set(true);\n item.hostElement.classList.add('ecl-tabs__item--hidden');\n });\n let stopWidth = moreButtonWidth;\n this.tabs().forEach((item, i) => {\n item.isHidden.set(false);\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n if (listWidth >= stopWidth + itemWidths[i] && !hiddenItems.includes(i - 1)) {\n stopWidth += itemWidths[i];\n } else {\n item.isHidden.set(true);\n item.hostElement.classList.add('ecl-tabs__item--hidden');\n if (item._isActive()) {\n this.listTabs()[i]._isActive.set(true);\n }\n hiddenItems.push(i);\n }\n });\n }\n\n // Toggle the visibility of More button and items in dropdown\n if (!hiddenItems.length) {\n this.moreItem().nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton().el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n this.setActiveItemForMainTabs();\n this.hideAllDropdownTabs();\n } else {\n this.moreItem().nativeElement.classList.remove('ecl-tabs__item--hidden');\n this.moreButton().el.nativeElement.classList.remove('ecl-tabs__toggle--hidden');\n this.setHiddenItemsForDropdownTabs(hiddenItems);\n }\n this.cd.markForCheck();\n }\n\n private hideAllDropdownTabs(): void {\n this.listTabs().forEach(item => item.isHidden.set(true));\n }\n\n private setActiveItemForMainTabs(): void {\n this.listTabs().forEach((item, index) => {\n if (item._isActive()) {\n setTimeout(() => this.tabs()[index]._isActive.set(true));\n }\n });\n this.cd.markForCheck();\n }\n\n private getTabsListWidth(): number {\n return this.tabsList().nativeElement.getBoundingClientRect().width;\n }\n\n private setHiddenItemsForDropdownTabs(hiddenItems: number[]): void {\n this.listTabs().forEach((item, index) => {\n if (hiddenItems.includes(index)) {\n item.isHidden.set(false);\n } else {\n item.isHidden.set(true);\n }\n });\n }\n\n private handleMobile(): void {\n this.isScrollPrevBtnShow.set(false);\n this.isScrollNextBtnShow.set(true);\n this.setAllTabsVisible();\n\n // Hide the more item and button (direct DOM, same as ECL)\n this.moreItem().nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton().el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n\n // Reset to auto so scrollWidth reflects the natural content width\n this.tabsList().nativeElement.style.width = 'auto';\n // Remove hidden class directly from DOM elements\n this.tabs().forEach((item) => {\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n });\n // Use scrollWidth to also include item margins\n this.tabsList().nativeElement.style.width = `${this.tabsList().nativeElement.scrollWidth}px`;\n }\n\n private setAllTabsVisible(): void {\n this.tabs().forEach((item) => {\n item.isHidden.set(false);\n });\n }\n\n private handleRtlChangeState(): void {\n const isRtlOld = this.isRtl;\n this.eclRtlService.currentRtlState$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((rtlState) => {\n setTimeout(() => {\n this.isRtl = rtlState;\n if (this.isMobileBreakpoint() && this.hasRtlChanged(isRtlOld)) {\n this.handleRtlChange();\n }\n });\n });\n }\n\n private hasRtlChanged(isRtlOld: boolean): boolean {\n return isRtlOld !== this.isRtl;\n }\n\n private handleRtlChange(): void {\n this.handleMobile();\n this.styleTransform.set('translate3d(0px, 0px, 0px)');\n this.index.set(0);\n }\n\n private observeElementSizeChanges(): void {\n const resizeObserver = new ResizeObserver(() => {\n setTimeout(() => {\n this.handleResize();\n }, this.TIMEOUT_INTERVAL);\n });\n resizeObserver.observe(this.tabsList().nativeElement);\n this.destroyRef.onDestroy(() => resizeObserver.disconnect());\n }\n}\n","<div class=\"ecl-tabs__container\" [class.ecl-tabs__container--right]=\"isScrollNextBtnShow()\"\n [class.ecl-tabs__container--left]=\"isScrollPrevBtnShow()\">\n <div class=\"ecl-tabs__list\" role=\"tablist\" #tabsList\n [style.transform]=\"styleTransform()\" [style.transition-duration]=\"transitionDuration()\">\n <ng-content select=\"[eclTab]\"></ng-content>\n <div class=\"ecl-tabs__item ecl-tabs__item--more\" #moreItem>\n @if (listTabs().length > 0) {\n <div class=\"ecl-tabs__dropdown\" [class.ecl-tabs__dropdown--show]=\"isDropdownExpanded()\">\n <div class=\"ecl-tabs__dropdown-list\" #dropdownList>\n @for (tab of listTabs(); track tab.finalId(); let i = $index) {\n <div eclTab [isActive]=\"tab._isActive()\" [isHidden]=\"tab.isHidden()\" (click)=\"onTabSelect(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\">\n <ecl-tab-label>{{ getTabLabel(i) }}</ecl-tab-label>\n </div>\n }\n </div>\n </div>\n }\n </div>\n </div>\n <button #moreButton eclButton class=\"ecl-tabs__toggle\" variant=\"tertiary\" [tabindex]=\"customTabIndex()\"\n [attr.aria-expanded]=\"isDropdownExpanded()\" [class.ecl-tabs__toggle--active]=\"isMoreButtonActive()\"\n (click)=\"onDropdownToggle()\" (focus)=\"onMoreButtonFocus()\">\n <span eclButtonLabel>\n {{ 'ecl.common.MORE' | translate }}\n ({{ hiddenTabsCount() }})\n </span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-180\" size=\"fluid\"></ecl-icon>\n </button>\n</div>\n\n<div class=\"ecl-tabs__controls\">\n <button #btnPrev eclButton variant=\"tertiary\" isIconOnly class=\"ecl-tabs__prev\"\n [style.display]=\"isScrollPrevBtnShow() ? 'flex' : 'none'\" (click)=\"onScrollPrev()\">\n <span eclButtonLabel>{{ 'ecl.common.PREVIOUS' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-270\" size=\"s\" class=\"\"> </ecl-icon>\n </button>\n <button #btnNext eclButton variant=\"tertiary\" isIconOnly class=\"ecl-tabs__next\"\n [style.display]=\"isScrollNextBtnShow() ? 'flex' : 'none'\" (click)=\"onScrollNext()\">\n <span eclButtonLabel>{{ 'ecl.common.NEXT' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-90\" size=\"s\" class=\"\"> </ecl-icon>\n </button>\n</div>\n\n@for (tab of tabs(); track tab.finalId()) {\n@if (tab._isActive()) {\n<div id=\"{{tab.finalId()}}-tabpanel\" role=\"tabpanel\" aria-labelledby=\"{{tab.finalId()}}-link\" class=\"{{ bodyClass() }}\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate()\"></ng-container>\n</div>\n}\n}\n@for (tab of listTabs(); track tab.finalId()) {\n@if (tab._isActive()) {\n<div id=\"{{tab.finalId()}}-tabpanel\" role=\"tabpanel\" aria-labelledby=\"{{tab.finalId()}}-link\" class=\"{{ bodyClass() }}\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate()\"></ng-container>\n</div>\n}\n}","import { EclTabLabelComponent } from './ecl-tab-label.component';\nimport { EclTabComponent } from './ecl-tab.component';\nimport { EclTabsComponent } from './ecl-tabs.component';\n\nexport * from './ecl-tabs.component';\nexport * from './ecl-tab.component';\nexport * from './ecl-tab-label.component';\nexport * from './events/ecl-tab-select.event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AA;AAAA,CAAA;AEzIhE,MAAa,eAAe;CACxB;CAAkB;CAAiB;AAC7B"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-tabs.mjs","names":["i1"],"sources":["../../components/ecl-tabs/ecl-tab-label.component.ts","../../components/ecl-tabs/ecl-tab-label.component.html","../../components/ecl-tabs/events/ecl-tab-select.event.ts","../../components/ecl-tabs/ecl-tab.component.ts","../../components/ecl-tabs/ecl-tab.component.html","../../components/ecl-tabs/ecl-tabs.component.ts","../../components/ecl-tabs/ecl-tabs.component.html","../../components/ecl-tabs/index.ts"],"sourcesContent":["import { Component, ElementRef, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing a tab label within ECL Tabs.\n * Used as a container for the tab's visual label content.\n */\n@Component({\n selector: 'ecl-tab-label',\n templateUrl: './ecl-tab-label.component.html',\n})\nexport class EclTabLabelComponent extends ECLBaseDirective {\n el = inject(ElementRef);\n}\n","<ng-content></ng-content>\n","import { EclBaseEvent } from '@eui/ecl/core';\nimport { EclTabComponent } from '../ecl-tab.component';\n\n/**\n * Event emitted when a tab is selected.\n *\n * Contains a reference to the selected tab instance.\n */\nexport class EclTabSelectEvent extends EclBaseEvent {\n /**\n * The tab instance that has been selected.\n */\n constructor(public tab: EclTabComponent) {\n super();\n }\n}\n","import {\n AfterViewInit,\n Component,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n model,\n viewChild,\n contentChild,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective, EUI_ECL_LINK } from '@eui/ecl/components/ecl-link';\nimport { EclTabLabelComponent } from './ecl-tab-label.component';\nimport { EclTabSelectEvent } from './events/ecl-tab-select.event';\n\n/**\n * Single tab item within the ECL Tabs component.\n * Projects a label via `ecl-tab-label` and panel content via an `#content` template ref.\n * Manages its own active/hidden state and emits events for selection and keyboard interaction.\n *\n * - Selector: `div[eclTab]`.\n * - `isActive` initialises the tab as the selected tab; managed reactively via the `_isActive` signal.\n * - `isHidden` hides the tab from the main bar (used by `EclTabsComponent` to build the \"More\" dropdown).\n * - `id` sets the tab's HTML id; auto-generated when omitted.\n * - Emits `selectTab` on click, `keydownTab` on keyboard events.\n */\n@Component({\n selector: 'div[eclTab]',\n host: {\n '[attr.id]': 'id()',\n '[class]': 'cssClasses()',\n '[class.ecl-tabs__item--hidden]': 'isHidden()',\n },\n templateUrl: './ecl-tab.component.html',\n imports: [...EUI_ECL_LINK],\n})\nexport class EclTabComponent extends ECLBaseDirective implements AfterViewInit {\n /**\n * Unique identifier for the tab.\n */\n readonly id = input<string>();\n\n /**\n * Extra classes to be added to the anchor tag.\n */\n readonly anchorExtraClasses = input<string>();\n\n /**\n * Hides the tab when true by applying the `ecl-tabs__item--hidden` CSS class.\n */\n readonly isHidden = model(false);\n\n /**\n * Marks the tab as active.\n */\n readonly isActive = input(false, { transform: booleanAttribute });\n readonly _isActive = signal(false);\n\n /**\n * Emits when the tab is selected via click.\n */\n readonly selectTab = output<EclTabSelectEvent>();\n\n /**\n * Emits when a keydown event occurs on the tab.\n */\n readonly keydownTab = output<Event>();\n\n /**\n * Reference to the tab content template.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n readonly contentTemplate = viewChild<TemplateRef<any>>('content');\n\n /**\n * Contains the inner HTML of the tab label.\n */\n tabLabel = '';\n\n /**\n * The computed id used across the tab's DOM hooks.\n */\n readonly finalId = computed(() => this.id() ?? this.generatedId());\n\n /**\n * The tab index value for the tab's link.\n */\n protected readonly hrefTabindex = computed(() => this._isActive() ? 0 : -1);\n\n /**\n * CSS classes applied to the host element, bound via the `host` metadata (`[class]`).\n * Reactive to the base `class` model signal.\n */\n protected readonly cssClasses = computed(() => this.getCssClasses('ecl-tabs__item'));\n\n protected readonly linkId = computed(() => `${this.finalId()}-link`);\n\n protected readonly ariaControls = computed(() => `${this.finalId()}-tabpanel`);\n\n private readonly link = viewChild(EclLinkDirective);\n\n private readonly label = contentChild(EclTabLabelComponent);\n\n private readonly generatedId = signal(crypto.randomUUID());\n\n private readonly elementRef = inject(ElementRef);\n\n private isFirstCall = true;\n\n private width = 0;\n\n constructor() {\n super();\n effect(() => {\n this._isActive.set(this.isActive());\n });\n }\n\n /**\n * Returns the host HTML element of the tab component.\n */\n get hostElement(): HTMLElement {\n return this.elementRef?.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.tabLabel = this.label()?.el.nativeElement.innerHTML;\n // this._isActive.set(this.isActive());\n }\n\n /**\n * Returns the inner HTML content of the tab label.\n */\n getTabLabel(): string {\n return this.label()?.el.nativeElement.innerHTML;\n }\n\n /**\n * Returns the width of the tab element in pixels.\n * The measurement is cached after the first call.\n */\n getWidth(): number {\n if (this.isFirstCall) {\n this.width = this.hostElement.getBoundingClientRect().width;\n this.isFirstCall = false;\n }\n return this.width;\n }\n\n /**\n * Calls the focus method on the inner link directive.\n */\n onFocus(): void {\n this.link()?.onFocus();\n }\n\n /**\n * Calls the blur method on the inner link directive.\n */\n onBlur(): void {\n this.link()?.onBlur();\n }\n\n /**\n * Handles a click event on the tab and emits the `selectTab` event.\n */\n protected onTabClick(): void {\n this.selectTab.emit(new EclTabSelectEvent(this));\n }\n\n /**\n * Handles a keydown event on the tab and emits the `keydownTab` event.\n */\n protected onKeydown(event: Event): void {\n this.keydownTab.emit(event);\n }\n}\n","<a\n eclLink\n role=\"tab\"\n class=\"ecl-tabs__link eui-ecl-u-cursor-pointer {{anchorExtraClasses()}}\"\n [class.ecl-tabs__link--active]=\"_isActive()\"\n [attr.aria-selected]=\"_isActive()\"\n [tabindex]=\"hrefTabindex()\"\n (keydown)=\"onKeydown($event)\"\n (click)=\"onTabClick()\"\n [id]=\"linkId()\"\n [attr.aria-controls]=\"ariaControls()\">\n <ng-content select=\"ecl-tab-label\"></ng-content>\n</a>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { BreakpointObserver } from '@angular/cdk/layout';\nimport {\n afterNextRender,\n ChangeDetectorRef,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n IterableChanges,\n IterableDiffer,\n IterableDiffers,\n OnInit,\n PLATFORM_ID,\n signal,\n ViewEncapsulation,\n output,\n input,\n contentChildren,\n viewChild,\n} from '@angular/core';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { OutputRefSubscription } from '@angular/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { KeyCode } from '@eui/ecl/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclButtonComponent, EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { EclTabComponent } from './ecl-tab.component';\nimport { EclTabSelectEvent } from './events/ecl-tab-select.event';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclTabLabelComponent } from './ecl-tab-label.component';\n\nexport enum ShiftDirection {\n NEXT = 'next',\n PREVIOUS = 'prev',\n}\n\n/**\n * ECL Tabs component for displaying tabbed content with overflow handling and keyboard navigation.\n * Tabs that overflow the available width are moved into a \"More\" dropdown; on narrow viewports\n * the tab list switches to a horizontally scrollable carousel.\n *\n * - Selector: `div[eclTabs]`.\n * - Child tabs are projected as `div[eclTab]` elements, each with an `ecl-tab-label` sub-component\n * for the label content and a `#content` template for the panel body.\n * - `bodyClass` sets extra classes on the tab body container. Default: `'ecl-u-mt-s'`.\n * - Emits `tabSelect` (`EclTabSelectEvent`) when the active tab changes.\n * - Full keyboard navigation: Arrow Left/Right, Home, End, Enter, Tab.\n * - RTL layout is handled automatically via `EclRtlService`.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'div[eclTabs]',\n templateUrl: './ecl-tabs.component.html',\n imports: [TranslatePipe, NgTemplateOutlet, ...EUI_ECL_BUTTON, ...EUI_ECL_ICON, EclTabComponent, EclTabLabelComponent],\n encapsulation: ViewEncapsulation.None,\n host: {\n 'class': 'ecl-tabs',\n 'data-ecl-auto-initialized': 'true',\n '(document:click)': 'onClick($event.target)',\n },\n})\nexport class EclTabsComponent extends ECLBaseDirective implements OnInit {\n /**\n * Class applied to the tab body container.\n */\n readonly bodyClass = input('ecl-u-mt-s');\n\n /**\n * Emits an event when a tab is selected.\n */\n readonly tabSelect = output<EclTabSelectEvent>();\n\n /**\n * All projected tabs inside the component.\n */\n protected readonly tabs = contentChildren(forwardRef(() => EclTabComponent));\n\n /**\n * Tabs displayed in the visible list.\n */\n protected readonly listTabs = signal<EclTabComponent[]>([]);\n\n /**\n * Indicates whether the dropdown is expanded.\n */\n protected readonly isDropdownExpanded = signal(false);\n\n /**\n * Indicates whether the scroll previous button is shown.\n */\n protected readonly isScrollPrevBtnShow = signal(false);\n\n /**\n * Indicates whether the scroll next button is shown.\n */\n protected readonly isScrollNextBtnShow = signal(false);\n\n /**\n * CSS transform applied to the scrollable tab list.\n */\n protected readonly styleTransform = signal('translate3d(0px, 0px, 0px)');\n\n /**\n * Whether any visible tab is active.\n */\n protected readonly isMoreButtonActive = computed(\n () => this.listTabs().find((el) => el._isActive() && !el.isHidden()) !== undefined,\n );\n\n /**\n * Get the tabindex for more button.\n */\n protected readonly customTabIndex = computed(() => {\n if (!this.isMoreButtonActive()) {\n return '-1';\n }\n return this.isDropdownExpanded() ? '-1' : '0';\n });\n\n /**\n * Returns the number of tabs shown in the dropdown.\n *\n * Counts the dropdown clones that are visible (`isHidden() === false`), which is the\n * exact set rendered in the dropdown. Counting the main tabs' hidden state instead can\n * diverge from what the dropdown shows, because the main-bar hidden signals are updated\n * by the imperative resize measurement pass.\n */\n protected readonly hiddenTabsCount = computed(() => this.listTabs().filter((item) => !item.isHidden()).length);\n\n /**\n * Returns the duration of the transition animation.\n */\n protected readonly transitionDuration = computed(() => (this.isMobileBreakpoint() ? '0.4s' : '0'));\n\n private readonly tabsList = viewChild<ElementRef>('tabsList');\n\n private readonly moreButton = viewChild<EclButtonComponent>('moreButton');\n\n private readonly btnPrev = viewChild<EclButtonComponent>('btnPrev');\n\n private readonly dropdownList = viewChild<ElementRef>('dropdownList');\n\n private readonly moreItem = viewChild<ElementRef>('moreItem');\n\n /**\n * Index of the active tab.\n */\n private readonly index = signal(0);\n\n /**\n * Indicates whether the mobile breakpoint is active.\n */\n private readonly isMobileBreakpoint = signal(false);\n\n private readonly differs = inject(IterableDiffers);\n private readonly cdkBreakpointObserver = inject(BreakpointObserver);\n private readonly cd = inject(ChangeDetectorRef);\n private readonly el = inject(ElementRef);\n private readonly eclRtlService = inject(EclRtlService);\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n private readonly tabsChanges$ = toObservable(this.tabs);\n private readonly tabSubscriptions = new Map<EclTabComponent, OutputRefSubscription[]>();\n private differ: IterableDiffer<EclTabComponent>;\n private diff: IterableChanges<EclTabComponent> | null = null;\n private isRtl = false;\n private TIMEOUT_INTERVAL = 0;\n\n constructor() {\n super();\n this.differ = this.differs.find([]).create();\n afterNextRender(() => {\n this.observeTabsChanges();\n this.observeElementSizeChanges();\n this.cd.detectChanges();\n });\n }\n\n ngOnInit(): void {\n if (isPlatformBrowser(this.platformId)) {\n this.observeBreakpointChanges();\n this.handleRtlChangeState();\n }\n }\n\n protected onClick(target: EventTarget | null): void {\n if (!this.moreButton()!.el.nativeElement.contains(target) && !this.dropdownList()!.nativeElement.contains(target)) {\n this.closeDropdown();\n }\n }\n\n /**\n * Scrolls the tab list to the left.\n */\n protected onScrollPrev(): void {\n this.shiftTabs(ShiftDirection.PREVIOUS);\n }\n\n /**\n * Scrolls the tab list to the right.\n */\n protected onScrollNext(): void {\n this.shiftTabs(ShiftDirection.NEXT);\n }\n\n /**\n * Toggles the dropdown visibility.\n */\n protected onDropdownToggle(): void {\n this.isDropdownExpanded.set(!this.isDropdownExpanded());\n }\n\n /**\n * Returns the label of the tab at the specified index.\n */\n protected getTabLabel(index: number): string {\n return this.getTabsAsArray()[index].getTabLabel();\n }\n\n /**\n * Handles tab selection.\n * @param tab Tab to activate.\n */\n protected onTabSelect(tab: EclTabComponent): void {\n this.deactivateAllTabs(Array.from(this.tabs()), this.listTabs());\n this.activateTab(tab);\n this.sendTabSelectEvent(tab);\n }\n\n /**\n * Handles all supported keyboard events for a tab.\n * @param event KeyboardEvent triggered.\n * @param tab Target tab.\n */\n protected onTabKeydown(event: Event, tab: EclTabComponent): void {\n if (!(event instanceof KeyboardEvent)) {\n return;\n }\n\n const index = this.getCurrentTabIndex(tab);\n switch (event.key) {\n case KeyCode.ARROW_LEFT: {\n event.preventDefault();\n this.onTabKeydownArrowLeft(index);\n break;\n }\n case KeyCode.ARROW_RIGHT: {\n event.preventDefault();\n this.onTabKeydownArrowRight(index);\n break;\n }\n case KeyCode.END: {\n event.preventDefault();\n this.onTabKeydownEnd();\n break;\n }\n case KeyCode.HOME: {\n event.preventDefault();\n this.onTabKeydownHome();\n break;\n }\n case KeyCode.ENTER: {\n event.preventDefault();\n this.onTabSelect(tab);\n break;\n }\n case KeyCode.TAB: {\n this.onTabTab();\n break;\n }\n default: {\n break;\n }\n }\n }\n\n protected onMoreButtonFocus(): void {\n const index = this.listTabs().findIndex(\n (el) => el._isActive() && !el.isHidden()\n );\n if (index < 0) return;\n this.openDropdown();\n this.moreButton()!.el.nativeElement.blur();\n this.focusOnDropdownTab(index);\n }\n\n /**\n * Handles right arrow key navigation.\n * @param index Current tab index.\n */\n private onTabKeydownArrowRight(index: number): void {\n if (this.isMobileBreakpoint()) {\n this.shiftTabs(ShiftDirection.NEXT);\n if (index === this.getTabsCount() - 1) {\n return;\n }\n }\n if (index === this.getTabsCount() - 1 && !this.isMobileBreakpoint()) {\n this.focusOnFirstTab();\n } else {\n this.focusOnNextTab(index);\n }\n }\n\n /**\n * Handles left arrow key navigation.\n * @param index Current tab index.\n */\n private onTabKeydownArrowLeft(index: number): void {\n if (this.isMobileBreakpoint()) {\n this.shiftTabs(ShiftDirection.PREVIOUS);\n if (index === 0) {\n return;\n }\n }\n\n if (index === 0 && !this.isMobileBreakpoint()) {\n this.focusOnLastTab();\n } else {\n this.focusOnPrevTab(index);\n }\n }\n\n /**\n * Focuses the first tab in the list.\n */\n private onTabKeydownHome(): void {\n this.focusOnFirstTab();\n }\n\n /**\n * Focuses the last tab in the list.\n */\n private onTabKeydownEnd(): void {\n this.focusOnLastTab();\n }\n\n private onTabTab(): void {\n this.closeDropdown();\n }\n\n private getCurrentTabIndex(tab: EclTabComponent): number {\n const index = this.getTabsAsArray().indexOf(tab)\n return index !== -1 ? index : this.listTabs().indexOf(tab);\n }\n\n private shiftTabs(dir: string): void {\n const newIndex = this.getShifIndex(dir, this.index());\n this.index.set(newIndex);\n\n this.isScrollPrevBtnShow.set(newIndex >= 1);\n this.isScrollNextBtnShow.set(newIndex < this.getTabsCount() - 1);\n\n const leftMargin = newIndex === 0 ? 0 : this.btnPrev()!.el.nativeElement.getBoundingClientRect().width + 13;\n\n let newOffset = 0;\n if (this.isRtl) {\n newOffset = Math.ceil(\n this.tabsList()!.nativeElement.offsetWidth -\n this.getTabsAsArray()[newIndex].hostElement.offsetLeft -\n this.getTabsAsArray()[newIndex].hostElement.offsetWidth -\n leftMargin,\n );\n } else {\n newOffset = Math.ceil(this.getTabsAsArray()[newIndex]?.hostElement.offsetLeft - leftMargin);\n }\n\n const maxScroll = Math.ceil(this.getTabsListWidth() - this.el.nativeElement.getBoundingClientRect().width);\n\n if (newOffset > maxScroll) {\n this.isScrollNextBtnShow.set(false);\n newOffset = maxScroll;\n }\n\n if (this.isRtl) {\n this.styleTransform.set(`translate3d(${newOffset}px, 0px, 0px)`);\n } else {\n this.styleTransform.set(`translate3d(-${newOffset}px, 0px, 0px)`);\n }\n }\n\n private getShifIndex(dir: string, index: number): number {\n if (dir === ShiftDirection.NEXT) {\n if (index === this.getTabsCount() - 1 && !this.isMobileBreakpoint() ) {\n return 0;\n } else {\n return index + 1;\n }\n } else {\n if (index === 0 && !this.isMobileBreakpoint()) {\n return this.getTabsCount() - 1;\n } else {\n return index - 1;\n }\n }\n }\n\n private createSecondListForDropdown(): void {\n const newList: EclTabComponent[] = [];\n this.tabs().forEach((tab) => {\n // Shallow-copying a tab would share the original's `isHidden`/`_isActive`\n // signal references, so writes to a dropdown clone would mutate the real tab\n // (corrupting the main-bar hidden state, the \"More\" count, and keyboard focus).\n // Build the clone with its own independent writable signals instead. A plain\n // `signal` is used (not `model`) because `model()` may only be called in a class\n // field initializer, and the clone only needs read/`set` access.\n const newTab = {\n ...tab,\n isHidden: signal(true),\n _isActive: signal(tab.isActive()),\n } as unknown as EclTabComponent;\n newList.push(newTab);\n });\n this.listTabs.set(newList);\n }\n\n private getTabsAsArray(): EclTabComponent[] {\n return Array.from(this.tabs());\n }\n\n private getTabsCount(): number {\n return this.tabs().length;\n }\n\n private closeDropdown(): void {\n this.isDropdownExpanded.set(false);\n }\n\n private openDropdown(): void {\n this.isDropdownExpanded.set(true);\n }\n\n private observeTabsChanges(): void {\n this.tabsChanges$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(this.onTabsChanges.bind(this));\n }\n\n private onTabsChanges(): void {\n this.diff = this.differ.diff(this.tabs());\n\n if (!this.diff) {\n this.tabs().forEach((tab) => {\n this.connectTabEvents(tab);\n });\n } else {\n this.diff.forEachAddedItem((change) => {\n this.connectTabEvents(change.item);\n });\n\n this.diff.forEachRemovedItem((change) => {\n this.disconnectTabEvents(change.item);\n });\n }\n this.createSecondListForDropdown();\n }\n\n private connectTabEvents(tab: EclTabComponent): void {\n if (this.tabSubscriptions.has(tab)) {\n return;\n }\n const subscriptions: OutputRefSubscription[] = [\n tab.selectTab.subscribe(() => {\n this.onTabSelect(tab);\n }),\n tab.keydownTab.subscribe((event) => {\n this.onTabKeydown(event, tab);\n }),\n ];\n this.tabSubscriptions.set(tab, subscriptions);\n }\n\n private focusOnNextTab(index: number): void {\n if (this.getTabsAsArray()[index + 1].isHidden()) {\n this.openDropdown();\n this.focusOnDropdownTab(index + 1);\n } else {\n this.closeDropdown();\n this.getTabsAsArray()[index + 1].onFocus();\n }\n }\n\n private focusOnFirstTab(): void {\n this.closeDropdown();\n this.getFirstTabFromArray().onFocus();\n }\n\n private focusOnLastTab(): void {\n if (!this.getLastTabFromArray().isHidden()) {\n this.getLastTabFromArray().onFocus();\n } else {\n this.openDropdown();\n this.focusOnDropdownTab(this.getTabsCount() - 1);\n }\n }\n\n private focusOnPrevTab(index: number): void {\n if (!this.listTabs()[index - 1].isHidden()) {\n this.focusOnDropdownTab(index - 1);\n } else {\n this.closeDropdown();\n this.getTabsAsArray()[index - 1].onFocus();\n }\n }\n\n private focusOnDropdownTab(index: number): void {\n this.dropdownList()!.nativeElement.children[index].firstChild.focus();\n }\n\n private getLastTabFromArray(): EclTabComponent {\n return this.getTabsAsArray()[this.getTabsAsArray().length - 1];\n }\n\n private getFirstTabFromArray(): EclTabComponent {\n return this.getTabsAsArray()[0];\n }\n\n private disconnectTabEvents(tab: EclTabComponent): void {\n const subscriptions = this.tabSubscriptions.get(tab);\n if (subscriptions) {\n subscriptions.forEach((subscription) => subscription.unsubscribe());\n this.tabSubscriptions.delete(tab);\n }\n }\n\n private deactivateAllTabs(tabs: EclTabComponent[], listTabs: EclTabComponent[]): void {\n tabs.forEach((it) => {\n it._isActive.set(false);\n });\n\n listTabs.forEach((it) => {\n it._isActive.set(false);\n });\n }\n\n private activateTab(tab: EclTabComponent): void {\n tab._isActive.set(true);\n }\n\n private sendTabSelectEvent(tab: EclTabComponent): void {\n this.tabSelect.emit(new EclTabSelectEvent(tab));\n }\n\n private observeBreakpointChanges(): void {\n this.cdkBreakpointObserver\n .observe(['(max-width: 480px)'])\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((result) => {\n this.isMobileBreakpoint.set(result.matches);\n });\n }\n\n private handleResize(): void {\n this.closeDropdown();\n if (this.isMobileBreakpoint()) {\n this.handleMobile();\n return;\n }\n\n this.styleTransform.set('translate3d(0px, 0px, 0px)');\n this.index.set(0);\n this.isScrollNextBtnShow.set(false);\n this.isScrollPrevBtnShow.set(false);\n\n // Reset list width to auto for measurement (direct DOM, same as ECL)\n this.tabsList()!.nativeElement.style.width = 'auto';\n\n // Temporarily show the more button to get its actual width\n this.moreItem()!.nativeElement.classList.remove('ecl-tabs__item--hidden');\n this.moreButton()!.el.nativeElement.classList.remove('ecl-tabs__toggle--hidden');\n const moreButtonWidth = this.moreButton()!.el.nativeElement.getBoundingClientRect().width;\n this.moreItem()!.nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton()!.el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n\n const hiddenItems: number[] = [];\n const listWidth = this.getTabsListWidth();\n\n // Measure all items first to check if they fit without the button\n this.tabs().forEach((item) => {\n item.isHidden.set(false);\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n });\n const itemWidths = this.tabs().map((item) => {\n const itemMargin = parseFloat(getComputedStyle(item.hostElement).marginInlineEnd) || 0;\n return item.hostElement.getBoundingClientRect().width + itemMargin;\n });\n const totalWidth = itemWidths.reduce((sum, w) => sum + w, 0);\n\n if (totalWidth > listWidth) {\n // Reserve space for the more button and hide items that don't fit\n this.tabs().forEach((item) => {\n item.isHidden.set(true);\n item.hostElement.classList.add('ecl-tabs__item--hidden');\n });\n let stopWidth = moreButtonWidth;\n this.tabs().forEach((item, i) => {\n item.isHidden.set(false);\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n if (listWidth >= stopWidth + itemWidths[i] && !hiddenItems.includes(i - 1)) {\n stopWidth += itemWidths[i];\n } else {\n item.isHidden.set(true);\n item.hostElement.classList.add('ecl-tabs__item--hidden');\n if (item._isActive()) {\n this.listTabs()[i]._isActive.set(true);\n }\n hiddenItems.push(i);\n }\n });\n }\n\n // Toggle the visibility of More button and items in dropdown\n if (!hiddenItems.length) {\n this.moreItem()!.nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton()!.el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n this.setActiveItemForMainTabs();\n this.hideAllDropdownTabs();\n } else {\n this.moreItem()!.nativeElement.classList.remove('ecl-tabs__item--hidden');\n this.moreButton()!.el.nativeElement.classList.remove('ecl-tabs__toggle--hidden');\n this.setHiddenItemsForDropdownTabs(hiddenItems);\n }\n this.cd.markForCheck();\n }\n\n private hideAllDropdownTabs(): void {\n this.listTabs().forEach(item => item.isHidden.set(true));\n }\n\n private setActiveItemForMainTabs(): void {\n this.listTabs().forEach((item, index) => {\n if (item._isActive()) {\n setTimeout(() => this.tabs()[index]._isActive.set(true));\n }\n });\n this.cd.markForCheck();\n }\n\n private getTabsListWidth(): number {\n return this.tabsList()!.nativeElement.getBoundingClientRect().width;\n }\n\n private setHiddenItemsForDropdownTabs(hiddenItems: number[]): void {\n this.listTabs().forEach((item, index) => {\n if (hiddenItems.includes(index)) {\n item.isHidden.set(false);\n } else {\n item.isHidden.set(true);\n }\n });\n }\n\n private handleMobile(): void {\n this.isScrollPrevBtnShow.set(false);\n this.isScrollNextBtnShow.set(true);\n this.setAllTabsVisible();\n\n // Hide the more item and button (direct DOM, same as ECL)\n this.moreItem()!.nativeElement.classList.add('ecl-tabs__item--hidden');\n this.moreButton()!.el.nativeElement.classList.add('ecl-tabs__toggle--hidden');\n\n // Reset to auto so scrollWidth reflects the natural content width\n this.tabsList()!.nativeElement.style.width = 'auto';\n // Remove hidden class directly from DOM elements\n this.tabs().forEach((item) => {\n item.hostElement.classList.remove('ecl-tabs__item--hidden');\n });\n // Use scrollWidth to also include item margins\n this.tabsList()!.nativeElement.style.width = `${this.tabsList()!.nativeElement.scrollWidth}px`;\n }\n\n private setAllTabsVisible(): void {\n this.tabs().forEach((item) => {\n item.isHidden.set(false);\n });\n }\n\n private handleRtlChangeState(): void {\n const isRtlOld = this.isRtl;\n this.eclRtlService.currentRtlState$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((rtlState) => {\n setTimeout(() => {\n this.isRtl = rtlState;\n if (this.isMobileBreakpoint() && this.hasRtlChanged(isRtlOld)) {\n this.handleRtlChange();\n }\n });\n });\n }\n\n private hasRtlChanged(isRtlOld: boolean): boolean {\n return isRtlOld !== this.isRtl;\n }\n\n private handleRtlChange(): void {\n this.handleMobile();\n this.styleTransform.set('translate3d(0px, 0px, 0px)');\n this.index.set(0);\n }\n\n private observeElementSizeChanges(): void {\n const resizeObserver = new ResizeObserver(() => {\n setTimeout(() => {\n this.handleResize();\n }, this.TIMEOUT_INTERVAL);\n });\n resizeObserver.observe(this.tabsList()!.nativeElement);\n this.destroyRef.onDestroy(() => resizeObserver.disconnect());\n }\n}\n","<div class=\"ecl-tabs__container\" [class.ecl-tabs__container--right]=\"isScrollNextBtnShow()\"\n [class.ecl-tabs__container--left]=\"isScrollPrevBtnShow()\">\n <div class=\"ecl-tabs__list\" role=\"tablist\" #tabsList\n [style.transform]=\"styleTransform()\" [style.transition-duration]=\"transitionDuration()\">\n <ng-content select=\"[eclTab]\"></ng-content>\n <div class=\"ecl-tabs__item ecl-tabs__item--more\" #moreItem>\n @if (listTabs().length > 0) {\n <div class=\"ecl-tabs__dropdown\" [class.ecl-tabs__dropdown--show]=\"isDropdownExpanded()\">\n <div class=\"ecl-tabs__dropdown-list\" #dropdownList>\n @for (tab of listTabs(); track tab.finalId(); let i = $index) {\n <div eclTab [isActive]=\"tab._isActive()\" [isHidden]=\"tab.isHidden()\" (click)=\"onTabSelect(tab)\"\n (keydown)=\"onTabKeydown($event, tab)\">\n <ecl-tab-label>{{ getTabLabel(i) }}</ecl-tab-label>\n </div>\n }\n </div>\n </div>\n }\n </div>\n </div>\n <button #moreButton eclButton class=\"ecl-tabs__toggle\" variant=\"tertiary\" [tabindex]=\"customTabIndex()\"\n [attr.aria-expanded]=\"isDropdownExpanded()\" [class.ecl-tabs__toggle--active]=\"isMoreButtonActive()\"\n (click)=\"onDropdownToggle()\" (focus)=\"onMoreButtonFocus()\">\n <span eclButtonLabel>\n {{ 'ecl.common.MORE' | translate }}\n ({{ hiddenTabsCount() }})\n </span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-180\" size=\"fluid\"></ecl-icon>\n </button>\n</div>\n\n<div class=\"ecl-tabs__controls\">\n <button #btnPrev eclButton variant=\"tertiary\" isIconOnly class=\"ecl-tabs__prev\"\n [style.display]=\"isScrollPrevBtnShow() ? 'flex' : 'none'\" (click)=\"onScrollPrev()\">\n <span eclButtonLabel>{{ 'ecl.common.PREVIOUS' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-270\" size=\"s\" class=\"\"> </ecl-icon>\n </button>\n <button #btnNext eclButton variant=\"tertiary\" isIconOnly class=\"ecl-tabs__next\"\n [style.display]=\"isScrollNextBtnShow() ? 'flex' : 'none'\" (click)=\"onScrollNext()\">\n <span eclButtonLabel>{{ 'ecl.common.NEXT' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" transform=\"rotate-90\" size=\"s\" class=\"\"> </ecl-icon>\n </button>\n</div>\n\n@for (tab of tabs(); track tab.finalId()) {\n@if (tab._isActive()) {\n<div id=\"{{tab.finalId()}}-tabpanel\" role=\"tabpanel\" aria-labelledby=\"{{tab.finalId()}}-link\" class=\"{{ bodyClass() }}\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate()\"></ng-container>\n</div>\n}\n}\n@for (tab of listTabs(); track tab.finalId()) {\n@if (tab._isActive()) {\n<div id=\"{{tab.finalId()}}-tabpanel\" role=\"tabpanel\" aria-labelledby=\"{{tab.finalId()}}-link\" class=\"{{ bodyClass() }}\">\n <ng-container *ngTemplateOutlet=\"tab.contentTemplate()\"></ng-container>\n</div>\n}\n}","import { EclTabLabelComponent } from './ecl-tab-label.component';\nimport { EclTabComponent } from './ecl-tab.component';\nimport { EclTabsComponent } from './ecl-tabs.component';\n\nexport * from './ecl-tabs.component';\nexport * from './ecl-tab.component';\nexport * from './ecl-tab-label.component';\nexport * from './events/ecl-tab-select.event';\n\nexport const EUI_ECL_TABS = [\n EclTabsComponent, EclTabComponent, EclTabLabelComponent,\n] as const;"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Aa,eAAe;CACxB;CAAkB;CAAiB;AAC7B"}
@@ -9,7 +9,7 @@ var EclTagRemoveEvent = class extends EclBaseEvent {};
9
9
  var EclTagComponent = class EclTagComponent extends ECLBaseDirective {
10
10
  constructor() {
11
11
  super();
12
- this.variant = input(void 0, ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
12
+ this.variant = input(...ngDevMode ? [void 0, { debugName: "variant" }] : /* istanbul ignore next */ []);
13
13
  this.isWrapped = input(true, {
14
14
  ...ngDevMode ? { debugName: "isWrapped" } : /* istanbul ignore next */ {},
15
15
  transform: booleanAttribute
@@ -35,7 +35,7 @@ var EclTagComponent = class EclTagComponent extends ECLBaseDirective {
35
35
  return this.variant() == "removable";
36
36
  }
37
37
  ngOnDestroy() {
38
- this.destroy$.next(null);
38
+ this.destroy$.next(true);
39
39
  this.destroy$.unsubscribe();
40
40
  }
41
41
  onRemoveClick() {
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-tag.mjs","names":[],"sources":["../../components/ecl-tag/events/ecl-tag-remove.event.ts","../../components/ecl-tag/ecl-tag.component.ts","../../components/ecl-tag/ecl-tag.component.html","../../components/ecl-tag/ecl-tag-set.directive.ts","../../components/ecl-tag/ecl-tag-icon.directive.ts","../../components/ecl-tag/index.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted when a tag is removed.\n */\nexport class EclTagRemoveEvent extends EclBaseEvent {}\n","import {\n Component,\n booleanAttribute,\n ElementRef,\n afterNextRender,\n OnDestroy,\n inject,\n output,\n input,\n computed,\n signal,\n} from '@angular/core';\nimport { TitleCasePipe } from '@angular/common';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { Subject, fromEvent, takeUntil } from 'rxjs';\nimport { KeyCode } from '@eui/ecl/core';\nimport { EclTagRemoveEvent } from './events/ecl-tag-remove.event';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\n/**\n * ECL Tag component that renders an ECL-compliant tag element, optionally removable.\n * Supports single-line and wrapped text layouts. When `variant` is `'removable'`,\n * a dismiss button is rendered and the tag hides itself on activation (unless\n * the emitted `remove` event is prevented).\n *\n * - Selectors: `ecl-tag`, `[eclTag]`.\n * - `variant`: only `'removable'` is currently supported; omit for a static tag.\n * - `isWrapped` (default `true`): set to `false` to add `ecl-tag--nowrap` for single-line display.\n * - Emits `remove` (`EclTagRemoveEvent`) when the dismiss button is clicked or Enter is pressed;\n * calling `preventDefault()` on the event cancels the auto-hide behaviour.\n * - Companion directives: `[eclTagSet]`, `[eclTagSetItem]`, `[eclTagIconExternal]`.\n */\n@Component({\n selector: 'ecl-tag, [eclTag]',\n templateUrl: './ecl-tag.component.html',\n imports: [...EUI_ECL_ICON, TitleCasePipe],\n host: {\n '[style.display]': 'isVisible() ? null : \"none\"',\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagComponent extends ECLBaseDirective implements OnDestroy {\n /**\n * Defines the variant of the tag.\n * Currently only 'removable' is supported.\n */\n readonly variant = input<'removable'>(undefined);\n\n /**\n * Whether the tag content should be allowed to wrap onto multiple lines.\n * Set to false to force single-line display (adds `ecl-tag--nowrap` class).\n * Defaults to true.\n */\n readonly isWrapped = input(true, { transform: booleanAttribute });\n\n /**\n * Event emitted when the tag is removed.\n * Can be prevented by calling `preventDefault()` on the emitted event.\n */\n readonly remove = output<EclTagRemoveEvent>();\n\n readonly isVisible = signal(true);\n\n readonly cssClasses = computed(() => {\n const variant = this.variant();\n return [\n super.getCssClasses('ecl-tag'),\n variant ? `ecl-tag--${variant}` : '',\n this.isWrapped() ? '' : 'ecl-tag--nowrap',\n ].join(' ').trim();\n });\n title = 'dismiss';\n private el = inject(ElementRef);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor() {\n super();\n afterNextRender(() => {\n this.connectEvents();\n });\n }\n\n /**\n * Whether the tag is removable (based on the `variant` input).\n */\n get isRemovable(): boolean {\n return this.variant() == 'removable';\n }\n\n /**\n * Lifecycle hook that cleans up subscriptions when the component is destroyed.\n */\n ngOnDestroy(): void {\n this.destroy$.next(null);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Called when the tag’s remove button is clicked (or enter key pressed).\n * Emits the `remove` event. If not prevented, the tag is hidden.\n */\n onRemoveClick(): void {\n const event = new EclTagRemoveEvent();\n this.remove.emit(event);\n\n if (!event.defaultPrevented) {\n this.isVisible.set(false);\n }\n }\n\n private connectEvents(): void {\n fromEvent(this.el.nativeElement, 'keydown')\n .pipe(takeUntil(this.destroy$))\n .subscribe((e: KeyboardEvent) => {\n if (this.isRemovable && e.key === KeyCode.ENTER) {\n this.onRemoveClick();\n }\n });\n }\n}\n","<ng-content></ng-content>\n@if(isRemovable) {\n <span class=\"ecl-tag__icon\" (click)=\"onRemoveClick()\">\n <ecl-icon icon=\"close-outline\" class=\"ecl-tag__icon-close\" [title]=\"title | titlecase\"></ecl-icon>\n</span>\n}\n","import { Directive, computed } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive to style a container as a set of tags.\n * Adds the `ecl-tag-set` class to the host element.\n */\n@Directive({\n selector: '[eclTagSet]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagSetDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-tag-set` to define the layout for a group of tags.\n */\n protected readonly cssClasses = computed<string>(() => super.getCssClasses('ecl-tag-set'));\n}\n\n/**\n * Directive to mark an element as an individual item in a tag set.\n * Adds the `ecl-tag-set__item` class to the host element.\n */\n@Directive({\n selector: '[eclTagSetItem]',\n host: {\n 'class': 'ecl-tag-set__item',\n },\n})\nexport class EclTagSetItemDirective extends ECLBaseDirective {}\n","import { Directive, computed } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive to apply external icon styling inside an ECL tag.\n * Adds specific CSS classes to render an \"external\" icon next to the tag content.\n */\n@Directive({\n selector: '[eclTagIconExternal]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagIconExternalDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-tag__icon ecl-tag__icon--external` to display the icon correctly.\n */\n protected readonly cssClasses = computed<string>(() => super.getCssClasses('ecl-tag__icon ecl-tag__icon--external'));\n}\n","import { EclTagComponent } from './ecl-tag.component';\nimport { EclTagSetDirective, EclTagSetItemDirective } from './ecl-tag-set.directive';\nimport { EclTagIconExternalDirective } from './ecl-tag-icon.directive';\n\nexport * from './ecl-tag.component';\nexport * from './ecl-tag-set.directive';\nexport * from './ecl-tag-icon.directive';\nexport * from './events/ecl-tag-remove.event';\n\nexport const EUI_ECL_TAG = [\n EclTagComponent, EclTagSetDirective, EclTagSetItemDirective, EclTagIconExternalDirective,\n] as const;"],"mappings":";;;;;;;AAKA,IAAa,oBAAb,cAAuC,aAAY,CAAG;ACoCtD,IAAa,kBAAb,MAAa,wBAAwB,iBAAgB;CAkCjD,cAAA;EACI,MAAK;EA9BA,KAAA,UAAU,MAAmB,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAOvC,KAAA,YAAY,MAAM,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAMrD,KAAA,SAAS,OAAM;EAEf,KAAA,YAAY,OAAO,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAExB,KAAA,aAAa,eAAc;GAChC,MAAM,UAAU,KAAK,QAAO;GAC5B,OAAO;IACH,MAAM,cAAc,SAAS;IAC7B,UAAU,YAAY,YAAY;IAClC,KAAK,UAAS,IAAK,KAAK;GAC3B,CAAA,CAAC,KAAK,GAAG,CAAC,CAAC,KAAI;EACpB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EACF,KAAA,QAAQ;EACA,KAAA,KAAK,O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;CAAA;CAAtB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAsB,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,oBAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAtB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAsB,YAAA,CAAA;EANlC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM,EACF,SAAS,oBACZ;EACJ,CAAA;;;ACjBD,IAAa,8BAAb,MAAa,oCAAoC,iBAAgB;CANjE,cAAA;;EAWuB,KAAA,aAAa,eAAuB,MAAM,cAAc,uCAAuC,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CACvH;CANY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA2B,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA3B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA2B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,eAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAA3B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA2B,YAAA,CAAA;EANvC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM,EACF,WAAW,eACd;EACJ,CAAA;;;ACHD,MAAa,cAAc;CACvB;CAAiB;CAAoB;CAAwB;AACvD"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-tag.mjs","names":[],"sources":["../../components/ecl-tag/events/ecl-tag-remove.event.ts","../../components/ecl-tag/ecl-tag.component.ts","../../components/ecl-tag/ecl-tag.component.html","../../components/ecl-tag/ecl-tag-set.directive.ts","../../components/ecl-tag/ecl-tag-icon.directive.ts","../../components/ecl-tag/index.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted when a tag is removed.\n */\nexport class EclTagRemoveEvent extends EclBaseEvent {}\n","import {\n Component,\n booleanAttribute,\n ElementRef,\n afterNextRender,\n OnDestroy,\n inject,\n output,\n input,\n computed,\n signal,\n} from '@angular/core';\nimport { TitleCasePipe } from '@angular/common';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { Subject, fromEvent, takeUntil } from 'rxjs';\nimport { KeyCode } from '@eui/ecl/core';\nimport { EclTagRemoveEvent } from './events/ecl-tag-remove.event';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\n/**\n * ECL Tag component that renders an ECL-compliant tag element, optionally removable.\n * Supports single-line and wrapped text layouts. When `variant` is `'removable'`,\n * a dismiss button is rendered and the tag hides itself on activation (unless\n * the emitted `remove` event is prevented).\n *\n * - Selectors: `ecl-tag`, `[eclTag]`.\n * - `variant`: only `'removable'` is currently supported; omit for a static tag.\n * - `isWrapped` (default `true`): set to `false` to add `ecl-tag--nowrap` for single-line display.\n * - Emits `remove` (`EclTagRemoveEvent`) when the dismiss button is clicked or Enter is pressed;\n * calling `preventDefault()` on the event cancels the auto-hide behaviour.\n * - Companion directives: `[eclTagSet]`, `[eclTagSetItem]`, `[eclTagIconExternal]`.\n */\n@Component({\n selector: 'ecl-tag, [eclTag]',\n templateUrl: './ecl-tag.component.html',\n imports: [...EUI_ECL_ICON, TitleCasePipe],\n host: {\n '[style.display]': 'isVisible() ? null : \"none\"',\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagComponent extends ECLBaseDirective implements OnDestroy {\n /**\n * Defines the variant of the tag.\n * Currently only 'removable' is supported.\n */\n readonly variant = input<'removable'>();\n\n /**\n * Whether the tag content should be allowed to wrap onto multiple lines.\n * Set to false to force single-line display (adds `ecl-tag--nowrap` class).\n * Defaults to true.\n */\n readonly isWrapped = input(true, { transform: booleanAttribute });\n\n /**\n * Event emitted when the tag is removed.\n * Can be prevented by calling `preventDefault()` on the emitted event.\n */\n readonly remove = output<EclTagRemoveEvent>();\n\n readonly isVisible = signal(true);\n\n readonly cssClasses = computed(() => {\n const variant = this.variant();\n return [\n super.getCssClasses('ecl-tag'),\n variant ? `ecl-tag--${variant}` : '',\n this.isWrapped() ? '' : 'ecl-tag--nowrap',\n ].join(' ').trim();\n });\n title = 'dismiss';\n private el = inject(ElementRef);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor() {\n super();\n afterNextRender(() => {\n this.connectEvents();\n });\n }\n\n /**\n * Whether the tag is removable (based on the `variant` input).\n */\n get isRemovable(): boolean {\n return this.variant() == 'removable';\n }\n\n /**\n * Lifecycle hook that cleans up subscriptions when the component is destroyed.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Called when the tag’s remove button is clicked (or enter key pressed).\n * Emits the `remove` event. If not prevented, the tag is hidden.\n */\n onRemoveClick(): void {\n const event = new EclTagRemoveEvent();\n this.remove.emit(event);\n\n if (!event.defaultPrevented) {\n this.isVisible.set(false);\n }\n }\n\n private connectEvents(): void {\n fromEvent<KeyboardEvent>(this.el.nativeElement, 'keydown')\n .pipe(takeUntil(this.destroy$))\n .subscribe((e) => {\n if (this.isRemovable && e.key === KeyCode.ENTER) {\n this.onRemoveClick();\n }\n });\n }\n}\n","<ng-content></ng-content>\n@if(isRemovable) {\n <span class=\"ecl-tag__icon\" (click)=\"onRemoveClick()\">\n <ecl-icon icon=\"close-outline\" class=\"ecl-tag__icon-close\" [title]=\"title | titlecase\"></ecl-icon>\n</span>\n}\n","import { Directive, computed } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive to style a container as a set of tags.\n * Adds the `ecl-tag-set` class to the host element.\n */\n@Directive({\n selector: '[eclTagSet]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagSetDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-tag-set` to define the layout for a group of tags.\n */\n protected readonly cssClasses = computed<string>(() => super.getCssClasses('ecl-tag-set'));\n}\n\n/**\n * Directive to mark an element as an individual item in a tag set.\n * Adds the `ecl-tag-set__item` class to the host element.\n */\n@Directive({\n selector: '[eclTagSetItem]',\n host: {\n 'class': 'ecl-tag-set__item',\n },\n})\nexport class EclTagSetItemDirective extends ECLBaseDirective {}\n","import { Directive, computed } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive to apply external icon styling inside an ECL tag.\n * Adds specific CSS classes to render an \"external\" icon next to the tag content.\n */\n@Directive({\n selector: '[eclTagIconExternal]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTagIconExternalDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-tag__icon ecl-tag__icon--external` to display the icon correctly.\n */\n protected readonly cssClasses = computed<string>(() => super.getCssClasses('ecl-tag__icon ecl-tag__icon--external'));\n}\n","import { EclTagComponent } from './ecl-tag.component';\nimport { EclTagSetDirective, EclTagSetItemDirective } from './ecl-tag-set.directive';\nimport { EclTagIconExternalDirective } from './ecl-tag-icon.directive';\n\nexport * from './ecl-tag.component';\nexport * from './ecl-tag-set.directive';\nexport * from './ecl-tag-icon.directive';\nexport * from './events/ecl-tag-remove.event';\n\nexport const EUI_ECL_TAG = [\n EclTagComponent, EclTagSetDirective, EclTagSetItemDirective, EclTagIconExternalDirective,\n] as const;"],"mappings":";;;;;;;AAKA,IAAa,oBAAb,cAAuC,aAAY,CAAG;ACoCtD,IAAa,kBAAb,MAAa,wBAAwB,iBAAgB;CAkCjD,cAAA;EACI,MAAK;EA9BA,KAAA,UAAU,MAAoB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAO9B,KAAA,YAAY,MAA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SAAA;GAAA,MAAA;GAA2B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,eAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAA3B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA2B,YAAA,CAAA;EANvC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM,EACF,WAAW,eACd;EACJ,CAAA;;;ACHD,MAAa,cAAc;CACvB;CAAiB;CAAoB;CAAwB;AACvD"}
@@ -20,7 +20,7 @@ var EclTextAreaDirective = class EclTextAreaDirective extends ECLBaseDirective {
20
20
  }, ...ngDevMode ? [{ debugName: "cssClasses" }] : /* istanbul ignore next */ []);
21
21
  }
22
22
  get invalidState() {
23
- if (this.ngControl) return this.ngControl.status === "INVALID" && this.ngControl.touched;
23
+ if (this.ngControl) return this.ngControl.status === "INVALID" && !!this.ngControl.touched;
24
24
  else return this.isInvalid();
25
25
  }
26
26
  static {
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-text-area.mjs","names":[],"sources":["../../components/ecl-text-area/ecl-text-area.directive.ts","../../components/ecl-text-area/index.ts"],"sourcesContent":["import { Directive, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive applied to a `<textarea>` HTML element to add ECL-compliant styling.\n * Integrates with Angular Reactive and Template-driven forms via `NgControl`:\n * when a form control is attached, the invalid state is derived from the control's\n * validation status; otherwise `isInvalid` is used directly.\n *\n * - Selector: `textarea[eclTextArea]`.\n * - `eclSize` controls the textarea width: `'s'`, `'m'` (default), or `'l'`.\n * - The `ecl-text-area--invalid` class is applied automatically when the control is\n * touched and invalid, or when `isInvalid` is `true`.\n */\n@Directive({\n selector: 'textarea[eclTextArea]',\n host: {\n '[class]': 'cssClasses()',\n '[class.ecl-text-area--invalid]': 'invalidState',\n },\n})\nexport class EclTextAreaDirective extends ECLBaseDirective {\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n\n /**\n * Width size of the textarea: `'s'`, `'m'` (default), or `'l'`.\n */\n readonly eclSize = input('m');\n /** When `true` (and no `NgControl` is present), applies the `ecl-text-area--invalid` class. */\n readonly isInvalid = input(false, { transform: booleanAttribute });\n\n /**\n * Adds specific classes for the component.\n */\n readonly cssClasses = computed(() => {\n const eclSize = this.eclSize();\n return [super.getCssClasses('ecl-text-area'), eclSize ? `ecl-text-area--${eclSize}` : ''].join(' ').trim();\n });\n\n /**\n * Adds 'ecl-text-area--invalid' class, depending on the invalid status of the component.\n */\n get invalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && this.ngControl.touched;\n } else {\n return this.isInvalid();\n }\n }\n}\n","import { EclTextAreaDirective } from './ecl-text-area.directive';\n\nexport * from './ecl-text-area.directive';\n\nexport const EUI_ECL_TEXT_AREA = [\n EclTextAreaDirective,\n] as const;\n"],"mappings":";;;;AAsBA,IAAa,uBAAb,MAAa,6BAA6B,iBAAgB;CAP1D,cAAA;;EAQqB,KAAA,YAAY,OAAO,WAAW;GAAE,UAAU;GAAM,MAAM;EAAI,CAAE;EAKpE,KAAA,UAAU,MAAM,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEpB,KAAA,YAAY,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAKtD,KAAA,aAAa,eAAc;GAChC,MAAM,UAAU,KAAK,QAAO;GAC5B,OAAO,CAAC,MAAM,cAAc,eAAe,GAAG,UAAU,kBAAkB,YAAY,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAI;EAC5G,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAYL;CAPG,IAAI,eAAY;EACZ,IAAI,KAAK,WACL,OAAO,KAAK,UAAU,WAAW,aAAa,KAAK,UAAU;OAE7D,OAAO,KAAK,UAAS;CAE7B;CA3BS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA;IAAA,SAAA;IAAA,gCAAA;GAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EAPhC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM;IACF,WAAW;IACX,kCAAkC;GACrC;EACJ,CAAA;;;;;;;;;;;;;;;;;;;;;ACjBD,MAAa,oBAAoB,CAC/B,oBACQ"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-text-area.mjs","names":[],"sources":["../../components/ecl-text-area/ecl-text-area.directive.ts","../../components/ecl-text-area/index.ts"],"sourcesContent":["import { Directive, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive applied to a `<textarea>` HTML element to add ECL-compliant styling.\n * Integrates with Angular Reactive and Template-driven forms via `NgControl`:\n * when a form control is attached, the invalid state is derived from the control's\n * validation status; otherwise `isInvalid` is used directly.\n *\n * - Selector: `textarea[eclTextArea]`.\n * - `eclSize` controls the textarea width: `'s'`, `'m'` (default), or `'l'`.\n * - The `ecl-text-area--invalid` class is applied automatically when the control is\n * touched and invalid, or when `isInvalid` is `true`.\n */\n@Directive({\n selector: 'textarea[eclTextArea]',\n host: {\n '[class]': 'cssClasses()',\n '[class.ecl-text-area--invalid]': 'invalidState',\n },\n})\nexport class EclTextAreaDirective extends ECLBaseDirective {\n private readonly ngControl = inject(NgControl, { optional: true, self: true });\n\n /**\n * Width size of the textarea: `'s'`, `'m'` (default), or `'l'`.\n */\n readonly eclSize = input('m');\n /** When `true` (and no `NgControl` is present), applies the `ecl-text-area--invalid` class. */\n readonly isInvalid = input(false, { transform: booleanAttribute });\n\n /**\n * Adds specific classes for the component.\n */\n readonly cssClasses = computed(() => {\n const eclSize = this.eclSize();\n return [super.getCssClasses('ecl-text-area'), eclSize ? `ecl-text-area--${eclSize}` : ''].join(' ').trim();\n });\n\n /**\n * Adds 'ecl-text-area--invalid' class, depending on the invalid status of the component.\n */\n get invalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && !!this.ngControl.touched;\n } else {\n return this.isInvalid();\n }\n }\n}\n","import { EclTextAreaDirective } from './ecl-text-area.directive';\n\nexport * from './ecl-text-area.directive';\n\nexport const EUI_ECL_TEXT_AREA = [\n EclTextAreaDirective,\n] as const;\n"],"mappings":";;;;AAsBA,IAAa,uBAAb,MAAa,6BAA6B,iBAAgB;CAP1D,cAAA;;EAQqB,KAAA,YAAY,OAAO,WAAW;GAAE,UAAU;GAAM,MAAM;EAAI,CAAE;EAKpE,KAAA,UAAU,MAAM,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEpB,KAAA,YAAY,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAKtD,KAAA,aAAa,eAAc;GAChC,MAAM,UAAU,KAAK,QAAO;GAC5B,OAAO,CAAC,MAAM,cAAc,eAAe,GAAG,UAAU,kBAAkB,YAAY,EAAE,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAI;EAC5G,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAYL;CAPG,IAAI,eAAY;EACZ,IAAI,KAAK,WACL,OAAO,KAAK,UAAU,WAAW,aAAa,CAAC,CAAC,KAAK,UAAU;OAE/D,OAAO,KAAK,UAAS;CAE7B;CA3BS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA;IAAA,SAAA;IAAA,gCAAA;GAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EAPhC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM;IACF,WAAW;IACX,kCAAkC;GACrC;EACJ,CAAA;;;;;;;;;;;;;;;;;;;;;ACjBD,MAAa,oBAAoB,CAC/B,oBACQ"}
@@ -166,7 +166,7 @@ var EclTimelineItemComponent = class EclTimelineItemComponent extends ECLBaseDir
166
166
  ...ngDevMode ? { debugName: "isToggler" } : /* istanbul ignore next */ {},
167
167
  transform: booleanAttribute
168
168
  });
169
- this.toggleGroup = input(void 0, ...ngDevMode ? [{ debugName: "toggleGroup" }] : /* istanbul ignore next */ []);
169
+ this.toggleGroup = input(...ngDevMode ? [void 0, { debugName: "toggleGroup" }] : /* istanbul ignore next */ []);
170
170
  this.toggle = output();
171
171
  this.eclLink = contentChild(forwardRef(() => EclLinkDirective), ...ngDevMode ? [{ debugName: "eclLink" }] : /* istanbul ignore next */ []);
172
172
  this.cssClasses = computed(() => [
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-timeline.mjs","names":[],"sources":["../../components/ecl-timeline/ecl-timeline-item-label.directive.ts","../../components/ecl-timeline/ecl-timeline-item-title.directive.ts","../../components/ecl-timeline/ecl-timeline-item-toggler.component.ts","../../components/ecl-timeline/ecl-timeline-item-toggler.component.html","../../components/ecl-timeline/events/ecl-timeline-item-toggle.event.ts","../../components/ecl-timeline/ecl-timeline-item.component.ts","../../components/ecl-timeline/ecl-timeline-item.component.html","../../components/ecl-timeline/ecl-timeline-set.directive.ts","../../components/ecl-timeline/ecl-timeline.component.ts","../../components/ecl-timeline/ecl-timeline.component.html","../../components/ecl-timeline/index.ts"],"sourcesContent":["import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline__label` class to an element.\n * Used to mark the label section within a timeline item.\n */\n@Directive({\n selector: '[eclTimelineItemLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineItemLabelDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-timeline__label` to style the label area of the timeline item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-timeline__label'));\n}\n","import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline__title` class to an element.\n * Used to mark the title section within a timeline item.\n */\n@Directive({\n selector: '[eclTimelineItemTitle]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineItemTitleDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-timeline__title` to style the title area of the timeline item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-timeline__title'));\n}\n","import { Component, output } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Optional custom toggler projected inside a `li[eclTimelineItem]` with `isToggler`.\n * Replaces the default built-in toggler button when present.\n * Emits `toggle` when activated; the parent `EclTimelineItemComponent` handles the expand/collapse logic.\n *\n * - Selector: `li[eclTimelineItemToggler]`.\n * - Emits `toggle` on click.\n */\n@Component({\n selector: 'li[eclTimelineItemToggler]',\n templateUrl: 'ecl-timeline-item-toggler.component.html',\n host: {\n '(click)': 'onTogglerClick()',\n },\n})\nexport class EclTimelineItemTogglerComponent extends ECLBaseDirective {\n /**\n * Event emitted when the toggler is activated (clicked).\n * Used to trigger expand/collapse behavior in the parent timeline item.\n */\n readonly toggle = output<void>();\n\n /**\n * Handles click events on the toggler element and emits the `toggle` event.\n */\n protected onTogglerClick(): void {\n this.toggle.emit();\n }\n}\n","<ng-content></ng-content>\n","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted when a timeline item is toggled (expanded or collapsed).\n */\nexport class EclTimelineItemToggleEvent extends EclBaseEvent {\n constructor(\n /**\n * Indicates whether the item is expanded after the toggle.\n */\n public isExpanded: boolean,\n\n /**\n * Identifier of the toggle group this item belongs to.\n */\n public toggleGroup: string,\n ) {\n super();\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n AfterContentInit,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n linkedSignal,\n OnDestroy,\n output,\n OutputRefSubscription,\n Renderer2,\n ViewEncapsulation,\n input,\n model,\n contentChild,\n} from '@angular/core';\nimport { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclTimelineItemLabelDirective } from './ecl-timeline-item-label.directive';\nimport { EclTimelineItemTogglerComponent } from './ecl-timeline-item-toggler.component';\nimport { EclTimelineItemToggleEvent } from './events/ecl-timeline-item-toggle.event';\n\n/**\n * Single item within an ECL Timeline list.\n * Supports headline styling, initial collapsed state, and toggler functionality\n * that expands or collapses all items sharing the same `toggleGroup` value.\n *\n * - Selector: `li[eclTimelineItem]`.\n * - `isHeadline` adds the `ecl-timeline__item--headline` modifier.\n * - `isCollapsed` initially hides the item; `isCollapsedState` is writable at runtime\n * so the parent `EclTimelineComponent` can expand/collapse it in response to a toggler.\n * - `isToggler` renders the item as the expand/collapse trigger; clicking it emits `toggle`\n * and updates `isTogglerExpanded`.\n * - `toggleGroup` identifies which other items this toggler controls.\n * - Emits `toggle` (`EclTimelineItemToggleEvent`) when the toggler is activated; callers\n * can call `preventDefault()` to suppress the built-in expand/collapse behaviour.\n * - The optional projected `EclTimelineItemTogglerComponent` replaces the default toggler UI.\n */\n@Component({\n selector: 'li[eclTimelineItem]',\n templateUrl: 'ecl-timeline-item.component.html',\n imports: [...EUI_ECL_ICON, ...EUI_ECL_BUTTON, NgTemplateOutlet],\n host: {\n '[class]': 'cssClasses()',\n },\n encapsulation: ViewEncapsulation.None,\n})\nexport class EclTimelineItemComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n /**\n * Text label shown when the item is collapsed and can be expanded.\n * Defaults to `'Expand'`.\n */\n readonly expandLabel = input('Expand');\n\n /**\n * Text label shown when the item is expanded and can be collapsed.\n * Defaults to `'Collapse'`.\n */\n readonly collapseLabel = input('Collapse');\n\n readonly isHeadline = input(false, { transform: booleanAttribute });\n\n /**\n * Indicates whether the toggler is initially expanded.\n * Used for toggler-type items.\n */\n readonly isTogglerExpanded = model(false);\n\n /**\n * Whether the item is initially collapsed.\n * Applies the `ecl-timeline__item--collapsed` CSS class when true.\n */\n readonly isCollapsed = input(false, { transform: booleanAttribute });\n\n /**\n * Live collapsed state of the item.\n *\n * Seeded from the `isCollapsed` input but writable at runtime, so the parent\n * `EclTimelineComponent` can expand or collapse grouped items in response to\n * a toggler interaction. Resets to the input value if the input changes.\n */\n readonly isCollapsedState = linkedSignal(() => this.isCollapsed());\n\n /**\n * Whether the item is a toggler (e.g. expands/collapses related items).\n * Applies the `ecl-timeline__item--toggle` CSS class when true.\n */\n readonly isToggler = input(false, { transform: booleanAttribute });\n\n /**\n * Name of the toggle group that this item belongs to.\n * Used to coordinate collapsing/expanding related items.\n */\n readonly toggleGroup = input<string>(undefined);\n\n /**\n * Event emitted when the toggler is clicked.\n * Consumers can call `preventDefault()` on the event to cancel toggle behavior.\n */\n readonly toggle = output<EclTimelineItemToggleEvent>();\n\n /**\n * Reference to a projected ECL link, used for setting focus after toggle.\n * Read by the parent `EclTimelineComponent` to move focus after a toggle.\n */\n readonly eclLink = contentChild(forwardRef(() => EclLinkDirective));\n\n /**\n * Host CSS classes for the timeline item.\n *\n * Each modifier is derived by invoking the corresponding signal, so the\n * classes reflect the actual input / runtime values. Binding the signal\n * directly through `@HostBinding('class.x')` would always evaluate the\n * signal function as truthy and apply every modifier unconditionally.\n */\n protected readonly cssClasses = computed(() =>\n [\n super.getCssClasses('ecl-timeline__item'),\n this.isHeadline() ? 'ecl-timeline__item--headline' : '',\n this.isCollapsedState() ? 'ecl-timeline__item--collapsed' : '',\n this.isToggler() ? 'ecl-timeline__item--toggle' : '',\n ].join(' '),\n );\n\n /**\n * Reference to a projected custom toggler component.\n */\n private readonly timelineItemToggler = contentChild(forwardRef(() => EclTimelineItemTogglerComponent));\n\n /**\n * Reference to a projected label for the item. Used to set height, when item has no content and title.\n */\n private readonly eclTimelineItemLabel = contentChild(forwardRef(() => EclTimelineItemLabelDirective), { read: ElementRef });\n\n private readonly injector = inject(Injector);\n private readonly renderer = inject(Renderer2);\n private readonly host = inject(ElementRef<HTMLElement>);\n private togglerSubscription?: OutputRefSubscription;\n private hasMeasuredLabelHeight = false;\n\n constructor() {\n super();\n\n // Measure the label height once the item is actually displayed, and expose\n // it as the `--ecl-timeline-label-height` custom property. A collapsed item\n // is `display: none` and therefore has no measurable height, so the\n // measurement is deferred until the item becomes visible. Reacting to\n // `isCollapsedState` ensures items revealed by a toggler are measured too.\n effect(() => {\n const isMeasurable = !this.isToggler() && !this.isCollapsedState();\n if (!isMeasurable || this.hasMeasuredLabelHeight) {\n return;\n }\n\n let labelHeight = 0;\n\n afterNextRender(\n {\n earlyRead: () => {\n const labelElement = this.eclTimelineItemLabel();\n labelHeight = labelElement?.nativeElement.getBoundingClientRect().height ?? 0;\n },\n write: () => {\n if (labelHeight > 0) {\n this.hasMeasuredLabelHeight = true;\n this.host.nativeElement.style.setProperty('--ecl-timeline-label-height', `${labelHeight}px`);\n this.renderer.setStyle(this.host.nativeElement, 'box-sizing', 'unset');\n }\n },\n },\n { injector: this.injector },\n );\n });\n }\n\n /**\n * Lifecycle hook that sets up event subscriptions after content is initialized.\n */\n ngAfterContentInit(): void {\n const timelineItemToggler = this.timelineItemToggler();\n if (timelineItemToggler) {\n this.togglerSubscription = timelineItemToggler.toggle.subscribe(() => {\n this.handleToggler();\n });\n }\n }\n\n /**\n * Lifecycle hook called on component destruction to clean up subscriptions.\n */\n ngOnDestroy(): void {\n this.togglerSubscription?.unsubscribe();\n }\n\n /**\n * True if the expand label should be visible.\n */\n protected get isShowExpandLabel(): boolean {\n return !!this.expandLabel() && !this.isTogglerExpanded();\n }\n\n /**\n * True if the collapse label should be visible.\n */\n protected get isShowCollapseLabel(): boolean {\n return !!this.collapseLabel() && this.isTogglerExpanded();\n }\n\n /**\n * Checks whether the default toggler UI should be used.\n * Returns true if this is a toggler and no custom toggler component is projected.\n */\n protected hasDefaultToggler(): boolean {\n return this.isToggler() && !this.timelineItemToggler();\n }\n\n /**\n * Handles click events from the default toggler element.\n */\n protected onTogglerClick(): void {\n this.handleToggler();\n }\n\n private handleToggler(): void {\n const nextExpandedState = !this.isTogglerExpanded();\n const event = new EclTimelineItemToggleEvent(nextExpandedState, this.toggleGroup());\n\n if (!event.defaultPrevented) {\n this.toggle.emit(event);\n this.isTogglerExpanded.set(nextExpandedState);\n }\n }\n}\n","@if (isToggler()) {\n <div class=\"ecl-timeline__content\">\n @if (hasDefaultToggler()) {\n <button eclButton (click)=\"onTogglerClick()\" variant=\"secondary\">\n @if (isShowExpandLabel) {\n <span eclButtonLabel> {{ expandLabel() }} </span>\n }\n @if (isShowCollapseLabel) {\n <span eclButtonLabel> {{ collapseLabel() }} </span>\n }\n <ecl-icon icon=\"corner-arrow\" size=\"fluid\" [transform]=\"!isTogglerExpanded() ? 'rotate-180' : ''\"></ecl-icon>\n </button>\n }\n\n\n <ng-content select=\"ecl-timeline-item-toggler\"></ng-content>\n\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n}\n@else {\n <div class=\"ecl-timeline__tooltip\">\n <div class=\"ecl-timeline__tooltip-arrow\"></div>\n <ng-content select=\"[eclTimelineItemLabel]\"></ng-content>\n\n <ng-content select=\"[eclTimelineItemTitle]\"></ng-content>\n\n <div class=\"ecl-timeline__content\" #contentSlot>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </div>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline-set` class to an element.\n */\n@Directive({\n selector: '[eclTimelineSet]',\n host: {\n 'class': 'ecl-timeline-set',\n },\n})\nexport class EclTimelineSetDirective extends ECLBaseDirective {}\n","import {\n Component,\n AfterContentInit,\n computed,\n forwardRef,\n OnDestroy,\n OutputRefSubscription,\n contentChildren,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclTimelineItemComponent } from './ecl-timeline-item.component';\nimport { EclTimelineItemToggleEvent } from './events/ecl-timeline-item-toggle.event';\n\n/**\n * ECL Timeline component that renders an ordered list of timeline events.\n * Manages expand/collapse of grouped items when a toggler item is activated,\n * and applies the `ecl-timeline--has-headline` modifier when a headline item is present.\n *\n * - Selector: `ol[eclTimeline]`.\n * - Child items are `li[eclTimelineItem]` elements.\n * - Toggle groups: a `li[eclTimelineItem]` with `isToggler` and `toggleGroup` controls\n * the collapsed state of other items sharing the same `toggleGroup` value.\n * - Companion directives: `[eclTimelineSet]`, `[eclTimelineItemTitle]`, `[eclTimelineItemLabel]`.\n * - Sub-components: `EclTimelineItemComponent`, `EclTimelineItemTogglerComponent`.\n */\n@Component({\n selector: 'ol[eclTimeline]',\n templateUrl: 'ecl-timeline.component.html',\n host: {\n '[attr.data-ecl-timeline-expanded]': 'isExpanded',\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n protected isExpanded: boolean | null = null;\n\n /**\n * Host CSS classes for the timeline.\n *\n * Adds the `ecl-timeline--has-headline` modifier when the projected content\n * includes a headline item.\n */\n protected readonly cssClasses = computed(() =>\n [\n super.getCssClasses('ecl-timeline'),\n this.hasHeadlineItem() ? 'ecl-timeline--has-headline' : '',\n ].join(' '),\n );\n\n /**\n * List of projected `EclTimelineItemComponent` instances.\n * Collected using `@ContentChildren`.\n */\n private readonly timelineItems = contentChildren(forwardRef(() => EclTimelineItemComponent));\n\n /**\n * Whether any projected item is marked as a headline.\n */\n private readonly hasHeadlineItem = computed(() => this.timelineItems().some((item) => item.isHeadline()));\n\n private readonly togglerSubscriptions: OutputRefSubscription[] = [];\n private isFirstExpandedLinkFocused = false;\n\n /**\n * Lifecycle hook that is called after content (child components)\n * has been fully initialized.\n *\n * Sets up toggle event subscriptions for `isToggler` items and\n * collapses/expands related items in the same toggle group accordingly.\n */\n ngAfterContentInit(): void {\n this.timelineItems()\n .filter((item) => item.isToggler())\n .forEach((it) => {\n const subscription = it.toggle.subscribe((evt: EclTimelineItemToggleEvent) => {\n if (evt.isExpanded) {\n this.isExpanded = true;\n } else {\n this.isExpanded = null;\n }\n const timelineItems = this.timelineItems();\n if (timelineItems && !evt.defaultPrevented) {\n timelineItems\n .filter((item) => item.toggleGroup() === evt.toggleGroup)\n .filter((item) => !item.isToggler())\n .forEach((item) => {\n // An expanded toggler reveals the grouped items,\n // a collapsed toggler hides them again.\n item.isCollapsedState.set(!evt.isExpanded);\n this.onFocusFirstExpandedLink(item);\n });\n }\n });\n this.togglerSubscriptions.push(subscription);\n });\n }\n\n /**\n * Lifecycle hook called when the component is destroyed.\n * Cleans up subscriptions.\n */\n ngOnDestroy(): void {\n this.togglerSubscriptions.forEach((subscription) => subscription.unsubscribe());\n }\n\n /**\n * Focuses the first link in the expanded timeline item,\n * ensuring it's only done once per toggle group interaction.\n *\n * @param item The timeline item to check and potentially focus.\n */\n private onFocusFirstExpandedLink(item: EclTimelineItemComponent): void {\n if (!item.isCollapsedState()) {\n if (!this.isFirstExpandedLinkFocused && item.eclLink()) {\n setTimeout(() => item.eclLink().onFocus());\n this.isFirstExpandedLinkFocused = true;\n }\n } else {\n this.isFirstExpandedLinkFocused = false;\n }\n }\n}\n","<ng-content></ng-content>\n","import { EclTimelineItemLabelDirective } from './ecl-timeline-item-label.directive';\nimport { EclTimelineItemTitleDirective } from './ecl-timeline-item-title.directive';\nimport { EclTimelineItemTogglerComponent } from './ecl-timeline-item-toggler.component';\nimport { EclTimelineItemComponent } from './ecl-timeline-item.component';\nimport { EclTimelineSetDirective } from './ecl-timeline-set.directive';\nimport { EclTimelineComponent } from './ecl-timeline.component';\n\nexport * from './ecl-timeline.component';\nexport * from './ecl-timeline-item.component';\nexport * from './ecl-timeline-item-label.directive';\nexport * from './ecl-timeline-item-title.directive';\nexport * from './ecl-timeline-item-toggler.component';\nexport * from './ecl-timeline-set.directive';\nexport * from './events/ecl-timeline-item-toggle.event';\n\nexport const EUI_ECL_TIMELINE = [\n EclTimelineComponent,\n EclTimelineItemComponent,\n E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AA,EAAA;AAAA,CAAA;AEtC/F,MAAa,mBAAmB;CAC5B;CACA;CACA;CACA;CACA;CACA;AACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-timeline.mjs","names":[],"sources":["../../components/ecl-timeline/ecl-timeline-item-label.directive.ts","../../components/ecl-timeline/ecl-timeline-item-title.directive.ts","../../components/ecl-timeline/ecl-timeline-item-toggler.component.ts","../../components/ecl-timeline/ecl-timeline-item-toggler.component.html","../../components/ecl-timeline/events/ecl-timeline-item-toggle.event.ts","../../components/ecl-timeline/ecl-timeline-item.component.ts","../../components/ecl-timeline/ecl-timeline-item.component.html","../../components/ecl-timeline/ecl-timeline-set.directive.ts","../../components/ecl-timeline/ecl-timeline.component.ts","../../components/ecl-timeline/ecl-timeline.component.html","../../components/ecl-timeline/index.ts"],"sourcesContent":["import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline__label` class to an element.\n * Used to mark the label section within a timeline item.\n */\n@Directive({\n selector: '[eclTimelineItemLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineItemLabelDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-timeline__label` to style the label area of the timeline item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-timeline__label'));\n}\n","import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline__title` class to an element.\n * Used to mark the title section within a timeline item.\n */\n@Directive({\n selector: '[eclTimelineItemTitle]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineItemTitleDirective extends ECLBaseDirective {\n /**\n * CSS classes applied to the host element.\n * Adds `ecl-timeline__title` to style the title area of the timeline item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-timeline__title'));\n}\n","import { Component, output } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Optional custom toggler projected inside a `li[eclTimelineItem]` with `isToggler`.\n * Replaces the default built-in toggler button when present.\n * Emits `toggle` when activated; the parent `EclTimelineItemComponent` handles the expand/collapse logic.\n *\n * - Selector: `li[eclTimelineItemToggler]`.\n * - Emits `toggle` on click.\n */\n@Component({\n selector: 'li[eclTimelineItemToggler]',\n templateUrl: 'ecl-timeline-item-toggler.component.html',\n host: {\n '(click)': 'onTogglerClick()',\n },\n})\nexport class EclTimelineItemTogglerComponent extends ECLBaseDirective {\n /**\n * Event emitted when the toggler is activated (clicked).\n * Used to trigger expand/collapse behavior in the parent timeline item.\n */\n readonly toggle = output<void>();\n\n /**\n * Handles click events on the toggler element and emits the `toggle` event.\n */\n protected onTogglerClick(): void {\n this.toggle.emit();\n }\n}\n","<ng-content></ng-content>\n","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted when a timeline item is toggled (expanded or collapsed).\n */\nexport class EclTimelineItemToggleEvent extends EclBaseEvent {\n constructor(\n /**\n * Indicates whether the item is expanded after the toggle.\n */\n public isExpanded: boolean,\n\n /**\n * Identifier of the toggle group this item belongs to.\n */\n public toggleGroup: string,\n ) {\n super();\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n AfterContentInit,\n booleanAttribute,\n Component,\n computed,\n effect,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n linkedSignal,\n OnDestroy,\n output,\n OutputRefSubscription,\n Renderer2,\n ViewEncapsulation,\n input,\n model,\n contentChild,\n} from '@angular/core';\nimport { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclTimelineItemLabelDirective } from './ecl-timeline-item-label.directive';\nimport { EclTimelineItemTogglerComponent } from './ecl-timeline-item-toggler.component';\nimport { EclTimelineItemToggleEvent } from './events/ecl-timeline-item-toggle.event';\n\n/**\n * Single item within an ECL Timeline list.\n * Supports headline styling, initial collapsed state, and toggler functionality\n * that expands or collapses all items sharing the same `toggleGroup` value.\n *\n * - Selector: `li[eclTimelineItem]`.\n * - `isHeadline` adds the `ecl-timeline__item--headline` modifier.\n * - `isCollapsed` initially hides the item; `isCollapsedState` is writable at runtime\n * so the parent `EclTimelineComponent` can expand/collapse it in response to a toggler.\n * - `isToggler` renders the item as the expand/collapse trigger; clicking it emits `toggle`\n * and updates `isTogglerExpanded`.\n * - `toggleGroup` identifies which other items this toggler controls.\n * - Emits `toggle` (`EclTimelineItemToggleEvent`) when the toggler is activated; callers\n * can call `preventDefault()` to suppress the built-in expand/collapse behaviour.\n * - The optional projected `EclTimelineItemTogglerComponent` replaces the default toggler UI.\n */\n@Component({\n selector: 'li[eclTimelineItem]',\n templateUrl: 'ecl-timeline-item.component.html',\n imports: [...EUI_ECL_ICON, ...EUI_ECL_BUTTON, NgTemplateOutlet],\n host: {\n '[class]': 'cssClasses()',\n },\n encapsulation: ViewEncapsulation.None,\n})\nexport class EclTimelineItemComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n /**\n * Text label shown when the item is collapsed and can be expanded.\n * Defaults to `'Expand'`.\n */\n readonly expandLabel = input('Expand');\n\n /**\n * Text label shown when the item is expanded and can be collapsed.\n * Defaults to `'Collapse'`.\n */\n readonly collapseLabel = input('Collapse');\n\n readonly isHeadline = input(false, { transform: booleanAttribute });\n\n /**\n * Indicates whether the toggler is initially expanded.\n * Used for toggler-type items.\n */\n readonly isTogglerExpanded = model(false);\n\n /**\n * Whether the item is initially collapsed.\n * Applies the `ecl-timeline__item--collapsed` CSS class when true.\n */\n readonly isCollapsed = input(false, { transform: booleanAttribute });\n\n /**\n * Live collapsed state of the item.\n *\n * Seeded from the `isCollapsed` input but writable at runtime, so the parent\n * `EclTimelineComponent` can expand or collapse grouped items in response to\n * a toggler interaction. Resets to the input value if the input changes.\n */\n readonly isCollapsedState = linkedSignal(() => this.isCollapsed());\n\n /**\n * Whether the item is a toggler (e.g. expands/collapses related items).\n * Applies the `ecl-timeline__item--toggle` CSS class when true.\n */\n readonly isToggler = input(false, { transform: booleanAttribute });\n\n /**\n * Name of the toggle group that this item belongs to.\n * Used to coordinate collapsing/expanding related items.\n */\n readonly toggleGroup = input<string>();\n\n /**\n * Event emitted when the toggler is clicked.\n * Consumers can call `preventDefault()` on the event to cancel toggle behavior.\n */\n readonly toggle = output<EclTimelineItemToggleEvent>();\n\n /**\n * Reference to a projected ECL link, used for setting focus after toggle.\n * Read by the parent `EclTimelineComponent` to move focus after a toggle.\n */\n readonly eclLink = contentChild(forwardRef(() => EclLinkDirective));\n\n /**\n * Host CSS classes for the timeline item.\n *\n * Each modifier is derived by invoking the corresponding signal, so the\n * classes reflect the actual input / runtime values. Binding the signal\n * directly through `@HostBinding('class.x')` would always evaluate the\n * signal function as truthy and apply every modifier unconditionally.\n */\n protected readonly cssClasses = computed(() =>\n [\n super.getCssClasses('ecl-timeline__item'),\n this.isHeadline() ? 'ecl-timeline__item--headline' : '',\n this.isCollapsedState() ? 'ecl-timeline__item--collapsed' : '',\n this.isToggler() ? 'ecl-timeline__item--toggle' : '',\n ].join(' '),\n );\n\n /**\n * Reference to a projected custom toggler component.\n */\n private readonly timelineItemToggler = contentChild(forwardRef(() => EclTimelineItemTogglerComponent));\n\n /**\n * Reference to a projected label for the item. Used to set height, when item has no content and title.\n */\n private readonly eclTimelineItemLabel = contentChild(forwardRef(() => EclTimelineItemLabelDirective), { read: ElementRef });\n\n private readonly injector = inject(Injector);\n private readonly renderer = inject(Renderer2);\n private readonly host = inject(ElementRef<HTMLElement>);\n private togglerSubscription?: OutputRefSubscription;\n private hasMeasuredLabelHeight = false;\n\n constructor() {\n super();\n\n // Measure the label height once the item is actually displayed, and expose\n // it as the `--ecl-timeline-label-height` custom property. A collapsed item\n // is `display: none` and therefore has no measurable height, so the\n // measurement is deferred until the item becomes visible. Reacting to\n // `isCollapsedState` ensures items revealed by a toggler are measured too.\n effect(() => {\n const isMeasurable = !this.isToggler() && !this.isCollapsedState();\n if (!isMeasurable || this.hasMeasuredLabelHeight) {\n return;\n }\n\n let labelHeight = 0;\n\n afterNextRender(\n {\n earlyRead: () => {\n const labelElement = this.eclTimelineItemLabel();\n labelHeight = labelElement?.nativeElement.getBoundingClientRect().height ?? 0;\n },\n write: () => {\n if (labelHeight > 0) {\n this.hasMeasuredLabelHeight = true;\n this.host.nativeElement.style.setProperty('--ecl-timeline-label-height', `${labelHeight}px`);\n this.renderer.setStyle(this.host.nativeElement, 'box-sizing', 'unset');\n }\n },\n },\n { injector: this.injector },\n );\n });\n }\n\n /**\n * Lifecycle hook that sets up event subscriptions after content is initialized.\n */\n ngAfterContentInit(): void {\n const timelineItemToggler = this.timelineItemToggler();\n if (timelineItemToggler) {\n this.togglerSubscription = timelineItemToggler.toggle.subscribe(() => {\n this.handleToggler();\n });\n }\n }\n\n /**\n * Lifecycle hook called on component destruction to clean up subscriptions.\n */\n ngOnDestroy(): void {\n this.togglerSubscription?.unsubscribe();\n }\n\n /**\n * True if the expand label should be visible.\n */\n protected get isShowExpandLabel(): boolean {\n return !!this.expandLabel() && !this.isTogglerExpanded();\n }\n\n /**\n * True if the collapse label should be visible.\n */\n protected get isShowCollapseLabel(): boolean {\n return !!this.collapseLabel() && this.isTogglerExpanded();\n }\n\n /**\n * Checks whether the default toggler UI should be used.\n * Returns true if this is a toggler and no custom toggler component is projected.\n */\n protected hasDefaultToggler(): boolean {\n return this.isToggler() && !this.timelineItemToggler();\n }\n\n /**\n * Handles click events from the default toggler element.\n */\n protected onTogglerClick(): void {\n this.handleToggler();\n }\n\n private handleToggler(): void {\n const nextExpandedState = !this.isTogglerExpanded();\n const event = new EclTimelineItemToggleEvent(nextExpandedState, this.toggleGroup()!);\n\n if (!event.defaultPrevented) {\n this.toggle.emit(event);\n this.isTogglerExpanded.set(nextExpandedState);\n }\n }\n}\n","@if (isToggler()) {\n <div class=\"ecl-timeline__content\">\n @if (hasDefaultToggler()) {\n <button eclButton (click)=\"onTogglerClick()\" variant=\"secondary\">\n @if (isShowExpandLabel) {\n <span eclButtonLabel> {{ expandLabel() }} </span>\n }\n @if (isShowCollapseLabel) {\n <span eclButtonLabel> {{ collapseLabel() }} </span>\n }\n <ecl-icon icon=\"corner-arrow\" size=\"fluid\" [transform]=\"!isTogglerExpanded() ? 'rotate-180' : ''\"></ecl-icon>\n </button>\n }\n\n\n <ng-content select=\"ecl-timeline-item-toggler\"></ng-content>\n\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n}\n@else {\n <div class=\"ecl-timeline__tooltip\">\n <div class=\"ecl-timeline__tooltip-arrow\"></div>\n <ng-content select=\"[eclTimelineItemLabel]\"></ng-content>\n\n <ng-content select=\"[eclTimelineItemTitle]\"></ng-content>\n\n <div class=\"ecl-timeline__content\" #contentSlot>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n </div>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies the `ecl-timeline-set` class to an element.\n */\n@Directive({\n selector: '[eclTimelineSet]',\n host: {\n 'class': 'ecl-timeline-set',\n },\n})\nexport class EclTimelineSetDirective extends ECLBaseDirective {}\n","import {\n Component,\n AfterContentInit,\n computed,\n forwardRef,\n OnDestroy,\n OutputRefSubscription,\n contentChildren,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclTimelineItemComponent } from './ecl-timeline-item.component';\nimport { EclTimelineItemToggleEvent } from './events/ecl-timeline-item-toggle.event';\n\n/**\n * ECL Timeline component that renders an ordered list of timeline events.\n * Manages expand/collapse of grouped items when a toggler item is activated,\n * and applies the `ecl-timeline--has-headline` modifier when a headline item is present.\n *\n * - Selector: `ol[eclTimeline]`.\n * - Child items are `li[eclTimelineItem]` elements.\n * - Toggle groups: a `li[eclTimelineItem]` with `isToggler` and `toggleGroup` controls\n * the collapsed state of other items sharing the same `toggleGroup` value.\n * - Companion directives: `[eclTimelineSet]`, `[eclTimelineItemTitle]`, `[eclTimelineItemLabel]`.\n * - Sub-components: `EclTimelineItemComponent`, `EclTimelineItemTogglerComponent`.\n */\n@Component({\n selector: 'ol[eclTimeline]',\n templateUrl: 'ecl-timeline.component.html',\n host: {\n '[attr.data-ecl-timeline-expanded]': 'isExpanded',\n '[class]': 'cssClasses()',\n },\n})\nexport class EclTimelineComponent extends ECLBaseDirective implements AfterContentInit, OnDestroy {\n protected isExpanded: boolean | null = null;\n\n /**\n * Host CSS classes for the timeline.\n *\n * Adds the `ecl-timeline--has-headline` modifier when the projected content\n * includes a headline item.\n */\n protected readonly cssClasses = computed(() =>\n [\n super.getCssClasses('ecl-timeline'),\n this.hasHeadlineItem() ? 'ecl-timeline--has-headline' : '',\n ].join(' '),\n );\n\n /**\n * List of projected `EclTimelineItemComponent` instances.\n * Collected using `@ContentChildren`.\n */\n private readonly timelineItems = contentChildren(forwardRef(() => EclTimelineItemComponent));\n\n /**\n * Whether any projected item is marked as a headline.\n */\n private readonly hasHeadlineItem = computed(() => this.timelineItems().some((item) => item.isHeadline()));\n\n private readonly togglerSubscriptions: OutputRefSubscription[] = [];\n private isFirstExpandedLinkFocused = false;\n\n /**\n * Lifecycle hook that is called after content (child components)\n * has been fully initialized.\n *\n * Sets up toggle event subscriptions for `isToggler` items and\n * collapses/expands related items in the same toggle group accordingly.\n */\n ngAfterContentInit(): void {\n this.timelineItems()\n .filter((item) => item.isToggler())\n .forEach((it) => {\n const subscription = it.toggle.subscribe((evt: EclTimelineItemToggleEvent) => {\n if (evt.isExpanded) {\n this.isExpanded = true;\n } else {\n this.isExpanded = null;\n }\n const timelineItems = this.timelineItems();\n if (timelineItems && !evt.defaultPrevented) {\n timelineItems\n .filter((item) => item.toggleGroup() === evt.toggleGroup)\n .filter((item) => !item.isToggler())\n .forEach((item) => {\n // An expanded toggler reveals the grouped items,\n // a collapsed toggler hides them again.\n item.isCollapsedState.set(!evt.isExpanded);\n this.onFocusFirstExpandedLink(item);\n });\n }\n });\n this.togglerSubscriptions.push(subscription);\n });\n }\n\n /**\n * Lifecycle hook called when the component is destroyed.\n * Cleans up subscriptions.\n */\n ngOnDestroy(): void {\n this.togglerSubscriptions.forEach((subscription) => subscription.unsubscribe());\n }\n\n /**\n * Focuses the first link in the expanded timeline item,\n * ensuring it's only done once per toggle group interaction.\n *\n * @param item The timeline item to check and potentially focus.\n */\n private onFocusFirstExpandedLink(item: EclTimelineItemComponent): void {\n if (!item.isCollapsedState()) {\n if (!this.isFirstExpandedLinkFocused && item.eclLink()) {\n setTimeout(() => item.eclLink().onFocus());\n this.isFirstExpandedLinkFocused = true;\n }\n } else {\n this.isFirstExpandedLinkFocused = false;\n }\n }\n}\n","<ng-content></ng-content>\n","import { EclTimelineItemLabelDirective } from './ecl-timeline-item-label.directive';\nimport { EclTimelineItemTitleDirective } from './ecl-timeline-item-title.directive';\nimport { EclTimelineItemTogglerComponent } from './ecl-timeline-item-toggler.component';\nimport { EclTimelineItemComponent } from './ecl-timeline-item.component';\nimport { EclTimelineSetDirective } from './ecl-timeline-set.directive';\nimport { EclTimelineComponent } from './ecl-timeline.component';\n\nexport * from './ecl-timeline.component';\nexport * from './ecl-timeline-item.component';\nexport * from './ecl-timeline-item-label.directive';\nexport * from './ecl-timeline-item-title.directive';\nexport * from './ecl-timeline-item-toggler.component';\nexport * from './ecl-timeline-set.directive';\nexport * from './events/ecl-timeline-item-toggle.event';\n\nexport const EUI_ECL_TIMELINE = [\n EclTimelineComponent,\n EclTimelineItemComponent,\n EclTimelineItemTogglerComponent,\n EclTimelineItemLabelDirective,\n EclTimelineItemTitleDirective,\n EclTimelineSetDirective,\n] as const;"],"mappings":";;;;;;;;;AAaA,IAAa,gCAAb,MAAa,sCAAsC,iBAAgB;CANnE,cAAA;;EAWuB,KAAA,aAAa,eAC5B,MAAM,cAAc,qBAAqB,G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BAAiB,aAAa,YAAW,CAAE;CAClF;CAQQ,yBAAyB,MAA8B;EAC3D,IAAI,CAAC,KAAK,iBAAgB,GACtB;OAAI,CAAC,KAAK,8BAA8B,KAAK,QAAO,GAAI;IACpD,iBAAiB,KAAK,QAAO,CAAE,CAAC,QAAO,CAAE;IACzC,KAAK,6BAA6B;GACtC;SAEA,KAAK,6BAA6B;CAE1C;CAvFS;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA;IAAA,mCAAA;IAAA,SAAA;GAAA,EAAA;GAAA,SAAA,CAAA;IAAA,cAAA;IAAA,WAAA,GAAA,iBAoBqC,wBAAwB;IAAA,UAAA;GAAA,CAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UCrD9F;EACA,CAAA;CAAA;;ADgCa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EARhC,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAiB,MAErB;IACF,qCAAqC;IACrC,WAAW;GACd;GAAA,UAAA;EAAA,CAAA;CAsBgD,CAAA;CAAA,gBAAA,EAAA,eAAA,CAAA;EAAA,MAAA,GAAA;EAAA,MAAA,CAAA,iBAAiB,wBAAwB,GAAC,EAAA,UAAA,KAAA,CAAA;CAAA,CAAA,EAAA;AAAA,CAAA;AEtC/F,MAAa,mBAAmB;CAC5B;CACA;CACA;CACA;CACA;CACA;AACM"}
@@ -93,7 +93,7 @@ var EclTooltipDirective = class EclTooltipDirective {
93
93
  if (!this.tooltipEl) return;
94
94
  const parent = this.tooltipEl.parentNode;
95
95
  if (parent) this.renderer.removeChild(parent, this.tooltipEl);
96
- this.tooltipEl = null;
96
+ this.tooltipEl = void 0;
97
97
  }
98
98
  cleanupTooltipListeners() {
99
99
  this.unlistenTooltipEnter?.();