@eui/eds 23.0.0-alpha.6 → 23.0.0-alpha.7
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/changelog.html +41 -0
- package/docs/classes/EdsChipModel.html +6 -6
- package/docs/classes/{EuiChipTooltip.html → EdsChipTooltip.html} +2 -2
- package/docs/components/EdsAlert.html +27 -226
- package/docs/components/EdsAlertTitle.html +2 -2
- package/docs/components/EdsAvatar.html +35 -108
- package/docs/components/EdsAvatarBadge.html +2 -2
- package/docs/components/EdsAvatarContent.html +2 -2
- package/docs/components/EdsAvatarContentLabel.html +2 -2
- package/docs/components/EdsAvatarContentSublabel.html +2 -2
- package/docs/components/EdsAvatarIcon.html +2 -2
- package/docs/components/EdsAvatarImage.html +2 -2
- package/docs/components/EdsAvatarList.html +2 -2
- package/docs/components/EdsAvatarText.html +2 -2
- package/docs/components/EdsBadge.html +41 -175
- package/docs/components/EdsButton.html +123 -123
- package/docs/components/EdsChip.html +135 -254
- package/docs/components/EdsIcon.html +93 -145
- package/docs/components/EdsIconButton.html +72 -86
- package/docs/components/EdsIconImage.html +5 -5
- package/docs/components/EdsIconState.html +47 -61
- package/docs/components/EdsLanguageSelector.html +870 -0
- package/docs/components/EdsMenu.html +631 -0
- package/docs/components/EdsMenuItemComponent.html +728 -0
- package/docs/components/EdsOverlay.html +804 -0
- package/docs/components/EdsOverlayContent.html +315 -0
- package/docs/components/EdsOverlayFooter.html +315 -0
- package/docs/components/EdsOverlayHeader.html +458 -0
- package/docs/components/EdsOverlayHeaderActionItems.html +315 -0
- package/docs/components/EdsOverlayHeaderLabel.html +315 -0
- package/docs/components/EdsOverlayHeaderSublabel.html +315 -0
- package/docs/components/EdsPage.html +315 -0
- package/docs/components/EdsPageContent.html +319 -0
- package/docs/components/EdsPageFooter.html +387 -0
- package/docs/components/EdsPageHeader.html +673 -0
- package/docs/components/EdsPageHeaderActionItems.html +315 -0
- package/docs/components/EdsPageHeaderBody.html +315 -0
- package/docs/components/EdsPageHeaderLabel.html +315 -0
- package/docs/components/EdsPageHeaderSublabel.html +315 -0
- package/docs/components/EdsShell.html +1078 -0
- package/docs/components/EdsShellContent.html +315 -0
- package/docs/components/EdsShellFooter.html +383 -0
- package/docs/components/EdsShellHeader.html +383 -0
- package/docs/components/EdsShellHeaderApp.html +443 -0
- package/docs/components/EdsShellHeaderEnd.html +311 -0
- package/docs/components/EdsShellHeaderEnvironment.html +315 -0
- package/docs/components/EdsShellHeaderLogo.html +561 -0
- package/docs/components/EdsShellHeaderStart.html +311 -0
- package/docs/components/EdsShellMenuToggle.html +458 -0
- package/docs/components/EdsShellSidebar.html +413 -0
- package/docs/components/EdsShellSidebarBottomNav.html +624 -0
- package/docs/components/EdsShellSidebarFooter.html +315 -0
- package/docs/components/EdsShellSidebarHeader.html +508 -0
- package/docs/components/EdsShellSidebarNav.html +624 -0
- package/docs/components/EdsShellToolbar.html +315 -0
- package/docs/components/EdsShellToolbarApp.html +443 -0
- package/docs/components/EdsShellToolbarEnd.html +315 -0
- package/docs/components/EdsShellToolbarEnvironment.html +315 -0
- package/docs/components/EdsShellToolbarLogo.html +315 -0
- package/docs/components/EdsShellToolbarStart.html +315 -0
- package/docs/components/EdsShellTopMessage.html +574 -0
- package/docs/components/EdsTab.html +6 -10
- package/docs/components/EdsTabBody.html +6 -10
- package/docs/components/EdsTabHeader.html +6 -10
- package/docs/components/EdsTabHeaderLabel.html +2 -2
- package/docs/components/EdsTabHeaderLeftContent.html +2 -2
- package/docs/components/EdsTabHeaderRightContent.html +2 -2
- package/docs/components/EdsTabHeaderSublabel.html +2 -2
- package/docs/components/EdsTabs.html +61 -126
- package/docs/components/EdsTabsRightContent.html +2 -2
- package/docs/components/EdsTag.html +82 -182
- package/docs/components/EdsTooltipContainer.html +2 -2
- package/docs/components/EdsUserProfile.html +1336 -0
- package/docs/components/EdsUserProfileMenu.html +315 -0
- package/docs/components/EdsUserProfileMenuItem.html +511 -0
- package/docs/directives/{EuiBaseColorVariantsDirective.html → EdsBaseColorVariantsDirective.html} +174 -91
- package/docs/directives/{EuiBaseSizeVariantsDirective.html → EdsBaseSizeVariantsDirective.html} +107 -107
- package/docs/directives/EdsResizable.html +586 -0
- package/docs/directives/EdsTooltip.html +21 -21
- package/docs/interfaces/EdsLanguage.html +368 -0
- package/docs/interfaces/EdsMenuItem.html +731 -0
- package/docs/js/menu-wc.js +146 -5
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EdsAlert.md +7 -7
- package/docs/json/EdsAvatar.md +8 -7
- package/docs/json/EdsBadge.md +14 -14
- package/docs/json/EdsBaseColorVariantsDirective.md +22 -0
- package/docs/json/EdsBaseSizeVariantsDirective.md +23 -0
- package/docs/json/EdsButton.md +21 -21
- package/docs/json/EdsChip.md +15 -14
- package/docs/json/EdsIcon.md +23 -23
- package/docs/json/EdsIconButton.md +18 -17
- package/docs/json/EdsIconImage.md +10 -10
- package/docs/json/EdsIconState.md +12 -12
- package/docs/json/EdsLanguageSelector.md +16 -0
- package/docs/json/EdsMenu.md +17 -0
- package/docs/json/EdsMenuItemComponent.md +18 -0
- package/docs/json/EdsOverlay.md +19 -0
- package/docs/json/EdsOverlayContent.md +8 -0
- package/docs/json/EdsOverlayFooter.md +8 -0
- package/docs/json/EdsOverlayHeader.md +11 -0
- package/docs/json/EdsOverlayHeaderActionItems.md +8 -0
- package/docs/json/EdsOverlayHeaderLabel.md +8 -0
- package/docs/json/EdsOverlayHeaderSublabel.md +8 -0
- package/docs/json/EdsPage.md +8 -0
- package/docs/json/EdsPageContent.md +8 -0
- package/docs/json/EdsPageFooter.md +11 -0
- package/docs/json/EdsPageHeader.md +18 -0
- package/docs/json/EdsPageHeaderActionItems.md +8 -0
- package/docs/json/EdsPageHeaderBody.md +8 -0
- package/docs/json/EdsPageHeaderLabel.md +8 -0
- package/docs/json/EdsPageHeaderSublabel.md +8 -0
- package/docs/json/EdsResizable.md +24 -0
- package/docs/json/EdsShell.md +14 -0
- package/docs/json/EdsShellContent.md +8 -0
- package/docs/json/EdsShellFooter.md +11 -0
- package/docs/json/EdsShellHeader.md +11 -0
- package/docs/json/EdsShellHeaderApp.md +13 -0
- package/docs/json/EdsShellHeaderEnd.md +8 -0
- package/docs/json/EdsShellHeaderEnvironment.md +8 -0
- package/docs/json/EdsShellHeaderLogo.md +15 -0
- package/docs/json/EdsShellHeaderStart.md +8 -0
- package/docs/json/EdsShellMenuToggle.md +11 -0
- package/docs/json/EdsShellSidebar.md +12 -0
- package/docs/json/EdsShellSidebarBottomNav.md +17 -0
- package/docs/json/EdsShellSidebarFooter.md +8 -0
- package/docs/json/EdsShellSidebarHeader.md +15 -0
- package/docs/json/EdsShellSidebarNav.md +17 -0
- package/docs/json/EdsShellToolbar.md +8 -0
- package/docs/json/EdsShellToolbarApp.md +13 -0
- package/docs/json/EdsShellToolbarEnd.md +8 -0
- package/docs/json/EdsShellToolbarEnvironment.md +8 -0
- package/docs/json/EdsShellToolbarLogo.md +8 -0
- package/docs/json/EdsShellToolbarStart.md +8 -0
- package/docs/json/EdsShellTopMessage.md +19 -0
- package/docs/json/EdsTabs.md +4 -4
- package/docs/json/EdsTag.md +14 -13
- package/docs/json/EdsTooltip.md +7 -7
- package/docs/json/EdsUserProfile.md +21 -0
- package/docs/json/EdsUserProfileMenu.md +8 -0
- package/docs/json/EdsUserProfileMenuItem.md +8 -0
- package/docs/json/documentation.json +9649 -5338
- package/docs/llms.txt +641 -123
- package/docs/miscellaneous/typealiases.html +309 -0
- package/docs/miscellaneous/variables.html +342 -0
- package/docs/overview.html +3 -3
- package/docs/properties.html +1 -1
- package/eds-language-selector/package.json +4 -0
- package/eds-menu/package.json +4 -0
- package/eds-overlay/package.json +4 -0
- package/eds-page/package.json +4 -0
- package/eds-resizable/package.json +4 -0
- package/eds-shell/package.json +4 -0
- package/eds-user-profile/package.json +4 -0
- package/fesm2022/eui-eds-eds-alert.mjs +33 -61
- package/fesm2022/eui-eds-eds-alert.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-avatar.mjs +29 -43
- package/fesm2022/eui-eds-eds-avatar.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-badge.mjs +65 -89
- package/fesm2022/eui-eds-eds-badge.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-button.mjs +70 -99
- package/fesm2022/eui-eds-eds-button.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-chip.mjs +118 -111
- package/fesm2022/eui-eds-eds-chip.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-icon-button.mjs +49 -55
- package/fesm2022/eui-eds-eds-icon-button.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-icon-state.mjs +38 -34
- package/fesm2022/eui-eds-eds-icon-state.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-icon.mjs +92 -107
- package/fesm2022/eui-eds-eds-icon.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-language-selector.mjs +67 -0
- package/fesm2022/eui-eds-eds-language-selector.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-menu.mjs +90 -0
- package/fesm2022/eui-eds-eds-menu.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-overlay.mjs +141 -0
- package/fesm2022/eui-eds-eds-overlay.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-page.mjs +129 -0
- package/fesm2022/eui-eds-eds-page.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-resizable.mjs +193 -0
- package/fesm2022/eui-eds-eds-resizable.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-shell.mjs +481 -0
- package/fesm2022/eui-eds-eds-shell.mjs.map +1 -0
- package/fesm2022/eui-eds-eds-tabs.mjs +71 -101
- package/fesm2022/eui-eds-eds-tabs.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-tag.mjs +74 -77
- package/fesm2022/eui-eds-eds-tag.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-tooltip.mjs +23 -23
- package/fesm2022/eui-eds-eds-tooltip.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-user-profile.mjs +231 -0
- package/fesm2022/eui-eds-eds-user-profile.mjs.map +1 -0
- package/fesm2022/eui-eds-shared.mjs +255 -243
- package/fesm2022/eui-eds-shared.mjs.map +1 -1
- package/package.json +29 -1
- package/types/eui-eds-eds-alert.d.ts +7 -29
- package/types/eui-eds-eds-alert.d.ts.map +1 -1
- package/types/eui-eds-eds-avatar.d.ts +11 -12
- package/types/eui-eds-eds-avatar.d.ts.map +1 -1
- package/types/eui-eds-eds-badge.d.ts +15 -20
- package/types/eui-eds-eds-badge.d.ts.map +1 -1
- package/types/eui-eds-eds-button.d.ts +22 -30
- package/types/eui-eds-eds-button.d.ts.map +1 -1
- package/types/eui-eds-eds-chip.d.ts +36 -36
- package/types/eui-eds-eds-chip.d.ts.map +1 -1
- package/types/eui-eds-eds-icon-button.d.ts +13 -16
- package/types/eui-eds-eds-icon-button.d.ts.map +1 -1
- package/types/eui-eds-eds-icon-state.d.ts +8 -8
- package/types/eui-eds-eds-icon-state.d.ts.map +1 -1
- package/types/eui-eds-eds-icon.d.ts +22 -29
- package/types/eui-eds-eds-icon.d.ts.map +1 -1
- package/types/eui-eds-eds-language-selector.d.ts +34 -0
- package/types/eui-eds-eds-language-selector.d.ts.map +1 -0
- package/types/eui-eds-eds-menu.d.ts +65 -0
- package/types/eui-eds-eds-menu.d.ts.map +1 -0
- package/types/eui-eds-eds-overlay.d.ts +64 -0
- package/types/eui-eds-eds-overlay.d.ts.map +1 -0
- package/types/eui-eds-eds-page.d.ts +63 -0
- package/types/eui-eds-eds-page.d.ts.map +1 -0
- package/types/eui-eds-eds-resizable.d.ts +49 -0
- package/types/eui-eds-eds-resizable.d.ts.map +1 -0
- package/types/eui-eds-eds-shell.d.ts +229 -0
- package/types/eui-eds-eds-shell.d.ts.map +1 -0
- package/types/eui-eds-eds-tabs.d.ts +32 -30
- package/types/eui-eds-eds-tabs.d.ts.map +1 -1
- package/types/eui-eds-eds-tag.d.ts +22 -25
- package/types/eui-eds-eds-tag.d.ts.map +1 -1
- package/types/eui-eds-eds-tooltip.d.ts +16 -16
- package/types/eui-eds-eds-user-profile.d.ts +78 -0
- package/types/eui-eds-eds-user-profile.d.ts.map +1 -0
- package/types/eui-eds-shared.d.ts +82 -79
- package/types/eui-eds-shared.d.ts.map +1 -1
- package/docs/json/EuiBaseColorVariantsDirective.md +0 -21
- package/docs/json/EuiBaseSizeVariantsDirective.md +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-eds-eds-icon-button.mjs","sources":["../../eds-icon-button/eds-icon-button.ts","../../eds-icon-button/eds-icon-button.html","../../eds-icon-button/index.ts","../../eds-icon-button/eui-eds-eds-icon-button.ts"],"sourcesContent":["import { Component,
|
|
1
|
+
{"version":3,"file":"eui-eds-eds-icon-button.mjs","sources":["../../eds-icon-button/eds-icon-button.ts","../../eds-icon-button/eds-icon-button.html","../../eds-icon-button/index.ts","../../eds-icon-button/eui-eds-eds-icon-button.ts"],"sourcesContent":["import { Component, input, output, booleanAttribute, inject, computed } from '@angular/core';\nimport { EDS_ICON } from '@eui/eds/eds-icon';\nimport { EdsBaseColorVariantsDirective, EdsBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n // eslint-disable-next-line\n selector: 'button[edsIconButton]',\n templateUrl: './eds-icon-button.html',\n styleUrls: [ './eds-icon-button.scss' ],\n imports: [ ...EDS_ICON ],\n host: {\n '[class]': 'hostClasses()',\n '[tabIndex]': 'edsDisabled() ? -1 : 0',\n '[attr.ariaLabel]': 'ariaLabel()',\n '(click)': 'onClick($any($event))',\n },\n hostDirectives: [\n {\n directive: EdsBaseSizeVariantsDirective,\n inputs: [\n 'edsSize2XS',\n 'edsSizeXS',\n 'edsSizeS',\n 'edsSizeM',\n 'edsSizeL',\n 'edsSizeVariant',\n ],\n },\n {\n directive: EdsBaseColorVariantsDirective,\n inputs: [\n 'edsBrand',\n 'edsNeutral',\n 'edsSuccess',\n 'edsInfo',\n 'edsWarning',\n 'edsCritical',\n 'edsDisabled',\n 'edsColorVariant',\n ],\n },\n ],\n})\nexport class EdsIconButton {\n hostClasses = computed(() => {\n return [\n 'eds-icon-button',\n this.sizeVariantsBase.getCssClasses('eds-icon-button'),\n this.colorVariantsBase.getCssClasses('eds-icon-button'),\n this.edsRounded() ? 'eds-icon-button--rounded': '',\n this.edsDisabled() ? 'eds-icon-button--disabled': '',\n ]\n .join(' ')\n .trim();\n });\n\n /**\n * The name of the icon to display from the eUI icon library.\n */\n icon = input<string>('');\n\n /**\n * Accessible label for screen readers describing the button's purpose.\n * @default 'EDS Icon button'\n */\n ariaLabel = input('EDS Icon button');\n\n /**\n * Applies rounded corners to the button shape instead of default square corners. Default: false\n */\n edsRounded = input(false, { transform: booleanAttribute });\n edsDisabled = input(false, { transform: booleanAttribute });\n\n protected sizeVariantsBase: EdsBaseSizeVariantsDirective = inject(EdsBaseSizeVariantsDirective);\n protected colorVariantsBase: EdsBaseColorVariantsDirective = inject(EdsBaseColorVariantsDirective);\n\n /**\n * Emitted when the button is clicked. Payload contains the native click Event object.\n */\n readonly buttonClick = output<Event>();\n\n onClick(event: Event): void {\n this.buttonClick.emit(event);\n }\n}\n","<eds-icon [icon]=\"icon()\" [edsColorVariant]=\"colorVariantsBase.edsColorVariant\" [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\">\n <ng-content select=\"eds-badge\"/>\n</eds-icon>\n","import { EdsIconButton } from './eds-icon-button';\n\nexport * from './eds-icon-button';\n\nexport const EDS_ICON_BUTTON = [\n EdsIconButton,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MA2Ca,aAAa,CAAA;AAvC1B,IAAA,WAAA,GAAA;AAwCI,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YACxB,OAAO;gBACH,iBAAiB;AACjB,gBAAA,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,iBAAiB,CAAC;AACtD,gBAAA,IAAI,CAAC,iBAAiB,CAA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,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,WAAA,EAAA,YAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FDwCa,aAAa,EAAA,UAAA,EAAA,CAAA;kBAvCzB,SAAS;AAEI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,EAAA,OAAA,EAGxB,CAAE,GAAG,QAAQ,CAAE,EAAA,IAAA,EAClB;AACF,wBAAA,SAAS,EAAE,eAAe;AAC1B,wBAAA,YAAY,EAAE,wBAAwB;AACtC,wBAAA,kBAAkB,EAAE,aAAa;AACjC,wBAAA,SAAS,EAAE,uBAAuB;qBACrC,EAAA,cAAA,EACe;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,4BAA4B;AACvC,4BAAA,MAAM,EAAE;gCACJ,YAAY;gCACZ,WAAW;gCACX,UAAU;gCACV,UAAU;gCACV,UAAU;gCACV,gBAAgB;AACnB,6BAAA;AACJ,yBAAA;AACD,wBAAA;AACI,4BAAA,SAAS,EAAE,6BAA6B;AACxC,4BAAA,MAAM,EAAE;gCACJ,UAAU;gCACV,YAAY;gCACZ,YAAY;gCACZ,SAAS;gCACT,YAAY;gCACZ,aAAa;gCACb,aAAa;gCACb,iBAAiB;AACpB,6BAAA;AACJ,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,kMAAA,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA;;;AErCE,MAAM,eAAe,GAAG;IAC3B,aAAa;;;ACLjB;;AAEG;;;;"}
|
|
@@ -1,59 +1,63 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { computed, input, inject, Component } from '@angular/core';
|
|
3
3
|
import * as i2 from '@eui/eds/eds-icon';
|
|
4
4
|
import { EDS_ICON } from '@eui/eds/eds-icon';
|
|
5
5
|
import * as i1 from '@eui/eds/shared';
|
|
6
|
-
import {
|
|
6
|
+
import { EdsBaseSizeVariantsDirective, EdsBaseColorVariantsDirective } from '@eui/eds/shared';
|
|
7
7
|
|
|
8
8
|
class EdsIconState {
|
|
9
9
|
constructor() {
|
|
10
|
-
this.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
this.hostClasses = computed(() => {
|
|
11
|
+
return [
|
|
12
|
+
'eds-icon-state',
|
|
13
|
+
this.sizeVariantsBase.getCssClasses('eds-icon-state'),
|
|
14
|
+
this.colorVariantsBase.getCssClasses('eds-icon-state'),
|
|
15
|
+
].join(' ').trim();
|
|
16
|
+
}, /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
18
|
+
/**
|
|
19
|
+
* Accessible label for screen readers describing the icon's purpose or meaning.
|
|
20
|
+
* Required for accessibility when the icon conveys semantic information.
|
|
21
|
+
*/
|
|
22
|
+
this.ariaLabel = input('', /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.sizeVariantsBase = inject(EdsBaseSizeVariantsDirective);
|
|
25
|
+
this.colorVariantsBase = inject(EdsBaseColorVariantsDirective);
|
|
19
26
|
}
|
|
20
27
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIconState, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: EdsIconState, isStandalone: true, selector: "eds-icon-state", inputs: { ariaLabel: "ariaLabel" }, host: { properties: { "class": "
|
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: EdsIconState, isStandalone: true, selector: "eds-icon-state", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClasses()" } }, hostDirectives: [{ directive: i1.EdsBaseSizeVariantsDirective, inputs: ["edsSize2XS", "edsSize2XS", "edsSizeXS", "edsSizeXS", "edsSizeS", "edsSizeS", "edsSizeM", "edsSizeM", "edsSizeL", "edsSizeL", "edsSizeVariant", "edsSizeVariant"] }, { directive: i1.EdsBaseColorVariantsDirective, inputs: ["edsNeutral", "edsNeutral", "edsSuccess", "edsSuccess", "edsInfo", "edsInfo", "edsWarning", "edsWarning", "edsCritical", "edsCritical", "edsColorVariant", "edsColorVariant"] }], ngImport: i0, template: "@if (colorVariantsBase.edsSuccess) {\n <eds-icon icon=\"check-circle\" aria-label=\"EDS success icon\" edsSuccess [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsWarning) {\n <eds-icon icon=\"warning\" aria-label=\"EDS warning icon\" edsWarning [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsCritical) {\n <eds-icon icon=\"warning-circle\" aria-label=\"EDS danger icon\" edsCritical [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsInfo) {\n <eds-icon icon=\"info\" aria-label=\"EDS info icon\" edsInfo [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n}\n", dependencies: [{ kind: "component", type: i2.EdsIcon, selector: "eds-icon, span[edsIcon]", inputs: ["icon", "set", "ariaLabel", "ariaHidden"] }] }); }
|
|
22
29
|
}
|
|
23
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIconState, decorators: [{
|
|
24
31
|
type: Component,
|
|
25
32
|
args: [{ selector: 'eds-icon-state', imports: [
|
|
26
33
|
...EDS_ICON,
|
|
27
|
-
],
|
|
34
|
+
], host: {
|
|
35
|
+
'[class]': 'hostClasses()',
|
|
36
|
+
}, hostDirectives: [
|
|
28
37
|
{
|
|
29
|
-
directive:
|
|
38
|
+
directive: EdsBaseSizeVariantsDirective,
|
|
30
39
|
inputs: [
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
40
|
+
'edsSize2XS',
|
|
41
|
+
'edsSizeXS',
|
|
42
|
+
'edsSizeS',
|
|
43
|
+
'edsSizeM',
|
|
44
|
+
'edsSizeL',
|
|
45
|
+
'edsSizeVariant',
|
|
37
46
|
],
|
|
38
47
|
},
|
|
39
48
|
{
|
|
40
|
-
directive:
|
|
49
|
+
directive: EdsBaseColorVariantsDirective,
|
|
41
50
|
inputs: [
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
51
|
+
'edsNeutral',
|
|
52
|
+
'edsSuccess',
|
|
53
|
+
'edsInfo',
|
|
54
|
+
'edsWarning',
|
|
55
|
+
'edsCritical',
|
|
56
|
+
'edsColorVariant',
|
|
48
57
|
],
|
|
49
58
|
},
|
|
50
|
-
], template: "@if (colorVariantsBase.
|
|
51
|
-
}], propDecorators: {
|
|
52
|
-
type: HostBinding,
|
|
53
|
-
args: ['class']
|
|
54
|
-
}], ariaLabel: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}] } });
|
|
59
|
+
], template: "@if (colorVariantsBase.edsSuccess) {\n <eds-icon icon=\"check-circle\" aria-label=\"EDS success icon\" edsSuccess [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsWarning) {\n <eds-icon icon=\"warning\" aria-label=\"EDS warning icon\" edsWarning [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsCritical) {\n <eds-icon icon=\"warning-circle\" aria-label=\"EDS danger icon\" edsCritical [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsInfo) {\n <eds-icon icon=\"info\" aria-label=\"EDS info icon\" edsInfo [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n}\n" }]
|
|
60
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
57
61
|
|
|
58
62
|
const EDS_ICON_STATE = [
|
|
59
63
|
EdsIconState,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-eds-eds-icon-state.mjs","sources":["../../eds-icon-state/eds-icon-state.ts","../../eds-icon-state/eds-icon-state.html","../../eds-icon-state/index.ts","../../eds-icon-state/eui-eds-eds-icon-state.ts"],"sourcesContent":["import { Component,
|
|
1
|
+
{"version":3,"file":"eui-eds-eds-icon-state.mjs","sources":["../../eds-icon-state/eds-icon-state.ts","../../eds-icon-state/eds-icon-state.html","../../eds-icon-state/index.ts","../../eds-icon-state/eui-eds-eds-icon-state.ts"],"sourcesContent":["import { Component, input, inject, computed } from '@angular/core';\nimport { EDS_ICON } from '@eui/eds/eds-icon';\nimport { EdsBaseColorVariantsDirective, EdsBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n selector: 'eds-icon-state',\n templateUrl: './eds-icon-state.html',\n imports: [\n ...EDS_ICON,\n ],\n host: {\n '[class]': 'hostClasses()',\n },\n hostDirectives: [\n {\n directive: EdsBaseSizeVariantsDirective,\n inputs: [\n 'edsSize2XS',\n 'edsSizeXS',\n 'edsSizeS',\n 'edsSizeM',\n 'edsSizeL',\n 'edsSizeVariant',\n ],\n }, \n {\n directive: EdsBaseColorVariantsDirective,\n inputs: [\n 'edsNeutral',\n 'edsSuccess',\n 'edsInfo',\n 'edsWarning',\n 'edsCritical',\n 'edsColorVariant',\n ],\n },\n ], \n})\nexport class EdsIconState {\n hostClasses = computed(() => {\n return [\n 'eds-icon-state',\n this.sizeVariantsBase.getCssClasses('eds-icon-state'),\n this.colorVariantsBase.getCssClasses('eds-icon-state'),\n ].join(' ').trim();\n });\n /**\n * Accessible label for screen readers describing the icon's purpose or meaning.\n * Required for accessibility when the icon conveys semantic information.\n */\n ariaLabel = input<string>('');\n\n protected sizeVariantsBase: EdsBaseSizeVariantsDirective = inject(EdsBaseSizeVariantsDirective);\n protected colorVariantsBase: EdsBaseColorVariantsDirective = inject(EdsBaseColorVariantsDirective);\n}\n","@if (colorVariantsBase.edsSuccess) {\n <eds-icon icon=\"check-circle\" aria-label=\"EDS success icon\" edsSuccess [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsWarning) {\n <eds-icon icon=\"warning\" aria-label=\"EDS warning icon\" edsWarning [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsCritical) {\n <eds-icon icon=\"warning-circle\" aria-label=\"EDS danger icon\" edsCritical [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n} @else if (colorVariantsBase.edsInfo) {\n <eds-icon icon=\"info\" aria-label=\"EDS info icon\" edsInfo [edsSizeVariant]=\"sizeVariantsBase.edsSizeVariant\" />\n}\n","import { EdsIconState } from './eds-icon-state';\n\nexport * from './eds-icon-state';\n\nexport const EDS_ICON_STATE = [\n EdsIconState,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAsCa,YAAY,CAAA;AAlCzB,IAAA,WAAA,GAAA;AAmCI,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YACxB,OAAO;gBACH,gBAAgB;AAChB,gBAAA,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,gBAAgB,CAAC;AACrD,gBAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,gBAAgB,CAAC;AACzD,aAAA,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE;QACtB,CAAC;wFAAC;AACF;;;AAGG;QACH,IAA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AAA;AACJ,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,+rBAAA,EAAA;;;AEhCE,MAAM,cAAc,GAAG;IAC1B,YAAY;;;ACLhB;;AAEG;;;;"}
|
|
@@ -1,129 +1,114 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, booleanAttribute, computed, inject, ChangeDetectionStrategy, Component, HostBinding, Input } from '@angular/core';
|
|
3
3
|
import { EUI_CONFIG_TOKEN } from '@eui/core';
|
|
4
4
|
import * as i1 from '@eui/eds/shared';
|
|
5
|
-
import {
|
|
5
|
+
import { EdsBaseSizeVariantsDirective, EdsBaseColorVariantsDirective } from '@eui/eds/shared';
|
|
6
6
|
|
|
7
7
|
class EdsIcon {
|
|
8
8
|
constructor() {
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Name of the icon to display, optionally including the icon set using 'iconName:setName' format.
|
|
11
|
+
* When format includes colon separator, automatically splits into icon and set properties.
|
|
12
|
+
*/
|
|
13
|
+
this.icon = input('', /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
10
15
|
/**
|
|
11
16
|
* Icon set library to load the icon from.
|
|
12
|
-
*
|
|
13
|
-
* @default 'eui'
|
|
17
|
+
* @default 'regular'
|
|
14
18
|
*/
|
|
15
|
-
this.set = 'regular'
|
|
16
|
-
|
|
19
|
+
this.set = input('regular', /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "set" }] : /* istanbul ignore next */ []));
|
|
21
|
+
/**
|
|
22
|
+
* Accessible label for screen readers describing the icon's purpose.
|
|
23
|
+
*/
|
|
24
|
+
this.ariaLabel = input('', /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
17
26
|
/**
|
|
18
27
|
* Hides the icon from assistive technologies when purely decorative.
|
|
19
|
-
* Set to false when icon conveys meaningful information requiring announcement.
|
|
20
28
|
* @default true
|
|
21
29
|
*/
|
|
22
|
-
this.ariaHidden = true;
|
|
23
|
-
this.
|
|
24
|
-
|
|
30
|
+
this.ariaHidden = input(true, { ...(ngDevMode ? { debugName: "ariaHidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
31
|
+
this.hostClasses = computed(() => {
|
|
32
|
+
return [
|
|
33
|
+
'eds-icon',
|
|
34
|
+
this.sizeVariantsBase.getCssClasses('eds-icon'),
|
|
35
|
+
this.colorVariantsBase.getCssClasses('eds-icon'),
|
|
36
|
+
]
|
|
37
|
+
.join(' ')
|
|
38
|
+
.trim();
|
|
39
|
+
}, /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
41
|
+
/** Resolved icon name (parsed from 'icon:set' format). */
|
|
42
|
+
this.iconName = computed(() => {
|
|
43
|
+
const raw = this.icon();
|
|
44
|
+
if (raw && raw.indexOf(':') > -1) {
|
|
45
|
+
return raw.split(':')[0];
|
|
46
|
+
}
|
|
47
|
+
return raw;
|
|
48
|
+
}, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "iconName" }] : /* istanbul ignore next */ []));
|
|
50
|
+
/** Resolved icon set (parsed from 'icon:set' format or defaults to set input). */
|
|
51
|
+
this.resolvedSet = computed(() => {
|
|
52
|
+
const raw = this.icon();
|
|
53
|
+
if (raw && raw.indexOf(':') > -1) {
|
|
54
|
+
return raw.split(':')[1] || 'regular';
|
|
55
|
+
}
|
|
56
|
+
return this.set() || 'regular';
|
|
57
|
+
}, /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "resolvedSet" }] : /* istanbul ignore next */ []));
|
|
59
|
+
this.assetsBaseUrl = 'assets';
|
|
60
|
+
this.sizeVariantsBase = inject(EdsBaseSizeVariantsDirective);
|
|
61
|
+
this.colorVariantsBase = inject(EdsBaseColorVariantsDirective);
|
|
25
62
|
this.config = inject(EUI_CONFIG_TOKEN, { optional: true });
|
|
26
63
|
}
|
|
27
|
-
get cssClasses() {
|
|
28
|
-
return [
|
|
29
|
-
'eds-icon',
|
|
30
|
-
this.sizeVariantsBase.getCssClasses('eds-icon'),
|
|
31
|
-
this.colorVariantsBase.getCssClasses('eds-icon'),
|
|
32
|
-
]
|
|
33
|
-
.join(' ')
|
|
34
|
-
.trim();
|
|
35
|
-
}
|
|
36
64
|
ngOnInit() {
|
|
37
65
|
const assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl;
|
|
38
66
|
if (assetsBaseUrl) {
|
|
39
|
-
this.assetsBaseUrl =
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
ngOnChanges(c) {
|
|
43
|
-
if (c && c.set) {
|
|
44
|
-
if (c.set.currentValue !== c.set.previousValue) {
|
|
45
|
-
this._setIconAndSet();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (c && c.icon) {
|
|
49
|
-
if (c.icon.currentValue !== c.icon.previousValue) {
|
|
50
|
-
this._setIconAndSet();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
ngAfterContentInit() {
|
|
55
|
-
this._setIconAndSet();
|
|
56
|
-
}
|
|
57
|
-
_setIconAndSet() {
|
|
58
|
-
if (this.icon && this.icon.indexOf(':') > -1) {
|
|
59
|
-
const iconSet = this.icon.split(':');
|
|
60
|
-
this.icon = iconSet[0];
|
|
61
|
-
this.set = iconSet[1];
|
|
62
|
-
}
|
|
63
|
-
if (!this.set || this.set === '') {
|
|
64
|
-
this.set = 'regular';
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
this.iconName = this.icon;
|
|
67
|
+
this.assetsBaseUrl = assetsBaseUrl;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
71
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: EdsIcon, isStandalone: true, selector: "eds-icon, span[edsIcon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, set: { classPropertyName: "set", publicName: "set", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaHidden: { classPropertyName: "ariaHidden", publicName: "ariaHidden", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "class": "hostClasses()", "attr.aria-label": "ariaLabel()", "attr.aria-hidden": "ariaHidden()" } }, hostDirectives: [{ directive: i1.EdsBaseSizeVariantsDirective, inputs: ["edsSize2XS", "edsSize2XS", "edsSizeXS", "edsSizeXS", "edsSizeS", "edsSizeS", "edsSizeM", "edsSizeM", "edsSizeL", "edsSizeL", "edsSizeXL", "edsSizeXL", "edsSize2XL", "edsSize2XL", "edsSize3XL", "edsSize3XL", "edsSize4XL", "edsSize4XL", "edsSizeVariant", "edsSizeVariant"] }, { directive: i1.EdsBaseColorVariantsDirective, inputs: ["edsPrimary", "edsPrimary", "edsNeutral", "edsNeutral", "edsHighlight", "edsHighlight", "edsInfo", "edsInfo", "edsSuccess", "edsSuccess", "edsWarning", "edsWarning", "edsCritical", "edsCritical", "edsDisabled", "edsDisabled", "edsColorVariant", "edsColorVariant"] }], ngImport: i0, template: "<svg\n class=\"eds-icon-svg eds-sprite-{{iconName()}}\"\n aria-hidden=\"true\">\n <use [attr.href]=\"assetsBaseUrl + '/icons/sprites/' + resolvedSet() + '.svg#' + iconName()\"></use>\n</svg>\n<ng-content />\n", styles: [".eui-21 :host.eds-icon{--_size: var(--_icon-size, var(--eds-is-m));--_color: var(--_on-surface)}.eui-21 :host.eds-icon.eds-icon--size-2xs{--_size: var(--eds-is-2xs)}.eui-21 :host.eds-icon.eds-icon--size-xs{--_size: var(--eds-is-xs)}.eui-21 :host.eds-icon.eds-icon--size-s{--_size: var(--eds-is-s)}.eui-21 :host.eds-icon.eds-icon--size-m{--_size: var(--eds-is-m)}.eui-21 :host.eds-icon.eds-icon--size-l{--_size: var(--eds-is-l)}.eui-21 :host.eds-icon.eds-icon--size-xl{--_size: var(--eds-is-xl)}.eui-21 :host.eds-icon.eds-icon--size-2xl{--_size: var(--eds-is-2xl)}.eui-21 :host.eds-icon.eds-icon--size-3xl{--_size: var(--eds-is-3xl)}.eui-21 :host.eds-icon.eds-icon--size-4xl{--_size: var(--eds-is-4xl)}.eui-21 :host.eds-icon.eds-icon--neutral{--_color: var(--eds-c-foreground)}.eui-21 :host.eds-icon.eds-icon--neutral-subtle{--_color: var(--eds-c-foreground-subtle)}.eui-21 :host.eds-icon.eds-icon--neutral-subtler{--_color: var(--eds-c-foreground-subtler)}.eui-21 :host.eds-icon.eds-icon--primary{--_color: var(--eds-c-foreground-primary)}.eui-21 :host.eds-icon.eds-icon--highlight{--_color: var(--eds-c-foreground-highlight)}.eui-21 :host.eds-icon.eds-icon--info{--_color: var(--eds-c-foreground-info)}.eui-21 :host.eds-icon.eds-icon--success{--_color: var(--eds-c-foreground-success)}.eui-21 :host.eds-icon.eds-icon--warning{--_color: var(--eds-c-foreground-warning)}.eui-21 :host.eds-icon.eds-icon--critical{--_color: var(--eds-c-foreground-critical)}.eui-21 :host.eds-icon.eds-icon--disabled{--_color: var(--eds-c-foreground-disabled)}.eui-21 :host.eds-icon{display:inline-flex;position:relative}.eui-21 :host.eds-icon .eds-icon-svg{height:var(--_size);width:var(--_size);fill:var(--_color);color:var(--_color)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
72
72
|
}
|
|
73
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIcon, decorators: [{
|
|
74
74
|
type: Component,
|
|
75
|
-
args: [{ selector: 'eds-icon, span[edsIcon]', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
75
|
+
args: [{ selector: 'eds-icon, span[edsIcon]', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
76
|
+
'[class]': 'hostClasses()',
|
|
77
|
+
role: 'img',
|
|
78
|
+
'[attr.aria-label]': 'ariaLabel()',
|
|
79
|
+
'[attr.aria-hidden]': 'ariaHidden()',
|
|
80
|
+
}, hostDirectives: [
|
|
76
81
|
{
|
|
77
|
-
directive:
|
|
82
|
+
directive: EdsBaseSizeVariantsDirective,
|
|
78
83
|
inputs: [
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
84
|
+
'edsSize2XS',
|
|
85
|
+
'edsSizeXS',
|
|
86
|
+
'edsSizeS',
|
|
87
|
+
'edsSizeM',
|
|
88
|
+
'edsSizeL',
|
|
89
|
+
'edsSizeXL',
|
|
90
|
+
'edsSize2XL',
|
|
91
|
+
'edsSize3XL',
|
|
92
|
+
'edsSize4XL',
|
|
93
|
+
'edsSizeVariant',
|
|
89
94
|
],
|
|
90
95
|
},
|
|
91
96
|
{
|
|
92
|
-
directive:
|
|
97
|
+
directive: EdsBaseColorVariantsDirective,
|
|
93
98
|
inputs: [
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
99
|
+
'edsPrimary',
|
|
100
|
+
'edsNeutral',
|
|
101
|
+
'edsHighlight',
|
|
102
|
+
'edsInfo',
|
|
103
|
+
'edsSuccess',
|
|
104
|
+
'edsWarning',
|
|
105
|
+
'edsCritical',
|
|
106
|
+
'edsDisabled',
|
|
107
|
+
'edsColorVariant',
|
|
103
108
|
],
|
|
104
109
|
},
|
|
105
|
-
], template: "<svg\n class=\"eds-icon-svg eds-sprite-{{
|
|
106
|
-
}], propDecorators: {
|
|
107
|
-
type: HostBinding,
|
|
108
|
-
args: ['attr.role']
|
|
109
|
-
}], icon: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], set: [{
|
|
112
|
-
type: Input
|
|
113
|
-
}], cssClasses: [{
|
|
114
|
-
type: HostBinding,
|
|
115
|
-
args: ['class']
|
|
116
|
-
}], ariaLabel: [{
|
|
117
|
-
type: HostBinding,
|
|
118
|
-
args: ['attr.aria-label']
|
|
119
|
-
}, {
|
|
120
|
-
type: Input
|
|
121
|
-
}], ariaHidden: [{
|
|
122
|
-
type: HostBinding
|
|
123
|
-
}, {
|
|
124
|
-
type: Input,
|
|
125
|
-
args: [{ transform: booleanAttribute }]
|
|
126
|
-
}] } });
|
|
110
|
+
], template: "<svg\n class=\"eds-icon-svg eds-sprite-{{iconName()}}\"\n aria-hidden=\"true\">\n <use [attr.href]=\"assetsBaseUrl + '/icons/sprites/' + resolvedSet() + '.svg#' + iconName()\"></use>\n</svg>\n<ng-content />\n", styles: [".eui-21 :host.eds-icon{--_size: var(--_icon-size, var(--eds-is-m));--_color: var(--_on-surface)}.eui-21 :host.eds-icon.eds-icon--size-2xs{--_size: var(--eds-is-2xs)}.eui-21 :host.eds-icon.eds-icon--size-xs{--_size: var(--eds-is-xs)}.eui-21 :host.eds-icon.eds-icon--size-s{--_size: var(--eds-is-s)}.eui-21 :host.eds-icon.eds-icon--size-m{--_size: var(--eds-is-m)}.eui-21 :host.eds-icon.eds-icon--size-l{--_size: var(--eds-is-l)}.eui-21 :host.eds-icon.eds-icon--size-xl{--_size: var(--eds-is-xl)}.eui-21 :host.eds-icon.eds-icon--size-2xl{--_size: var(--eds-is-2xl)}.eui-21 :host.eds-icon.eds-icon--size-3xl{--_size: var(--eds-is-3xl)}.eui-21 :host.eds-icon.eds-icon--size-4xl{--_size: var(--eds-is-4xl)}.eui-21 :host.eds-icon.eds-icon--neutral{--_color: var(--eds-c-foreground)}.eui-21 :host.eds-icon.eds-icon--neutral-subtle{--_color: var(--eds-c-foreground-subtle)}.eui-21 :host.eds-icon.eds-icon--neutral-subtler{--_color: var(--eds-c-foreground-subtler)}.eui-21 :host.eds-icon.eds-icon--primary{--_color: var(--eds-c-foreground-primary)}.eui-21 :host.eds-icon.eds-icon--highlight{--_color: var(--eds-c-foreground-highlight)}.eui-21 :host.eds-icon.eds-icon--info{--_color: var(--eds-c-foreground-info)}.eui-21 :host.eds-icon.eds-icon--success{--_color: var(--eds-c-foreground-success)}.eui-21 :host.eds-icon.eds-icon--warning{--_color: var(--eds-c-foreground-warning)}.eui-21 :host.eds-icon.eds-icon--critical{--_color: var(--eds-c-foreground-critical)}.eui-21 :host.eds-icon.eds-icon--disabled{--_color: var(--eds-c-foreground-disabled)}.eui-21 :host.eds-icon{display:inline-flex;position:relative}.eui-21 :host.eds-icon .eds-icon-svg{height:var(--_size);width:var(--_size);fill:var(--_color);color:var(--_color)}\n"] }]
|
|
111
|
+
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], set: [{ type: i0.Input, args: [{ isSignal: true, alias: "set", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaHidden", required: false }] }] } });
|
|
127
112
|
|
|
128
113
|
class EdsIconImage {
|
|
129
114
|
constructor() {
|
|
@@ -135,7 +120,7 @@ class EdsIconImage {
|
|
|
135
120
|
* @default true
|
|
136
121
|
*/
|
|
137
122
|
this.ariaHidden = true;
|
|
138
|
-
this.sizeVariantsBase = inject(
|
|
123
|
+
this.sizeVariantsBase = inject(EdsBaseSizeVariantsDirective);
|
|
139
124
|
this.config = inject(EUI_CONFIG_TOKEN, { optional: true });
|
|
140
125
|
}
|
|
141
126
|
get cssClasses() {
|
|
@@ -153,24 +138,24 @@ class EdsIconImage {
|
|
|
153
138
|
}
|
|
154
139
|
}
|
|
155
140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIconImage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
156
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.5", type: EdsIconImage, isStandalone: true, selector: "eds-icon-image, span[edsIconImage]", inputs: { iconUrl: "iconUrl", ariaLabel: "ariaLabel", ariaHidden: ["ariaHidden", "ariaHidden", booleanAttribute] }, host: { properties: { "attr.role": "this.ariaRole", "class": "this.cssClasses", "attr.aria-label": "this.ariaLabel", "ariaHidden": "this.ariaHidden" } }, hostDirectives: [{ directive: i1.
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.5", type: EdsIconImage, isStandalone: true, selector: "eds-icon-image, span[edsIconImage]", inputs: { iconUrl: "iconUrl", ariaLabel: "ariaLabel", ariaHidden: ["ariaHidden", "ariaHidden", booleanAttribute] }, host: { properties: { "attr.role": "this.ariaRole", "class": "this.cssClasses", "attr.aria-label": "this.ariaLabel", "ariaHidden": "this.ariaHidden" } }, hostDirectives: [{ directive: i1.EdsBaseSizeVariantsDirective, inputs: ["edsSize2XS", "edsSize2XS", "edsSizeXS", "edsSizeXS", "edsSizeS", "edsSizeS", "edsSizeM", "edsSizeM", "edsSizeL", "edsSizeL", "edsSizeXL", "edsSizeXL", "edsSize2XL", "edsSize2XL", "edsSize3XL", "edsSize3XL", "edsSize4XL", "edsSize4XL", "edsSizeVariant", "edsSizeVariant"] }], ngImport: i0, template: "<svg class=\"eds-icon-svg-image\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.role]=\"'img'\">\n <image [attr.href]=\"iconUrl\" [class]=\"'eds-icon-svg-image'\"></image>\n</svg>\n", styles: [".eui-21 :host.eds-icon-image{--_size: var(--_icon-size, var(--eds-is-m));--_color: var(--_on-surface)}.eui-21 :host.eds-icon-image.eds-icon-image--size-2xs{--_size: var(--eds-is-2xs)}.eui-21 :host.eds-icon-image.eds-icon-image--size-xs{--_size: var(--eds-is-xs)}.eui-21 :host.eds-icon-image.eds-icon-image--size-s{--_size: var(--eds-is-s)}.eui-21 :host.eds-icon-image.eds-icon-image--size-m{--_size: var(--eds-is-m)}.eui-21 :host.eds-icon-image.eds-icon-image--size-l{--_size: var(--eds-is-l)}.eui-21 :host.eds-icon-image.eds-icon-image--size-xl{--_size: var(--eds-is-xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-2xl{--_size: var(--eds-is-2xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-3xl{--_size: var(--eds-is-3xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-4xl{--_size: var(--eds-is-4xl)}.eui-21 :host.eds-icon-image{display:inline-flex;position:relative}.eui-21 :host.eds-icon-image .eds-icon-svg-image{height:var(--_size);width:var(--_size)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
157
142
|
}
|
|
158
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: EdsIconImage, decorators: [{
|
|
159
144
|
type: Component,
|
|
160
145
|
args: [{ selector: 'eds-icon-image, span[edsIconImage]', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
161
146
|
{
|
|
162
|
-
directive:
|
|
147
|
+
directive: EdsBaseSizeVariantsDirective,
|
|
163
148
|
inputs: [
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
149
|
+
'edsSize2XS',
|
|
150
|
+
'edsSizeXS',
|
|
151
|
+
'edsSizeS',
|
|
152
|
+
'edsSizeM',
|
|
153
|
+
'edsSizeL',
|
|
154
|
+
'edsSizeXL',
|
|
155
|
+
'edsSize2XL',
|
|
156
|
+
'edsSize3XL',
|
|
157
|
+
'edsSize4XL',
|
|
158
|
+
'edsSizeVariant',
|
|
174
159
|
],
|
|
175
160
|
},
|
|
176
161
|
], template: "<svg class=\"eds-icon-svg-image\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.role]=\"'img'\">\n <image [attr.href]=\"iconUrl\" [class]=\"'eds-icon-svg-image'\"></image>\n</svg>\n", styles: [".eui-21 :host.eds-icon-image{--_size: var(--_icon-size, var(--eds-is-m));--_color: var(--_on-surface)}.eui-21 :host.eds-icon-image.eds-icon-image--size-2xs{--_size: var(--eds-is-2xs)}.eui-21 :host.eds-icon-image.eds-icon-image--size-xs{--_size: var(--eds-is-xs)}.eui-21 :host.eds-icon-image.eds-icon-image--size-s{--_size: var(--eds-is-s)}.eui-21 :host.eds-icon-image.eds-icon-image--size-m{--_size: var(--eds-is-m)}.eui-21 :host.eds-icon-image.eds-icon-image--size-l{--_size: var(--eds-is-l)}.eui-21 :host.eds-icon-image.eds-icon-image--size-xl{--_size: var(--eds-is-xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-2xl{--_size: var(--eds-is-2xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-3xl{--_size: var(--eds-is-3xl)}.eui-21 :host.eds-icon-image.eds-icon-image--size-4xl{--_size: var(--eds-is-4xl)}.eui-21 :host.eds-icon-image{display:inline-flex;position:relative}.eui-21 :host.eds-icon-image .eds-icon-svg-image{height:var(--_size);width:var(--_size)}\n"] }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-eds-eds-icon.mjs","sources":["../../eds-icon/eds-icon.ts","../../eds-icon/eds-icon.html","../../eds-icon/eds-icon-image.ts","../../eds-icon/eds-icon-image.html","../../eds-icon/index.ts","../../eds-icon/eui-eds-eds-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Input,\n HostBinding,\n OnInit,\n ViewEncapsulation,\n OnChanges,\n SimpleChanges,\n AfterContentInit,\n inject,\n booleanAttribute,\n} from '@angular/core';\nimport { EUI_CONFIG_TOKEN } from '@eui/core';\nimport { EuiConfig } from '@eui/core';\nimport { EuiBaseColorVariantsDirective, EuiBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n selector: 'eds-icon, span[edsIcon]',\n templateUrl: './eds-icon.html',\n styleUrls: ['./eds-icon.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: EuiBaseSizeVariantsDirective,\n inputs: [\n 'euiSize2XS',\n 'euiSizeXS',\n 'euiSizeS',\n 'euiSizeM',\n 'euiSizeL',\n 'euiSizeXL',\n 'euiSize2XL',\n 'euiSize3XL',\n 'euiSize4XL',\n 'euiSizeVariant',\n ],\n },\n {\n directive: EuiBaseColorVariantsDirective,\n inputs: [\n 'euiPrimary',\n 'euiNeutral',\n 'euiHighlight',\n 'euiInfo',\n 'euiSuccess',\n 'euiWarning',\n 'euiCritical',\n 'euiDisabled',\n 'euiColorVariant',\n ],\n }, \n ], \n})\nexport class EdsIcon implements AfterContentInit, OnChanges, OnInit {\n @HostBinding('attr.role') ariaRole = 'img';\n\n /**\n * Name of the icon to display, optionally including the icon set using 'iconName:setName' format.\n * When format includes colon separator, automatically splits into icon and set properties.\n * Required for icon display unless iconUrl is provided.\n */\n @Input() icon!: string;\n /**\n * Icon set library to load the icon from.\n * Determines the source directory for icon SVG files.\n * @default 'eui'\n */\n @Input() set = 'regular';\n\n @HostBinding('class')\n public get cssClasses(): string {\n return [\n 'eds-icon',\n this.sizeVariantsBase.getCssClasses('eds-icon'),\n this.colorVariantsBase.getCssClasses('eds-icon'),\n ]\n .join(' ')\n .trim();\n }\n\n /**\n * Accessible label for screen readers describing the icon's purpose.\n * Provides semantic meaning when icon conveys information beyond decoration.\n * @default 'Icon'\n */\n @HostBinding('attr.aria-label')\n @Input() ariaLabel!: string;\n\n public iconName!: string;\n public assetsBaseUrl = 'assets';\n\n /**\n * Hides the icon from assistive technologies when purely decorative.\n * Set to false when icon conveys meaningful information requiring announcement.\n * @default true\n */\n @HostBinding() @Input({ transform: booleanAttribute }) ariaHidden = true;\n \n protected sizeVariantsBase: EuiBaseSizeVariantsDirective = inject(EuiBaseSizeVariantsDirective);\n protected colorVariantsBase: EuiBaseColorVariantsDirective = inject(EuiBaseColorVariantsDirective);\n\n private config = inject<EuiConfig>(EUI_CONFIG_TOKEN, { optional: true })!;\n\n ngOnInit(): void {\n const assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl;\n if (assetsBaseUrl) {\n this.assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl || 'assets';\n }\n }\n\n ngOnChanges(c: SimpleChanges): void {\n if (c && c.set) {\n if (c.set.currentValue !== c.set.previousValue) {\n this._setIconAndSet();\n }\n }\n\n if (c && c.icon) {\n if (c.icon.currentValue !== c.icon.previousValue) {\n this._setIconAndSet();\n }\n }\n }\n\n ngAfterContentInit(): void {\n this._setIconAndSet();\n }\n\n private _setIconAndSet(): void {\n if (this.icon && this.icon.indexOf(':') > -1) {\n const iconSet = this.icon.split(':');\n this.icon = iconSet[0];\n this.set = iconSet[1];\n }\n\n if (!this.set || this.set === '') {\n this.set = 'regular';\n } else {\n this.iconName = this.icon;\n }\n }\n}\n","<svg\n class=\"eds-icon-svg eds-sprite-{{icon}}\"\n [attr.aria-hidden]=\"ariaRole === 'button' ? true : ariaHidden\"\n [attr.role]=\"ariaRole === 'button' ? null : 'img'\">\n <use [attr.href]=\"assetsBaseUrl + '/icons/sprites/' + set + '.svg#' + iconName\"></use>\n</svg>\n<ng-content />\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n HostBinding,\n OnInit,\n inject,\n booleanAttribute,\n} from '@angular/core';\nimport { EUI_CONFIG_TOKEN } from '@eui/core';\nimport { EuiConfig } from '@eui/core';\nimport { EuiBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n selector: 'eds-icon-image, span[edsIconImage]',\n templateUrl: './eds-icon-image.html',\n styleUrls: ['./eds-icon-image.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: EuiBaseSizeVariantsDirective,\n inputs: [\n 'euiSize2XS',\n 'euiSizeXS',\n 'euiSizeS',\n 'euiSizeM',\n 'euiSizeL',\n 'euiSizeXL',\n 'euiSize2XL',\n 'euiSize3XL',\n 'euiSize4XL',\n 'euiSizeVariant',\n ],\n },\n ],\n})\nexport class EdsIconImage implements OnInit {\n @HostBinding('attr.role') ariaRole = 'img';\n\n /**\n * Direct URL to an SVG icon file, bypassing the icon set resolution.\n * Useful for loading custom or external icons not in configured icon sets.\n */\n @Input() iconUrl!: string;\n\n @HostBinding('class')\n public get cssClasses(): string {\n return [\n 'eds-icon-image',\n this.sizeVariantsBase.getCssClasses('eds-icon-image'),\n ]\n .join(' ')\n .trim();\n }\n\n /**\n * Accessible label for screen readers describing the icon's purpose.\n * Provides semantic meaning when icon conveys information beyond decoration.\n */\n @HostBinding('attr.aria-label')\n @Input() ariaLabel!: string;\n\n public assetsBaseUrl = 'assets';\n\n /**\n * Hides the icon from assistive technologies when purely decorative.\n * Set to false when icon conveys meaningful information requiring announcement.\n * @default true\n */\n @HostBinding() @Input({ transform: booleanAttribute }) ariaHidden = true;\n \n protected sizeVariantsBase: EuiBaseSizeVariantsDirective = inject(EuiBaseSizeVariantsDirective);\n\n private config = inject<EuiConfig>(EUI_CONFIG_TOKEN, { optional: true })!;\n\n ngOnInit(): void {\n const assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl;\n if (assetsBaseUrl) {\n this.assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl || 'assets';\n }\n }\n}\n","<svg class=\"eds-icon-svg-image\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.role]=\"'img'\">\n <image [attr.href]=\"iconUrl\" [class]=\"'eds-icon-svg-image'\"></image>\n</svg>\n","import { EdsIcon } from './eds-icon';\nimport { EdsIconImage } from './eds-icon-image';\n\nexport * from './eds-icon';\nexport * from './eds-icon-image';\n\nexport const EDS_ICON = [\n EdsIcon,\n EdsIconImage,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAsDa,OAAO,CAAA;AArCpB,IAAA,WAAA,GAAA;QAsC8B,IAAA,CAAA,QAAQ,GAAG,KAAK;AAQ1C;;;;AAIG;QACM,IAAA,CAAA,GAAG,GAAG,SAAS;QAsBjB,IAAA,CAAA,aAAa,GAAG,QAAQ;AAE/B;;;;AAIG;QACoD,IAAA,CAAA,UAAU,GAAG,IAAI;AAE9D,QAAA,IAAA,CAAA,gBAAgB,GAAiC,MAAM,CAAC,4BAA4B,CAAC;AACrF,QAAA,IAAA,CAAA,iBAAiB,GAAkC,MAAM,CAAC,6BAA6B,CAAC;QAE1F,IAAA,CAAA,MAAM,GAAG,MAAM,CAAY,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAE;AAwC5E,IAAA;AAxEG,IAAA,IACW,UAAU,GAAA;QACjB,OAAO;YACH,UAAU;AACV,YAAA,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC;AAC/C,YAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,UAAU,CAAC;AACnD;aACI,IAAI,CAAC,GAAG;AACR,aAAA,IAAI,EAAE;IACf;IAyBA,QAAQ,GAAA;AACJ,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa;QACxE,IAAI,aAAa,EAAE;AACf,YAAA,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,IAAI,QAAQ;QACvF;IACJ;AAEA,IAAA,WAAW,CAAC,CAAgB,EAAA;AACxB,QAAA,IAAI,CAAC,IAAI,C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AA,CAAA,EAAA,QAAA,EAAA,oCAAoC,EAAA,eAAA,EAG7B,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,4BAA4B;AACvC,4BAAA,MAAM,EAAE;gCACJ,YAAY;gCACZ,WAAW;gCACX,UAAU;gCACV,UAAU;gCACV,UAAU;gCACV,WAAW;gCACX,YAAY;gCACZ,YAAY;gCACZ,YAAY;gCACZ,gBAAgB;AACnB,6BAAA;AACJ,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,sMAAA,EAAA,MAAA,EAAA,CAAA,88BAAA,CAAA,EAAA;;sBAGA,WAAW;uBAAC,WAAW;;sBAMvB;;sBAEA,WAAW;uBAAC,OAAO;;sBAcnB,WAAW;uBAAC,iBAAiB;;sBAC7B;;sBASA;;sBAAe,KAAK;uBAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE;;;AE/DlD,MAAM,QAAQ,GAAG;IACpB,OAAO;IACP,YAAY;;;ACRhB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"eui-eds-eds-icon.mjs","sources":["../../eds-icon/eds-icon.ts","../../eds-icon/eds-icon.html","../../eds-icon/eds-icon-image.ts","../../eds-icon/eds-icon-image.html","../../eds-icon/index.ts","../../eds-icon/eui-eds-eds-icon.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n OnInit,\n inject,\n computed,\n booleanAttribute,\n input,\n} from '@angular/core';\nimport { EUI_CONFIG_TOKEN } from '@eui/core';\nimport { EuiConfig } from '@eui/core';\nimport { EdsBaseColorVariantsDirective, EdsBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n selector: 'eds-icon, span[edsIcon]',\n templateUrl: './eds-icon.html',\n styleUrls: ['./eds-icon.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'hostClasses()',\n role: 'img',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-hidden]': 'ariaHidden()',\n },\n hostDirectives: [\n {\n directive: EdsBaseSizeVariantsDirective,\n inputs: [\n 'edsSize2XS',\n 'edsSizeXS',\n 'edsSizeS',\n 'edsSizeM',\n 'edsSizeL',\n 'edsSizeXL',\n 'edsSize2XL',\n 'edsSize3XL',\n 'edsSize4XL',\n 'edsSizeVariant',\n ],\n },\n {\n directive: EdsBaseColorVariantsDirective,\n inputs: [\n 'edsPrimary',\n 'edsNeutral',\n 'edsHighlight',\n 'edsInfo',\n 'edsSuccess',\n 'edsWarning',\n 'edsCritical',\n 'edsDisabled',\n 'edsColorVariant',\n ],\n },\n ],\n})\nexport class EdsIcon implements OnInit {\n /**\n * Name of the icon to display, optionally including the icon set using 'iconName:setName' format.\n * When format includes colon separator, automatically splits into icon and set properties.\n */\n icon = input<string>('');\n\n /**\n * Icon set library to load the icon from.\n * @default 'regular'\n */\n set = input('regular');\n\n /**\n * Accessible label for screen readers describing the icon's purpose.\n */\n ariaLabel = input<string>('');\n\n /**\n * Hides the icon from assistive technologies when purely decorative.\n * @default true\n */\n ariaHidden = input(true, { transform: booleanAttribute });\n\n hostClasses = computed(() => {\n return [\n 'eds-icon',\n this.sizeVariantsBase.getCssClasses('eds-icon'),\n this.colorVariantsBase.getCssClasses('eds-icon'),\n ]\n .join(' ')\n .trim();\n });\n\n /** Resolved icon name (parsed from 'icon:set' format). */\n iconName = computed(() => {\n const raw = this.icon();\n if (raw && raw.indexOf(':') > -1) {\n return raw.split(':')[0];\n }\n return raw;\n });\n\n /** Resolved icon set (parsed from 'icon:set' format or defaults to set input). */\n resolvedSet = computed(() => {\n const raw = this.icon();\n if (raw && raw.indexOf(':') > -1) {\n return raw.split(':')[1] || 'regular';\n }\n return this.set() || 'regular';\n });\n\n public assetsBaseUrl = 'assets';\n\n protected sizeVariantsBase: EdsBaseSizeVariantsDirective = inject(EdsBaseSizeVariantsDirective);\n protected colorVariantsBase: EdsBaseColorVariantsDirective = inject(EdsBaseColorVariantsDirective);\n\n private config = inject<EuiConfig>(EUI_CONFIG_TOKEN, { optional: true })!;\n\n ngOnInit(): void {\n const assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl;\n if (assetsBaseUrl) {\n this.assetsBaseUrl = assetsBaseUrl;\n }\n }\n}\n","<svg\n class=\"eds-icon-svg eds-sprite-{{iconName()}}\"\n aria-hidden=\"true\">\n <use [attr.href]=\"assetsBaseUrl + '/icons/sprites/' + resolvedSet() + '.svg#' + iconName()\"></use>\n</svg>\n<ng-content />\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n HostBinding,\n OnInit,\n inject,\n booleanAttribute,\n} from '@angular/core';\nimport { EUI_CONFIG_TOKEN } from '@eui/core';\nimport { EuiConfig } from '@eui/core';\nimport { EdsBaseSizeVariantsDirective } from '@eui/eds/shared';\n\n@Component({\n selector: 'eds-icon-image, span[edsIconImage]',\n templateUrl: './eds-icon-image.html',\n styleUrls: ['./eds-icon-image.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: EdsBaseSizeVariantsDirective,\n inputs: [\n 'edsSize2XS',\n 'edsSizeXS',\n 'edsSizeS',\n 'edsSizeM',\n 'edsSizeL',\n 'edsSizeXL',\n 'edsSize2XL',\n 'edsSize3XL',\n 'edsSize4XL',\n 'edsSizeVariant',\n ],\n },\n ],\n})\nexport class EdsIconImage implements OnInit {\n @HostBinding('attr.role') ariaRole = 'img';\n\n /**\n * Direct URL to an SVG icon file, bypassing the icon set resolution.\n * Useful for loading custom or external icons not in configured icon sets.\n */\n @Input() iconUrl!: string;\n\n @HostBinding('class')\n public get cssClasses(): string {\n return [\n 'eds-icon-image',\n this.sizeVariantsBase.getCssClasses('eds-icon-image'),\n ]\n .join(' ')\n .trim();\n }\n\n /**\n * Accessible label for screen readers describing the icon's purpose.\n * Provides semantic meaning when icon conveys information beyond decoration.\n */\n @HostBinding('attr.aria-label')\n @Input() ariaLabel!: string;\n\n public assetsBaseUrl = 'assets';\n\n /**\n * Hides the icon from assistive technologies when purely decorative.\n * Set to false when icon conveys meaningful information requiring announcement.\n * @default true\n */\n @HostBinding() @Input({ transform: booleanAttribute }) ariaHidden = true;\n \n protected sizeVariantsBase: EdsBaseSizeVariantsDirective = inject(EdsBaseSizeVariantsDirective);\n\n private config = inject<EuiConfig>(EUI_CONFIG_TOKEN, { optional: true })!;\n\n ngOnInit(): void {\n const assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl;\n if (assetsBaseUrl) {\n this.assetsBaseUrl = this.config?.appConfig?.global?.eui?.assetsBaseUrl || 'assets';\n }\n }\n}\n","<svg class=\"eds-icon-svg-image\"\n [attr.aria-hidden]=\"ariaHidden\"\n [attr.role]=\"'img'\">\n <image [attr.href]=\"iconUrl\" [class]=\"'eds-icon-svg-image'\"></image>\n</svg>\n","import { EdsIcon } from './eds-icon';\nimport { EdsIconImage } from './eds-icon-image';\n\nexport * from './eds-icon';\nexport * from './eds-icon-image';\n\nexport const EDS_ICON = [\n EdsIcon,\n EdsIconImage,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAwDa,OAAO,CAAA;AA3CpB,IAAA,WAAA,GAAA;AA4CI;;;AAGG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAS,EAAE;iFAAC;AAExB;;;AAGG;QACH,IAAA,CAAA,GAAG,GAAG,KAAK,CAAC,SAAS;gFAAC;AAEtB;;AAEG;QACH,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,EAAE;sFAAC;AAE7B;;;AAGG;QACH,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,IAAI,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEzD,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAK;YACxB,OAAO;gBACH,UAAU;AACV,gBAAA,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,UAAU,CAAC;AAC/C,gBAAA,IAAI,CAAC,iBAAiB,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