@eui/ecl 19.3.0-snapshot-1749041696283 → 19.3.0-snapshot-1749064223062

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 (288) hide show
  1. package/components/ecl-accordion/ecl-accordion-item.component.d.ts +24 -0
  2. package/components/ecl-accordion/ecl-accordion-item.component.d.ts.map +1 -1
  3. package/components/ecl-accordion/ecl-accordion.component.d.ts +19 -0
  4. package/components/ecl-accordion/ecl-accordion.component.d.ts.map +1 -1
  5. package/components/ecl-banner/ecl-banner-description.directive.d.ts +9 -0
  6. package/components/ecl-banner/ecl-banner-description.directive.d.ts.map +1 -1
  7. package/components/ecl-banner/ecl-banner-picture.directive.d.ts +11 -0
  8. package/components/ecl-banner/ecl-banner-picture.directive.d.ts.map +1 -1
  9. package/components/ecl-banner/ecl-banner-title.directive.d.ts +12 -0
  10. package/components/ecl-banner/ecl-banner-title.directive.d.ts.map +1 -1
  11. package/components/ecl-banner/ecl-banner-video.directive.d.ts +10 -0
  12. package/components/ecl-banner/ecl-banner-video.directive.d.ts.map +1 -1
  13. package/components/ecl-banner/ecl-banner.component.d.ts +66 -0
  14. package/components/ecl-banner/ecl-banner.component.d.ts.map +1 -1
  15. package/components/ecl-blockquote/ecl-blockquote-picture.directive.d.ts +14 -0
  16. package/components/ecl-blockquote/ecl-blockquote-picture.directive.d.ts.map +1 -1
  17. package/components/ecl-blockquote/ecl-blockquote.component.d.ts +29 -0
  18. package/components/ecl-blockquote/ecl-blockquote.component.d.ts.map +1 -1
  19. package/components/ecl-button/ecl-button-label.directive.d.ts +21 -0
  20. package/components/ecl-button/ecl-button-label.directive.d.ts.map +1 -1
  21. package/components/ecl-button/ecl-button.component.d.ts +43 -0
  22. package/components/ecl-button/ecl-button.component.d.ts.map +1 -1
  23. package/components/ecl-card/ecl-card-body.component.d.ts +7 -0
  24. package/components/ecl-card/ecl-card-body.component.d.ts.map +1 -1
  25. package/components/ecl-card/ecl-card-picture.directive.d.ts +17 -0
  26. package/components/ecl-card/ecl-card-picture.directive.d.ts.map +1 -1
  27. package/components/ecl-card/ecl-card.component.d.ts +27 -0
  28. package/components/ecl-card/ecl-card.component.d.ts.map +1 -1
  29. package/components/ecl-carousel/ecl-carousel-item.component.d.ts +42 -0
  30. package/components/ecl-carousel/ecl-carousel-item.component.d.ts.map +1 -1
  31. package/components/ecl-carousel/ecl-carousel.component.d.ts +224 -0
  32. package/components/ecl-carousel/ecl-carousel.component.d.ts.map +1 -1
  33. package/components/ecl-category-filter/ecl-category-filter/ecl-category-filter.component.d.ts +14 -0
  34. package/components/ecl-category-filter/ecl-category-filter/ecl-category-filter.component.d.ts.map +1 -1
  35. package/components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-item.component.d.ts +56 -0
  36. package/components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-item.component.d.ts.map +1 -1
  37. package/components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-list.component.d.ts +28 -0
  38. package/components/ecl-category-filter/ecl-category-filter-list/ecl-category-filter-list.component.d.ts.map +1 -1
  39. package/components/ecl-category-filter/events/ecl-category-filter-item-select.event.d.ts +7 -0
  40. package/components/ecl-category-filter/events/ecl-category-filter-item-select.event.d.ts.map +1 -1
  41. package/components/ecl-content-block/ecl-content-block-elements.directive.d.ts +106 -0
  42. package/components/ecl-content-block/ecl-content-block-elements.directive.d.ts.map +1 -1
  43. package/components/ecl-content-block/ecl-content-block.component.d.ts +8 -0
  44. package/components/ecl-content-block/ecl-content-block.component.d.ts.map +1 -1
  45. package/components/ecl-content-item/ecl-content-item-image.directive.d.ts +29 -0
  46. package/components/ecl-content-item/ecl-content-item-image.directive.d.ts.map +1 -1
  47. package/components/ecl-content-item/ecl-content-item.component.d.ts +40 -0
  48. package/components/ecl-content-item/ecl-content-item.component.d.ts.map +1 -1
  49. package/components/ecl-date-block/ecl-date-block.component.d.ts +36 -0
  50. package/components/ecl-date-block/ecl-date-block.component.d.ts.map +1 -1
  51. package/components/ecl-expandable/ecl-expandable.component.d.ts +34 -0
  52. package/components/ecl-expandable/ecl-expandable.component.d.ts.map +1 -1
  53. package/components/ecl-fact-figures/ecl-fact-figures-description.component.d.ts +7 -0
  54. package/components/ecl-fact-figures/ecl-fact-figures-description.component.d.ts.map +1 -1
  55. package/components/ecl-fact-figures/ecl-fact-figures-item.component.d.ts +15 -0
  56. package/components/ecl-fact-figures/ecl-fact-figures-item.component.d.ts.map +1 -1
  57. package/components/ecl-fact-figures/ecl-fact-figures-title.component.d.ts +6 -0
  58. package/components/ecl-fact-figures/ecl-fact-figures-title.component.d.ts.map +1 -1
  59. package/components/ecl-fact-figures/ecl-fact-figures-value.component.d.ts +6 -0
  60. package/components/ecl-fact-figures/ecl-fact-figures-value.component.d.ts.map +1 -1
  61. package/components/ecl-fact-figures/ecl-fact-figures-view-all.component.d.ts +15 -0
  62. package/components/ecl-fact-figures/ecl-fact-figures-view-all.component.d.ts.map +1 -1
  63. package/components/ecl-fact-figures/ecl-fact-figures.component.d.ts +23 -0
  64. package/components/ecl-fact-figures/ecl-fact-figures.component.d.ts.map +1 -1
  65. package/components/ecl-file/ecl-file-download.directive.d.ts +23 -0
  66. package/components/ecl-file/ecl-file-download.directive.d.ts.map +1 -1
  67. package/components/ecl-file/ecl-file-item/ecl-file-item.component.d.ts +36 -0
  68. package/components/ecl-file/ecl-file-item/ecl-file-item.component.d.ts.map +1 -1
  69. package/components/ecl-file/ecl-file-items/ecl-file-items.component.d.ts +29 -0
  70. package/components/ecl-file/ecl-file-items/ecl-file-items.component.d.ts.map +1 -1
  71. package/components/ecl-file/ecl-file-picture.directive.d.ts +23 -0
  72. package/components/ecl-file/ecl-file-picture.directive.d.ts.map +1 -1
  73. package/components/ecl-file/ecl-file-taxonomy/ecl-file-taxonomy.component.d.ts +6 -0
  74. package/components/ecl-file/ecl-file-taxonomy/ecl-file-taxonomy.component.d.ts.map +1 -1
  75. package/components/ecl-file/ecl-file.component.d.ts +35 -0
  76. package/components/ecl-file/ecl-file.component.d.ts.map +1 -1
  77. package/components/ecl-icon/ecl-icon.component.d.ts +51 -0
  78. package/components/ecl-icon/ecl-icon.component.d.ts.map +1 -1
  79. package/components/ecl-label/ecl-label.directive.d.ts +20 -0
  80. package/components/ecl-label/ecl-label.directive.d.ts.map +1 -1
  81. package/components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.d.ts +35 -0
  82. package/components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.d.ts.map +1 -1
  83. package/components/ecl-list/ecl-description-list-definition-item.directive.d.ts +22 -0
  84. package/components/ecl-list/ecl-description-list-definition-item.directive.d.ts.map +1 -1
  85. package/components/ecl-list/ecl-list.directive.d.ts +57 -0
  86. package/components/ecl-list/ecl-list.directive.d.ts.map +1 -1
  87. package/components/ecl-list-illustration/ecl-list-illustration-icon.directive.d.ts +8 -0
  88. package/components/ecl-list-illustration/ecl-list-illustration-icon.directive.d.ts.map +1 -1
  89. package/components/ecl-list-illustration/ecl-list-illustration-item.component.d.ts +23 -0
  90. package/components/ecl-list-illustration/ecl-list-illustration-item.component.d.ts.map +1 -1
  91. package/components/ecl-list-illustration/ecl-list-illustration-picture.directive.d.ts +23 -0
  92. package/components/ecl-list-illustration/ecl-list-illustration-picture.directive.d.ts.map +1 -1
  93. package/components/ecl-list-illustration/ecl-list-illustration.component.d.ts +26 -0
  94. package/components/ecl-list-illustration/ecl-list-illustration.component.d.ts.map +1 -1
  95. package/components/ecl-loading-indicator/ecl-loading-indicator-label.directive.d.ts +8 -0
  96. package/components/ecl-loading-indicator/ecl-loading-indicator-label.directive.d.ts.map +1 -1
  97. package/components/ecl-loading-indicator/ecl-loading-indicator-overlay.directive.d.ts +8 -0
  98. package/components/ecl-loading-indicator/ecl-loading-indicator-overlay.directive.d.ts.map +1 -1
  99. package/components/ecl-loading-indicator/ecl-loading-indicator.component.d.ts +39 -1
  100. package/components/ecl-loading-indicator/ecl-loading-indicator.component.d.ts.map +1 -1
  101. package/components/ecl-modal/ecl-modal-body-fixed.directive.d.ts +8 -0
  102. package/components/ecl-modal/ecl-modal-body-fixed.directive.d.ts.map +1 -1
  103. package/components/ecl-modal/ecl-modal-body.component.d.ts +11 -0
  104. package/components/ecl-modal/ecl-modal-body.component.d.ts.map +1 -1
  105. package/components/ecl-modal/ecl-modal-close.directive.d.ts +17 -0
  106. package/components/ecl-modal/ecl-modal-close.directive.d.ts.map +1 -1
  107. package/components/ecl-modal/ecl-modal-footer.component.d.ts +16 -0
  108. package/components/ecl-modal/ecl-modal-footer.component.d.ts.map +1 -1
  109. package/components/ecl-modal/ecl-modal-header.component.d.ts +41 -0
  110. package/components/ecl-modal/ecl-modal-header.component.d.ts.map +1 -1
  111. package/components/ecl-modal/ecl-modal-trigger.directive.d.ts +9 -0
  112. package/components/ecl-modal/ecl-modal-trigger.directive.d.ts.map +1 -1
  113. package/components/ecl-modal/ecl-modal.component.d.ts +68 -0
  114. package/components/ecl-modal/ecl-modal.component.d.ts.map +1 -1
  115. package/components/ecl-news-ticker/ecl-news-ticker-icon.directive.d.ts +6 -0
  116. package/components/ecl-news-ticker/ecl-news-ticker-icon.directive.d.ts.map +1 -1
  117. package/components/ecl-news-ticker/ecl-news-ticker-item.component.d.ts +27 -0
  118. package/components/ecl-news-ticker/ecl-news-ticker-item.component.d.ts.map +1 -1
  119. package/components/ecl-news-ticker/ecl-news-ticker.component.d.ts +77 -0
  120. package/components/ecl-news-ticker/ecl-news-ticker.component.d.ts.map +1 -1
  121. package/components/ecl-notification/ecl-notification-title.directive.d.ts +7 -0
  122. package/components/ecl-notification/ecl-notification-title.directive.d.ts.map +1 -1
  123. package/components/ecl-notification/ecl-notification.component.d.ts +42 -0
  124. package/components/ecl-notification/ecl-notification.component.d.ts.map +1 -1
  125. package/components/ecl-notification/events/ecl-notification-close.event.d.ts +5 -0
  126. package/components/ecl-notification/events/ecl-notification-close.event.d.ts.map +1 -1
  127. package/components/ecl-popover/ecl-popover-content.directive.d.ts +8 -0
  128. package/components/ecl-popover/ecl-popover-content.directive.d.ts.map +1 -1
  129. package/components/ecl-popover/ecl-popover-toggle.directive.d.ts +27 -0
  130. package/components/ecl-popover/ecl-popover-toggle.directive.d.ts.map +1 -1
  131. package/components/ecl-popover/ecl-popover.component.d.ts +46 -0
  132. package/components/ecl-popover/ecl-popover.component.d.ts.map +1 -1
  133. package/components/ecl-separator/ecl-separator.directive.d.ts +7 -0
  134. package/components/ecl-separator/ecl-separator.directive.d.ts.map +1 -1
  135. package/docs/classes/EclCategoryFilterItemSelectEvent.html +19 -0
  136. package/docs/classes/EclExpandableToggleEvent.html +8 -0
  137. package/docs/classes/EclNotificationCloseEvent.html +8 -0
  138. package/docs/components/EclAccordionComponent.html +25 -0
  139. package/docs/components/EclAccordionItemComponent.html +40 -0
  140. package/docs/components/EclBannerComponent.html +114 -0
  141. package/docs/components/EclBlockquoteComponent.html +50 -0
  142. package/docs/components/EclButtonComponent.html +87 -0
  143. package/docs/components/EclCardBodyComponent.html +25 -0
  144. package/docs/components/EclCardComponent.html +55 -0
  145. package/docs/components/EclCarouselComponent.html +179 -1
  146. package/docs/components/EclCarouselItemComponent.html +132 -0
  147. package/docs/components/EclCategoryFilterComponent.html +39 -0
  148. package/docs/components/EclCategoryFilterItemComponent.html +160 -0
  149. package/docs/components/EclCategoryFilterListComponent.html +84 -0
  150. package/docs/components/EclContentBlockComponent.html +27 -0
  151. package/docs/components/EclContentItemComponent.html +75 -0
  152. package/docs/components/EclDateBlockComponent.html +78 -0
  153. package/docs/components/EclDescriptionListDefinitionComponent.html +61 -0
  154. package/docs/components/EclExpandableComponent.html +59 -4
  155. package/docs/components/EclFactFiguresComponent.html +63 -4
  156. package/docs/components/EclFactFiguresDescriptionComponent.html +29 -4
  157. package/docs/components/EclFactFiguresItemComponent.html +32 -0
  158. package/docs/components/EclFactFiguresTitleComponent.html +28 -4
  159. package/docs/components/EclFactFiguresValueComponent.html +28 -4
  160. package/docs/components/EclFactFiguresViewAllComponent.html +36 -4
  161. package/docs/components/EclFileComponent.html +85 -0
  162. package/docs/components/EclFileItemComponent.html +88 -0
  163. package/docs/components/EclFileItemsComponent.html +55 -0
  164. package/docs/components/EclFileTaxonomyComponent.html +24 -0
  165. package/docs/components/EclIconComponent.html +101 -0
  166. package/docs/components/EclListIllustrationComponent.html +77 -0
  167. package/docs/components/EclListIllustrationItemComponent.html +66 -0
  168. package/docs/components/EclLoadingIndicatorComponent.html +75 -0
  169. package/docs/components/EclModalBodyComponent.html +31 -0
  170. package/docs/components/EclModalComponent.html +118 -0
  171. package/docs/components/EclModalFooterComponent.html +31 -0
  172. package/docs/components/EclModalHeaderComponent.html +58 -0
  173. package/docs/components/EclNewsTickerComponent.html +118 -0
  174. package/docs/components/EclNewsTickerItemComponent.html +86 -0
  175. package/docs/components/EclNotificationComponent.html +117 -0
  176. package/docs/components/EclPopoverComponent.html +90 -0
  177. package/docs/dependencies.html +2 -2
  178. package/docs/directives/EclBannerDescriptionDirective.html +7 -0
  179. package/docs/directives/EclBannerDescriptionLinkDirective.html +7 -0
  180. package/docs/directives/EclBannerDescriptionTextDirective.html +7 -0
  181. package/docs/directives/EclBannerImageDirective.html +10 -0
  182. package/docs/directives/EclBannerPictureDirective.html +8 -0
  183. package/docs/directives/EclBannerTitleDirective.html +8 -0
  184. package/docs/directives/EclBannerTitleLinkDirective.html +8 -0
  185. package/docs/directives/EclBannerTitleTextDirective.html +8 -0
  186. package/docs/directives/EclBannerVideoDirective.html +22 -0
  187. package/docs/directives/EclBlockquoteImageDirective.html +25 -0
  188. package/docs/directives/EclBlockquotePictureDirective.html +25 -0
  189. package/docs/directives/EclButtonIconContainerDirective.html +20 -0
  190. package/docs/directives/EclButtonLabelDirective.html +25 -0
  191. package/docs/directives/EclCardImageDirective.html +25 -0
  192. package/docs/directives/EclCardPictureDirective.html +31 -0
  193. package/docs/directives/EclContentBlockDescriptionDirective.html +24 -0
  194. package/docs/directives/EclContentBlockLabelDirective.html +24 -0
  195. package/docs/directives/EclContentBlockLabelsDirective.html +24 -0
  196. package/docs/directives/EclContentBlockLinkDirective.html +24 -0
  197. package/docs/directives/EclContentBlockLinksContainerDirective.html +24 -0
  198. package/docs/directives/EclContentBlockLinksDirective.html +24 -0
  199. package/docs/directives/EclContentBlockListContainerDirective.html +24 -0
  200. package/docs/directives/EclContentBlockListDirective.html +24 -0
  201. package/docs/directives/EclContentBlockPrimaryMetaDirective.html +24 -0
  202. package/docs/directives/EclContentBlockPrimaryMetasDirective.html +24 -0
  203. package/docs/directives/EclContentBlockSecondaryMetaDirective.html +24 -0
  204. package/docs/directives/EclContentBlockSecondaryMetaIconDirective.html +24 -0
  205. package/docs/directives/EclContentBlockSecondaryMetaLabelDirective.html +24 -0
  206. package/docs/directives/EclContentBlockSecondaryMetasDirective.html +24 -0
  207. package/docs/directives/EclContentBlockTagDirective.html +24 -0
  208. package/docs/directives/EclContentBlockTagsDirective.html +24 -0
  209. package/docs/directives/EclContentBlockTitleDirective.html +31 -0
  210. package/docs/directives/EclContentItemImageDirective.html +27 -0
  211. package/docs/directives/EclContentItemPictureDirective.html +46 -0
  212. package/docs/directives/EclDescriptionListDefinitionItemDirective.html +37 -0
  213. package/docs/directives/EclDescriptionListDefinitionListDirective.html +20 -0
  214. package/docs/directives/EclDescriptionListDirective.html +39 -0
  215. package/docs/directives/EclDescriptionListTermDirective.html +19 -0
  216. package/docs/directives/EclFileDownloadDirective.html +19 -0
  217. package/docs/directives/EclFileImageDirective.html +20 -0
  218. package/docs/directives/EclFilePictureDirective.html +25 -0
  219. package/docs/directives/EclFilePreviewDirective.html +32 -0
  220. package/docs/directives/EclFileTitleDirective.html +25 -0
  221. package/docs/directives/EclFileTranslationDownloadDirective.html +20 -0
  222. package/docs/directives/EclIndicatorDirective.html +20 -0
  223. package/docs/directives/EclLabelDirective.html +40 -0
  224. package/docs/directives/EclListIllustrationIconDirective.html +20 -0
  225. package/docs/directives/EclListIllustrationImageDirective.html +38 -0
  226. package/docs/directives/EclListIllustrationPictureDirective.html +25 -0
  227. package/docs/directives/EclLoadingIndicatorLabelDirective.html +20 -0
  228. package/docs/directives/EclLoadingIndicatorOverlayDirective.html +25 -0
  229. package/docs/directives/EclModalBodyFixedContentDirective.html +20 -0
  230. package/docs/directives/EclModalCloseDirective.html +35 -0
  231. package/docs/directives/EclModalTriggerDirective.html +22 -0
  232. package/docs/directives/EclNewsTickerIconDirective.html +19 -0
  233. package/docs/directives/EclNotificationTitleDirective.html +25 -0
  234. package/docs/directives/EclOrderedListDirective.html +19 -0
  235. package/docs/directives/EclOrderedListItemDirective.html +19 -0
  236. package/docs/directives/EclPopoverContentDirective.html +25 -0
  237. package/docs/directives/EclPopoverToggleDirective.html +62 -0
  238. package/docs/directives/EclSeparatorDirective.html +20 -0
  239. package/docs/directives/EclUnorderedListDirective.html +32 -0
  240. package/docs/directives/EclUnorderedListItemDirective.html +19 -0
  241. package/docs/js/search/search_index.js +2 -2
  242. package/fesm2022/eui-ecl-components-ecl-accordion.mjs +39 -0
  243. package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
  244. package/fesm2022/eui-ecl-components-ecl-banner.mjs +108 -0
  245. package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
  246. package/fesm2022/eui-ecl-components-ecl-blockquote.mjs +39 -0
  247. package/fesm2022/eui-ecl-components-ecl-blockquote.mjs.map +1 -1
  248. package/fesm2022/eui-ecl-components-ecl-button.mjs +53 -0
  249. package/fesm2022/eui-ecl-components-ecl-button.mjs.map +1 -1
  250. package/fesm2022/eui-ecl-components-ecl-card.mjs +42 -0
  251. package/fesm2022/eui-ecl-components-ecl-card.mjs.map +1 -1
  252. package/fesm2022/eui-ecl-components-ecl-carousel.mjs +221 -0
  253. package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
  254. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs +85 -0
  255. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs.map +1 -1
  256. package/fesm2022/eui-ecl-components-ecl-content-block.mjs +111 -0
  257. package/fesm2022/eui-ecl-components-ecl-content-block.mjs.map +1 -1
  258. package/fesm2022/eui-ecl-components-ecl-content-item.mjs +50 -0
  259. package/fesm2022/eui-ecl-components-ecl-content-item.mjs.map +1 -1
  260. package/fesm2022/eui-ecl-components-ecl-date-block.mjs +18 -0
  261. package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
  262. package/fesm2022/eui-ecl-components-ecl-expandable.mjs +27 -0
  263. package/fesm2022/eui-ecl-components-ecl-expandable.mjs.map +1 -1
  264. package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs +64 -0
  265. package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs.map +1 -1
  266. package/fesm2022/eui-ecl-components-ecl-file.mjs +108 -3
  267. package/fesm2022/eui-ecl-components-ecl-file.mjs.map +1 -1
  268. package/fesm2022/eui-ecl-components-ecl-icon.mjs +32 -0
  269. package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
  270. package/fesm2022/eui-ecl-components-ecl-label.mjs +20 -0
  271. package/fesm2022/eui-ecl-components-ecl-label.mjs.map +1 -1
  272. package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs +80 -0
  273. package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs.map +1 -1
  274. package/fesm2022/eui-ecl-components-ecl-list.mjs +102 -0
  275. package/fesm2022/eui-ecl-components-ecl-list.mjs.map +1 -1
  276. package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs +59 -5
  277. package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs.map +1 -1
  278. package/fesm2022/eui-ecl-components-ecl-modal.mjs +132 -0
  279. package/fesm2022/eui-ecl-components-ecl-modal.mjs.map +1 -1
  280. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs +89 -0
  281. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs.map +1 -1
  282. package/fesm2022/eui-ecl-components-ecl-notification.mjs +51 -0
  283. package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
  284. package/fesm2022/eui-ecl-components-ecl-popover.mjs +69 -1
  285. package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
  286. package/fesm2022/eui-ecl-components-ecl-separator.mjs +7 -0
  287. package/fesm2022/eui-ecl-components-ecl-separator.mjs.map +1 -1
  288. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-list.mjs","sources":["../../components/ecl-list/ecl-description-list-definition-item.directive.ts","../../components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.ts","../../components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.html","../../components/ecl-list/ecl-list.directive.ts","../../components/ecl-list/ecl-list.module.ts","../../components/ecl-list/eui-ecl-components-ecl-list.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: '[eclDescriptionListDefinitionItem]',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionItemDirective extends ECLBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-description-list__definition-item'),\n this.isHidden ? 'ecl-description-list__definition-item--hidden' : '',\n this.isLastVisible ? 'ecl-description-list__definition-item--last-visible' : '',\n ].join(' ');\n }\n\n isHidden = false;\n isLastVisible = false;\n}\n\n@Directive({\n selector: '[eclDescriptionListDefinitionList]',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionListDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-description-list__definition-list') cmpClass = true;\n}\n","import { AfterViewInit, Component, ContentChildren, HostBinding, Input, QueryList } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclDescriptionListDefinitionItemDirective } from '../ecl-description-list-definition-item.directive';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[eclDescriptionListDefinition]',\n templateUrl: './ecl-description-list-definition.component.html',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionComponent extends ECLBaseDirective implements AfterViewInit {\n @Input() variant: 'link' | 'inline' | 'taxonomy' | 'tag';\n\n @ContentChildren(EclDescriptionListDefinitionItemDirective, { descendants: true })\n eclListItems: QueryList<EclDescriptionListDefinitionItemDirective>;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-description-list__definition'),\n this.variant ? `ecl-description-list__definition--${this.variant}` : '',\n ].join(' ');\n }\n\n private _maxVisibleItems: number;\n private currentItemsNumber = 0;\n\n set maxVisibleItems(value: number) {\n this._maxVisibleItems = value;\n }\n\n get hasSeeAll(): boolean {\n return this.hasHiddenListitems();\n }\n\n ngAfterViewInit(): void {\n this.currentItemsNumber = this.eclListItems.length;\n if (this.hasHiddenListitems()) {\n setTimeout(() => {\n this.getHiddenItems().forEach((elem) => this.hideListItem(elem));\n this.getLastVisibleItem().isLastVisible = true;\n });\n }\n }\n\n onShowAllItems(evt: Event): void {\n evt.preventDefault();\n this.getHiddenItems().forEach((elem) => this.showListItem(elem));\n this.getLastVisibleItem().isLastVisible = false;\n this._maxVisibleItems = this.currentItemsNumber;\n }\n\n private hideListItem(item: EclDescriptionListDefinitionItemDirective): void {\n item.isHidden = true;\n }\n\n private showListItem(item: EclDescriptionListDefinitionItemDirective): void {\n item.isHidden = false;\n }\n\n private hasHiddenListitems(): boolean {\n if (this._maxVisibleItems && this.currentItemsNumber > 0 && this._maxVisibleItems < this.currentItemsNumber) {\n return true;\n } else {\n return false;\n }\n }\n\n private getHiddenItems(): EclDescriptionListDefinitionItemDirective[] {\n return this.eclListItems.filter((item, cnt) => cnt >= this._maxVisibleItems);\n }\n\n private getLastVisibleItem(): EclDescriptionListDefinitionItemDirective {\n return this.eclListItems.filter((item, cnt) => cnt < this._maxVisibleItems).pop();\n }\n}\n","<ng-content></ng-content>\n@if(hasSeeAll) {\n<a eclLink class=\"ecl-description-list__see_more\" href (click)=\"onShowAllItems($event)\">{{\n 'ecl.list.SEE-ALL-ITEMS' | translate\n }}</a>\n}","import { AfterContentInit, ChangeDetectorRef, ContentChildren, Directive, HostBinding, Input, QueryList, booleanAttribute,\n numberAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclDescriptionListDefinitionComponent } from './ecl-description-list-definition/ecl-description-list-definition.component';\n\n@Directive({\n selector: '[eclOrderedList]',\n standalone: false,\n})\nexport class EclOrderedListDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-ordered-list') cmpClass = true;\n}\n\n@Directive({\n selector: '[eclOrderedListItem]',\n standalone: false,\n})\nexport class EclOrderedListItemDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-ordered-list__item') cmpClass = true;\n}\n\n@Directive({\n selector: '[eclUnorderedList]',\n standalone: false,\n})\nexport class EclUnorderedListDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-unordered-list') cmpClass = true;\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-unordered-list--divider') isDivider = false;\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-unordered-list--no-marker') isNoMarker = false;\n}\n\n@Directive({\n selector: '[eclUnorderedListItem]',\n standalone: false,\n})\nexport class EclUnorderedListItemDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-unordered-list__item') cmpClass = true;\n}\n\n@Directive({\n selector: '[eclDescriptionList]',\n standalone: false,\n})\nexport class EclDescriptionListDirective extends ECLBaseDirective implements AfterContentInit {\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-description-list--horizontal') isHorizontal = false;\n @Input({ transform: numberAttribute }) maxVisibleItems = 0;\n\n @ContentChildren(EclDescriptionListDefinitionComponent)\n eclListItems: QueryList<EclDescriptionListDefinitionComponent>;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-description-list')].join(' ');\n }\n\n constructor(private cd: ChangeDetectorRef) {\n super();\n }\n\n ngAfterContentInit(): void {\n if (!this.isHorizontal && this.maxVisibleItems > 0) {\n this.eclListItems.forEach((item) => (item.maxVisibleItems = this.maxVisibleItems));\n }\n this.cd.detectChanges();\n }\n}\n\n@Directive({\n selector: '[eclDescriptionListTerm]',\n standalone: false,\n})\nexport class EclDescriptionListTermDirective extends ECLBaseDirective {\n @HostBinding('class.ecl-description-list__term') cmpClass = true;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n EclDescriptionListDirective,\n EclDescriptionListTermDirective,\n EclOrderedListDirective,\n EclOrderedListItemDirective,\n EclUnorderedListDirective,\n EclUnorderedListItemDirective,\n} from './ecl-list.directive';\nimport { EclDescriptionListDefinitionComponent } from './ecl-description-list-definition/ecl-description-list-definition.component';\nimport { EclLinkModule } from '@eui/ecl/components/ecl-link';\nimport { EclDescriptionListDefinitionItemDirective, EclDescriptionListDefinitionListDirective } from './ecl-description-list-definition-item.directive';\n\nconst COMPONENTS = [\n EclOrderedListDirective,\n EclOrderedListItemDirective,\n EclUnorderedListDirective,\n EclUnorderedListItemDirective,\n EclDescriptionListDirective,\n EclDescriptionListTermDirective,\n EclDescriptionListDefinitionComponent,\n EclDescriptionListDefinitionItemDirective,\n EclDescriptionListDefinitionListDirective,\n];\n\n@NgModule({\n imports: [CommonModule, TranslateModule, EclLinkModule],\n exports: [...COMPONENTS],\n declarations: [...COMPONENTS],\n})\nexport class EclListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAOM,MAAO,yCAA0C,SAAQ,gBAAgB,CAAA;AAJ/E,IAAA,WAAA,GAAA;;QAcI,IAAQ,CAAA,QAAA,GAAG,KAAK;QAChB,IAAa,CAAA,aAAA,GAAG,KAAK;AACxB;AAXG,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,uCAAuC,CAAC;YAC5D,IAAI,CAAC,QAAQ,GAAG,+CAA+C,GAAG,EAAE;YACpE,IAAI,CAAC,aAAa,GAAG,qDAAqD,GAAG,EAAE;AAClF,SAAA,CAAC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eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAb,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,iBAhBtB,uBAAuB;YACvB,2BAA2B;YAC3B,yBAAyB;YACzB,6BAA6B;YAC7B,2BAA2B;YAC3B,+BAA+B;YAC/B,qCAAqC;YACrC,yCAAyC;AACzC,YAAA,yCAAyC,aAI/B,YAAY,EAAE,eAAe,EAAE,aAAa,aAZtD,uBAAuB;YACvB,2BAA2B;YAC3B,yBAAyB;YACzB,6BAA6B;YAC7B,2BAA2B;YAC3B,+BAA+B;YAC/B,qCAAqC;YACrC,yCAAyC;YACzC,yCAAyC,CAAA,EAAA,CAAA,CAAA;AAQhC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,EAJZ,OAAA,EAAA,CAAA,YAAY,EAAE,eAAe,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;;4FAI7C,aAAa,EAAA,UAAA,EAAA,CAAA;kBALzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,CAAC;AACvD,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAChC,iBAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-list.mjs","sources":["../../components/ecl-list/ecl-description-list-definition-item.directive.ts","../../components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.ts","../../components/ecl-list/ecl-description-list-definition/ecl-description-list-definition.component.html","../../components/ecl-list/ecl-list.directive.ts","../../components/ecl-list/ecl-list.module.ts","../../components/ecl-list/eui-ecl-components-ecl-list.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive representing a single item in an ECL description list definition.\n *\n * Applies the appropriate styling classes and allows visibility control for \"see all\" behavior.\n */\n@Directive({\n selector: '[eclDescriptionListDefinitionItem]',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionItemDirective extends ECLBaseDirective {\n /**\n * Applies appropriate ECL classes based on visibility state.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-description-list__definition-item'),\n this.isHidden ? 'ecl-description-list__definition-item--hidden' : '',\n this.isLastVisible ? 'ecl-description-list__definition-item--last-visible' : '',\n ].join(' ');\n }\n\n /**\n * Internal state used to hide the item when exceeding the visible limit.\n */\n isHidden = false;\n\n /**\n * Indicates whether this is the last item visible before the \"see all\" action is triggered.\n */\n isLastVisible = false;\n}\n\n/**\n * Directive representing a container for definition list items within an ECL description list.\n *\n * Applies the ECL-specific class for the list wrapper.\n */\n@Directive({\n selector: '[eclDescriptionListDefinitionList]',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionListDirective extends ECLBaseDirective {\n /**\n * Applies the ECL list container class.\n */\n @HostBinding('class.ecl-description-list__definition-list') cmpClass = true;\n}\n","import { AfterViewInit, Component, ContentChildren, HostBinding, Input, QueryList } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclDescriptionListDefinitionItemDirective } from '../ecl-description-list-definition-item.directive';\n\n/**\n * Component representing a group of definition items in an ECL description list.\n * \n * Allows display of items in different visual variants and optionally limits how many items are visible by default.\n * Additional items can be revealed via a \"see all\" toggle.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[eclDescriptionListDefinition]',\n templateUrl: './ecl-description-list-definition.component.html',\n standalone: false,\n})\nexport class EclDescriptionListDefinitionComponent extends ECLBaseDirective implements AfterViewInit {\n /**\n * Visual variant of the definition list group.\n * \n * Available values:\n * - `'link'` – link-style list\n * - `'inline'` – inline list\n * - `'taxonomy'` – taxonomy-style list\n * - `'tag'` – tag-style list\n */\n @Input() variant: 'link' | 'inline' | 'taxonomy' | 'tag';\n\n /**\n * Internal list of child definition items.\n */\n @ContentChildren(EclDescriptionListDefinitionItemDirective, { descendants: true })\n eclListItems: QueryList<EclDescriptionListDefinitionItemDirective>;\n\n /**\n * Applies appropriate ECL CSS classes to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-description-list__definition'),\n this.variant ? `ecl-description-list__definition--${this.variant}` : '',\n ].join(' ');\n }\n\n private _maxVisibleItems: number;\n private currentItemsNumber = 0;\n\n /**\n * Number of items visible before the \"see all\" button is displayed.\n */\n set maxVisibleItems(value: number) {\n this._maxVisibleItems = value;\n }\n\n /**\n * Returns `true` if there are hidden items and the \"see all\" button should be shown.\n */\n get hasSeeAll(): boolean {\n return this.hasHiddenListitems();\n }\n\n /**\n * Lifecycle hook triggered after content projection is initialized.\n * Handles hiding excess items based on the configured limit.\n */\n ngAfterViewInit(): void {\n this.currentItemsNumber = this.eclListItems.length;\n if (this.hasHiddenListitems()) {\n setTimeout(() => {\n this.getHiddenItems().forEach((elem) => this.hideListItem(elem));\n this.getLastVisibleItem().isLastVisible = true;\n });\n }\n }\n\n /**\n * Handles the \"see all\" link/button click.\n * Reveals all hidden list items.\n */\n onShowAllItems(evt: Event): void {\n evt.preventDefault();\n this.getHiddenItems().forEach((elem) => this.showListItem(elem));\n this.getLastVisibleItem().isLastVisible = false;\n this._maxVisibleItems = this.currentItemsNumber;\n }\n\n private hideListItem(item: EclDescriptionListDefinitionItemDirective): void {\n item.isHidden = true;\n }\n\n private showListItem(item: EclDescriptionListDefinitionItemDirective): void {\n item.isHidden = false;\n }\n\n private hasHiddenListitems(): boolean {\n if (this._maxVisibleItems && this.currentItemsNumber > 0 && this._maxVisibleItems < this.currentItemsNumber) {\n return true;\n } else {\n return false;\n }\n }\n\n private getHiddenItems(): EclDescriptionListDefinitionItemDirective[] {\n return this.eclListItems.filter((item, cnt) => cnt >= this._maxVisibleItems);\n }\n\n private getLastVisibleItem(): EclDescriptionListDefinitionItemDirective {\n return this.eclListItems.filter((item, cnt) => cnt < this._maxVisibleItems).pop();\n }\n}\n","<ng-content></ng-content>\n@if(hasSeeAll) {\n<a eclLink class=\"ecl-description-list__see_more\" href (click)=\"onShowAllItems($event)\">{{\n 'ecl.list.SEE-ALL-ITEMS' | translate\n }}</a>\n}","import {\n AfterContentInit,\n ChangeDetectorRef,\n ContentChildren,\n Directive,\n HostBinding,\n Input,\n QueryList,\n booleanAttribute,\n numberAttribute,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclDescriptionListDefinitionComponent } from './ecl-description-list-definition/ecl-description-list-definition.component';\n\n/**\n * Directive representing an ordered list using ECL styles.\n */\n@Directive({\n selector: '[eclOrderedList]',\n standalone: false,\n})\nexport class EclOrderedListDirective extends ECLBaseDirective {\n /**\n * Applies the ECL class for ordered lists.\n */\n @HostBinding('class.ecl-ordered-list') cmpClass = true;\n}\n\n/**\n * Directive for a single item within an ECL ordered list.\n */\n@Directive({\n selector: '[eclOrderedListItem]',\n standalone: false,\n})\nexport class EclOrderedListItemDirective extends ECLBaseDirective {\n /**\n * Applies the ECL class for ordered list items.\n */\n @HostBinding('class.ecl-ordered-list__item') cmpClass = true;\n}\n\n/**\n * Directive representing an unordered list using ECL styles.\n *\n * Supports optional variants like divider and no-marker.\n */\n@Directive({\n selector: '[eclUnorderedList]',\n standalone: false,\n})\nexport class EclUnorderedListDirective extends ECLBaseDirective {\n /**\n * Applies the ECL class for unordered lists.\n */\n @HostBinding('class.ecl-unordered-list') cmpClass = true;\n\n /**\n * Adds a divider between list items.\n */\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-unordered-list--divider') isDivider = false;\n\n /**\n * Adds a divider between list items.\n */\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-unordered-list--no-marker') isNoMarker = false;\n}\n\n/**\n * Directive for a single item within an ECL unordered list.\n */\n@Directive({\n selector: '[eclUnorderedListItem]',\n standalone: false,\n})\nexport class EclUnorderedListItemDirective extends ECLBaseDirective {\n /**\n * Applies the ECL class for unordered list items.\n */\n @HostBinding('class.ecl-unordered-list__item') cmpClass = true;\n}\n\n/**\n * Directive for a description list using ECL styles.\n *\n * Supports horizontal layout and maxVisibleItems functionality\n * passed down to nested definition components.\n */\n@Directive({\n selector: '[eclDescriptionList]',\n standalone: false,\n})\nexport class EclDescriptionListDirective extends ECLBaseDirective implements AfterContentInit {\n /**\n * Enables horizontal layout.\n */\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-description-list--horizontal') isHorizontal = false;\n\n /**\n * Maximum number of visible items before collapsing.\n * Applied to nested `eclDescriptionListDefinition` components.\n */\n @Input({ transform: numberAttribute }) maxVisibleItems = 0;\n\n @ContentChildren(EclDescriptionListDefinitionComponent)\n eclListItems: QueryList<EclDescriptionListDefinitionComponent>;\n\n /**\n * Applies the base ECL class for description lists.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-description-list')].join(' ');\n }\n\n constructor(private cd: ChangeDetectorRef) {\n super();\n }\n\n /**\n * Assigns `maxVisibleItems` to child definition components if needed.\n */\n ngAfterContentInit(): void {\n if (!this.isHorizontal && this.maxVisibleItems > 0) {\n this.eclListItems.forEach((item) => (item.maxVisibleItems = this.maxVisibleItems));\n }\n this.cd.detectChanges();\n }\n}\n\n/**\n * Directive representing a term within an ECL description list.\n */\n@Directive({\n selector: '[eclDescriptionListTerm]',\n standalone: false,\n})\nexport class EclDescriptionListTermDirective extends ECLBaseDirective {\n /**\n * Applies the ECL class for description list terms.\n */\n @HostBinding('class.ecl-description-list__term') cmpClass = true;\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n EclDescriptionListDirective,\n EclDescriptionListTermDirective,\n EclOrderedListDirective,\n EclOrderedListItemDirective,\n EclUnorderedListDirective,\n EclUnorderedListItemDirective,\n} from './ecl-list.directive';\nimport { EclDescriptionListDefinitionComponent } from './ecl-description-list-definition/ecl-description-list-definition.component';\nimport { EclLinkModule } from '@eui/ecl/components/ecl-link';\nimport { EclDescriptionListDefinitionItemDirective, EclDescriptionListDefinitionListDirective } from './ecl-description-list-definition-item.directive';\n\nconst COMPONENTS = [\n EclOrderedListDirective,\n EclOrderedListItemDirective,\n EclUnorderedListDirective,\n EclUnorderedListItemDirective,\n EclDescriptionListDirective,\n EclDescriptionListTermDirective,\n EclDescriptionListDefinitionComponent,\n EclDescriptionListDefinitionItemDirective,\n EclDescriptionListDefinitionListDirective,\n];\n\n@NgModule({\n imports: [CommonModule, TranslateModule, EclLinkModule],\n exports: [...COMPONENTS],\n declarations: [...COMPONENTS],\n})\nexport class EclListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGA;;;;AAIG;AAKG,MAAO,yCAA0C,SAAQ,gBAAgB,CAAA;AAJ/E,IAAA,WAAA,GAAA;;AAiBI;;AAEG;QACH,IAAQ,CAAA,QAAA,GAAG,KAAK;AAEhB;;AAEG;QACH,IAAa,CAAA,aAAA,GAAG,KAAK;AACxB;AArBG;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,uCAAuC,CAAC;YAC5D,IAAI,CAAC,QAAQ,GAAG,+CAA+C,GAAG,EAAE;YACpE,IAAI,CAAC,aAAa,GAAG,qDAAqD,GAAG,EAAE;AAClF,SAAA,CAAC,IAAI,CAAC,GAAG,CAAC;;+GAVN,yCAAyC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAzC,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CAAC;AAChC,iBAAA;;;AC/BD;;AAEG;;;;"}
@@ -4,15 +4,53 @@ import { CommonModule } from '@angular/common';
4
4
  import { TranslateModule } from '@ngx-translate/core';
5
5
  import { ECLBaseDirective } from '@eui/ecl/core';
6
6
 
7
+ /**
8
+ * Component representing a loading indicator (spinner) using ECL styles.
9
+ *
10
+ * Supports different sizes, color variants, centering and visibility options.
11
+ */
7
12
  class EclLoadingIndicatorComponent extends ECLBaseDirective {
8
13
  constructor() {
9
14
  super(...arguments);
15
+ /**
16
+ * Size of the spinner.
17
+ *
18
+ * Possible values:
19
+ * - `'s'` – small
20
+ * - `'m'` – medium (default)
21
+ * - `'l'` – large
22
+ */
10
23
  this.size = 'm';
24
+ /**
25
+ * Variant of the spinner color.
26
+ *
27
+ * Possible values:
28
+ * - `'primary'` – default appearance
29
+ * - `'inverted'` – used on dark backgrounds
30
+ */
11
31
  this.variant = 'primary';
32
+ /**
33
+ * Controls whether the spinner should be centered.
34
+ *
35
+ * Defaults to `true`.
36
+ */
12
37
  this.isCentered = true;
38
+ /**
39
+ * Controls visibility of the spinner.
40
+ *
41
+ * When set to `false`, the spinner will be hidden via CSS.
42
+ *
43
+ * Defaults to `true`.
44
+ */
13
45
  this.isVisible = true;
46
+ /**
47
+ * Applies ARIA role for accessibility.
48
+ */
14
49
  this.role = 'alert';
15
50
  }
51
+ /**
52
+ * Applies CSS classes based on size, variant and visibility settings.
53
+ */
16
54
  get cssClasses() {
17
55
  return [
18
56
  super.getCssClasses('ecl-spinner'),
@@ -25,15 +63,12 @@ class EclLoadingIndicatorComponent extends ECLBaseDirective {
25
63
  .trim();
26
64
  }
27
65
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EclLoadingIndicatorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.12", type: EclLoadingIndicatorComponent, isStandalone: false, selector: "ecl-loading-indicator", inputs: { size: "size", variant: "variant", isCentered: ["isCentered", "isCentered", booleanAttribute], isVisible: ["isVisible", "isVisible", booleanAttribute] }, host: { properties: { "class": "this.cssClasses", "attr.role": "this.role" } }, usesInheritance: true, ngImport: i0, template: "<svg class=\"ecl-spinner__loader\" viewBox=\"25 25 50 50\">\n <circle\n class=\"ecl-spinner__circle\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke-width=\"4px\"\n stroke-miterlimit=\"10\"\n vector-effect=\"non-scaling-stroke\"></circle>\n</svg>\n<ng-content></ng-content>\n" }); }
66
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.12", type: EclLoadingIndicatorComponent, isStandalone: false, selector: "ecl-loading-indicator", inputs: { size: "size", variant: "variant", isCentered: ["isCentered", "isCentered", booleanAttribute], isVisible: ["isVisible", "isVisible", booleanAttribute] }, host: { properties: { "attr.role": "this.role", "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<svg class=\"ecl-spinner__loader\" viewBox=\"25 25 50 50\">\n <circle\n class=\"ecl-spinner__circle\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke-width=\"4px\"\n stroke-miterlimit=\"10\"\n vector-effect=\"non-scaling-stroke\"></circle>\n</svg>\n<ng-content></ng-content>\n" }); }
29
67
  }
30
68
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EclLoadingIndicatorComponent, decorators: [{
31
69
  type: Component,
32
70
  args: [{ selector: 'ecl-loading-indicator', standalone: false, template: "<svg class=\"ecl-spinner__loader\" viewBox=\"25 25 50 50\">\n <circle\n class=\"ecl-spinner__circle\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke-width=\"4px\"\n stroke-miterlimit=\"10\"\n vector-effect=\"non-scaling-stroke\"></circle>\n</svg>\n<ng-content></ng-content>\n" }]
33
- }], propDecorators: { cssClasses: [{
34
- type: HostBinding,
35
- args: ['class']
36
- }], size: [{
71
+ }], propDecorators: { size: [{
37
72
  type: Input
38
73
  }], variant: [{
39
74
  type: Input
@@ -46,10 +81,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
46
81
  }], role: [{
47
82
  type: HostBinding,
48
83
  args: ['attr.role']
84
+ }], cssClasses: [{
85
+ type: HostBinding,
86
+ args: ['class']
49
87
  }] } });
50
88
 
89
+ /**
90
+ * Directive for styling the label text of an ECL loading indicator.
91
+ *
92
+ * Adds the `ecl-spinner__text` class to the host element.
93
+ */
51
94
  class EclLoadingIndicatorLabelDirective {
52
95
  constructor() {
96
+ /**
97
+ * Applies the ECL class for spinner label text.
98
+ */
53
99
  this.className = true;
54
100
  }
55
101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EclLoadingIndicatorLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
@@ -66,7 +112,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
66
112
  args: ['class.ecl-spinner__text']
67
113
  }] } });
68
114
 
115
+ /**
116
+ * Directive that adds an overlay layer to an ECL loading indicator.
117
+ *
118
+ * Automatically applies the ECL spinner overlay classes.
119
+ */
69
120
  class EclLoadingIndicatorOverlayDirective extends ECLBaseDirective {
121
+ /**
122
+ * Applies the CSS classes for the spinner overlay.
123
+ */
70
124
  get cssClasses() {
71
125
  return [super.getCssClasses('ecl-spinner__overlay ecl-spinner__overlay--visible')].join(' ').trim();
72
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-loading-indicator.mjs","sources":["../../components/ecl-loading-indicator/ecl-loading-indicator.component.ts","../../components/ecl-loading-indicator/ecl-loading-indicator.component.html","../../components/ecl-loading-indicator/ecl-loading-indicator-label.directive.ts","../../components/ecl-loading-indicator/ecl-loading-indicator-overlay.directive.ts","../../components/ecl-loading-indicator/ecl-loading-indicator.module.ts","../../components/ecl-loading-indicator/eui-ecl-components-ecl-loading-indicator.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute } from '@angular/core';\n\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Component({\n selector: 'ecl-loading-indicator',\n templateUrl: './ecl-loading-indicator.component.html',\n standalone: false,\n})\nexport class EclLoadingIndicatorComponent extends ECLBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-spinner'),\n `ecl-spinner--${this.size}`,\n `ecl-spinner--${this.variant}`,\n this.isCentered ? 'ecl-spinner--centered' : '',\n this.isVisible ? 'ecl-spinner--visible' : '',\n ]\n .join(' ')\n .trim();\n }\n\n @Input() size: 's' | 'm' | 'l' = 'm';\n @Input() variant: 'primary' | 'inverted' = 'primary';\n @Input({ transform: booleanAttribute }) isCentered = true;\n @Input({ transform: booleanAttribute }) isVisible = true;\n\n @HostBinding('attr.role') role = 'alert';\n}\n","<svg class=\"ecl-spinner__loader\" viewBox=\"25 25 50 50\">\n <circle\n class=\"ecl-spinner__circle\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke-width=\"4px\"\n stroke-miterlimit=\"10\"\n vector-effect=\"non-scaling-stroke\"></circle>\n</svg>\n<ng-content></ng-content>\n","import { Directive, HostBinding } from '@angular/core';\n\n@Directive({\n selector: '[eclLoadingIndicatorLabel]',\n standalone: false,\n})\nexport class EclLoadingIndicatorLabelDirective {\n @HostBinding('class.ecl-spinner__text') className = true;\n}\n","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Directive({\n selector: '[eclLoadingIndicatorOverlay]',\n standalone: false,\n})\nexport class EclLoadingIndicatorOverlayDirective extends ECLBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-spinner__overlay ecl-spinner__overlay--visible')].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { EclLoadingIndicatorComponent } from './ecl-loading-indicator.component';\nimport { EclLoadingIndicatorLabelDirective } from './ecl-loading-indicator-label.directive';\nimport { EclLoadingIndicatorOverlayDirective } from './ecl-loading-indicator-overlay.directive';\n\n@NgModule({\n imports: [CommonModule, TranslateModule],\n exports: [EclLoadingIndicatorComponent, EclLoadingIndicatorLabelDirective, EclLoadingIndicatorOverlayDirective],\n declarations: [EclLoadingIndicatorComponent, EclLoadingIndicatorLabelDirective, EclLoadingIndicatorOverlayDirective],\n})\nexport class EclLoadingIndicatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AASM,MAAO,4BAA6B,SAAQ,gBAAgB,CAAA;AALlE,IAAA,WAAA,GAAA;;QAmBa,IAAI,CAAA,IAAA,GAAoB,GAAG;QAC3B,IAAO,CAAA,OAAA,GAA2B,SAAS;QACZ,IAAU,CAAA,UAAA,GAAG,IAAI;QACjB,IAAS,CAAA,SAAA,GAAG,IAAI;QAE9B,IAAI,CAAA,IAAA,GAAG,OAAO;AAC3C;AAnBG,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;YAClC,CAAgB,aAAA,EAAA,IAAI,CAAC,IAAI,CAAE,CAAA;YAC3B,CAAgB,aAAA,EAAA,IAAI,CAAC,OAAO,CAAE,CAAA;YAC9B,IAAI,CAAC,UAAU,GAAG,uBAAuB,GAAG,EAAE;YAC9C,IAAI,CAAC,SAAS,GAAG,sBAAsB,GAAG,EAAE;AAC/C;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;;+GAXN,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;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AAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,EAFnB,YAAA,EAAA,CAAA,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,CAAA,EAAA,OAAA,EAAA,CAFzG,YAAY,EAAE,eAAe,CAC7B,EAAA,OAAA,EAAA,CAAA,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,CAAA,EAAA,CAAA,CAAA;gHAGrG,yBAAyB,EAAA,OAAA,EAAA,CAJxB,YAAY,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;;4FAI9B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBALrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;AACxC,oBAAA,OAAO,EAAE,CAAC,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,CAAC;AAC/G,oBAAA,YAAY,EAAE,CAAC,4BAA4B,EAAE,iCAAiC,EAAE,mCAAmC,CAAC;AACvH,iBAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-loading-indicator.mjs","sources":["../../components/ecl-loading-indicator/ecl-loading-indicator.component.ts","../../components/ecl-loading-indicator/ecl-loading-indicator.component.html","../../components/ecl-loading-indicator/ecl-loading-indicator-label.directive.ts","../../components/ecl-loading-indicator/ecl-loading-indicator-overlay.directive.ts","../../components/ecl-loading-indicator/ecl-loading-indicator.module.ts","../../components/ecl-loading-indicator/eui-ecl-components-ecl-loading-indicator.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing a loading indicator (spinner) using ECL styles.\n *\n * Supports different sizes, color variants, centering and visibility options.\n */\n@Component({\n selector: 'ecl-loading-indicator',\n templateUrl: './ecl-loading-indicator.component.html',\n standalone: false,\n})\nexport class EclLoadingIndicatorComponent extends ECLBaseDirective {\n /**\n * Size of the spinner.\n *\n * Possible values:\n * - `'s'` small\n * - `'m'` medium (default)\n * - `'l'` – large\n */\n @Input() size: 's' | 'm' | 'l' = 'm';\n\n /**\n * Variant of the spinner color.\n *\n * Possible values:\n * - `'primary'` – default appearance\n * - `'inverted'` – used on dark backgrounds\n */\n @Input() variant: 'primary' | 'inverted' = 'primary';\n\n /**\n * Controls whether the spinner should be centered.\n *\n * Defaults to `true`.\n */\n @Input({ transform: booleanAttribute }) isCentered = true;\n\n /**\n * Controls visibility of the spinner.\n *\n * When set to `false`, the spinner will be hidden via CSS.\n *\n * Defaults to `true`.\n */\n @Input({ transform: booleanAttribute }) isVisible = true;\n\n /**\n * Applies ARIA role for accessibility.\n */\n @HostBinding('attr.role') role = 'alert';\n\n /**\n * Applies CSS classes based on size, variant and visibility settings.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-spinner'),\n `ecl-spinner--${this.size}`,\n `ecl-spinner--${this.variant}`,\n this.isCentered ? 'ecl-spinner--centered' : '',\n this.isVisible ? 'ecl-spinner--visible' : '',\n ]\n .join(' ')\n .trim();\n }\n}\n","<svg class=\"ecl-spinner__loader\" viewBox=\"25 25 50 50\">\n <circle\n class=\"ecl-spinner__circle\"\n cx=\"50\"\n cy=\"50\"\n r=\"20\"\n fill=\"none\"\n stroke-width=\"4px\"\n stroke-miterlimit=\"10\"\n vector-effect=\"non-scaling-stroke\"></circle>\n</svg>\n<ng-content></ng-content>\n","import { Directive, HostBinding } from '@angular/core';\n\n/**\n * Directive for styling the label text of an ECL loading indicator.\n *\n * Adds the `ecl-spinner__text` class to the host element.\n */\n@Directive({\n selector: '[eclLoadingIndicatorLabel]',\n standalone: false,\n})\nexport class EclLoadingIndicatorLabelDirective {\n /**\n * Applies the ECL class for spinner label text.\n */\n @HostBinding('class.ecl-spinner__text') className = true;\n}\n","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that adds an overlay layer to an ECL loading indicator.\n *\n * Automatically applies the ECL spinner overlay classes.\n */\n@Directive({\n selector: '[eclLoadingIndicatorOverlay]',\n standalone: false,\n})\nexport class EclLoadingIndicatorOverlayDirective extends ECLBaseDirective {\n /**\n * Applies the CSS classes for the spinner overlay.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-spinner__overlay ecl-spinner__overlay--visible')].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { EclLoadingIndicatorComponent } from './ecl-loading-indicator.component';\nimport { EclLoadingIndicatorLabelDirective } from './ecl-loading-indicator-label.directive';\nimport { EclLoadingIndicatorOverlayDirective } from './ecl-loading-indicator-overlay.directive';\n\n@NgModule({\n imports: [CommonModule, TranslateModule],\n exports: [EclLoadingIndicatorComponent, EclLoadingIndicatorLabelDirective, EclLoadingIndicatorOverlayDirective],\n declarations: [EclLoadingIndicatorComponent, EclLoadingIndicatorLabelDirective, EclLoadingIndicatorOverlayDirective],\n})\nexport class EclLoadingIndicatorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA;;;;AAIG;AAMG,MAAO,4BAA6B,SAAQ,gBAAgB,CAAA;AALlE,IAAA,WAAA,GAAA;;AAMI;;;;;;;AAOG;QACM,IAAI,CAAA,IAAA,GAAoB,GAAG;AAEpC;;;;;;AAMG;QACM,IAAO,CAAA,OAAA,GAA2B,SAAS;AAEpD;;;;AAIG;QACqC,IAAU,CAAA,UAAA,GAAG,IAAI;AAEzD;;;;;;AAMG;QACqC,IAAS,CAAA,SAAA,GAAG,IAAI;AAExD;;AAEG;QACuB,IAAI,CAAA,IAAA,GAAG,OAAO;AAiB3C;AAfG;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;YAClC,CAAgB,aAAA,E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
+ * Directive that allows an element to close the modal on click.
20
+ *
21
+ * Can emit a result and indicate the role (e.g., confirm, cancel).
22
+ */
18
23
  class EclModalCloseDirective extends ECLBaseDirective {
19
24
  constructor() {
20
25
  super(...arguments);
26
+ /**
27
+ * Event emitted when the element is clicked and the modal should be closed.
28
+ */
21
29
  this.modalClose = new EventEmitter();
22
30
  }
31
+ /**
32
+ * Handles click events and emits the `modalClose` event.
33
+ */
23
34
  onClick(evt) {
24
35
  this.modalClose.next(null);
25
36
  }
@@ -55,19 +66,45 @@ class EclModalCloseEvent extends EclBaseEvent {
55
66
  }
56
67
  }
57
68
 
69
+ /**
70
+ * Header component used within the ECL Modal.
71
+ *
72
+ * Displays an icon depending on the modal variant, user-defined content,
73
+ * and a close button that emits a close event.
74
+ */
58
75
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
59
76
  class EclModalHeaderComponent extends ECLBaseDirective {
60
77
  get cssClasses() {
61
78
  return [super.getCssClasses('ecl-modal__header')].join(' ').trim();
62
79
  }
80
+ /**
81
+ * Constructs the modal header component with injected theme service.
82
+ *
83
+ * @param eclThemeService The theme service used to determine current theme settings.
84
+ */
63
85
  constructor(eclThemeService) {
64
86
  super();
65
87
  this.eclThemeService = eclThemeService;
88
+ /**
89
+ * Event emitted when the close button is clicked.
90
+ *
91
+ * Emits an `EclModalCloseEvent` object.
92
+ */
66
93
  this.modalClose = new EventEmitter();
67
94
  }
95
+ /**
96
+ * Handles the click event on the close button.
97
+ *
98
+ * Emits a `modalClose` event with no payload.
99
+ */
68
100
  onCloseClick() {
69
101
  this.modalClose.next(new EclModalCloseEvent());
70
102
  }
103
+ /**
104
+ * Returns the name of the icon associated with the current variant.
105
+ *
106
+ * @returns The icon name, or `null` if no matching variant exists.
107
+ */
71
108
  getIcon() {
72
109
  if (this.variant === 'information') {
73
110
  return 'information';
@@ -108,36 +145,80 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
108
145
  class EclModalComponent extends ECLBaseDirective {
109
146
  constructor() {
110
147
  super(...arguments);
148
+ /**
149
+ * Defines the size of the modal.
150
+ *
151
+ * Possible values:
152
+ * - 's' – small
153
+ * - 'm' – medium
154
+ * - 'l' – large (default)
155
+ * - 'full' – full width
156
+ */
111
157
  this.size = 'l';
158
+ /**
159
+ * Emits when the modal is closed.
160
+ *
161
+ * Carries an instance of `EclModalCloseEvent`.
162
+ */
112
163
  this.modalClose = new EventEmitter();
164
+ /**
165
+ * Emits when the modal is opened.
166
+ *
167
+ * Carries an instance of `EclModalOpenEvent`.
168
+ */
113
169
  this.modalOpen = new EventEmitter();
114
170
  this._isOpen = false;
115
171
  this.destroy$ = new Subject();
116
172
  }
173
+ /**
174
+ * Controls whether the modal is open.
175
+ *
176
+ * Can be set to any truthy value to open the modal.
177
+ */
117
178
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
118
179
  set isOpen(value) {
119
180
  this._isOpen = coerceBooleanProperty(value);
120
181
  }
182
+ /**
183
+ * Returns the open state of the modal.
184
+ */
121
185
  get isOpen() {
122
186
  return this._isOpen || null;
123
187
  }
188
+ /**
189
+ * Binds the `open` attribute to the modal element.
190
+ *
191
+ * Used by the native `<dialog>` element.
192
+ */
124
193
  get isModalOpened() {
125
194
  return this.isOpen;
126
195
  }
196
+ /**
197
+ * Applies base and variant CSS classes to the modal element.
198
+ */
127
199
  get cssClasses() {
128
200
  return [super.getCssClasses('ecl-modal'),
129
201
  this.variant ? `ecl-modal--${this.variant}` : '',
130
202
  `ecl-modal--${this.size}`,
131
203
  ].join(' ').trim();
132
204
  }
205
+ /**
206
+ * Handles ESC key press to close the modal with `cancel` role.
207
+ */
133
208
  onEscapeKeydownHandler() {
134
209
  this.closeModal({ eclModalRole: 'cancel' });
135
210
  }
211
+ /**
212
+ * Reacts to input changes and updates the modal header if available.
213
+ */
136
214
  ngOnChanges() {
137
215
  if (this.eclModalHeader) {
138
216
  this.eclModalHeader.variant = this.variant;
139
217
  }
140
218
  }
219
+ /**
220
+ * Subscribes to close events from header and close directives after content is initialized.
221
+ */
141
222
  ngAfterContentInit() {
142
223
  if (this.eclModalHeader) {
143
224
  this.eclModalHeader.variant = this.variant;
@@ -154,10 +235,18 @@ class EclModalComponent extends ECLBaseDirective {
154
235
  });
155
236
  });
156
237
  }
238
+ /**
239
+ * Cleans up subscriptions on component destruction.
240
+ */
157
241
  ngOnDestroy() {
158
242
  this.destroy$.next(true);
159
243
  this.destroy$.unsubscribe();
160
244
  }
245
+ /**
246
+ * Opens the modal and emits a `modalOpen` event.
247
+ *
248
+ * If the event is not prevented, the modal will be displayed.
249
+ */
161
250
  openModal() {
162
251
  const event = new EclModalOpenEvent();
163
252
  this.modalOpen.next(event);
@@ -166,6 +255,11 @@ class EclModalComponent extends ECLBaseDirective {
166
255
  }
167
256
  setTimeout(() => this.eclModalHeader.closeButton.el.nativeElement.focus(), 100);
168
257
  }
258
+ /**
259
+ * Closes the modal and emits a `modalClose` event with optional result data.
260
+ *
261
+ * If the event is not prevented, the modal will be hidden.
262
+ */
169
263
  closeModal(result) {
170
264
  if (this.isOpen) {
171
265
  const event = new EclModalCloseEvent({
@@ -211,11 +305,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
211
305
  args: ['document:keydown.escape']
212
306
  }] } });
213
307
 
308
+ /**
309
+ * Body component used inside the ECL Modal.
310
+ *
311
+ * Optionally allows scrollable content inside the modal body.
312
+ */
214
313
  class EclModalBodyComponent extends ECLBaseDirective {
215
314
  constructor() {
216
315
  super(...arguments);
316
+ /**
317
+ * When true, adds a modifier class to allow scrollable content inside the modal body.
318
+ */
217
319
  this.isScrollable = false;
218
320
  }
321
+ /**
322
+ * Applies CSS classes for the modal body and scrollable modifier if enabled.
323
+ */
219
324
  get cssClasses() {
220
325
  return [
221
326
  super.getCssClasses('ecl-modal__body'),
@@ -236,10 +341,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
236
341
  args: ['class']
237
342
  }] } });
238
343
 
344
+ /**
345
+ * Footer component used within the ECL Modal.
346
+ *
347
+ * Automatically applies styling to buttons projected into the footer.
348
+ */
239
349
  class EclModalFooterComponent extends ECLBaseDirective {
350
+ /**
351
+ * Applies the ECL CSS class for modal footer container.
352
+ */
240
353
  get cssClasses() {
241
354
  return [super.getCssClasses('ecl-modal__footer')].join(' ').trim();
242
355
  }
356
+ /**
357
+ * Lifecycle hook that runs after content projection.
358
+ *
359
+ * Applies `ecl-modal__button` class to each projected button component.
360
+ */
243
361
  ngAfterContentInit() {
244
362
  if (this.buttonComponents) {
245
363
  setTimeout(() => {
@@ -263,8 +381,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
263
381
  args: ['class']
264
382
  }] } });
265
383
 
384
+ /**
385
+ * Directive used to trigger opening of a target ECL modal on click.
386
+ */
266
387
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
267
388
  class EclModalTriggerDirective extends ECLBaseDirective {
389
+ /**
390
+ * Handles click event and opens the target modal.
391
+ */
268
392
  onClick(evt) {
269
393
  this.eclModalTriggerFor?.openModal();
270
394
  }
@@ -284,9 +408,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
284
408
  args: ['click', ['$event']]
285
409
  }] } });
286
410
 
411
+ /**
412
+ * Directive for styling fixed content inside the modal body.
413
+ *
414
+ * Applies the appropriate CSS class to mark the element as fixed inside the modal body.
415
+ */
287
416
  class EclModalBodyFixedContentDirective extends ECLBaseDirective {
288
417
  constructor() {
289
418
  super(...arguments);
419
+ /**
420
+ * Applies the `ecl-modal__body-fixed` class to the host element.
421
+ */
290
422
  this.className = true;
291
423
  }
292
424
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: EclModalBodyFixedContentDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }