@eui/ecl 21.0.0-alpha.30 → 21.0.0-alpha.32

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 (234) hide show
  1. package/assets/i18n-ecl/bg.json +1 -0
  2. package/assets/i18n-ecl/cs.json +1 -0
  3. package/assets/i18n-ecl/da.json +1 -0
  4. package/assets/i18n-ecl/de.json +1 -0
  5. package/assets/i18n-ecl/el.json +1 -0
  6. package/assets/i18n-ecl/en.json +1 -0
  7. package/assets/i18n-ecl/es.json +1 -0
  8. package/assets/i18n-ecl/et.json +1 -0
  9. package/assets/i18n-ecl/fi.json +1 -0
  10. package/assets/i18n-ecl/fr.json +1 -0
  11. package/assets/i18n-ecl/ga.json +1 -0
  12. package/assets/i18n-ecl/hr.json +1 -0
  13. package/assets/i18n-ecl/hu.json +1 -0
  14. package/assets/i18n-ecl/it.json +1 -0
  15. package/assets/i18n-ecl/lt.json +1 -0
  16. package/assets/i18n-ecl/lv.json +1 -0
  17. package/assets/i18n-ecl/mt.json +1 -0
  18. package/assets/i18n-ecl/nl.json +1 -0
  19. package/assets/i18n-ecl/pl.json +1 -0
  20. package/assets/i18n-ecl/pt.json +1 -0
  21. package/assets/i18n-ecl/ro.json +1 -0
  22. package/assets/i18n-ecl/sk.json +1 -0
  23. package/assets/i18n-ecl/sl.json +1 -0
  24. package/assets/i18n-ecl/sv.json +1 -0
  25. package/components/ecl-accordion/index.d.ts +8 -4
  26. package/components/ecl-accordion/index.d.ts.map +1 -1
  27. package/components/ecl-banner/index.d.ts +8 -1
  28. package/components/ecl-banner/index.d.ts.map +1 -1
  29. package/components/ecl-divider/index.d.ts +31 -0
  30. package/components/ecl-divider/index.d.ts.map +1 -0
  31. package/components/ecl-divider/package.json +3 -0
  32. package/components/ecl-featured/index.d.ts +13 -35
  33. package/components/ecl-featured/index.d.ts.map +1 -1
  34. package/components/ecl-feedback-message/index.d.ts.map +1 -1
  35. package/components/ecl-mega-menu/index.d.ts +7 -3
  36. package/components/ecl-mega-menu/index.d.ts.map +1 -1
  37. package/components/ecl-menu/index.d.ts +12 -4
  38. package/components/ecl-menu/index.d.ts.map +1 -1
  39. package/components/ecl-popover/index.d.ts +17 -12
  40. package/components/ecl-popover/index.d.ts.map +1 -1
  41. package/components/ecl-site-footer/index.d.ts +61 -32
  42. package/components/ecl-site-footer/index.d.ts.map +1 -1
  43. package/components/ecl-site-header/index.d.ts +6 -3
  44. package/components/ecl-site-header/index.d.ts.map +1 -1
  45. package/components/ecl-social-media-follow/index.d.ts +3 -1
  46. package/components/ecl-social-media-follow/index.d.ts.map +1 -1
  47. package/core/index.d.ts +7 -1
  48. package/core/index.d.ts.map +1 -1
  49. package/docs/changelog.html +152 -0
  50. package/docs/components/EclAccordionComponent.html +43 -2
  51. package/docs/components/EclAccordionItemComponent.html +3 -3
  52. package/docs/components/EclAppComponent.html +2 -2
  53. package/docs/components/EclBannerComponent.html +33 -2
  54. package/docs/components/EclBlockquoteComponent.html +2 -2
  55. package/docs/components/EclBreadcrumbComponent.html +2 -2
  56. package/docs/components/EclBreadcrumbSegmentComponent.html +2 -2
  57. package/docs/components/EclButtonComponent.html +2 -2
  58. package/docs/components/EclCardBodyComponent.html +2 -2
  59. package/docs/components/EclCardComponent.html +2 -2
  60. package/docs/components/EclCarouselComponent.html +2 -2
  61. package/docs/components/EclCarouselItemComponent.html +2 -2
  62. package/docs/components/EclCategoryFilterComponent.html +2 -2
  63. package/docs/components/EclCategoryFilterItemComponent.html +2 -2
  64. package/docs/components/EclCategoryFilterListComponent.html +2 -2
  65. package/docs/components/EclCheckboxHelpComponent.html +2 -2
  66. package/docs/components/EclCheckboxLabelComponent.html +3 -3
  67. package/docs/components/EclContentBlockComponent.html +2 -2
  68. package/docs/components/EclContentItemComponent.html +2 -2
  69. package/docs/components/EclDateBlockComponent.html +2 -2
  70. package/docs/components/EclDescriptionListDefinitionComponent.html +2 -2
  71. package/docs/components/EclExpandableComponent.html +2 -2
  72. package/docs/components/EclFactFiguresComponent.html +2 -2
  73. package/docs/components/EclFactFiguresDescriptionComponent.html +2 -2
  74. package/docs/components/EclFactFiguresItemComponent.html +2 -2
  75. package/docs/components/EclFactFiguresTitleComponent.html +2 -2
  76. package/docs/components/EclFactFiguresValueComponent.html +2 -2
  77. package/docs/components/EclFactFiguresViewAllComponent.html +2 -2
  78. package/docs/components/EclFeaturedComponent.html +33 -15
  79. package/docs/components/EclFeaturedItemComponent.html +27 -3
  80. package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
  81. package/docs/components/EclFileComponent.html +2 -2
  82. package/docs/components/EclFileItemComponent.html +2 -2
  83. package/docs/components/EclFileItemsComponent.html +2 -2
  84. package/docs/components/EclFileTaxonomyComponent.html +2 -2
  85. package/docs/components/EclFormGroupComponent.html +2 -2
  86. package/docs/components/EclFormLabelComponent.html +3 -3
  87. package/docs/components/EclGalleryComponent.html +3 -3
  88. package/docs/components/EclGalleryFooterComponent.html +2 -2
  89. package/docs/components/EclGalleryItemComponent.html +3 -3
  90. package/docs/components/EclIconComponent.html +2 -2
  91. package/docs/components/EclInpageNavigationComponent.html +2 -2
  92. package/docs/components/EclInpageNavigationItemComponent.html +2 -2
  93. package/docs/components/EclListIllustrationComponent.html +2 -2
  94. package/docs/components/EclListIllustrationItemComponent.html +2 -2
  95. package/docs/components/EclLoadingIndicatorComponent.html +2 -2
  96. package/docs/components/EclMediaContainerComponent.html +2 -2
  97. package/docs/components/EclMegaMenuComponent.html +46 -2
  98. package/docs/components/EclMegaMenuFeaturedComponent.html +2 -2
  99. package/docs/components/EclMegaMenuInfoComponent.html +2 -2
  100. package/docs/components/EclMegaMenuItemComponent.html +2 -2
  101. package/docs/components/EclMegaMenuSubitemComponent.html +2 -2
  102. package/docs/components/EclMenuComponent.html +194 -14
  103. package/docs/components/EclMenuItemComponent.html +3 -3
  104. package/docs/components/EclMenuMegaComponent.html +2 -2
  105. package/docs/components/EclMenuMegaItemComponent.html +2 -2
  106. package/docs/components/EclModalBodyComponent.html +2 -2
  107. package/docs/components/EclModalComponent.html +2 -2
  108. package/docs/components/EclModalFooterComponent.html +2 -2
  109. package/docs/components/EclModalHeaderComponent.html +2 -2
  110. package/docs/components/EclMultiselectComponent.html +2 -2
  111. package/docs/components/EclMultiselectDropdownComponent.html +2 -2
  112. package/docs/components/EclMultiselectInputComponent.html +2 -2
  113. package/docs/components/EclMultiselectOptgroupComponent.html +2 -2
  114. package/docs/components/EclMultiselectOptionComponent.html +2 -2
  115. package/docs/components/EclNavigationListComponent.html +2 -2
  116. package/docs/components/EclNavigationListItemComponent.html +2 -2
  117. package/docs/components/EclNewsTickerComponent.html +2 -2
  118. package/docs/components/EclNewsTickerItemComponent.html +2 -2
  119. package/docs/components/EclNotificationComponent.html +3 -3
  120. package/docs/components/EclPageHeaderComponent.html +2 -2
  121. package/docs/components/EclPaginationComponent.html +2 -2
  122. package/docs/components/EclPaginationItemComponent.html +2 -2
  123. package/docs/components/EclPopoverComponent.html +96 -27
  124. package/docs/components/EclRadioHelpComponent.html +2 -2
  125. package/docs/components/EclRadioLabelComponent.html +2 -2
  126. package/docs/components/EclRangeBubbleComponent.html +2 -2
  127. package/docs/components/EclRangeValueComponent.html +2 -2
  128. package/docs/components/EclRatingFieldComponent.html +2 -2
  129. package/docs/components/EclSearchFormComponent.html +3 -3
  130. package/docs/components/EclSelectContainerComponent.html +2 -2
  131. package/docs/components/EclSiteFooterComponent.html +47 -5
  132. package/docs/components/{EclSocialMediaShareComponent.html → EclSiteFooterCoreComponent.html} +31 -40
  133. package/docs/components/EclSiteFooterFixedContentEUComponent.html +2 -2
  134. package/docs/components/EclSiteFooterRowCommonComponent.html +647 -0
  135. package/docs/components/EclSiteHeaderActionComponent.html +2 -2
  136. package/docs/components/EclSiteHeaderBannerTopComponent.html +2 -2
  137. package/docs/components/EclSiteHeaderComponent.html +33 -3
  138. package/docs/components/EclSiteHeaderCustomActionComponent.html +2 -2
  139. package/docs/components/EclSiteHeaderEnvironmentComponent.html +2 -2
  140. package/docs/components/EclSiteHeaderLanguageComponent.html +3 -3
  141. package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +3 -3
  142. package/docs/components/EclSiteHeaderLoginComponent.html +3 -3
  143. package/docs/components/EclSiteHeaderNotificationComponent.html +2 -2
  144. package/docs/components/EclSiteHeaderSearchComponent.html +2 -2
  145. package/docs/components/EclSocialMediaFollowComponent.html +2 -2
  146. package/docs/components/EclSocialMediaFollowItemComponent.html +16 -3
  147. package/docs/components/EclSplashPageComponent.html +2 -2
  148. package/docs/components/EclSplashPageLanguageCategoryComponent.html +2 -2
  149. package/docs/components/EclSplashPageLanguageContainerComponent.html +2 -2
  150. package/docs/components/EclSplashPageLanguageLinkComponent.html +2 -2
  151. package/docs/components/EclStickyContainerComponent.html +2 -2
  152. package/docs/components/EclTabComponent.html +2 -2
  153. package/docs/components/EclTabLabelComponent.html +2 -2
  154. package/docs/components/EclTabMoreComponent.html +2 -2
  155. package/docs/components/EclTableSortButtonComponent.html +2 -2
  156. package/docs/components/EclTabsComponent.html +2 -2
  157. package/docs/components/EclTagComponent.html +2 -2
  158. package/docs/components/EclTimelineComponent.html +2 -2
  159. package/docs/components/EclTimelineItemComponent.html +2 -2
  160. package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
  161. package/docs/directives/EclBannerDescriptionLinkDirective.html +65 -1
  162. package/docs/directives/EclBannerTitleLinkDirective.html +64 -1
  163. package/docs/directives/{EclSeparatorDirective.html → EclDividerDirective.html} +4 -4
  164. package/docs/directives/EclSiteFooterColumnDirective.html +1 -1
  165. package/docs/directives/{EclSiteFooterContentDirective.html → EclSiteFooterDescriptionNameDirective.html} +10 -18
  166. package/docs/directives/EclSiteFooterRowDirective.html +1 -1
  167. package/docs/directives/EclSiteFooterSectionDirective.html +341 -8
  168. package/docs/directives/{EclFeaturedItemFooterLinkDirective.html → EclSiteFooterSocialMediaDirective.html} +14 -14
  169. package/docs/js/menu-wc.js +45 -112
  170. package/docs/js/menu-wc_es5.js +1 -1
  171. package/docs/js/search/search_index.js +2 -2
  172. package/docs/{classes/EclSocialMediaShareItemClickEvent.html → miscellaneous/functions.html} +56 -80
  173. package/docs/miscellaneous/variables.html +100 -104
  174. package/docs/modules/{EclSeparatorModule.html → EclDividerModule.html} +6 -6
  175. package/docs/modules.html +12 -24
  176. package/docs/overview.html +4 -4
  177. package/docs/properties.html +1 -1
  178. package/fesm2022/eui-ecl-components-ecl-accordion.mjs +63 -45
  179. package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
  180. package/fesm2022/eui-ecl-components-ecl-app.mjs +2 -2
  181. package/fesm2022/eui-ecl-components-ecl-app.mjs.map +1 -1
  182. package/fesm2022/eui-ecl-components-ecl-banner.mjs +22 -6
  183. package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
  184. package/fesm2022/eui-ecl-components-ecl-checkbox.mjs +2 -2
  185. package/fesm2022/eui-ecl-components-ecl-checkbox.mjs.map +1 -1
  186. package/fesm2022/eui-ecl-components-ecl-divider.mjs +57 -0
  187. package/fesm2022/eui-ecl-components-ecl-divider.mjs.map +1 -0
  188. package/fesm2022/eui-ecl-components-ecl-featured.mjs +21 -83
  189. package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
  190. package/fesm2022/eui-ecl-components-ecl-feedback-message.mjs +1 -0
  191. package/fesm2022/eui-ecl-components-ecl-feedback-message.mjs.map +1 -1
  192. package/fesm2022/eui-ecl-components-ecl-form-label.mjs +2 -2
  193. package/fesm2022/eui-ecl-components-ecl-form-label.mjs.map +1 -1
  194. package/fesm2022/eui-ecl-components-ecl-gallery.mjs +4 -4
  195. package/fesm2022/eui-ecl-components-ecl-gallery.mjs.map +1 -1
  196. package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs +45 -18
  197. package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
  198. package/fesm2022/eui-ecl-components-ecl-menu.mjs +57 -22
  199. package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
  200. package/fesm2022/eui-ecl-components-ecl-notification.mjs +2 -2
  201. package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
  202. package/fesm2022/eui-ecl-components-ecl-popover.mjs +169 -98
  203. package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
  204. package/fesm2022/eui-ecl-components-ecl-search-form.mjs +2 -2
  205. package/fesm2022/eui-ecl-components-ecl-search-form.mjs.map +1 -1
  206. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +251 -161
  207. package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
  208. package/fesm2022/eui-ecl-components-ecl-site-header.mjs +43 -43
  209. package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
  210. package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs +7 -3
  211. package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs.map +1 -1
  212. package/fesm2022/eui-ecl-core.mjs +153 -139
  213. package/fesm2022/eui-ecl-core.mjs.map +1 -1
  214. package/fesm2022/eui-ecl.mjs +46 -49
  215. package/fesm2022/eui-ecl.mjs.map +1 -1
  216. package/index.d.ts +44 -45
  217. package/index.d.ts.map +1 -1
  218. package/package.json +43 -47
  219. package/components/ecl-separator/index.d.ts +0 -31
  220. package/components/ecl-separator/index.d.ts.map +0 -1
  221. package/components/ecl-separator/package.json +0 -3
  222. package/components/ecl-social-media-share/index.d.ts +0 -54
  223. package/components/ecl-social-media-share/index.d.ts.map +0 -1
  224. package/components/ecl-social-media-share/package.json +0 -3
  225. package/docs/components/EclFeaturedItemFooterComponent.html +0 -560
  226. package/docs/components/EclSiteFooterFixedContentECComponent.html +0 -591
  227. package/docs/components/EclSocialMediaShareItemComponent.html +0 -829
  228. package/docs/directives/EclFeaturedItemFooterPictureDirective.html +0 -502
  229. package/docs/directives/EclSocialMediaShareLinkDirective.html +0 -553
  230. package/docs/modules/EclSocialMediaShareModule.html +0 -321
  231. package/fesm2022/eui-ecl-components-ecl-separator.mjs +0 -57
  232. package/fesm2022/eui-ecl-components-ecl-separator.mjs.map +0 -1
  233. package/fesm2022/eui-ecl-components-ecl-social-media-share.mjs +0 -136
  234. package/fesm2022/eui-ecl-components-ecl-social-media-share.mjs.map +0 -1
@@ -8,6 +8,7 @@ import * as i2 from '@eui/ecl/components/ecl-link';
8
8
  import { EUI_ECL_LINK } from '@eui/ecl/components/ecl-link';
9
9
  import { RouterLink, RouterLinkWithHref } from '@angular/router';
10
10
 
11
+ // TODO: social-media-share is removed and color variants for social-media-follow are removed - breaking changes for v21
11
12
  class EclSocialMediaFollowComponent extends ECLBaseDirective {
12
13
  constructor() {
13
14
  super(...arguments);
@@ -63,12 +64,15 @@ class EclSocialMediaFollowItemComponent extends ECLBaseDirective {
63
64
  }
64
65
  }
65
66
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSocialMediaFollowItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
66
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0-next.5", type: EclSocialMediaFollowItemComponent, isStandalone: true, selector: "ecl-social-media-follow-item", inputs: { icon: "icon", iconSet: "iconSet", href: "href", routerLink: "routerLink", target: "target", size: "size" }, outputs: { itemClick: "itemClick" }, host: { properties: { "attr.role": "this.role", "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "directive", type: i2.EclLinkDirective, selector: "[eclLink]", inputs: ["isInverted", "isIconOnly", "isNoVisited", "variant"] }, { kind: "directive", type: i2.EclLinkLabelDirective, selector: "[eclLinkLabel]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
67
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0-next.5", type: EclSocialMediaFollowItemComponent, isStandalone: true, selector: "ecl-social-media-follow-item", inputs: { isInverted: ["isInverted", "isInverted", booleanAttribute], icon: "icon", iconSet: "iconSet", href: "href", routerLink: "routerLink", target: "target", size: "size" }, outputs: { itemClick: "itemClick" }, host: { properties: { "attr.role": "this.role", "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>", dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "directive", type: i2.EclLinkDirective, selector: "[eclLink]", inputs: ["isInverted", "isIconOnly", "isNoVisited", "variant"] }, { kind: "directive", type: i2.EclLinkLabelDirective, selector: "[eclLinkLabel]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] }); }
67
68
  }
68
69
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSocialMediaFollowItemComponent, decorators: [{
69
70
  type: Component,
70
- args: [{ selector: 'ecl-social-media-follow-item', imports: [...EUI_ECL_ICON, ...EUI_ECL_LINK, NgTemplateOutlet, RouterLink, RouterLinkWithHref], template: "@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>" }]
71
- }], propDecorators: { role: [{
71
+ args: [{ selector: 'ecl-social-media-follow-item', imports: [...EUI_ECL_ICON, ...EUI_ECL_LINK, NgTemplateOutlet, RouterLink, RouterLinkWithHref], template: "@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>" }]
72
+ }], propDecorators: { isInverted: [{
73
+ type: Input,
74
+ args: [{ transform: booleanAttribute }]
75
+ }], role: [{
72
76
  type: HostBinding,
73
77
  args: ['attr.role']
74
78
  }], icon: [{
@@ -1 +1 @@
1
- {"version":3,"file":"eui-ecl-components-ecl-social-media-follow.mjs","sources":["../../components/ecl-social-media-follow/ecl-social-media-follow.component.ts","../../components/ecl-social-media-follow/ecl-social-media-follow.component.html","../../components/ecl-social-media-follow/ecl-social-media-follow-item.component.ts","../../components/ecl-social-media-follow/ecl-social-media-follow-item.component.html","../../components/ecl-social-media-follow/ecl-social-media-follow-link.directive.ts","../../components/ecl-social-media-follow/ecl-social-media-follow.module.ts","../../components/ecl-social-media-follow/index.ts","../../components/ecl-social-media-follow/eui-ecl-components-ecl-social-media-follow.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n@Component({\n selector: 'ecl-social-media-follow',\n templateUrl: './ecl-social-media-follow.component.html',\n})\nexport class EclSocialMediaFollowComponent extends ECLBaseDirective {\n @Input() description: string;\n @Input({ transform: booleanAttribute }) isVertical = false;\n @Input() horizontalAlignment: 'right' | 'left' | string = 'left';\n\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-social-media-follow'),\n this.isVertical ? 'ecl-social-media-follow--vertical' : '',\n `ecl-social-media-follow--${this.horizontalAlignment}`,\n ]\n .join(' ')\n .trim();\n }\n}\n","@if (description) {\n <p class=\"ecl-social-media-follow__description\">{{ description }}</p>\n}\n<ul class=\"ecl-social-media-follow__list\">\n <ng-content></ng-content>\n</ul>\n","import { Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclBaseEvent } from '@eui/ecl/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EUI_ECL_LINK } from '@eui/ecl/components/ecl-link';\nimport { RouterLink, RouterLinkWithHref } from '@angular/router';\n\nexport class EclSocialMediaFollowItemClickEvent extends EclBaseEvent {}\n\n@Component({\n selector: 'ecl-social-media-follow-item',\n templateUrl: './ecl-social-media-follow-item.component.html',\n imports: [...EUI_ECL_ICON, ...EUI_ECL_LINK, NgTemplateOutlet, RouterLink, RouterLinkWithHref],\n})\nexport class EclSocialMediaFollowItemComponent extends ECLBaseDirective {\n @HostBinding('attr.role') role = 'listitem';\n @Input() icon: string;\n @Input() iconSet = 'social-media';\n @Input() href = '';\n @Input() routerLink = '';\n @Input() target: string;\n @Input() size = 'm';\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-social-media-follow__item')].join(' ').trim();\n }\n\n @Output() itemClick = new EventEmitter<EclSocialMediaFollowItemClickEvent>();\n\n onItemClick(evt): void {\n this.itemClick.next(new EclSocialMediaFollowItemClickEvent());\n if (!this.href && !this.routerLink) {\n evt.preventDefault();\n }\n }\n}\n","@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Directive, HostBinding, ContentChild, AfterContentInit } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n@Directive({\n selector: '[eclSocialMediaFollowLink]',\n})\nexport class EclSocialMediaFollowLinkDirective extends ECLBaseDirective implements AfterContentInit {\n @ContentChild(EclIconComponent) eclIcon: EclIconComponent;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-social-media-follow__link')].join(' ').trim();\n }\n\n ngAfterContentInit(): void {\n if (this.eclIcon) {\n setTimeout(() => (this.eclIcon.baseDirective.class = [this.eclIcon.baseDirective.class, 'ecl-social-media-follow__icon'].join(' ')));\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { EclSocialMediaFollowComponent } from './ecl-social-media-follow.component';\nimport { EclSocialMediaFollowItemComponent } from './ecl-social-media-follow-item.component';\nimport { EclSocialMediaFollowLinkDirective } from './ecl-social-media-follow-link.directive';\n\nconst COMPONENTS = [EclSocialMediaFollowComponent, EclSocialMediaFollowItemComponent, EclSocialMediaFollowLinkDirective];\n/**\n * Module that provides the EclSocialMediaFollow component and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_SOCIAL_MEDIA_FOLLOW} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclSocialMediaFollowModule {}\n","import { EclSocialMediaFollowComponent } from './ecl-social-media-follow.component';\nimport { EclSocialMediaFollowItemComponent } from './ecl-social-media-follow-item.component';\nimport { EclSocialMediaFollowLinkDirective } from './ecl-social-media-follow-link.directive';\n\nexport * from './ecl-social-media-follow.module';\nexport * from './ecl-social-media-follow.component';\nexport * from './ecl-social-media-follow-item.component';\nexport * from './ecl-social-media-follow-link.directive';\n\nexport const EUI_ECL_SOCIAL_MEDIA_FOLLOW = [\n EclSocialMediaFollowComponent,\n EclSocialMediaFollowItemComponent,\n EclSocialMediaFollowLinkDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAOM,MAAO,6BAA8B,SAAQ,gBAAgB,CAAA;AAJnE,IAAA,WAAA,GAAA;;QAM4C,IAAA,CAAA,UAAU,GAAG,KAAK;QACjD,IAAA,CAAA,mBAAmB,GAA8B,MAAM;AAYnE,IAAA;AAVG,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC;YAC9C,IAAI,CAAC,UAAU,GAAG,mCAAmC,GAAG,EAAE;YAC1D,CAAA,yBAAA,EAA4B,IAAI,CAAC,mBAAmB,CAAA,CAAE;AACzD;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;IACf;qHAdS,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;yGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAElB,gBAAgB,CAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EA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AQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,iBAAA;;;ACLM,MAAM,2BAA2B,GAAG;IACvC,6BAA6B;IAC7B,iCAAiC;IACjC,iCAAiC;;;ACZrC;;AAEG;;;;"}
1
+ {"version":3,"file":"eui-ecl-components-ecl-social-media-follow.mjs","sources":["../../components/ecl-social-media-follow/ecl-social-media-follow.component.ts","../../components/ecl-social-media-follow/ecl-social-media-follow.component.html","../../components/ecl-social-media-follow/ecl-social-media-follow-item.component.ts","../../components/ecl-social-media-follow/ecl-social-media-follow-item.component.html","../../components/ecl-social-media-follow/ecl-social-media-follow-link.directive.ts","../../components/ecl-social-media-follow/ecl-social-media-follow.module.ts","../../components/ecl-social-media-follow/index.ts","../../components/ecl-social-media-follow/eui-ecl-components-ecl-social-media-follow.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n// TODO: social-media-share is removed and color variants for social-media-follow are removed - breaking changes for v21\n@Component({\n selector: 'ecl-social-media-follow',\n templateUrl: './ecl-social-media-follow.component.html',\n})\nexport class EclSocialMediaFollowComponent extends ECLBaseDirective {\n @Input() description: string;\n @Input({ transform: booleanAttribute }) isVertical = false;\n @Input() horizontalAlignment: 'right' | 'left' | string = 'left';\n\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-social-media-follow'),\n this.isVertical ? 'ecl-social-media-follow--vertical' : '',\n `ecl-social-media-follow--${this.horizontalAlignment}`,\n ]\n .join(' ')\n .trim();\n }\n}\n","@if (description) {\n <p class=\"ecl-social-media-follow__description\">{{ description }}</p>\n}\n<ul class=\"ecl-social-media-follow__list\">\n <ng-content></ng-content>\n</ul>\n","import { booleanAttribute, Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EclBaseEvent } from '@eui/ecl/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EUI_ECL_LINK } from '@eui/ecl/components/ecl-link';\nimport { RouterLink, RouterLinkWithHref } from '@angular/router';\n\nexport class EclSocialMediaFollowItemClickEvent extends EclBaseEvent {}\n\n@Component({\n selector: 'ecl-social-media-follow-item',\n templateUrl: './ecl-social-media-follow-item.component.html',\n imports: [...EUI_ECL_ICON, ...EUI_ECL_LINK, NgTemplateOutlet, RouterLink, RouterLinkWithHref],\n})\nexport class EclSocialMediaFollowItemComponent extends ECLBaseDirective {\n @Input({ transform: booleanAttribute }) isInverted: false;\n @HostBinding('attr.role') role = 'listitem';\n @Input() icon: string;\n @Input() iconSet = 'social-media';\n @Input() href = '';\n @Input() routerLink = '';\n @Input() target: string;\n @Input() size = 'm';\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-social-media-follow__item')].join(' ').trim();\n }\n\n @Output() itemClick = new EventEmitter<EclSocialMediaFollowItemClickEvent>();\n\n onItemClick(evt): void {\n this.itemClick.next(new EclSocialMediaFollowItemClickEvent());\n if (!this.href && !this.routerLink) {\n evt.preventDefault();\n }\n }\n}\n","@if(href) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [href]=\"href\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && routerLink) {\n<a eclLink (click)=\"onItemClick($event)\" variant=\"standalone\" [routerLink]=\"routerLink\" [attr.target]=\"target\"\n class=\"ecl-social-media-follow__link\" [isInverted]=\"isInverted\">\n @if(icon) {\n <ecl-icon [iconSet]=\"iconSet\" icon=\"{{ icon }}\" [size]=\"size\" class=\"ecl-social-media-follow__icon\"> </ecl-icon>\n }\n <span eclLinkLabel>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </span>\n</a>\n}\n\n@if(!href && !routerLink) {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Directive, HostBinding, ContentChild, AfterContentInit } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n@Directive({\n selector: '[eclSocialMediaFollowLink]',\n})\nexport class EclSocialMediaFollowLinkDirective extends ECLBaseDirective implements AfterContentInit {\n @ContentChild(EclIconComponent) eclIcon: EclIconComponent;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-social-media-follow__link')].join(' ').trim();\n }\n\n ngAfterContentInit(): void {\n if (this.eclIcon) {\n setTimeout(() => (this.eclIcon.baseDirective.class = [this.eclIcon.baseDirective.class, 'ecl-social-media-follow__icon'].join(' ')));\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { EclSocialMediaFollowComponent } from './ecl-social-media-follow.component';\nimport { EclSocialMediaFollowItemComponent } from './ecl-social-media-follow-item.component';\nimport { EclSocialMediaFollowLinkDirective } from './ecl-social-media-follow-link.directive';\n\nconst COMPONENTS = [EclSocialMediaFollowComponent, EclSocialMediaFollowItemComponent, EclSocialMediaFollowLinkDirective];\n/**\n * Module that provides the EclSocialMediaFollow component and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_SOCIAL_MEDIA_FOLLOW} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclSocialMediaFollowModule {}\n","import { EclSocialMediaFollowComponent } from './ecl-social-media-follow.component';\nimport { EclSocialMediaFollowItemComponent } from './ecl-social-media-follow-item.component';\nimport { EclSocialMediaFollowLinkDirective } from './ecl-social-media-follow-link.directive';\n\nexport * from './ecl-social-media-follow.module';\nexport * from './ecl-social-media-follow.component';\nexport * from './ecl-social-media-follow-item.component';\nexport * from './ecl-social-media-follow-link.directive';\n\nexport const EUI_ECL_SOCIAL_MEDIA_FOLLOW = [\n EclSocialMediaFollowComponent,\n EclSocialMediaFollowItemComponent,\n EclSocialMediaFollowLinkDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAGA;AAKM,MAAO,6BAA8B,SAAQ,gBAAgB,CAAA;AAJnE,IAAA,WAAA,GAAA;;QAM4C,IAAA,CAAA,UAAU,GAAG,KAAK;QACjD,IAAA,CAAA,mBAAmB,GAA8B,MAAM;AAYnE,IAAA;AAVG,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,yBAAyB,CAAC;YAC9C,IAAI,CAAC,UAAU,GAAG,mCAAmC,GAAG,EAAE;YAC1D,CAAA,yBAAA,EAA4B,IAAI,CAAC,mBAAmB,CAAA,CAAE;AACzD;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;IACf;qHAdS,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;yGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,UAAA,EAAA,CAAA,YAAA,EAAA,YAAA,EAElB,gBAAgB,CAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECVxC,2LAMA,EAAA,CAAA,CAAA;;kGDEa,6BAA6B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AAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,iBAAA;;;ACLM,MAAM,2BAA2B,GAAG;IACvC,6BAA6B;IAC7B,iCAAiC;IACjC,iCAAiC;;;ACZrC;;AAEG;;;;"}
@@ -1,9 +1,9 @@
1
+ import { EuiEuLanguages } from '@eui/base';
1
2
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, numberAttribute, Input, HostBinding, Directive, EventEmitter, ElementRef, HostListener, Output, NgModule } from '@angular/core';
3
+ import { numberAttribute, Input, HostBinding, Directive, EventEmitter, inject, ElementRef, HostListener, Output, NgModule, Injectable } from '@angular/core';
4
+ import { CommonModule, DOCUMENT } from '@angular/common';
3
5
  import { ReplaySubject, Subject, takeUntil, map } from 'rxjs';
4
6
  import { GLOBAL_CONFIG_TOKEN, I18nService } from '@eui/core';
5
- import { DOCUMENT, CommonModule } from '@angular/common';
6
- import { EuiEuLanguages } from '@eui/base';
7
7
 
8
8
  class EclBaseEvent {
9
9
  get defaultPrevented() {
@@ -27,6 +27,155 @@ class EclDomEvent extends EclBaseEvent {
27
27
  }
28
28
  }
29
29
 
30
+ class ECLBaseDirective {
31
+ getCssClasses(rootClass) {
32
+ return [rootClass, this.class].join(' ').trim();
33
+ }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLBaseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
35
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.0-next.5", type: ECLBaseDirective, isStandalone: true, selector: "[eclBase]", inputs: { class: "class", e2eAttr: "e2eAttr", tabindex: ["tabindex", "tabindex", numberAttribute] }, host: { properties: { "attr.data-e2e": "this.e2eAttr", "attr.tabindex": "this.tabindex" } }, ngImport: i0 }); }
36
+ }
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLBaseDirective, decorators: [{
38
+ type: Directive,
39
+ args: [{
40
+ standalone: true,
41
+ selector: '[eclBase]',
42
+ }]
43
+ }], propDecorators: { class: [{
44
+ type: Input
45
+ }], e2eAttr: [{
46
+ type: HostBinding,
47
+ args: ['attr.data-e2e']
48
+ }, {
49
+ type: Input
50
+ }], tabindex: [{
51
+ type: Input,
52
+ args: [{ transform: numberAttribute }]
53
+ }, {
54
+ type: HostBinding,
55
+ args: ['attr.tabindex']
56
+ }] } });
57
+
58
+ class ECLClickOutsideDirective extends ECLBaseDirective {
59
+ constructor() {
60
+ super(...arguments);
61
+ this.eclClickOutside = new EventEmitter();
62
+ this.elementRef = inject(ElementRef);
63
+ }
64
+ onClick(target) {
65
+ const clickedInside = this.elementRef.nativeElement.contains(target);
66
+ if (!clickedInside) {
67
+ this.eclClickOutside.emit();
68
+ }
69
+ }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLClickOutsideDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
71
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.0-next.5", type: ECLClickOutsideDirective, isStandalone: true, selector: "[eclClickOutside]", outputs: { eclClickOutside: "eclClickOutside" }, host: { listeners: { "document:click": "onClick($event.target)" } }, usesInheritance: true, ngImport: i0 }); }
72
+ }
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLClickOutsideDirective, decorators: [{
74
+ type: Directive,
75
+ args: [{
76
+ selector: '[eclClickOutside]',
77
+ standalone: true,
78
+ }]
79
+ }], propDecorators: { eclClickOutside: [{
80
+ type: Output
81
+ }], onClick: [{
82
+ type: HostListener,
83
+ args: ['document:click', ['$event.target']]
84
+ }] } });
85
+
86
+ class EclHiddenDirective extends ECLBaseDirective {
87
+ constructor() {
88
+ super(...arguments);
89
+ this.isHidden = true;
90
+ }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
92
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.0-next.5", type: EclHiddenDirective, isStandalone: false, selector: "[eclHidden]", inputs: { isHidden: ["eclHidden", "isHidden"] }, host: { properties: { "class.ecl-u-d-none": "this.isHidden" } }, usesInheritance: true, ngImport: i0 }); }
93
+ }
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenDirective, decorators: [{
95
+ type: Directive,
96
+ args: [{
97
+ selector: '[eclHidden]',
98
+ standalone: false,
99
+ }]
100
+ }], propDecorators: { isHidden: [{
101
+ type: Input,
102
+ args: ['eclHidden']
103
+ }, {
104
+ type: HostBinding,
105
+ args: ['class.ecl-u-d-none']
106
+ }] } });
107
+
108
+ class EclHiddenModule {
109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
110
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, declarations: [EclHiddenDirective], imports: [CommonModule], exports: [EclHiddenDirective] }); }
111
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, imports: [CommonModule] }); }
112
+ }
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, decorators: [{
114
+ type: NgModule,
115
+ args: [{
116
+ imports: [CommonModule],
117
+ exports: [EclHiddenDirective],
118
+ declarations: [EclHiddenDirective],
119
+ }]
120
+ }] });
121
+
122
+ const hasNextSiblingWithAttribute = (element, attribute) => {
123
+ const nextSibling = element && element.nextElementSibling;
124
+ if (nextSibling) {
125
+ if (nextSibling.hasAttribute(attribute)) {
126
+ return true;
127
+ }
128
+ else {
129
+ return hasNextSiblingWithAttribute(nextSibling, attribute);
130
+ }
131
+ }
132
+ else {
133
+ return false;
134
+ }
135
+ };
136
+ const hasPreviousSiblingWithAttribute = (element, attribute) => {
137
+ const previousSibling = element && element.previousElementSibling;
138
+ if (previousSibling) {
139
+ if (previousSibling.hasAttribute(attribute)) {
140
+ return true;
141
+ }
142
+ else {
143
+ return hasNextSiblingWithAttribute(previousSibling, attribute);
144
+ }
145
+ }
146
+ else {
147
+ return false;
148
+ }
149
+ };
150
+
151
+ var KeyCode;
152
+ (function (KeyCode) {
153
+ KeyCode["ARROW_DOWN"] = "ArrowDown";
154
+ KeyCode["ARROW_LEFT"] = "ArrowLeft";
155
+ KeyCode["ARROW_RIGHT"] = "ArrowRight";
156
+ KeyCode["ARROW_UP"] = "ArrowUp";
157
+ KeyCode["END"] = "End";
158
+ KeyCode["ENTER"] = "Enter";
159
+ KeyCode["ESCAPE"] = "Escape";
160
+ KeyCode["HOME"] = "Home";
161
+ KeyCode["SPACE"] = " ";
162
+ KeyCode["TAB"] = "Tab";
163
+ })(KeyCode || (KeyCode = {}));
164
+ const DEFAULT_LOGO_COUNTRY_CODE = 'en';
165
+ const AVAILABLE_NON_EU_LOGO_COUNTRY_CODES = ['ar', 'ca', 'is', 'jp', 'lb', 'no', 'ru', 'sw', 'tr', 'uk', 'zh'];
166
+
167
+ /**
168
+ * @param languageCode language code, ex. 'lu'
169
+ */
170
+ function logoLanguageCode(languageCode) {
171
+ if (AVAILABLE_NON_EU_LOGO_COUNTRY_CODES.includes(languageCode) || EuiEuLanguages.isEuLanguage(languageCode)) {
172
+ return languageCode;
173
+ }
174
+ else {
175
+ return DEFAULT_LOGO_COUNTRY_CODE;
176
+ }
177
+ }
178
+
30
179
  /**
31
180
  * @deprecated This service is deprecated, use EuiEULanguages instead. To be removed in v20.
32
181
  */
@@ -439,144 +588,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5",
439
588
  args: [{ providedIn: 'root' }]
440
589
  }] });
441
590
 
442
- class ECLBaseDirective {
443
- getCssClasses(rootClass) {
444
- return [rootClass, this.class].join(' ').trim();
445
- }
446
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLBaseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
447
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.0-next.5", type: ECLBaseDirective, isStandalone: true, selector: "[eclBase]", inputs: { class: "class", e2eAttr: "e2eAttr", tabindex: ["tabindex", "tabindex", numberAttribute] }, host: { properties: { "attr.data-e2e": "this.e2eAttr", "attr.tabindex": "this.tabindex" } }, ngImport: i0 }); }
448
- }
449
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLBaseDirective, decorators: [{
450
- type: Directive,
451
- args: [{
452
- standalone: true,
453
- selector: '[eclBase]',
454
- }]
455
- }], propDecorators: { class: [{
456
- type: Input
457
- }], e2eAttr: [{
458
- type: HostBinding,
459
- args: ['attr.data-e2e']
460
- }, {
461
- type: Input
462
- }], tabindex: [{
463
- type: Input,
464
- args: [{ transform: numberAttribute }]
465
- }, {
466
- type: HostBinding,
467
- args: ['attr.tabindex']
468
- }] } });
469
-
470
- class ECLClickOutsideDirective extends ECLBaseDirective {
471
- constructor() {
472
- super(...arguments);
473
- this.eclClickOutside = new EventEmitter();
474
- this.elementRef = inject(ElementRef);
475
- }
476
- onClick(target) {
477
- const clickedInside = this.elementRef.nativeElement.contains(target);
478
- if (!clickedInside) {
479
- this.eclClickOutside.emit();
480
- }
481
- }
482
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLClickOutsideDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
483
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.0-next.5", type: ECLClickOutsideDirective, isStandalone: true, selector: "[eclClickOutside]", outputs: { eclClickOutside: "eclClickOutside" }, host: { listeners: { "document:click": "onClick($event.target)" } }, usesInheritance: true, ngImport: i0 }); }
484
- }
485
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: ECLClickOutsideDirective, decorators: [{
486
- type: Directive,
487
- args: [{
488
- selector: '[eclClickOutside]',
489
- standalone: true,
490
- }]
491
- }], propDecorators: { eclClickOutside: [{
492
- type: Output
493
- }], onClick: [{
494
- type: HostListener,
495
- args: ['document:click', ['$event.target']]
496
- }] } });
497
-
498
- class EclHiddenDirective extends ECLBaseDirective {
499
- constructor() {
500
- super(...arguments);
501
- this.isHidden = true;
502
- }
503
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
504
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.0-next.5", type: EclHiddenDirective, isStandalone: false, selector: "[eclHidden]", inputs: { isHidden: ["eclHidden", "isHidden"] }, host: { properties: { "class.ecl-u-d-none": "this.isHidden" } }, usesInheritance: true, ngImport: i0 }); }
505
- }
506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenDirective, decorators: [{
507
- type: Directive,
508
- args: [{
509
- selector: '[eclHidden]',
510
- standalone: false,
511
- }]
512
- }], propDecorators: { isHidden: [{
513
- type: Input,
514
- args: ['eclHidden']
515
- }, {
516
- type: HostBinding,
517
- args: ['class.ecl-u-d-none']
518
- }] } });
519
-
520
- class EclHiddenModule {
521
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
522
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, declarations: [EclHiddenDirective], imports: [CommonModule], exports: [EclHiddenDirective] }); }
523
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, imports: [CommonModule] }); }
524
- }
525
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclHiddenModule, decorators: [{
526
- type: NgModule,
527
- args: [{
528
- imports: [CommonModule],
529
- exports: [EclHiddenDirective],
530
- declarations: [EclHiddenDirective],
531
- }]
532
- }] });
533
-
534
- const hasNextSiblingWithAttribute = (element, attribute) => {
535
- const nextSibling = element && element.nextElementSibling;
536
- if (nextSibling) {
537
- if (nextSibling.hasAttribute(attribute)) {
538
- return true;
539
- }
540
- else {
541
- return hasNextSiblingWithAttribute(nextSibling, attribute);
542
- }
543
- }
544
- else {
545
- return false;
546
- }
547
- };
548
- const hasPreviousSiblingWithAttribute = (element, attribute) => {
549
- const previousSibling = element && element.previousElementSibling;
550
- if (previousSibling) {
551
- if (previousSibling.hasAttribute(attribute)) {
552
- return true;
553
- }
554
- else {
555
- return hasNextSiblingWithAttribute(previousSibling, attribute);
556
- }
557
- }
558
- else {
559
- return false;
560
- }
561
- };
562
-
563
- var KeyCode;
564
- (function (KeyCode) {
565
- KeyCode["ARROW_DOWN"] = "ArrowDown";
566
- KeyCode["ARROW_LEFT"] = "ArrowLeft";
567
- KeyCode["ARROW_RIGHT"] = "ArrowRight";
568
- KeyCode["ARROW_UP"] = "ArrowUp";
569
- KeyCode["END"] = "End";
570
- KeyCode["ENTER"] = "Enter";
571
- KeyCode["ESCAPE"] = "Escape";
572
- KeyCode["HOME"] = "Home";
573
- KeyCode["SPACE"] = " ";
574
- KeyCode["TAB"] = "Tab";
575
- })(KeyCode || (KeyCode = {}));
576
-
577
591
  /**
578
592
  * Generated bundle index. Do not edit.
579
593
  */
580
594
 
581
- export { ECLBaseDirective, ECLClickOutsideDirective, ECLTheme, EclBaseEvent, EclDefaultLanguageService, EclDomEvent, EclHiddenDirective, EclHiddenModule, EclLanguageService, EclRtlService, EclThemeService, EclUserDeviceService, KeyCode, hasNextSiblingWithAttribute, hasPreviousSiblingWithAttribute };
595
+ export { AVAILABLE_NON_EU_LOGO_COUNTRY_CODES, DEFAULT_LOGO_COUNTRY_CODE, ECLBaseDirective, ECLClickOutsideDirective, ECLTheme, EclBaseEvent, EclDefaultLanguageService, EclDomEvent, EclHiddenDirective, EclHiddenModule, EclLanguageService, EclRtlService, EclThemeService, EclUserDeviceService, KeyCode, hasNextSiblingWithAttribute, hasPreviousSiblingWithAttribute, logoLanguageCode };
582
596
  //# sourceMappingURL=eui-ecl-core.mjs.map