@eui/ecl 22.0.0-alpha.71 → 22.0.0-alpha.72

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 (152) hide show
  1. package/docs/changelog.html +31 -0
  2. package/docs/classes/EclFileUploadFileSelectedEvent.html +3 -3
  3. package/docs/components/EclAccordionSummaryComponent.html +1 -1
  4. package/docs/components/EclAnimatedNumbersComponent.html +5 -5
  5. package/docs/components/EclAnimatedNumbersItemComponent.html +8 -8
  6. package/docs/components/EclBannerComponent.html +1 -1
  7. package/docs/components/EclBreadcrumbComponent.html +7 -7
  8. package/docs/components/EclBreadcrumbSegmentComponent.html +6 -6
  9. package/docs/components/EclInpageNavigationItemComponent.html +2 -2
  10. package/docs/components/EclMenuComponent.html +0 -4
  11. package/docs/components/EclNotificationComponent.html +1 -1
  12. package/docs/components/EclPageHeaderComponent.html +3 -3
  13. package/docs/components/EclPageHeaderDescriptionContainerComponent.html +1 -1
  14. package/docs/components/EclPageSummaryComponent.html +1 -1
  15. package/docs/components/EclPaginationItemComponent.html +5 -5
  16. package/docs/components/EclQuizCardComponent.html +1 -1
  17. package/docs/components/EclSiteFooterComponent.html +2 -2
  18. package/docs/directives/EclCheckboxDirective.html +3 -3
  19. package/docs/directives/EclDatePickerDuetDirective.html +4 -4
  20. package/docs/directives/EclSelectDirective.html +1 -1
  21. package/docs/js/search/search_index.js +2 -2
  22. package/docs/json/EclAccordionSummaryComponent.md +1 -1
  23. package/docs/json/EclAnimatedNumbersComponent.md +5 -5
  24. package/docs/json/EclAnimatedNumbersItemComponent.md +8 -8
  25. package/docs/json/EclBannerComponent.md +1 -1
  26. package/docs/json/EclBreadcrumbComponent.md +6 -6
  27. package/docs/json/EclBreadcrumbSegmentComponent.md +6 -6
  28. package/docs/json/EclCheckboxDirective.md +3 -3
  29. package/docs/json/EclDatePickerDuetDirective.md +4 -4
  30. package/docs/json/EclInpageNavigationItemComponent.md +2 -2
  31. package/docs/json/EclNotificationComponent.md +1 -1
  32. package/docs/json/EclPageHeaderComponent.md +3 -3
  33. package/docs/json/EclPageHeaderDescriptionContainerComponent.md +1 -1
  34. package/docs/json/EclPageSummaryComponent.md +1 -1
  35. package/docs/json/EclPaginationItemComponent.md +5 -5
  36. package/docs/json/EclQuizCardComponent.md +1 -1
  37. package/docs/json/EclSelectDirective.md +1 -1
  38. package/docs/json/EclSiteFooterComponent.md +2 -2
  39. package/docs/json/documentation.json +988 -1006
  40. package/docs/llms.txt +23 -23
  41. package/docs/properties.html +1 -1
  42. package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
  43. package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs.map +1 -1
  44. package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs.map +1 -1
  45. package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
  46. package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs +1 -1
  47. package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs.map +1 -1
  48. package/fesm2022/eui-ecl-components-ecl-button.mjs.map +1 -1
  49. package/fesm2022/eui-ecl-components-ecl-card.mjs +1 -1
  50. package/fesm2022/eui-ecl-components-ecl-card.mjs.map +1 -1
  51. package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
  52. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs +6 -6
  53. package/fesm2022/eui-ecl-components-ecl-category-filter.mjs.map +1 -1
  54. package/fesm2022/eui-ecl-components-ecl-checkbox.mjs.map +1 -1
  55. package/fesm2022/eui-ecl-components-ecl-content-block.mjs.map +1 -1
  56. package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
  57. package/fesm2022/eui-ecl-components-ecl-date-picker.mjs.map +1 -1
  58. package/fesm2022/eui-ecl-components-ecl-divider.mjs +1 -1
  59. package/fesm2022/eui-ecl-components-ecl-divider.mjs.map +1 -1
  60. package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs.map +1 -1
  61. package/fesm2022/eui-ecl-components-ecl-featured.mjs +4 -4
  62. package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
  63. package/fesm2022/eui-ecl-components-ecl-file-upload.mjs.map +1 -1
  64. package/fesm2022/eui-ecl-components-ecl-gallery.mjs +1 -1
  65. package/fesm2022/eui-ecl-components-ecl-gallery.mjs.map +1 -1
  66. package/fesm2022/eui-ecl-components-ecl-highlighted-search.mjs +3 -3
  67. package/fesm2022/eui-ecl-components-ecl-highlighted-search.mjs.map +1 -1
  68. package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs +3 -3
  69. package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs.map +1 -1
  70. package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs +3 -3
  71. package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs.map +1 -1
  72. package/fesm2022/eui-ecl-components-ecl-list.mjs +5 -5
  73. package/fesm2022/eui-ecl-components-ecl-list.mjs.map +1 -1
  74. package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
  75. package/fesm2022/eui-ecl-components-ecl-menu.mjs +1 -2
  76. package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
  77. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs +1 -1
  78. package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs.map +1 -1
  79. package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
  80. package/fesm2022/eui-ecl-components-ecl-page-header.mjs +12 -12
  81. package/fesm2022/eui-ecl-components-ecl-page-header.mjs.map +1 -1
  82. package/fesm2022/eui-ecl-components-ecl-page-information.mjs.map +1 -1
  83. package/fesm2022/eui-ecl-components-ecl-page-summary.mjs.map +1 -1
  84. package/fesm2022/eui-ecl-components-ecl-pagination.mjs.map +1 -1
  85. package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
  86. package/fesm2022/eui-ecl-components-ecl-quiz.mjs +1 -1
  87. package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
  88. package/fesm2022/eui-ecl-components-ecl-radio.mjs.map +1 -1
  89. package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
  90. package/fesm2022/eui-ecl-components-ecl-select.mjs.map +1 -1
  91. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +1 -1
  92. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
  93. package/fesm2022/eui-ecl-components-ecl-slider.mjs.map +1 -1
  94. package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs.map +1 -1
  95. package/fesm2022/eui-ecl-components-ecl-spotlight.mjs.map +1 -1
  96. package/fesm2022/eui-ecl-components-ecl-story-card.mjs.map +1 -1
  97. package/fesm2022/eui-ecl-components-ecl-tabs.mjs +1 -1
  98. package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
  99. package/fesm2022/eui-ecl-components-ecl-tag.mjs +1 -1
  100. package/fesm2022/eui-ecl-components-ecl-tag.mjs.map +1 -1
  101. package/fesm2022/eui-ecl-components-ecl-text-media.mjs.map +1 -1
  102. package/fesm2022/eui-ecl-components-ecl-timeline.mjs +1 -1
  103. package/fesm2022/eui-ecl-components-ecl-timeline.mjs.map +1 -1
  104. package/package.json +1 -1
  105. package/types/eui-ecl-components-ecl-accordion.d.ts +1 -1
  106. package/types/eui-ecl-components-ecl-accordion.d.ts.map +1 -1
  107. package/types/eui-ecl-components-ecl-animated-numbers.d.ts +13 -13
  108. package/types/eui-ecl-components-ecl-animated-numbers.d.ts.map +1 -1
  109. package/types/eui-ecl-components-ecl-banner.d.ts +1 -1
  110. package/types/eui-ecl-components-ecl-breadcrumb.d.ts +12 -12
  111. package/types/eui-ecl-components-ecl-breadcrumb.d.ts.map +1 -1
  112. package/types/eui-ecl-components-ecl-button.d.ts.map +1 -1
  113. package/types/eui-ecl-components-ecl-carousel.d.ts.map +1 -1
  114. package/types/eui-ecl-components-ecl-category-filter.d.ts.map +1 -1
  115. package/types/eui-ecl-components-ecl-checkbox.d.ts +3 -3
  116. package/types/eui-ecl-components-ecl-checkbox.d.ts.map +1 -1
  117. package/types/eui-ecl-components-ecl-date-block.d.ts.map +1 -1
  118. package/types/eui-ecl-components-ecl-date-picker.d.ts +4 -4
  119. package/types/eui-ecl-components-ecl-date-picker.d.ts.map +1 -1
  120. package/types/eui-ecl-components-ecl-file-upload.d.ts +2 -2
  121. package/types/eui-ecl-components-ecl-file-upload.d.ts.map +1 -1
  122. package/types/eui-ecl-components-ecl-inpage-navigation.d.ts +2 -2
  123. package/types/eui-ecl-components-ecl-inpage-navigation.d.ts.map +1 -1
  124. package/types/eui-ecl-components-ecl-mega-menu.d.ts.map +1 -1
  125. package/types/eui-ecl-components-ecl-menu.d.ts +1 -2
  126. package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
  127. package/types/eui-ecl-components-ecl-news-ticker.d.ts.map +1 -1
  128. package/types/eui-ecl-components-ecl-notification.d.ts +1 -1
  129. package/types/eui-ecl-components-ecl-notification.d.ts.map +1 -1
  130. package/types/eui-ecl-components-ecl-page-header.d.ts +4 -4
  131. package/types/eui-ecl-components-ecl-page-header.d.ts.map +1 -1
  132. package/types/eui-ecl-components-ecl-page-summary.d.ts +1 -1
  133. package/types/eui-ecl-components-ecl-page-summary.d.ts.map +1 -1
  134. package/types/eui-ecl-components-ecl-pagination.d.ts +5 -5
  135. package/types/eui-ecl-components-ecl-pagination.d.ts.map +1 -1
  136. package/types/eui-ecl-components-ecl-popover.d.ts.map +1 -1
  137. package/types/eui-ecl-components-ecl-quiz.d.ts +1 -1
  138. package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -1
  139. package/types/eui-ecl-components-ecl-radio.d.ts.map +1 -1
  140. package/types/eui-ecl-components-ecl-range.d.ts.map +1 -1
  141. package/types/eui-ecl-components-ecl-select.d.ts +2 -2
  142. package/types/eui-ecl-components-ecl-select.d.ts.map +1 -1
  143. package/types/eui-ecl-components-ecl-site-footer.d.ts +2 -2
  144. package/types/eui-ecl-components-ecl-site-footer.d.ts.map +1 -1
  145. package/types/eui-ecl-components-ecl-slider.d.ts.map +1 -1
  146. package/types/eui-ecl-components-ecl-slogan-ticker.d.ts +1 -1
  147. package/types/eui-ecl-components-ecl-slogan-ticker.d.ts.map +1 -1
  148. package/types/eui-ecl-components-ecl-spotlight.d.ts.map +1 -1
  149. package/types/eui-ecl-components-ecl-story-card.d.ts.map +1 -1
  150. package/types/eui-ecl-components-ecl-tabs.d.ts.map +1 -1
  151. package/types/eui-ecl-components-ecl-text-media.d.ts.map +1 -1
  152. package/types/eui-ecl-components-ecl-timeline.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-content-block.mjs","names":[],"sources":["../../components/ecl-content-block/ecl-content-block-elements.directive.ts","../../components/ecl-content-block/ecl-content-block.component.ts","../../components/ecl-content-block/ecl-content-block.component.html","../../components/ecl-content-block/index.ts"],"sourcesContent":["import { Directive, computed, contentChild, input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * Directive representing the title slot of an `EclContentBlockComponent`.\n * Applies the `ecl-content-block__title` class. Queries for a nested `EclLinkDirective`\n * so parent components can trigger navigation from an image click.\n */\n@Directive({\n selector: '[eclContentBlockTitle]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTitleDirective extends ECLBaseDirective {\n /**\n * Optional child ECL link directive nested inside the title.\n */\n readonly eclLink = contentChild(EclLinkDirective, { descendants: true });\n\n /**\n * Adds the ECL CSS class for the content block title.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__title'));\n}\n\n/**\n * Directive for the description slot of an `EclContentBlockComponent`.\n * Applies the `ecl-content-block__description` class.\n */\n@Directive({\n selector: '[eclContentBlockDescription]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockDescriptionDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the content block description.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__description'));\n}\n\n/**\n * Directive for the container that wraps multiple labels in a content block.\n */\n@Directive({\n selector: '[eclContentBlockLabels]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLabelsDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the label container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__label-container'));\n}\n\n/**\n * Directive representing a single label inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLabelDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a label item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__label-item'));\n}\n\n/**\n * Directive for the primary metadata container in a content block.\n */\n@Directive({\n selector: '[eclContentBlockPrimaryMetas]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockPrimaryMetasDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the primary metadata container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__primary-meta-container'));\n}\n\n/**\n * Directive for a single primary metadata item in a content block.\n */\n@Directive({\n selector: '[eclContentBlockPrimaryMeta]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockPrimaryMetaDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a primary metadata item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__primary-meta-item'));\n}\n\n/**\n * Directive for the secondary metadata container in an `EclContentBlockComponent`.\n * Applies `ecl-content-block__secondary-meta-container`.\n * When `isHorizontal` is `true`, appends the `--horizontal` modifier.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetas]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetasDirective extends ECLBaseDirective {\n\n isHorizontal = input(false, { transform: booleanAttribute});\n\n /**\n * Adds the ECL CSS class for the secondary metadata container.\n */\n protected readonly cssClasses = computed<string>(() =>\n [super.getCssClasses('ecl-content-block__secondary-meta-container'),\n this.isHorizontal() ? 'ecl-content-block__secondary-meta-container--horizontal' : '',\n ].join(' ').trim());\n}\n\n/**\n * Directive for a single secondary metadata item in a content block.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMeta]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-item'));\n}\n\n/**\n * Directive for the label element of a secondary metadata item.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetaLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaLabelDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata label.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-label'));\n}\n\n/**\n * Directive for the icon element of a secondary metadata item.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetaIcon]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaIconDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata icon.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-icon'));\n}\n\n/**\n * Directive for the container holding tags inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockTags]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTagsDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the tag container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__tag-container'));\n}\n\n/**\n * Directive for a single tag item inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockTag]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTagDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a tag item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__tag-item'));\n}\n\n/**\n * Directive for the container that wraps link elements.\n */\n@Directive({\n selector: '[eclContentBlockLinksContainer]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinksContainerDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the links container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-container'));\n}\n\n/**\n * Directive for the list of links inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLinks]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinksDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the link list.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-list'));\n}\n\n/**\n * Directive for a single link inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLink]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinkDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a single link item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-item'));\n}\n\n/**\n * Directive for the container holding a list inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockListContainer]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockListContainerDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the list container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__list-container'));\n}\n\n/**\n * Directive for a list element inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockList]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockListDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a list.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__list'));\n}\n","import { Component, ElementRef, computed, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Content block component following the ECL design system.\n * Serves as a structured container for composed content: titles, descriptions, labels,\n * primary/secondary metadata, tags, and link lists. Used as a building block inside\n * `EclCardComponent`, `EclContentItemComponent`, and other pattern components.\n * Selector: `ecl-content-block`. Applies the `ecl-content-block` class.\n *\n * - Use the companion directives from `ecl-content-block-elements.directive.ts` to mark\n * up the internal slots: `[eclContentBlockTitle]`, `[eclContentBlockDescription]`,\n * `[eclContentBlockLabels]` / `[eclContentBlockLabel]`,\n * `[eclContentBlockPrimaryMetas]` / `[eclContentBlockPrimaryMeta]`,\n * `[eclContentBlockSecondaryMetas]` / `[eclContentBlockSecondaryMeta]`,\n * `[eclContentBlockTags]` / `[eclContentBlockTag]`,\n * `[eclContentBlockLinksContainer]` / `[eclContentBlockLinks]` / `[eclContentBlockLink]`.\n */\n@Component({\n selector: 'ecl-content-block',\n templateUrl: './ecl-content-block.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockComponent extends ECLBaseDirective {\n readonly el = inject(ElementRef);\n /**\n * Binds the component's root CSS classes.\n * Adds the `ecl-content-block` class by default.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block'));\n}\n","<ng-content></ng-content>\n","import {\n EclContentBlockDescriptionDirective,\n EclContentBlockLabelDirective,\n EclContentBlockLabelsDirective,\n EclContentBlockLinkDirective,\n EclContentBlockLinksContainerDirective,\n EclContentBlockLinksDirective,\n EclContentBlockListContainerDirective,\n EclContentBlockListDirective,\n EclContentBlockPrimaryMetaDirective,\n EclContentBlockPrimaryMetasDirective,\n EclContentBlockSecondaryMetaDirective,\n EclContentBlockSecondaryMetaIconDirective,\n EclContentBlockSecondaryMetaLabelDirective,\n EclContentBlockSecondaryMetasDirective,\n EclContentBlockTagDirective,\n EclContentBlockTagsDirective,\n EclContentBlockTitleDirective,\n} from './ecl-content-block-elements.directive';\nimport { EclContentBlockComponent } from './ecl-content-block.component';\n\nexport * from './ecl-content-block.component';\nexport * from './ecl-content-block-elements.directive';\n\nexport const EUI_ECL_CONTENT_BLOCK = [\n EclContentBlockDescriptionDirective,\n EclContentBlockLabelDirective,\n EclContentBlockLabelsDirective,\n EclContentBlockLinkDirective,\n EclContentBlockLinksContainerDirective,\n EclContentBlockLinksDirective,\n EclContentBlockListContainerDirective,\n EclContentBlockListDirective,\n EclContentBlockPrimaryMetaDirective,\n EclContentBlockPrimaryMetasDirective,\n EclContentBlockSecondaryMetaDirective,\n EclContentBlockSecondaryMetaIconDirective,\n EclContentBlockSecondaryMetaLabelDirective,\n EclContentBlockSecondaryMetasDirective,\n EclContentBlockTagDirective,\n EclContentBlockTagsDirective,\n EclContentBlockTitleDirective,\n EclContentBlockComponent,\n] as const;"],"mappings":";;;;AAeA,IAAa,gCAAb,MAAa,sCAAsC,iBAAgB;CANnE,cAAA;;EAUW,KAAA,UAAU,aAAa,kBAAgB;GAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;GAAI,aAAa;EAAI,CAAA;EAKlD,KAAA,aAAa,eAC9B,MAAM,cAAc,0BAA0B,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CACnD;CAXY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA6B,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA7B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA6B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,eAAA,EAAA;GAAA,SAAA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A;CAAwB,YAAA,CAAA;EAdpC,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAAmB,MASvB,EACF,WAAW,eACd;GAAA,UAAA;GAAA,QAAA,CAAA,wBAAA;EAAA,CAAA;;;AENL,MAAa,wBAAwB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-content-block.mjs","names":[],"sources":["../../components/ecl-content-block/ecl-content-block-elements.directive.ts","../../components/ecl-content-block/ecl-content-block.component.ts","../../components/ecl-content-block/ecl-content-block.component.html","../../components/ecl-content-block/index.ts"],"sourcesContent":["import { Directive, computed, contentChild, input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * Directive representing the title slot of an `EclContentBlockComponent`.\n * Applies the `ecl-content-block__title` class. Queries for a nested `EclLinkDirective`\n * so parent components can trigger navigation from an image click.\n */\n@Directive({\n selector: '[eclContentBlockTitle]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTitleDirective extends ECLBaseDirective {\n /**\n * Optional child ECL link directive nested inside the title.\n */\n readonly eclLink = contentChild(EclLinkDirective, { descendants: true });\n\n /**\n * Adds the ECL CSS class for the content block title.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__title'));\n}\n\n/**\n * Directive for the description slot of an `EclContentBlockComponent`.\n * Applies the `ecl-content-block__description` class.\n */\n@Directive({\n selector: '[eclContentBlockDescription]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockDescriptionDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the content block description.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__description'));\n}\n\n/**\n * Directive for the container that wraps multiple labels in a content block.\n */\n@Directive({\n selector: '[eclContentBlockLabels]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLabelsDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the label container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__label-container'));\n}\n\n/**\n * Directive representing a single label inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLabelDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a label item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__label-item'));\n}\n\n/**\n * Directive for the primary metadata container in a content block.\n */\n@Directive({\n selector: '[eclContentBlockPrimaryMetas]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockPrimaryMetasDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the primary metadata container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__primary-meta-container'));\n}\n\n/**\n * Directive for a single primary metadata item in a content block.\n */\n@Directive({\n selector: '[eclContentBlockPrimaryMeta]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockPrimaryMetaDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a primary metadata item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__primary-meta-item'));\n}\n\n/**\n * Directive for the secondary metadata container in an `EclContentBlockComponent`.\n * Applies `ecl-content-block__secondary-meta-container`.\n * When `isHorizontal` is `true`, appends the `--horizontal` modifier.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetas]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetasDirective extends ECLBaseDirective {\n\n isHorizontal = input(false, { transform: booleanAttribute });\n\n /**\n * Adds the ECL CSS class for the secondary metadata container.\n */\n protected readonly cssClasses = computed<string>(() =>\n [super.getCssClasses('ecl-content-block__secondary-meta-container'),\n this.isHorizontal() ? 'ecl-content-block__secondary-meta-container--horizontal' : '',\n ].join(' ').trim());\n}\n\n/**\n * Directive for a single secondary metadata item in a content block.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMeta]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-item'));\n}\n\n/**\n * Directive for the label element of a secondary metadata item.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetaLabel]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaLabelDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata label.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-label'));\n}\n\n/**\n * Directive for the icon element of a secondary metadata item.\n */\n@Directive({\n selector: '[eclContentBlockSecondaryMetaIcon]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockSecondaryMetaIconDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a secondary metadata icon.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__secondary-meta-icon'));\n}\n\n/**\n * Directive for the container holding tags inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockTags]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTagsDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the tag container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__tag-container'));\n}\n\n/**\n * Directive for a single tag item inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockTag]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockTagDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a tag item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__tag-item'));\n}\n\n/**\n * Directive for the container that wraps link elements.\n */\n@Directive({\n selector: '[eclContentBlockLinksContainer]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinksContainerDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the links container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-container'));\n}\n\n/**\n * Directive for the list of links inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLinks]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinksDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the link list.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-list'));\n}\n\n/**\n * Directive for a single link inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockLink]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockLinkDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a single link item.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__link-item'));\n}\n\n/**\n * Directive for the container holding a list inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockListContainer]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockListContainerDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for the list container.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__list-container'));\n}\n\n/**\n * Directive for a list element inside a content block.\n */\n@Directive({\n selector: '[eclContentBlockList]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockListDirective extends ECLBaseDirective {\n /**\n * Adds the ECL CSS class for a list.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block__list'));\n}\n","import { Component, ElementRef, computed, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Content block component following the ECL design system.\n * Serves as a structured container for composed content: titles, descriptions, labels,\n * primary/secondary metadata, tags, and link lists. Used as a building block inside\n * `EclCardComponent`, `EclContentItemComponent`, and other pattern components.\n * Selector: `ecl-content-block`. Applies the `ecl-content-block` class.\n *\n * - Use the companion directives from `ecl-content-block-elements.directive.ts` to mark\n * up the internal slots: `[eclContentBlockTitle]`, `[eclContentBlockDescription]`,\n * `[eclContentBlockLabels]` / `[eclContentBlockLabel]`,\n * `[eclContentBlockPrimaryMetas]` / `[eclContentBlockPrimaryMeta]`,\n * `[eclContentBlockSecondaryMetas]` / `[eclContentBlockSecondaryMeta]`,\n * `[eclContentBlockTags]` / `[eclContentBlockTag]`,\n * `[eclContentBlockLinksContainer]` / `[eclContentBlockLinks]` / `[eclContentBlockLink]`.\n */\n@Component({\n selector: 'ecl-content-block',\n templateUrl: './ecl-content-block.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclContentBlockComponent extends ECLBaseDirective {\n readonly el = inject(ElementRef);\n /**\n * Binds the component's root CSS classes.\n * Adds the `ecl-content-block` class by default.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-content-block'));\n}\n","<ng-content></ng-content>\n","import {\n EclContentBlockDescriptionDirective,\n EclContentBlockLabelDirective,\n EclContentBlockLabelsDirective,\n EclContentBlockLinkDirective,\n EclContentBlockLinksContainerDirective,\n EclContentBlockLinksDirective,\n EclContentBlockListContainerDirective,\n EclContentBlockListDirective,\n EclContentBlockPrimaryMetaDirective,\n EclContentBlockPrimaryMetasDirective,\n EclContentBlockSecondaryMetaDirective,\n EclContentBlockSecondaryMetaIconDirective,\n EclContentBlockSecondaryMetaLabelDirective,\n EclContentBlockSecondaryMetasDirective,\n EclContentBlockTagDirective,\n EclContentBlockTagsDirective,\n EclContentBlockTitleDirective,\n} from './ecl-content-block-elements.directive';\nimport { EclContentBlockComponent } from './ecl-content-block.component';\n\nexport * from './ecl-content-block.component';\nexport * from './ecl-content-block-elements.directive';\n\nexport const EUI_ECL_CONTENT_BLOCK = [\n EclContentBlockDescriptionDirective,\n EclContentBlockLabelDirective,\n EclContentBlockLabelsDirective,\n EclContentBlockLinkDirective,\n EclContentBlockLinksContainerDirective,\n EclContentBlockLinksDirective,\n EclContentBlockListContainerDirective,\n EclContentBlockListDirective,\n EclContentBlockPrimaryMetaDirective,\n EclContentBlockPrimaryMetasDirective,\n EclContentBlockSecondaryMetaDirective,\n EclContentBlockSecondaryMetaIconDirective,\n EclContentBlockSecondaryMetaLabelDirective,\n EclContentBlockSecondaryMetasDirective,\n EclContentBlockTagDirective,\n EclContentBlockTagsDirective,\n EclContentBlockTitleDirective,\n EclContentBlockComponent,\n] as const;"],"mappings":";;;;AAeA,IAAa,gCAAb,MAAa,sCAAsC,iBAAgB;CANnE,cAAA;;EAUW,KAAA,UAAU,aAAa,kBAAgB;GAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;GAAI,aAAa;EAAI,CAAA;EAKlD,KAAA,aAAa,eAC9B,MAAM,cAAc,0BAA0B,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CACnD;CAXY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA6B,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA7B;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAA6B,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,eAAA,EAAA;GAAA,SAAA,CAAA;IAAA,cAAA;IAAA,OAAA;IAAA,WAIR;IAAgB,aAAA;IAAA,UAAA;GAAA,CAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAJrC,GAAA,yBAAA;C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L,MAAa,wBAAwB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACM"}
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-date-block.mjs","names":[],"sources":["../../components/ecl-date-block/ecl-date-block.component.ts","../../components/ecl-date-block/ecl-date-block.component.html","../../components/ecl-date-block/index.ts"],"sourcesContent":["import { formatDate, DatePipe } from '@angular/common';\nimport { Component, computed, inject, input } from '@angular/core';\nimport '@angular/common/locales/global/bg';\nimport '@angular/common/locales/global/da';\nimport '@angular/common/locales/global/en';\nimport '@angular/common/locales/global/et';\nimport '@angular/common/locales/global/fr';\nimport '@angular/common/locales/global/hr';\nimport '@angular/common/locales/global/lv';\nimport '@angular/common/locales/global/hu';\nimport '@angular/common/locales/global/nl';\nimport '@angular/common/locales/global/pt';\nimport '@angular/common/locales/global/sk';\nimport '@angular/common/locales/global/fi';\nimport '@angular/common/locales/global/cs';\nimport '@angular/common/locales/global/de';\nimport '@angular/common/locales/global/el';\nimport '@angular/common/locales/global/es';\nimport '@angular/common/locales/global/ga';\nimport '@angular/common/locales/global/it';\nimport '@angular/common/locales/global/lt';\nimport '@angular/common/locales/global/mt';\nimport '@angular/common/locales/global/pl';\nimport '@angular/common/locales/global/ro';\nimport '@angular/common/locales/global/sl';\nimport '@angular/common/locales/global/sv';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Date block component following the ECL design system.\n * Displays a formatted date inside a `<time>` element, suitable for use within content\n * blocks, content items, and event listings. Derives the `datetime` attribute either from\n * the explicit `datetime` input or from the `date` + `dateFormat` inputs.\n *\n * - Selector: `time[eclDateBlock]`.\n * - `date` — `Date` object to format and display.\n * - `dateFormat` — Angular `DatePipe` format string; default `'dd/M/yyyy'`.\n * - `variant` — optional visual state: `'ongoing'` | `'past'`.\n * - `day` / `month` / `monthTitle` / `year` — manual overrides for individual date parts.\n * - `datetime` (input alias `datetime`) — explicit value for the `<time datetime>` attribute;\n * overrides the computed value from `date` + `dateFormat`.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'time[eclDateBlock]',\n templateUrl: './ecl-date-block.component.html',\n imports: [DatePipe],\n host: {\n '[class]': 'cssClasses()',\n '[attr.datetime]': 'datetime()',\n },\n})\nexport class EclDateBlockComponent extends ECLBaseDirective {\n /**\n * The date to be displayed. If not null, it's used to generate the `datetime` attribute and visual output.\n */\n readonly date = input<Date>();\n\n /**\n * The format to be used when rendering the date string (Angular DatePipe format).\n * Default is `'dd/M/yyyy'`.\n */\n readonly dateFormat = input('dd/M/yyyy');\n\n /**\n * Optional visual variant of the date block. Can be:\n * - `'ongoing'`: for ongoing events\n * - `'past'`: for past events\n * This changes styling only.\n */\n readonly variant = input<'ongoing' | 'past' | null>(null);\n\n /**\n * Explicit string for day part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly day = input<string>();\n\n /**\n * Explicit string for month part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly month = input<string>();\n\n /**\n * Explicit string used as an accessible or verbose label for the month (optional).\n */\n readonly monthTitle = input<string>();\n\n /**\n * Explicit string for year part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly year = input<string>();\n\n /**\n * Explicit value for the `datetime` attribute of the `<time>` element (optional).\n * If not provided, it is derived from `date` and `dateFormat`.\n */\n readonly datetimeInput = input<string | undefined>(undefined, { alias: 'datetime' });\n\n locale = 'en';\n\n protected readonly cssClasses = computed<string>(() => {\n const variant = this.variant();\n return [super.getCssClasses('ecl-date-block'), variant ? `ecl-date-block--${variant}` : ''].join(' ').trim();\n });\n\n /**\n * The resolved `datetime` attribute value. Uses the explicit `datetime` input\n * when provided, otherwise derives it from `date` and `dateFormat`.\n */\n readonly datetime = computed(() => this.datetimeInput() || this.getFormattedDate(this.date(), this.dateFormat()));\n\n private translateService = inject(TranslateService);\n\n constructor() {\n super();\n const translateService = this.translateService;\n\n this.locale = translateService.currentLang() ?? 'en';\n }\n\n private getFormattedDate(date: Date | undefined, dateFormat: string): string | null {\n if (date) {\n return formatDate(date, dateFormat, this.translateService.currentLang() ?? this.locale);\n } else {\n return null;\n }\n }\n}\n","<span class=\"ecl-date-block__daytime\">{{ datetime() || (date() | date: dateFormat()) }}</span>\n<span class=\"ecl-date-block__day\" aria-hidden=\"true\">{{ day() || (date() | date: 'd') }}</span>\n<abbr [title]=\"monthTitle() || month() || (date() | date: 'MMMM' : '' : locale)\" class=\"ecl-date-block__month\" aria-hidden=\"true\">\n {{ month() || (date() | date: 'MMM' : '' : locale) }}\n</abbr>\n<span class=\"ecl-date-block__year\" aria-hidden=\"true\">{{ year() || (date() | date: 'yyyy') }}</span>\n","import { EclDateBlockComponent } from './ecl-date-block.component';\n\nexport * from './ecl-date-block.component';\n\nexport const EUI_ECL_DATE_BLOCK = [\n EclDateBlockComponent,\n] as const;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,wBAAb,MAAa,8BAA8B,iBAAgB;CAgEvD,cAAA;EACI,MAAK;EA7DA,KAAA,OAAO,MAAa,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAMpB,KAAA,aAAa,MAAM,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAQ/B,KAAA,UAAU,MAAiC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAMhD,KAAA,MAAM,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAMrB,KAAA,QAAQ,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAKvB,KAAA,aAAa,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,aAAA,CAAA,+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AA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,KAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,YAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,eAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA;IAAA,SAAA;IAAA,iBAAA;GAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UCrDlC;GAMA,cAAA,CAAA;IAAA,MAAA;IAAA,MDyCc;IAAQ,MAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;AAMT,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EAVjC,MAAA;EAEa,MAAA,CAAA;GAAA,UAAA;GAAoB,SAErB,CAAC,QAAQ;GAAC,MACb;IACF,WAAW;IACX,mBAAmB;GACtB;GAAA,UAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AE/CL,MAAa,qBAAqB,CAC9B,qBACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-date-block.mjs","names":[],"sources":["../../components/ecl-date-block/ecl-date-block.component.ts","../../components/ecl-date-block/ecl-date-block.component.html","../../components/ecl-date-block/index.ts"],"sourcesContent":["import { formatDate, DatePipe } from '@angular/common';\nimport { Component, computed, inject, input } from '@angular/core';\nimport '@angular/common/locales/global/bg';\nimport '@angular/common/locales/global/da';\nimport '@angular/common/locales/global/en';\nimport '@angular/common/locales/global/et';\nimport '@angular/common/locales/global/fr';\nimport '@angular/common/locales/global/hr';\nimport '@angular/common/locales/global/lv';\nimport '@angular/common/locales/global/hu';\nimport '@angular/common/locales/global/nl';\nimport '@angular/common/locales/global/pt';\nimport '@angular/common/locales/global/sk';\nimport '@angular/common/locales/global/fi';\nimport '@angular/common/locales/global/cs';\nimport '@angular/common/locales/global/de';\nimport '@angular/common/locales/global/el';\nimport '@angular/common/locales/global/es';\nimport '@angular/common/locales/global/ga';\nimport '@angular/common/locales/global/it';\nimport '@angular/common/locales/global/lt';\nimport '@angular/common/locales/global/mt';\nimport '@angular/common/locales/global/pl';\nimport '@angular/common/locales/global/ro';\nimport '@angular/common/locales/global/sl';\nimport '@angular/common/locales/global/sv';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Date block component following the ECL design system.\n * Displays a formatted date inside a `<time>` element, suitable for use within content\n * blocks, content items, and event listings. Derives the `datetime` attribute either from\n * the explicit `datetime` input or from the `date` + `dateFormat` inputs.\n *\n * - Selector: `time[eclDateBlock]`.\n * - `date` — `Date` object to format and display.\n * - `dateFormat` — Angular `DatePipe` format string; default `'dd/M/yyyy'`.\n * - `variant` — optional visual state: `'ongoing'` | `'past'`.\n * - `day` / `month` / `monthTitle` / `year` — manual overrides for individual date parts.\n * - `datetime` (input alias `datetime`) — explicit value for the `<time datetime>` attribute;\n * overrides the computed value from `date` + `dateFormat`.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'time[eclDateBlock]',\n templateUrl: './ecl-date-block.component.html',\n imports: [DatePipe],\n host: {\n '[class]': 'cssClasses()',\n '[attr.datetime]': 'datetime()',\n },\n})\nexport class EclDateBlockComponent extends ECLBaseDirective {\n /**\n * The date to be displayed. If not null, it's used to generate the `datetime` attribute and visual output.\n */\n readonly date = input<Date>();\n\n /**\n * The format to be used when rendering the date string (Angular DatePipe format).\n * Default is `'dd/M/yyyy'`.\n */\n readonly dateFormat = input('dd/M/yyyy');\n\n /**\n * Optional visual variant of the date block. Can be:\n * - `'ongoing'`: for ongoing events\n * - `'past'`: for past events\n * This changes styling only.\n */\n readonly variant = input<'ongoing' | 'past' | null>(null);\n\n /**\n * Explicit string for day part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly day = input<string>();\n\n /**\n * Explicit string for month part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly month = input<string>();\n\n /**\n * Explicit string used as an accessible or verbose label for the month (optional).\n */\n readonly monthTitle = input<string>();\n\n /**\n * Explicit string for year part of the date (optional).\n * Used when date is not set or overridden manually.\n */\n readonly year = input<string>();\n\n /**\n * Explicit value for the `datetime` attribute of the `<time>` element (optional).\n * If not provided, it is derived from `date` and `dateFormat`.\n */\n // eslint-disable-next-line @angular-eslint/no-input-rename\n readonly datetimeInput = input<string | undefined>(undefined, { alias: 'datetime' });\n\n locale = 'en';\n\n protected readonly cssClasses = computed<string>(() => {\n const variant = this.variant();\n return [super.getCssClasses('ecl-date-block'), variant ? `ecl-date-block--${variant}` : ''].join(' ').trim();\n });\n\n /**\n * The resolved `datetime` attribute value. Uses the explicit `datetime` input\n * when provided, otherwise derives it from `date` and `dateFormat`.\n */\n readonly datetime = computed(() => this.datetimeInput() || this.getFormattedDate(this.date(), this.dateFormat()));\n\n private translateService = inject(TranslateService);\n\n constructor() {\n super();\n const translateService = this.translateService;\n\n this.locale = translateService.currentLang() ?? 'en';\n }\n\n private getFormattedDate(date: Date | undefined, dateFormat: string): string | null {\n if (date) {\n return formatDate(date, dateFormat, this.translateService.currentLang() ?? this.locale);\n } else {\n return null;\n }\n }\n}\n","<span class=\"ecl-date-block__daytime\">{{ datetime() || (date() | date: dateFormat()) }}</span>\n<span class=\"ecl-date-block__day\" aria-hidden=\"true\">{{ day() || (date() | date: 'd') }}</span>\n<abbr [title]=\"monthTitle() || month() || (date() | date: 'MMMM' : '' : locale)\" class=\"ecl-date-block__month\" aria-hidden=\"true\">\n {{ month() || (date() | date: 'MMM' : '' : locale) }}\n</abbr>\n<span class=\"ecl-date-block__year\" aria-hidden=\"true\">{{ year() || (date() | date: 'yyyy') }}</span>\n","import { EclDateBlockComponent } from './ecl-date-block.component';\n\nexport * from './ecl-date-block.component';\n\nexport const EUI_ECL_DATE_BLOCK = [\n EclDateBlockComponent,\n] as const;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAa,wBAAb,MAAa,8BAA8B,iBAAgB;CAiEvD,cAAA;EACI,MAAK;EA9DA,KAAA,OAAO,MAAa,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAMpB,KAAA,aAAa,MAAM,aAAY,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAQ/B,KAAA,UAAU,MAAiC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAMhD,KAAA,MAAM,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAMrB,KAAA,QAAQ,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAKvB,KAAA,aAAa,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAM5B,KAAA,OAAO,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAOtB,KAAA,gBAAgB,MAA0B,QAAS;GAAA,GAAA,YAAA,EAAA,WAAA,gBAAA,+BAAA,CAAA;GAAI,OAAO;EAAU,CAAA;EAEjF,KAAA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;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,YAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,eAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA;IAAA,SAAA;IAAA,iBAAA;GAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UCrDlC;GAMA,cAAA,CAAA;IAAA,MAAA;IAAA,MDyCc;IAAQ,MAAA;GAAA,CAAA;EAAA,CAAA;CAAA;;AAMT,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EAVjC,MAAA;EAEa,MAAA,CAAA;GAAA,UAAA;GAAoB,SAErB,CAAC,QAAQ;GAAC,MACb;IACF,WAAW;IACX,mBAAmB;GACtB;GAAA,UAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AE/CL,MAAa,qBAAqB,CAC9B,qBACM"}
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-date-picker.mjs","names":[],"sources":["../../components/ecl-date-picker/duet-localization.ts","../../components/ecl-date-picker/ecl-date-picker-duet.directive.ts","../../components/ecl-date-picker/events/ecl-date-picker-date-picked.event.ts","../../components/ecl-date-picker/index.ts"],"sourcesContent":["export type DuetLocalization = {\n buttonLabel: string;\n selectedDateMessage: string;\n prevMonthLabel: string;\n nextMonthLabel: string;\n monthSelectLabel: string;\n yearSelectLabel: string;\n closeLabel: string;\n calendarHeading: string;\n placeholder: string;\n dayNames: string[];\n monthNames: string[];\n monthNamesShort: string[];\n locale?: string;\n};\n\nexport function buildDuetLocalization(\n translate: (key: string) => string,\n translateObject: <T>(key: string) => T,\n placeholder: string,\n locale: string\n): DuetLocalization {\n return {\n buttonLabel: translate('ecl.date-picker.buttonLabel'),\n selectedDateMessage: translate('ecl.date-picker.selectedDateMessage'),\n prevMonthLabel: translate('ecl.date-picker.prevMonthLabel'),\n nextMonthLabel: translate('ecl.date-picker.nextMonthLabel'),\n monthSelectLabel: translate('ecl.date-picker.monthSelectLabel'),\n yearSelectLabel: translate('ecl.date-picker.yearSelectLabel'),\n closeLabel: translate('ecl.date-picker.closeLabel'),\n calendarHeading: translate('ecl.date-picker.calendarHeading'),\n placeholder,\n\n dayNames: translateObject<string[]>('ecl.date-picker.weekdays'),\n monthNames: translateObject<string[]>('ecl.date-picker.months'),\n monthNamesShort: translateObject<string[]>('ecl.date-picker.monthsShort'),\n locale,\n };\n}","import {\n afterNextRender,\n booleanAttribute,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n Renderer2,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { LocaleService } from '@eui/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { buildDuetLocalization } from './duet-localization';\nimport { EclDuetDateAdapter } from './ecl-date-picker-adapter';\n\ntype ModelValue = Date | null;\n\ntype DuetEl = HTMLElement & {\n value: string; // ISO: YYYY-MM-DD\n disabled: boolean;\n required: boolean;\n dateAdapter: EclDuetDateAdapter;\n};\n\ntype DuetChangeDetail = { value: string; valueAsDate: Date };\ntype DuetChangeEvent = CustomEvent<DuetChangeDetail>;\n\n/**\n * ECL Date Picker directive for the Duet Date Picker web component.\n * Applied to `<duet-date-picker>`, this is the recommended approach for integrating\n * an ECL-styled date picker with Angular Reactive/Template-driven forms.\n * Implements `ControlValueAccessor` and `Validator`.\n *\n * - Selector: `duet-date-picker[eclDatePicker]`.\n * - `eclSize` — `'s'` | `'m'` | `'l'`; default `'m'`.\n * - `isInvalid` — manually flag the picker as invalid (no-forms mode).\n * - `placeholder` — placeholder text in the duet input field; default `'DD-MM-YYYY'`.\n * - `dateAdapter` — custom `EclDuetDateAdapter` for parse/format; defaults to EU `DD-MM-YYYY` adapter.\n * - Model value type: `Date | null`.\n * - Validation errors: `required`, `eclDateInvalid`, `min`, `max`.\n * - RTL direction is applied automatically from `EclRtlService`.\n */\n@Directive({\n selector: 'duet-date-picker[eclDatePicker]',\n standalone: true,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EclDatePickerDuetDirective),\n multi: true,\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => EclDatePickerDuetDirective),\n multi: true,\n },\n ],\n})\nexport class EclDatePickerDuetDirective implements ControlValueAccessor, Validator {\n\n /** Size variant of the datepicker wrapper. `'s'` | `'m'` | `'l'`. Default `'m'`. */\n eclSize = input<'s' | 'm' | 'l'>('m');\n /** Manually flags the datepicker as invalid (applies `ecl-datepicker--invalid`). */\n isInvalid = input(false, { transform: booleanAttribute });\n /** Placeholder text displayed in the Duet input field. Default `'DD-MM-YYYY'`. */\n placeholder = input<string>('DD-MM-YYYY');\n /** Custom date adapter overriding the default EU `DD-MM-YYYY` parse/format logic. */\n dateAdapter = input<EclDuetDateAdapter | null>(null);\n\n private readonly host = inject(ElementRef<DuetEl>);\n private readonly renderer = inject(Renderer2);\n private readonly destroyRef = inject(DestroyRef);\n private readonly translateService = inject(TranslateService);\n private readonly localeService = inject(LocaleService);\n private readonly eclRtlService = inject(EclRtlService);\n\n private onChange: (value: ModelValue) => void = () => { };\n private onTouched: () => void = () => { };\n private isDisabled = false;\n\n private unlistenChange?: () => void;\n private unlistenClose?: () => void;\n private unlistenDuetBlur?: () => void;\n private parent?: HTMLElement | null;\n private parentReady = signal(false);\n\n // keep a stable adapter instance after mount\n private adapter!: EclDuetDateAdapter;\n\n constructor() {\n afterNextRender(() => this.mount());\n\n effect(() => {\n if (!this.parentReady() || !this.parent) return;\n\n if (this.isInvalid()) {\n this.renderer.addClass(this.parent, 'ecl-datepicker--invalid');\n this.renderer.setAttribute(this.parent, 'invalid', '');\n }\n else {\n this.renderer.removeClass(this.parent, 'ecl-datepicker--invalid');\n this.renderer.removeAttribute(this.parent, 'invalid');\n }\n });\n }\n\n // ---- CVA ----\n writeValue(value: ModelValue): void {\n const duet = this.host.nativeElement;\n duet.value = value ? this.toIsoDate(value) : '';\n }\n\n registerOnChange(fn: (value: ModelValue) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled = isDisabled;\n this.host.nativeElement.disabled = isDisabled;\n }\n\n // ---- Validator ----\n validate(control: AbstractControl): ValidationErrors | null {\n const duet = this.host.nativeElement;\n\n const required = !!duet.required; // or duet.hasAttribute('required')\n const val = control.value as unknown;\n\n // required\n if (required && (val == null || val === '')) return { required: true };\n if (val == null || val === '') return null;\n\n // normalize to ISO for range checks\n let iso: string | null = null;\n\n if (val instanceof Date) {\n if (isNaN(val.getTime())) return { eclDateInvalid: true };\n iso = this.toIsoDate(val);\n } else if (typeof val === 'string') {\n // accept ISO, or try parse EU input (if someone binds strings)\n iso = this.isIso(val) ? val : this.tryParseEuToIso(val);\n if (!iso) return { eclDateInvalid: true };\n } else {\n return { eclDateInvalid: true };\n }\n\n // min/max from duet (typically ISO)\n const min = duet.getAttribute('min') || (duet as any).min || null;\n const max = duet.getAttribute('max') || (duet as any).max || null;\n\n // ISO \"YYYY-MM-DD\" compares lexicographically correctly\n if (min && iso < min) return { min: { min, actual: iso } };\n if (max && iso > max) return { max: { max, actual: iso } };\n\n return null;\n }\n\n private isIso(v: string): boolean {\n return /^\\d{4}-\\d{2}-\\d{2}$/.test(v);\n }\n\n private mount(): void {\n const duet = this.host.nativeElement;\n\n // 1) Parent wrapper classes (ECL)\n this.parent = duet.parentElement ?? undefined;\n this.parentReady.set(!!this.parent);\n if (this.parent) {\n this.renderer.addClass(this.parent, 'ecl-datepicker');\n this.renderer.addClass(this.parent, `ecl-datepicker--${this.eclSize()}`);\n }\n\n // 2) Adapter: user override or default EU\n this.adapter = this.dateAdapter() ?? this.makeDefaultEuAdapter();\n duet.dateAdapter = this.adapter;\n\n // 3) Localization\n duet.localization = buildDuetLocalization(\n (k) => this.translateService.instant(k) as string,\n <T>(k: string) => this.translateService.instant(k) as T,\n this.placeholder(),\n this.localeService.currentLocale,\n );\n\n // 4) Apply disabled state\n duet.disabled = this.isDisabled;\n\n // 5) CVA from duet events\n this.unlistenChange = this.renderer.listen(duet, 'duetChange', (e: DuetChangeEvent) => {\n const date = e.detail?.valueAsDate;\n if (!(date instanceof Date) || isNaN(date.getTime())) return;\n this.onChange(date);\n });\n\n this.eclRtlService.currentRtlState$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((rtlState) => {\n duet.direction = rtlState ? 'left' : 'right';\n });\n\n this.unlistenClose = this.renderer.listen(duet, 'duetClose', () => {\n this.onTouched();\n });\n this.unlistenDuetBlur = this.renderer.listen(duet, 'duetBlur', () => this.onTouched());\n\n this.destroyRef.onDestroy(() => {\n this.unlistenChange?.();\n this.unlistenClose?.();\n this.unlistenDuetBlur?.();\n });\n }\n\n // ---- Default EU adapter (DD-MM-YYYY) ----\n private makeDefaultEuAdapter(): EclDuetDateAdapter {\n return {\n parse: (value = '', createDate: (y: number, m: number, d: number) => Date) => {\n const iso = this.tryParseEuToIso(value);\n if (!iso) return undefined;\n const [y, m, d] = iso.split('-').map(Number);\n return createDate(y, m, d); // duet expects m 1-12\n },\n format: (date: Date) => this.formatEu(date),\n };\n }\n\n private tryParseEuToIso(value: string): string | null {\n const val = value.trim();\n if (!val) return null;\n\n const m = /^(\\d{2})-(\\d{2})-(\\d{4})$/.exec(val);\n if (!m) return null;\n\n const d = Number(m[1]);\n const mo = Number(m[2]);\n const y = Number(m[3]);\n\n if (!this.isValidYmd(y, mo, d)) return null;\n\n return `${this.pad(y, 4)}-${this.pad(mo)}-${this.pad(d)}`;\n }\n\n private formatEu(date: Date): string {\n const y = date.getFullYear();\n const m = date.getMonth() + 1;\n const d = date.getDate();\n return `${this.pad(d)}-${this.pad(m)}-${this.pad(y, 4)}`;\n }\n\n private toIsoDate(date: Date): string {\n return `${this.pad(date.getFullYear(), 4)}-${this.pad(date.getMonth() + 1)}-${this.pad(date.getDate())}`;\n }\n\n private isValidYmd(y: number, m: number, d: number): boolean {\n if (y < 1000 || y > 9999) return false;\n if (m < 1 || m > 12) return false;\n if (d < 1 || d > 31) return false;\n const test = new Date(y, m - 1, d);\n return test.getFullYear() === y && test.getMonth() === m - 1 && test.getDate() === d;\n }\n\n private pad(n: number, len = 2): string {\n return String(n).padStart(len, '0');\n }\n}","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted by the legacy `EclDatePickerDirective` when the user selects a date.\n * Carries the selected `Date` value.\n */\nexport class EclDatePickerDatePickedEvent extends EclBaseEvent {\n\t/**\n\t * @param date The date selected by the user.\n\t */\n\tconstructor(public date: Date) {\n\t\tsuper();\n\t}\n}\n","import { EclDatePickerDuetDirective } from './ecl-date-picker-duet.directive';\n\nexport * from './ecl-date-picker-duet.directive';\nexport * from './events/ecl-date-picker-date-picked.event';\nexport * from './ecl-date-picker-adapter';\n\nexport const EUI_ECL_DATE_PICKER = [\n EclDatePickerDuetDirective,\n] as const;\n"],"mappings":";;;;;;;AAgBA,SAAgB,sBACd,WACA,iBACA,aACA,QAAc;CAEd,OAAO;EACL,aAAa,UAAU,6BAA6B;EACpD,qBAAqB,UAAU,qCAAqC;EACpE,gBAAgB,UAAU,gCAAgC;EAC1D,gBAAgB,UAAU,gCAAgC;EAC1D,kBAAkB,UAAU,kCAAkC;EAC9D,iBAAiB,UAAU,iCAAiC;EAC5D,Y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;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzDD,IAAa,+BAAb,cAAkD,aAAY;CAI7D,YAAmB,MAAU;EAC5B,MAAK;EADa,KAAA,OAAA;CAEnB;AACA;ACPD,MAAa,sBAAsB,CAC/B,0BACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-date-picker.mjs","names":[],"sources":["../../components/ecl-date-picker/duet-localization.ts","../../components/ecl-date-picker/ecl-date-picker-duet.directive.ts","../../components/ecl-date-picker/events/ecl-date-picker-date-picked.event.ts","../../components/ecl-date-picker/index.ts"],"sourcesContent":["export type DuetLocalization = {\n buttonLabel: string;\n selectedDateMessage: string;\n prevMonthLabel: string;\n nextMonthLabel: string;\n monthSelectLabel: string;\n yearSelectLabel: string;\n closeLabel: string;\n calendarHeading: string;\n placeholder: string;\n dayNames: string[];\n monthNames: string[];\n monthNamesShort: string[];\n locale?: string;\n};\n\nexport function buildDuetLocalization(\n translate: (key: string) => string,\n translateObject: <T>(key: string) => T,\n placeholder: string,\n locale: string\n): DuetLocalization {\n return {\n buttonLabel: translate('ecl.date-picker.buttonLabel'),\n selectedDateMessage: translate('ecl.date-picker.selectedDateMessage'),\n prevMonthLabel: translate('ecl.date-picker.prevMonthLabel'),\n nextMonthLabel: translate('ecl.date-picker.nextMonthLabel'),\n monthSelectLabel: translate('ecl.date-picker.monthSelectLabel'),\n yearSelectLabel: translate('ecl.date-picker.yearSelectLabel'),\n closeLabel: translate('ecl.date-picker.closeLabel'),\n calendarHeading: translate('ecl.date-picker.calendarHeading'),\n placeholder,\n\n dayNames: translateObject<string[]>('ecl.date-picker.weekdays'),\n monthNames: translateObject<string[]>('ecl.date-picker.months'),\n monthNamesShort: translateObject<string[]>('ecl.date-picker.monthsShort'),\n locale,\n };\n}","import {\n afterNextRender,\n booleanAttribute,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n Renderer2,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { LocaleService } from '@eui/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { buildDuetLocalization } from './duet-localization';\nimport { EclDuetDateAdapter } from './ecl-date-picker-adapter';\n\ntype ModelValue = Date | null;\n\ntype DuetEl = HTMLElement & {\n value: string; // ISO: YYYY-MM-DD\n disabled: boolean;\n required: boolean;\n dateAdapter: EclDuetDateAdapter;\n};\n\ntype DuetChangeDetail = { value: string; valueAsDate: Date };\ntype DuetChangeEvent = CustomEvent<DuetChangeDetail>;\n\n/**\n * ECL Date Picker directive for the Duet Date Picker web component.\n * Applied to `<duet-date-picker>`, this is the recommended approach for integrating\n * an ECL-styled date picker with Angular Reactive/Template-driven forms.\n * Implements `ControlValueAccessor` and `Validator`.\n *\n * - Selector: `duet-date-picker[eclDatePicker]`.\n * - `eclSize` — `'s'` | `'m'` | `'l'`; default `'m'`.\n * - `isInvalid` — manually flag the picker as invalid (no-forms mode).\n * - `placeholder` — placeholder text in the duet input field; default `'DD-MM-YYYY'`.\n * - `dateAdapter` — custom `EclDuetDateAdapter` for parse/format; defaults to EU `DD-MM-YYYY` adapter.\n * - Model value type: `Date | null`.\n * - Validation errors: `required`, `eclDateInvalid`, `min`, `max`.\n * - RTL direction is applied automatically from `EclRtlService`.\n */\n@Directive({\n selector: 'duet-date-picker[eclDatePicker]',\n standalone: true,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EclDatePickerDuetDirective),\n multi: true,\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => EclDatePickerDuetDirective),\n multi: true,\n },\n ],\n})\nexport class EclDatePickerDuetDirective implements ControlValueAccessor, Validator {\n\n /** Size variant of the datepicker wrapper. `'s'` | `'m'` | `'l'`. Default `'m'`. */\n eclSize = input<'s' | 'm' | 'l'>('m');\n /** Manually flags the datepicker as invalid (applies `ecl-datepicker--invalid`). */\n isInvalid = input(false, { transform: booleanAttribute });\n /** Placeholder text displayed in the Duet input field. Default `'DD-MM-YYYY'`. */\n placeholder = input<string>('DD-MM-YYYY');\n /** Custom date adapter overriding the default EU `DD-MM-YYYY` parse/format logic. */\n dateAdapter = input<EclDuetDateAdapter | null>(null);\n\n private readonly host = inject(ElementRef<DuetEl>);\n private readonly renderer = inject(Renderer2);\n private readonly destroyRef = inject(DestroyRef);\n private readonly translateService = inject(TranslateService);\n private readonly localeService = inject(LocaleService);\n private readonly eclRtlService = inject(EclRtlService);\n\n private onChange: (value: ModelValue) => void = () => { /* noop */ };\n private onTouched: () => void = () => { /* noop */ };\n private isDisabled = false;\n\n private unlistenChange?: () => void;\n private unlistenClose?: () => void;\n private unlistenDuetBlur?: () => void;\n private parent?: HTMLElement | null;\n private parentReady = signal(false);\n\n // keep a stable adapter instance after mount\n private adapter!: EclDuetDateAdapter;\n\n constructor() {\n afterNextRender(() => this.mount());\n\n effect(() => {\n if (!this.parentReady() || !this.parent) return;\n\n if (this.isInvalid()) {\n this.renderer.addClass(this.parent, 'ecl-datepicker--invalid');\n this.renderer.setAttribute(this.parent, 'invalid', '');\n } else {\n this.renderer.removeClass(this.parent, 'ecl-datepicker--invalid');\n this.renderer.removeAttribute(this.parent, 'invalid');\n }\n });\n }\n\n // ---- CVA ----\n writeValue(value: ModelValue): void {\n const duet = this.host.nativeElement;\n duet.value = value ? this.toIsoDate(value) : '';\n }\n\n registerOnChange(fn: (value: ModelValue) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.isDisabled = isDisabled;\n this.host.nativeElement.disabled = isDisabled;\n }\n\n // ---- Validator ----\n validate(control: AbstractControl): ValidationErrors | null {\n const duet = this.host.nativeElement;\n\n const required = !!duet.required; // or duet.hasAttribute('required')\n const val = control.value as unknown;\n\n // required\n if (required && (val == null || val === '')) return { required: true };\n if (val == null || val === '') return null;\n\n // normalize to ISO for range checks\n let iso: string | null = null;\n\n if (val instanceof Date) {\n if (isNaN(val.getTime())) return { eclDateInvalid: true };\n iso = this.toIsoDate(val);\n } else if (typeof val === 'string') {\n // accept ISO, or try parse EU input (if someone binds strings)\n iso = this.isIso(val) ? val : this.tryParseEuToIso(val);\n if (!iso) return { eclDateInvalid: true };\n } else {\n return { eclDateInvalid: true };\n }\n\n // min/max from duet (typically ISO)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const min = duet.getAttribute('min') || (duet as any).min || null;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const max = duet.getAttribute('max') || (duet as any).max || null;\n\n // ISO \"YYYY-MM-DD\" compares lexicographically correctly\n if (min && iso < min) return { min: { min, actual: iso } };\n if (max && iso > max) return { max: { max, actual: iso } };\n\n return null;\n }\n\n private isIso(v: string): boolean {\n return /^\\d{4}-\\d{2}-\\d{2}$/.test(v);\n }\n\n private mount(): void {\n const duet = this.host.nativeElement;\n\n // 1) Parent wrapper classes (ECL)\n this.parent = duet.parentElement ?? undefined;\n this.parentReady.set(!!this.parent);\n if (this.parent) {\n this.renderer.addClass(this.parent, 'ecl-datepicker');\n this.renderer.addClass(this.parent, `ecl-datepicker--${this.eclSize()}`);\n }\n\n // 2) Adapter: user override or default EU\n this.adapter = this.dateAdapter() ?? this.makeDefaultEuAdapter();\n duet.dateAdapter = this.adapter;\n\n // 3) Localization\n duet.localization = buildDuetLocalization(\n (k) => this.translateService.instant(k) as string,\n <T>(k: string) => this.translateService.instant(k) as T,\n this.placeholder(),\n this.localeService.currentLocale,\n );\n\n // 4) Apply disabled state\n duet.disabled = this.isDisabled;\n\n // 5) CVA from duet events\n this.unlistenChange = this.renderer.listen(duet, 'duetChange', (e: DuetChangeEvent) => {\n const date = e.detail?.valueAsDate;\n if (!(date instanceof Date) || isNaN(date.getTime())) return;\n this.onChange(date);\n });\n\n this.eclRtlService.currentRtlState$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((rtlState) => {\n duet.direction = rtlState ? 'left' : 'right';\n });\n\n this.unlistenClose = this.renderer.listen(duet, 'duetClose', () => {\n this.onTouched();\n });\n this.unlistenDuetBlur = this.renderer.listen(duet, 'duetBlur', () => this.onTouched());\n\n this.destroyRef.onDestroy(() => {\n this.unlistenChange?.();\n this.unlistenClose?.();\n this.unlistenDuetBlur?.();\n });\n }\n\n // ---- Default EU adapter (DD-MM-YYYY) ----\n private makeDefaultEuAdapter(): EclDuetDateAdapter {\n return {\n parse: (value = '', createDate: (y: number, m: number, d: number) => Date) => {\n const iso = this.tryParseEuToIso(value);\n if (!iso) return undefined;\n const [y, m, d] = iso.split('-').map(Number);\n return createDate(y, m, d); // duet expects m 1-12\n },\n format: (date: Date) => this.formatEu(date),\n };\n }\n\n private tryParseEuToIso(value: string): string | null {\n const val = value.trim();\n if (!val) return null;\n\n const m = /^(\\d{2})-(\\d{2})-(\\d{4})$/.exec(val);\n if (!m) return null;\n\n const d = Number(m[1]);\n const mo = Number(m[2]);\n const y = Number(m[3]);\n\n if (!this.isValidYmd(y, mo, d)) return null;\n\n return `${this.pad(y, 4)}-${this.pad(mo)}-${this.pad(d)}`;\n }\n\n private formatEu(date: Date): string {\n const y = date.getFullYear();\n const m = date.getMonth() + 1;\n const d = date.getDate();\n return `${this.pad(d)}-${this.pad(m)}-${this.pad(y, 4)}`;\n }\n\n private toIsoDate(date: Date): string {\n return `${this.pad(date.getFullYear(), 4)}-${this.pad(date.getMonth() + 1)}-${this.pad(date.getDate())}`;\n }\n\n private isValidYmd(y: number, m: number, d: number): boolean {\n if (y < 1000 || y > 9999) return false;\n if (m < 1 || m > 12) return false;\n if (d < 1 || d > 31) return false;\n const test = new Date(y, m - 1, d);\n return test.getFullYear() === y && test.getMonth() === m - 1 && test.getDate() === d;\n }\n\n private pad(n: number, len = 2): string {\n return String(n).padStart(len, '0');\n }\n}","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted by the legacy `EclDatePickerDirective` when the user selects a date.\n * Carries the selected `Date` value.\n */\nexport class EclDatePickerDatePickedEvent extends EclBaseEvent {\n\t/**\n\t * @param date The date selected by the user.\n\t */\n\tconstructor(public date: Date) {\n\t\tsuper();\n\t}\n}\n","import { EclDatePickerDuetDirective } from './ecl-date-picker-duet.directive';\n\nexport * from './ecl-date-picker-duet.directive';\nexport * from './events/ecl-date-picker-date-picked.event';\nexport * from './ecl-date-picker-adapter';\n\nexport const EUI_ECL_DATE_PICKER = [\n EclDatePickerDuetDirective,\n] as const;\n"],"mappings":";;;;;;;AAgBA,SAAgB,sBACd,WACA,iBACA,aACA,QAAc;CAEd,OAAO;EACL,aAAa,UAAU,6BAA6B;EACpD,qBAAqB,UAAU,qCAAqC;EACpE,gBAAgB,UAAU,gCAAgC;EAC1D,gBAAgB,UAAU,gCAAgC;EAC1D,kBAAkB,UAAU,kCAAkC;EAC9D,iBAAiB,UAAU,iCAAiC;EAC5D,YAAY,UAAU,4BAA4B;EAClD,iBAAiB,UAAU,iCAAiC;EAC5D;EAEA,UAAU,gBAA0B,0BAA0B;EAC9D,YAAY,gBAA0B,wBAAwB;EAC9D,iBAAiB,gBAA0B,6BAA6B;EACxE;CACD;AACH;AC0BA,IAAa,6BAAb,MAAa,2BAA0B;CA+BnC,cAAA;EA5BA,KAAA,UAAU,MAAuB,KAAI,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAErC,KAAA,YAAY,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,YAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAEtD,KAAA,cAAc,MAAc,cAAa,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAEzC,KAAA,cAAc,MAAiC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,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AA;IAAA,aAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,aAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,WAbxB,CACP;IACI,SAAS;IACT,aAAa,iBAAiB,0BAA0B;IACxD,OAAO;GACV,GACD;IACI,SAAS;IACT,aAAa,iBAAiB,0BAA0B;IACxD,OAAO;GACV,CACJ;GAAA,UAAA;EAAA,CAAA;CAAA;;AAEQ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA0B,YAAA,CAAA;EAhBtC,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,YAAY;GACZ,WAAW,CACP;IACI,SAAS;IACT,aAAa,iBAAgB,0BAA2B;IACxD,OAAO;GACV,GACD;IACI,SAAS;IACT,aAAa,iBAAgB,0BAA2B;IACxD,OAAO;GACV,CACJ;EACJ,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzDD,IAAa,+BAAb,cAAkD,aAAY;CAI7D,YAAmB,MAAU;EAC5B,MAAK;EADa,KAAA,OAAA;CAEnB;AACA;ACPD,MAAa,sBAAsB,CAC/B,0BACM"}
@@ -34,7 +34,7 @@ i0.ɵɵngDeclareClassMetadata({
34
34
  type: Directive,
35
35
  args: [{
36
36
  selector: "hr[eclDivider]",
37
- host: { "class": "ecl-separator" }
37
+ host: { class: "ecl-separator" }
38
38
  }]
39
39
  }]
40
40
  });
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-divider.mjs","names":[],"sources":["../../components/ecl-divider/ecl-divider.directive.ts","../../components/ecl-divider/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies ECL styling to a horizontal rule (`<hr>`) separator element.\n * Selector: `hr[eclDivider]`. Applies the `ecl-separator` CSS class.\n */\n@Directive({\n selector: 'hr[eclDivider]',\n host: {\n 'class': 'ecl-separator',\n },\n})\nexport class EclDividerDirective extends ECLBaseDirective {}\n","import { EclDividerDirective } from './ecl-divider.directive';\n\nexport * from './ecl-divider.directive';\n\nexport const EUI_ECL_DIVIDER = [\n EclDividerDirective,\n] as const;"],"mappings":";;;AAaA,IAAa,sBAAb,MAAa,4BAA4B,iBAAgB;CAA5C;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAmB,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,gBAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAN/B,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM,EACF,SAAS,gBACZ;EACJ,CAAA;;;ACRD,MAAa,kBAAkB,CAC3B,mBACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-divider.mjs","names":[],"sources":["../../components/ecl-divider/ecl-divider.directive.ts","../../components/ecl-divider/index.ts"],"sourcesContent":["import { Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies ECL styling to a horizontal rule (`<hr>`) separator element.\n * Selector: `hr[eclDivider]`. Applies the `ecl-separator` CSS class.\n */\n@Directive({\n selector: 'hr[eclDivider]',\n host: {\n class: 'ecl-separator',\n },\n})\nexport class EclDividerDirective extends ECLBaseDirective {}\n","import { EclDividerDirective } from './ecl-divider.directive';\n\nexport * from './ecl-divider.directive';\n\nexport const EUI_ECL_DIVIDER = [\n EclDividerDirective,\n] as const;"],"mappings":";;;AAaA,IAAa,sBAAb,MAAa,4BAA4B,iBAAgB;CAA5C;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAmB,MAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAnB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAmB,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,gBAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmB,YAAA,CAAA;EAN/B,MAAA;EAAU,MAAA,CAAA;GACP,UAAU;GACV,MAAM,EACF,OAAO,gBACV;EACJ,CAAA;;;ACRD,MAAa,kBAAkB,CAC3B,mBACM"}
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-fact-figures.mjs","names":[],"sources":["../../components/ecl-fact-figures/ecl-fact-figures-sources.directive.ts","../../components/ecl-fact-figures/ecl-fact-figures-item.component.ts","../../components/ecl-fact-figures/ecl-fact-figures-item.component.html","../../components/ecl-fact-figures/ecl-fact-figures.component.ts","../../components/ecl-fact-figures/ecl-fact-figures.component.html","../../components/ecl-fact-figures/ecl-fact-figures-view-all.component.ts","../../components/ecl-fact-figures/ecl-fact-figures-view-all.component.html","../../components/ecl-fact-figures/ecl-fact-figures-description.directive.ts","../../components/ecl-fact-figures/index.ts"],"sourcesContent":["import { computed, contentChildren, Directive, effect, ElementRef, forwardRef, inject, Renderer2 } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Wraps the list of source links in an `EclFactFiguresComponent`.\n * Selector: `ul[eclFactFiguresSourcesList]`. Applies the `ecl-fact-figures__sources-list` class.\n */\n@Directive({\n selector: 'ul[eclFactFiguresSourcesList]',\n host: {\n class: 'ecl-fact-figures__sources-list',\n },\n})\nexport class EclFactFiguresSourcesListDirective {}\n\n/**\n * Marks a `<li>` element as a source entry within an `EclFactFiguresComponent` sources list.\n * Applies the `ecl-fact-figures__sources-item` class.\n */\n@Directive({\n selector: 'li[eclFactFiguresSourcesItem]',\n host: {\n class: 'ecl-fact-figures__sources-item',\n },\n})\nexport class EclFactFiguresSourcesItemDirective {}\n\n/**\n * Marks a source reference within the Fact & Figures component.\n * Applies the `ecl-fact-figures__source` class. For anchors it also applies the ECL\n * link classes (`ecl-link`, and `ecl-link--icon` when a projected `ecl-icon` is present).\n * Plain-text (`span`) sources only get the `ecl-fact-figures__source` class.\n *\n * @example\n * ```html\n * <a eclFactFiguresSource href=\"/example\">Eurostat</a>\n * <a eclFactFiguresSource href=\"/example\">\n * <span class=\"ecl-link__label\">Eurostat</span>\n * <ecl-icon icon=\"external\" size=\"2xs\"></ecl-icon>\n * </a>\n * <span eclFactFiguresSource>Textual element</span>\n * ```\n */\n@Directive({\n selector: 'a[eclFactFiguresSource], span[eclFactFiguresSource]',\n host: {\n '[class.ecl-fact-figures__source]': 'true',\n '[class.ecl-link]': 'isLink',\n '[class.ecl-link--icon]': 'hasIcon()',\n },\n})\nexport class EclFactFiguresSourceDirective {\n private readonly host = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n\n /**\n * Whether this source should carry link styling. Anchors are links; plain-text\n * (span) sources are not.\n */\n protected readonly isLink = this.host.nativeElement.tagName === 'A';\n\n /** Projected icon components inside the source, used to apply link-icon styling. */\n private readonly eclIconComponents = contentChildren(forwardRef(() => EclIconComponent), { descendants: true });\n\n /** Whether the source contains a projected icon (and is a link). */\n protected readonly hasIcon = computed(() => this.isLink && this.eclIconComponents().length > 0);\n\n constructor() {\n effect(() => {\n const icons = this.eclIconComponents();\n if (this.isLink && icons.length > 0) {\n // Apply the ECL link icon class to projected icons, matching eclLink behaviour.\n icons.forEach((icon) => icon.addExtraClass('ecl-link__icon'));\n // Keep the trailing icon tethered to the last word of the label so it never\n // wraps onto its own line (ECL `no_icon_wrapping`).\n this.preventIconWrapping();\n }\n });\n }\n\n /**\n * Inserts a non-breaking space before the first `ecl-icon` element inside the source link,\n * so the trailing icon stays on the same line as the last word of the (wrapping) label.\n * Idempotent: skips insertion if the previous node is already a non-breaking space.\n */\n private preventIconWrapping(): void {\n const host = this.host.nativeElement as HTMLElement;\n const icon = host.querySelector('ecl-icon');\n if (!icon) {\n return;\n }\n const previous = icon.previousSibling;\n const alreadyTethered = previous?.nodeType === Node.TEXT_NODE && previous.textContent === '\\u00a0';\n if (alreadyTethered) {\n return;\n }\n this.renderer.insertBefore(host, this.renderer.createText('\\u00a0'), icon);\n }\n}\n","import { AfterContentInit, Component, computed, contentChild, contentChildren, input } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { EclFactFiguresSourcesListDirective } from './ecl-fact-figures-sources.directive';\n\n/**\n * Individual fact/figure item for use inside an `EclFactFiguresComponent`.\n * Displays a value, an optional title, and optionally an icon.\n * Projected `EclIconComponent` children are automatically decorated with `ecl-fact-figures__icon`.\n *\n * - Selectors: `div[eclFactFiguresItem]` or `ecl-fact-figures-item`.\n * - `eclValue` — the primary numeric or text value to display.\n * - `eclTitle` — supplementary title text displayed with the value.\n */\n@Component({\n selector: 'div[eclFactFiguresItem],ecl-fact-figures-item',\n templateUrl: './ecl-fact-figures-item.component.html',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresItemComponent extends ECLBaseDirective implements AfterContentInit {\n\n /** Primary numeric or text value displayed in the item. */\n eclValue = input<string>();\n\n /** Supplementary title displayed alongside the value. */\n eclTitle = input<string>();\n\n /** Label displayed before this item's individual sources list. */\n readonly sourcesLabel = input<string>('Sources:');\n\n /** Projected per-item sources list, if any. */\n private readonly sourcesList = contentChild(EclFactFiguresSourcesListDirective);\n\n /** Whether this item has an individual sources list projected. */\n protected readonly hasSourcesList = computed(() => !!this.sourcesList());\n\n /**\n * Applies the base class `ecl-fact-figures__item` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__item'));\n\n /**\n * Query for any EclIconComponent children projected into the component.\n * These icons will receive an additional CSS class.\n */\n readonly eclIconComponents = contentChildren(EclIconComponent);\n\n /**\n * Lifecycle hook that adds a CSS class to any EclIconComponent\n * found within the projected content.\n */\n ngAfterContentInit(): void {\n if (this.eclIconComponents()) {\n this.eclIconComponents().forEach((eclIcon) => {\n eclIcon.baseDirective.class.set([eclIcon.baseDirective.class(), 'ecl-fact-figures__icon'].join(' '));\n });\n }\n}\n}\n","<ng-content select=\"ecl-icon\"></ng-content>\n<div class=\"ecl-fact-figures__value\">{{ eclValue() }} <span class=\"ecl-fact-figures__title\">{{ eclTitle() }}</span></div>\n<ng-content select=\"ecl-icon\"></ng-content>\n<ng-content select=\"[eclFactFiguresDescription]\"></ng-content>\n@if (hasSourcesList()) {\n <div class=\"ecl-fact-figures__sources\">\n <span class=\"ecl-fact-figures__sources-label\">{{ sourcesLabel() }}</span>\n <ng-content select=\"[eclFactFiguresSourcesList]\"></ng-content>\n </div>\n}","import {\n Component,\n ElementRef,\n Renderer2,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclFactFiguresItemComponent } from './ecl-fact-figures-item.component';\nimport { EclFactFiguresSourcesListDirective } from './ecl-fact-figures-sources.directive';\n\n/**\n * Main component for displaying a collection of fact and figure items in a responsive,\n * styled grid layout following the ECL design system.\n *\n * - Selectors: `div[eclFactFigures]` or `ecl-fact-figures`.\n * - Project `EclFactFiguresItemComponent` items as children.\n * - `columns` — number of grid columns (as string); default `'3'`.\n * - `fontSize` — `'m'` (medium) | `'l'` (large, default).\n * - `isCentered` — centres all content; adds `ecl-fact-figures--centered`.\n * - `sourcesLabel` — label shown before the projected sources list; default `'Sources:'`.\n * - Use `ul[eclFactFiguresSourcesList]` / `li[eclFactFiguresSourcesItem]` /\n * `a[eclFactFiguresSource]` directives for the sources footer.\n */\n@Component({\n selector: 'div[eclFactFigures], ecl-fact-figures',\n templateUrl: './ecl-fact-figures.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n '[class.ecl-fact-figures--centered]': 'isCentered()',\n },\n})\nexport class EclFactFiguresComponent extends ECLBaseDirective {\n\n items = contentChildren(EclFactFiguresItemComponent, { read: ElementRef<HTMLElement> });\n\n /**\n * Global (component-level) sources list. Queried with `descendants: false` so only a\n * list placed directly in the component's content matches; per-item lists nested\n * inside items are excluded and must not trigger the global block.\n */\n private readonly sourcesList = contentChild(EclFactFiguresSourcesListDirective, { descendants: false });\n\n /** Whether a global sources list is projected directly on the component. */\n hasSourcesList = computed(() => !!this.sourcesList());\n\n /**\n * Number of columns in the layout (as string).\n * Default is `'3'`.\n */\n columns = input('3');\n\n /**\n * Font size variant. Can be:\n * - `'m'` – medium (smaller text)\n * - `'l'` – large (default)\n */\n fontSize = input<'m' | 'l'>('l');\n\n /**\n * Whether the content should be centered.\n * Adds `ecl-fact-figures--centered` class when true.\n */\n isCentered = input(false, { transform: booleanAttribute });\n\n /**\n * Label displayed before the sources list.\n * Default is `'Sources:'`.\n */\n sourcesLabel = input<string>('Sources:');\n\n /**\n * Sets the CSS classes for the component, including layout and font size modifiers.\n * Automatically adds:\n * - `ecl-fact-figures--col-{n}` depending on the `columns` value\n */\n protected readonly cssClasses = computed<string>(() =>\n [super.getCssClasses('ecl-fact-figures'),\n `ecl-fact-figures--col-${this.columns()}`].join(' ').trim());\n\n private renderer = inject(Renderer2);\n\n constructor() {\n super();\n effect(() => {\n const els = this.items();\n const size = this.fontSize();\n\n // clear + set first\n els.forEach(el =>\n this.renderer.removeClass(el.nativeElement, 'is-first')\n );\n if (els.length) {\n this.renderer.addClass(els[0].nativeElement, 'is-first');\n }\n\n // font-size class\n const cls = 'ecl-fact-figures__item--font-m';\n els.forEach(el => {\n if (size === 'm') {\n this.renderer.addClass(el.nativeElement, cls);\n } else {\n this.renderer.removeClass(el.nativeElement, cls);\n }\n });\n });\n }\n}\n","<div class=\"ecl-fact-figures__items\">\n <ng-content></ng-content>\n</div>\n\n@if (hasSourcesList()) {\n <div class=\"ecl-fact-figures__sources\">\n <span class=\"ecl-fact-figures__sources-label\">{{ sourcesLabel() }}</span>\n <ng-content select=\"[eclFactFiguresSourcesList]\"></ng-content>\n </div>\n}\n<ng-content select=\"ecl-fact-figures-view-all\"></ng-content>","import { AfterContentInit, Component, computed, contentChild } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * \"View all\" sub-component for `EclFactFiguresComponent`.\n * Renders a styled link section below the fact/figure items that allows users to navigate to\n * additional content. The projected `EclLinkDirective` is automatically decorated with\n * `ecl-fact-figures__view-all-link`.\n * Selector: `ecl-fact-figures-view-all`.\n */\n@Component({\n selector: 'ecl-fact-figures-view-all',\n templateUrl: './ecl-fact-figures-view-all.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresViewAllComponent extends ECLBaseDirective implements AfterContentInit {\n /**\n * Applies the base class `ecl-fact-figures__view-all` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__view-all'));\n\n /**\n * Reference to the projected link directive inside the component.\n * Automatically decorated with a specific class upon initialization.\n */\n readonly eclLink = contentChild(EclLinkDirective);\n\n /**\n * Adds the `ecl-fact-figures__view-all-link` class to the projected link.\n * This ensures consistent styling within the view-all section.\n */\n ngAfterContentInit(): void {\n const eclLink = this.eclLink();\n if (eclLink) {\n eclLink.class.set([eclLink.class(), 'ecl-fact-figures__view-all-link'].join(' '));\n }\n }\n}\n","<ng-content></ng-content>\n","import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the description text area of an `EclFactFiguresComponent`.\n * Applies the `ecl-fact-figures__description` class to the host `<div>` element.\n * Typically used to provide contextual or supporting information above or below the grid.\n */\n@Directive({\n selector: 'div[eclFactFiguresDescription]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresDescriptionDirective extends ECLBaseDirective {\n /**\n * Applies the base class `ecl-fact-figures__description` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__description'));\n}\n","import { EclFactFiguresComponent } from './ecl-fact-figures.component';\nimport { EclFactFiguresItemComponent } from './ecl-fact-figures-item.component';\nimport { EclFactFiguresViewAllComponent } from './ecl-fact-figures-view-all.component';\nimport { EclFactFiguresDescriptionDirective } from './ecl-fact-figures-description.directive';\nimport { EclFactFiguresSourcesListDirective, EclFactFiguresSourcesItemDirective, EclFactFiguresSourceDirective } from './ecl-fact-figures-sources.directive';\n\nexport * from './ecl-fact-figures.component';\nexport * from './ecl-fact-figures-description.directive';\nexport * from './ecl-fact-figures-item.component';\nexport * from './ecl-fact-figures-view-all.component';\nexport * from './ecl-fact-figures-sources.directive';\n\nexport const EUI_ECL_FACT_FIGURES = [\n EclFactFiguresComponent,\n EclFactFiguresItemComponent,\n EclFactFiguresViewAllComponent,\n EclFactFiguresDescriptionDirective,\n EclFactFiguresSourcesListDirective,\n EclFactFiguresSourcesItemDirective,\n EclFactFiguresSourceDirective,\n] as const;"],"mappings":";;;;;AAaA,IAAa,qCAAb,MAAa,mCAAkC;CAAlC;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkC,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAlC;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAkC,cAAA;GAAA,UAAA;GA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A,gBAAA;EAAA,CAAA;CAAA;CAAlC;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAkC,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,eAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAlC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkC,YAAA,CAAA;EAN9C,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM,EACJ,WAAW,eACZ;EACF,CAAA;;;ACDD,MAAa,uBAAuB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;AACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-fact-figures.mjs","names":[],"sources":["../../components/ecl-fact-figures/ecl-fact-figures-sources.directive.ts","../../components/ecl-fact-figures/ecl-fact-figures-item.component.ts","../../components/ecl-fact-figures/ecl-fact-figures-item.component.html","../../components/ecl-fact-figures/ecl-fact-figures.component.ts","../../components/ecl-fact-figures/ecl-fact-figures.component.html","../../components/ecl-fact-figures/ecl-fact-figures-view-all.component.ts","../../components/ecl-fact-figures/ecl-fact-figures-view-all.component.html","../../components/ecl-fact-figures/ecl-fact-figures-description.directive.ts","../../components/ecl-fact-figures/index.ts"],"sourcesContent":["import { computed, contentChildren, Directive, effect, ElementRef, forwardRef, inject, Renderer2 } from '@angular/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Wraps the list of source links in an `EclFactFiguresComponent`.\n * Selector: `ul[eclFactFiguresSourcesList]`. Applies the `ecl-fact-figures__sources-list` class.\n */\n@Directive({\n selector: 'ul[eclFactFiguresSourcesList]',\n host: {\n class: 'ecl-fact-figures__sources-list',\n },\n})\nexport class EclFactFiguresSourcesListDirective {}\n\n/**\n * Marks a `<li>` element as a source entry within an `EclFactFiguresComponent` sources list.\n * Applies the `ecl-fact-figures__sources-item` class.\n */\n@Directive({\n selector: 'li[eclFactFiguresSourcesItem]',\n host: {\n class: 'ecl-fact-figures__sources-item',\n },\n})\nexport class EclFactFiguresSourcesItemDirective {}\n\n/**\n * Marks a source reference within the Fact & Figures component.\n * Applies the `ecl-fact-figures__source` class. For anchors it also applies the ECL\n * link classes (`ecl-link`, and `ecl-link--icon` when a projected `ecl-icon` is present).\n * Plain-text (`span`) sources only get the `ecl-fact-figures__source` class.\n *\n * @example\n * ```html\n * <a eclFactFiguresSource href=\"/example\">Eurostat</a>\n * <a eclFactFiguresSource href=\"/example\">\n * <span class=\"ecl-link__label\">Eurostat</span>\n * <ecl-icon icon=\"external\" size=\"2xs\"></ecl-icon>\n * </a>\n * <span eclFactFiguresSource>Textual element</span>\n * ```\n */\n@Directive({\n selector: 'a[eclFactFiguresSource], span[eclFactFiguresSource]',\n host: {\n '[class.ecl-fact-figures__source]': 'true',\n '[class.ecl-link]': 'isLink',\n '[class.ecl-link--icon]': 'hasIcon()',\n },\n})\nexport class EclFactFiguresSourceDirective {\n private readonly host = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n\n /**\n * Whether this source should carry link styling. Anchors are links; plain-text\n * (span) sources are not.\n */\n protected readonly isLink = this.host.nativeElement.tagName === 'A';\n\n /** Projected icon components inside the source, used to apply link-icon styling. */\n private readonly eclIconComponents = contentChildren(forwardRef(() => EclIconComponent), { descendants: true });\n\n /** Whether the source contains a projected icon (and is a link). */\n protected readonly hasIcon = computed(() => this.isLink && this.eclIconComponents().length > 0);\n\n constructor() {\n effect(() => {\n const icons = this.eclIconComponents();\n if (this.isLink && icons.length > 0) {\n // Apply the ECL link icon class to projected icons, matching eclLink behaviour.\n icons.forEach((icon) => icon.addExtraClass('ecl-link__icon'));\n // Keep the trailing icon tethered to the last word of the label so it never\n // wraps onto its own line (ECL `no_icon_wrapping`).\n this.preventIconWrapping();\n }\n });\n }\n\n /**\n * Inserts a non-breaking space before the first `ecl-icon` element inside the source link,\n * so the trailing icon stays on the same line as the last word of the (wrapping) label.\n * Idempotent: skips insertion if the previous node is already a non-breaking space.\n */\n private preventIconWrapping(): void {\n const host = this.host.nativeElement as HTMLElement;\n const icon = host.querySelector('ecl-icon');\n if (!icon) {\n return;\n }\n const previous = icon.previousSibling;\n const alreadyTethered = previous?.nodeType === Node.TEXT_NODE && previous.textContent === '\\u00a0';\n if (alreadyTethered) {\n return;\n }\n this.renderer.insertBefore(host, this.renderer.createText('\\u00a0'), icon);\n }\n}\n","import { AfterContentInit, Component, computed, contentChild, contentChildren, input } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\nimport { EclFactFiguresSourcesListDirective } from './ecl-fact-figures-sources.directive';\n\n/**\n * Individual fact/figure item for use inside an `EclFactFiguresComponent`.\n * Displays a value, an optional title, and optionally an icon.\n * Projected `EclIconComponent` children are automatically decorated with `ecl-fact-figures__icon`.\n *\n * - Selectors: `div[eclFactFiguresItem]` or `ecl-fact-figures-item`.\n * - `eclValue` — the primary numeric or text value to display.\n * - `eclTitle` — supplementary title text displayed with the value.\n */\n@Component({\n selector: 'div[eclFactFiguresItem],ecl-fact-figures-item',\n templateUrl: './ecl-fact-figures-item.component.html',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresItemComponent extends ECLBaseDirective implements AfterContentInit {\n\n /** Primary numeric or text value displayed in the item. */\n eclValue = input<string>();\n\n /** Supplementary title displayed alongside the value. */\n eclTitle = input<string>();\n\n /** Label displayed before this item's individual sources list. */\n readonly sourcesLabel = input<string>('Sources:');\n\n /** Projected per-item sources list, if any. */\n private readonly sourcesList = contentChild(EclFactFiguresSourcesListDirective);\n\n /** Whether this item has an individual sources list projected. */\n protected readonly hasSourcesList = computed(() => !!this.sourcesList());\n\n /**\n * Applies the base class `ecl-fact-figures__item` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__item'));\n\n /**\n * Query for any EclIconComponent children projected into the component.\n * These icons will receive an additional CSS class.\n */\n readonly eclIconComponents = contentChildren(EclIconComponent);\n\n /**\n * Lifecycle hook that adds a CSS class to any EclIconComponent\n * found within the projected content.\n */\n ngAfterContentInit(): void {\n if (this.eclIconComponents()) {\n this.eclIconComponents().forEach((eclIcon) => {\n eclIcon.baseDirective.class.set([eclIcon.baseDirective.class(), 'ecl-fact-figures__icon'].join(' '));\n });\n }\n}\n}\n","<ng-content select=\"ecl-icon\"></ng-content>\n<div class=\"ecl-fact-figures__value\">{{ eclValue() }} <span class=\"ecl-fact-figures__title\">{{ eclTitle() }}</span></div>\n<ng-content select=\"ecl-icon\"></ng-content>\n<ng-content select=\"[eclFactFiguresDescription]\"></ng-content>\n@if (hasSourcesList()) {\n <div class=\"ecl-fact-figures__sources\">\n <span class=\"ecl-fact-figures__sources-label\">{{ sourcesLabel() }}</span>\n <ng-content select=\"[eclFactFiguresSourcesList]\"></ng-content>\n </div>\n}","import {\n Component,\n ElementRef,\n Renderer2,\n booleanAttribute,\n computed,\n contentChild,\n contentChildren,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclFactFiguresItemComponent } from './ecl-fact-figures-item.component';\nimport { EclFactFiguresSourcesListDirective } from './ecl-fact-figures-sources.directive';\n\n/**\n * Main component for displaying a collection of fact and figure items in a responsive,\n * styled grid layout following the ECL design system.\n *\n * - Selectors: `div[eclFactFigures]` or `ecl-fact-figures`.\n * - Project `EclFactFiguresItemComponent` items as children.\n * - `columns` — number of grid columns (as string); default `'3'`.\n * - `fontSize` — `'m'` (medium) | `'l'` (large, default).\n * - `isCentered` — centres all content; adds `ecl-fact-figures--centered`.\n * - `sourcesLabel` — label shown before the projected sources list; default `'Sources:'`.\n * - Use `ul[eclFactFiguresSourcesList]` / `li[eclFactFiguresSourcesItem]` /\n * `a[eclFactFiguresSource]` directives for the sources footer.\n */\n@Component({\n selector: 'div[eclFactFigures], ecl-fact-figures',\n templateUrl: './ecl-fact-figures.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n '[class.ecl-fact-figures--centered]': 'isCentered()',\n },\n})\nexport class EclFactFiguresComponent extends ECLBaseDirective {\n\n items = contentChildren(EclFactFiguresItemComponent, { read: ElementRef<HTMLElement> });\n\n /**\n * Global (component-level) sources list. Queried with `descendants: false` so only a\n * list placed directly in the component's content matches; per-item lists nested\n * inside items are excluded and must not trigger the global block.\n */\n private readonly sourcesList = contentChild(EclFactFiguresSourcesListDirective, { descendants: false });\n\n /** Whether a global sources list is projected directly on the component. */\n hasSourcesList = computed(() => !!this.sourcesList());\n\n /**\n * Number of columns in the layout (as string).\n * Default is `'3'`.\n */\n columns = input('3');\n\n /**\n * Font size variant. Can be:\n * - `'m'` – medium (smaller text)\n * - `'l'` – large (default)\n */\n fontSize = input<'m' | 'l'>('l');\n\n /**\n * Whether the content should be centered.\n * Adds `ecl-fact-figures--centered` class when true.\n */\n isCentered = input(false, { transform: booleanAttribute });\n\n /**\n * Label displayed before the sources list.\n * Default is `'Sources:'`.\n */\n sourcesLabel = input<string>('Sources:');\n\n /**\n * Sets the CSS classes for the component, including layout and font size modifiers.\n * Automatically adds:\n * - `ecl-fact-figures--col-{n}` depending on the `columns` value\n */\n protected readonly cssClasses = computed<string>(() =>\n [super.getCssClasses('ecl-fact-figures'),\n `ecl-fact-figures--col-${this.columns()}`].join(' ').trim());\n\n private renderer = inject(Renderer2);\n\n constructor() {\n super();\n effect(() => {\n const els = this.items();\n const size = this.fontSize();\n\n // clear + set first\n els.forEach(el =>\n this.renderer.removeClass(el.nativeElement, 'is-first')\n );\n if (els.length) {\n this.renderer.addClass(els[0].nativeElement, 'is-first');\n }\n\n // font-size class\n const cls = 'ecl-fact-figures__item--font-m';\n els.forEach(el => {\n if (size === 'm') {\n this.renderer.addClass(el.nativeElement, cls);\n } else {\n this.renderer.removeClass(el.nativeElement, cls);\n }\n });\n });\n }\n}\n","<div class=\"ecl-fact-figures__items\">\n <ng-content></ng-content>\n</div>\n\n@if (hasSourcesList()) {\n <div class=\"ecl-fact-figures__sources\">\n <span class=\"ecl-fact-figures__sources-label\">{{ sourcesLabel() }}</span>\n <ng-content select=\"[eclFactFiguresSourcesList]\"></ng-content>\n </div>\n}\n<ng-content select=\"ecl-fact-figures-view-all\"></ng-content>","import { AfterContentInit, Component, computed, contentChild } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * \"View all\" sub-component for `EclFactFiguresComponent`.\n * Renders a styled link section below the fact/figure items that allows users to navigate to\n * additional content. The projected `EclLinkDirective` is automatically decorated with\n * `ecl-fact-figures__view-all-link`.\n * Selector: `ecl-fact-figures-view-all`.\n */\n@Component({\n selector: 'ecl-fact-figures-view-all',\n templateUrl: './ecl-fact-figures-view-all.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresViewAllComponent extends ECLBaseDirective implements AfterContentInit {\n /**\n * Applies the base class `ecl-fact-figures__view-all` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__view-all'));\n\n /**\n * Reference to the projected link directive inside the component.\n * Automatically decorated with a specific class upon initialization.\n */\n readonly eclLink = contentChild(EclLinkDirective);\n\n /**\n * Adds the `ecl-fact-figures__view-all-link` class to the projected link.\n * This ensures consistent styling within the view-all section.\n */\n ngAfterContentInit(): void {\n const eclLink = this.eclLink();\n if (eclLink) {\n eclLink.class.set([eclLink.class(), 'ecl-fact-figures__view-all-link'].join(' '));\n }\n }\n}\n","<ng-content></ng-content>\n","import { computed, Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the description text area of an `EclFactFiguresComponent`.\n * Applies the `ecl-fact-figures__description` class to the host `<div>` element.\n * Typically used to provide contextual or supporting information above or below the grid.\n */\n@Directive({\n selector: 'div[eclFactFiguresDescription]',\n host: {\n '[class]': 'cssClasses()',\n },\n})\nexport class EclFactFiguresDescriptionDirective extends ECLBaseDirective {\n /**\n * Applies the base class `ecl-fact-figures__description` to the host element.\n */\n protected readonly cssClasses = computed<string>(() =>\n super.getCssClasses('ecl-fact-figures__description'));\n}\n","import { EclFactFiguresComponent } from './ecl-fact-figures.component';\nimport { EclFactFiguresItemComponent } from './ecl-fact-figures-item.component';\nimport { EclFactFiguresViewAllComponent } from './ecl-fact-figures-view-all.component';\nimport { EclFactFiguresDescriptionDirective } from './ecl-fact-figures-description.directive';\nimport { EclFactFiguresSourcesListDirective, EclFactFiguresSourcesItemDirective, EclFactFiguresSourceDirective } from './ecl-fact-figures-sources.directive';\n\nexport * from './ecl-fact-figures.component';\nexport * from './ecl-fact-figures-description.directive';\nexport * from './ecl-fact-figures-item.component';\nexport * from './ecl-fact-figures-view-all.component';\nexport * from './ecl-fact-figures-sources.directive';\n\nexport const EUI_ECL_FACT_FIGURES = [\n EclFactFiguresComponent,\n EclFactFiguresItemComponent,\n EclFactFiguresViewAllComponent,\n EclFactFiguresDescriptionDirective,\n EclFactFiguresSourcesListDirective,\n EclFactFiguresSourcesItemDirective,\n EclFactFiguresSourceDirective,\n] as const;"],"mappings":";;;;;AAaA,IAAa,qCAAb,MAAa,mCAAkC;CAAlC;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkC,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAlC;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAkC,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,iCAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAlC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkC,YAAA,CAAA;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A,EAAA,SAAA,eAAA,EAAA;GAAA,iBAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAAlC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkC,YAAA,CAAA;EAN9C,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,MAAM,EACJ,WAAW,eACZ;EACF,CAAA;;;ACDD,MAAa,uBAAuB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;AACM"}
@@ -114,7 +114,7 @@ i0.ɵɵngDeclareClassMetadata({
114
114
  args: [{
115
115
  selector: "ecl-featured, article[eclFeatured]",
116
116
  host: {
117
- "role": "article",
117
+ role: "article",
118
118
  "[class]": "cssClasses()",
119
119
  "[class.ecl-featured-item--link-highlighted]": "isLinkHighlighted()"
120
120
  },
@@ -213,7 +213,7 @@ i0.ɵɵngDeclareClassMetadata({
213
213
  args: [{
214
214
  selector: "[eclFeaturedItemLink]",
215
215
  host: {
216
- "class": "ecl-featured-item__link",
216
+ class: "ecl-featured-item__link",
217
217
  "[attr.aria-describedby]": "ariaDescribedBy()"
218
218
  }
219
219
  }]
@@ -386,7 +386,7 @@ i0.ɵɵngDeclareClassMetadata({
386
386
  args: [{
387
387
  selector: "ecl-featured-item, div[eclFeaturedItem]",
388
388
  imports: [NgTemplateOutlet],
389
- host: { "class": "ecl-featured-item__item" },
389
+ host: { class: "ecl-featured-item__item" },
390
390
  template: "@if (!hasMedia()) {\n<div class=\"ecl-featured-item__content\">\n <div class=\"ecl-featured-item__info\">\n @if(hasMicroTitle()) {\n <div class=\"ecl-featured-item__micro-title\">{{ eclMicroTitle() }}</div>\n }\n @if(hasTitle()) {\n <div class=\"ecl-featured-item__title\" [attr.id]=\"id() + '-title'\">\n {{ eclTitle() }}\n </div>\n }\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <ng-content select=\"[eclLink]\"></ng-content>\n</div>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>",
391
391
  styles: [":host{display:block}\n"]
392
392
  }]
@@ -464,7 +464,7 @@ i0.ɵɵngDeclareClassMetadata({
464
464
  type: Component,
465
465
  args: [{
466
466
  selector: "ecl-featured-item-description",
467
- host: { "class": "ecl-featured-item__description" },
467
+ host: { class: "ecl-featured-item__description" },
468
468
  template: "<ng-content></ng-content>\n",
469
469
  styles: [":host{display:block}\n"]
470
470
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-featured.mjs","names":[],"sources":["../../components/ecl-featured/ecl-featured.component.ts","../../components/ecl-featured/ecl-featured.component.html","../../components/ecl-featured/ecl-featured-item-link.directive.ts","../../components/ecl-featured/ecl-featured-item.component.ts","../../components/ecl-featured/ecl-featured-item.component.html","../../components/ecl-featured/ecl-featured-item-description.component.ts","../../components/ecl-featured/ecl-featured-item-description.component.html","../../components/ecl-featured/index.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Promotional feature block that pairs a media area with text content following ECL design standards.\n * Renders as an `article` with configurable image position, highlight variant, and alignment options.\n * Compose using `ecl-featured-item` for text content and `ecl-media-container` for the media slot.\n *\n * - Variant axis: `variant` — `'highlight'` applies a more prominent visual treatment.\n * - Image position: `position` — `'left'` (default) or `'right'`.\n * - Alignment: `horizontalAlign` (`'center'`) and `verticalAlign` (`'center'`, `'top'`).\n * - `isDynamicImage` enables dynamic-image CSS mode; `isLinkHighlighted` activates link-highlighted styling.\n */\n@Component({\n selector: 'ecl-featured, article[eclFeatured]',\n templateUrl: './ecl-featured.component.html',\n host: {\n 'role': 'article',\n '[class]': 'cssClasses()',\n '[class.ecl-featured-item--link-highlighted]': 'isLinkHighlighted()',\n },\n})\nexport class EclFeaturedComponent extends ECLBaseDirective {\n /**\n * Position of the media relative to the text content.\n * - `'left'` (default) — media appears on the left.\n * - `'right'` — media appears on the right.\n */\n readonly position = input<'left' | 'right'>('left');\n /**\n * Visual variant. Use `'highlight'` for a more prominent appearance.\n */\n readonly variant = input<'highlight'>();\n\n /** Whether the featured item uses a dynamically-sized image (`ecl-featured-item--dynamic`). */\n isDynamicImage = input(false, { transform: booleanAttribute });\n\n /** Horizontal alignment of the media and text block. Use `'center'` to centre both axes. */\n horizontalAlign = input<'left' | 'center' | undefined>();\n\n /** Vertical alignment of the media and text block. `'top'` or `'center'`. */\n verticalAlign = input<'top' | 'center' | undefined>();\n\n /** Applies `ecl-featured-item--link-highlighted` when `true`, giving the link a distinct display in highlight mode. */\n readonly isLinkHighlighted = input(false, { transform: booleanAttribute });\n\n /**\n * Adds specific classes to the component.\n */\n readonly cssClasses = computed(() => {\n const variant = this.variant();\n return [\n super.getCssClasses('ecl-featured-item'),\n variant ? `ecl-featured-item--${variant}`: '',\n this.horizontalAlign() === 'center' ? 'ecl-featured-item--hcenter' : '',\n this.verticalAlign() === 'center' ? 'ecl-featured-item--vcenter' : '',\n this.isDynamicImage() ? 'ecl-featured-item--dynamic' : '',\n ].join(' ').trim();\n });\n}\n","<div class=\"ecl-featured-item__container\" [class.ecl-featured-item__container--right]=\"position() === 'right'\">\n <ng-content></ng-content>\n</div>","import { Directive, computed, input, signal } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Marks an anchor element as the primary navigable link inside an `ecl-featured-item`.\n * Applies the `ecl-featured-item__link` CSS class and manages the `aria-describedby` attribute,\n * which is set programmatically by the parent `EclFeaturedItemComponent` to reference the item's title.\n */\n@Directive({\n selector: '[eclFeaturedItemLink]',\n host: {\n 'class': 'ecl-featured-item__link',\n '[attr.aria-describedby]': 'ariaDescribedBy()',\n },\n})\nexport class EclFeaturedItemLinkDirective extends ECLBaseDirective {\n /**\n * The `aria-describedby` value pointing to the parent featured item's title element.\n * Set imperatively by `EclFeaturedItemComponent` after content initialisation.\n */\n readonly ariaDescribedBy = signal<string | null>(null);\n}\n\n/**\n * Sets a CSS custom property (`--ecl-image-anchor`) on the host to control the anchor\n * point for the featured item's media image. Apply to the media wrapper element inside\n * an `ecl-featured-item`.\n *\n * - `eclFeaturedMediaAnchor` — `'left'`, `'right'`, `'20%'`, or `'center'` (center produces no CSS variable).\n */\n@Directive({\n selector: '[eclFeaturedMediaAnchor]',\n host: {\n '[style.--ecl-image-anchor]': 'cssAnchor()',\n },\n})\nexport class EclFeaturedMediaAnchorDirective extends ECLBaseDirective {\n eclFeaturedMediaAnchor = input<'left' | 'right' | '20%' | 'center' | undefined>();\n\n readonly cssAnchor = computed(() => {\n const value = this.eclFeaturedMediaAnchor();\n\n if (!value || value === 'center') {\n return null;\n }\n\n return value;\n });\n}\n","import { AfterContentInit, Component, contentChild, computed, input, contentChildren } from '@angular/core';\nimport { EclMediaContainerComponent } from '@eui/ecl/components/ecl-media-container';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { uniqueId } from '@eui/core';\nimport { EclFeaturedItemLinkDirective } from './ecl-featured-item-link.directive';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/**\n * Text-content slot for an `ecl-featured` block — holds the title, micro-title, description, and links.\n * Project an `ecl-media-container` as a child to supply media alongside the text.\n * Automatically wires `aria-describedby` on projected `[eclFeaturedItemLink]` elements to the title element.\n *\n * - `eclTitle` and `eclMicroTitle` supply the primary and secondary headings.\n * - `id` defaults to a generated unique ID used as the describedby reference target.\n */\n@Component({\n selector: 'ecl-featured-item, div[eclFeaturedItem]',\n imports: [NgTemplateOutlet],\n templateUrl: './ecl-featured-item.component.html',\n host: {\n 'class': 'ecl-featured-item__item',\n },\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclFeaturedItemComponent extends ECLBaseDirective implements AfterContentInit {\n /** Primary heading text of the featured item. */\n eclTitle = input('');\n /** Secondary micro-heading displayed above the main title. */\n eclMicroTitle = input('');\n /** Unique element ID used to generate `aria-describedby` references on child links. Auto-generated if not provided. */\n id = input<string>(`ecl-featured-item-${uniqueId()}`);\n mediaContainer = contentChild(EclMediaContainerComponent);\n readonly links = contentChildren(EclFeaturedItemLinkDirective, { descendants: true });\n\n protected readonly hasMedia = computed(() => {\n return !!this.mediaContainer()\n });\n protected readonly hasTitle = computed(() => this.eclTitle() !== '');\n protected readonly hasMicroTitle = computed(() => this.eclMicroTitle() !== '');\n\n ngAfterContentInit(): void {\n const mediaContainer = this.mediaContainer();\n if (mediaContainer) {\n mediaContainer.class.set('ecl-featured-item__media_container');\n }\n\n const describedBy = this.hasTitle() ? `${this.id()}-title` : null;\n const links = this.links();\n if (describedBy && links) {\n links.forEach(link => {\n link.ariaDescribedBy.set(describedBy);\n });\n }\n }\n}\n","@if (!hasMedia()) {\n<div class=\"ecl-featured-item__content\">\n <div class=\"ecl-featured-item__info\">\n @if(hasMicroTitle()) {\n <div class=\"ecl-featured-item__micro-title\">{{ eclMicroTitle() }}</div>\n }\n @if(hasTitle()) {\n <div class=\"ecl-featured-item__title\" [attr.id]=\"id() + '-title'\">\n {{ eclTitle() }}\n </div>\n }\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <ng-content select=\"[eclLink]\"></ng-content>\n</div>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Component } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Styles the description slot inside an `ecl-featured-item` block.\n * Apply to a child element of `ecl-featured-item` to receive the `ecl-featured-item__description` CSS class.\n */\n@Component({\n selector: 'ecl-featured-item-description',\n templateUrl: './ecl-featured-item-description.component.html',\n host: {\n 'class': 'ecl-featured-item__description',\n },\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclFeaturedItemDescriptionComponent extends ECLBaseDirective {}\n","<ng-content></ng-content>\n","import { EclFeaturedComponent } from './ecl-featured.component';\nimport { EclFeaturedItemComponent } from './ecl-featured-item.component';\nimport { EclFeaturedItemDescriptionComponent } from './ecl-featured-item-description.component';\nimport { EclFeaturedItemLinkDirective, EclFeaturedMediaAnchorDirective } from './ecl-featured-item-link.directive';\n\nexport * from './ecl-featured.component';\nexport * from './ecl-featured-item.component';\nexport * from './ecl-featured-item-description.component';\nexport * from './ecl-featured-item-link.directive';\n\nexport const EUI_ECL_FEATURED = [\n EclFeaturedComponent,\n EclFeaturedItemComponent,\n EclFeaturedItemLinkDirective,\n EclFeaturedItemDescriptionComponent,\n EclFeaturedMediaAnchorDirective,\n] as const;"],"mappings":";;;;;;AAsBA,IAAa,uBAAb,MAAa,6BAA6B,iBAAgB;CAT1D,cAAA;;EAea,KAAA,WAAW,MAAwB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAI1C,KAAA,UAAU,MAAoB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAGvC,KAAA,iBAAiB,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAG3D,KAAA,kBAAkB,MAAsC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;EAGxD,KAAA,gBAAgB,MAAqC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;EAG5C,KAAA,oBAAoB,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,oBAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAK9D,KAAA,aAAa,eAAc;GAChC,MAAM,UAAU,KAAK,QAAO;GAC5B,OAAO;IACH,MAAM,cAAc,mBAAmB;IACvC,UAAU,sBAAsB,YAAW;IAC3C,KAAK,gBAAe,MAAO,WAAW,+BAA+B;IACrE,KAAK,cAAa,MAAO,WAAW,+BAA+B;IACnE,KAAK,eAAc,IAAK,+BAA+B;GAC1D,CAAA,C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;GAAmC,cAAA;GAAA,UAAA;GAAA,MAAA,EAAA,gBAAA,iCAAA;GAAA,iBAAA;GAAA,UAAA;GAAA,UCrBhD;GACA,QAAA,CAAA,wBAAA;EAAA,CAAA;CAAA;;ADoBa,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAmC,YAAA,CAAA;EAd/C,MAAA;EACa,MAAA,CAAA;GAAA,UAAA;GAA+B,MAEnC,EACF,SAAS,iCACZ;GAAA,UAAA;GAAA,QAAA,CAAA,wBAAA;EAAA,CAAA;;;AEFL,MAAa,mBAAmB;CAC5B;CACA;CACA;CACA;CACA;AACM"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-featured.mjs","names":[],"sources":["../../components/ecl-featured/ecl-featured.component.ts","../../components/ecl-featured/ecl-featured.component.html","../../components/ecl-featured/ecl-featured-item-link.directive.ts","../../components/ecl-featured/ecl-featured-item.component.ts","../../components/ecl-featured/ecl-featured-item.component.html","../../components/ecl-featured/ecl-featured-item-description.component.ts","../../components/ecl-featured/ecl-featured-item-description.component.html","../../components/ecl-featured/index.ts"],"sourcesContent":["import { booleanAttribute, Component, computed, input } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Promotional feature block that pairs a media area with text content following ECL design standards.\n * Renders as an `article` with configurable image position, highlight variant, and alignment options.\n * Compose using `ecl-featured-item` for text content and `ecl-media-container` for the media slot.\n *\n * - Variant axis: `variant` — `'highlight'` applies a more prominent visual treatment.\n * - Image position: `position` — `'left'` (default) or `'right'`.\n * - Alignment: `horizontalAlign` (`'center'`) and `verticalAlign` (`'center'`, `'top'`).\n * - `isDynamicImage` enables dynamic-image CSS mode; `isLinkHighlighted` activates link-highlighted styling.\n */\n@Component({\n selector: 'ecl-featured, article[eclFeatured]',\n templateUrl: './ecl-featured.component.html',\n host: {\n role: 'article',\n '[class]': 'cssClasses()',\n '[class.ecl-featured-item--link-highlighted]': 'isLinkHighlighted()',\n },\n})\nexport class EclFeaturedComponent extends ECLBaseDirective {\n /**\n * Position of the media relative to the text content.\n * - `'left'` (default) — media appears on the left.\n * - `'right'` — media appears on the right.\n */\n readonly position = input<'left' | 'right'>('left');\n /**\n * Visual variant. Use `'highlight'` for a more prominent appearance.\n */\n readonly variant = input<'highlight'>();\n\n /** Whether the featured item uses a dynamically-sized image (`ecl-featured-item--dynamic`). */\n isDynamicImage = input(false, { transform: booleanAttribute });\n\n /** Horizontal alignment of the media and text block. Use `'center'` to centre both axes. */\n horizontalAlign = input<'left' | 'center' | undefined>();\n\n /** Vertical alignment of the media and text block. `'top'` or `'center'`. */\n verticalAlign = input<'top' | 'center' | undefined>();\n\n /** Applies `ecl-featured-item--link-highlighted` when `true`, giving the link a distinct display in highlight mode. */\n readonly isLinkHighlighted = input(false, { transform: booleanAttribute });\n\n /**\n * Adds specific classes to the component.\n */\n readonly cssClasses = computed(() => {\n const variant = this.variant();\n return [\n super.getCssClasses('ecl-featured-item'),\n variant ? `ecl-featured-item--${variant}`: '',\n this.horizontalAlign() === 'center' ? 'ecl-featured-item--hcenter' : '',\n this.verticalAlign() === 'center' ? 'ecl-featured-item--vcenter' : '',\n this.isDynamicImage() ? 'ecl-featured-item--dynamic' : '',\n ].join(' ').trim();\n });\n}\n","<div class=\"ecl-featured-item__container\" [class.ecl-featured-item__container--right]=\"position() === 'right'\">\n <ng-content></ng-content>\n</div>","import { Directive, computed, input, signal } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Marks an anchor element as the primary navigable link inside an `ecl-featured-item`.\n * Applies the `ecl-featured-item__link` CSS class and manages the `aria-describedby` attribute,\n * which is set programmatically by the parent `EclFeaturedItemComponent` to reference the item's title.\n */\n@Directive({\n selector: '[eclFeaturedItemLink]',\n host: {\n class: 'ecl-featured-item__link',\n '[attr.aria-describedby]': 'ariaDescribedBy()',\n },\n})\nexport class EclFeaturedItemLinkDirective extends ECLBaseDirective {\n /**\n * The `aria-describedby` value pointing to the parent featured item's title element.\n * Set imperatively by `EclFeaturedItemComponent` after content initialisation.\n */\n readonly ariaDescribedBy = signal<string | null>(null);\n}\n\n/**\n * Sets a CSS custom property (`--ecl-image-anchor`) on the host to control the anchor\n * point for the featured item's media image. Apply to the media wrapper element inside\n * an `ecl-featured-item`.\n *\n * - `eclFeaturedMediaAnchor` — `'left'`, `'right'`, `'20%'`, or `'center'` (center produces no CSS variable).\n */\n@Directive({\n selector: '[eclFeaturedMediaAnchor]',\n host: {\n '[style.--ecl-image-anchor]': 'cssAnchor()',\n },\n})\nexport class EclFeaturedMediaAnchorDirective extends ECLBaseDirective {\n eclFeaturedMediaAnchor = input<'left' | 'right' | '20%' | 'center' | undefined>();\n\n readonly cssAnchor = computed(() => {\n const value = this.eclFeaturedMediaAnchor();\n\n if (!value || value === 'center') {\n return null;\n }\n\n return value;\n });\n}\n","import { AfterContentInit, Component, contentChild, computed, input, contentChildren } from '@angular/core';\nimport { EclMediaContainerComponent } from '@eui/ecl/components/ecl-media-container';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { uniqueId } from '@eui/core';\nimport { EclFeaturedItemLinkDirective } from './ecl-featured-item-link.directive';\nimport { NgTemplateOutlet } from '@angular/common';\n\n/**\n * Text-content slot for an `ecl-featured` block — holds the title, micro-title, description, and links.\n * Project an `ecl-media-container` as a child to supply media alongside the text.\n * Automatically wires `aria-describedby` on projected `[eclFeaturedItemLink]` elements to the title element.\n *\n * - `eclTitle` and `eclMicroTitle` supply the primary and secondary headings.\n * - `id` defaults to a generated unique ID used as the describedby reference target.\n */\n@Component({\n selector: 'ecl-featured-item, div[eclFeaturedItem]',\n imports: [NgTemplateOutlet],\n templateUrl: './ecl-featured-item.component.html',\n host: {\n class: 'ecl-featured-item__item',\n },\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclFeaturedItemComponent extends ECLBaseDirective implements AfterContentInit {\n /** Primary heading text of the featured item. */\n eclTitle = input('');\n /** Secondary micro-heading displayed above the main title. */\n eclMicroTitle = input('');\n /** Unique element ID used to generate `aria-describedby` references on child links. Auto-generated if not provided. */\n id = input<string>(`ecl-featured-item-${uniqueId()}`);\n mediaContainer = contentChild(EclMediaContainerComponent);\n readonly links = contentChildren(EclFeaturedItemLinkDirective, { descendants: true });\n\n protected readonly hasMedia = computed(() => {\n return !!this.mediaContainer()\n });\n protected readonly hasTitle = computed(() => this.eclTitle() !== '');\n protected readonly hasMicroTitle = computed(() => this.eclMicroTitle() !== '');\n\n ngAfterContentInit(): void {\n const mediaContainer = this.mediaContainer();\n if (mediaContainer) {\n mediaContainer.class.set('ecl-featured-item__media_container');\n }\n\n const describedBy = this.hasTitle() ? `${this.id()}-title` : null;\n const links = this.links();\n if (describedBy && links) {\n links.forEach(link => {\n link.ariaDescribedBy.set(describedBy);\n });\n }\n }\n}\n","@if (!hasMedia()) {\n<div class=\"ecl-featured-item__content\">\n <div class=\"ecl-featured-item__info\">\n @if(hasMicroTitle()) {\n <div class=\"ecl-featured-item__micro-title\">{{ eclMicroTitle() }}</div>\n }\n @if(hasTitle()) {\n <div class=\"ecl-featured-item__title\" [attr.id]=\"id() + '-title'\">\n {{ eclTitle() }}\n </div>\n }\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <ng-content select=\"[eclLink]\"></ng-content>\n</div>\n} @else {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Component } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Styles the description slot inside an `ecl-featured-item` block.\n * Apply to a child element of `ecl-featured-item` to receive the `ecl-featured-item__description` CSS class.\n */\n@Component({\n selector: 'ecl-featured-item-description',\n templateUrl: './ecl-featured-item-description.component.html',\n host: {\n class: 'ecl-featured-item__description',\n },\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclFeaturedItemDescriptionComponent extends ECLBaseDirective {}\n","<ng-content></ng-content>\n","import { EclFeaturedComponent } from './ecl-featured.component';\nimport { EclFeaturedItemComponent } from './ecl-featured-item.component';\nimport { EclFeaturedItemDescriptionComponent } from './ecl-featured-item-description.component';\nimport { EclFeaturedItemLinkDirective, EclFeaturedMediaAnchorDirective } from './ecl-featured-item-link.directive';\n\nexport * from './ecl-featured.component';\nexport * from './ecl-featured-item.component';\nexport * from './ecl-featured-item-description.component';\nexport * from './ecl-featured-item-link.directive';\n\nexport const EUI_ECL_FEATURED = [\n EclFeaturedComponent,\n EclFeaturedItemComponent,\n EclFeaturedItemLinkDirective,\n EclFeaturedItemDescriptionComponent,\n EclFeaturedMediaAnchorDirective,\n] as const;"],"mappings":";;;;;;AAsBA,IAAa,uBAAb,MAAa,6BAA6B,iBAAgB;CAT1D,cAAA;;EAea,KAAA,WAAW,MAAwB,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAI1C,KAAA,UAAU,MAAoB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAGvC,KAAA,iBAAiB,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAG3D,KAAA,kBAAkB,MAAsC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;EAGxD,KAAA,gBAAgB,MAAqC,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,gBAAA,CAAA,+BAAA,CAAA,CAAA;EAG5C,KAAA,oBAAoB,MAAM,OAAK;GAAA,GAAA,YAAA,EAAA,WAAA,oBAAA,+BAAA,CAAA;GAAI,WAAW;EAAgB,CAAA;EAK9D,KAAA,aAAa,eAAc;GAChC,MAAM,UAAU,KAAK,QAAO;GAC5B,OAAO;IACH,MAAM,cAAc,mBAAmB;IACvC,UAAU,sBAAsB,YAAW;IAC3C,KAAK,gBAAe,MAAO,WAAW,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