@eui/ecl 21.0.0-alpha.3 → 21.0.0-alpha.31
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 +1 -0
- package/assets/i18n-ecl/cs.json +1 -0
- package/assets/i18n-ecl/da.json +1 -0
- package/assets/i18n-ecl/de.json +1 -0
- package/assets/i18n-ecl/el.json +1 -0
- package/assets/i18n-ecl/en.json +1 -0
- package/assets/i18n-ecl/es.json +1 -0
- package/assets/i18n-ecl/et.json +1 -0
- package/assets/i18n-ecl/fi.json +1 -0
- package/assets/i18n-ecl/fr.json +1 -0
- package/assets/i18n-ecl/ga.json +1 -0
- package/assets/i18n-ecl/hr.json +1 -0
- package/assets/i18n-ecl/hu.json +1 -0
- package/assets/i18n-ecl/it.json +1 -0
- package/assets/i18n-ecl/lt.json +1 -0
- package/assets/i18n-ecl/lv.json +1 -0
- package/assets/i18n-ecl/mt.json +1 -0
- package/assets/i18n-ecl/nl.json +1 -0
- package/assets/i18n-ecl/pl.json +1 -0
- package/assets/i18n-ecl/pt.json +1 -0
- package/assets/i18n-ecl/ro.json +1 -0
- package/assets/i18n-ecl/sk.json +1 -0
- package/assets/i18n-ecl/sl.json +1 -0
- package/assets/i18n-ecl/sv.json +1 -0
- package/components/ecl-banner/index.d.ts +13 -4
- package/components/ecl-banner/index.d.ts.map +1 -1
- package/components/ecl-carousel/index.d.ts +1 -0
- package/components/ecl-carousel/index.d.ts.map +1 -1
- package/components/ecl-featured/index.d.ts +1 -1
- package/components/ecl-featured/index.d.ts.map +1 -1
- package/components/ecl-gallery/index.d.ts +1 -1
- package/components/ecl-gallery/index.d.ts.map +1 -1
- package/components/ecl-link/index.d.ts +6 -6
- package/components/ecl-link/index.d.ts.map +1 -1
- package/components/ecl-mega-menu/index.d.ts +2 -1
- package/components/ecl-mega-menu/index.d.ts.map +1 -1
- package/components/ecl-menu/index.d.ts +7 -1
- package/components/ecl-menu/index.d.ts.map +1 -1
- package/components/ecl-multiselect/index.d.ts +2 -2
- package/components/ecl-pagination/index.d.ts +1 -0
- package/components/ecl-pagination/index.d.ts.map +1 -1
- package/components/ecl-popover/index.d.ts +1 -1
- package/components/ecl-popover/index.d.ts.map +1 -1
- package/components/ecl-site-footer/index.d.ts +55 -32
- package/components/ecl-site-footer/index.d.ts.map +1 -1
- package/components/ecl-site-header/index.d.ts +1 -3
- package/components/ecl-site-header/index.d.ts.map +1 -1
- package/components/ecl-social-media-follow/index.d.ts +3 -1
- package/components/ecl-social-media-follow/index.d.ts.map +1 -1
- package/components/ecl-tabs/index.d.ts +5 -1
- package/components/ecl-tabs/index.d.ts.map +1 -1
- package/core/index.d.ts +7 -1
- package/core/index.d.ts.map +1 -1
- package/docs/changelog.html +427 -7760
- package/docs/classes/EclAccordionToggleEvent.html +18 -0
- package/docs/classes/EclAppLanguageDismissEvent.html +18 -0
- package/docs/classes/EclAreaChangeEvent.html +18 -0
- package/docs/classes/EclBaseEvent.html +18 -0
- package/docs/classes/EclBreadcrumbSegmentClickEvent.html +18 -0
- package/docs/classes/EclCategoryFilterItemSelectEvent.html +18 -0
- package/docs/classes/EclDatePickerDatePickedEvent.html +18 -0
- package/docs/classes/EclDomEvent.html +18 -0
- package/docs/classes/EclExpandableToggleEvent.html +18 -0
- package/docs/classes/EclFileItemsToggleEvent.html +18 -0
- package/docs/classes/EclFileUploadFileSelectedEvent.html +18 -0
- package/docs/classes/EclGalleryFullScreenEvent.html +18 -0
- package/docs/classes/EclGalleryHideEvent.html +18 -0
- package/docs/classes/EclGalleryItemClickEvent.html +18 -0
- package/docs/classes/EclGalleryItemEvent.html +18 -0
- package/docs/classes/EclGalleryMediaSource.html +18 -0
- package/docs/classes/EclGalleryMediaTrack.html +18 -0
- package/docs/classes/EclGalleryPictureImage.html +18 -0
- package/docs/classes/EclGalleryPictureSource.html +18 -0
- package/docs/classes/EclGalleryShareEvent.html +18 -0
- package/docs/classes/EclGalleryShowEvent.html +18 -0
- package/docs/classes/EclGalleryToggleItemsEvent.html +18 -0
- package/docs/classes/EclInpageNavigationItemClickEvent.html +18 -0
- package/docs/classes/EclInpageNavigationSectionEnterEvent.html +18 -0
- package/docs/classes/EclLanguageService.html +18 -0
- package/docs/classes/EclMenuItemCaretEvent.html +18 -0
- package/docs/classes/EclMenuItemFocusEvent.html +18 -0
- package/docs/classes/EclMenuItemHoverEvent.html +18 -0
- package/docs/classes/EclMenuItemHoverOutEvent.html +18 -0
- package/docs/classes/EclMenuItemKeydownEvent.html +18 -0
- package/docs/classes/EclMenuItemParentFocusEvent.html +18 -0
- package/docs/classes/EclMenuItemSelectEvent.html +18 -0
- package/docs/classes/EclModalCloseEvent.html +18 -0
- package/docs/classes/EclModalOpenEvent.html +18 -0
- package/docs/classes/EclMultiselectMainInputClickEvent.html +18 -0
- package/docs/classes/EclMultiselectOptionClickEvent.html +18 -0
- package/docs/classes/EclMultiselectOptionKeydownEvent.html +18 -0
- package/docs/classes/EclNewsTickerItemEvent.html +18 -0
- package/docs/classes/EclNotificationCloseEvent.html +18 -0
- package/docs/classes/EclPaginationEvent.html +18 -0
- package/docs/classes/EclPaginationItemClickEvent.html +18 -0
- package/docs/classes/EclRangeEvent.html +18 -0
- package/docs/classes/EclRatingChangeEvent.html +18 -0
- package/docs/classes/EclSearchFormEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageClickEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageCloseEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLanguageSelectedEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLoginBoxToggleEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLoginEvent.html +18 -0
- package/docs/classes/EclSiteHeaderLogoClickEvent.html +18 -0
- package/docs/classes/EclSiteHeaderSearchEvent.html +18 -0
- package/docs/classes/EclSiteHeaderSearchToggleEvent.html +18 -0
- package/docs/classes/EclSlideEvent.html +18 -0
- package/docs/classes/EclSocialMediaFollowItemClickEvent.html +18 -0
- package/docs/classes/EclSocialMediaShareItemClickEvent.html +18 -0
- package/docs/classes/EclSortTableEvent.html +18 -0
- package/docs/classes/EclTabSelectEvent.html +18 -0
- package/docs/classes/EclTagRemoveEvent.html +18 -0
- package/docs/classes/EclTimelineItemToggleEvent.html +18 -0
- package/docs/components/EclAccordionComponent.html +21 -3
- package/docs/components/EclAccordionItemComponent.html +22 -4
- package/docs/components/EclAppComponent.html +20 -2
- package/docs/components/EclBannerComponent.html +136 -6
- package/docs/components/EclBlockquoteComponent.html +20 -2
- package/docs/components/EclBreadcrumbComponent.html +22 -9
- package/docs/components/EclBreadcrumbSegmentComponent.html +24 -5
- package/docs/components/EclButtonComponent.html +21 -3
- package/docs/components/EclCardBodyComponent.html +20 -2
- package/docs/components/EclCardComponent.html +20 -2
- package/docs/components/EclCarouselComponent.html +101 -2
- package/docs/components/EclCarouselItemComponent.html +20 -2
- package/docs/components/EclCategoryFilterComponent.html +20 -2
- package/docs/components/EclCategoryFilterItemComponent.html +21 -3
- package/docs/components/EclCategoryFilterListComponent.html +20 -2
- package/docs/components/EclCheckboxHelpComponent.html +20 -2
- package/docs/components/EclCheckboxLabelComponent.html +21 -3
- package/docs/components/EclContentBlockComponent.html +20 -2
- package/docs/components/EclContentItemComponent.html +20 -2
- package/docs/components/EclDateBlockComponent.html +20 -2
- package/docs/components/EclDescriptionListDefinitionComponent.html +21 -3
- package/docs/components/EclExpandableComponent.html +22 -4
- package/docs/components/EclFactFiguresComponent.html +20 -2
- package/docs/components/EclFactFiguresDescriptionComponent.html +20 -2
- package/docs/components/EclFactFiguresItemComponent.html +20 -2
- package/docs/components/EclFactFiguresTitleComponent.html +20 -2
- package/docs/components/EclFactFiguresValueComponent.html +20 -2
- package/docs/components/EclFactFiguresViewAllComponent.html +20 -2
- package/docs/components/EclFeaturedComponent.html +20 -2
- package/docs/components/EclFeaturedItemComponent.html +20 -2
- package/docs/components/EclFeaturedItemDescriptionComponent.html +20 -2
- package/docs/components/EclFeaturedItemFooterComponent.html +20 -2
- package/docs/components/EclFileComponent.html +22 -4
- package/docs/components/EclFileItemComponent.html +20 -2
- package/docs/components/EclFileItemsComponent.html +22 -4
- package/docs/components/EclFileTaxonomyComponent.html +20 -2
- package/docs/components/EclFormGroupComponent.html +20 -2
- package/docs/components/EclFormLabelComponent.html +20 -2
- package/docs/components/EclGalleryComponent.html +27 -48
- package/docs/components/EclGalleryFooterComponent.html +21 -3
- package/docs/components/EclGalleryItemComponent.html +21 -3
- package/docs/components/EclIconComponent.html +20 -2
- package/docs/components/EclInpageNavigationComponent.html +21 -3
- package/docs/components/EclInpageNavigationItemComponent.html +21 -3
- package/docs/components/EclListIllustrationComponent.html +20 -2
- package/docs/components/EclListIllustrationItemComponent.html +20 -2
- package/docs/components/EclLoadingIndicatorComponent.html +20 -2
- package/docs/components/EclMediaContainerComponent.html +22 -4
- package/docs/components/EclMegaMenuComponent.html +47 -25
- package/docs/components/EclMegaMenuFeaturedComponent.html +20 -2
- package/docs/components/EclMegaMenuInfoComponent.html +20 -2
- package/docs/components/EclMegaMenuItemComponent.html +25 -6
- package/docs/components/EclMegaMenuSubitemComponent.html +25 -6
- package/docs/components/EclMenuComponent.html +195 -37
- package/docs/components/EclMenuItemComponent.html +25 -6
- package/docs/components/EclMenuMegaComponent.html +20 -2
- package/docs/components/EclMenuMegaItemComponent.html +21 -3
- package/docs/components/EclModalBodyComponent.html +20 -2
- package/docs/components/EclModalComponent.html +20 -2
- package/docs/components/EclModalFooterComponent.html +20 -2
- package/docs/components/EclModalHeaderComponent.html +22 -4
- package/docs/components/EclMultiselectComponent.html +21 -5
- package/docs/components/EclMultiselectDropdownComponent.html +26 -45
- package/docs/components/EclMultiselectInputComponent.html +22 -4
- package/docs/components/EclMultiselectOptgroupComponent.html +20 -2
- package/docs/components/EclMultiselectOptionComponent.html +20 -2
- package/docs/components/EclNavigationListComponent.html +20 -2
- package/docs/components/EclNavigationListItemComponent.html +20 -2
- package/docs/components/EclNewsTickerComponent.html +22 -4
- package/docs/components/EclNewsTickerItemComponent.html +20 -2
- package/docs/components/EclNotificationComponent.html +22 -4
- package/docs/components/EclPageHeaderComponent.html +20 -2
- package/docs/components/EclPaginationComponent.html +20 -2
- package/docs/components/EclPaginationItemComponent.html +50 -6
- package/docs/components/EclPopoverComponent.html +27 -54
- package/docs/components/EclRadioHelpComponent.html +20 -2
- package/docs/components/EclRadioLabelComponent.html +20 -2
- package/docs/components/EclRangeBubbleComponent.html +20 -2
- package/docs/components/EclRangeValueComponent.html +20 -2
- package/docs/components/EclRatingFieldComponent.html +21 -3
- package/docs/components/EclSearchFormComponent.html +22 -4
- package/docs/components/EclSelectContainerComponent.html +22 -4
- package/docs/components/EclSiteFooterComponent.html +65 -5
- package/docs/components/EclSiteFooterCoreComponent.html +575 -0
- package/docs/components/EclSiteFooterFixedContentEUComponent.html +21 -3
- package/docs/components/EclSiteFooterRowCommonComponent.html +647 -0
- package/docs/components/EclSiteHeaderActionComponent.html +20 -2
- package/docs/components/EclSiteHeaderBannerTopComponent.html +20 -2
- package/docs/components/EclSiteHeaderComponent.html +22 -4
- package/docs/components/EclSiteHeaderCustomActionComponent.html +22 -4
- package/docs/components/EclSiteHeaderEnvironmentComponent.html +20 -2
- package/docs/components/EclSiteHeaderLanguageComponent.html +21 -3
- package/docs/components/EclSiteHeaderLanguagePopoverComponent.html +24 -11
- package/docs/components/EclSiteHeaderLoginComponent.html +21 -3
- package/docs/components/EclSiteHeaderNotificationComponent.html +20 -2
- package/docs/components/EclSiteHeaderSearchComponent.html +22 -4
- package/docs/components/EclSocialMediaFollowComponent.html +20 -2
- package/docs/components/EclSocialMediaFollowItemComponent.html +38 -6
- package/docs/components/EclSocialMediaShareComponent.html +20 -2
- package/docs/components/EclSocialMediaShareItemComponent.html +22 -4
- package/docs/components/EclSplashPageComponent.html +20 -2
- package/docs/components/EclSplashPageLanguageCategoryComponent.html +20 -2
- package/docs/components/EclSplashPageLanguageContainerComponent.html +20 -2
- package/docs/components/EclSplashPageLanguageLinkComponent.html +20 -2
- package/docs/components/EclStickyContainerComponent.html +20 -2
- package/docs/components/EclTabComponent.html +47 -4
- package/docs/components/EclTabLabelComponent.html +20 -2
- package/docs/components/EclTabMoreComponent.html +20 -2
- package/docs/components/EclTableSortButtonComponent.html +21 -3
- package/docs/components/EclTabsComponent.html +22 -4
- package/docs/components/EclTagComponent.html +21 -3
- package/docs/components/EclTimelineComponent.html +20 -2
- package/docs/components/EclTimelineItemComponent.html +22 -4
- package/docs/components/EclTimelineItemTogglerComponent.html +20 -2
- package/docs/dependencies.html +18 -0
- package/docs/directives/ECLBaseDirective.html +18 -0
- package/docs/directives/ECLClickOutsideDirective.html +18 -0
- package/docs/directives/ECLFormLabelOptionalDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionLinkDirective.html +18 -0
- package/docs/directives/EclBannerDescriptionTextDirective.html +18 -0
- package/docs/directives/EclBannerImageDirective.html +18 -0
- package/docs/directives/EclBannerPictureDirective.html +18 -0
- package/docs/directives/EclBannerTitleDirective.html +18 -0
- package/docs/directives/EclBannerTitleLinkDirective.html +18 -0
- package/docs/directives/EclBannerTitleTextDirective.html +18 -0
- package/docs/directives/EclBannerVideoDirective.html +18 -0
- package/docs/directives/EclBlockquoteImageDirective.html +18 -0
- package/docs/directives/EclBlockquotePictureDirective.html +18 -0
- package/docs/directives/EclBreadcrumbContainerDirective.html +18 -0
- package/docs/directives/EclButtonIconContainerDirective.html +18 -0
- package/docs/directives/EclButtonLabelDirective.html +18 -0
- package/docs/directives/EclCardImageDirective.html +18 -0
- package/docs/directives/EclCardPictureDirective.html +18 -0
- package/docs/directives/EclCheckboxDirective.html +18 -0
- package/docs/directives/EclCheckboxInputDirective.html +18 -0
- package/docs/directives/EclContentBlockDescriptionDirective.html +18 -0
- package/docs/directives/EclContentBlockLabelDirective.html +18 -0
- package/docs/directives/EclContentBlockLabelsDirective.html +18 -0
- package/docs/directives/EclContentBlockLinkDirective.html +18 -0
- package/docs/directives/EclContentBlockLinksContainerDirective.html +18 -0
- package/docs/directives/EclContentBlockLinksDirective.html +18 -0
- package/docs/directives/EclContentBlockListContainerDirective.html +18 -0
- package/docs/directives/EclContentBlockListDirective.html +18 -0
- package/docs/directives/EclContentBlockPrimaryMetaDirective.html +18 -0
- package/docs/directives/EclContentBlockPrimaryMetasDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaIconDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetaLabelDirective.html +18 -0
- package/docs/directives/EclContentBlockSecondaryMetasDirective.html +18 -0
- package/docs/directives/EclContentBlockTagDirective.html +18 -0
- package/docs/directives/EclContentBlockTagsDirective.html +18 -0
- package/docs/directives/EclContentBlockTitleDirective.html +18 -0
- package/docs/directives/EclContentItemImageDirective.html +18 -0
- package/docs/directives/EclContentItemPictureDirective.html +18 -0
- package/docs/directives/EclDatePickerDirective.html +18 -0
- package/docs/directives/EclDescriptionListDefinitionItemDirective.html +18 -0
- package/docs/directives/EclDescriptionListDefinitionListDirective.html +18 -0
- package/docs/directives/EclDescriptionListDirective.html +18 -0
- package/docs/directives/EclDescriptionListTermDirective.html +18 -0
- package/docs/directives/EclFeaturedItemFooterLinkDirective.html +18 -0
- package/docs/directives/EclFeaturedItemFooterPictureDirective.html +18 -0
- package/docs/directives/EclFeaturedItemLinkDirective.html +18 -0
- package/docs/directives/EclFeedbackMessageDirective.html +18 -0
- package/docs/directives/EclFileDownloadDirective.html +18 -0
- package/docs/directives/EclFileImageDirective.html +18 -0
- package/docs/directives/EclFilePictureDirective.html +18 -0
- package/docs/directives/EclFilePreviewDirective.html +18 -0
- package/docs/directives/EclFileTitleDirective.html +18 -0
- package/docs/directives/EclFileTranslationDownloadDirective.html +18 -0
- package/docs/directives/EclFileUploadDirective.html +18 -0
- package/docs/directives/EclGalleryMediaDirective.html +18 -0
- package/docs/directives/EclGalleryPictureDirective.html +18 -0
- package/docs/directives/EclGalleryThumbnailDirective.html +18 -0
- package/docs/directives/EclHelpBlockDirective.html +18 -0
- package/docs/directives/EclHiddenDirective.html +18 -0
- package/docs/directives/EclIndicatorDirective.html +18 -0
- package/docs/directives/EclInpageNavigationListDirective.html +18 -0
- package/docs/directives/EclLabelDirective.html +18 -0
- package/docs/directives/EclLinkDirective.html +18 -0
- package/docs/directives/EclLinkIconContainerDirective.html +18 -0
- package/docs/directives/{EclIndicatorDirective-1.html → EclLinkIndicatorDirective.html} +20 -2
- package/docs/directives/EclLinkLabelDirective.html +18 -0
- package/docs/directives/EclListIllustrationIconDirective.html +18 -0
- package/docs/directives/EclListIllustrationImageDirective.html +18 -0
- package/docs/directives/EclListIllustrationPictureDirective.html +18 -0
- package/docs/directives/EclLoadingIndicatorLabelDirective.html +18 -0
- package/docs/directives/EclLoadingIndicatorOverlayDirective.html +18 -0
- package/docs/directives/EclMediaContainerIframeDirective.html +18 -0
- package/docs/directives/EclMediaContainerItemAudioDescriptionDirective.html +18 -0
- package/docs/directives/EclMediaContainerItemDirective.html +18 -0
- package/docs/directives/EclMediaContainerPictureDirective.html +18 -0
- package/docs/directives/EclMegaMenuContainerDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedImageDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedListDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedListItemDirective.html +18 -0
- package/docs/directives/EclMegaMenuFeaturedPictureDirective.html +18 -0
- package/docs/directives/EclMegaMenuListDirective.html +18 -0
- package/docs/directives/EclMegaMenuSpacerDirective.html +18 -0
- package/docs/directives/EclMegaMenuSublistDirective.html +18 -0
- package/docs/directives/EclModalBodyFixedContentDirective.html +18 -0
- package/docs/directives/EclModalCloseDirective.html +18 -0
- package/docs/directives/EclModalTriggerDirective.html +18 -0
- package/docs/directives/EclMultiselectOptionDirective.html +18 -0
- package/docs/directives/EclNavigationListImageDirective.html +18 -0
- package/docs/directives/EclNavigationListPictureDirective.html +18 -0
- package/docs/directives/EclNewsTickerIconDirective.html +18 -0
- package/docs/directives/EclNotificationTitleDirective.html +18 -0
- package/docs/directives/EclOrderedListDirective.html +18 -0
- package/docs/directives/EclOrderedListItemDirective.html +18 -0
- package/docs/directives/EclPageHeaderBackgroundImageDirective.html +18 -0
- package/docs/directives/EclPageHeaderBackgroundPictureDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionContainerDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionPictureDirective.html +18 -0
- package/docs/directives/EclPageHeaderDescriptionThumbnailDirective.html +18 -0
- package/docs/directives/EclPageHeaderInfoDirective.html +18 -0
- package/docs/directives/EclPageHeaderMetaDirective.html +18 -0
- package/docs/directives/EclPageHeaderMetaItemDirective.html +18 -0
- package/docs/directives/EclPageHeaderTitleDirective.html +18 -0
- package/docs/directives/EclPaginationListDirective.html +18 -0
- package/docs/directives/EclPopoverContentDirective.html +18 -0
- package/docs/directives/EclPopoverToggleDirective.html +18 -0
- package/docs/directives/EclRadioDirective.html +18 -0
- package/docs/directives/EclRadioInputDirective.html +18 -0
- package/docs/directives/EclRangeDirective.html +20 -2
- package/docs/directives/EclSelectDirective.html +18 -0
- package/docs/directives/EclSeparatorDirective.html +18 -0
- package/docs/directives/EclSiteFooterColumnDirective.html +19 -1
- package/docs/directives/EclSiteFooterDescriptionDirective.html +18 -0
- package/docs/directives/EclSiteFooterLinkDirective.html +18 -0
- package/docs/directives/EclSiteFooterListDirective.html +18 -0
- package/docs/directives/EclSiteFooterListItemDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoImageDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoItemDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoLinkDirective.html +18 -0
- package/docs/directives/EclSiteFooterLogoListDirective.html +18 -0
- package/docs/directives/EclSiteFooterPictureDirective.html +18 -0
- package/docs/directives/EclSiteFooterRowDirective.html +19 -1
- package/docs/directives/EclSiteFooterSectionDirective.html +359 -8
- package/docs/directives/{EclSiteFooterContentDirective.html → EclSiteFooterSocialMediaDirective.html} +28 -18
- package/docs/directives/EclSiteFooterTitleDirective.html +18 -0
- package/docs/directives/EclSiteFooterTitleLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCtaDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionContentDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderCustomActionTitleDirective.html +18 -0
- package/docs/directives/EclSiteHeaderImageDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLinkDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLoginDescriptionDirective.html +18 -0
- package/docs/directives/EclSiteHeaderLoginSeparatorDirective.html +18 -0
- package/docs/directives/EclSiteHeaderPictureDirective.html +18 -0
- package/docs/directives/EclSocialMediaFollowLinkDirective.html +18 -0
- package/docs/directives/EclSocialMediaShareLinkDirective.html +18 -0
- package/docs/directives/EclSplashPageLanguageItemDirective.html +18 -0
- package/docs/directives/EclSplashPageLanguageListDirective.html +18 -0
- package/docs/directives/EclSplashPageLogoImageDirective.html +18 -0
- package/docs/directives/EclSplashPageLogoLinkDirective.html +18 -0
- package/docs/directives/EclSplashPagePictureDirective.html +18 -0
- package/docs/directives/EclTableBodyDirective.html +18 -0
- package/docs/directives/EclTableCaptionDirective.html +18 -0
- package/docs/directives/EclTableCellDirective.html +18 -0
- package/docs/directives/EclTableCellGroupDirective.html +18 -0
- package/docs/directives/EclTableDirective.html +18 -0
- package/docs/directives/EclTableHeadDirective.html +18 -0
- package/docs/directives/EclTableHeaderDirective.html +18 -0
- package/docs/directives/EclTableResponsiveDirective.html +18 -0
- package/docs/directives/EclTableRowDirective.html +18 -0
- package/docs/directives/EclTagIconExternalDirective.html +18 -0
- package/docs/directives/EclTagSetDirective.html +18 -0
- package/docs/directives/EclTagSetItemDirective.html +18 -0
- package/docs/directives/EclTextAreaDirective.html +18 -0
- package/docs/directives/EclTextInputDirective.html +18 -0
- package/docs/directives/EclTimelineItemLabelDirective.html +18 -0
- package/docs/directives/EclTimelineItemTitleDirective.html +18 -0
- package/docs/directives/EclUnorderedListDirective.html +18 -0
- package/docs/directives/EclUnorderedListItemDirective.html +18 -0
- package/docs/index.html +20 -2
- package/docs/injectables/EclAreaDataService.html +18 -0
- package/docs/injectables/EclDefaultLanguageService.html +18 -0
- package/docs/injectables/EclHeaderMenuComunicationService.html +18 -0
- package/docs/injectables/EclInpageNavigationService.html +18 -0
- package/docs/injectables/EclMegaMenuDataService.html +18 -0
- package/docs/injectables/EclMegaMenuService.html +18 -0
- package/docs/injectables/EclRtlService.html +18 -0
- package/docs/injectables/EclThemeService.html +18 -0
- package/docs/injectables/EclUserDeviceService.html +18 -0
- package/docs/interfaces/EclBreadcrumb.html +18 -0
- package/docs/interfaces/EclCarouselItem.html +18 -0
- package/docs/interfaces/EclCategoryFilterItem.html +18 -0
- package/docs/interfaces/EclFileUpload.html +18 -0
- package/docs/interfaces/EclGalleryItem.html +18 -0
- package/docs/interfaces/EclLanguage.html +18 -0
- package/docs/interfaces/EclMegaMenuItem.html +18 -0
- package/docs/interfaces/EclMenuItem.html +18 -0
- package/docs/interfaces/EclModalResult.html +18 -0
- package/docs/interfaces/EclMultiselectOption.html +18 -0
- package/docs/interfaces/EclTab.html +18 -0
- package/docs/js/libs/bootstrap-native.js +1 -1
- package/docs/js/libs/jszip.min.js +13 -0
- package/docs/js/libs/svg-pan-zoom.min.js +3 -3
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +3 -3
- package/docs/js/menu-wc.js +55 -39
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/routes/routes_index.js +1 -0
- package/docs/js/routes.js +15 -8
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +20 -2
- package/docs/miscellaneous/enumerations.html +18 -0
- package/docs/miscellaneous/functions.html +280 -0
- package/docs/miscellaneous/variables.html +155 -72
- package/docs/modules/EclAccordionModule.html +18 -0
- package/docs/modules/EclAllModule.html +27 -360
- package/docs/modules/EclAppModule.html +18 -0
- package/docs/modules/EclBannerModule.html +18 -0
- package/docs/modules/EclBlockquoteModule.html +18 -0
- package/docs/modules/EclBreadcrumbModule.html +18 -0
- package/docs/modules/EclButtonModule.html +18 -0
- package/docs/modules/EclCardModule.html +18 -0
- package/docs/modules/EclCarouselModule.html +18 -0
- package/docs/modules/EclCategoryFilterModule.html +18 -0
- package/docs/modules/EclCheckboxModule.html +18 -0
- package/docs/modules/EclContentBlockModule.html +18 -0
- package/docs/modules/EclContentItemModule.html +18 -0
- package/docs/modules/EclDateBlockModule.html +18 -0
- package/docs/modules/EclDatePickerModule.html +18 -0
- package/docs/modules/EclExpandableModule.html +18 -0
- package/docs/modules/EclFactFiguresModule.html +18 -0
- package/docs/modules/EclFeaturedModule.html +18 -0
- package/docs/modules/EclFeedbackMessageModule.html +18 -0
- package/docs/modules/EclFileModule.html +18 -0
- package/docs/modules/EclFileUploadModule.html +18 -0
- package/docs/modules/EclFormGroupModule.html +18 -0
- package/docs/modules/EclFormLabelModule.html +18 -0
- package/docs/modules/EclGalleryModule.html +18 -0
- package/docs/modules/EclHelpBlockModule.html +18 -0
- package/docs/modules/EclHiddenModule.html +18 -0
- package/docs/modules/EclIconModule.html +18 -0
- package/docs/modules/EclInpageNavigationModule.html +18 -0
- package/docs/modules/EclLabelModule.html +18 -0
- package/docs/modules/EclLinkModule.html +24 -3
- package/docs/modules/EclListIllustrationModule.html +18 -0
- package/docs/modules/EclListModule.html +18 -0
- package/docs/modules/EclLoadingIndicatorModule.html +18 -0
- package/docs/modules/EclMediaContainerModule.html +18 -0
- package/docs/modules/EclMegaMenuModule.html +18 -0
- package/docs/modules/EclMenuModule.html +18 -0
- package/docs/modules/EclModalModule.html +18 -0
- package/docs/modules/EclMultiselectModule.html +18 -0
- package/docs/modules/EclNavigationListModule.html +18 -0
- package/docs/modules/EclNewsTickerModule.html +18 -0
- package/docs/modules/EclNotificationModule.html +18 -0
- package/docs/modules/EclPageHeaderModule.html +18 -0
- package/docs/modules/EclPaginationModule.html +18 -0
- package/docs/modules/EclPopoverModule.html +18 -0
- package/docs/modules/EclRadioModule.html +18 -0
- package/docs/modules/EclRangeModule.html +18 -0
- package/docs/modules/EclRatingFieldModule.html +18 -0
- package/docs/modules/EclSearchFormModule.html +18 -0
- package/docs/modules/EclSelectModule.html +18 -0
- package/docs/modules/EclSeparatorModule.html +18 -0
- package/docs/modules/EclSiteFooterModule.html +18 -0
- package/docs/modules/EclSiteHeaderModule.html +18 -0
- package/docs/modules/EclSocialMediaFollowModule.html +18 -0
- package/docs/modules/EclSocialMediaShareModule.html +18 -0
- package/docs/modules/EclSplashPageModule.html +18 -0
- package/docs/modules/EclStickyContainerModule.html +18 -0
- package/docs/modules/EclTableModule.html +18 -0
- package/docs/modules/EclTabsModule.html +18 -0
- package/docs/modules/EclTagModule.html +18 -0
- package/docs/modules/EclTextAreaModule.html +18 -0
- package/docs/modules/EclTextInputModule.html +18 -0
- package/docs/modules/EclTimelineModule.html +18 -0
- package/docs/modules.html +18 -0
- package/docs/overview.html +29 -1
- package/docs/pipes/BoldTextPipe.html +18 -0
- package/docs/properties.html +19 -1
- package/docs/routes.html +204 -0
- package/docs/template-playground/default-templates.json +192 -0
- package/docs/template-playground/hbs-render.service.ts +212 -0
- package/docs/template-playground/main.ts +9 -0
- package/docs/template-playground/template-editor.service.ts +173 -0
- package/docs/template-playground/template-playground.component.ts +614 -0
- package/docs/template-playground/template-playground.module.ts +29 -0
- package/docs/template-playground/zip-export.service.ts +86 -0
- package/docs/template-playground-app/app.js +1389 -0
- package/docs/template-playground-app/index.html +462 -0
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs +14 -14
- package/fesm2022/eui-ecl-components-ecl-accordion.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-app.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-app.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-banner.mjs +109 -81
- package/fesm2022/eui-ecl-components-ecl-banner.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-blockquote.mjs +13 -13
- package/fesm2022/eui-ecl-components-ecl-blockquote.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs +22 -23
- package/fesm2022/eui-ecl-components-ecl-breadcrumb.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-button.mjs +18 -18
- package/fesm2022/eui-ecl-components-ecl-button.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-card.mjs +16 -16
- package/fesm2022/eui-ecl-components-ecl-card.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs +53 -31
- package/fesm2022/eui-ecl-components-ecl-carousel.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-category-filter.mjs +15 -15
- package/fesm2022/eui-ecl-components-ecl-category-filter.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-checkbox.mjs +18 -18
- package/fesm2022/eui-ecl-components-ecl-checkbox.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-content-block.mjs +58 -58
- package/fesm2022/eui-ecl-components-ecl-content-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-content-item.mjs +13 -13
- package/fesm2022/eui-ecl-components-ecl-content-item.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-date-block.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-date-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-date-picker.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-date-picker.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-expandable.mjs +10 -10
- package/fesm2022/eui-ecl-components-ecl-expandable.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs +22 -22
- package/fesm2022/eui-ecl-components-ecl-fact-figures.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-featured.mjs +28 -26
- package/fesm2022/eui-ecl-components-ecl-featured.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-feedback-message.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-feedback-message.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-file-upload.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-file-upload.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-file.mjs +41 -43
- package/fesm2022/eui-ecl-components-ecl-file.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-form-group.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-form-group.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-form-label.mjs +10 -10
- package/fesm2022/eui-ecl-components-ecl-form-label.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-gallery.mjs +32 -30
- package/fesm2022/eui-ecl-components-ecl-gallery.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-help-block.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-help-block.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-icon.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-icon.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs +20 -20
- package/fesm2022/eui-ecl-components-ecl-inpage-navigation.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-label.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-label.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-link.mjs +21 -21
- package/fesm2022/eui-ecl-components-ecl-link.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs +19 -19
- package/fesm2022/eui-ecl-components-ecl-list-illustration.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-list.mjs +33 -33
- package/fesm2022/eui-ecl-components-ecl-list.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs +13 -13
- package/fesm2022/eui-ecl-components-ecl-loading-indicator.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs +22 -22
- package/fesm2022/eui-ecl-components-ecl-media-container.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs +66 -64
- package/fesm2022/eui-ecl-components-ecl-mega-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-menu.mjs +54 -37
- package/fesm2022/eui-ecl-components-ecl-menu.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-modal.mjs +29 -29
- package/fesm2022/eui-ecl-components-ecl-modal.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs +34 -34
- package/fesm2022/eui-ecl-components-ecl-multiselect.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-navigation-list.mjs +16 -16
- package/fesm2022/eui-ecl-components-ecl-navigation-list.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs +17 -17
- package/fesm2022/eui-ecl-components-ecl-news-ticker.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-notification.mjs +14 -14
- package/fesm2022/eui-ecl-components-ecl-notification.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-page-header.mjs +37 -37
- package/fesm2022/eui-ecl-components-ecl-page-header.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-pagination.mjs +27 -21
- package/fesm2022/eui-ecl-components-ecl-pagination.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-popover.mjs +21 -21
- package/fesm2022/eui-ecl-components-ecl-popover.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-radio.mjs +16 -16
- package/fesm2022/eui-ecl-components-ecl-radio.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-range.mjs +14 -14
- package/fesm2022/eui-ecl-components-ecl-range.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-rating-field.mjs +9 -9
- package/fesm2022/eui-ecl-components-ecl-rating-field.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-search-form.mjs +10 -10
- package/fesm2022/eui-ecl-components-ecl-search-form.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-select.mjs +14 -14
- package/fesm2022/eui-ecl-components-ecl-select.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-separator.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-separator.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs +273 -204
- package/fesm2022/eui-ecl-components-ecl-site-footer.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs +100 -106
- package/fesm2022/eui-ecl-components-ecl-site-header.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs +21 -19
- package/fesm2022/eui-ecl-components-ecl-social-media-follow.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-social-media-share.mjs +16 -16
- package/fesm2022/eui-ecl-components-ecl-social-media-share.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-splash-page.mjs +31 -31
- package/fesm2022/eui-ecl-components-ecl-splash-page.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-sticky-container.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-sticky-container.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-table.mjs +36 -36
- package/fesm2022/eui-ecl-components-ecl-table.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs +26 -24
- package/fesm2022/eui-ecl-components-ecl-tabs.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-tag.mjs +18 -18
- package/fesm2022/eui-ecl-components-ecl-tag.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-text-area.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-text-area.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-text-input.mjs +7 -7
- package/fesm2022/eui-ecl-components-ecl-text-input.mjs.map +1 -1
- package/fesm2022/eui-ecl-components-ecl-timeline.mjs +22 -22
- package/fesm2022/eui-ecl-components-ecl-timeline.mjs.map +1 -1
- package/fesm2022/eui-ecl-core.mjs +165 -151
- package/fesm2022/eui-ecl-core.mjs.map +1 -1
- package/fesm2022/eui-ecl-shared.mjs +3 -3
- package/fesm2022/eui-ecl-shared.mjs.map +1 -1
- package/fesm2022/eui-ecl.mjs +184 -304
- package/fesm2022/eui-ecl.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +53 -54
- package/docs/components/EclSiteFooterFixedContentECComponent.html +0 -571
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-range.mjs","sources":["../../components/ecl-range/ecl-range-bubble.component.ts","../../components/ecl-range/ecl-range-bubble.component.html","../../components/ecl-range/ecl-range-value.component.ts","../../components/ecl-range/ecl-range-value.component.html","../../components/ecl-range/events/ecl-range.event.ts","../../components/ecl-range/ecl-range.directive.ts","../../components/ecl-range/ecl-range.module.ts","../../components/ecl-range/index.ts","../../components/ecl-range/eui-ecl-components-ecl-range.ts"],"sourcesContent":["import { Component, ElementRef, HostBinding, Input, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing a bubble tooltip shown above a range input,\n * used to display the current value with ECL styling.\n */\n@Component({\n\tselector: 'ecl-range-bubble',\n\ttemplateUrl: './ecl-range-bubble.component.html',\n})\nexport class EclRangeBubbleComponent extends ECLBaseDirective {\n\tel = inject(ElementRef);\n\n\t/**\n\t * Value displayed inside the bubble.\n\t */\n\t@Input() value: number;\n\n\t/**\n\t * Returns the CSS classes applied to the host element.\n\t * Always includes `ecl-range__bubble` and optionally adds the visible modifier.\n\t */\n\t@HostBinding('class')\n\tget cssClasses(): string {\n\t\treturn [\n\t\t\tsuper.getCssClasses('ecl-range__bubble'),\n\t\t\tthis.isVisible ? 'ecl-range__bubble--visible' : '',\n\t\t].join(' ').trim();\n\t}\n\n\t/**\n\t * Horizontal offset in pixels for positioning the bubble.\n\t * Applied as the left style property of the host element.\n\t */\n\t@HostBinding('style.left.px') left: number;\n\n\t/**\n\t * Controls the visibility of the bubble.\n\t * Adds the `ecl-range__bubble--visible` class when true.\n\t */\n\tisVisible = false;\n}\n","<span class=\"ecl-range__value-bubble\">{{value}}</span>","import { Component, HostBinding, Input } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing the value label displayed next to a range input.\n * Applies ECL styling for the value element.\n */\n@Component({\n selector: 'ecl-range-value',\n templateUrl: './ecl-range-value.component.html',\n imports: [TranslateModule],\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclRangeValueComponent extends ECLBaseDirective {\n /**\n * Value to display next to the range input.\n */\n @Input() value: number;\n\n /**\n * ID attribute applied to the component's host element.\n */\n @Input() @HostBinding('attr.id') id: string;\n\n /**\n * Returns the CSS classes applied to the host element.\n * Adds the base `ecl-range__value` class for styling.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-range__value')].join(' ').trim();\n }\n}\n","{{ 'ecl.common.VALUE' | translate }}: <span class=\"ecl-range__value-current\"> {{ value }} </span>\n","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted by the ECL range directive\n * whenever the range value changes.\n */\nexport class EclRangeEvent extends EclBaseEvent {\n /**\n * The current numeric value of the range input.\n */\n constructor(public value: number) {\n super();\n }\n}\n","import { Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output, ViewContainerRef, booleanAttribute, ChangeDetectorRef, inject } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subject, distinctUntilChanged, fromEvent, takeUntil } from 'rxjs';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeEvent } from './events/ecl-range.event';\n\n/**\n * Directive enhancing native input[type=range] with ECL styles and behavior.\n * Adds value display, bubble indicator, RTL support and integration with reactive forms.\n */\n@Directive({\n selector: 'input[eclRange]',\n})\nexport class EclRangeDirective extends ECLBaseDirective implements OnInit, OnDestroy {\n protected ngControl = inject(NgControl, { optional: true, self: true });\n\n /**\n * Defines the size of the range component.\n * Adds a corresponding size class like `ecl-range--m`.\n */\n @Input() eclSize = 'm';\n\n /**\n * Initial value for the range input when used standalone.\n */\n @Input() value: string;\n\n /**\n * ID assigned to the projected ECL range value component.\n */\n @Input() rangeValueId: string;\n\n /**\n * Adds the `ecl-range--invalid` class when true.\n */\n @Input({ transform: booleanAttribute }) isInvalid = false;\n\n /**\n * Enables or disables the display of a value label.\n */\n @Input({ transform: booleanAttribute }) hasValueLabel = true;\n\n /**\n * Emits when the range value changes.\n */\n @Output() rangeChange = new EventEmitter<EclRangeEvent>();\n\n private rangeValueComponent: EclRangeValueComponent;\n private rangeBubbleComponent: EclRangeBubbleComponent;\n private isRtl = false;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n private viewContainerRef = inject(ViewContainerRef);\n private el = inject(ElementRef);\n private eclRtlService = inject(EclRtlService);\n private cd = inject(ChangeDetectorRef);\n\n /**\n * Returns the CSS classes applied to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-range'), this.eclSize ? `ecl-range--${this.eclSize}` : ''].join(' ').trim();\n }\n\n /**\n * Returns whether the component is in an invalid state.\n * Checks reactive form control if available, or uses `isInvalid` input.\n */\n @HostBinding('class.ecl-range--invalid')\n get invalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && this.ngControl.touched;\n } else {\n return this.isInvalid;\n }\n }\n\n /**\n * Handles native input events on the range element\n * when not used with reactive forms.\n */\n @HostListener('input', ['$event'])\n onInput(evt: InputEvent): void {\n if (!this.ngControl) {\n const target = evt.target as HTMLInputElement;\n this.updateRangeValue(target.value);\n }\n }\n\n /**\n * Angular lifecycle hook.\n * Initializes dynamic components and event listeners.\n */\n ngOnInit(): void {\n this.createRangeValueComponent();\n this.initializeRangeValueComponent();\n this.initializeEventListeners();\n this.observeReactiveFormValueChanges();\n this.handleRtlChangeState();\n }\n\n /**\n * Angular lifecycle hook.\n * Cleans up subscriptions on destroy.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n private handleRtlChangeState(): void {\n this.eclRtlService.currentRtlState$.pipe(takeUntil(this.destroy$)).subscribe((rtlState) => {\n this.isRtl = rtlState;\n });\n }\n\n private createRangeValueComponent(): void {\n const componentRangeBubbleRef = this.viewContainerRef.createComponent(EclRangeBubbleComponent);\n const componentRangeValueRef = this.viewContainerRef.createComponent(EclRangeValueComponent);\n this.rangeBubbleComponent = componentRangeBubbleRef.instance;\n this.rangeValueComponent = componentRangeValueRef.instance;\n if (this.rangeValueId) {\n this.rangeValueComponent.id = this.rangeValueId;\n }\n }\n\n private initializeRangeValueComponent(): void {\n const initialValue = this.ngControl ? this.ngControl.value : this.value;\n this.updateRangeValue(initialValue);\n }\n\n private observeReactiveFormValueChanges(): void {\n this.ngControl?.valueChanges.pipe(distinctUntilChanged()).subscribe((value: string) => {\n this.updateRangeValue(value);\n });\n }\n\n private updateRangeValue(value: string): void {\n const numberValue = parseInt(value, 10);\n\n this.rangeBubbleComponent.value = numberValue;\n this.rangeValueComponent.value = numberValue;\n\n this.rangeChange.next(new EclRangeEvent(numberValue));\n }\n\n private initializeEventListeners(): void {\n const rangeElement = this.el.nativeElement;\n\n const mouseEnter$ = fromEvent(rangeElement, 'mouseenter');\n const mouseLeave$ = fromEvent(rangeElement, 'mouseleave');\n const rangeValueChange$ = fromEvent(rangeElement, 'input');\n\n mouseEnter$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.rangeBubbleComponent.isVisible = true;\n this.cd.detectChanges();\n this.recalculateBubblePosition();\n });\n\n rangeValueChange$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.recalculateBubblePosition();\n });\n\n mouseLeave$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.rangeBubbleComponent.isVisible = false;\n });\n }\n\n private recalculateBubblePosition(): void {\n\n const halfThumbWidth = 8;\n const halfLabelWidth = this.rangeBubbleComponent.el.nativeElement.offsetWidth / 2;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const center = rect.width / 2;\n\n const min = this.el.nativeElement.min ? this.el.nativeElement.min : 0;\n const max = this.el.nativeElement.max;\n const percentOfRange =\n (this.el.nativeElement.value - min) / (max - min);\n\n const valuePxPosition = percentOfRange * rect.width;\n const distFromCenter = valuePxPosition - center;\n const percentDistFromCenter = distFromCenter / center;\n\n const offset = percentDistFromCenter * halfThumbWidth;\n if (this.isRtl) {\n this.rangeBubbleComponent.left = this.el.nativeElement.offsetLeft + rect.width - valuePxPosition - halfLabelWidth + offset;\n } else {\n this.rangeBubbleComponent.left = valuePxPosition - halfLabelWidth - offset + this.el.nativeElement.offsetLeft;\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeDirective } from './ecl-range.directive';\n\nconst COMPONENTS = [EclRangeDirective, EclRangeValueComponent, EclRangeBubbleComponent];\n\n/**\n * Module that provides the EclRange directive and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_RANGE} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclRangeModule {}\n","import { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeDirective } from './ecl-range.directive';\n\nexport * from './ecl-range.module';\nexport * from './ecl-range.directive';\nexport * from './ecl-range-value.component';\nexport * from './ecl-range-bubble.component';\nexport * from './events/ecl-range.event';\n\nexport const EUI_ECL_RANGE = [\n EclRangeDirective, EclRangeValueComponent, EclRangeBubbleComponent,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;AAGG;AAKG,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;AAJ7D,IAAA,WAAA,GAAA;;AAKC,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AAyBvB;;;AAGG;QACH,IAAA,CAAA,SAAS,GAAG,KAAK;AACjB,IAAA;AAvBA;;;AAGG;AACH,IAAA,IACI,UAAU,GAAA;QACb,OAAO;AACN,YAAA,KAAK,CAAC,aAAa,CAAC,mBAAmB,CAAC;YACxC,IAAI,CAAC,SAAS,GAAG,4BAA4B,GAAG,EAAE;AAClD,SAAA,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IACnB;8GAlBY,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,QAAA,EAAA,IAAA,EAAA,uBAAuB,mNCXpC,0DAAsD,EAAA,CAAA,CAAA;;2FDWzC,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;+BACC,kBAAkB,EAAA,QAAA,EAAA,0DAAA,EAAA;8BASnB,KAAK,EAAA,CAAA;sBAAb;gBAOG,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,OAAO;gBAYU,IAAI,EAAA,CAAA;sBAAjC,WAAW;uBAAC,eAAe;;;AE/B7B;;;AAGG;AAaG,MAAO,sBAAuB,SAAQ,gBAAgB,CAAA;AAWxD;;;AAGG;AACH,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,C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AAuB;;;ACXtE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-range.mjs","sources":["../../components/ecl-range/ecl-range-bubble.component.ts","../../components/ecl-range/ecl-range-bubble.component.html","../../components/ecl-range/ecl-range-value.component.ts","../../components/ecl-range/ecl-range-value.component.html","../../components/ecl-range/events/ecl-range.event.ts","../../components/ecl-range/ecl-range.directive.ts","../../components/ecl-range/ecl-range.module.ts","../../components/ecl-range/index.ts","../../components/ecl-range/eui-ecl-components-ecl-range.ts"],"sourcesContent":["import { Component, ElementRef, HostBinding, Input, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing a bubble tooltip shown above a range input,\n * used to display the current value with ECL styling.\n */\n@Component({\n\tselector: 'ecl-range-bubble',\n\ttemplateUrl: './ecl-range-bubble.component.html',\n})\nexport class EclRangeBubbleComponent extends ECLBaseDirective {\n\tel = inject(ElementRef);\n\n\t/**\n\t * Value displayed inside the bubble.\n\t */\n\t@Input() value: number;\n\n\t/**\n\t * Returns the CSS classes applied to the host element.\n\t * Always includes `ecl-range__bubble` and optionally adds the visible modifier.\n\t */\n\t@HostBinding('class')\n\tget cssClasses(): string {\n\t\treturn [\n\t\t\tsuper.getCssClasses('ecl-range__bubble'),\n\t\t\tthis.isVisible ? 'ecl-range__bubble--visible' : '',\n\t\t].join(' ').trim();\n\t}\n\n\t/**\n\t * Horizontal offset in pixels for positioning the bubble.\n\t * Applied as the left style property of the host element.\n\t */\n\t@HostBinding('style.left.px') left: number;\n\n\t/**\n\t * Controls the visibility of the bubble.\n\t * Adds the `ecl-range__bubble--visible` class when true.\n\t */\n\tisVisible = false;\n}\n","<span class=\"ecl-range__value-bubble\">{{value}}</span>","import { Component, HostBinding, Input } from '@angular/core';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Component representing the value label displayed next to a range input.\n * Applies ECL styling for the value element.\n */\n@Component({\n selector: 'ecl-range-value',\n templateUrl: './ecl-range-value.component.html',\n imports: [TranslateModule],\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class EclRangeValueComponent extends ECLBaseDirective {\n /**\n * Value to display next to the range input.\n */\n @Input() value: number;\n\n /**\n * ID attribute applied to the component's host element.\n */\n @Input() @HostBinding('attr.id') id: string;\n\n /**\n * Returns the CSS classes applied to the host element.\n * Adds the base `ecl-range__value` class for styling.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-range__value')].join(' ').trim();\n }\n}\n","{{ 'ecl.common.VALUE' | translate }}: <span class=\"ecl-range__value-current\"> {{ value }} </span>\n","import { EclBaseEvent } from '@eui/ecl/core';\n\n/**\n * Event emitted by the ECL range directive\n * whenever the range value changes.\n */\nexport class EclRangeEvent extends EclBaseEvent {\n /**\n * The current numeric value of the range input.\n */\n constructor(public value: number) {\n super();\n }\n}\n","import { Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output, ViewContainerRef, booleanAttribute, ChangeDetectorRef, inject } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subject, distinctUntilChanged, fromEvent, takeUntil } from 'rxjs';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclRtlService } from '@eui/ecl/core';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeEvent } from './events/ecl-range.event';\n\n/**\n * Directive enhancing native input[type=range] with ECL styles and behavior.\n * Adds value display, bubble indicator, RTL support and integration with reactive forms.\n */\n@Directive({\n selector: 'input[eclRange]',\n})\nexport class EclRangeDirective extends ECLBaseDirective implements OnInit, OnDestroy {\n protected ngControl = inject(NgControl, { optional: true, self: true });\n\n /**\n * Defines the size of the range component.\n * Adds a corresponding size class like `ecl-range--m`.\n */\n @Input() eclSize = 'm';\n\n /**\n * Initial value for the range input when used standalone.\n */\n @Input() value: string;\n\n /**\n * ID assigned to the projected ECL range value component.\n */\n @Input() rangeValueId: string;\n\n /**\n * Adds the `ecl-range--invalid` class when true.\n */\n @Input({ transform: booleanAttribute }) isInvalid = false;\n\n /**\n * Enables or disables the display of a value label.\n */\n @Input({ transform: booleanAttribute }) hasValueLabel = true;\n\n /**\n * Emits when the range value changes.\n */\n @Output() rangeChange = new EventEmitter<EclRangeEvent>();\n\n private rangeValueComponent: EclRangeValueComponent;\n private rangeBubbleComponent: EclRangeBubbleComponent;\n private isRtl = false;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n private viewContainerRef = inject(ViewContainerRef);\n private el = inject(ElementRef);\n private eclRtlService = inject(EclRtlService);\n private cd = inject(ChangeDetectorRef);\n\n /**\n * Returns the CSS classes applied to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-range'), this.eclSize ? `ecl-range--${this.eclSize}` : ''].join(' ').trim();\n }\n\n /**\n * Returns whether the component is in an invalid state.\n * Checks reactive form control if available, or uses `isInvalid` input.\n */\n @HostBinding('class.ecl-range--invalid')\n get invalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && this.ngControl.touched;\n } else {\n return this.isInvalid;\n }\n }\n\n /**\n * Handles native input events on the range element\n * when not used with reactive forms.\n */\n @HostListener('input', ['$any($event)'])\n onInput(evt: InputEvent): void {\n if (!this.ngControl) {\n const target = evt.target as HTMLInputElement;\n this.updateRangeValue(target.value);\n }\n }\n\n /**\n * Angular lifecycle hook.\n * Initializes dynamic components and event listeners.\n */\n ngOnInit(): void {\n this.createRangeValueComponent();\n this.initializeRangeValueComponent();\n this.initializeEventListeners();\n this.observeReactiveFormValueChanges();\n this.handleRtlChangeState();\n }\n\n /**\n * Angular lifecycle hook.\n * Cleans up subscriptions on destroy.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n private handleRtlChangeState(): void {\n this.eclRtlService.currentRtlState$.pipe(takeUntil(this.destroy$)).subscribe((rtlState) => {\n this.isRtl = rtlState;\n });\n }\n\n private createRangeValueComponent(): void {\n const componentRangeBubbleRef = this.viewContainerRef.createComponent(EclRangeBubbleComponent);\n const componentRangeValueRef = this.viewContainerRef.createComponent(EclRangeValueComponent);\n this.rangeBubbleComponent = componentRangeBubbleRef.instance;\n this.rangeValueComponent = componentRangeValueRef.instance;\n if (this.rangeValueId) {\n this.rangeValueComponent.id = this.rangeValueId;\n }\n }\n\n private initializeRangeValueComponent(): void {\n const initialValue = this.ngControl ? this.ngControl.value : this.value;\n this.updateRangeValue(initialValue);\n }\n\n private observeReactiveFormValueChanges(): void {\n this.ngControl?.valueChanges.pipe(distinctUntilChanged()).subscribe((value: string) => {\n this.updateRangeValue(value);\n });\n }\n\n private updateRangeValue(value: string): void {\n const numberValue = parseInt(value, 10);\n\n this.rangeBubbleComponent.value = numberValue;\n this.rangeValueComponent.value = numberValue;\n\n this.rangeChange.next(new EclRangeEvent(numberValue));\n }\n\n private initializeEventListeners(): void {\n const rangeElement = this.el.nativeElement;\n\n const mouseEnter$ = fromEvent(rangeElement, 'mouseenter');\n const mouseLeave$ = fromEvent(rangeElement, 'mouseleave');\n const rangeValueChange$ = fromEvent(rangeElement, 'input');\n\n mouseEnter$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.rangeBubbleComponent.isVisible = true;\n this.cd.detectChanges();\n this.recalculateBubblePosition();\n });\n\n rangeValueChange$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.recalculateBubblePosition();\n });\n\n mouseLeave$.pipe(takeUntil(this.destroy$)).subscribe(() => {\n this.rangeBubbleComponent.isVisible = false;\n });\n }\n\n private recalculateBubblePosition(): void {\n\n const halfThumbWidth = 8;\n const halfLabelWidth = this.rangeBubbleComponent.el.nativeElement.offsetWidth / 2;\n\n const rect = this.el.nativeElement.getBoundingClientRect();\n const center = rect.width / 2;\n\n const min = this.el.nativeElement.min ? this.el.nativeElement.min : 0;\n const max = this.el.nativeElement.max;\n const percentOfRange =\n (this.el.nativeElement.value - min) / (max - min);\n\n const valuePxPosition = percentOfRange * rect.width;\n const distFromCenter = valuePxPosition - center;\n const percentDistFromCenter = distFromCenter / center;\n\n const offset = percentDistFromCenter * halfThumbWidth;\n if (this.isRtl) {\n this.rangeBubbleComponent.left = this.el.nativeElement.offsetLeft + rect.width - valuePxPosition - halfLabelWidth + offset;\n } else {\n this.rangeBubbleComponent.left = valuePxPosition - halfLabelWidth - offset + this.el.nativeElement.offsetLeft;\n }\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeDirective } from './ecl-range.directive';\n\nconst COMPONENTS = [EclRangeDirective, EclRangeValueComponent, EclRangeBubbleComponent];\n\n/**\n * Module that provides the EclRange directive and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_RANGE} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclRangeModule {}\n","import { EclRangeBubbleComponent } from './ecl-range-bubble.component';\nimport { EclRangeValueComponent } from './ecl-range-value.component';\nimport { EclRangeDirective } from './ecl-range.directive';\n\nexport * from './ecl-range.module';\nexport * from './ecl-range.directive';\nexport * from './ecl-range-value.component';\nexport * from './ecl-range-bubble.component';\nexport * from './events/ecl-range.event';\n\nexport const EUI_ECL_RANGE = [\n EclRangeDirective, EclRangeValueComponent, EclRangeBubbleComponent,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;AAGG;AAKG,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;AAJ7D,IAAA,WAAA,GAAA;;AAKC,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AAyBvB;;;AAGG;QACH,IAAA,CAAA,SAAS,GAAG,KAAK;AACjB,IAAA;AAvBA;;;AAGG;AACH,IAAA,IACI,UAAU,GAAA;QAC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AAC,iBAAiB,EAAE,sBAAsB,EAAE,uBAAuB,CAAC;AAEvF;;;;AAIG;MAKU,cAAc,CAAA;qHAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;sHAAd,cAAc,EAAA,OAAA,EAAA,CAXP,iBAAiB,EAAE,sBAAsB,EAAE,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAAlE,iBAAiB,EAAE,sBAAsB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAWzE,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAXY,sBAAsB,CAAA,EAAA,CAAA,CAAA;;kGAWhD,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,iBAAA;;;ACLM,MAAM,aAAa,GAAG;IACzB,iBAAiB,EAAE,sBAAsB,EAAE,uBAAuB;;;ACXtE;;AAEG;;;;"}
|
|
@@ -3,7 +3,7 @@ import { forwardRef, EventEmitter, booleanAttribute, numberAttribute, HostBindin
|
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { EclBaseEvent, ECLBaseDirective } from '@eui/ecl/core';
|
|
5
5
|
import * as i1 from '@eui/ecl/components/ecl-icon';
|
|
6
|
-
import {
|
|
6
|
+
import { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';
|
|
7
7
|
|
|
8
8
|
class EclRatingChangeEvent extends EclBaseEvent {
|
|
9
9
|
constructor(value) {
|
|
@@ -91,12 +91,12 @@ class EclRatingFieldComponent extends ECLBaseDirective {
|
|
|
91
91
|
registerOnTouched(fn) {
|
|
92
92
|
this.onTouched = fn;
|
|
93
93
|
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
95
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0-next.5", type: EclRatingFieldComponent, isStandalone: true, selector: "ecl-rating-field", inputs: { name: "name", numberOfStars: ["numberOfStars", "numberOfStars", numberAttribute], rating: ["rating", "rating", numberAttribute], disabled: ["disabled", "disabled", booleanAttribute] }, outputs: { ratingChange: "ratingChange" }, host: { properties: { "attr.disabled": "this.disabled", "class": "this.cssClasses" } }, providers: [ECL_RATINGFIELD_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "@for(n of numbers;track n) {\n <input\n type=\"radio\"\n id=\"{{ name }}-{{ n }}\"\n [name]=\"name\"\n class=\"ecl-rating-field__input\"\n [value]=\"n\"\n required=\"\"\n [attr.checked]=\"rating === n ? true : undefined\"\n [attr.disabled]=\"disabled ? true : undefined\"\n (click)=\"onRadioClick(n)\" />\n <label class=\"ecl-rating-field__label\" for=\"{{ name }}-{{ n }}\">\n <span class=\"ecl-u-sr-only\">{{ n }} stars</span>\n <ecl-icon icon=\"star-filled\" class=\"ecl-rating-field__icon-filled\" size=\"l\"> </ecl-icon>\n <ecl-icon icon=\"star-outline\" class=\"ecl-rating-field__icon-outline\" size=\"l\"> </ecl-icon>\n </label>\n}\n", dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }] }); }
|
|
96
96
|
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldComponent, decorators: [{
|
|
98
98
|
type: Component,
|
|
99
|
-
args: [{ selector: 'ecl-rating-field', imports: [
|
|
99
|
+
args: [{ selector: 'ecl-rating-field', imports: [...EUI_ECL_ICON], providers: [ECL_RATINGFIELD_VALUE_ACCESSOR], template: "@for(n of numbers;track n) {\n <input\n type=\"radio\"\n id=\"{{ name }}-{{ n }}\"\n [name]=\"name\"\n class=\"ecl-rating-field__input\"\n [value]=\"n\"\n required=\"\"\n [attr.checked]=\"rating === n ? true : undefined\"\n [attr.disabled]=\"disabled ? true : undefined\"\n (click)=\"onRadioClick(n)\" />\n <label class=\"ecl-rating-field__label\" for=\"{{ name }}-{{ n }}\">\n <span class=\"ecl-u-sr-only\">{{ n }} stars</span>\n <ecl-icon icon=\"star-filled\" class=\"ecl-rating-field__icon-filled\" size=\"l\"> </ecl-icon>\n <ecl-icon icon=\"star-outline\" class=\"ecl-rating-field__icon-outline\" size=\"l\"> </ecl-icon>\n </label>\n}\n" }]
|
|
100
100
|
}], propDecorators: { name: [{
|
|
101
101
|
type: Input
|
|
102
102
|
}], numberOfStars: [{
|
|
@@ -124,11 +124,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
124
124
|
* @deprecated Use {@link EUI_ECL_RATING_FIELD} instead.
|
|
125
125
|
*/
|
|
126
126
|
class EclRatingFieldModule {
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
129
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
128
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldModule, imports: [EclRatingFieldComponent], exports: [EclRatingFieldComponent] }); }
|
|
129
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldModule, imports: [EclRatingFieldComponent] }); }
|
|
130
130
|
}
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclRatingFieldModule, decorators: [{
|
|
132
132
|
type: NgModule,
|
|
133
133
|
args: [{
|
|
134
134
|
imports: [EclRatingFieldComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-rating-field.mjs","sources":["../../components/ecl-rating-field/events/ecl-rating-change.event.ts","../../components/ecl-rating-field/ecl-rating-field.component.ts","../../components/ecl-rating-field/ecl-rating-field.component.html","../../components/ecl-rating-field/ecl-rating-field.module.ts","../../components/ecl-rating-field/index.ts","../../components/ecl-rating-field/eui-ecl-components-ecl-rating-field.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\nexport class EclRatingChangeEvent extends EclBaseEvent {\n constructor(public readonly value: number) {\n super();\n }\n}","import { booleanAttribute, Component, EventEmitter, forwardRef, HostBinding, Input, numberAttribute, Output, Provider } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclRatingChangeEvent } from './events/ecl-rating-change.event';\nimport {
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-rating-field.mjs","sources":["../../components/ecl-rating-field/events/ecl-rating-change.event.ts","../../components/ecl-rating-field/ecl-rating-field.component.ts","../../components/ecl-rating-field/ecl-rating-field.component.html","../../components/ecl-rating-field/ecl-rating-field.module.ts","../../components/ecl-rating-field/index.ts","../../components/ecl-rating-field/eui-ecl-components-ecl-rating-field.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\nexport class EclRatingChangeEvent extends EclBaseEvent {\n constructor(public readonly value: number) {\n super();\n }\n}","import { booleanAttribute, Component, EventEmitter, forwardRef, HostBinding, Input, numberAttribute, Output, Provider } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclRatingChangeEvent } from './events/ecl-rating-change.event';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\nexport const ECL_RATINGFIELD_VALUE_ACCESSOR: Provider = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EclRatingFieldComponent),\n multi: true,\n};\n\nconst noop = (): void => {\n /** empty */\n};\n\n/**\n * Component representing rating field, displayed with stars.\n * Typically used when the user needs to evaluate something.\n */\n@Component({\n selector: 'ecl-rating-field',\n templateUrl: './ecl-rating-field.component.html',\n imports: [...EUI_ECL_ICON],\n providers: [ECL_RATINGFIELD_VALUE_ACCESSOR],\n})\nexport class EclRatingFieldComponent extends ECLBaseDirective implements ControlValueAccessor {\n /**\n * Name of the radio group. Also used for creating id for each radio button.\n */\n @Input() name = 'rating';\n /**\n * How many stars should the rating have.\n */\n @Input({ transform: numberAttribute }) numberOfStars = 5;\n /**\n * The initial value, if any.\n */\n @Input({ transform: numberAttribute }) rating: number;\n /**\n * Can be used to set disabled status.\n */\n @Input({ transform: booleanAttribute })\n @HostBinding('attr.disabled')\n disabled: boolean;\n\n /**\n * The event to be emitted when rating is changed.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Output() ratingChange = new EventEmitter<any>();\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private onChange: (_: any) => void = noop;\n private onTouched: () => void = noop;\n\n /**\n * Array of numbers, from 1 to 'numberOfStars'\n */\n get numbers(): Array<number> {\n return Array(this.numberOfStars)\n .fill(0)\n .map((_, i) => this.numberOfStars - i);\n }\n\n /**\n * Applies the base class `ecl-rating-field` to the host element. Applies 'ecl-rating-field--disabled' class on condition.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-rating-field'), this.disabled ? 'ecl-rating-field--disabled' : ''].join(' ').trim();\n }\n\n /**\n * Method that sets the new rating and emit 'ratingChange' event, that includes the new rating number.\n * @param rating - the new rating\n */\n onRadioClick(rating: number): void {\n this.rating = rating;\n this.onTouched();\n this.onChange(this.rating);\n\n const evt = new EclRatingChangeEvent(rating);\n this.ratingChange.next(evt);\n }\n\n /**\n * Informs the component of any changes in the parent (ControlValueAccessor). Sets the new value for the 'rating' property.\n * @param value \n */\n writeValue(value: number): void {\n this.rating = value;\n }\n\n /**\n * Disable/enable component.\n * @param isDisabled \n */\n setDisabledState(isDisabled: boolean): void {\n this.disabled = isDisabled || null;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnChange(fn: any): void {\n this.onChange = fn;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnTouched(fn: any): void {\n this.onTouched = fn;\n }\n}\n","@for(n of numbers;track n) {\n <input\n type=\"radio\"\n id=\"{{ name }}-{{ n }}\"\n [name]=\"name\"\n class=\"ecl-rating-field__input\"\n [value]=\"n\"\n required=\"\"\n [attr.checked]=\"rating === n ? true : undefined\"\n [attr.disabled]=\"disabled ? true : undefined\"\n (click)=\"onRadioClick(n)\" />\n <label class=\"ecl-rating-field__label\" for=\"{{ name }}-{{ n }}\">\n <span class=\"ecl-u-sr-only\">{{ n }} stars</span>\n <ecl-icon icon=\"star-filled\" class=\"ecl-rating-field__icon-filled\" size=\"l\"> </ecl-icon>\n <ecl-icon icon=\"star-outline\" class=\"ecl-rating-field__icon-outline\" size=\"l\"> </ecl-icon>\n </label>\n}\n","import { NgModule } from '@angular/core';\nimport { EclRatingFieldComponent } from './ecl-rating-field.component';\n\n/**\n * Module that provides the EclRatingField component.\n *\n * @deprecated Use {@link EUI_ECL_RATING_FIELD} instead.\n */\n@NgModule({\n imports: [EclRatingFieldComponent],\n exports: [EclRatingFieldComponent],\n})\nexport class EclRatingFieldModule {}\n","import { EclRatingFieldComponent } from './ecl-rating-field.component';\n\nexport * from './ecl-rating-field.module';\nexport * from './ecl-rating-field.component';\nexport * from './events/ecl-rating-change.event';\n\nexport const EUI_ECL_RATING_FIELD = [\n EclRatingFieldComponent,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEM,MAAO,oBAAqB,SAAQ,YAAY,CAAA;AAClD,IAAA,WAAA,CAA4B,KAAa,EAAA;AACrC,QAAA,KAAK,EAAE;QADiB,IAAA,CAAA,KAAK,GAAL,KAAK;IAEjC;AACH;;ACAM,MAAM,8BAA8B,GAAa;AACpD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAuB,CAAC;AACtD,IAAA,KAAK,EAAE,IAAI;;AAGf,MAAM,IAAI,GAAG,MAAW;;AAExB,CAAC;AAED;;;AAGG;AAOG,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;AAN7D,IAAA,WAAA,GAAA;;AAOI;;AAEG;QACM,IAAA,CAAA,IAAI,GAAG,QAAQ;AACxB;;AAEG;QACoC,IAAA,CAAA,aAAa,GAAG,CAAC;AAYxD;;AAEG;;AAEO,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAO;;QAGxC,IAAA,CAAA,QAAQ,GAAqB,IAAI;QACjC,IAAA,CAAA,SAAS,GA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AAE,SAAS,EAAE,eAAe,EAAE;gBAMrC,QAAQ,EAAA,CAAA;sBAFP,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;sBACrC,WAAW;uBAAC,eAAe;gBAOlB,YAAY,EAAA,CAAA;sBAArB;gBAmBG,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,OAAO;;;AEjExB;;;;AAIG;MAKU,oBAAoB,CAAA;qHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;sHAApB,oBAAoB,EAAA,OAAA,EAAA,CAHnB,uBAAuB,CAAA,EAAA,OAAA,EAAA,CACvB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAExB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,eAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAHnB,uBAAuB,CAAA,EAAA,CAAA,CAAA;;kGAGxB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,uBAAuB,CAAC;oBAClC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA;;;ACLM,MAAM,oBAAoB,GAAG;IAChC,uBAAuB;;;ACP3B;;AAEG;;;;"}
|
|
@@ -6,13 +6,13 @@ import * as i6 from '@ngx-translate/core';
|
|
|
6
6
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
7
|
import { EclBaseEvent, ECLBaseDirective, EclThemeService } from '@eui/ecl/core';
|
|
8
8
|
import * as i2 from '@eui/ecl/components/ecl-button';
|
|
9
|
-
import {
|
|
9
|
+
import { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';
|
|
10
10
|
import * as i3 from '@eui/ecl/components/ecl-form-group';
|
|
11
11
|
import { EclFormGroupModule } from '@eui/ecl/components/ecl-form-group';
|
|
12
12
|
import * as i4 from '@eui/ecl/components/ecl-text-input';
|
|
13
13
|
import { EclTextInputModule } from '@eui/ecl/components/ecl-text-input';
|
|
14
14
|
import * as i5 from '@eui/ecl/components/ecl-icon';
|
|
15
|
-
import {
|
|
15
|
+
import { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';
|
|
16
16
|
|
|
17
17
|
class EclSearchFormEvent extends EclBaseEvent {
|
|
18
18
|
constructor(keyword) {
|
|
@@ -91,12 +91,12 @@ class EclSearchFormComponent extends ECLBaseDirective {
|
|
|
91
91
|
registerOnTouched(fn) {
|
|
92
92
|
this.onTouched = fn;
|
|
93
93
|
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
95
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.0-next.5", type: EclSearchFormComponent, isStandalone: true, selector: "ecl-search-form", inputs: { searchInputText: "searchInputText", placeholder: "placeholder", searchButtonLabel: "searchButtonLabel", searchButtonIcon: "searchButtonIcon", buttonExtraClassses: "buttonExtraClassses", inputExtraClassses: "inputExtraClassses" }, outputs: { search: "search" }, host: { listeners: { "keydown.enter": "onEnterKeyDown($event)" }, properties: { "class": "this.cssClasses", "attr.role": "this.role" } }, providers: [ECL_SEARCH_FORM_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0, template: "<ecl-form-group>\n <input\n eclTextInput\n [(ngModel)]=\"searchInputText\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"search\"\n name=\"search-input\"\n placeholder=\"{{ placeholder || 'ecl.common.SEARCH' | translate }}\"\n class=\"ecl-search-form__text-input {{inputExtraClassses}}\" />\n</ecl-form-group>\n<button eclButton type=\"submit\" [variant]=\"eclThemeService.isECTheme() ? 'ghost': 'primary'\" (click)=\"onSearchClick($event)\"\n class=\"ecl-search-form__button {{buttonExtraClassses}}\">\n <ecl-icon [icon]=\"searchButtonIcon\" size=\"xs\"></ecl-icon>\n <span eclButtonLabel>\n {{ searchButtonLabel || 'ecl.common.SEARCH' | translate }}\n </span>\n</button>\n", dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.EclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["isIconOnly", "variant", "containerStyleClass"] }, { kind: "directive", type: i2.EclButtonLabelDirective, selector: "[eclButtonLabel]" }, { kind: "ngmodule", type: EclFormGroupModule }, { kind: "component", type: i3.EclFormGroupComponent, selector: "[eclFormGroup], ecl-form-group" }, { kind: "ngmodule", type: EclTextInputModule }, { kind: "directive", type: i4.EclTextInputDirective, selector: "input[eclTextInput]", inputs: ["type", "eclSize", "isInvalid"] }, { kind: "component", type: i5.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
96
96
|
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormComponent, decorators: [{
|
|
98
98
|
type: Component,
|
|
99
|
-
args: [{ selector: 'ecl-search-form', imports: [TranslateModule, FormsModule,
|
|
99
|
+
args: [{ selector: 'ecl-search-form', imports: [TranslateModule, FormsModule, ...EUI_ECL_BUTTON, EclFormGroupModule, EclTextInputModule, ...EUI_ECL_ICON], providers: [ECL_SEARCH_FORM_VALUE_ACCESSOR], template: "<ecl-form-group>\n <input\n eclTextInput\n [(ngModel)]=\"searchInputText\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"search\"\n name=\"search-input\"\n placeholder=\"{{ placeholder || 'ecl.common.SEARCH' | translate }}\"\n class=\"ecl-search-form__text-input {{inputExtraClassses}}\" />\n</ecl-form-group>\n<button eclButton type=\"submit\" [variant]=\"eclThemeService.isECTheme() ? 'ghost': 'primary'\" (click)=\"onSearchClick($event)\"\n class=\"ecl-search-form__button {{buttonExtraClassses}}\">\n <ecl-icon [icon]=\"searchButtonIcon\" size=\"xs\"></ecl-icon>\n <span eclButtonLabel>\n {{ searchButtonLabel || 'ecl.common.SEARCH' | translate }}\n </span>\n</button>\n" }]
|
|
100
100
|
}], propDecorators: { searchInputText: [{
|
|
101
101
|
type: Input
|
|
102
102
|
}], placeholder: [{
|
|
@@ -128,11 +128,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
128
128
|
* @deprecated Use {@link EUI_ECL_SEARCH_FORM} instead.
|
|
129
129
|
*/
|
|
130
130
|
class EclSearchFormModule {
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
133
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
132
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormModule, imports: [EclSearchFormComponent], exports: [EclSearchFormComponent] }); }
|
|
133
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormModule, imports: [EclSearchFormComponent] }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSearchFormModule, decorators: [{
|
|
136
136
|
type: NgModule,
|
|
137
137
|
args: [{
|
|
138
138
|
imports: [EclSearchFormComponent],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-search-form.mjs","sources":["../../components/ecl-search-form/events/ecl-search-form.event.ts","../../components/ecl-search-form/ecl-search-form.component.ts","../../components/ecl-search-form/ecl-search-form.component.html","../../components/ecl-search-form/ecl-search-form.module.ts","../../components/ecl-search-form/index.ts","../../components/ecl-search-form/eui-ecl-components-ecl-search-form.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\nexport class EclSearchFormEvent extends EclBaseEvent {\n\tconstructor(public keyword: string) {\n\t\tsuper();\n\t}\n}\n","import {\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Input,\n Output,\n Provider,\n inject,\n} from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclThemeService } from '@eui/ecl/core';\nimport { EclSearchFormEvent } from './events/ecl-search-form.event';\nimport { EclButtonModule } from '@eui/ecl/components/ecl-button';\nimport { EclFormGroupModule } from '@eui/ecl/components/ecl-form-group';\nimport { EclTextInputModule } from '@eui/ecl/components/ecl-text-input';\nimport { EclIconModule } from '@eui/ecl/components/ecl-icon';\n\nexport const ECL_SEARCH_FORM_VALUE_ACCESSOR: Provider = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EclSearchFormComponent),\n multi: true,\n};\n\nconst noop = (): void => {\n /** empty*/\n};\n\n/**\n * Component representing search field - input and button, in a responsive, styled layout.\n */\n@Component({\n selector: 'ecl-search-form',\n templateUrl: 'ecl-search-form.component.html',\n imports: [TranslateModule, FormsModule, EclButtonModule, EclFormGroupModule, EclTextInputModule, EclIconModule], // TODO: replace with new names EUI_ECL_...\n providers: [ECL_SEARCH_FORM_VALUE_ACCESSOR],\n})\nexport class EclSearchFormComponent extends ECLBaseDirective implements ControlValueAccessor {\n protected eclThemeService = inject(EclThemeService);\n\n /**\n * The current/default search text.\n */\n @Input() searchInputText: string;\n @Input() placeholder: string;\n @Input() searchButtonLabel: string;\n @Input() searchButtonIcon = 'search';\n @Input() buttonExtraClassses = '';\n @Input() inputExtraClassses = '';\n\n /**\n * Applies the base class `ecl-search-form` to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-search-form')].join(' ').trim();\n }\n\n @HostBinding('attr.role') role = 'search';\n\n /**\n * This event is emited, when user performs the search action. Includes the search text from the input field.\n */\n // TODO: this output should be renamed in v20 - breaking change!\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() search = new EventEmitter<EclSearchFormEvent>();\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private onChange: (_: any) => void = noop;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private onTouched: (_: any) => void = noop;\n\n /**\n * Perform search when user clicks the search button. Emits the search event with the search text.\n */\n onSearchClick(evt: Event): void {\n this.search.next(new EclSearchFormEvent(this.searchInputText));\n evt.preventDefault();\n }\n\n /**\n * Perform search when user clicks Enter when on the input field. Emits the search event with the search text.\n */\n @HostListener('keydown.enter', ['$event'])\n onEnterKeyDown(evt: Event): void {\n this.search.next(new EclSearchFormEvent(this.searchInputText));\n evt.preventDefault();\n }\n\n /**\n * Assigns the new input text value to the 'searchInputText' property, each time the input is changed.\n * @param newValue\n */\n onModelChange(newValue: string): void {\n this.searchInputText = newValue;\n this.onChange(newValue);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n writeValue(value: any): void {\n this.searchInputText = value;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnChange(fn: (_: any) => void): void {\n this.onChange = fn;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnTouched(fn: (_: any) => void): void {\n this.onTouched = fn;\n }\n}\n","<ecl-form-group>\n <input\n eclTextInput\n [(ngModel)]=\"searchInputText\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"search\"\n name=\"search-input\"\n placeholder=\"{{ placeholder || 'ecl.common.SEARCH' | translate }}\"\n class=\"ecl-search-form__text-input {{inputExtraClassses}}\" />\n</ecl-form-group>\n<button eclButton type=\"submit\" [variant]=\"eclThemeService.isECTheme() ? 'ghost': 'primary'\" (click)=\"onSearchClick($event)\"\n class=\"ecl-search-form__button {{buttonExtraClassses}}\">\n <ecl-icon [icon]=\"searchButtonIcon\" size=\"xs\"></ecl-icon>\n <span eclButtonLabel>\n {{ searchButtonLabel || 'ecl.common.SEARCH' | translate }}\n </span>\n</button>\n","import { NgModule } from '@angular/core';\nimport { EclSearchFormComponent } from './ecl-search-form.component';\n\n/**\n * Module that provides the EclSearchForm component.\n *\n * @deprecated Use {@link EUI_ECL_SEARCH_FORM} instead.\n */\n@NgModule({\n imports: [EclSearchFormComponent],\n exports: [EclSearchFormComponent],\n})\nexport class EclSearchFormModule {}\n","import { EclSearchFormComponent } from './ecl-search-form.component';\n\nexport * from './ecl-search-form.module';\nexport * from './ecl-search-form.component';\nexport * from './events/ecl-search-form.event';\n\nexport const EUI_ECL_SEARCH_FORM = [\n EclSearchFormComponent,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEM,MAAO,kBAAmB,SAAQ,YAAY,CAAA;AACnD,IAAA,WAAA,CAAmB,OAAe,EAAA;AACjC,QAAA,KAAK,EAAE;QADW,IAAA,CAAA,OAAO,GAAP,OAAO;IAE1B;AACA;;ACeM,MAAM,8BAA8B,GAAa;AACpD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAsB,CAAC;AACrD,IAAA,KAAK,EAAE,IAAI;;AAGf,MAAM,IAAI,GAAG,MAAW;;AAExB,CAAC;AAED;;AAEG;AAOG,MAAO,sBAAuB,SAAQ,gBAAgB,CAAA;AAN5D,IAAA,WAAA,GAAA;;AAOc,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QAQ1C,IAAA,CAAA,gBAAgB,GAAG,QAAQ;QAC3B,IAAA,CAAA,mBAAmB,GAAG,EAAE;QACxB,IAAA,CAAA,kBAAkB,GAAG,EAAE;QAUN,IAAA,CAAA,IAAI,GAAG,QAAQ;AAEzC;;AAEE;;;AAGQ,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAsB;;QAGjD,IAAA,CAAA,QAAQ,GAAqB,IAAI;;QAEjC,IAAA,CAAA,SAAS,GAAqB,IAAI;AA0C7C,IAAA;AA9DG;;AAEE;AACF,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;IACpE;AAgBA;;AAEE;AACF,IAAA,aAAa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A,CAAA;sBAAnB;gBACQ,iBAAiB,EAAA,CAAA;sBAAzB;gBACQ,gBAAgB,EAAA,CAAA;sBAAxB;gBACQ,mBAAmB,EAAA,CAAA;sBAA3B;gBACQ,kBAAkB,EAAA,CAAA;sBAA1B;gBAMG,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,OAAO;gBAKM,IAAI,EAAA,CAAA;sBAA7B,WAAW;uBAAC,WAAW;gBAOd,MAAM,EAAA,CAAA;sBAAf;gBAmBD,cAAc,EAAA,CAAA;sBADb,YAAY;uBAAC,eAAe,EAAE,CAAC,QAAQ,CAAC;;;AEnF7C;;;;AAIG;MAKU,mBAAmB,CAAA;8GAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAnB,mBAAmB,EAAA,OAAA,EAAA,CAHlB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CACtB,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAEvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHlB,sBAAsB,CAAA,EAAA,CAAA,CAAA;;2FAGvB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,sBAAsB,CAAC;oBACjC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA;;;ACLM,MAAM,mBAAmB,GAAG;IAC/B,sBAAsB;;;ACP1B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-search-form.mjs","sources":["../../components/ecl-search-form/events/ecl-search-form.event.ts","../../components/ecl-search-form/ecl-search-form.component.ts","../../components/ecl-search-form/ecl-search-form.component.html","../../components/ecl-search-form/ecl-search-form.module.ts","../../components/ecl-search-form/index.ts","../../components/ecl-search-form/eui-ecl-components-ecl-search-form.ts"],"sourcesContent":["import { EclBaseEvent } from '@eui/ecl/core';\n\nexport class EclSearchFormEvent extends EclBaseEvent {\n\tconstructor(public keyword: string) {\n\t\tsuper();\n\t}\n}\n","import {\n Component,\n EventEmitter,\n forwardRef,\n HostBinding,\n HostListener,\n Input,\n Output,\n Provider,\n inject,\n} from '@angular/core';\nimport { ControlValueAccessor, FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclThemeService } from '@eui/ecl/core';\nimport { EclSearchFormEvent } from './events/ecl-search-form.event';\nimport { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { EclFormGroupModule } from '@eui/ecl/components/ecl-form-group';\nimport { EclTextInputModule } from '@eui/ecl/components/ecl-text-input';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\n\nexport const ECL_SEARCH_FORM_VALUE_ACCESSOR: Provider = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => EclSearchFormComponent),\n multi: true,\n};\n\nconst noop = (): void => {\n /** empty*/\n};\n\n/**\n * Component representing search field - input and button, in a responsive, styled layout.\n */\n@Component({\n selector: 'ecl-search-form',\n templateUrl: 'ecl-search-form.component.html',\n imports: [TranslateModule, FormsModule, ...EUI_ECL_BUTTON, EclFormGroupModule, EclTextInputModule, ...EUI_ECL_ICON], // TODO: replace with new names EUI_ECL_...\n providers: [ECL_SEARCH_FORM_VALUE_ACCESSOR],\n})\nexport class EclSearchFormComponent extends ECLBaseDirective implements ControlValueAccessor {\n protected eclThemeService = inject(EclThemeService);\n\n /**\n * The current/default search text.\n */\n @Input() searchInputText: string;\n @Input() placeholder: string;\n @Input() searchButtonLabel: string;\n @Input() searchButtonIcon = 'search';\n @Input() buttonExtraClassses = '';\n @Input() inputExtraClassses = '';\n\n /**\n * Applies the base class `ecl-search-form` to the host element.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-search-form')].join(' ').trim();\n }\n\n @HostBinding('attr.role') role = 'search';\n\n /**\n * This event is emited, when user performs the search action. Includes the search text from the input field.\n */\n // TODO: this output should be renamed in v20 - breaking change!\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() search = new EventEmitter<EclSearchFormEvent>();\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private onChange: (_: any) => void = noop;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private onTouched: (_: any) => void = noop;\n\n /**\n * Perform search when user clicks the search button. Emits the search event with the search text.\n */\n onSearchClick(evt: Event): void {\n this.search.next(new EclSearchFormEvent(this.searchInputText));\n evt.preventDefault();\n }\n\n /**\n * Perform search when user clicks Enter when on the input field. Emits the search event with the search text.\n */\n @HostListener('keydown.enter', ['$event'])\n onEnterKeyDown(evt: Event): void {\n this.search.next(new EclSearchFormEvent(this.searchInputText));\n evt.preventDefault();\n }\n\n /**\n * Assigns the new input text value to the 'searchInputText' property, each time the input is changed.\n * @param newValue\n */\n onModelChange(newValue: string): void {\n this.searchInputText = newValue;\n this.onChange(newValue);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n writeValue(value: any): void {\n this.searchInputText = value;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnChange(fn: (_: any) => void): void {\n this.onChange = fn;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n registerOnTouched(fn: (_: any) => void): void {\n this.onTouched = fn;\n }\n}\n","<ecl-form-group>\n <input\n eclTextInput\n [(ngModel)]=\"searchInputText\"\n (ngModelChange)=\"onModelChange($event)\"\n type=\"search\"\n name=\"search-input\"\n placeholder=\"{{ placeholder || 'ecl.common.SEARCH' | translate }}\"\n class=\"ecl-search-form__text-input {{inputExtraClassses}}\" />\n</ecl-form-group>\n<button eclButton type=\"submit\" [variant]=\"eclThemeService.isECTheme() ? 'ghost': 'primary'\" (click)=\"onSearchClick($event)\"\n class=\"ecl-search-form__button {{buttonExtraClassses}}\">\n <ecl-icon [icon]=\"searchButtonIcon\" size=\"xs\"></ecl-icon>\n <span eclButtonLabel>\n {{ searchButtonLabel || 'ecl.common.SEARCH' | translate }}\n </span>\n</button>\n","import { NgModule } from '@angular/core';\nimport { EclSearchFormComponent } from './ecl-search-form.component';\n\n/**\n * Module that provides the EclSearchForm component.\n *\n * @deprecated Use {@link EUI_ECL_SEARCH_FORM} instead.\n */\n@NgModule({\n imports: [EclSearchFormComponent],\n exports: [EclSearchFormComponent],\n})\nexport class EclSearchFormModule {}\n","import { EclSearchFormComponent } from './ecl-search-form.component';\n\nexport * from './ecl-search-form.module';\nexport * from './ecl-search-form.component';\nexport * from './events/ecl-search-form.event';\n\nexport const EUI_ECL_SEARCH_FORM = [\n EclSearchFormComponent,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEM,MAAO,kBAAmB,SAAQ,YAAY,CAAA;AACnD,IAAA,WAAA,CAAmB,OAAe,EAAA;AACjC,QAAA,KAAK,EAAE;QADW,IAAA,CAAA,OAAO,GAAP,OAAO;IAE1B;AACA;;ACeM,MAAM,8BAA8B,GAAa;AACpD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,sBAAsB,CAAC;AACrD,IAAA,KAAK,EAAE,IAAI;;AAGf,MAAM,IAAI,GAAG,MAAW;;AAExB,CAAC;AAED;;AAEG;AAOG,MAAO,sBAAuB,SAAQ,gBAAgB,CAAA;AAN5D,IAAA,WAAA,GAAA;;AAOc,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QAQ1C,IAAA,CAAA,gBAAgB,GAAG,QAAQ;QAC3B,IAAA,CAAA,mBAAmB,GAAG,EAAE;QACxB,I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|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { ECLBaseDirective, EclThemeService } from '@eui/ecl/core';
|
|
5
5
|
import * as i1 from '@eui/ecl/components/ecl-icon';
|
|
6
|
-
import {
|
|
6
|
+
import { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';
|
|
7
7
|
import * as i2 from '@eui/ecl/components/ecl-button';
|
|
8
|
-
import {
|
|
8
|
+
import { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';
|
|
9
9
|
import * as i3 from '@ngx-translate/core';
|
|
10
10
|
import { TranslateModule } from '@ngx-translate/core';
|
|
11
11
|
|
|
@@ -52,15 +52,15 @@ class EclSelectContainerComponent extends ECLBaseDirective {
|
|
|
52
52
|
return this.ICON_SIZE_EU;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "21.0.0-next.5", type: EclSelectContainerComponent, isStandalone: true, selector: "ecl-select-container", inputs: { eclSize: "eclSize", disabled: ["disabled", "disabled", booleanAttribute], isInvalid: ["isInvalid", "isInvalid", booleanAttribute], toggleLabel: "toggleLabel" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ecl-select__icon\">\n <button eclButton variant=\"ghost\" tabindex=\"-1\" isIconOnly>\n <span eclButtonLabel>{{ toggleLabel || 'ecl.multiselect.TOGGLE.DROPDOWN' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" [size]=\"iconSize\" transform=\"rotate-180\"></ecl-icon>\n </button>\n</div>\n", dependencies: [{ kind: "component", type: i1.EclIconComponent, selector: "ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "title", "ariaHidden", "focusable", "isFlipHorizontal"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: i2.EclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["isIconOnly", "variant", "containerStyleClass"] }, { kind: "directive", type: i2.EclButtonLabelDirective, selector: "[eclButtonLabel]" }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectContainerComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{ selector: 'ecl-select-container', imports: [
|
|
61
|
-
|
|
61
|
+
...EUI_ECL_ICON,
|
|
62
62
|
TranslateModule,
|
|
63
|
-
|
|
63
|
+
...EUI_ECL_BUTTON,
|
|
64
64
|
], template: "<div class=\"ecl-select__icon\">\n <button eclButton variant=\"ghost\" tabindex=\"-1\" isIconOnly>\n <span eclButtonLabel>{{ toggleLabel || 'ecl.multiselect.TOGGLE.DROPDOWN' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" [size]=\"iconSize\" transform=\"rotate-180\"></ecl-icon>\n </button>\n</div>\n" }]
|
|
65
65
|
}], propDecorators: { eclSize: [{
|
|
66
66
|
type: Input
|
|
@@ -165,10 +165,10 @@ class EclSelectDirective extends ECLBaseDirective {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
169
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
168
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
169
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "21.0.0-next.5", type: EclSelectDirective, isStandalone: true, selector: "select[eclSelect]", inputs: { disabled: ["disabled", "disabled", booleanAttribute], isInvalid: ["isInvalid", "isInvalid", booleanAttribute], toggleLabel: "toggleLabel", eclSize: "eclSize" }, host: { properties: { "attr.disabled": "this.isDisabled", "class": "this.cssClasses", "class.ecl-select--invalid": "this.isInvalidState" } }, usesInheritance: true, ngImport: i0 }); }
|
|
170
170
|
}
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectDirective, decorators: [{
|
|
172
172
|
type: Directive,
|
|
173
173
|
args: [{
|
|
174
174
|
selector: 'select[eclSelect]',
|
|
@@ -208,13 +208,13 @@ const COMPONENTS = [
|
|
|
208
208
|
* @deprecated Use {@link EUI_ECL_SELECT} instead.
|
|
209
209
|
*/
|
|
210
210
|
class EclSelectModule {
|
|
211
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
212
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
211
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
212
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectModule, imports: [EclSelectDirective,
|
|
213
213
|
EclSelectContainerComponent], exports: [EclSelectDirective,
|
|
214
214
|
EclSelectContainerComponent] }); }
|
|
215
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
215
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectModule, imports: [EclSelectContainerComponent] }); }
|
|
216
216
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSelectModule, decorators: [{
|
|
218
218
|
type: NgModule,
|
|
219
219
|
args: [{
|
|
220
220
|
imports: [...COMPONENTS],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-select.mjs","sources":["../../components/ecl-select/ecl-select-container.component.ts","../../components/ecl-select/ecl-select-container.component.html","../../components/ecl-select/ecl-select.directive.ts","../../components/ecl-select/ecl-select.module.ts","../../components/ecl-select/index.ts","../../components/ecl-select/eui-ecl-components-ecl-select.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclThemeService } from '@eui/ecl/core';\nimport { EclIconModule } from '@eui/ecl/components/ecl-icon';\nimport { EclButtonModule } from '@eui/ecl/components/ecl-button';\nimport { TranslateModule } from '@ngx-translate/core';\n\n/**\n * Container component, which wraps the <select> component. Ataches custom select button with dropdown arrow.\n */\n@Component({\n selector: 'ecl-select-container',\n templateUrl: './ecl-select-container.component.html',\n imports: [\n EclIconModule,\n TranslateModule,\n EclButtonModule,\n ],\n})\nexport class EclSelectContainerComponent extends ECLBaseDirective {\n /**\n * Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\n * Same as the size of the main host element.\n */\n @Input() eclSize = 'm';\n @Input({ transform: booleanAttribute }) disabled: boolean;\n @Input({ transform: booleanAttribute }) isInvalid: boolean;\n /**\n * Custom label for the arrow-down button. Set from the main host element.\n */\n @Input() toggleLabel: string | undefined = undefined;\n\n /**\n * Adds specific classes for the container.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-select__container'),\n this.eclSize ? `ecl-select__container--${this.eclSize}` : '',\n this.disabled ? 'ecl-select__container--disabled' : '',\n this.isInvalid ? 'ecl-select__container--invalid' : '',\n ]\n .join(' ')\n .trim();\n }\n\n private ICON_SIZE_EC = 'xs';\n private ICON_SIZE_EU = 's'\n private eclThemeService = inject(EclThemeService);\n\n /**\n * Returns different icon sizes, depending if it's EU (s) or EC (xs) theme.\n */\n get iconSize(): string {\n if (this.eclThemeService.isECTheme()) {\n return this.ICON_SIZE_EC;\n } else {\n return this.ICON_SIZE_EU;\n }\n }\n}\n","<div class=\"ecl-select__icon\">\n <button eclButton variant=\"ghost\" tabindex=\"-1\" isIconOnly>\n <span eclButtonLabel>{{ toggleLabel || 'ecl.multiselect.TOGGLE.DROPDOWN' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" [size]=\"iconSize\" transform=\"rotate-180\"></ecl-icon>\n </button>\n</div>\n","import { AfterContentInit, Directive, DoCheck, ElementRef, HostBinding, Input, OnInit, Renderer2, ViewContainerRef, booleanAttribute, inject } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\n/**\n * The default HTML <select> component, with some added styling and formatting according to ECL standards.\n */\n@Directive({\n selector: 'select[eclSelect]',\n})\nexport class EclSelectDirective extends ECLBaseDirective implements OnInit, DoCheck, AfterContentInit{\n @Input({ transform: booleanAttribute }) @HostBinding('attr.disabled') disabled = false;\n @Input({ transform: booleanAttribute }) isInvalid = false;\n /**\n * Custom label for the arrow-down button.\n */\n @Input() toggleLabel: string | undefined = undefined;\n /**\n * Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\n */\n @Input() eclSize: 's' | 'm' | 'l' = 'm';\n\n private containerComponent: EclSelectContainerComponent;\n private readonly OPTGROUP_TAG_NAME = 'OPTGROUP';\n\n /**\n * Applies the 'ecl-select' class to the main <select> component\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-select')].join(' ').trim();\n }\n\n @HostBinding('attr.disabled')\n get isDisabled(): boolean {\n if (this.ngControl) {\n return this.ngControl.disabled || null;\n } else {\n return this.disabled || null;\n }\n }\n\n /**\n * Adds 'ecl-select--invalid' class to the host element, in case the component has invalid status.\n */\n @HostBinding('class.ecl-select--invalid')\n get isInvalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && this.ngControl.touched;\n } else {\n return this.isInvalid;\n }\n }\n private ngControl = inject(NgControl, { optional: true, self: true });\n private el = inject(ElementRef);\n private viewContainerRef = inject(ViewContainerRef);\n private renderer = inject(Renderer2);\n\n /**\n * Creates container component for the <select> and assigns default values to it's parameters.\n */\n ngOnInit(): void {\n const containerComponentRef = this.viewContainerRef.createComponent(EclSelectContainerComponent);\n\n this.containerComponent = containerComponentRef.instance;\n this.containerComponent.eclSize = this.eclSize;\n this.containerComponent.disabled = this.isDisabled;\n this.containerComponent.toggleLabel = this.toggleLabel;\n this.containerComponent.isInvalid = this.isInvalidState;\n\n containerComponentRef.location.nativeElement.prepend(this.el.nativeElement);\n }\n\n /**\n * Handles the group options.\n */\n ngAfterContentInit(): void {\n const childrenElements: Element[] = Array.from(this.el.nativeElement.children);\n this.handleOptgroup(childrenElements);\n }\n\n ngDoCheck(): void {\n this.containerComponent.eclSize = this.eclSize;\n this.containerComponent.disabled = this.isDisabled;\n this.containerComponent.isInvalid = this.isInvalidState;\n }\n\n /**\n * Sets custom 'aria-label' attribute for parent of the option group and for the children.\n */\n private handleOptgroup(childrenElements: Element[]): void {\n childrenElements.filter(item => {\n return item.tagName === this.OPTGROUP_TAG_NAME && item.getAttribute('label') !== null;\n }).forEach(optGroup => {\n const optGroupLabel = optGroup.getAttribute('label');\n this.renderer.setAttribute(optGroup, 'aria-label', optGroupLabel);\n Array.from(optGroup.children).forEach(option => {\n const optionLabel = option.getAttribute('label') || option.textContent;\n if (optionLabel) {\n this.renderer.setAttribute(option, 'aria-label',`${optionLabel} - ${optGroupLabel}`);\n }\n });\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { EclSelectDirective } from './ecl-select.directive';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\nconst COMPONENTS = [\n EclSelectDirective,\n EclSelectContainerComponent,\n];\n\n/**\n * @description\n * Module that provides the EclSelect component and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_SELECT} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclSelectModule {}\n","import { EclSelectDirective } from './ecl-select.directive';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\nexport * from './ecl-select.module';\nexport * from './ecl-select.directive';\nexport * from './ecl-select-container.component';\n\nexport const EUI_ECL_SELECT = [\n EclSelectDirective,\n EclSelectContainerComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAOA;;AAEG;AAUG,MAAO,2BAA4B,SAAQ,gBAAgB,CAAA;AATjE,IAAA,WAAA,GAAA;;AAUI;;;AAGG;QACM,IAAA,CAAA,OAAO,GAAG,GAAG;AAGtB;;AAEG;QACM,IAAA,CAAA,WAAW,GAAuB,SAAS;QAiB5C,IAAA,CAAA,YAAY,GAAG,IAAI;QACnB,IAAA,CAAA,YAAY,GAAG,GAAG;AAClB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AAYpD,IAAA;AA7BG;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC;AAC5C,YAAA,IAAI,CAAC,OAAO,GAAG,CAAA,uBAAA,EAA0B,IAAI,CA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G,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,OAAO;gBAMhB,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,eAAe;gBAaxB,cAAc,EAAA,CAAA;sBADjB,WAAW;uBAAC,2BAA2B;;;AC1C5C,MAAM,UAAU,GAAG;IACf,kBAAkB;IAClB,2BAA2B;CAC9B;AAED;;;;;AAKG;MAKU,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAdxB,kBAAkB;AAClB,YAAA,2BAA2B,aAD3B,kBAAkB;YAClB,2BAA2B,CAAA,EAAA,CAAA,CAAA;AAalB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAbxB,2BAA2B,CAAA,EAAA,CAAA,CAAA;;2FAalB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACxB,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,iBAAA;;;ACXM,MAAM,cAAc,GAAG;IAC5B,kBAAkB;IAClB,2BAA2B;;;ACT7B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-select.mjs","sources":["../../components/ecl-select/ecl-select-container.component.ts","../../components/ecl-select/ecl-select-container.component.html","../../components/ecl-select/ecl-select.directive.ts","../../components/ecl-select/ecl-select.module.ts","../../components/ecl-select/index.ts","../../components/ecl-select/eui-ecl-components-ecl-select.ts"],"sourcesContent":["import { Component, HostBinding, Input, booleanAttribute, inject } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclThemeService } from '@eui/ecl/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { TranslateModule } from '@ngx-translate/core';\n\n/**\n * Container component, which wraps the <select> component. Ataches custom select button with dropdown arrow.\n */\n@Component({\n selector: 'ecl-select-container',\n templateUrl: './ecl-select-container.component.html',\n imports: [\n ...EUI_ECL_ICON,\n TranslateModule,\n ...EUI_ECL_BUTTON,\n ],\n})\nexport class EclSelectContainerComponent extends ECLBaseDirective {\n /**\n * Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\n * Same as the size of the main host element.\n */\n @Input() eclSize = 'm';\n @Input({ transform: booleanAttribute }) disabled: boolean;\n @Input({ transform: booleanAttribute }) isInvalid: boolean;\n /**\n * Custom label for the arrow-down button. Set from the main host element.\n */\n @Input() toggleLabel: string | undefined = undefined;\n\n /**\n * Adds specific classes for the container.\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [\n super.getCssClasses('ecl-select__container'),\n this.eclSize ? `ecl-select__container--${this.eclSize}` : '',\n this.disabled ? 'ecl-select__container--disabled' : '',\n this.isInvalid ? 'ecl-select__container--invalid' : '',\n ]\n .join(' ')\n .trim();\n }\n\n private ICON_SIZE_EC = 'xs';\n private ICON_SIZE_EU = 's'\n private eclThemeService = inject(EclThemeService);\n\n /**\n * Returns different icon sizes, depending if it's EU (s) or EC (xs) theme.\n */\n get iconSize(): string {\n if (this.eclThemeService.isECTheme()) {\n return this.ICON_SIZE_EC;\n } else {\n return this.ICON_SIZE_EU;\n }\n }\n}\n","<div class=\"ecl-select__icon\">\n <button eclButton variant=\"ghost\" tabindex=\"-1\" isIconOnly>\n <span eclButtonLabel>{{ toggleLabel || 'ecl.multiselect.TOGGLE.DROPDOWN' | translate }}</span>\n <ecl-icon icon=\"corner-arrow\" [size]=\"iconSize\" transform=\"rotate-180\"></ecl-icon>\n </button>\n</div>\n","import { AfterContentInit, Directive, DoCheck, ElementRef, HostBinding, Input, OnInit, Renderer2, ViewContainerRef, booleanAttribute, inject } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\n/**\n * The default HTML <select> component, with some added styling and formatting according to ECL standards.\n */\n@Directive({\n selector: 'select[eclSelect]',\n})\nexport class EclSelectDirective extends ECLBaseDirective implements OnInit, DoCheck, AfterContentInit{\n @Input({ transform: booleanAttribute }) @HostBinding('attr.disabled') disabled = false;\n @Input({ transform: booleanAttribute }) isInvalid = false;\n /**\n * Custom label for the arrow-down button.\n */\n @Input() toggleLabel: string | undefined = undefined;\n /**\n * Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\n */\n @Input() eclSize: 's' | 'm' | 'l' = 'm';\n\n private containerComponent: EclSelectContainerComponent;\n private readonly OPTGROUP_TAG_NAME = 'OPTGROUP';\n\n /**\n * Applies the 'ecl-select' class to the main <select> component\n */\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-select')].join(' ').trim();\n }\n\n @HostBinding('attr.disabled')\n get isDisabled(): boolean {\n if (this.ngControl) {\n return this.ngControl.disabled || null;\n } else {\n return this.disabled || null;\n }\n }\n\n /**\n * Adds 'ecl-select--invalid' class to the host element, in case the component has invalid status.\n */\n @HostBinding('class.ecl-select--invalid')\n get isInvalidState(): boolean {\n if (this.ngControl) {\n return this.ngControl.status === 'INVALID' && this.ngControl.touched;\n } else {\n return this.isInvalid;\n }\n }\n private ngControl = inject(NgControl, { optional: true, self: true });\n private el = inject(ElementRef);\n private viewContainerRef = inject(ViewContainerRef);\n private renderer = inject(Renderer2);\n\n /**\n * Creates container component for the <select> and assigns default values to it's parameters.\n */\n ngOnInit(): void {\n const containerComponentRef = this.viewContainerRef.createComponent(EclSelectContainerComponent);\n\n this.containerComponent = containerComponentRef.instance;\n this.containerComponent.eclSize = this.eclSize;\n this.containerComponent.disabled = this.isDisabled;\n this.containerComponent.toggleLabel = this.toggleLabel;\n this.containerComponent.isInvalid = this.isInvalidState;\n\n containerComponentRef.location.nativeElement.prepend(this.el.nativeElement);\n }\n\n /**\n * Handles the group options.\n */\n ngAfterContentInit(): void {\n const childrenElements: Element[] = Array.from(this.el.nativeElement.children);\n this.handleOptgroup(childrenElements);\n }\n\n ngDoCheck(): void {\n this.containerComponent.eclSize = this.eclSize;\n this.containerComponent.disabled = this.isDisabled;\n this.containerComponent.isInvalid = this.isInvalidState;\n }\n\n /**\n * Sets custom 'aria-label' attribute for parent of the option group and for the children.\n */\n private handleOptgroup(childrenElements: Element[]): void {\n childrenElements.filter(item => {\n return item.tagName === this.OPTGROUP_TAG_NAME && item.getAttribute('label') !== null;\n }).forEach(optGroup => {\n const optGroupLabel = optGroup.getAttribute('label');\n this.renderer.setAttribute(optGroup, 'aria-label', optGroupLabel);\n Array.from(optGroup.children).forEach(option => {\n const optionLabel = option.getAttribute('label') || option.textContent;\n if (optionLabel) {\n this.renderer.setAttribute(option, 'aria-label',`${optionLabel} - ${optGroupLabel}`);\n }\n });\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { EclSelectDirective } from './ecl-select.directive';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\nconst COMPONENTS = [\n EclSelectDirective,\n EclSelectContainerComponent,\n];\n\n/**\n * @description\n * Module that provides the EclSelect component and its dependencies.\n *\n * @deprecated Use {@link EUI_ECL_SELECT} instead.\n */\n@NgModule({\n imports: [...COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class EclSelectModule {}\n","import { EclSelectDirective } from './ecl-select.directive';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\n\nexport * from './ecl-select.module';\nexport * from './ecl-select.directive';\nexport * from './ecl-select-container.component';\n\nexport const EUI_ECL_SELECT = [\n EclSelectDirective,\n EclSelectContainerComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAOA;;AAEG;AAUG,MAAO,2BAA4B,SAAQ,gBAAgB,CAAA;AATjE,IAAA,WAAA,GAAA;;AAUI;;;AAGG;QACM,IAAA,CAAA,OAAO,GAAG,GAAG;AAGtB;;AAEG;QACM,IAAA,CAAA,WAAW,GAAuB,SAAS;QAiB5C,IAAA,CAAA,YAAY,GAAG,IAAI;QACnB,IAAA,CAAA,YAAY,GAAG,GAAG;AAClB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;AAYpD,IAAA;AA7BG;;AAEG;AACH,IAAA,IACI,UAAU,GAAA;QACV,OAAO;AACH,YAAA,KAAK,CAAC,aAAa,CAAC,uBAAuB,CAAC;AAC5C,YAAA,IAAI,CAAC,OAAO,GAAG,CAAA,uBAAA,EAA0B,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,EAAE;YAC5D,IAAI,CAAC,QAAQ,GAAG,iCAAiC,GAAG,EAAE;YACtD,IAAI,CAAC,SAAS,GAAG,gCAAgC,GAAG,EAAE;AACzD;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;IACf;AAMA;;AAEG;AACH,IAAA,IAAI,QAAQ,GAAA;AACR,QAAA,IAAI,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,EAAE;YAClC,OAAO,IAAI,CAAC,YAAY;QAC5B;aAAO;YACH,OAAO,IAAI,CAAC,YAAY;QAC5B;IACJ;qHAzCS,2BAA2B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,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AC;AAC3B,iBAAA;;;ACXM,MAAM,cAAc,GAAG;IAC5B,kBAAkB;IAClB,2BAA2B;;;ACT7B;;AAEG;;;;"}
|
|
@@ -14,10 +14,10 @@ class EclSeparatorDirective extends ECLBaseDirective {
|
|
|
14
14
|
*/
|
|
15
15
|
this.hasClass = true;
|
|
16
16
|
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
18
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.0-next.5", type: EclSeparatorDirective, isStandalone: true, selector: "hr[eclSeparator]", host: { properties: { "class.ecl-separator": "this.hasClass" } }, usesInheritance: true, ngImport: i0 }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorDirective, decorators: [{
|
|
21
21
|
type: Directive,
|
|
22
22
|
args: [{
|
|
23
23
|
selector: 'hr[eclSeparator]',
|
|
@@ -33,11 +33,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImpor
|
|
|
33
33
|
* @deprecated Use {@link EUI_ECL_SEPARATOR} instead.
|
|
34
34
|
*/
|
|
35
35
|
class EclSeparatorModule {
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
37
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
38
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
37
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorModule, imports: [EclSeparatorDirective], exports: [EclSeparatorDirective] }); }
|
|
38
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorModule }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: EclSeparatorModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
imports: [EclSeparatorDirective],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-ecl-components-ecl-separator.mjs","sources":["../../components/ecl-separator/ecl-separator.directive.ts","../../components/ecl-separator/ecl-separator.module.ts","../../components/ecl-separator/index.ts","../../components/ecl-separator/eui-ecl-components-ecl-separator.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies ECL styling for horizontal separators (`<hr>` elements).\n * Adds the `ecl-separator` CSS class to the host element.\n */\n@Directive({\n selector: 'hr[eclSeparator]',\n})\nexport class EclSeparatorDirective extends ECLBaseDirective {\n /**\n * Binds the `ecl-separator` CSS class to the host `<hr>` element.\n */\n @HostBinding('class.ecl-separator') hasClass = true;\n}\n","import { NgModule } from '@angular/core';\nimport { EclSeparatorDirective } from './ecl-separator.directive';\n/**\n * Module that provides the EclSeparator directive.\n *\n * @deprecated Use {@link EUI_ECL_SEPARATOR} instead.\n */\n@NgModule({\n imports: [EclSeparatorDirective],\n exports: [EclSeparatorDirective],\n})\nexport class EclSeparatorModule {}\n","import { EclSeparatorDirective } from './ecl-separator.directive';\n\nexport * from './ecl-separator.module';\nexport * from './ecl-separator.directive';\n\nexport const EUI_ECL_SEPARATOR = [\n EclSeparatorDirective,\n] as const;","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;AAGG;AAIG,MAAO,qBAAsB,SAAQ,gBAAgB,CAAA;AAH3D,IAAA,WAAA,GAAA;;AAII;;AAEG;QACiC,IAAA,CAAA,QAAQ,GAAG,IAAI;AACtD,IAAA;
|
|
1
|
+
{"version":3,"file":"eui-ecl-components-ecl-separator.mjs","sources":["../../components/ecl-separator/ecl-separator.directive.ts","../../components/ecl-separator/ecl-separator.module.ts","../../components/ecl-separator/index.ts","../../components/ecl-separator/eui-ecl-components-ecl-separator.ts"],"sourcesContent":["import { Directive, HostBinding } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\n\n/**\n * Directive that applies ECL styling for horizontal separators (`<hr>` elements).\n * Adds the `ecl-separator` CSS class to the host element.\n */\n@Directive({\n selector: 'hr[eclSeparator]',\n})\nexport class EclSeparatorDirective extends ECLBaseDirective {\n /**\n * Binds the `ecl-separator` CSS class to the host `<hr>` element.\n */\n @HostBinding('class.ecl-separator') hasClass = true;\n}\n","import { NgModule } from '@angular/core';\nimport { EclSeparatorDirective } from './ecl-separator.directive';\n/**\n * Module that provides the EclSeparator directive.\n *\n * @deprecated Use {@link EUI_ECL_SEPARATOR} instead.\n */\n@NgModule({\n imports: [EclSeparatorDirective],\n exports: [EclSeparatorDirective],\n})\nexport class EclSeparatorModule {}\n","import { EclSeparatorDirective } from './ecl-separator.directive';\n\nexport * from './ecl-separator.module';\nexport * from './ecl-separator.directive';\n\nexport const EUI_ECL_SEPARATOR = [\n EclSeparatorDirective,\n] as const;","/**\n *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