@eui/ecl 21.4.0 → 21.4.1-snapshot-1784883186377
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.
- package/assets/i18n-ecl/bg.json +11 -3
- package/assets/i18n-ecl/cs.json +11 -3
- package/assets/i18n-ecl/da.json +11 -3
- package/assets/i18n-ecl/de.json +11 -3
- package/assets/i18n-ecl/el.json +11 -3
- package/assets/i18n-ecl/en.json +11 -3
- package/assets/i18n-ecl/es.json +11 -3
- package/assets/i18n-ecl/et.json +75 -67
- package/assets/i18n-ecl/fi.json +57 -49
- package/assets/i18n-ecl/fr.json +11 -3
- package/assets/i18n-ecl/ga.json +11 -3
- package/assets/i18n-ecl/hr.json +69 -61
- package/assets/i18n-ecl/hu.json +11 -3
- package/assets/i18n-ecl/it.json +11 -3
- package/assets/i18n-ecl/lt.json +105 -97
- package/assets/i18n-ecl/lv.json +11 -3
- package/assets/i18n-ecl/mt.json +11 -3
- package/assets/i18n-ecl/nl.json +11 -3
- package/assets/i18n-ecl/pl.json +113 -105
- package/assets/i18n-ecl/pt.json +11 -3
- package/assets/i18n-ecl/ro.json +11 -3
- package/assets/i18n-ecl/sk.json +11 -3
- package/assets/i18n-ecl/sl.json +58 -50
- package/assets/i18n-ecl/sv.json +102 -94
- package/components/ecl-highlight-box/package.json +4 -0
- package/components/ecl-layout-wrapper/package.json +4 -0
- package/components/ecl-slogan-ticker/package.json +4 -0
- package/docs/changelog.html +47 -0
- package/docs/components/EclAccordionSummaryComponent.html +70 -4
- package/docs/components/EclAddToCalendarComponent.html +2 -117
- package/docs/components/EclAnimatedNumbersComponent.html +21 -3
- package/docs/components/EclAnimatedNumbersItemComponent.html +56 -6
- package/docs/components/EclAppComponent.html +2 -2
- package/docs/components/EclBannerComponent.html +2 -2
- package/docs/components/EclBlockquoteComponent.html +2 -2
- package/docs/components/EclBreadcrumbComponent.html +2 -2
- package/docs/components/EclBreadcrumbSegmentComponent.html +2 -2
- package/docs/components/EclButtonComponent.html +3 -3
- package/docs/components/EclCardBodyComponent.html +2 -2
- package/docs/components/EclCardComponent.html +27 -182
- package/docs/components/EclCarouselComponent.html +2 -2
- package/docs/components/EclCarouselItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterComponent.html +2 -2
- package/docs/components/EclCategoryFilterItemComponent.html +2 -2
- package/docs/components/EclCategoryFilterListComponent.html +2 -2
- package/docs/components/EclCheckboxHelpComponent.html +2 -2
- package/docs/components/EclCheckboxLabelComponent.html +2 -2
- package/docs/components/EclContentBlockComponent.html +2 -2
- package/docs/components/EclContentItemComponent.html +2 -2
- package/docs/components/EclDateBlockComponent.html +2 -2
- package/docs/components/EclDescriptionListDefinitionComponent.html +2 -2
- package/docs/components/EclExpandableComponent.html +2 -2
- package/docs/components/EclFactFiguresComponent.html +96 -94
- package/docs/components/EclFactFiguresItemComponent.html +6 -45
- package/docs/components/EclFactFiguresViewAllComponent.html +6 -45
- package/docs/components/EclFeaturedComponent.html +2 -2
- package/docs/components/EclFeaturedItemComponent.html +2 -2
- package/docs/components/EclFeaturedItemDescriptionComponent.html +2 -2
- package/docs/components/EclFileComponent.html +2 -2
- package/docs/components/EclFileItemComponent.html +2 -2
- package/docs/components/EclFileItemsComponent.html +2 -2
- package/docs/components/EclFileTaxonomyComponent.html +2 -2
- package/docs/components/EclFormGroupComponent.html +2 -2
- package/docs/components/EclFormLabelComponent.html +2 -2
- package/docs/components/EclGalleryComponent.html +2 -2
- package/docs/components/EclGalleryFooterComponent.html +2 -2
- package/docs/components/EclGalleryItemComponent.html +2 -2
- package/docs/components/EclHighlightBoxComponent.html +473 -0
- package/docs/components/EclIconComponent.html +2 -2
- package/docs/components/EclIndicatorComponent-1.html +2 -2
- package/docs/components/EclIndicatorComponent.html +2 -2
- package/docs/components/EclInpageNavigationComponent.html +2 -2
- package/docs/components/EclInpageNavigationItemComponent.html +2 -2
- package/docs/components/EclLayoutWrapperComponent.html +775 -0
- package/docs/components/EclListIllustrationComponent.html +2 -2
- package/docs/components/EclListIllustrationItemComponent.html +2 -2
- package/docs/components/EclLoadingIndicatorComponent.html +2 -2
- package/docs/components/EclMediaContainerComponent.html +2 -2
- package/docs/components/EclMegaMenuComponent.html +2 -2
- package/docs/components/EclMegaMenuFeaturedComponent.html +2 -2
- package/docs/components/EclMegaMenuInfoComponent.html +2 -2
- package/docs/components/EclMegaMenuItemComponent.html +2 -2
- package/docs/components/EclMegaMenuSubitemComponent.html +2 -2
- package/docs/components/EclMenuComponent.html +9 -457
- package/docs/components/EclMenuItemComponent.html +19 -286
- package/docs/components/EclMenuMegaComponent.html +2 -2
- package/docs/components/EclMenuMegaItemComponent.html +2 -2
- package/docs/components/EclModalBodyComponent.html +2 -2
- package/docs/components/EclModalComponent.html +2 -2
- package/docs/components/EclModalFooterComponent.html +2 -2
- package/docs/components/EclModalHeaderComponent.html +2 -2
- package/docs/components/EclMultiselectComponent.html +2 -2
- package/docs/components/EclMultiselectDropdownComponent.html +3 -3
- package/docs/components/EclMultiselectInputComponent.html +2 -2
- package/docs/components/EclMultiselectOptgroupComponent.html +2 -2
- package/docs/components/EclMultiselectOptionComponent.html +2 -2
- package/docs/components/EclNavigationListComponent.html +2 -2
- package/docs/components/EclNavigationListItemComponent.html +2 -2
- package/docs/components/EclNewsTickerComponent.html +2 -2
- package/docs/components/EclNewsTickerItemComponent.html +2 -2
- package/docs/components/EclNotificationComponent.html +2 -2
- package/docs/components/EclPageHeaderComponent.html +2 -2
- package/docs/components/EclPageHeaderDescriptionContainerComponent.html +2 -2
- package/docs/components/EclPageHeaderExpandableComponent.html +2 -2
- package/docs/components/EclPageHeaderNextComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionComponent.html +2 -2
- package/docs/components/EclPageHeaderSectionInfoComponent.html +2 -2
- package/docs/components/EclPageSummaryComponent.html +101 -4
- package/docs/components/EclPaginationComponent.html +2 -2
- package/docs/components/EclPaginationItemComponent.html +2 -2
- package/docs/components/EclPopoverComponent.html +2 -2
- package/docs/components/EclQuizCardComponent.html +46 -622
- package/docs/components/EclQuizComponent.html +45 -826
- package/docs/components/EclRadioHelpComponent.html +2 -2
- package/docs/components/EclRadioLabelComponent.html +2 -2
- package/docs/components/EclRangeBubbleComponent.html +2 -2
- package/docs/components/EclRangeValueComponent.html +2 -2
- package/docs/components/EclRatingFieldComponent.html +2 -2
- package/docs/components/EclSearchFormComponent.html +2 -2
- package/docs/components/EclSelectContainerComponent.html +2 -2
- package/docs/components/EclSiteFooterComponent.html +7 -128
- package/docs/components/EclSiteFooterCoownerComponent.html +2 -2
- package/docs/components/EclSiteFooterCoreComponent.html +2 -2
- package/docs/components/EclSiteFooterFeedbackComponent.html +514 -0
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +2 -2
- package/docs/components/EclSiteFooterRowCommonComponent.html +2 -2
- package/docs/components/EclSiteHeaderActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderBannerTopComponent.html +18 -3
- package/docs/components/EclSiteHeaderComponent.html +2 -2
- package/docs/components/EclSiteHeaderCustomActionComponent.html +2 -2
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguageComponent.html +2 -2
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +2 -2
- package/docs/components/EclSiteHeaderLoginComponent.html +2 -2
- package/docs/components/EclSiteHeaderNotificationComponent.html +2 -2
- package/docs/components/EclSiteHeaderSearchComponent.html +2 -2
- package/docs/components/EclSloganTickerComponent.html +539 -0
- package/docs/components/EclSocialMediaFollowComponent.html +2 -2
- package/docs/components/EclSocialMediaFollowItemComponent.html +2 -2
- package/docs/components/EclSplashPageComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageContainerComponent.html +2 -2
- package/docs/components/EclSplashPageLanguageLinkComponent.html +2 -2
- package/docs/components/EclSpotlightComponent.html +2 -2
- package/docs/components/EclSpotlightLinkComponent.html +2 -2
- package/docs/components/EclStickyContainerComponent.html +2 -2
- package/docs/components/EclTabComponent.html +2 -2
- package/docs/components/EclTabLabelComponent.html +2 -2
- package/docs/components/EclTableSortButtonComponent.html +2 -2
- package/docs/components/EclTabsComponent.html +2 -2
- package/docs/components/EclTagComponent.html +2 -2
- package/docs/components/EclTextMediaComponent.html +2 -2
- package/docs/components/EclTimelineComponent.html +2 -2
- package/docs/components/EclTimelineItemComponent.html +2 -2
- package/docs/components/EclTimelineItemTogglerComponent.html +2 -2
- package/docs/directives/EclAccordionDirective.html +18 -31
- package/docs/directives/EclAccordionToggleIconDirective.html +261 -0
- package/docs/directives/EclAnimatedNumbersItemsDirective.html +1 -1
- package/docs/directives/EclAnimatedNumbersSourceDirective.html +65 -2
- package/docs/directives/EclAnimatedNumbersSourcesItemDirective.html +1 -1
- package/docs/directives/EclAnimatedNumbersSourcesListDirective.html +1 -1
- package/docs/directives/EclBannerImageDirective.html +39 -59
- package/docs/directives/EclBlockquoteImageDirective.html +0 -4
- package/docs/directives/EclFactFiguresDescriptionDirective.html +0 -43
- package/docs/directives/EclFactFiguresSourceDirective.html +261 -0
- package/docs/directives/EclFactFiguresSourcesItemDirective.html +263 -0
- package/docs/directives/EclFactFiguresSourcesListDirective.html +263 -0
- package/docs/directives/EclHighlightBoxDescriptionDirective.html +261 -0
- package/docs/directives/EclHighlightBoxIconDirective.html +261 -0
- package/docs/directives/EclHighlightBoxLinkDirective.html +261 -0
- package/docs/directives/EclHighlightBoxTitleDirective.html +261 -0
- package/docs/directives/EclLayoutItemDirective.html +400 -0
- package/docs/directives/EclLayoutWrapperDescriptionDirective.html +261 -0
- package/docs/directives/EclLayoutWrapperTitleDirective.html +261 -0
- package/docs/directives/EclLayoutWrapperViewAllDirective.html +261 -0
- package/docs/directives/EclLinkDirective.html +1 -1
- package/docs/directives/EclSiteFooterActionButtonDirective.html +260 -0
- package/docs/directives/EclSiteFooterCoownerListDirective.html +156 -0
- package/docs/directives/EclSiteFooterLinkDirective.html +7 -275
- package/docs/directives/EclSiteFooterLogoImageDirective.html +7 -275
- package/docs/directives/EclSiteFooterLogoLinkDirective.html +7 -275
- package/docs/directives/EclSiteFooterPictureDirective.html +7 -275
- package/docs/directives/EclSloganTickerListDirective.html +267 -0
- package/docs/directives/EclSloganTickerSlideDirective.html +329 -0
- package/docs/js/menu-wc.js +60 -3
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EclAccordionDirective.md +3 -0
- package/docs/json/EclAccordionSummaryComponent.md +2 -1
- package/docs/json/EclAccordionToggleIconDirective.md +14 -0
- package/docs/json/EclAnimatedNumbersComponent.md +1 -0
- package/docs/json/EclAnimatedNumbersItemComponent.md +5 -3
- package/docs/json/EclAnimatedNumbersItemsDirective.md +1 -1
- package/docs/json/EclAnimatedNumbersSourceDirective.md +2 -1
- package/docs/json/EclAnimatedNumbersSourcesItemDirective.md +1 -1
- package/docs/json/EclAnimatedNumbersSourcesListDirective.md +1 -1
- package/docs/json/EclBannerImageDirective.md +7 -0
- package/docs/json/EclButtonComponent.md +1 -1
- package/docs/json/EclCardComponent.md +2 -1
- package/docs/json/EclFactFiguresComponent.md +1 -0
- package/docs/json/EclFactFiguresSourceDirective.md +14 -0
- package/docs/json/EclFactFiguresSourcesItemDirective.md +16 -0
- package/docs/json/EclFactFiguresSourcesListDirective.md +16 -0
- package/docs/json/EclHighlightBoxComponent.md +17 -0
- package/docs/json/EclHighlightBoxDescriptionDirective.md +11 -0
- package/docs/json/EclHighlightBoxIconDirective.md +11 -0
- package/docs/json/EclHighlightBoxLinkDirective.md +11 -0
- package/docs/json/EclHighlightBoxTitleDirective.md +11 -0
- package/docs/json/EclLayoutItemDirective.md +16 -0
- package/docs/json/EclLayoutWrapperComponent.md +34 -0
- package/docs/json/EclLayoutWrapperDescriptionDirective.md +14 -0
- package/docs/json/EclLayoutWrapperTitleDirective.md +14 -0
- package/docs/json/EclLayoutWrapperViewAllDirective.md +14 -0
- package/docs/json/EclLinkDirective.md +1 -1
- package/docs/json/EclPageSummaryComponent.md +14 -1
- package/docs/json/EclQuizCardComponent.md +1 -1
- package/docs/json/EclQuizComponent.md +2 -0
- package/docs/json/EclSiteFooterActionButtonDirective.md +10 -0
- package/docs/json/EclSiteFooterCoownerListDirective.md +5 -0
- package/docs/json/EclSiteFooterFeedbackComponent.md +27 -0
- package/docs/json/EclSiteFooterLinkDirective.md +0 -5
- package/docs/json/EclSiteFooterLogoImageDirective.md +0 -5
- package/docs/json/EclSiteFooterLogoLinkDirective.md +0 -5
- package/docs/json/EclSiteFooterPictureDirective.md +0 -5
- package/docs/json/EclSiteHeaderBannerTopComponent.md +2 -1
- package/docs/json/EclSloganTickerComponent.md +24 -0
- package/docs/json/EclSloganTickerListDirective.md +21 -0
- package/docs/json/EclSloganTickerSlideDirective.md +19 -0
- package/docs/json/documentation.json +3077 -2566
- package/docs/miscellaneous/variables.html +118 -1
- package/docs/overview.html +2 -2
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs +59 -25
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs +5 -11
- package/fesm2022/eui-ecl-components-ecl-add-to-calendar.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs +35 -21
- package/fesm2022/eui-ecl-components-ecl-animated-numbers.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-banner.mjs +22 -7
- package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-blockquote.mjs +0 -1
- package/fesm2022/eui-ecl-components-ecl-blockquote.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-button.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-card.mjs +18 -23
- package/fesm2022/eui-ecl-components-ecl-card.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs +104 -31
- package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-highlight-box.mjs +103 -0
- package/fesm2022/eui-ecl-components-ecl-highlight-box.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-icon.mjs +3 -0
- package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-layout-wrapper.mjs +182 -0
- package/fesm2022/eui-ecl-components-ecl-layout-wrapper.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs +20 -0
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +40 -74
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs +2 -2
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-navigation-list.mjs +1 -1
- package/fesm2022/eui-ecl-components-ecl-navigation-list.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-summary.mjs +30 -6
- package/fesm2022/eui-ecl-components-ecl-page-summary.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs +257 -145
- package/fesm2022/eui-ecl-components-ecl-quiz.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +103 -78
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs +11 -3
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs +320 -0
- package/fesm2022/eui-ecl-components-ecl-slogan-ticker.mjs.map +1 -0
- package/fesm2022/eui-ecl-components-ecl-text-media.mjs +6 -6
- package/fesm2022/eui-ecl-components-ecl-text-media.mjs.map +1 -1
- package/package.json +14 -2
- package/types/eui-ecl-components-ecl-accordion.d.ts +23 -5
- package/types/eui-ecl-components-ecl-accordion.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-add-to-calendar.d.ts +0 -4
- package/types/eui-ecl-components-ecl-add-to-calendar.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts +16 -8
- package/types/eui-ecl-components-ecl-animated-numbers.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-banner.d.ts +13 -2
- package/types/eui-ecl-components-ecl-banner.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-blockquote.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-button.d.ts +1 -1
- package/types/eui-ecl-components-ecl-card.d.ts +6 -10
- package/types/eui-ecl-components-ecl-card.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-fact-figures.d.ts +60 -10
- package/types/eui-ecl-components-ecl-fact-figures.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-highlight-box.d.ts +50 -0
- package/types/eui-ecl-components-ecl-highlight-box.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-icon.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-layout-wrapper.d.ts +109 -0
- package/types/eui-ecl-components-ecl-layout-wrapper.d.ts.map +1 -0
- package/types/eui-ecl-components-ecl-link.d.ts +1 -1
- package/types/eui-ecl-components-ecl-mega-menu.d.ts +6 -0
- package/types/eui-ecl-components-ecl-mega-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-menu.d.ts +3 -10
- package/types/eui-ecl-components-ecl-menu.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-page-summary.d.ts +20 -1
- package/types/eui-ecl-components-ecl-page-summary.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-quiz.d.ts +153 -119
- package/types/eui-ecl-components-ecl-quiz.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-footer.d.ts +40 -22
- package/types/eui-ecl-components-ecl-site-footer.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-site-header.d.ts +7 -3
- package/types/eui-ecl-components-ecl-site-header.d.ts.map +1 -1
- package/types/eui-ecl-components-ecl-slogan-ticker.d.ts +135 -0
- package/types/eui-ecl-components-ecl-slogan-ticker.d.ts.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-blockquote.mjs","sources":["../../components/ecl-blockquote/ecl-blockquote.component.ts","../../components/ecl-blockquote/ecl-blockquote.component.html","../../components/ecl-blockquote/ecl-blockquote-picture.directive.ts","../../components/ecl-blockquote/index.ts","../../components/ecl-blockquote/eui-ecl-components-ecl-blockquote.ts"],"sourcesContent":["import {\n Component,\n Input,\n HostBinding,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { I18nService } from '@eui/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Blockquote component based on the ECL design system.\n * Displays quoted text with an optional author.\n * Supports language awareness through the I18n service.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[eclBlockquote]',\n templateUrl: './ecl-blockquote.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n})\nexport class EclBlockquoteComponent extends ECLBaseDirective implements OnInit, OnDestroy {\n /**\n * Author name associated with the quoted content.\n * If provided, it will be displayed below the blockquote.\n */\n @Input() author: string;\n /**\n * Current active language code, retrieved from the I18n service.\n */\n languageCode = 'en';\n protected i18nService = inject(I18nService);\n private cd = inject(ChangeDetectorRef);\n\n /**\n * Applies the CSS classes for the blockquote element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-blockquote')].join(' ').trim();\n }\n\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /**\n * Angular lifecycle hook.\n * Subscribes to language change events on component initialization.\n */\n ngOnInit(): void {\n this.handleLanguageChangeState();\n }\n\n /**\n * Angular lifecycle hook.\n * Cleans up subscriptions on component destruction.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Checks if an author is provided.\n */\n get hasAuthor(): boolean {\n return this.author !== null;\n }\n\n /**\n * Handles updates to the language code when the I18n service state changes.\n */\n private handleLanguageChangeState(): void {\n this.i18nService.getState().pipe(takeUntil(this.destroy$)).subscribe((lang) => {\n this.languageCode = lang.activeLang;\n this.cd.detectChanges();\n });\n }\n}\n","<ng-content select=\"picture[eclBlockquotePicture]\"></ng-content>\n<div class=\"ecl-blockquote__body\">\n <blockquote class=\"ecl-blockquote__quote\">\n <p class=\"ecl-blockquote__citation\" [attr.lang]=\"languageCode\">\n <ng-content></ng-content>\n </p>\n @if (hasAuthor) {\n <footer class=\"ecl-blockquote__attribution\">\n <cite class=\"ecl-blockquote__author\">{{ author }}</cite>\n </footer>\n }\n </blockquote>\n</div>\n","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the picture element inside the ECL Blockquote.\n * Automatically applies the `ecl-picture` and `ecl-blockquote__picture` CSS classes.\n */\n@Directive({\n selector: 'picture[eclBlockquotePicture]',\n})\nexport class EclBlockquotePictureDirective extends ECLBaseDirective {\n /**\n * Returns the CSS classes to apply for the blockquote picture element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-picture ecl-blockquote__picture')].join(' ').trim();\n }\n}\n\n/**\n * Directive for the image inside the ECL Blockquote.\n * Automatically applies the `ecl-blockquote__image` CSS class.\n */\n@Directive({\n selector: 'img[eclBlockquoteImage]',\n
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-blockquote.mjs","sources":["../../components/ecl-blockquote/ecl-blockquote.component.ts","../../components/ecl-blockquote/ecl-blockquote.component.html","../../components/ecl-blockquote/ecl-blockquote-picture.directive.ts","../../components/ecl-blockquote/index.ts","../../components/ecl-blockquote/eui-ecl-components-ecl-blockquote.ts"],"sourcesContent":["import {\n Component,\n Input,\n HostBinding,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n OnInit,\n OnDestroy,\n ChangeDetectorRef,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { I18nService } from '@eui/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Blockquote component based on the ECL design system.\n * Displays quoted text with an optional author.\n * Supports language awareness through the I18n service.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[eclBlockquote]',\n templateUrl: './ecl-blockquote.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule],\n})\nexport class EclBlockquoteComponent extends ECLBaseDirective implements OnInit, OnDestroy {\n /**\n * Author name associated with the quoted content.\n * If provided, it will be displayed below the blockquote.\n */\n @Input() author: string;\n /**\n * Current active language code, retrieved from the I18n service.\n */\n languageCode = 'en';\n protected i18nService = inject(I18nService);\n private cd = inject(ChangeDetectorRef);\n\n /**\n * Applies the CSS classes for the blockquote element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-blockquote')].join(' ').trim();\n }\n\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /**\n * Angular lifecycle hook.\n * Subscribes to language change events on component initialization.\n */\n ngOnInit(): void {\n this.handleLanguageChangeState();\n }\n\n /**\n * Angular lifecycle hook.\n * Cleans up subscriptions on component destruction.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Checks if an author is provided.\n */\n get hasAuthor(): boolean {\n return this.author !== null;\n }\n\n /**\n * Handles updates to the language code when the I18n service state changes.\n */\n private handleLanguageChangeState(): void {\n this.i18nService.getState().pipe(takeUntil(this.destroy$)).subscribe((lang) => {\n this.languageCode = lang.activeLang;\n this.cd.detectChanges();\n });\n }\n}\n","<ng-content select=\"picture[eclBlockquotePicture]\"></ng-content>\n<div class=\"ecl-blockquote__body\">\n <blockquote class=\"ecl-blockquote__quote\">\n <p class=\"ecl-blockquote__citation\" [attr.lang]=\"languageCode\">\n <ng-content></ng-content>\n </p>\n @if (hasAuthor) {\n <footer class=\"ecl-blockquote__attribution\">\n <cite class=\"ecl-blockquote__author\">{{ author }}</cite>\n </footer>\n }\n </blockquote>\n</div>\n","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the picture element inside the ECL Blockquote.\n * Automatically applies the `ecl-picture` and `ecl-blockquote__picture` CSS classes.\n */\n@Directive({\n selector: 'picture[eclBlockquotePicture]',\n})\nexport class EclBlockquotePictureDirective extends ECLBaseDirective {\n /**\n * Returns the CSS classes to apply for the blockquote picture element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-picture ecl-blockquote__picture')].join(' ').trim();\n }\n}\n\n/**\n * Directive for the image inside the ECL Blockquote.\n * Automatically applies the `ecl-blockquote__image` CSS class.\n */\n@Directive({\n selector: 'img[eclBlockquoteImage]',\n})\nexport class EclBlockquoteImageDirective extends ECLBaseDirective {\n /**\n * Returns the CSS classes to apply for the blockquote image element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-blockquote__image')].join(' ').trim();\n }\n}\n","import { EclBlockquoteComponent } from './ecl-blockquote.component';\nimport { EclBlockquoteImageDirective } from './ecl-blockquote-picture.directive';\nimport { EclBlockquotePictureDirective } from './ecl-blockquote-picture.directive';\n\nexport * from './ecl-blockquote.component';\nexport * from './ecl-blockquote-picture.directive';\n\nexport const EUI_ECL_BLOCKQUOTE = [\n EclBlockquoteComponent,\n EclBlockquoteImageDirective,\n EclBlockquotePictureDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\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AAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,+BAA+B;AAC5C,iBAAA;;sBAKI,WAAW;uBAAC,OAAO;;AAMxB;;;AAGG;AAIG,MAAO,2BAA4B,SAAQ,gBAAgB,CAAA;AAC7D;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IAC1E;+GAPS,2BAA2B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,yBAAyB;AACtC,iBAAA;;sBAKI,WAAW;uBAAC,OAAO;;;ACxBjB,MAAM,kBAAkB,GAAG;IAChC,sBAAsB;IACtB,2BAA2B;IAC3B,6BAA6B;;;ACV/B;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-button.mjs","sources":["../../components/ecl-button/ecl-indicator/ecl-indicator.component.ts","../../components/ecl-button/ecl-indicator/ecl-indicator.component.html","../../components/ecl-button/ecl-button.component.ts","../../components/ecl-button/ecl-button.component.html","../../components/ecl-button/ecl-button-label.directive.ts","../../components/ecl-button/ecl-indicator/ecl-indicator.directive.ts","../../components/ecl-button/index.ts","../../components/ecl-button/eui-ecl-components-ecl-button.ts"],"sourcesContent":["import { Component, HostBinding } from \"@angular/core\";\n\n/**\n * Component for indicating special content inside the ECL Button.\n * Automatically applies the `ecl-indicator` CSS class.\n */\n@Component({\n selector: '[eclIndicator]',\n templateUrl: './ecl-indicator.component.html',\n})\nexport class EclIndicatorComponent {\n /**\n * Applies the `ecl-indicator` CSS class.\n */\n @HostBinding('class.ecl-indicator') hasClass = true;\n}\n","<span class=\"ecl-indicator__value\"><ng-content></ng-content></span>\n<ng-content select=\"[eclIndicatorLabel]\"></ng-content>","import {\n AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n HostBinding,\n inject,\n PLATFORM_ID,\n input\n} from '@angular/core';\nimport { EclIconComponent, EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIndicatorComponent } from './ecl-indicator/ecl-indicator.component';\n\n/**\n * Button component based on ECL design system.\n * Can render as a `<button>` or `<a>` element depending on usage.\n * Supports multiple visual variants and optional icon/indicator content.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'button[eclButton], button[ecl-button], a[eclButton]',\n templateUrl: './ecl-button.component.html',\n imports: [\n NgTemplateOutlet,\n ...EUI_ECL_ICON,\n ],\n})\nexport class EclButtonComponent extends ECLBaseDirective implements AfterViewInit {\n el = inject(ElementRef);\n\n /**\n * Whether the button should be styled as icon-only.\n * When true, the `ecl-button--icon-only` class is applied.\n */\n isIconOnly = input(false, { transform: booleanAttribute });\n\n /**\n * Visual variant of the button.\n * Can be 'primary', 'secondary', 'tertiary', 'cta', 'ghost', or 'ghost-inverted'.\n * Defaults to 'primary'.\n */\n variant = input<'primary' | 'secondary' | 'tertiary'>('primary');\n\n eclStyle = input<'highlight' | 'inverted' | 'neutral' | 'default'>('default');\n\n size = input<'s' | 'm' | 'l'>('l');\n\n /**\n * Optional additional class to apply to the button container.\n */\n containerStyleClass = input<string>();\n\n /**\n * List of projected icon components inside the button.\n * Used internally to detect presence of icons.\n */\n iconComponents = contentChildren<EclIconComponent>(forwardRef(() => EclIconComponent));\n\n /**\n * Projected indicator element inside the button (e.g., for loading or notification).\n * Used internally to detect its presence.\n */\n indicator = contentChild(forwardRef(() => EclIndicatorComponent));\n\n /**\n * Computes the full set of CSS classes to apply to the button element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-button'), `ecl-button--${this.variant()}`,\n this.isIconOnly() ? 'ecl-button--icon-only' : '',\n this.eclStyle() !== 'default' ? `ecl-button--${this.eclStyle()}` : '',\n this.size() !== 'l' ? `ecl-button--${this.size()}` : '',\n ].join(' ').trim();\n }\n\n private platformId = inject(PLATFORM_ID);\n\n /**\n * Indicates whether the button contains an icon.\n * Used internally for styling logic.\n */\n hasIcon = computed(() => this.iconComponents().length > 0);\n\n /**\n * Indicates whether the button contains an indicator element.\n * Used internally for styling logic.\n */\n hasIndicator = computed(() => !!this.indicator());\n\n /**\n * Lifecycle hook triggered after content is projected.\n * Assigns a button-specific class to projected icon components.\n */\n ngAfterViewInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n if (this.iconComponents()?.length > 0) {\n setTimeout(() => {\n this.iconComponents().forEach((icn) => {\n icn.addExtraClass('ecl-button__icon');\n });\n });\n }\n }\n\n /**\n * Manually focuses the button element.\n */\n onFocus(): void {\n this.el.nativeElement.focus();\n }\n}\n","@if (hasIcon()) {\n<span class=\"ecl-button__container {{ containerStyleClass() }}\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</span>\n}\n@else {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for labeling content inside the ECL Button.\n * Automatically applies the `ecl-button__label` CSS class.\n */\n@Directive({\n selector: '[eclButtonLabel]',\n})\nexport class EclButtonLabelDirective extends ECLBaseDirective {\n /**\n * Returns the CSS classes to apply for the button label.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-button__label')].join(' ').trim();\n }\n}\n\n/**\n * Directive for the icon container inside the ECL Button.\n * Automatically applies the `ecl-button__icon-container` CSS class.\n */\n@Directive({\n selector: '[eclButtonIconContainer]',\n})\nexport class EclButtonIconContainerDirective {\n /**\n * Applies the `ecl-button__icon-container` CSS class.\n */\n @HostBinding('class.ecl-button__icon-container') hasClass = true;\n}\n","import { Directive, HostBinding } from \"@angular/core\";\n\n/**\n * Directive for indicating special content inside the ECL Button.\n * Automatically applies the `ecl-indicator__label` CSS class.\n */\n@Directive({\n selector: '[eclIndicatorLabel]',\n})\nexport class EclIndicatorLabelDirective {\n /**\n * Applies the `ecl-indicator__label` CSS class.\n */\n @HostBinding('class.ecl-indicator__label') hasClass = true;\n}\n","import { EclButtonComponent } from './ecl-button.component';\nimport { EclButtonLabelDirective, EclButtonIconContainerDirective } from './ecl-button-label.directive';\nimport { EclIndicatorLabelDirective } from './ecl-indicator/ecl-indicator.directive';\nimport { EclIndicatorComponent } from './ecl-indicator/ecl-indicator.component';\n\nexport * from './ecl-button.component';\nexport * from './ecl-button-label.directive';\nexport * from './ecl-indicator/ecl-indicator.component';\nexport * from './ecl-indicator/ecl-indicator.directive';\n\nexport const EUI_ECL_BUTTON = [\n EclButtonComponent,\n EclButtonLabelDirective,\n EclIndicatorLabelDirective,\n EclIndicatorComponent,\n EclButtonIconContainerDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;AAGG;MAKU,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;AAKI;;AAEG;QACiC,IAAA,CAAA,Q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AA,QAAQ,EAAE,0BAA0B;AACvC,iBAAA;;sBAKI,WAAW;uBAAC,kCAAkC;;;AC7BnD;;;AAGG;MAIU,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;AAII;;AAEG;QACwC,IAAA,CAAA,QAAQ,GAAG,IAAI;AAC7D,IAAA;+GALY,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,4BAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAClC,iBAAA;;sBAKI,WAAW;uBAAC,4BAA4B;;;ACHtC,MAAM,cAAc,GAAG;IAC5B,kBAAkB;IAClB,uBAAuB;IACvB,0BAA0B;IAC1B,qBAAqB;IACrB,+BAA+B;;;ACfjC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-button.mjs","sources":["../../components/ecl-button/ecl-indicator/ecl-indicator.component.ts","../../components/ecl-button/ecl-indicator/ecl-indicator.component.html","../../components/ecl-button/ecl-button.component.ts","../../components/ecl-button/ecl-button.component.html","../../components/ecl-button/ecl-button-label.directive.ts","../../components/ecl-button/ecl-indicator/ecl-indicator.directive.ts","../../components/ecl-button/index.ts","../../components/ecl-button/eui-ecl-components-ecl-button.ts"],"sourcesContent":["import { Component, HostBinding } from \"@angular/core\";\n\n/**\n * Component for indicating special content inside the ECL Button.\n * Automatically applies the `ecl-indicator` CSS class.\n */\n@Component({\n selector: '[eclIndicator]',\n templateUrl: './ecl-indicator.component.html',\n})\nexport class EclIndicatorComponent {\n /**\n * Applies the `ecl-indicator` CSS class.\n */\n @HostBinding('class.ecl-indicator') hasClass = true;\n}\n","<span class=\"ecl-indicator__value\"><ng-content></ng-content></span>\n<ng-content select=\"[eclIndicatorLabel]\"></ng-content>","import {\n AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n ElementRef,\n forwardRef,\n HostBinding,\n inject,\n PLATFORM_ID,\n input\n} from '@angular/core';\nimport { EclIconComponent, EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIndicatorComponent } from './ecl-indicator/ecl-indicator.component';\n\n/**\n * Button component based on ECL design system.\n * Can render as a `<button>` or `<a>` element depending on usage.\n * Supports multiple visual variants and optional icon/indicator content.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'button[eclButton], button[ecl-button], a[eclButton]',\n templateUrl: './ecl-button.component.html',\n imports: [\n NgTemplateOutlet,\n ...EUI_ECL_ICON,\n ],\n})\nexport class EclButtonComponent extends ECLBaseDirective implements AfterViewInit {\n el = inject(ElementRef);\n\n /**\n * Whether the button should be styled as icon-only.\n * When true, the `ecl-button--icon-only` class is applied.\n */\n isIconOnly = input(false, { transform: booleanAttribute });\n\n /**\n * Visual variant of the button.\n * Can be 'primary', 'secondary', 'tertiary', 'cta', 'ghost', or 'ghost-inverted'.\n * Defaults to 'primary'.\n */\n variant = input<'primary' | 'secondary' | 'tertiary'>('primary');\n\n eclStyle = input<'highlight' | 'inverted' | 'neutral' | 'default' | 'highlight-inverted'>('default');\n\n size = input<'s' | 'm' | 'l'>('l');\n\n /**\n * Optional additional class to apply to the button container.\n */\n containerStyleClass = input<string>();\n\n /**\n * List of projected icon components inside the button.\n * Used internally to detect presence of icons.\n */\n iconComponents = contentChildren<EclIconComponent>(forwardRef(() => EclIconComponent));\n\n /**\n * Projected indicator element inside the button (e.g., for loading or notification).\n * Used internally to detect its presence.\n */\n indicator = contentChild(forwardRef(() => EclIndicatorComponent));\n\n /**\n * Computes the full set of CSS classes to apply to the button element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-button'), `ecl-button--${this.variant()}`,\n this.isIconOnly() ? 'ecl-button--icon-only' : '',\n this.eclStyle() !== 'default' ? `ecl-button--${this.eclStyle()}` : '',\n this.size() !== 'l' ? `ecl-button--${this.size()}` : '',\n ].join(' ').trim();\n }\n\n private platformId = inject(PLATFORM_ID);\n\n /**\n * Indicates whether the button contains an icon.\n * Used internally for styling logic.\n */\n hasIcon = computed(() => this.iconComponents().length > 0);\n\n /**\n * Indicates whether the button contains an indicator element.\n * Used internally for styling logic.\n */\n hasIndicator = computed(() => !!this.indicator());\n\n /**\n * Lifecycle hook triggered after content is projected.\n * Assigns a button-specific class to projected icon components.\n */\n ngAfterViewInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n if (this.iconComponents()?.length > 0) {\n setTimeout(() => {\n this.iconComponents().forEach((icn) => {\n icn.addExtraClass('ecl-button__icon');\n });\n });\n }\n }\n\n /**\n * Manually focuses the button element.\n */\n onFocus(): void {\n this.el.nativeElement.focus();\n }\n}\n","@if (hasIcon()) {\n<span class=\"ecl-button__container {{ containerStyleClass() }}\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</span>\n}\n@else {\n<ng-container *ngTemplateOutlet=\"content\"></ng-container>\n}\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for labeling content inside the ECL Button.\n * Automatically applies the `ecl-button__label` CSS class.\n */\n@Directive({\n selector: '[eclButtonLabel]',\n})\nexport class EclButtonLabelDirective extends ECLBaseDirective {\n /**\n * Returns the CSS classes to apply for the button label.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-button__label')].join(' ').trim();\n }\n}\n\n/**\n * Directive for the icon container inside the ECL Button.\n * Automatically applies the `ecl-button__icon-container` CSS class.\n */\n@Directive({\n selector: '[eclButtonIconContainer]',\n})\nexport class EclButtonIconContainerDirective {\n /**\n * Applies the `ecl-button__icon-container` CSS class.\n */\n @HostBinding('class.ecl-button__icon-container') hasClass = true;\n}\n","import { Directive, HostBinding } from \"@angular/core\";\n\n/**\n * Directive for indicating special content inside the ECL Button.\n * Automatically applies the `ecl-indicator__label` CSS class.\n */\n@Directive({\n selector: '[eclIndicatorLabel]',\n})\nexport class EclIndicatorLabelDirective {\n /**\n * Applies the `ecl-indicator__label` CSS class.\n */\n @HostBinding('class.ecl-indicator__label') hasClass = true;\n}\n","import { EclButtonComponent } from './ecl-button.component';\nimport { EclButtonLabelDirective, EclButtonIconContainerDirective } from './ecl-button-label.directive';\nimport { EclIndicatorLabelDirective } from './ecl-indicator/ecl-indicator.directive';\nimport { EclIndicatorComponent } from './ecl-indicator/ecl-indicator.component';\n\nexport * from './ecl-button.component';\nexport * from './ecl-button-label.directive';\nexport * from './ecl-indicator/ecl-indicator.component';\nexport * from './ecl-indicator/ecl-indicator.directive';\n\nexport const EUI_ECL_BUTTON = [\n EclButtonComponent,\n EclButtonLabelDirective,\n EclIndicatorLabelDirective,\n EclIndicatorComponent,\n EclButtonIconContainerDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;AAGG;MAKU,qBAAqB,CAAA;AAJlC,IAAA,WAAA,GAAA;AAKI;;AAEG;QACiC,IAAA,CAAA,QAAQ,GAAG,IAAI;AACtD,IAAA;+GALY,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAA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AAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,4BAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qBAAqB;AAClC,iBAAA;;sBAKI,WAAW;uBAAC,4BAA4B;;;ACHtC,MAAM,cAAc,GAAG;IAC5B,kBAAkB;IAClB,uBAAuB;IACvB,0BAA0B;IAC1B,qBAAqB;IACrB,+BAA+B;;;ACfjC;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { booleanAttribute, Input, HostBinding, Directive, inject, ElementRef,
|
|
2
|
+
import { booleanAttribute, Input, HostBinding, Directive, inject, ElementRef, PLATFORM_ID, Renderer2, forwardRef, ContentChild, Component } from '@angular/core';
|
|
3
3
|
import { EclContentBlockComponent, EclContentBlockTitleDirective } from '@eui/ecl/components/ecl-content-block';
|
|
4
4
|
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
5
5
|
import { isPlatformBrowser } from '@angular/common';
|
|
@@ -71,22 +71,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
71
71
|
/**
|
|
72
72
|
* Card component based on the ECL design system.
|
|
73
73
|
* Combines image, title, and content block areas into a unified card layout.
|
|
74
|
+
*
|
|
75
|
+
* @deprecated The `ecl-card` element selector is deprecated. Use `article[eclCard]` instead.
|
|
74
76
|
*/
|
|
75
77
|
class EclCardComponent extends ECLBaseDirective {
|
|
76
78
|
constructor() {
|
|
77
|
-
super(
|
|
78
|
-
|
|
79
|
-
* Sets the ARIA role for the card.
|
|
80
|
-
*/
|
|
81
|
-
this.role = 'article';
|
|
82
|
-
this.renderer = inject(Renderer2);
|
|
79
|
+
super();
|
|
80
|
+
this.el = inject(ElementRef);
|
|
83
81
|
this.platformId = inject(PLATFORM_ID);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return [super.getCssClasses('ecl-card')].join(' ').trim();
|
|
82
|
+
this.renderer = inject(Renderer2);
|
|
83
|
+
if (isPlatformBrowser(this.platformId) && this.el.nativeElement?.tagName?.toLowerCase() === 'ecl-card') {
|
|
84
|
+
console.warn(`[EclCardComponent] The <ecl-card> element selector is deprecated and will be removed in a future version. ` +
|
|
85
|
+
`Use <article eclCard> instead.`);
|
|
86
|
+
}
|
|
90
87
|
}
|
|
91
88
|
/**
|
|
92
89
|
* Lifecycle hook triggered after view initialization.
|
|
@@ -120,19 +117,17 @@ class EclCardComponent extends ECLBaseDirective {
|
|
|
120
117
|
link.onClick();
|
|
121
118
|
});
|
|
122
119
|
}
|
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclCardComponent, deps:
|
|
124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: EclCardComponent, isStandalone: true, selector: "ecl-card", host: {
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
121
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: EclCardComponent, isStandalone: true, selector: "ecl-card, article[eclCard]", host: { attributes: { "role": "article" }, styleAttribute: "display: block", classAttribute: "ecl-card" }, queries: [{ propertyName: "eclContentBlock", first: true, predicate: i0.forwardRef(() => EclContentBlockComponent), descendants: true }, { propertyName: "eclContentBlockTitle", first: true, predicate: i0.forwardRef(() => EclContentBlockTitleDirective), descendants: true }, { propertyName: "eclCardImage", first: true, predicate: i0.forwardRef(() => EclCardImageDirective), descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n" }); }
|
|
125
122
|
}
|
|
126
123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclCardComponent, decorators: [{
|
|
127
124
|
type: Component,
|
|
128
|
-
args: [{ selector: 'ecl-card
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
args: ['class']
|
|
135
|
-
}], eclContentBlock: [{
|
|
125
|
+
args: [{ selector: 'ecl-card, article[eclCard]', host: {
|
|
126
|
+
role: 'article',
|
|
127
|
+
class: 'ecl-card',
|
|
128
|
+
style: 'display: block',
|
|
129
|
+
}, template: "<ng-content></ng-content>\n" }]
|
|
130
|
+
}], ctorParameters: () => [], propDecorators: { eclContentBlock: [{
|
|
136
131
|
type: ContentChild,
|
|
137
132
|
args: [forwardRef(() => EclContentBlockComponent), { descendants: true }]
|
|
138
133
|
}], eclContentBlockTitle: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-card.mjs","sources":["../../components/ecl-card/ecl-card-picture.directive.ts","../../components/ecl-card/ecl-card.component.ts","../../components/ecl-card/ecl-card.component.html","../../components/ecl-card/ecl-card-body.component.ts","../../components/ecl-card/ecl-card-body.component.html","../../components/ecl-card/index.ts","../../components/ecl-card/eui-ecl-components-ecl-card.ts"],"sourcesContent":["import { Directive, HostBinding, ElementRef, Input, booleanAttribute, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the picture element used in ECL Card.\n * Applies required ECL CSS classes and optionally enables zoom effect.\n */\n@Directive({\n selector: 'picture[eclCardPicture]',\n})\nexport class EclCardPictureDirective extends ECLBaseDirective {\n /**\n * Returns the set of CSS classes to apply to the picture element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-picture ecl-card__picture')].join(' ').trim();\n }\n\n /**\n * When true, adds the `ecl-picture--zoom` class to enable zoom styling.\n */\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-picture--zoom') hasZoom = false;\n}\n\n/**\n * Directive for the image element used in ECL Card.\n * Applies the ECL-specific image class for card usage.\n */\n@Directive({\n selector: 'img[eclCardImage]',\n})\nexport class EclCardImageDirective extends ECLBaseDirective {\n el = inject(ElementRef);\n\n /**\n * Returns the CSS classes to apply to the image element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-card__image')].join(' ').trim();\n }\n}\n","import { AfterViewInit, Component, ContentChild, forwardRef, HostBinding, inject, OnDestroy, PLATFORM_ID, Renderer2 } from '@angular/core';\nimport {\n EclContentBlockComponent,\n EclContentBlockTitleDirective,\n} from '@eui/ecl/components/ecl-content-block';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclCardImageDirective } from './ecl-card-picture.directive';\nimport { isPlatformBrowser } from '@angular/common';\n\n/**\n * Card component based on the ECL design system.\n * Combines image, title, and content block areas into a unified card layout.\n */\n@Component({\n selector: 'ecl-card',\n templateUrl: './ecl-card.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclCardComponent extends ECLBaseDirective implements AfterViewInit, OnDestroy {\n /**\n * Sets the ARIA role for the card.\n */\n @HostBinding('attr.role') role = 'article';\n\n /**\n * Computes and returns the CSS class string for the card container.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-card')].join(' ').trim();\n }\n\n /**\n * Projected ECL content block inside the card.\n */\n @ContentChild(forwardRef(() => EclContentBlockComponent), { descendants: true }) eclContentBlock: EclContentBlockComponent;\n\n /**\n * Projected content block title directive inside the card.\n */\n @ContentChild(forwardRef(() => EclContentBlockTitleDirective), { descendants: true }) eclContentBlockTitle: EclContentBlockTitleDirective;\n\n /**\n * Projected image directive inside the card.\n */\n @ContentChild(forwardRef(() => EclCardImageDirective), { descendants: true }) eclCardImage: EclCardImageDirective;\n private renderer = inject(Renderer2);\n private unlistenImageClick?: () => void;\n private platformId = inject(PLATFORM_ID);\n\n /**\n * Lifecycle hook triggered after view initialization.\n * Applies additional styling and attaches interaction between image and title link.\n */\n ngAfterViewInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this.attachClickEventToImage();\n\n const hostEl = this.eclContentBlock?.el?.nativeElement;\n if (hostEl) {\n this.renderer.addClass(hostEl, 'ecl-card__content-block');\n }\n }\n\n ngOnDestroy(): void {\n this.unlistenImageClick?.();\n this.unlistenImageClick = undefined;\n }\n\n /**\n * Adds a click listener to the projected image element.\n * When clicked, triggers the title link click handler if available.\n */\n private attachClickEventToImage(): void {\n const link = this.eclContentBlockTitle?.eclLink;\n const imgEl = this.eclCardImage?.el?.nativeElement;\n\n if (!link || !imgEl) return;\n\n this.renderer.setStyle(imgEl, 'cursor', 'pointer');\n\n this.unlistenImageClick?.(); // avoid duplicates\n this.unlistenImageClick = this.renderer.listen(imgEl, 'click', () => {\n link.onClick();\n });\n }\n}\n","<ng-content></ng-content>\n","import { Component, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Card body component based on the ECL design system.\n * Provides a wrapper for the main content area of the card.\n */\n@Component({\n selector: 'ecl-card-body',\n templateUrl: './ecl-card-body.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclCardBodyComponent extends ECLBaseDirective {\n /**\n * Computes and returns the CSS class string for the card body element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-card__body')].join(' ').trim();\n }\n}\n","<ng-content></ng-content>\n","import { EclCardComponent } from './ecl-card.component';\nimport { EclCardBodyComponent } from './ecl-card-body.component';\nimport { EclCardImageDirective, EclCardPictureDirective } from './ecl-card-picture.directive';\n\nexport * from './ecl-card.component';\nexport * from './ecl-card-body.component';\nexport * from './ecl-card-picture.directive';\n\nexport const EUI_ECL_CARD = [\n EclCardComponent,\n EclCardBodyComponent,\n EclCardImageDirective,\n EclCardPictureDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA;;;AAGG;AAIG,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;AAH7D,IAAA,WAAA,GAAA;;AAYI;;AAEG;QAC6E,IAAA,CAAA,OAAO,GAAG,KAAK;AAClG,IAAA;AAZG;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,+BAA+B,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IAClF;+GAPS,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,qGAYZ,gBAAgB,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,yBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAZ3B,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,yBAAyB;AACtC,iBAAA;;sBAKI,WAAW;uBAAC,OAAO;;sBAQnB,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBAAG,WAAW;uBAAC,yBAAyB;;AAGlF;;;AAGG;A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AAA,oBAAoB,sJClBjC,6BACA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,CAAA,CAAA;;4FDiBa,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAXhC,SAAS;+BACI,eAAe,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;sBAcxB,WAAW;uBAAC,OAAO;;;AEdjB,MAAM,YAAY,GAAG;IAC1B,gBAAgB;IAChB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;;;ACZzB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-card.mjs","sources":["../../components/ecl-card/ecl-card-picture.directive.ts","../../components/ecl-card/ecl-card.component.ts","../../components/ecl-card/ecl-card.component.html","../../components/ecl-card/ecl-card-body.component.ts","../../components/ecl-card/ecl-card-body.component.html","../../components/ecl-card/index.ts","../../components/ecl-card/eui-ecl-components-ecl-card.ts"],"sourcesContent":["import { Directive, HostBinding, ElementRef, Input, booleanAttribute, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive for the picture element used in ECL Card.\n * Applies required ECL CSS classes and optionally enables zoom effect.\n */\n@Directive({\n selector: 'picture[eclCardPicture]',\n})\nexport class EclCardPictureDirective extends ECLBaseDirective {\n /**\n * Returns the set of CSS classes to apply to the picture element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-picture ecl-card__picture')].join(' ').trim();\n }\n\n /**\n * When true, adds the `ecl-picture--zoom` class to enable zoom styling.\n */\n @Input({ transform: booleanAttribute }) @HostBinding('class.ecl-picture--zoom') hasZoom = false;\n}\n\n/**\n * Directive for the image element used in ECL Card.\n * Applies the ECL-specific image class for card usage.\n */\n@Directive({\n selector: 'img[eclCardImage]',\n})\nexport class EclCardImageDirective extends ECLBaseDirective {\n el = inject(ElementRef);\n\n /**\n * Returns the CSS classes to apply to the image element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-card__image')].join(' ').trim();\n }\n}\n","import { AfterViewInit, Component, ContentChild, ElementRef, forwardRef, inject, OnDestroy, PLATFORM_ID, Renderer2 } from '@angular/core';\nimport {\n EclContentBlockComponent,\n EclContentBlockTitleDirective,\n} from '@eui/ecl/components/ecl-content-block';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclCardImageDirective } from './ecl-card-picture.directive';\nimport { isPlatformBrowser } from '@angular/common';\n\n/**\n * Card component based on the ECL design system.\n * Combines image, title, and content block areas into a unified card layout.\n *\n * @deprecated The `ecl-card` element selector is deprecated. Use `article[eclCard]` instead.\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'ecl-card, article[eclCard]',\n templateUrl: './ecl-card.component.html',\n host: {\n role: 'article',\n class: 'ecl-card',\n style: 'display: block',\n },\n})\nexport class EclCardComponent extends ECLBaseDirective implements AfterViewInit, OnDestroy {\n private readonly el = inject(ElementRef);\n private readonly platformId = inject(PLATFORM_ID);\n\n constructor() {\n super();\n if (isPlatformBrowser(this.platformId) && this.el.nativeElement?.tagName?.toLowerCase() === 'ecl-card') {\n console.warn(\n `[EclCardComponent] The <ecl-card> element selector is deprecated and will be removed in a future version. ` +\n `Use <article eclCard> instead.`,\n );\n }\n }\n\n /**\n * Projected ECL content block inside the card.\n */\n @ContentChild(forwardRef(() => EclContentBlockComponent), { descendants: true }) eclContentBlock: EclContentBlockComponent;\n\n /**\n * Projected content block title directive inside the card.\n */\n @ContentChild(forwardRef(() => EclContentBlockTitleDirective), { descendants: true }) eclContentBlockTitle: EclContentBlockTitleDirective;\n\n /**\n * Projected image directive inside the card.\n */\n @ContentChild(forwardRef(() => EclCardImageDirective), { descendants: true }) eclCardImage: EclCardImageDirective;\n private renderer = inject(Renderer2);\n private unlistenImageClick?: () => void;\n\n /**\n * Lifecycle hook triggered after view initialization.\n * Applies additional styling and attaches interaction between image and title link.\n */\n ngAfterViewInit(): void {\n if (!isPlatformBrowser(this.platformId)) return;\n\n this.attachClickEventToImage();\n\n const hostEl = this.eclContentBlock?.el?.nativeElement;\n if (hostEl) {\n this.renderer.addClass(hostEl, 'ecl-card__content-block');\n }\n }\n\n ngOnDestroy(): void {\n this.unlistenImageClick?.();\n this.unlistenImageClick = undefined;\n }\n\n /**\n * Adds a click listener to the projected image element.\n * When clicked, triggers the title link click handler if available.\n */\n private attachClickEventToImage(): void {\n const link = this.eclContentBlockTitle?.eclLink;\n const imgEl = this.eclCardImage?.el?.nativeElement;\n\n if (!link || !imgEl) return;\n\n this.renderer.setStyle(imgEl, 'cursor', 'pointer');\n\n this.unlistenImageClick?.(); // avoid duplicates\n this.unlistenImageClick = this.renderer.listen(imgEl, 'click', () => {\n link.onClick();\n });\n }\n}\n","<ng-content></ng-content>\n","import { Component, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Card body component based on the ECL design system.\n * Provides a wrapper for the main content area of the card.\n */\n@Component({\n selector: 'ecl-card-body',\n templateUrl: './ecl-card-body.component.html',\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclCardBodyComponent extends ECLBaseDirective {\n /**\n * Computes and returns the CSS class string for the card body element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-card__body')].join(' ').trim();\n }\n}\n","<ng-content></ng-content>\n","import { EclCardComponent } from './ecl-card.component';\nimport { EclCardBodyComponent } from './ecl-card-body.component';\nimport { EclCardImageDirective, EclCardPictureDirective } from './ecl-card-picture.directive';\n\nexport * from './ecl-card.component';\nexport * from './ecl-card-body.component';\nexport * from './ecl-card-picture.directive';\n\nexport const EUI_ECL_CARD = [\n EclCardComponent,\n EclCardBodyComponent,\n EclCardImageDirective,\n EclCardPictureDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAGA;;;AAGG;AAIG,MAAO,uBAAwB,SAAQ,gBAAgB,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hC,SAAS;+BACI,eAAe,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;sBAcxB,WAAW;uBAAC,OAAO;;;AEdjB,MAAM,YAAY,GAAG;IAC1B,gBAAgB;IAChB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;;;ACZzB;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ContentChildren,
|
|
2
|
+
import { input, ContentChildren, Component, Directive, contentChildren, ElementRef, contentChild, computed, booleanAttribute, inject, Renderer2, effect, ContentChild } from '@angular/core';
|
|
3
3
|
import { ECLBaseDirective } from '@eui/ecl/core';
|
|
4
4
|
import { EclIconComponent } from '@eui/ecl/components/ecl-icon';
|
|
5
5
|
import { EclLinkDirective } from '@eui/ecl/components/ecl-link';
|
|
@@ -32,19 +32,89 @@ class EclFactFiguresItemComponent extends ECLBaseDirective {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: EclFactFiguresItemComponent, isStandalone: true, selector: "div[eclFactFiguresItem],ecl-fact-figures-item", inputs: { eclValue: { classPropertyName: "eclValue", publicName: "eclValue", isSignal: true, isRequired: false, transformFunction: null }, eclTitle: { classPropertyName: "eclTitle", publicName: "eclTitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.17", type: EclFactFiguresItemComponent, isStandalone: true, selector: "div[eclFactFiguresItem],ecl-fact-figures-item", inputs: { eclValue: { classPropertyName: "eclValue", publicName: "eclValue", isSignal: true, isRequired: false, transformFunction: null }, eclTitle: { classPropertyName: "eclTitle", publicName: "eclTitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cssClasses" } }, queries: [{ propertyName: "eclIconComponents", predicate: EclIconComponent }], usesInheritance: true, ngImport: i0, template: "<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>" }); }
|
|
36
36
|
}
|
|
37
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresItemComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
39
|
-
args: [{ selector: 'div[eclFactFiguresItem],ecl-fact-figures-item',
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}], eclIconComponents: [{
|
|
39
|
+
args: [{ selector: 'div[eclFactFiguresItem],ecl-fact-figures-item', host: {
|
|
40
|
+
'[class]': 'cssClasses',
|
|
41
|
+
}, template: "<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>" }]
|
|
42
|
+
}], propDecorators: { eclValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "eclValue", required: false }] }], eclTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "eclTitle", required: false }] }], eclIconComponents: [{
|
|
44
43
|
type: ContentChildren,
|
|
45
44
|
args: [EclIconComponent]
|
|
46
45
|
}] } });
|
|
47
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Wraps the list of source links in the Fact & Figures component.
|
|
49
|
+
* Applies the `ecl-fact-figures__sources-list` class.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```html
|
|
53
|
+
* <ul eclFactFiguresSourcesList>
|
|
54
|
+
* <li eclFactFiguresSourcesItem>...</li>
|
|
55
|
+
* </ul>
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
class EclFactFiguresSourcesListDirective {
|
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourcesListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
60
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresSourcesListDirective, isStandalone: true, selector: "ul[eclFactFiguresSourcesList]", host: { classAttribute: "ecl-fact-figures__sources-list" }, ngImport: i0 }); }
|
|
61
|
+
}
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourcesListDirective, decorators: [{
|
|
63
|
+
type: Directive,
|
|
64
|
+
args: [{
|
|
65
|
+
selector: 'ul[eclFactFiguresSourcesList]',
|
|
66
|
+
host: {
|
|
67
|
+
class: 'ecl-fact-figures__sources-list',
|
|
68
|
+
},
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
/**
|
|
72
|
+
* Marks a list item as a source entry within the Fact & Figures component.
|
|
73
|
+
* Applies the `ecl-fact-figures__sources-item` class.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```html
|
|
77
|
+
* <li eclFactFiguresSourcesItem>
|
|
78
|
+
* <a eclLink eclFactFiguresSource href="/example">Eurostat</a>
|
|
79
|
+
* </li>
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
class EclFactFiguresSourcesItemDirective {
|
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourcesItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
84
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresSourcesItemDirective, isStandalone: true, selector: "li[eclFactFiguresSourcesItem]", host: { classAttribute: "ecl-fact-figures__sources-item" }, ngImport: i0 }); }
|
|
85
|
+
}
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourcesItemDirective, decorators: [{
|
|
87
|
+
type: Directive,
|
|
88
|
+
args: [{
|
|
89
|
+
selector: 'li[eclFactFiguresSourcesItem]',
|
|
90
|
+
host: {
|
|
91
|
+
class: 'ecl-fact-figures__sources-item',
|
|
92
|
+
},
|
|
93
|
+
}]
|
|
94
|
+
}] });
|
|
95
|
+
/**
|
|
96
|
+
* Marks a link as a source reference within the Fact & Figures component.
|
|
97
|
+
* Applies the `ecl-link` and `ecl-fact-figures__source` styling classes.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```html
|
|
101
|
+
* <a eclLink eclFactFiguresSource href="/example">Eurostat</a>
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
class EclFactFiguresSourceDirective {
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
106
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresSourceDirective, isStandalone: true, selector: "a[eclFactFiguresSource]", host: { classAttribute: "ecl-link ecl-fact-figures__source" }, ngImport: i0 }); }
|
|
107
|
+
}
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresSourceDirective, decorators: [{
|
|
109
|
+
type: Directive,
|
|
110
|
+
args: [{
|
|
111
|
+
selector: 'a[eclFactFiguresSource]',
|
|
112
|
+
host: {
|
|
113
|
+
class: 'ecl-link ecl-fact-figures__source',
|
|
114
|
+
},
|
|
115
|
+
}]
|
|
116
|
+
}] });
|
|
117
|
+
|
|
48
118
|
/**
|
|
49
119
|
* Main component for displaying a collection of fact and figure items
|
|
50
120
|
* in a responsive, styled grid layout.
|
|
@@ -59,12 +129,11 @@ class EclFactFiguresComponent extends ECLBaseDirective {
|
|
|
59
129
|
return [super.getCssClasses('ecl-fact-figures'),
|
|
60
130
|
`ecl-fact-figures--col-${this.columns()}`].join(' ').trim();
|
|
61
131
|
}
|
|
62
|
-
get hostIsCentered() {
|
|
63
|
-
return this.isCentered();
|
|
64
|
-
}
|
|
65
132
|
constructor() {
|
|
66
133
|
super();
|
|
67
134
|
this.items = contentChildren(EclFactFiguresItemComponent, { ...(ngDevMode ? { debugName: "items" } : /* istanbul ignore next */ {}), read: (ElementRef) });
|
|
135
|
+
this.sourcesList = contentChild(EclFactFiguresSourcesListDirective, ...(ngDevMode ? [{ debugName: "sourcesList" }] : /* istanbul ignore next */ []));
|
|
136
|
+
this.hasSourcesList = computed(() => !!this.sourcesList(), ...(ngDevMode ? [{ debugName: "hasSourcesList" }] : /* istanbul ignore next */ []));
|
|
68
137
|
/**
|
|
69
138
|
* Number of columns in the layout (as string).
|
|
70
139
|
* Default is `'3'`.
|
|
@@ -81,6 +150,11 @@ class EclFactFiguresComponent extends ECLBaseDirective {
|
|
|
81
150
|
* Adds `ecl-fact-figures--centered` class when true.
|
|
82
151
|
*/
|
|
83
152
|
this.isCentered = input(false, { ...(ngDevMode ? { debugName: "isCentered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
153
|
+
/**
|
|
154
|
+
* Label displayed before the sources list.
|
|
155
|
+
* Default is `'Sources:'`.
|
|
156
|
+
*/
|
|
157
|
+
this.sourcesLabel = input('Sources:', ...(ngDevMode ? [{ debugName: "sourcesLabel" }] : /* istanbul ignore next */ []));
|
|
84
158
|
this.renderer = inject(Renderer2);
|
|
85
159
|
effect(() => {
|
|
86
160
|
const els = this.items();
|
|
@@ -103,18 +177,15 @@ class EclFactFiguresComponent extends ECLBaseDirective {
|
|
|
103
177
|
});
|
|
104
178
|
}
|
|
105
179
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
180
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: EclFactFiguresComponent, isStandalone: true, selector: "div[eclFactFigures], ecl-fact-figures", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, fontSize: { classPropertyName: "fontSize", publicName: "fontSize", isSignal: true, isRequired: false, transformFunction: null }, isCentered: { classPropertyName: "isCentered", publicName: "isCentered", isSignal: true, isRequired: false, transformFunction: null }, sourcesLabel: { classPropertyName: "sourcesLabel", publicName: "sourcesLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cssClasses", "class.ecl-fact-figures--centered": "isCentered()" } }, queries: [{ propertyName: "items", predicate: EclFactFiguresItemComponent, read: ElementRef, isSignal: true }, { propertyName: "sourcesList", first: true, predicate: EclFactFiguresSourcesListDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<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>", styles: [":host{display:block}\n"] }); }
|
|
107
181
|
}
|
|
108
182
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresComponent, decorators: [{
|
|
109
183
|
type: Component,
|
|
110
|
-
args: [{ selector: 'div[eclFactFigures], ecl-fact-figures',
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
type: HostBinding,
|
|
116
|
-
args: ['class.ecl-fact-figures--centered']
|
|
117
|
-
}] } });
|
|
184
|
+
args: [{ selector: 'div[eclFactFigures], ecl-fact-figures', host: {
|
|
185
|
+
'[class]': 'cssClasses',
|
|
186
|
+
'[class.ecl-fact-figures--centered]': 'isCentered()',
|
|
187
|
+
}, template: "<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>", styles: [":host{display:block}\n"] }]
|
|
188
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => EclFactFiguresItemComponent), { ...{ read: (ElementRef) }, isSignal: true }] }], sourcesList: [{ type: i0.ContentChild, args: [i0.forwardRef(() => EclFactFiguresSourcesListDirective), { isSignal: true }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], fontSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "fontSize", required: false }] }], isCentered: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCentered", required: false }] }], sourcesLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourcesLabel", required: false }] }] } });
|
|
118
189
|
|
|
119
190
|
/**
|
|
120
191
|
* Component representing the "View all" section in a Fact & Figures block.
|
|
@@ -137,15 +208,14 @@ class EclFactFiguresViewAllComponent extends ECLBaseDirective {
|
|
|
137
208
|
}
|
|
138
209
|
}
|
|
139
210
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresViewAllComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
140
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresViewAllComponent, isStandalone: true, selector: "ecl-fact-figures-view-all", host: { properties: { "class": "
|
|
211
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresViewAllComponent, isStandalone: true, selector: "ecl-fact-figures-view-all", host: { properties: { "class": "cssClasses" } }, queries: [{ propertyName: "eclLink", first: true, predicate: EclLinkDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }); }
|
|
141
212
|
}
|
|
142
213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresViewAllComponent, decorators: [{
|
|
143
214
|
type: Component,
|
|
144
|
-
args: [{ selector: 'ecl-fact-figures-view-all',
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}], eclLink: [{
|
|
215
|
+
args: [{ selector: 'ecl-fact-figures-view-all', host: {
|
|
216
|
+
'[class]': 'cssClasses',
|
|
217
|
+
}, template: "<ng-content></ng-content>\n", styles: [":host{display:block}\n"] }]
|
|
218
|
+
}], propDecorators: { eclLink: [{
|
|
149
219
|
type: ContentChild,
|
|
150
220
|
args: [EclLinkDirective]
|
|
151
221
|
}] } });
|
|
@@ -162,28 +232,31 @@ class EclFactFiguresDescriptionDirective extends ECLBaseDirective {
|
|
|
162
232
|
return [super.getCssClasses('ecl-fact-figures__description')].join(' ').trim();
|
|
163
233
|
}
|
|
164
234
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresDescriptionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
165
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresDescriptionDirective, isStandalone: true, selector: "div[eclFactFiguresDescription]", host: { properties: { "class": "
|
|
235
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: EclFactFiguresDescriptionDirective, isStandalone: true, selector: "div[eclFactFiguresDescription]", host: { properties: { "class": "cssClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
|
166
236
|
}
|
|
167
237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: EclFactFiguresDescriptionDirective, decorators: [{
|
|
168
238
|
type: Directive,
|
|
169
239
|
args: [{
|
|
170
240
|
selector: 'div[eclFactFiguresDescription]',
|
|
241
|
+
host: {
|
|
242
|
+
'[class]': 'cssClasses',
|
|
243
|
+
},
|
|
171
244
|
}]
|
|
172
|
-
}]
|
|
173
|
-
type: HostBinding,
|
|
174
|
-
args: ['class']
|
|
175
|
-
}] } });
|
|
245
|
+
}] });
|
|
176
246
|
|
|
177
247
|
const EUI_ECL_FACT_FIGURES = [
|
|
178
248
|
EclFactFiguresComponent,
|
|
179
249
|
EclFactFiguresItemComponent,
|
|
180
250
|
EclFactFiguresViewAllComponent,
|
|
181
251
|
EclFactFiguresDescriptionDirective,
|
|
252
|
+
EclFactFiguresSourcesListDirective,
|
|
253
|
+
EclFactFiguresSourcesItemDirective,
|
|
254
|
+
EclFactFiguresSourceDirective,
|
|
182
255
|
];
|
|
183
256
|
|
|
184
257
|
/**
|
|
185
258
|
* Generated bundle index. Do not edit.
|
|
186
259
|
*/
|
|
187
260
|
|
|
188
|
-
export { EUI_ECL_FACT_FIGURES, EclFactFiguresComponent, EclFactFiguresDescriptionDirective, EclFactFiguresItemComponent, EclFactFiguresViewAllComponent };
|
|
261
|
+
export { EUI_ECL_FACT_FIGURES, EclFactFiguresComponent, EclFactFiguresDescriptionDirective, EclFactFiguresItemComponent, EclFactFiguresSourceDirective, EclFactFiguresSourcesItemDirective, EclFactFiguresSourcesListDirective, EclFactFiguresViewAllComponent };
|
|
189
262
|
//# sourceMappingURL=eui-ecl-components-ecl-fact-figures.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-fact-figures.mjs","sources":["../../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","../../components/ecl-fact-figures/eui-ecl-components-ecl-fact-figures.ts"],"sourcesContent":["import { AfterContentInit, Component, ContentChildren, HostBinding, input, QueryList } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Component representing a single item within the Fact & Figures block.\n * Optionally handles embedded icons and applies appropriate styling.\n */\n@Component({\n selector: 'div[eclFactFiguresItem],ecl-fact-figures-item',\n templateUrl: './ecl-fact-figures-item.component.html',\n})\nexport class EclFactFiguresItemComponent extends ECLBaseDirective implements AfterContentInit {\n\n eclValue = input<string>();\n\n eclTitle = input<string>();\n\n /**\n * Applies the base class `ecl-fact-figures__item` to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__item')].join(' ').trim();\n }\n\n /**\n * Query for any EclIconComponent children projected into the component.\n * These icons will receive an additional CSS class.\n */\n @ContentChildren(EclIconComponent) eclIconComponents: QueryList<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 = [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>","import {\n Component,\n Input,\n HostBinding,\n booleanAttribute,\n ContentChildren,\n ElementRef,\n QueryList,\n Renderer2,\n inject,\n input,\n contentChildren,\n effect,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclFactFiguresItemComponent } from './ecl-fact-figures-item.component';\n\n/**\n * Main component for displaying a collection of fact and figure items\n * in a responsive, styled grid layout.\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})\nexport class EclFactFiguresComponent extends ECLBaseDirective {\n\n items = contentChildren(EclFactFiguresItemComponent, { read: ElementRef<HTMLElement> });\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 @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures'),\n `ecl-fact-figures--col-${this.columns()}`].join(' ').trim();\n }\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 @HostBinding('class.ecl-fact-figures--centered')\n get hostIsCentered() {\n return this.isCentered();\n }\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<ng-content select=\"ecl-fact-figures-view-all\"></ng-content>\n","import { AfterContentInit, Component, ContentChild, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * Component representing the \"View all\" section in a Fact & Figures block.\n * Used to display a link that allows users to view additional content.\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})\nexport class EclFactFiguresViewAllComponent extends ECLBaseDirective implements AfterContentInit {\n /**\n * Applies the base class `ecl-fact-figures__view-all` to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__view-all')].join(' ').trim();\n }\n\n /**\n * Reference to the projected link directive inside the component.\n * Automatically decorated with a specific class upon initialization.\n */\n @ContentChild(EclLinkDirective) eclLink: 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 if (this.eclLink) {\n this.eclLink.class = [this.eclLink.class, 'ecl-fact-figures__view-all-link'].join(' ');\n }\n }\n}\n","<ng-content></ng-content>\n","import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive, representing the description text of a fact or figures section.\n * Typically used to provide contextual or supporting information.\n */\n@Directive({\n selector: 'div[eclFactFiguresDescription]',\n})\nexport class EclFactFiguresDescriptionDirective extends ECLBaseDirective {\n /**\n * Applies the base class `ecl-fact-figures__description` to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__description')].join(' ').trim();\n }\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';\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';\n\nexport const EUI_ECL_FACT_FIGURES = [\n EclFactFiguresComponent,\n EclFactFiguresItemComponent,\n EclFactFiguresViewAllComponent,\n EclFactFiguresDescriptionDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;;;AAGG;AAKG,MAAO,2BAA4B,SAAQ,gBAAgB,CAAA;AAJjE,IAAA,WAAA,GAAA;;QAME,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;QAE1B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;AA2B3B,IAAA;AAzBC;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;AACZ,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC,CAAC,IAAI,CAAC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AAA,CAAA,CAAA;;4FAAlC,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBAH9C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gCAAgC;AAC3C,iBAAA;;sBAKE,WAAW;uBAAC,OAAO;;;ACJf,MAAM,oBAAoB,GAAG;IAChC,uBAAuB;IACvB,2BAA2B;IAC3B,8BAA8B;IAC9B,kCAAkC;;;ACdtC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-fact-figures.mjs","sources":["../../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-sources.directive.ts","../../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","../../components/ecl-fact-figures/eui-ecl-components-ecl-fact-figures.ts"],"sourcesContent":["import { AfterContentInit, Component, ContentChildren, input, QueryList } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclIconComponent } from '@eui/ecl/components/ecl-icon';\n\n/**\n * Component representing a single item within the Fact & Figures block.\n * Optionally handles embedded icons and applies appropriate styling.\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 eclValue = input<string>();\n\n eclTitle = input<string>();\n\n /**\n * Applies the base class `ecl-fact-figures__item` to the host element.\n */\n get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__item')].join(' ').trim();\n }\n\n /**\n * Query for any EclIconComponent children projected into the component.\n * These icons will receive an additional CSS class.\n */\n @ContentChildren(EclIconComponent) eclIconComponents: QueryList<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 = [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>","import { Directive } from '@angular/core';\n\n/**\n * Wraps the list of source links in the Fact & Figures component.\n * Applies the `ecl-fact-figures__sources-list` class.\n *\n * @example\n * ```html\n * <ul eclFactFiguresSourcesList>\n * <li eclFactFiguresSourcesItem>...</li>\n * </ul>\n * ```\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 list item as a source entry within the Fact & Figures component.\n * Applies the `ecl-fact-figures__sources-item` class.\n *\n * @example\n * ```html\n * <li eclFactFiguresSourcesItem>\n * <a eclLink eclFactFiguresSource href=\"/example\">Eurostat</a>\n * </li>\n * ```\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 link as a source reference within the Fact & Figures component.\n * Applies the `ecl-link` and `ecl-fact-figures__source` styling classes.\n *\n * @example\n * ```html\n * <a eclLink eclFactFiguresSource href=\"/example\">Eurostat</a>\n * ```\n */\n@Directive({\n selector: 'a[eclFactFiguresSource]',\n host: {\n class: 'ecl-link ecl-fact-figures__source',\n },\n})\nexport class EclFactFiguresSourceDirective {}\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\n * in a responsive, styled grid layout.\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 sourcesList = contentChild(EclFactFiguresSourcesListDirective);\n\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 get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures'),\n `ecl-fact-figures--col-${this.columns()}`].join(' ').trim();\n }\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, ContentChild } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclLinkDirective } from '@eui/ecl/components/ecl-link';\n\n/**\n * Component representing the \"View all\" section in a Fact & Figures block.\n * Used to display a link that allows users to view additional content.\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 get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__view-all')].join(' ').trim();\n }\n\n /**\n * Reference to the projected link directive inside the component.\n * Automatically decorated with a specific class upon initialization.\n */\n @ContentChild(EclLinkDirective) eclLink: 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 if (this.eclLink) {\n this.eclLink.class = [this.eclLink.class, 'ecl-fact-figures__view-all-link'].join(' ');\n }\n }\n}\n","<ng-content></ng-content>\n","import { Directive } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive, representing the description text of a fact or figures section.\n * Typically used to provide contextual or supporting information.\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 get cssClasses(): string {\n return [super.getCssClasses('ecl-fact-figures__description')].join(' ').trim();\n }\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;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;;;AAGG;AAQG,MAAO,2BAA4B,SAAQ,gBAAgB,CAAA;AAPjE,IAAA,WAAA,GAAA;;QASE,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAU;QAE1B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAA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