@eui/components 17.0.0-next.25 → 17.0.0-next.26
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/docs/components/ChartComponent.html +3 -3
- package/docs/components/CollapsedBreadcrumbComponent.html +3 -3
- package/docs/components/EuiAlertComponent.html +3 -3
- package/docs/components/EuiAppBreadcrumbComponent.html +3 -3
- package/docs/components/EuiAppComponent.html +3 -3
- package/docs/components/EuiAppFooterComponent.html +3 -3
- package/docs/components/EuiAppHeaderComponent.html +3 -3
- package/docs/components/EuiAppSidebarBodyComponent.html +3 -3
- package/docs/components/EuiAppSidebarComponent.html +3 -3
- package/docs/components/EuiAppSidebarDrawerComponent.html +3 -3
- package/docs/components/EuiAppSidebarFooterComponent.html +3 -3
- package/docs/components/EuiAppSidebarHeaderComponent.html +3 -3
- package/docs/components/EuiAppSidebarHeaderUserProfileComponent.html +3 -3
- package/docs/components/EuiAppSidebarMenuComponent.html +3 -3
- package/docs/components/EuiAppToolbarComponent.html +3 -3
- package/docs/components/EuiAppTopMessageComponent.html +4 -4
- package/docs/components/EuiAutocompleteAsyncTestComponent.html +3 -3
- package/docs/components/EuiAutocompleteChipsAsyncTestComponent.html +3 -3
- package/docs/components/EuiAutocompleteChipsTestComponent.html +3 -3
- package/docs/components/EuiAutocompleteComponent.html +3 -3
- package/docs/components/EuiAutocompleteOptionComponent.html +3 -3
- package/docs/components/EuiAutocompleteOptionGroupComponent.html +3 -3
- package/docs/components/EuiAutocompleteTestComponent.html +3 -3
- package/docs/components/EuiAvatarBadgeComponent.html +3 -3
- package/docs/components/EuiAvatarComponent.html +3 -3
- package/docs/components/EuiAvatarIconComponent.html +3 -3
- package/docs/components/EuiAvatarImageComponent.html +3 -3
- package/docs/components/EuiAvatarListComponent.html +3 -3
- package/docs/components/EuiAvatarTextComponent.html +3 -3
- package/docs/components/EuiBadgeComponent.html +3 -3
- package/docs/components/EuiBlockContentComponent.html +3 -3
- package/docs/components/EuiBlockDocumentComponent.html +3 -3
- package/docs/components/EuiBreadcrumbComponent.html +3 -3
- package/docs/components/EuiBreadcrumbItemComponent.html +3 -3
- package/docs/components/EuiButtonComponent.html +3 -3
- package/docs/components/EuiButtonGroupComponent.html +3 -3
- package/docs/components/EuiButtonsComponent.html +3 -3
- package/docs/components/EuiCardComponent.html +3 -3
- package/docs/components/EuiCardContentComponent.html +3 -3
- package/docs/components/EuiCardFooterActionButtonsComponent.html +3 -3
- package/docs/components/EuiCardFooterActionIconsComponent.html +3 -3
- package/docs/components/EuiCardFooterComponent.html +3 -3
- package/docs/components/EuiCardFooterMenuContentComponent.html +3 -3
- package/docs/components/EuiCardHeaderBodyComponent.html +3 -3
- package/docs/components/EuiCardHeaderComponent.html +3 -3
- package/docs/components/EuiCardHeaderLeftContentComponent.html +3 -3
- package/docs/components/EuiCardHeaderRightContentComponent.html +3 -3
- package/docs/components/EuiCardHeaderSubtitleComponent.html +3 -3
- package/docs/components/EuiCardHeaderTitleComponent.html +3 -3
- package/docs/components/EuiCardMediaComponent.html +3 -3
- package/docs/components/EuiChipComponent.html +4 -4
- package/docs/components/EuiChipListComponent.html +3 -3
- package/docs/components/EuiCommonHeaderComponent.html +3 -3
- package/docs/components/EuiDashboardButtonComponent.html +3 -3
- package/docs/components/EuiDashboardCardComponent.html +3 -3
- package/docs/components/EuiDateRangeSelectorComponent.html +3 -3
- package/docs/components/EuiDatepickerComponent.html +3 -3
- package/docs/components/EuiDialogComponent.html +3 -3
- package/docs/components/EuiDialogContainerComponent.html +3 -3
- package/docs/components/EuiDimmerComponent.html +3 -3
- package/docs/components/EuiDisableContentComponent.html +3 -3
- package/docs/components/EuiDiscussionThreadComponent.html +3 -3
- package/docs/components/EuiDiscussionThreadItemComponent.html +3 -3
- package/docs/components/EuiDropdownComponent.html +3 -3
- package/docs/components/EuiDropdownItemComponent.html +3 -3
- package/docs/components/EuiEditorComponent.html +3 -3
- package/docs/components/EuiEditorCountersComponent.html +3 -3
- package/docs/components/EuiEditorHtmlViewComponent.html +3 -3
- package/docs/components/EuiEditorImageDialogComponent.html +3 -3
- package/docs/components/EuiEditorJsonViewComponent.html +3 -3
- package/docs/components/EuiExpandContentComponent.html +3 -3
- package/docs/components/EuiFeedbackMessageComponent.html +3 -3
- package/docs/components/EuiFieldsetComponent.html +3 -3
- package/docs/components/EuiFilePreviewComponent.html +3 -3
- package/docs/components/EuiFileUploadComponent.html +3 -3
- package/docs/components/EuiFileUploadProgressComponent.html +3 -3
- package/docs/components/EuiFooterComponent.html +3 -3
- package/docs/components/EuiGrowlComponent.html +4 -4
- package/docs/components/EuiHeaderAppComponent.html +3 -3
- package/docs/components/EuiHeaderAppNameComponent.html +3 -3
- package/docs/components/EuiHeaderAppNameLogoComponent.html +3 -3
- package/docs/components/EuiHeaderAppSubtitleComponent.html +3 -3
- package/docs/components/EuiHeaderComponent.html +3 -3
- package/docs/components/EuiHeaderEnvironmentComponent.html +3 -3
- package/docs/components/EuiHeaderLogoComponent.html +3 -3
- package/docs/components/EuiHeaderUserProfileComponent.html +3 -3
- package/docs/components/EuiIconColorComponent.html +3 -3
- package/docs/components/EuiIconComponent.html +3 -3
- package/docs/components/{EuiAccessibleButtonIconComponent.html → EuiIconSvgButtonComponent.html} +91 -11
- package/docs/components/EuiIconSvgComponent.html +4 -4
- package/docs/components/EuiIconToggleComponent.html +3 -3
- package/docs/components/EuiInputCheckboxComponent.html +3 -3
- package/docs/components/EuiInputGroupComponent.html +3 -3
- package/docs/components/EuiInputNumberComponent.html +3 -3
- package/docs/components/EuiInputRadioComponent.html +3 -3
- package/docs/components/EuiInputTextComponent.html +3 -3
- package/docs/components/EuiLabelComponent.html +3 -3
- package/docs/components/EuiLanguageSelectorComponent.html +3 -72
- package/docs/components/EuiListComponent.html +3 -3
- package/docs/components/EuiListItemComponent.html +3 -3
- package/docs/components/EuiMenuComponent.html +3 -3
- package/docs/components/EuiMenuItemComponent.html +5 -3
- package/docs/components/EuiMessageBoxComponent.html +3 -3
- package/docs/components/EuiModalSelectorComponent.html +3 -3
- package/docs/components/EuiNotificationItemComponent.html +3 -3
- package/docs/components/EuiNotificationItemV2Component.html +3 -3
- package/docs/components/EuiNotificationsComponent.html +4 -4
- package/docs/components/EuiNotificationsV2Component.html +3 -3
- package/docs/components/EuiOverlayBodyComponent.html +3 -3
- package/docs/components/EuiOverlayComponent.html +3 -3
- package/docs/components/EuiOverlayFooterComponent.html +3 -3
- package/docs/components/EuiOverlayHeaderComponent.html +3 -3
- package/docs/components/EuiOverlayHeaderTitleComponent.html +3 -3
- package/docs/components/EuiPageBreadcrumbComponent.html +3 -3
- package/docs/components/EuiPageColumnComponent.html +3 -3
- package/docs/components/EuiPageColumnsComponent.html +3 -3
- package/docs/components/EuiPageComponent.html +3 -3
- package/docs/components/EuiPageContentComponent.html +3 -3
- package/docs/components/EuiPageFooterComponent.html +3 -3
- package/docs/components/EuiPageHeaderComponent.html +3 -3
- package/docs/components/EuiPageHeroHeaderComponent.html +3 -3
- package/docs/components/EuiPageTopContentComponent.html +3 -3
- package/docs/components/EuiPaginatorComponent.html +3 -3
- package/docs/components/EuiPopoverComponent.html +3 -3
- package/docs/components/EuiProgressBarComponent.html +3 -3
- package/docs/components/EuiProgressCircleComponent.html +3 -3
- package/docs/components/EuiResizableComponent.html +3 -3
- package/docs/components/EuiSearchComponent.html +199 -529
- package/docs/components/EuiSelectComponent.html +3 -3
- package/docs/components/EuiSidebarMenuComponent.html +3 -3
- package/docs/components/EuiSidebarToggleComponent.html +4 -4
- package/docs/components/EuiSlideToggleComponent.html +3 -3
- package/docs/components/EuiSlideToggleTestComponent.html +3 -3
- package/docs/components/EuiTabComponent.html +3 -3
- package/docs/components/EuiTabContentComponent.html +3 -3
- package/docs/components/EuiTabLabelComponent.html +3 -3
- package/docs/components/EuiTableComponent.html +3 -3
- package/docs/components/EuiTableExpandableRowComponent.html +3 -3
- package/docs/components/EuiTableFilterComponent.html +3 -3
- package/docs/components/EuiTableSelectableHeaderComponent.html +3 -3
- package/docs/components/EuiTableSelectableRowComponent.html +3 -3
- package/docs/components/EuiTableSortableColComponent.html +3 -3
- package/docs/components/EuiTabsComponent.html +3 -3
- package/docs/components/EuiTextareaComponent.html +3 -3
- package/docs/components/EuiTimebarComponent.html +3 -3
- package/docs/components/EuiTimelineComponent.html +3 -3
- package/docs/components/EuiTimelineItemComponent.html +3 -3
- package/docs/components/EuiTimepickerComponent.html +3 -3
- package/docs/components/EuiToolbarAppComponent.html +3 -3
- package/docs/components/EuiToolbarCenterComponent.html +5 -5
- package/docs/components/EuiToolbarComponent.html +4 -4
- package/docs/components/EuiToolbarEnvironmentComponent.html +3 -3
- package/docs/components/EuiToolbarItemComponent.html +4 -73
- package/docs/components/EuiToolbarItemsComponent.html +3 -3
- package/docs/components/EuiToolbarLogoComponent.html +3 -3
- package/docs/components/EuiToolbarMenuComponent.html +3 -3
- package/docs/components/EuiTooltipContainerComponent.html +3 -3
- package/docs/components/EuiTreeComponent.html +3 -3
- package/docs/components/EuiTreeListComponent.html +3 -3
- package/docs/components/EuiTreeListItemComponent.html +3 -3
- package/docs/components/EuiTreeListItemContentComponent.html +3 -3
- package/docs/components/EuiTreeListToolbarComponent.html +3 -3
- package/docs/components/EuiUserProfileCardComponent.html +3 -3
- package/docs/components/EuiUserProfileComponent.html +3 -3
- package/docs/components/EuiUserProfileMenuComponent.html +3 -3
- package/docs/components/EuiUserProfileMenuItemComponent.html +3 -3
- package/docs/components/EuiUxTreeComponent.html +3 -3
- package/docs/components/EuiUxTreeNodeComponent.html +3 -3
- package/docs/components/EuiUxTreeToolbarComponent.html +3 -3
- package/docs/components/EuiWizardComponent.html +3 -3
- package/docs/components/EuiWizardStepComponent.html +3 -3
- package/docs/components/QuillEditorComponent.html +3 -3
- package/docs/dependencies.html +2 -2
- package/docs/index.html +6 -6
- package/docs/js/menu-wc.js +30 -360
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +0 -147
- package/docs/modules/EuiAlertModule.html +0 -3
- package/docs/modules/EuiAppTopMessageModule.html +1 -1
- package/docs/modules/EuiChipModule.html +0 -3
- package/docs/modules/EuiGrowlModule.html +0 -3
- package/docs/modules/EuiIconModule.html +6 -0
- package/docs/modules/EuiSearchModule.html +4 -1
- package/docs/modules/EuiSidebarToggleModule.html +1 -1
- package/docs/modules/EuiToolbarModule.html +0 -9
- package/docs/modules.html +0 -132
- package/esm2022/eui-alert/eui-alert.component.mjs +5 -5
- package/esm2022/eui-badge/eui-badge.component.mjs +2 -2
- package/esm2022/eui-chip/eui-chip.component.mjs +4 -4
- package/esm2022/eui-chip/eui-chip.module.mjs +4 -5
- package/esm2022/eui-growl/eui-growl.component.mjs +4 -5
- package/esm2022/eui-growl/eui-growl.module.mjs +4 -5
- package/esm2022/eui-icon/eui-icon-svg-button/eui-icon-svg-button.component.mjs +59 -0
- package/esm2022/eui-icon/eui-icon-svg.component.mjs +3 -3
- package/esm2022/eui-icon/eui-icon.component.mjs +2 -2
- package/esm2022/eui-icon/eui-icon.module.mjs +5 -4
- package/esm2022/eui-icon/index.mjs +3 -2
- package/esm2022/eui-menu/eui-menu-item.component.mjs +1 -1
- package/esm2022/layout/eui-app/eui-app-top-message/top-message.component.mjs +4 -4
- package/esm2022/layout/eui-app/eui-app-top-message/top-message.module.mjs +5 -5
- package/esm2022/layout/eui-language-selector/language-selector.component.mjs +2 -6
- package/esm2022/layout/eui-notifications/eui-notifications.component.mjs +3 -3
- package/esm2022/layout/eui-search/search.component.mjs +66 -26
- package/esm2022/layout/eui-search/search.module.mjs +17 -6
- package/esm2022/layout/eui-sidebar-toggle/sidebar-toggle.component.mjs +4 -4
- package/esm2022/layout/eui-sidebar-toggle/sidebar-toggle.module.mjs +5 -5
- package/esm2022/layout/eui-toolbar/index.mjs +3 -4
- package/esm2022/layout/eui-toolbar/toolbar-center/toolbar-center.component.mjs +2 -2
- package/esm2022/layout/eui-toolbar/toolbar-item/toolbar-item.component.mjs +3 -7
- package/esm2022/layout/eui-toolbar/toolbar.component.mjs +3 -3
- package/esm2022/layout/eui-toolbar/toolbar.module.mjs +1 -25
- package/esm2022/layout/eui-user-profile/user-profile.component.mjs +2 -2
- package/esm2022/shared/index.mjs +1 -2
- package/eui-alert/eui-alert.component.d.ts +1 -1
- package/eui-alert/eui-alert.component.d.ts.map +1 -1
- package/eui-chip/eui-chip.module.d.ts +1 -2
- package/eui-chip/eui-chip.module.d.ts.map +1 -1
- package/eui-growl/eui-growl.module.d.ts +1 -2
- package/eui-growl/eui-growl.module.d.ts.map +1 -1
- package/eui-icon/eui-icon-svg-button/eui-icon-svg-button.component.d.ts +18 -0
- package/eui-icon/eui-icon-svg-button/eui-icon-svg-button.component.d.ts.map +1 -0
- package/eui-icon/eui-icon-svg.component.d.ts +1 -1
- package/eui-icon/eui-icon.module.d.ts +3 -2
- package/eui-icon/eui-icon.module.d.ts.map +1 -1
- package/eui-icon/index.d.ts +2 -1
- package/eui-icon/index.d.ts.map +1 -1
- package/eui-menu/eui-menu-item.component.d.ts.map +1 -1
- package/fesm2022/eui-components-eui-alert.mjs +4 -4
- package/fesm2022/eui-components-eui-alert.mjs.map +1 -1
- package/fesm2022/eui-components-eui-badge.mjs +2 -2
- package/fesm2022/eui-components-eui-badge.mjs.map +1 -1
- package/fesm2022/eui-components-eui-chip.mjs +7 -7
- package/fesm2022/eui-components-eui-chip.mjs.map +1 -1
- package/fesm2022/eui-components-eui-growl.mjs +6 -8
- package/fesm2022/eui-components-eui-growl.mjs.map +1 -1
- package/fesm2022/eui-components-eui-icon.mjs +65 -9
- package/fesm2022/eui-components-eui-icon.mjs.map +1 -1
- package/fesm2022/eui-components-eui-menu.mjs.map +1 -1
- package/fesm2022/eui-components-layout.mjs +2185 -2247
- package/fesm2022/eui-components-layout.mjs.map +1 -1
- package/fesm2022/eui-components-shared.mjs +1 -66
- package/fesm2022/eui-components-shared.mjs.map +1 -1
- package/layout/eui-app/eui-app-top-message/top-message.module.d.ts +2 -2
- package/layout/eui-language-selector/language-selector.component.d.ts +0 -1
- package/layout/eui-language-selector/language-selector.component.d.ts.map +1 -1
- package/layout/eui-search/search.component.d.ts +23 -10
- package/layout/eui-search/search.component.d.ts.map +1 -1
- package/layout/eui-search/search.module.d.ts +5 -5
- package/layout/eui-search/search.module.d.ts.map +1 -1
- package/layout/eui-sidebar-toggle/sidebar-toggle.module.d.ts +2 -2
- package/layout/eui-toolbar/index.d.ts +0 -3
- package/layout/eui-toolbar/index.d.ts.map +1 -1
- package/layout/eui-toolbar/toolbar-center/toolbar-center.component.d.ts.map +1 -1
- package/layout/eui-toolbar/toolbar-item/toolbar-item.component.d.ts +0 -1
- package/layout/eui-toolbar/toolbar-item/toolbar-item.component.d.ts.map +1 -1
- package/layout/eui-toolbar/toolbar.module.d.ts +12 -18
- package/layout/eui-toolbar/toolbar.module.d.ts.map +1 -1
- package/package.json +1 -61
- package/shared/index.d.ts +0 -1
- package/shared/index.d.ts.map +1 -1
- package/docs/classes/EuiEclBaseEvent.html +0 -253
- package/docs/classes/EuiEclDomEvent.html +0 -314
- package/docs/classes/EuiEclLanguageService.html +0 -887
- package/docs/classes/EuiEclMessageCloseEvent.html +0 -223
- package/docs/classes/EuiEclSlideEvent.html +0 -309
- package/docs/components/EclMessageWcComponent.html +0 -336
- package/docs/components/EuiEclBannerComponent.html +0 -708
- package/docs/components/EuiEclButtonComponent.html +0 -655
- package/docs/components/EuiEclCarouselComponent.html +0 -1759
- package/docs/components/EuiEclCarouselItemComponent.html +0 -901
- package/docs/components/EuiEclIconComponent.html +0 -809
- package/docs/components/EuiEclMessageComponent.html +0 -816
- package/docs/components/EuiToolbarItemNotificationsComponent.html +0 -335
- package/docs/components/EuiToolbarItemSearchComponent.html +0 -335
- package/docs/components/EuiToolbarItemUserProfileComponent.html +0 -634
- package/docs/directives/EuiEclBannerCreditDirective.html +0 -440
- package/docs/directives/EuiEclBannerDescriptionDirective.html +0 -440
- package/docs/directives/EuiEclBannerDescriptionTextDirective.html +0 -440
- package/docs/directives/EuiEclBannerImageDirective.html +0 -434
- package/docs/directives/EuiEclBannerPictureDirective.html +0 -414
- package/docs/directives/EuiEclBannerTitleDirective.html +0 -440
- package/docs/directives/EuiEclBannerTitleTextDirective.html +0 -440
- package/docs/directives/EuiEclBaseDirective.html +0 -413
- package/docs/directives/EuiEclButtonLabelDirective.html +0 -414
- package/docs/directives/EuiEclClickOutsideDirective.html +0 -531
- package/docs/directives/EuiEclFileImageDirective.html +0 -434
- package/docs/directives/EuiEclFilePictureDirective.html +0 -414
- package/docs/directives/EuiEclHiddenDirective.html +0 -365
- package/docs/directives/EuiEclLabelDirective.html +0 -438
- package/docs/directives/EuiEclLinkDirective.html +0 -730
- package/docs/directives/EuiEclLinkLabelDirective.html +0 -414
- package/docs/directives/EuiEclMessageTitleDirective.html +0 -414
- package/docs/injectables/EuiEclDefaultLanguageService.html +0 -903
- package/docs/injectables/EuiEclThemeService.html +0 -482
- package/docs/interfaces/EuiEclBreadcrumb.html +0 -343
- package/docs/interfaces/EuiEclCarouselItem.html +0 -292
- package/docs/interfaces/EuiEclCategoryFilterItem.html +0 -349
- package/docs/interfaces/EuiEclFileUpload.html +0 -286
- package/docs/interfaces/EuiEclGalleryItem.html +0 -325
- package/docs/interfaces/EuiEclLanguage.html +0 -292
- package/docs/interfaces/EuiEclMenuItem.html +0 -574
- package/docs/interfaces/EuiEclMultiselectOption.html +0 -382
- package/docs/miscellaneous/enumerations.html +0 -254
- package/docs/modules/EclMessageWcModule.html +0 -183
- package/docs/modules/EclWebcomponentsModule.html +0 -151
- package/docs/modules/EuiAccessibleButtonIconModule.html +0 -180
- package/docs/modules/EuiEclBannerComponentModule.html +0 -210
- package/docs/modules/EuiEclButtonComponentModule.html +0 -176
- package/docs/modules/EuiEclCarouselComponentModule.html +0 -200
- package/docs/modules/EuiEclHiddenModule.html +0 -170
- package/docs/modules/EuiEclIconComponentModule.html +0 -170
- package/docs/modules/EuiEclLabelDirectiveModule.html +0 -170
- package/docs/modules/EuiEclLinkDirectiveModule.html +0 -176
- package/docs/modules/EuiEclMessageComponentModule.html +0 -176
- package/ecl/eui-ecl-banner/eui-components-ecl-eui-ecl-banner.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner-credit.directive.d.ts +0 -8
- package/ecl/eui-ecl-banner/eui-ecl-banner-credit.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner-description.directive.d.ts +0 -13
- package/ecl/eui-ecl-banner/eui-ecl-banner-description.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner-picture.directive.d.ts +0 -13
- package/ecl/eui-ecl-banner/eui-ecl-banner-picture.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner-title.directive.d.ts +0 -13
- package/ecl/eui-ecl-banner/eui-ecl-banner-title.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner.component.d.ts +0 -24
- package/ecl/eui-ecl-banner/eui-ecl-banner.component.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-banner.module.d.ts +0 -14
- package/ecl/eui-ecl-banner/eui-ecl-banner.module.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/eui-ecl-file-picture.directive.d.ts +0 -13
- package/ecl/eui-ecl-banner/eui-ecl-file-picture.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/index.d.ts +0 -8
- package/ecl/eui-ecl-banner/index.d.ts.map +0 -1
- package/ecl/eui-ecl-banner/package.json +0 -3
- package/ecl/eui-ecl-button/eui-components-ecl-eui-ecl-button.d.ts.map +0 -1
- package/ecl/eui-ecl-button/eui-ecl-button-label.directive.d.ts +0 -8
- package/ecl/eui-ecl-button/eui-ecl-button-label.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-button/eui-ecl-button.component.d.ts +0 -17
- package/ecl/eui-ecl-button/eui-ecl-button.component.d.ts.map +0 -1
- package/ecl/eui-ecl-button/eui-ecl-button.module.d.ts +0 -11
- package/ecl/eui-ecl-button/eui-ecl-button.module.d.ts.map +0 -1
- package/ecl/eui-ecl-button/index.d.ts +0 -4
- package/ecl/eui-ecl-button/index.d.ts.map +0 -1
- package/ecl/eui-ecl-button/package.json +0 -3
- package/ecl/eui-ecl-carousel/eui-components-ecl-eui-ecl-carousel.d.ts.map +0 -1
- package/ecl/eui-ecl-carousel/eui-ecl-carousel-item.component.d.ts +0 -24
- package/ecl/eui-ecl-carousel/eui-ecl-carousel-item.component.d.ts.map +0 -1
- package/ecl/eui-ecl-carousel/eui-ecl-carousel.component.d.ts +0 -75
- package/ecl/eui-ecl-carousel/eui-ecl-carousel.component.d.ts.map +0 -1
- package/ecl/eui-ecl-carousel/eui-ecl-carousel.module.d.ts +0 -12
- package/ecl/eui-ecl-carousel/eui-ecl-carousel.module.d.ts.map +0 -1
- package/ecl/eui-ecl-carousel/index.d.ts +0 -4
- package/ecl/eui-ecl-carousel/index.d.ts.map +0 -1
- package/ecl/eui-ecl-carousel/package.json +0 -3
- package/ecl/eui-ecl-icon/eui-components-ecl-eui-ecl-icon.d.ts.map +0 -1
- package/ecl/eui-ecl-icon/eui-ecl-icon.component.d.ts +0 -34
- package/ecl/eui-ecl-icon/eui-ecl-icon.component.d.ts.map +0 -1
- package/ecl/eui-ecl-icon/eui-ecl-icon.module.d.ts +0 -9
- package/ecl/eui-ecl-icon/eui-ecl-icon.module.d.ts.map +0 -1
- package/ecl/eui-ecl-icon/index.d.ts +0 -3
- package/ecl/eui-ecl-icon/index.d.ts.map +0 -1
- package/ecl/eui-ecl-icon/package.json +0 -3
- package/ecl/eui-ecl-label/eui-components-ecl-eui-ecl-label.d.ts.map +0 -1
- package/ecl/eui-ecl-label/eui-ecl-label.directive.d.ts +0 -9
- package/ecl/eui-ecl-label/eui-ecl-label.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-label/eui-ecl-label.module.d.ts +0 -9
- package/ecl/eui-ecl-label/eui-ecl-label.module.d.ts.map +0 -1
- package/ecl/eui-ecl-label/index.d.ts +0 -3
- package/ecl/eui-ecl-label/index.d.ts.map +0 -1
- package/ecl/eui-ecl-label/package.json +0 -3
- package/ecl/eui-ecl-link/eui-components-ecl-eui-ecl-link.d.ts.map +0 -1
- package/ecl/eui-ecl-link/eui-ecl-link-label.directive.d.ts +0 -8
- package/ecl/eui-ecl-link/eui-ecl-link-label.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-link/eui-ecl-link.directive.d.ts +0 -22
- package/ecl/eui-ecl-link/eui-ecl-link.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-link/eui-ecl-link.module.d.ts +0 -10
- package/ecl/eui-ecl-link/eui-ecl-link.module.d.ts.map +0 -1
- package/ecl/eui-ecl-link/index.d.ts +0 -4
- package/ecl/eui-ecl-link/index.d.ts.map +0 -1
- package/ecl/eui-ecl-link/package.json +0 -3
- package/ecl/eui-ecl-message/eui-components-ecl-eui-ecl-message.d.ts.map +0 -1
- package/ecl/eui-ecl-message/eui-ecl-message-title.directive.d.ts +0 -8
- package/ecl/eui-ecl-message/eui-ecl-message-title.directive.d.ts.map +0 -1
- package/ecl/eui-ecl-message/eui-ecl-message.component.d.ts +0 -21
- package/ecl/eui-ecl-message/eui-ecl-message.component.d.ts.map +0 -1
- package/ecl/eui-ecl-message/eui-ecl-message.module.d.ts +0 -13
- package/ecl/eui-ecl-message/eui-ecl-message.module.d.ts.map +0 -1
- package/ecl/eui-ecl-message/index.d.ts +0 -4
- package/ecl/eui-ecl-message/index.d.ts.map +0 -1
- package/ecl/eui-ecl-message/package.json +0 -3
- package/ecl/shared/eui-components-ecl-shared.d.ts.map +0 -1
- package/ecl/shared/eui-ecl-base.directive.d.ts +0 -13
- package/ecl/shared/eui-ecl-base.directive.d.ts.map +0 -1
- package/ecl/shared/index.d.ts +0 -5
- package/ecl/shared/index.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-base.event.d.ts +0 -6
- package/ecl/shared/models/eui-ecl-base.event.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-breadcrumb.model.d.ts +0 -7
- package/ecl/shared/models/eui-ecl-breadcrumb.model.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-dom.event.d.ts +0 -7
- package/ecl/shared/models/eui-ecl-dom.event.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-file-upload.model.d.ts +0 -6
- package/ecl/shared/models/eui-ecl-file-upload.model.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-gallery-item.model.d.ts +0 -7
- package/ecl/shared/models/eui-ecl-gallery-item.model.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-language.model.d.ts +0 -6
- package/ecl/shared/models/eui-ecl-language.model.d.ts.map +0 -1
- package/ecl/shared/models/eui-ecl-menu-item.model.d.ts +0 -15
- package/ecl/shared/models/eui-ecl-menu-item.model.d.ts.map +0 -1
- package/ecl/shared/models/index.d.ts +0 -8
- package/ecl/shared/models/index.d.ts.map +0 -1
- package/ecl/shared/package.json +0 -3
- package/ecl/shared/services/eui-ecl-default-language.service.d.ts +0 -33
- package/ecl/shared/services/eui-ecl-default-language.service.d.ts.map +0 -1
- package/ecl/shared/services/eui-ecl-language.service.d.ts +0 -19
- package/ecl/shared/services/eui-ecl-language.service.d.ts.map +0 -1
- package/ecl/shared/services/eui-ecl-theme.service.d.ts +0 -23
- package/ecl/shared/services/eui-ecl-theme.service.d.ts.map +0 -1
- package/ecl/shared/services/index.d.ts +0 -4
- package/ecl/shared/services/index.d.ts.map +0 -1
- package/ecl/shared/utils/constants/constants.d.ts +0 -10
- package/ecl/shared/utils/constants/constants.d.ts.map +0 -1
- package/ecl/shared/utils/constants/index.d.ts +0 -2
- package/ecl/shared/utils/constants/index.d.ts.map +0 -1
- package/ecl/shared/utils/directives/eui-ecl-click-outside/eui-ecl-click-outside.directive.d.ts +0 -12
- package/ecl/shared/utils/directives/eui-ecl-click-outside/eui-ecl-click-outside.directive.d.ts.map +0 -1
- package/ecl/shared/utils/directives/eui-ecl-click-outside/index.d.ts +0 -2
- package/ecl/shared/utils/directives/eui-ecl-click-outside/index.d.ts.map +0 -1
- package/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.directive.d.ts +0 -8
- package/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.directive.d.ts.map +0 -1
- package/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.module.d.ts +0 -9
- package/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.module.d.ts.map +0 -1
- package/ecl/shared/utils/directives/eui-ecl-hidden/index.d.ts +0 -3
- package/ecl/shared/utils/directives/eui-ecl-hidden/index.d.ts.map +0 -1
- package/ecl/shared/utils/directives/index.d.ts +0 -3
- package/ecl/shared/utils/directives/index.d.ts.map +0 -1
- package/ecl/shared/utils/dom/dom-helpers.d.ts +0 -3
- package/ecl/shared/utils/dom/dom-helpers.d.ts.map +0 -1
- package/ecl/shared/utils/dom/index.d.ts +0 -2
- package/ecl/shared/utils/dom/index.d.ts.map +0 -1
- package/ecl/shared/utils/index.d.ts +0 -4
- package/ecl/shared/utils/index.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-message-wc/ecl-message-wc.component.d.ts +0 -10
- package/ecl/webcomponents/ecl-message-wc/ecl-message-wc.component.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-message-wc/eui-components-ecl-webcomponents-ecl-message-wc.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-message-wc/index.d.ts +0 -3
- package/ecl/webcomponents/ecl-message-wc/index.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-message-wc/module.d.ts +0 -10
- package/ecl/webcomponents/ecl-message-wc/module.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-message-wc/package.json +0 -3
- package/ecl/webcomponents/ecl-webcomponents-all/eui-components-ecl-webcomponents-ecl-webcomponents-all.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-webcomponents-all/index.d.ts +0 -2
- package/ecl/webcomponents/ecl-webcomponents-all/index.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-webcomponents-all/module.d.ts +0 -9
- package/ecl/webcomponents/ecl-webcomponents-all/module.d.ts.map +0 -1
- package/ecl/webcomponents/ecl-webcomponents-all/package.json +0 -3
- package/esm2022/ecl/eui-ecl-banner/eui-components-ecl-eui-ecl-banner.mjs +0 -5
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner-credit.directive.mjs +0 -21
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner-description.directive.mjs +0 -38
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner-picture.directive.mjs +0 -37
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner-title.directive.mjs +0 -38
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner.component.mjs +0 -75
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-banner.module.mjs +0 -47
- package/esm2022/ecl/eui-ecl-banner/eui-ecl-file-picture.directive.mjs +0 -37
- package/esm2022/ecl/eui-ecl-banner/index.mjs +0 -8
- package/esm2022/ecl/eui-ecl-button/eui-components-ecl-eui-ecl-button.mjs +0 -5
- package/esm2022/ecl/eui-ecl-button/eui-ecl-button-label.directive.mjs +0 -20
- package/esm2022/ecl/eui-ecl-button/eui-ecl-button.component.mjs +0 -51
- package/esm2022/ecl/eui-ecl-button/eui-ecl-button.module.mjs +0 -20
- package/esm2022/ecl/eui-ecl-button/index.mjs +0 -4
- package/esm2022/ecl/eui-ecl-carousel/eui-components-ecl-eui-ecl-carousel.mjs +0 -5
- package/esm2022/ecl/eui-ecl-carousel/eui-ecl-carousel-item.component.mjs +0 -58
- package/esm2022/ecl/eui-ecl-carousel/eui-ecl-carousel.component.mjs +0 -331
- package/esm2022/ecl/eui-ecl-carousel/eui-ecl-carousel.module.mjs +0 -22
- package/esm2022/ecl/eui-ecl-carousel/index.mjs +0 -4
- package/esm2022/ecl/eui-ecl-icon/eui-components-ecl-eui-ecl-icon.mjs +0 -5
- package/esm2022/ecl/eui-ecl-icon/eui-ecl-icon.component.mjs +0 -127
- package/esm2022/ecl/eui-ecl-icon/eui-ecl-icon.module.mjs +0 -18
- package/esm2022/ecl/eui-ecl-icon/index.mjs +0 -3
- package/esm2022/ecl/eui-ecl-label/eui-components-ecl-eui-ecl-label.mjs +0 -5
- package/esm2022/ecl/eui-ecl-label/eui-ecl-label.directive.mjs +0 -26
- package/esm2022/ecl/eui-ecl-label/eui-ecl-label.module.mjs +0 -18
- package/esm2022/ecl/eui-ecl-label/index.mjs +0 -3
- package/esm2022/ecl/eui-ecl-link/eui-components-ecl-eui-ecl-link.mjs +0 -5
- package/esm2022/ecl/eui-ecl-link/eui-ecl-link-label.directive.mjs +0 -20
- package/esm2022/ecl/eui-ecl-link/eui-ecl-link.directive.mjs +0 -102
- package/esm2022/ecl/eui-ecl-link/eui-ecl-link.module.mjs +0 -19
- package/esm2022/ecl/eui-ecl-link/index.mjs +0 -4
- package/esm2022/ecl/eui-ecl-message/eui-components-ecl-eui-ecl-message.mjs +0 -5
- package/esm2022/ecl/eui-ecl-message/eui-ecl-message-title.directive.mjs +0 -20
- package/esm2022/ecl/eui-ecl-message/eui-ecl-message.component.mjs +0 -88
- package/esm2022/ecl/eui-ecl-message/eui-ecl-message.module.mjs +0 -22
- package/esm2022/ecl/eui-ecl-message/index.mjs +0 -4
- package/esm2022/ecl/shared/eui-components-ecl-shared.mjs +0 -5
- package/esm2022/ecl/shared/eui-ecl-base.directive.mjs +0 -36
- package/esm2022/ecl/shared/index.mjs +0 -5
- package/esm2022/ecl/shared/models/eui-ecl-base.event.mjs +0 -9
- package/esm2022/ecl/shared/models/eui-ecl-breadcrumb.model.mjs +0 -2
- package/esm2022/ecl/shared/models/eui-ecl-dom.event.mjs +0 -14
- package/esm2022/ecl/shared/models/eui-ecl-file-upload.model.mjs +0 -2
- package/esm2022/ecl/shared/models/eui-ecl-gallery-item.model.mjs +0 -2
- package/esm2022/ecl/shared/models/eui-ecl-language.model.mjs +0 -2
- package/esm2022/ecl/shared/models/eui-ecl-menu-item.model.mjs +0 -2
- package/esm2022/ecl/shared/models/index.mjs +0 -8
- package/esm2022/ecl/shared/services/eui-ecl-default-language.service.mjs +0 -295
- package/esm2022/ecl/shared/services/eui-ecl-language.service.mjs +0 -3
- package/esm2022/ecl/shared/services/eui-ecl-theme.service.mjs +0 -46
- package/esm2022/ecl/shared/services/index.mjs +0 -4
- package/esm2022/ecl/shared/utils/constants/constants.mjs +0 -11
- package/esm2022/ecl/shared/utils/constants/index.mjs +0 -2
- package/esm2022/ecl/shared/utils/directives/eui-ecl-click-outside/eui-ecl-click-outside.directive.mjs +0 -31
- package/esm2022/ecl/shared/utils/directives/eui-ecl-click-outside/index.mjs +0 -2
- package/esm2022/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.directive.mjs +0 -24
- package/esm2022/ecl/shared/utils/directives/eui-ecl-hidden/eui-ecl-hidden.module.mjs +0 -18
- package/esm2022/ecl/shared/utils/directives/eui-ecl-hidden/index.mjs +0 -3
- package/esm2022/ecl/shared/utils/directives/index.mjs +0 -3
- package/esm2022/ecl/shared/utils/dom/dom-helpers.mjs +0 -29
- package/esm2022/ecl/shared/utils/dom/index.mjs +0 -2
- package/esm2022/ecl/shared/utils/index.mjs +0 -4
- package/esm2022/ecl/webcomponents/ecl-message-wc/ecl-message-wc.component.mjs +0 -35
- package/esm2022/ecl/webcomponents/ecl-message-wc/eui-components-ecl-webcomponents-ecl-message-wc.mjs +0 -5
- package/esm2022/ecl/webcomponents/ecl-message-wc/index.mjs +0 -3
- package/esm2022/ecl/webcomponents/ecl-message-wc/module.mjs +0 -27
- package/esm2022/ecl/webcomponents/ecl-webcomponents-all/eui-components-ecl-webcomponents-ecl-webcomponents-all.mjs +0 -5
- package/esm2022/ecl/webcomponents/ecl-webcomponents-all/index.mjs +0 -2
- package/esm2022/ecl/webcomponents/ecl-webcomponents-all/module.mjs +0 -20
- package/esm2022/layout/eui-toolbar/toolbar-item-notifications/toolbar-item-notifications.component.mjs +0 -18
- package/esm2022/layout/eui-toolbar/toolbar-item-search/toolbar-item-search.component.mjs +0 -18
- package/esm2022/layout/eui-toolbar/toolbar-item-user-profile/toolbar-item-user-profile.component.mjs +0 -61
- package/esm2022/shared/eui-accessible-button-icon/eui-accessible-button-icon.component.mjs +0 -70
- package/fesm2022/eui-components-ecl-eui-ecl-banner.mjs +0 -276
- package/fesm2022/eui-components-ecl-eui-ecl-banner.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-button.mjs +0 -89
- package/fesm2022/eui-components-ecl-eui-ecl-button.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-carousel.mjs +0 -405
- package/fesm2022/eui-components-ecl-eui-ecl-carousel.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-icon.mjs +0 -149
- package/fesm2022/eui-components-ecl-eui-ecl-icon.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-label.mjs +0 -48
- package/fesm2022/eui-components-ecl-eui-ecl-label.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-link.mjs +0 -140
- package/fesm2022/eui-components-ecl-eui-ecl-link.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-eui-ecl-message.mjs +0 -129
- package/fesm2022/eui-components-ecl-eui-ecl-message.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-shared.mjs +0 -507
- package/fesm2022/eui-components-ecl-shared.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-webcomponents-ecl-message-wc.mjs +0 -65
- package/fesm2022/eui-components-ecl-webcomponents-ecl-message-wc.mjs.map +0 -1
- package/fesm2022/eui-components-ecl-webcomponents-ecl-webcomponents-all.mjs +0 -27
- package/fesm2022/eui-components-ecl-webcomponents-ecl-webcomponents-all.mjs.map +0 -1
- package/layout/eui-toolbar/toolbar-item-notifications/toolbar-item-notifications.component.d.ts +0 -7
- package/layout/eui-toolbar/toolbar-item-notifications/toolbar-item-notifications.component.d.ts.map +0 -1
- package/layout/eui-toolbar/toolbar-item-search/toolbar-item-search.component.d.ts +0 -7
- package/layout/eui-toolbar/toolbar-item-search/toolbar-item-search.component.d.ts.map +0 -1
- package/layout/eui-toolbar/toolbar-item-user-profile/toolbar-item-user-profile.component.d.ts +0 -20
- package/layout/eui-toolbar/toolbar-item-user-profile/toolbar-item-user-profile.component.d.ts.map +0 -1
- package/shared/eui-accessible-button-icon/eui-accessible-button-icon.component.d.ts +0 -24
- package/shared/eui-accessible-button-icon/eui-accessible-button-icon.component.d.ts.map +0 -1
@@ -1,149 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Component, ViewEncapsulation, Input, ViewChild, NgModule } from '@angular/core';
|
3
|
-
import * as i2 from '@angular/common';
|
4
|
-
import { CommonModule } from '@angular/common';
|
5
|
-
import { __decorate } from 'tslib';
|
6
|
-
import { coerceBoolean, coerceElement } from '@eui/base';
|
7
|
-
import { of, switchMap } from 'rxjs';
|
8
|
-
import * as i1 from '@eui/components/ecl/shared';
|
9
|
-
import { EuiEclBaseDirective } from '@eui/components/ecl/shared';
|
10
|
-
|
11
|
-
class EuiEclIconComponent extends EuiEclBaseDirective {
|
12
|
-
constructor(el, eclThemeService) {
|
13
|
-
super();
|
14
|
-
this.el = el;
|
15
|
-
this.eclThemeService = eclThemeService;
|
16
|
-
this.iconSet = 'default';
|
17
|
-
this.size = 'xs';
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
19
|
-
this.isInverted = false;
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
21
|
-
this.ariaHidden = true;
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
23
|
-
this.focusable = false;
|
24
|
-
}
|
25
|
-
ngOnChanges(changes) {
|
26
|
-
if (changes['icon']) {
|
27
|
-
this.initiateIconUrl();
|
28
|
-
}
|
29
|
-
}
|
30
|
-
ngOnInit() {
|
31
|
-
this.initiateIconUrl();
|
32
|
-
}
|
33
|
-
ngAfterViewInit() {
|
34
|
-
const hostEl = this.getHostElement();
|
35
|
-
const hostParentEl = this.getHostParentElement(hostEl);
|
36
|
-
if (hostParentEl != null) {
|
37
|
-
hostEl.style.display = 'none';
|
38
|
-
hostEl.after(this.svgEl);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
ngOnDestroy() {
|
42
|
-
try {
|
43
|
-
if (this.svgEl) {
|
44
|
-
const hostParentEl = this.svgEl.parentElement;
|
45
|
-
if (hostParentEl) {
|
46
|
-
hostParentEl.removeChild(this.svgEl);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
catch (e) { /** empty */ }
|
51
|
-
}
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
53
|
-
getClasses() {
|
54
|
-
const hostClasses = this.getHostElement().classList.toString();
|
55
|
-
return {
|
56
|
-
[super.getCssClasses('ecl-icon')]: true,
|
57
|
-
[`ecl-icon--${this.size}`]: this.size,
|
58
|
-
[`ecl-icon--${this.transform}`]: this.transform,
|
59
|
-
[`ecl-icon--${this.color}`]: this.color,
|
60
|
-
['ecl-icon--inverted']: this.isInverted,
|
61
|
-
[hostClasses]: true,
|
62
|
-
};
|
63
|
-
}
|
64
|
-
getHostElement() {
|
65
|
-
return this.el.nativeElement;
|
66
|
-
}
|
67
|
-
getHostParentElement(hostEl) {
|
68
|
-
return hostEl.parentElement;
|
69
|
-
}
|
70
|
-
initiateIconUrl() {
|
71
|
-
this.iconUrl$ = this.eclThemeService.theme$.pipe(switchMap((theme) => {
|
72
|
-
const forcedTheme = 'eu';
|
73
|
-
switch (this.iconSet) {
|
74
|
-
case 'default':
|
75
|
-
return of(`assets/images/ecl/${forcedTheme}/icons/sprites/icons.svg#${this.icon}`);
|
76
|
-
case 'social':
|
77
|
-
return of(`assets/images/ecl/${forcedTheme}/social-icons/sprites/icons-social.svg#${this.icon}`);
|
78
|
-
case 'social-media':
|
79
|
-
return of(`assets/images/ecl/${forcedTheme}/icons-social-media/sprites/icons-social-media.svg#${this.icon}`);
|
80
|
-
case 'flag':
|
81
|
-
return of(`assets/images/ecl/${forcedTheme}/icons-flag/sprites/icons-flag.svg#${this.icon}`);
|
82
|
-
default:
|
83
|
-
return of(`${this.iconSet}#${this.icon}`);
|
84
|
-
}
|
85
|
-
}));
|
86
|
-
}
|
87
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponent, deps: [{ token: i0.ElementRef }, { token: i1.EuiEclThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
88
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclIconComponent, selector: "eui-ecl-icon", inputs: { iconSet: "iconSet", icon: "icon", size: "size", color: "color", transform: "transform", ariaLabelledby: "ariaLabelledby", role: "role", isInverted: "isInverted", ariaHidden: "ariaHidden", focusable: "focusable" }, viewQueries: [{ propertyName: "svgEl", first: true, predicate: ["svg"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<svg\n #svg\n [ngClass]=\"getClasses()\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n [attr.role]=\"role || null\"\n [attr.focusable]=\"focusable\">\n <use [attr.xlink:href]=\"iconUrl$ | async\"></use>\n <ng-content></ng-content>\n</svg>\n", styles: [".ecl-icon{fill:currentcolor;margin:0;transition:transform .3s ease-in-out}.ecl-icon--2xs{height:.75rem;width:.75rem}.ecl-icon--xs{height:1rem;width:1rem}.ecl-icon--s{height:1.25rem;width:1.25rem}.ecl-icon--m{height:1.5rem;width:1.5rem}.ecl-icon--l{height:2rem;width:2rem}.ecl-icon--xl{height:2.5rem;width:2.5rem}.ecl-icon--2xl{height:3rem;width:3rem}.ecl-icon--fluid{height:1em;width:1em}.ecl-icon--primary{fill:#0e47cb}.ecl-icon--inverted{fill:#fff}.ecl-icon--rotate-90{transform:rotate(90deg)}.ecl-icon--rotate-180{transform:rotate(180deg)}.ecl-icon--rotate-270{transform:rotate(270deg)}.ecl-icon--flip-horizontal{transform:scaleX(-1)}.ecl-icon--flip-vertical{transform:scaleY(-1)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
89
|
-
}
|
90
|
-
__decorate([
|
91
|
-
coerceBoolean
|
92
|
-
], EuiEclIconComponent.prototype, "isInverted", void 0);
|
93
|
-
__decorate([
|
94
|
-
coerceBoolean
|
95
|
-
], EuiEclIconComponent.prototype, "ariaHidden", void 0);
|
96
|
-
__decorate([
|
97
|
-
coerceBoolean
|
98
|
-
], EuiEclIconComponent.prototype, "focusable", void 0);
|
99
|
-
__decorate([
|
100
|
-
coerceElement
|
101
|
-
], EuiEclIconComponent.prototype, "svgEl", void 0);
|
102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponent, decorators: [{
|
103
|
-
type: Component,
|
104
|
-
args: [{ selector: 'eui-ecl-icon', encapsulation: ViewEncapsulation.None, template: "<svg\n #svg\n [ngClass]=\"getClasses()\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n [attr.role]=\"role || null\"\n [attr.focusable]=\"focusable\">\n <use [attr.xlink:href]=\"iconUrl$ | async\"></use>\n <ng-content></ng-content>\n</svg>\n", styles: [".ecl-icon{fill:currentcolor;margin:0;transition:transform .3s ease-in-out}.ecl-icon--2xs{height:.75rem;width:.75rem}.ecl-icon--xs{height:1rem;width:1rem}.ecl-icon--s{height:1.25rem;width:1.25rem}.ecl-icon--m{height:1.5rem;width:1.5rem}.ecl-icon--l{height:2rem;width:2rem}.ecl-icon--xl{height:2.5rem;width:2.5rem}.ecl-icon--2xl{height:3rem;width:3rem}.ecl-icon--fluid{height:1em;width:1em}.ecl-icon--primary{fill:#0e47cb}.ecl-icon--inverted{fill:#fff}.ecl-icon--rotate-90{transform:rotate(90deg)}.ecl-icon--rotate-180{transform:rotate(180deg)}.ecl-icon--rotate-270{transform:rotate(270deg)}.ecl-icon--flip-horizontal{transform:scaleX(-1)}.ecl-icon--flip-vertical{transform:scaleY(-1)}\n"] }]
|
105
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EuiEclThemeService }], propDecorators: { iconSet: [{
|
106
|
-
type: Input
|
107
|
-
}], icon: [{
|
108
|
-
type: Input
|
109
|
-
}], size: [{
|
110
|
-
type: Input
|
111
|
-
}], color: [{
|
112
|
-
type: Input
|
113
|
-
}], transform: [{
|
114
|
-
type: Input
|
115
|
-
}], ariaLabelledby: [{
|
116
|
-
type: Input
|
117
|
-
}], role: [{
|
118
|
-
type: Input
|
119
|
-
}], isInverted: [{
|
120
|
-
type: Input
|
121
|
-
}], ariaHidden: [{
|
122
|
-
type: Input
|
123
|
-
}], focusable: [{
|
124
|
-
type: Input
|
125
|
-
}], svgEl: [{
|
126
|
-
type: ViewChild,
|
127
|
-
args: ['svg']
|
128
|
-
}] } });
|
129
|
-
|
130
|
-
class EuiEclIconComponentModule {
|
131
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
132
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponentModule, declarations: [EuiEclIconComponent], imports: [CommonModule], exports: [EuiEclIconComponent] }); }
|
133
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponentModule, imports: [CommonModule] }); }
|
134
|
-
}
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclIconComponentModule, decorators: [{
|
136
|
-
type: NgModule,
|
137
|
-
args: [{
|
138
|
-
imports: [CommonModule],
|
139
|
-
exports: [EuiEclIconComponent],
|
140
|
-
declarations: [EuiEclIconComponent],
|
141
|
-
}]
|
142
|
-
}] });
|
143
|
-
|
144
|
-
/**
|
145
|
-
* Generated bundle index. Do not edit.
|
146
|
-
*/
|
147
|
-
|
148
|
-
export { EuiEclIconComponent, EuiEclIconComponentModule };
|
149
|
-
//# sourceMappingURL=eui-components-ecl-eui-ecl-icon.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"eui-components-ecl-eui-ecl-icon.mjs","sources":["../../ecl/eui-ecl-icon/eui-ecl-icon.component.ts","../../ecl/eui-ecl-icon/eui-ecl-icon.component.html","../../ecl/eui-ecl-icon/eui-ecl-icon.module.ts","../../ecl/eui-ecl-icon/eui-components-ecl-eui-ecl-icon.ts"],"sourcesContent":["import {\n AfterViewInit,\n Component,\n ElementRef,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n SimpleChanges,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { coerceBoolean, coerceElement } from '@eui/base';\nimport { Observable, of, switchMap } from 'rxjs';\nimport { EuiEclThemeService, EuiEclBaseDirective } from '@eui/components/ecl/shared';\n\n@Component({\n selector: 'eui-ecl-icon',\n templateUrl: './eui-ecl-icon.component.html',\n styleUrls: ['./_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiEclIconComponent extends EuiEclBaseDirective implements OnInit, OnChanges, OnDestroy, AfterViewInit {\n @Input() iconSet: 'default' | 'social' | 'social-media' | 'flag' | string = 'default';\n @Input() icon: string;\n @Input() size: '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | 'fluid' | string = 'xs';\n @Input() color: string;\n @Input() transform: string;\n @Input() ariaLabelledby: string;\n @Input() role: string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() isInverted: boolean | any = false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() ariaHidden: boolean | any = true;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() focusable: boolean | any = false;\n\n @coerceElement @ViewChild('svg') svgEl: Element;\n\n iconUrl$: Observable<string>;\n\n constructor(\n public el: ElementRef,\n private eclThemeService: EuiEclThemeService,\n ) {\n super();\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['icon']) {\n this.initiateIconUrl();\n }\n }\n\n ngOnInit(): void {\n this.initiateIconUrl();\n }\n\n ngAfterViewInit(): void {\n const hostEl: HTMLElement = this.getHostElement();\n const hostParentEl = this.getHostParentElement(hostEl);\n\n if (hostParentEl != null) {\n hostEl.style.display = 'none';\n hostEl.after(this.svgEl);\n }\n }\n\n ngOnDestroy(): void {\n try {\n if (this.svgEl) {\n const hostParentEl = this.svgEl.parentElement;\n if (hostParentEl) {\n hostParentEl.removeChild(this.svgEl);\n }\n }\n } catch (e) { /** empty */ }\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n getClasses(): {[p: string]: any} {\n const hostClasses = this.getHostElement().classList.toString();\n\n return {\n [super.getCssClasses('ecl-icon')]: true,\n [`ecl-icon--${this.size}`]: this.size,\n [`ecl-icon--${this.transform}`]: this.transform,\n [`ecl-icon--${this.color}`]: this.color,\n ['ecl-icon--inverted']: this.isInverted,\n [hostClasses]: true,\n };\n }\n\n private getHostElement(): HTMLElement {\n return this.el.nativeElement;\n }\n\n private getHostParentElement(hostEl: HTMLElement): HTMLElement {\n return hostEl.parentElement;\n }\n\n private initiateIconUrl(): void {\n this.iconUrl$ = this.eclThemeService.theme$.pipe(\n switchMap((theme) => {\n const forcedTheme = 'eu';\n switch (this.iconSet) {\n case 'default':\n return of(`assets/images/ecl/${forcedTheme}/icons/sprites/icons.svg#${this.icon}`);\n case 'social':\n return of(`assets/images/ecl/${forcedTheme}/social-icons/sprites/icons-social.svg#${this.icon}`);\n case 'social-media':\n return of(`assets/images/ecl/${forcedTheme}/icons-social-media/sprites/icons-social-media.svg#${this.icon}`);\n case 'flag':\n return of(`assets/images/ecl/${forcedTheme}/icons-flag/sprites/icons-flag.svg#${this.icon}`);\n default:\n return of(`${this.iconSet}#${this.icon}`);\n }\n }),\n );\n }\n}\n","<svg\n #svg\n [ngClass]=\"getClasses()\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n [attr.role]=\"role || null\"\n [attr.focusable]=\"focusable\">\n <use [attr.xlink:href]=\"iconUrl$ | async\"></use>\n <ng-content></ng-content>\n</svg>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiEclIconComponent } from './eui-ecl-icon.component';\n\n@NgModule({\n imports: [CommonModule],\n exports: [EuiEclIconComponent],\n declarations: [EuiEclIconComponent],\n})\nexport class EuiEclIconComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAsBM,MAAO,mBAAoB,SAAQ,mBAAmB,CAAA;IAmBxD,WACW,CAAA,EAAc,EACb,eAAmC,EAAA;AAE3C,QAAA,KAAK,EAAE,CAAC;QAHD,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;QACb,IAAe,CAAA,eAAA,GAAf,eAAe,CAAoB;QApBtC,IAAO,CAAA,OAAA,GAA4D,SAAS,CAAC;QAE7E,IAAI,CAAA,IAAA,GAAqE,IAAI,CAAC;;QAM/D,IAAU,CAAA,UAAA,GAAkB,KAAK,CAAC;;QAElC,IAAU,CAAA,UAAA,GAAkB,IAAI,CAAC;;QAEjC,IAAS,CAAA,SAAA,GAAkB,KAAK,CAAC;KAWxD;AAED,IAAA,WAAW,CAAC,OAAsB,EAAA;AAC9B,QAAA,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACjB,IAAI,CAAC,eAAe,EAAE,CAAC;AAC1B,SAAA;K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mB,CAAC;oBAC9B,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACtC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Directive, Input, HostBinding, NgModule } from '@angular/core';
|
3
|
-
import { CommonModule } from '@angular/common';
|
4
|
-
import { EuiEclBaseDirective } from '@eui/components/ecl/shared';
|
5
|
-
|
6
|
-
class EuiEclLabelDirective extends EuiEclBaseDirective {
|
7
|
-
constructor() {
|
8
|
-
super(...arguments);
|
9
|
-
this.variant = 'low';
|
10
|
-
}
|
11
|
-
get cssClasses() {
|
12
|
-
return [super.getCssClasses('ecl-label'), `ecl-label--${this.variant}`].join(' ').trim();
|
13
|
-
}
|
14
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
15
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclLabelDirective, selector: "[euiEclLabel]", inputs: { variant: "variant" }, host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
16
|
-
}
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirective, decorators: [{
|
18
|
-
type: Directive,
|
19
|
-
args: [{
|
20
|
-
selector: '[euiEclLabel]',
|
21
|
-
}]
|
22
|
-
}], propDecorators: { variant: [{
|
23
|
-
type: Input
|
24
|
-
}], cssClasses: [{
|
25
|
-
type: HostBinding,
|
26
|
-
args: ['class']
|
27
|
-
}] } });
|
28
|
-
|
29
|
-
class EuiEclLabelDirectiveModule {
|
30
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
31
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirectiveModule, declarations: [EuiEclLabelDirective], imports: [CommonModule], exports: [EuiEclLabelDirective] }); }
|
32
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirectiveModule, imports: [CommonModule] }); }
|
33
|
-
}
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLabelDirectiveModule, decorators: [{
|
35
|
-
type: NgModule,
|
36
|
-
args: [{
|
37
|
-
imports: [CommonModule],
|
38
|
-
exports: [EuiEclLabelDirective],
|
39
|
-
declarations: [EuiEclLabelDirective],
|
40
|
-
}]
|
41
|
-
}] });
|
42
|
-
|
43
|
-
/**
|
44
|
-
* Generated bundle index. Do not edit.
|
45
|
-
*/
|
46
|
-
|
47
|
-
export { EuiEclLabelDirective, EuiEclLabelDirectiveModule };
|
48
|
-
//# sourceMappingURL=eui-components-ecl-eui-ecl-label.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"eui-components-ecl-eui-ecl-label.mjs","sources":["../../ecl/eui-ecl-label/eui-ecl-label.directive.ts","../../ecl/eui-ecl-label/eui-ecl-label.module.ts","../../ecl/eui-ecl-label/eui-components-ecl-eui-ecl-label.ts"],"sourcesContent":["import { Directive, HostBinding, Input } from '@angular/core';\nimport { EuiEclBaseDirective } from '@eui/components/ecl/shared';\n\n@Directive({\n selector: '[euiEclLabel]',\n})\nexport class EuiEclLabelDirective extends EuiEclBaseDirective {\n @Input() variant: 'low' | 'medium' | 'high' | 'highlight' = 'low';\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-label'), `ecl-label--${this.variant}`].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiEclLabelDirective } from './eui-ecl-label.directive';\n\n@NgModule({\n imports: [CommonModule],\n exports: [EuiEclLabelDirective],\n declarations: [EuiEclLabelDirective],\n})\nexport class EuiEclLabelDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAMM,MAAO,oBAAqB,SAAQ,mBAAmB,CAAA;AAH7D,IAAA,WAAA,GAAA;;QAIa,IAAO,CAAA,OAAA,GAA4C,KAAK,CAAC;AAMrE,KAAA;AAJG,IAAA,IACI,UAAU,GAAA;QACV,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,CAAA,WAAA,EAAc,IAAI,CAAC,OAAO,CAAE,CAAA,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;KAC5F;iIANQ,oBAAoB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;qHAApB,oBAAoB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,eAAe;AAC5B,iBAAA,CAAA;8BAEY,OAAO,EAAA,CAAA;sBAAf,KAAK;gBAGF,UAAU,EAAA,CAAA;sBADb,WAAW;uBAAC,OAAO,CAAA;;;MCAX,0BAA0B,CAAA;iIAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAA1B,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,EAFpB,YAAA,EAAA,CAAA,oBAAoB,CAFzB,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGrB,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,YAJzB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIb,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACvC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
|
@@ -1,140 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { Directive, Input, HostBinding, ContentChildren, forwardRef, NgModule } from '@angular/core';
|
3
|
-
import { CommonModule } from '@angular/common';
|
4
|
-
import { __decorate } from 'tslib';
|
5
|
-
import { EuiEclBaseDirective, hasPreviousSiblingWithAttribute, hasNextSiblingWithAttribute } from '@eui/components/ecl/shared';
|
6
|
-
import { EuiEclIconComponent } from '@eui/components/ecl/eui-ecl-icon';
|
7
|
-
import { coerceBoolean } from '@eui/base';
|
8
|
-
|
9
|
-
class EuiEclLinkDirective extends EuiEclBaseDirective {
|
10
|
-
get cssClasses() {
|
11
|
-
return [super.getCssClasses('ecl-link'), this.variant ? `ecl-link--${this.variant}` : ''].join(' ').trim();
|
12
|
-
}
|
13
|
-
get hasRightIcon() {
|
14
|
-
return this.isIconOnRightSide(this.eclIconComponents.toArray());
|
15
|
-
}
|
16
|
-
get hasLeftIcon() {
|
17
|
-
return this.isIconOnLeftSide(this.eclIconComponents.toArray());
|
18
|
-
}
|
19
|
-
get hasIcon() {
|
20
|
-
return this.eclIconComponents && this.eclIconComponents.length > 0;
|
21
|
-
}
|
22
|
-
constructor(el) {
|
23
|
-
super();
|
24
|
-
this.el = el;
|
25
|
-
}
|
26
|
-
ngAfterContentInit() {
|
27
|
-
if (this.eclIconComponents) {
|
28
|
-
setTimeout(() => {
|
29
|
-
this.eclIconComponents.forEach((icn) => {
|
30
|
-
if (this.isIconOnLeftSide(this.eclIconComponents.toArray())) {
|
31
|
-
icn.class = 'ecl-link__icon ecl-link__icon--before';
|
32
|
-
}
|
33
|
-
else if (this.isIconOnRightSide(this.eclIconComponents.toArray())) {
|
34
|
-
icn.class = 'ecl-link__icon ecl-link__icon--after';
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
icn.class = 'ecl-link__icon ecl-link__icon--before';
|
38
|
-
}
|
39
|
-
});
|
40
|
-
});
|
41
|
-
}
|
42
|
-
}
|
43
|
-
isIconOnRightSide(icons) {
|
44
|
-
return !!icons.find((icn) => {
|
45
|
-
const iconEl = icn.el.nativeElement;
|
46
|
-
if (hasPreviousSiblingWithAttribute(iconEl, 'eclLinkLabel')) {
|
47
|
-
return true;
|
48
|
-
}
|
49
|
-
return false;
|
50
|
-
});
|
51
|
-
}
|
52
|
-
isIconOnLeftSide(icons) {
|
53
|
-
return !!icons.find((icn) => {
|
54
|
-
const iconEl = icn.el.nativeElement;
|
55
|
-
if (hasNextSiblingWithAttribute(iconEl, 'eclLinkLabel')) {
|
56
|
-
return true;
|
57
|
-
}
|
58
|
-
return false;
|
59
|
-
});
|
60
|
-
}
|
61
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
62
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclLinkDirective, selector: "[euiEclLink]", inputs: { variant: "variant", isNegative: "isNegative", isNoVisited: "isNoVisited" }, host: { properties: { "class.ecl-link--negative": "this.isNegative", "class.ecl-link--no-visited": "this.isNoVisited", "class": "this.cssClasses", "class.ecl-link--icon-after": "this.hasRightIcon", "class.ecl-link--icon-before": "this.hasLeftIcon", "class.ecl-link--icon": "this.hasIcon" } }, queries: [{ propertyName: "eclIconComponents", predicate: i0.forwardRef(() => EuiEclIconComponent) }], usesInheritance: true, ngImport: i0 }); }
|
63
|
-
}
|
64
|
-
__decorate([
|
65
|
-
coerceBoolean
|
66
|
-
], EuiEclLinkDirective.prototype, "isNegative", void 0);
|
67
|
-
__decorate([
|
68
|
-
coerceBoolean
|
69
|
-
], EuiEclLinkDirective.prototype, "isNoVisited", void 0);
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirective, decorators: [{
|
71
|
-
type: Directive,
|
72
|
-
args: [{
|
73
|
-
selector: '[euiEclLink]',
|
74
|
-
}]
|
75
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { variant: [{
|
76
|
-
type: Input
|
77
|
-
}], isNegative: [{
|
78
|
-
type: Input
|
79
|
-
}, {
|
80
|
-
type: HostBinding,
|
81
|
-
args: ['class.ecl-link--negative']
|
82
|
-
}], isNoVisited: [{
|
83
|
-
type: Input
|
84
|
-
}, {
|
85
|
-
type: HostBinding,
|
86
|
-
args: ['class.ecl-link--no-visited']
|
87
|
-
}], eclIconComponents: [{
|
88
|
-
type: ContentChildren,
|
89
|
-
args: [forwardRef(() => EuiEclIconComponent)]
|
90
|
-
}], cssClasses: [{
|
91
|
-
type: HostBinding,
|
92
|
-
args: ['class']
|
93
|
-
}], hasRightIcon: [{
|
94
|
-
type: HostBinding,
|
95
|
-
args: ['class.ecl-link--icon-after']
|
96
|
-
}], hasLeftIcon: [{
|
97
|
-
type: HostBinding,
|
98
|
-
args: ['class.ecl-link--icon-before']
|
99
|
-
}], hasIcon: [{
|
100
|
-
type: HostBinding,
|
101
|
-
args: ['class.ecl-link--icon']
|
102
|
-
}] } });
|
103
|
-
|
104
|
-
class EuiEclLinkLabelDirective extends EuiEclBaseDirective {
|
105
|
-
get cssClasses() {
|
106
|
-
return [super.getCssClasses('ecl-link__label')].join(' ').trim();
|
107
|
-
}
|
108
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkLabelDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
109
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclLinkLabelDirective, selector: "[euiEclLinkLabel]", host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
110
|
-
}
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkLabelDirective, decorators: [{
|
112
|
-
type: Directive,
|
113
|
-
args: [{
|
114
|
-
selector: '[euiEclLinkLabel]',
|
115
|
-
}]
|
116
|
-
}], propDecorators: { cssClasses: [{
|
117
|
-
type: HostBinding,
|
118
|
-
args: ['class']
|
119
|
-
}] } });
|
120
|
-
|
121
|
-
class EuiEclLinkDirectiveModule {
|
122
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
123
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirectiveModule, declarations: [EuiEclLinkDirective, EuiEclLinkLabelDirective], imports: [CommonModule], exports: [EuiEclLinkDirective, EuiEclLinkLabelDirective] }); }
|
124
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirectiveModule, imports: [CommonModule] }); }
|
125
|
-
}
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclLinkDirectiveModule, decorators: [{
|
127
|
-
type: NgModule,
|
128
|
-
args: [{
|
129
|
-
imports: [CommonModule],
|
130
|
-
exports: [EuiEclLinkDirective, EuiEclLinkLabelDirective],
|
131
|
-
declarations: [EuiEclLinkDirective, EuiEclLinkLabelDirective],
|
132
|
-
}]
|
133
|
-
}] });
|
134
|
-
|
135
|
-
/**
|
136
|
-
* Generated bundle index. Do not edit.
|
137
|
-
*/
|
138
|
-
|
139
|
-
export { EuiEclLinkDirective, EuiEclLinkDirectiveModule, EuiEclLinkLabelDirective };
|
140
|
-
//# sourceMappingURL=eui-components-ecl-eui-ecl-link.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"eui-components-ecl-eui-ecl-link.mjs","sources":["../../ecl/eui-ecl-link/eui-ecl-link.directive.ts","../../ecl/eui-ecl-link/eui-ecl-link-label.directive.ts","../../ecl/eui-ecl-link/eui-ecl-link.module.ts","../../ecl/eui-ecl-link/eui-components-ecl-eui-ecl-link.ts"],"sourcesContent":["import { Directive, HostBinding, Input, AfterContentInit, forwardRef, ContentChildren, QueryList, ElementRef } from '@angular/core';\nimport { hasNextSiblingWithAttribute, hasPreviousSiblingWithAttribute } from '@eui/components/ecl/shared';\nimport { EuiEclIconComponent } from '@eui/components/ecl/eui-ecl-icon';\nimport { EuiEclBaseDirective } from '@eui/components/ecl/shared';\nimport { coerceBoolean } from '@eui/base';\n\n@Directive({\n selector: '[euiEclLink]',\n})\nexport class EuiEclLinkDirective extends EuiEclBaseDirective implements AfterContentInit {\n @Input() variant: 'standalone' | 'cta' | 'primary' | 'secondary';\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() @HostBinding('class.ecl-link--negative') isNegative: boolean | any;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() @HostBinding('class.ecl-link--no-visited') isNoVisited: boolean | any;\n @ContentChildren(forwardRef(() => EuiEclIconComponent)) eclIconComponents: QueryList<EuiEclIconComponent>;\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link'), this.variant ? `ecl-link--${this.variant}` : ''].join(' ').trim();\n }\n\n @HostBinding('class.ecl-link--icon-after')\n get hasRightIcon(): boolean {\n return this.isIconOnRightSide(this.eclIconComponents.toArray());\n }\n\n @HostBinding('class.ecl-link--icon-before')\n get hasLeftIcon(): boolean {\n return this.isIconOnLeftSide(this.eclIconComponents.toArray());\n }\n\n @HostBinding('class.ecl-link--icon')\n get hasIcon(): boolean {\n return this.eclIconComponents && this.eclIconComponents.length > 0;\n }\n\n constructor(public el: ElementRef) {\n super();\n }\n\n ngAfterContentInit(): void {\n if (this.eclIconComponents) {\n setTimeout(() => {\n this.eclIconComponents.forEach((icn) => {\n if (this.isIconOnLeftSide(this.eclIconComponents.toArray())) {\n icn.class = 'ecl-link__icon ecl-link__icon--before';\n } else if (this.isIconOnRightSide(this.eclIconComponents.toArray())) {\n icn.class = 'ecl-link__icon ecl-link__icon--after';\n } else {\n icn.class = 'ecl-link__icon ecl-link__icon--before';\n }\n });\n });\n }\n }\n\n private isIconOnRightSide(icons: EuiEclIconComponent[]): boolean {\n return !!icons.find((icn) => {\n const iconEl = icn.el.nativeElement as HTMLElement;\n\n if (hasPreviousSiblingWithAttribute(iconEl, 'eclLinkLabel')) {\n return true;\n }\n\n return false;\n });\n }\n\n private isIconOnLeftSide(icons: EuiEclIconComponent[]): boolean {\n return !!icons.find((icn) => {\n const iconEl = icn.el.nativeElement as HTMLElement;\n\n if (hasNextSiblingWithAttribute(iconEl, 'eclLinkLabel')) {\n return true;\n }\n\n return false;\n });\n }\n}\n","import { Directive, HostBinding } from '@angular/core';\nimport { EuiEclBaseDirective } from '@eui/components/ecl/shared';\n\n@Directive({\n selector: '[euiEclLinkLabel]',\n})\nexport class EuiEclLinkLabelDirective extends EuiEclBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-link__label')].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiEclLinkDirective } from './eui-ecl-link.directive';\nimport { EuiEclLinkLabelDirective } from './eui-ecl-link-label.directive';\n\n@NgModule({\n imports: [CommonModule],\n exports: [EuiEclLinkDirective, EuiEclLinkLabelDirective],\n declarations: [EuiEclLinkDirective, EuiEclLinkLabelDirective],\n})\nexport class EuiEclLinkDirectiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AASM,MAAO,mBAAoB,SAAQ,mBAAmB,CAAA;AAQxD,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,GAAG,CAAa,UAAA,EAAA,IAAI,CAAC,OAAO,CAAE,CAAA,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;KAC9G;AAED,IAAA,IACI,YAAY,GAAA;QACZ,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAC,CAAC;KACnE;AAED,IAAA,IACI,WAAW,GAAA;QACX,OAAO,IAAI,CAAC,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A,QAAA,EAAA,CAAA,CAAA,EAAA;kIAAzB,yBAAyB,EAAA,YAAA,EAAA,CAFnB,mBAAmB,EAAE,wBAAwB,aAFlD,YAAY,CAAA,EAAA,OAAA,EAAA,CACZ,mBAAmB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;AAG9C,uBAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAJxB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIb,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBALrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;AACxD,oBAAA,YAAY,EAAE,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;AAChE,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
@@ -1,129 +0,0 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { EventEmitter, Component, ViewEncapsulation, Input, Output, HostBinding, Directive, NgModule } from '@angular/core';
|
3
|
-
import * as i1 from '@angular/common';
|
4
|
-
import { CommonModule } from '@angular/common';
|
5
|
-
import * as i2 from '@eui/components/ecl/eui-ecl-button';
|
6
|
-
import { EuiEclButtonComponentModule } from '@eui/components/ecl/eui-ecl-button';
|
7
|
-
import * as i3 from '@eui/components/ecl/eui-ecl-icon';
|
8
|
-
import { EuiEclIconComponentModule } from '@eui/components/ecl/eui-ecl-icon';
|
9
|
-
import * as i4 from '@ngx-translate/core';
|
10
|
-
import { TranslateModule } from '@ngx-translate/core';
|
11
|
-
import { __decorate } from 'tslib';
|
12
|
-
import { coerceBoolean } from '@eui/base';
|
13
|
-
import { EuiEclBaseEvent, EuiEclBaseDirective } from '@eui/components/ecl/shared';
|
14
|
-
|
15
|
-
class EuiEclMessageCloseEvent extends EuiEclBaseEvent {
|
16
|
-
}
|
17
|
-
class EuiEclMessageComponent extends EuiEclBaseDirective {
|
18
|
-
constructor() {
|
19
|
-
super(...arguments);
|
20
|
-
this.variant = 'info';
|
21
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
22
|
-
this.isVisible = true;
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
24
|
-
this.isCloseable = true;
|
25
|
-
// TODO: Output bindings, including aliases, should not be named as standard DOM events
|
26
|
-
// eslint-disable-next-line @angular-eslint/no-output-native
|
27
|
-
this.close = new EventEmitter();
|
28
|
-
this.role = 'alert';
|
29
|
-
}
|
30
|
-
get isHidden() {
|
31
|
-
return !this.isVisible;
|
32
|
-
}
|
33
|
-
get cssClasses() {
|
34
|
-
return [super.getCssClasses('ecl-message'), this.variant ? `ecl-message--${this.variant}` : ''].join(' ').trim();
|
35
|
-
}
|
36
|
-
onCloseClick(evt) {
|
37
|
-
const event = new EuiEclMessageCloseEvent();
|
38
|
-
this.close.next(event);
|
39
|
-
if (!event.defaultPrevented) {
|
40
|
-
this.isVisible = false;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
getIcon() {
|
44
|
-
if (this.variant === 'info') {
|
45
|
-
return 'information';
|
46
|
-
}
|
47
|
-
else if (this.variant === 'success') {
|
48
|
-
return 'success';
|
49
|
-
}
|
50
|
-
else if (this.variant === 'warning') {
|
51
|
-
return 'warning';
|
52
|
-
}
|
53
|
-
else if (this.variant === 'error') {
|
54
|
-
return 'error';
|
55
|
-
}
|
56
|
-
else {
|
57
|
-
return 'information';
|
58
|
-
}
|
59
|
-
}
|
60
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
61
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclMessageComponent, selector: "eui-ecl-message", inputs: { messageTitle: "messageTitle", variant: "variant", isVisible: "isVisible", isCloseable: "isCloseable" }, outputs: { close: "close" }, host: { properties: { "attr.role": "this.role", "class.ecl-u-d-none": "this.isHidden", "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0, template: "<eui-ecl-icon size=\"l\" class=\"ecl-message__icon\" [icon]=\"getIcon()\"></eui-ecl-icon>\n\n<div class=\"ecl-message__content\">\n <button *ngIf=\"isCloseable\" eclButton class=\"ecl-message__close\" (click)=\"onCloseClick($event)\" variant=\"ghost\">\n <span eclButtonLabel>\n {{ 'ecl.common.CLOSE' | translate }}\n </span>\n <eui-ecl-icon icon=\"close\" size=\"s\"></eui-ecl-icon>\n </button>\n\n <ng-content select=\"[eclMessageTitle]\"></ng-content>\n <div class=\"ecl-message__description\"><ng-content></ng-content></div>\n</div>\n", styles: [".ecl-message{border-bottom-width:0;border-end-start-radius:4px;border-inline-end-width:0;border-inline-start-width:4px;border-start-start-radius:4px;border-style:solid;border-top-width:0;box-sizing:border-box;display:flex;margin:0;padding-bottom:1.5rem;padding-inline-end:.5rem;padding-inline-start:1.5rem;padding-top:1.5rem;position:relative}.ecl-message__icon{flex-shrink:0;margin-inline-end:.5rem}.ecl-message__content{width:100%}.ecl-message__title{color:#171a22;font: 400 1rem/1.5rem arial,sans-serif;font-weight:700;margin-bottom:.5rem;max-width:80ch}.ecl-message__description{color:#515560;font: 400 1rem/1.5rem arial,sans-serif;margin:0 0 .5rem;max-width:80ch;padding-bottom:2rem}.ecl-message__close{bottom:.25rem;color:#0e47cb;font: 400 1rem/1.25rem arial,sans-serif;font-weight:none;position:absolute;right:0}.no-js .ecl-message__close{display:none}@supports (display: grid){.ecl-message__content{display:grid}.ecl-message__title{grid-column-start:1}.ecl-message__description{grid-column-start:1;padding-bottom:0}.ecl-message__close{align-self:self-end;bottom:auto;grid-column-start:1;grid-row-end:4;grid-row-start:3;justify-self:end;margin-bottom:-.75rem;position:relative;right:auto}}@media (min-width: 768px){.ecl-message__title{margin-bottom:.5rem}.ecl-message__description{margin-bottom:0;padding-bottom:0}.ecl-message__close{bottom:auto;top:.75rem}@supports (display: grid){.ecl-message__content{grid-template-columns:auto max-content}.ecl-message__close{align-self:self-start;grid-column-start:2;grid-row-end:span 2;grid-row-start:1;margin-bottom:0;margin-top:-.75rem;position:relative;right:auto;top:auto}}}.ecl-message--info{background:#f3f6fc;border-color:#0e47cb}.ecl-message--info .ecl-message__icon{fill:#0e47cb}.ecl-message--success{background:#f2fcf9;border-color:#008d66}.ecl-message--success .ecl-message__icon{fill:#008d66}.ecl-message--warning{background:#fff7f2;border-color:#cc4e00}.ecl-message--warning .ecl-message__icon{fill:#cc4e00}.ecl-message--error{background:#fef2f5;border-color:#bf0036}.ecl-message--error .ecl-message__icon{fill:#bf0036}ecl-button{grid-column-start:2;grid-row-start:1}.ecl-message__icon.ecl-icon{margin-inline-end:1rem}.ecl-message__close *{display:inline-flex;margin-inline-end:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.EuiEclButtonComponent, selector: "button[eclButton], button[ecl-button], a[eclButton]", inputs: ["variant", "containerStyleClass"] }, { kind: "component", type: i3.EuiEclIconComponent, selector: "eui-ecl-icon", inputs: ["iconSet", "icon", "size", "color", "transform", "ariaLabelledby", "role", "isInverted", "ariaHidden", "focusable"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
62
|
-
}
|
63
|
-
__decorate([
|
64
|
-
coerceBoolean
|
65
|
-
], EuiEclMessageComponent.prototype, "isVisible", void 0);
|
66
|
-
__decorate([
|
67
|
-
coerceBoolean
|
68
|
-
], EuiEclMessageComponent.prototype, "isCloseable", void 0);
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponent, decorators: [{
|
70
|
-
type: Component,
|
71
|
-
args: [{ selector: 'eui-ecl-message', encapsulation: ViewEncapsulation.None, template: "<eui-ecl-icon size=\"l\" class=\"ecl-message__icon\" [icon]=\"getIcon()\"></eui-ecl-icon>\n\n<div class=\"ecl-message__content\">\n <button *ngIf=\"isCloseable\" eclButton class=\"ecl-message__close\" (click)=\"onCloseClick($event)\" variant=\"ghost\">\n <span eclButtonLabel>\n {{ 'ecl.common.CLOSE' | translate }}\n </span>\n <eui-ecl-icon icon=\"close\" size=\"s\"></eui-ecl-icon>\n </button>\n\n <ng-content select=\"[eclMessageTitle]\"></ng-content>\n <div class=\"ecl-message__description\"><ng-content></ng-content></div>\n</div>\n", styles: [".ecl-message{border-bottom-width:0;border-end-start-radius:4px;border-inline-end-width:0;border-inline-start-width:4px;border-start-start-radius:4px;border-style:solid;border-top-width:0;box-sizing:border-box;display:flex;margin:0;padding-bottom:1.5rem;padding-inline-end:.5rem;padding-inline-start:1.5rem;padding-top:1.5rem;position:relative}.ecl-message__icon{flex-shrink:0;margin-inline-end:.5rem}.ecl-message__content{width:100%}.ecl-message__title{color:#171a22;font: 400 1rem/1.5rem arial,sans-serif;font-weight:700;margin-bottom:.5rem;max-width:80ch}.ecl-message__description{color:#515560;font: 400 1rem/1.5rem arial,sans-serif;margin:0 0 .5rem;max-width:80ch;padding-bottom:2rem}.ecl-message__close{bottom:.25rem;color:#0e47cb;font: 400 1rem/1.25rem arial,sans-serif;font-weight:none;position:absolute;right:0}.no-js .ecl-message__close{display:none}@supports (display: grid){.ecl-message__content{display:grid}.ecl-message__title{grid-column-start:1}.ecl-message__description{grid-column-start:1;padding-bottom:0}.ecl-message__close{align-self:self-end;bottom:auto;grid-column-start:1;grid-row-end:4;grid-row-start:3;justify-self:end;margin-bottom:-.75rem;position:relative;right:auto}}@media (min-width: 768px){.ecl-message__title{margin-bottom:.5rem}.ecl-message__description{margin-bottom:0;padding-bottom:0}.ecl-message__close{bottom:auto;top:.75rem}@supports (display: grid){.ecl-message__content{grid-template-columns:auto max-content}.ecl-message__close{align-self:self-start;grid-column-start:2;grid-row-end:span 2;grid-row-start:1;margin-bottom:0;margin-top:-.75rem;position:relative;right:auto;top:auto}}}.ecl-message--info{background:#f3f6fc;border-color:#0e47cb}.ecl-message--info .ecl-message__icon{fill:#0e47cb}.ecl-message--success{background:#f2fcf9;border-color:#008d66}.ecl-message--success .ecl-message__icon{fill:#008d66}.ecl-message--warning{background:#fff7f2;border-color:#cc4e00}.ecl-message--warning .ecl-message__icon{fill:#cc4e00}.ecl-message--error{background:#fef2f5;border-color:#bf0036}.ecl-message--error .ecl-message__icon{fill:#bf0036}ecl-button{grid-column-start:2;grid-row-start:1}.ecl-message__icon.ecl-icon{margin-inline-end:1rem}.ecl-message__close *{display:inline-flex;margin-inline-end:.5rem}\n"] }]
|
72
|
-
}], propDecorators: { messageTitle: [{
|
73
|
-
type: Input
|
74
|
-
}], variant: [{
|
75
|
-
type: Input
|
76
|
-
}], isVisible: [{
|
77
|
-
type: Input
|
78
|
-
}], isCloseable: [{
|
79
|
-
type: Input
|
80
|
-
}], close: [{
|
81
|
-
type: Output
|
82
|
-
}], role: [{
|
83
|
-
type: HostBinding,
|
84
|
-
args: ['attr.role']
|
85
|
-
}], isHidden: [{
|
86
|
-
type: HostBinding,
|
87
|
-
args: ['class.ecl-u-d-none']
|
88
|
-
}], cssClasses: [{
|
89
|
-
type: HostBinding,
|
90
|
-
args: ['class']
|
91
|
-
}] } });
|
92
|
-
|
93
|
-
class EuiEclMessageTitleDirective extends EuiEclBaseDirective {
|
94
|
-
get cssClasses() {
|
95
|
-
return [super.getCssClasses('ecl-message__title')].join(' ').trim();
|
96
|
-
}
|
97
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageTitleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
98
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.1", type: EuiEclMessageTitleDirective, selector: "[euiEclMessageTitle]", host: { properties: { "class": "this.cssClasses" } }, usesInheritance: true, ngImport: i0 }); }
|
99
|
-
}
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageTitleDirective, decorators: [{
|
101
|
-
type: Directive,
|
102
|
-
args: [{
|
103
|
-
selector: '[euiEclMessageTitle]',
|
104
|
-
}]
|
105
|
-
}], propDecorators: { cssClasses: [{
|
106
|
-
type: HostBinding,
|
107
|
-
args: ['class']
|
108
|
-
}] } });
|
109
|
-
|
110
|
-
class EuiEclMessageComponentModule {
|
111
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
112
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponentModule, declarations: [EuiEclMessageComponent, EuiEclMessageTitleDirective], imports: [CommonModule, EuiEclButtonComponentModule, EuiEclIconComponentModule, TranslateModule], exports: [EuiEclMessageComponent, EuiEclMessageTitleDirective] }); }
|
113
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponentModule, imports: [CommonModule, EuiEclButtonComponentModule, EuiEclIconComponentModule, TranslateModule] }); }
|
114
|
-
}
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.1", ngImport: i0, type: EuiEclMessageComponentModule, decorators: [{
|
116
|
-
type: NgModule,
|
117
|
-
args: [{
|
118
|
-
imports: [CommonModule, EuiEclButtonComponentModule, EuiEclIconComponentModule, TranslateModule],
|
119
|
-
exports: [EuiEclMessageComponent, EuiEclMessageTitleDirective],
|
120
|
-
declarations: [EuiEclMessageComponent, EuiEclMessageTitleDirective],
|
121
|
-
}]
|
122
|
-
}] });
|
123
|
-
|
124
|
-
/**
|
125
|
-
* Generated bundle index. Do not edit.
|
126
|
-
*/
|
127
|
-
|
128
|
-
export { EuiEclMessageCloseEvent, EuiEclMessageComponent, EuiEclMessageComponentModule, EuiEclMessageTitleDirective };
|
129
|
-
//# sourceMappingURL=eui-components-ecl-eui-ecl-message.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"eui-components-ecl-eui-ecl-message.mjs","sources":["../../ecl/eui-ecl-message/eui-ecl-message.component.ts","../../ecl/eui-ecl-message/eui-ecl-message.component.html","../../ecl/eui-ecl-message/eui-ecl-message-title.directive.ts","../../ecl/eui-ecl-message/eui-ecl-message.module.ts","../../ecl/eui-ecl-message/eui-components-ecl-eui-ecl-message.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { coerceBoolean } from '@eui/base';\nimport { EuiEclBaseEvent } from '@eui/components/ecl/shared';\nimport { EuiEclBaseDirective } from '@eui/components/ecl/shared';\n\nexport class EuiEclMessageCloseEvent extends EuiEclBaseEvent {}\n\n@Component({\n selector: 'eui-ecl-message',\n templateUrl: './eui-ecl-message.component.html',\n styleUrls: ['./_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiEclMessageComponent extends EuiEclBaseDirective {\n @Input() messageTitle: string;\n @Input() variant: 'info' | 'success' | 'warning' | 'error' = 'info';\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() isVisible: boolean | any = true;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @coerceBoolean @Input() isCloseable: boolean | any = true;\n\n // TODO: Output bindings, including aliases, should not be named as standard DOM events\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() close = new EventEmitter<EuiEclMessageCloseEvent>();\n\n @HostBinding('attr.role')\n role = 'alert';\n\n @HostBinding('class.ecl-u-d-none')\n get isHidden(): boolean {\n return !this.isVisible;\n }\n\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-message'), this.variant ? `ecl-message--${this.variant}` : ''].join(' ').trim();\n }\n\n onCloseClick(evt: Event): void {\n const event = new EuiEclMessageCloseEvent();\n this.close.next(event);\n if (!event.defaultPrevented) {\n this.isVisible = false;\n }\n }\n\n getIcon(): 'success' | 'information' | 'warning' | 'error' | 'info' {\n if (this.variant === 'info') {\n return 'information';\n } else if (this.variant === 'success') {\n return 'success';\n } else if (this.variant === 'warning') {\n return 'warning';\n } else if (this.variant === 'error') {\n return 'error';\n } else {\n return 'information';\n }\n }\n}\n","<eui-ecl-icon size=\"l\" class=\"ecl-message__icon\" [icon]=\"getIcon()\"></eui-ecl-icon>\n\n<div class=\"ecl-message__content\">\n <button *ngIf=\"isCloseable\" eclButton class=\"ecl-message__close\" (click)=\"onCloseClick($event)\" variant=\"ghost\">\n <span eclButtonLabel>\n {{ 'ecl.common.CLOSE' | translate }}\n </span>\n <eui-ecl-icon icon=\"close\" size=\"s\"></eui-ecl-icon>\n </button>\n\n <ng-content select=\"[eclMessageTitle]\"></ng-content>\n <div class=\"ecl-message__description\"><ng-content></ng-content></div>\n</div>\n","import { Directive, HostBinding } from '@angular/core';\nimport { EuiEclBaseDirective } from '@eui/components/ecl/shared';\n\n@Directive({\n selector: '[euiEclMessageTitle]',\n})\nexport class EuiEclMessageTitleDirective extends EuiEclBaseDirective {\n @HostBinding('class')\n get cssClasses(): string {\n return [super.getCssClasses('ecl-message__title')].join(' ').trim();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiEclButtonComponentModule } from '@eui/components/ecl/eui-ecl-button';\nimport { EuiEclIconComponentModule } from '@eui/components/ecl/eui-ecl-icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { EuiEclMessageComponent } from './eui-ecl-message.component';\nimport { EuiEclMessageTitleDirective } from './eui-ecl-message-title.directive';\n\n@NgModule({\n imports: [CommonModule, EuiEclButtonComponentModule, EuiEclIconComponentModule, TranslateModule],\n exports: [EuiEclMessageComponent, EuiEclMessageTitleDirective],\n declarations: [EuiEclMessageComponent, EuiEclMessageTitleDirective],\n})\nexport class EuiEclMessageComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKM,MAAO,uBAAwB,SAAQ,eAAe,CAAA;AAAG,CAAA;AAQzD,MAAO,sBAAuB,SAAQ,mBAAmB,CAAA;AAN/D,IAAA,WAAA,GAAA;;QAQa,IAAO,CAAA,OAAA,GAA6C,MAAM,CAAC;;QAE5C,IAAS,CAAA,SAAA,GAAkB,IAAI,CAAC;;QAEhC,IAAW,CAAA,WAAA,GAAkB,IAAI,CAAC;;;AAIhD,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,YAAY,EAA2B,CAAC;QAG9D,IAAI,CAAA,IAAA,GAAG,OAAO,CAAC;AAiClB,KAAA;AA/BG,IAAA,IACI,QAAQ,GAAA;AACR,QAAA,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC;KAC1B;AAED,IAAA,IACI,UAAU,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,OAAO,GAAG,CAAgB,aAAA,EAAA,IAAI,CAAC,OAAO,CAAE,CAAA,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;KACpH;AAED,IAAA,YAAY,CAAC,GAAU,EAAA;AACnB,QAAA,MAAM,KAAK,GAAG,IAAI,uBAAuB,EAAE,CAAC;AAC5C,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACvB,QAAA,IAAI,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