@eui/eds 22.0.0-alpha.25 → 22.0.0-alpha.27
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 +25 -0
- package/docs/components/EdsLabel.html +51 -94
- package/docs/components/EdsOverlay.html +31 -1
- package/docs/directives/EdsColorDirective.html +0 -3
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/EdsLabel.md +12 -3
- package/docs/json/EdsOverlay.md +1 -0
- package/docs/json/documentation.json +150 -111
- package/docs/llms.txt +7 -5
- package/docs/miscellaneous/typealiases.html +30 -1
- package/docs/properties.html +1 -1
- package/fesm2022/eui-eds-eds-chip.mjs +2 -2
- package/fesm2022/eui-eds-eds-chip.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-icon.mjs +2 -2
- package/fesm2022/eui-eds-eds-icon.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-label.mjs +26 -32
- package/fesm2022/eui-eds-eds-label.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-language-selector.mjs +2 -2
- package/fesm2022/eui-eds-eds-language-selector.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-overlay.mjs +5 -3
- package/fesm2022/eui-eds-eds-overlay.mjs.map +1 -1
- package/fesm2022/eui-eds-eds-tree.mjs +1 -1
- package/fesm2022/eui-eds-eds-tree.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eui-eds-eds-chip.d.ts +1 -1
- package/types/eui-eds-eds-label.d.ts +24 -8
- package/types/eui-eds-eds-label.d.ts.map +1 -1
- package/types/eui-eds-eds-overlay.d.ts +3 -1
- package/types/eui-eds-eds-overlay.d.ts.map +1 -1
|
@@ -11832,10 +11832,6 @@
|
|
|
11832
11832
|
"type": "component",
|
|
11833
11833
|
"description": "Floating Action Button with optional speed dial menu. Follows the WAI-ARIA APG Menu Button pattern: - Trigger button: role=\"button\", aria..."
|
|
11834
11834
|
},
|
|
11835
|
-
{
|
|
11836
|
-
"name": "EdsLabel",
|
|
11837
|
-
"type": "component"
|
|
11838
|
-
},
|
|
11839
11835
|
{
|
|
11840
11836
|
"name": "EdsLanguageSelector",
|
|
11841
11837
|
"type": "component"
|
|
@@ -28106,7 +28102,7 @@
|
|
|
28106
28102
|
},
|
|
28107
28103
|
{
|
|
28108
28104
|
"name": "EdsChip",
|
|
28109
|
-
"id": "component-EdsChip-
|
|
28105
|
+
"id": "component-EdsChip-010367764117c5686d7cde5dfc9ed3b4c04698f91b1e286df1d01e1b53f72c6d38ef41ad4ce01de33e0035fec01b2b0bc84f3b1e835c0c21a72f161b97272202",
|
|
28110
28106
|
"file": "packages/eds/eds-chip/eds-chip.ts",
|
|
28111
28107
|
"changeDetection": "ChangeDetectionStrategy.OnPush",
|
|
28112
28108
|
"encapsulation": [],
|
|
@@ -28141,16 +28137,16 @@
|
|
|
28141
28137
|
"rawdescription": "\n\nSets the `aria-label` attribute for the host element.\nWhen not set, assistive technology will use the text content of the chip.\n\nundefined\n",
|
|
28142
28138
|
"jsdoctags": [
|
|
28143
28139
|
{
|
|
28144
|
-
"pos":
|
|
28145
|
-
"end":
|
|
28140
|
+
"pos": 2563,
|
|
28141
|
+
"end": 2587,
|
|
28146
28142
|
"kind": 328,
|
|
28147
28143
|
"id": 0,
|
|
28148
28144
|
"flags": 16842752,
|
|
28149
28145
|
"modifierFlagsCache": 0,
|
|
28150
28146
|
"transformFlags": 0,
|
|
28151
28147
|
"tagName": {
|
|
28152
|
-
"pos":
|
|
28153
|
-
"end":
|
|
28148
|
+
"pos": 2564,
|
|
28149
|
+
"end": 2571,
|
|
28154
28150
|
"kind": 80,
|
|
28155
28151
|
"id": 0,
|
|
28156
28152
|
"flags": 16842752,
|
|
@@ -28176,16 +28172,16 @@
|
|
|
28176
28172
|
"rawdescription": "\n\nSemantic color of the chip.\n'neutral'\n",
|
|
28177
28173
|
"jsdoctags": [
|
|
28178
28174
|
{
|
|
28179
|
-
"pos":
|
|
28180
|
-
"end":
|
|
28175
|
+
"pos": 2075,
|
|
28176
|
+
"end": 2099,
|
|
28181
28177
|
"kind": 328,
|
|
28182
28178
|
"id": 0,
|
|
28183
28179
|
"flags": 16842752,
|
|
28184
28180
|
"modifierFlagsCache": 0,
|
|
28185
28181
|
"transformFlags": 0,
|
|
28186
28182
|
"tagName": {
|
|
28187
|
-
"pos":
|
|
28188
|
-
"end":
|
|
28183
|
+
"pos": 2076,
|
|
28184
|
+
"end": 2083,
|
|
28189
28185
|
"kind": 80,
|
|
28190
28186
|
"id": 0,
|
|
28191
28187
|
"flags": 16842752,
|
|
@@ -28224,16 +28220,16 @@
|
|
|
28224
28220
|
"rawdescription": "\n\nControls the disabled state of the chip.\nWhen true, prevents interaction and applies disabled styling.\n\nfalse\n",
|
|
28225
28221
|
"jsdoctags": [
|
|
28226
28222
|
{
|
|
28227
|
-
"pos":
|
|
28228
|
-
"end":
|
|
28223
|
+
"pos": 4068,
|
|
28224
|
+
"end": 4088,
|
|
28229
28225
|
"kind": 328,
|
|
28230
28226
|
"id": 0,
|
|
28231
28227
|
"flags": 16842752,
|
|
28232
28228
|
"modifierFlagsCache": 0,
|
|
28233
28229
|
"transformFlags": 0,
|
|
28234
28230
|
"tagName": {
|
|
28235
|
-
"pos":
|
|
28236
|
-
"end":
|
|
28231
|
+
"pos": 4069,
|
|
28232
|
+
"end": 4076,
|
|
28237
28233
|
"kind": 80,
|
|
28238
28234
|
"id": 0,
|
|
28239
28235
|
"flags": 16842752,
|
|
@@ -28259,16 +28255,16 @@
|
|
|
28259
28255
|
"rawdescription": "\n\nSets the `data-e2e` attribute for the host element.\n\n'eds-chip'\n",
|
|
28260
28256
|
"jsdoctags": [
|
|
28261
28257
|
{
|
|
28262
|
-
"pos":
|
|
28263
|
-
"end":
|
|
28258
|
+
"pos": 2942,
|
|
28259
|
+
"end": 2967,
|
|
28264
28260
|
"kind": 328,
|
|
28265
28261
|
"id": 0,
|
|
28266
28262
|
"flags": 16842752,
|
|
28267
28263
|
"modifierFlagsCache": 0,
|
|
28268
28264
|
"transformFlags": 0,
|
|
28269
28265
|
"tagName": {
|
|
28270
|
-
"pos":
|
|
28271
|
-
"end":
|
|
28266
|
+
"pos": 2943,
|
|
28267
|
+
"end": 2950,
|
|
28272
28268
|
"kind": 80,
|
|
28273
28269
|
"id": 0,
|
|
28274
28270
|
"flags": 16842752,
|
|
@@ -28294,16 +28290,16 @@
|
|
|
28294
28290
|
"rawdescription": "\n\nSets the edsInternalId of the chip.\n\n''\n",
|
|
28295
28291
|
"jsdoctags": [
|
|
28296
28292
|
{
|
|
28297
|
-
"pos":
|
|
28298
|
-
"end":
|
|
28293
|
+
"pos": 3069,
|
|
28294
|
+
"end": 3086,
|
|
28299
28295
|
"kind": 328,
|
|
28300
28296
|
"id": 0,
|
|
28301
28297
|
"flags": 16842752,
|
|
28302
28298
|
"modifierFlagsCache": 0,
|
|
28303
28299
|
"transformFlags": 0,
|
|
28304
28300
|
"tagName": {
|
|
28305
|
-
"pos":
|
|
28306
|
-
"end":
|
|
28301
|
+
"pos": 3070,
|
|
28302
|
+
"end": 3077,
|
|
28307
28303
|
"kind": 80,
|
|
28308
28304
|
"id": 0,
|
|
28309
28305
|
"flags": 16842752,
|
|
@@ -28343,16 +28339,16 @@
|
|
|
28343
28339
|
"rawdescription": "\n\nWhether the chip is in active/pressed state.\n\nfalse\n",
|
|
28344
28340
|
"jsdoctags": [
|
|
28345
28341
|
{
|
|
28346
|
-
"pos":
|
|
28347
|
-
"end":
|
|
28342
|
+
"pos": 3843,
|
|
28343
|
+
"end": 3863,
|
|
28348
28344
|
"kind": 328,
|
|
28349
28345
|
"id": 0,
|
|
28350
28346
|
"flags": 16842752,
|
|
28351
28347
|
"modifierFlagsCache": 0,
|
|
28352
28348
|
"transformFlags": 0,
|
|
28353
28349
|
"tagName": {
|
|
28354
|
-
"pos":
|
|
28355
|
-
"end":
|
|
28350
|
+
"pos": 3844,
|
|
28351
|
+
"end": 3851,
|
|
28356
28352
|
"kind": 80,
|
|
28357
28353
|
"id": 0,
|
|
28358
28354
|
"flags": 16842752,
|
|
@@ -28378,16 +28374,16 @@
|
|
|
28378
28374
|
"rawdescription": "\n\nWhether the chip can be removed.\n\nfalse\n",
|
|
28379
28375
|
"jsdoctags": [
|
|
28380
28376
|
{
|
|
28381
|
-
"pos":
|
|
28382
|
-
"end":
|
|
28377
|
+
"pos": 3680,
|
|
28378
|
+
"end": 3700,
|
|
28383
28379
|
"kind": 328,
|
|
28384
28380
|
"id": 0,
|
|
28385
28381
|
"flags": 16842752,
|
|
28386
28382
|
"modifierFlagsCache": 0,
|
|
28387
28383
|
"transformFlags": 0,
|
|
28388
28384
|
"tagName": {
|
|
28389
|
-
"pos":
|
|
28390
|
-
"end":
|
|
28385
|
+
"pos": 3681,
|
|
28386
|
+
"end": 3688,
|
|
28391
28387
|
"kind": 80,
|
|
28392
28388
|
"id": 0,
|
|
28393
28389
|
"flags": 16842752,
|
|
@@ -28413,16 +28409,16 @@
|
|
|
28413
28409
|
"rawdescription": "\n\nSize of the chip.\n'm'\n",
|
|
28414
28410
|
"jsdoctags": [
|
|
28415
28411
|
{
|
|
28416
|
-
"pos":
|
|
28417
|
-
"end":
|
|
28412
|
+
"pos": 2187,
|
|
28413
|
+
"end": 2205,
|
|
28418
28414
|
"kind": 328,
|
|
28419
28415
|
"id": 0,
|
|
28420
28416
|
"flags": 16842752,
|
|
28421
28417
|
"modifierFlagsCache": 0,
|
|
28422
28418
|
"transformFlags": 0,
|
|
28423
28419
|
"tagName": {
|
|
28424
|
-
"pos":
|
|
28425
|
-
"end":
|
|
28420
|
+
"pos": 2188,
|
|
28421
|
+
"end": 2195,
|
|
28426
28422
|
"kind": 80,
|
|
28427
28423
|
"id": 0,
|
|
28428
28424
|
"flags": 16842752,
|
|
@@ -28638,12 +28634,12 @@
|
|
|
28638
28634
|
"description": "",
|
|
28639
28635
|
"rawdescription": "\n",
|
|
28640
28636
|
"type": "component",
|
|
28641
|
-
"sourceCode": "import {\n Component,\n ChangeDetectionStrategy,\n booleanAttribute,\n inject,\n input,\n output,\n computed,\n} from '@angular/core';\n\nimport { EDS_ICON } from '@eui/eds/eds-icon';\nimport { EDS_BUTTON } from '@eui/eds/eds-button';\nimport { EDS_ICON_BUTTON } from '@eui/eds/eds-icon-button';\nimport { EdsChipList } from '@eui/eds/eds-chip-list';\n\nimport { EdsChipData } from './models/eui-chip.model';\nimport { EdsIconSize } from '@eui/eds/eds-icon';\n\n/**\n * Local narrowed color union — the chip's color contract.\n */\nexport type EdsChipColor = 'neutral' | 'info' | 'success' | 'warning' | 'critical';\n\n/**\n * Local narrowed size union — the chip's size contract.\n */\nexport type EdsChipSize = 's' | 'm' | 'l';\n\n/** Maps a chip size to the size of its inner (remove) icon. */\nconst CHIP_ICON_SIZE: Record<EdsChipSize, EdsIconSize> = {\n s: 'xs',\n m: 's',\n l: 'm',\n};\n\n@Component({\n templateUrl: './eds-chip.html',\n selector: 'eds-chip, span[edsChip], li[edsChip]',\n styleUrl: './eds-chip.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ...EDS_ICON,\n ...EDS_ICON_BUTTON,\n ...EDS_BUTTON,\n ],\n host: {\n class: 'eds-chip',\n '[attr.color]': 'color()',\n '[attr.size]': 'size()',\n '[attr.removable]': 'isRemovable() || null',\n '[attr.active]': 'isActive() || null',\n '[attr.disabled]': 'disabled() || null',\n '[attr.tabindex]': 'disabled() ? \"-1\" : \"0\"',\n '[attr.role]': 'hostRole()',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.aria-pressed]': 'isActive() ? \"true\" : null',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.data-e2e]': 'e2eAttr()',\n '(click)': 'onHostClick($event)',\n '(keydown.enter)': 'onHostClick($event)',\n '(keydown.space)': 'onHostKeyActivate($event)',\n '(keydown.delete)': 'onKeyRemove($event)',\n '(keydown.backspace)': 'onKeyRemove($event)',\n },\n})\nexport class EdsChip {\n /**\n * Semantic color of the chip.\n * @default 'neutral'\n */\n color = input<EdsChipColor>('neutral');\n\n /**\n * Size of the chip.\n * @default 'm'\n */\n size = input<EdsChipSize>('m');\n\n /** Size of the inner remove icon, derived from the chip size. */\n protected iconSize = computed<EdsIconSize>(() => CHIP_ICON_SIZE[this.size()]);\n\n /**\n * Sets the `aria-label` attribute for the host element.\n * When not set, assistive technology will use the text content of the chip.\n *\n * @default undefined\n */\n ariaLabel = input<string | undefined>(undefined);\n\n /**\n * Resolved role for the host element.\n * Returns 'listitem' when inside an eds-chip-list, 'button' otherwise.\n */\n protected hostRole = computed(() => this.chipList ? 'listitem' : 'button');\n\n /**\n * Sets the `data-e2e` attribute for the host element.\n *\n * @default 'eds-chip'\n */\n e2eAttr = input('eds-chip');\n\n /**\n * Sets the edsInternalId of the chip.\n *\n * @default ''\n */\n edsInternalId = input<string>('');\n\n /**\n * Sets the label of the tooltip to display on hover.\n */\n tooltipMessage = input<string>('');\n\n /**\n * Sets the id of the chip.\n */\n id = input<string | number>('');\n\n /**\n * Sets the data of the chip like tooltip configuration.\n */\n data = input<EdsChipData>({\n id: crypto.randomUUID(),\n tooltip: {\n color: 'edsTooltipPrimary',\n contentAlignment: null,\n position: 'above',\n },\n });\n\n /**\n * Whether the chip can be removed.\n *\n * @default false\n */\n isRemovable = input(false, { transform: booleanAttribute });\n\n /**\n * Whether the chip is in active/pressed state.\n *\n * @default false\n */\n isActive = input(false, { transform: booleanAttribute });\n\n /**\n * Controls the disabled state of the chip.\n * When true, prevents interaction and applies disabled styling.\n *\n * @default false\n */\n disabled = input(false, { transform: booleanAttribute });\n\n /**\n * Event emitted when the chip is removed.\n */\n chipRemove = output<EdsChipData>();\n\n /**\n * Event emitted when the chip is clicked.\n */\n chipClick = output<EdsChipData>();\n\n /** Optional parent chip-list — used to determine role. */\n private chipList = inject(EdsChipList, { optional: true });\n\n onHostClick(event?: Event): void {\n if (this.disabled()) {\n return;\n }\n\n if (this.isRemovable()) {\n this.onRemove(event);\n } else {\n this.onClick(event);\n }\n }\n\n /**\n * Handles Space key activation — prevents page scroll and triggers click.\n */\n onHostKeyActivate(event: Event): void {\n event.preventDefault();\n this.onHostClick(event);\n }\n\n /**\n * Handles Delete/Backspace key to remove chip (WAI-ARIA APG convention).\n */\n onKeyRemove(event: Event): void {\n if (this.disabled() || !this.isRemovable()) {\n return;\n }\n event.preventDefault();\n this.chipRemove.emit(this.data());\n }\n\n /**\n * Remove chip handler\n *\n * @param event Click event\n */\n private onRemove(event?: Event): void {\n if (event instanceof KeyboardEvent && (event as KeyboardEvent).code === 'Backspace') {\n this.chipRemove.emit({ ...this.data(), _event: event });\n } else {\n this.chipRemove.emit(this.data());\n }\n }\n\n private onClick(event?: Event): void {\n this.chipClick.emit(this.data());\n }\n}\n",
|
|
28637
|
+
"sourceCode": "import {\n Component,\n ChangeDetectionStrategy,\n booleanAttribute,\n inject,\n input,\n output,\n computed,\n} from '@angular/core';\n\nimport { EDS_ICON } from '@eui/eds/eds-icon';\nimport { EDS_BUTTON } from '@eui/eds/eds-button';\nimport { EDS_ICON_BUTTON } from '@eui/eds/eds-icon-button';\nimport { EdsChipList } from '@eui/eds/eds-chip-list';\n\nimport { EdsChipData } from './models/eui-chip.model';\nimport { EdsIconSize } from '@eui/eds/eds-icon';\n\n/**\n * Local narrowed color union — the chip's color contract.\n */\nexport type EdsChipColor = 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'critical';\n\n/**\n * Local narrowed size union — the chip's size contract.\n */\nexport type EdsChipSize = 's' | 'm' | 'l';\n\n/** Maps a chip size to the size of its inner (remove) icon. */\nconst CHIP_ICON_SIZE: Record<EdsChipSize, EdsIconSize> = {\n s: 'xs',\n m: 's',\n l: 'm',\n};\n\n@Component({\n templateUrl: './eds-chip.html',\n selector: 'eds-chip, span[edsChip], li[edsChip]',\n styleUrl: './eds-chip.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n ...EDS_ICON,\n ...EDS_ICON_BUTTON,\n ...EDS_BUTTON,\n ],\n host: {\n class: 'eds-chip',\n '[attr.color]': 'color()',\n '[attr.size]': 'size()',\n '[attr.removable]': 'isRemovable() || null',\n '[attr.active]': 'isActive() || null',\n '[attr.disabled]': 'disabled() || null',\n '[attr.tabindex]': 'disabled() ? \"-1\" : \"0\"',\n '[attr.role]': 'hostRole()',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.aria-pressed]': 'isActive() ? \"true\" : null',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.data-e2e]': 'e2eAttr()',\n '(click)': 'onHostClick($event)',\n '(keydown.enter)': 'onHostClick($event)',\n '(keydown.space)': 'onHostKeyActivate($event)',\n '(keydown.delete)': 'onKeyRemove($event)',\n '(keydown.backspace)': 'onKeyRemove($event)',\n },\n})\nexport class EdsChip {\n /**\n * Semantic color of the chip.\n * @default 'neutral'\n */\n color = input<EdsChipColor>('neutral');\n\n /**\n * Size of the chip.\n * @default 'm'\n */\n size = input<EdsChipSize>('m');\n\n /** Size of the inner remove icon, derived from the chip size. */\n protected iconSize = computed<EdsIconSize>(() => CHIP_ICON_SIZE[this.size()]);\n\n /**\n * Sets the `aria-label` attribute for the host element.\n * When not set, assistive technology will use the text content of the chip.\n *\n * @default undefined\n */\n ariaLabel = input<string | undefined>(undefined);\n\n /**\n * Resolved role for the host element.\n * Returns 'listitem' when inside an eds-chip-list, 'button' otherwise.\n */\n protected hostRole = computed(() => this.chipList ? 'listitem' : 'button');\n\n /**\n * Sets the `data-e2e` attribute for the host element.\n *\n * @default 'eds-chip'\n */\n e2eAttr = input('eds-chip');\n\n /**\n * Sets the edsInternalId of the chip.\n *\n * @default ''\n */\n edsInternalId = input<string>('');\n\n /**\n * Sets the label of the tooltip to display on hover.\n */\n tooltipMessage = input<string>('');\n\n /**\n * Sets the id of the chip.\n */\n id = input<string | number>('');\n\n /**\n * Sets the data of the chip like tooltip configuration.\n */\n data = input<EdsChipData>({\n id: crypto.randomUUID(),\n tooltip: {\n color: 'edsTooltipPrimary',\n contentAlignment: null,\n position: 'above',\n },\n });\n\n /**\n * Whether the chip can be removed.\n *\n * @default false\n */\n isRemovable = input(false, { transform: booleanAttribute });\n\n /**\n * Whether the chip is in active/pressed state.\n *\n * @default false\n */\n isActive = input(false, { transform: booleanAttribute });\n\n /**\n * Controls the disabled state of the chip.\n * When true, prevents interaction and applies disabled styling.\n *\n * @default false\n */\n disabled = input(false, { transform: booleanAttribute });\n\n /**\n * Event emitted when the chip is removed.\n */\n chipRemove = output<EdsChipData>();\n\n /**\n * Event emitted when the chip is clicked.\n */\n chipClick = output<EdsChipData>();\n\n /** Optional parent chip-list — used to determine role. */\n private chipList = inject(EdsChipList, { optional: true });\n\n onHostClick(event?: Event): void {\n if (this.disabled()) {\n return;\n }\n\n if (this.isRemovable()) {\n this.onRemove(event);\n } else {\n this.onClick(event);\n }\n }\n\n /**\n * Handles Space key activation — prevents page scroll and triggers click.\n */\n onHostKeyActivate(event: Event): void {\n event.preventDefault();\n this.onHostClick(event);\n }\n\n /**\n * Handles Delete/Backspace key to remove chip (WAI-ARIA APG convention).\n */\n onKeyRemove(event: Event): void {\n if (this.disabled() || !this.isRemovable()) {\n return;\n }\n event.preventDefault();\n this.chipRemove.emit(this.data());\n }\n\n /**\n * Remove chip handler\n *\n * @param event Click event\n */\n private onRemove(event?: Event): void {\n if (event instanceof KeyboardEvent && (event as KeyboardEvent).code === 'Backspace') {\n this.chipRemove.emit({ ...this.data(), _event: event });\n } else {\n this.chipRemove.emit(this.data());\n }\n }\n\n private onClick(event?: Event): void {\n this.chipClick.emit(this.data());\n }\n}\n",
|
|
28642
28638
|
"styleUrl": "./eds-chip.scss",
|
|
28643
28639
|
"assetsDirs": [],
|
|
28644
28640
|
"styleUrlsData": [
|
|
28645
28641
|
{
|
|
28646
|
-
"data": "@use 'sass:map';\n@use '../base' as base;\n\n:host {\n // default color = neutral\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground
|
|
28642
|
+
"data": "@use 'sass:map';\n@use '../base' as base;\n\n:host {\n // default color = neutral\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground);\n --_eds-chip-border-color: var(--eds-c-border-neutral-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-neutral-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-neutral-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-neutral-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-neutral-subtle);\n\n // default size = m\n --_eds-chip-font: var(--eds-f-paragraph-s);\n --_eds-chip-padding: var(--eds-sp-4xs) var(--eds-sp-2xs);\n --_eds-chip-height: var(--eds-sp-xl);\n\n // a projected eds-icon follows the chip foreground (on-surface) color\n --_eds-icon-on-surface: var(--_eds-chip-on-surface);\n\n border-radius: var(--eds-br-full);\n display: inline-flex;\n border: var(--eds-bw-xs) solid var(--_eds-chip-border-color);\n padding: var(--_eds-chip-padding);\n font: var(--_eds-chip-font);\n background-color: var(--_eds-chip-surface);\n color: var(--_eds-chip-on-surface);\n height: var(--_eds-chip-height);\n cursor: pointer;\n gap: var(--eds-sp-2xs);\n align-items: center;\n\n &:not([disabled]) {\n @include base.eds-focus-visible-ring-rounded();\n }\n\n &:hover {\n background-color: var(--_eds-chip-surface-hover);\n color: var(--_eds-chip-on-surface-hover);\n }\n &:active {\n background-color: var(--_eds-chip-surface-active);\n color: var(--_eds-chip-on-surface-active);\n }\n\n .eds-chip__content {\n display: inline-flex;\n align-items: center;\n background: transparent;\n gap: var(--eds-sp-2xs);\n\n // A projected icon sitting at the very start/end of the chip content is pulled slightly\n // toward the edge so it reads as tucked in against the chip rather than double-padded\n // (host padding + gap). Only the leading/trailing icon is nudged, not icons between text.\n ::ng-deep eds-icon:first-child {\n margin-left: calc(-1 * var(--eds-sp-3xs));\n }\n\n ::ng-deep eds-icon:last-child {\n margin-right: calc(-1 * var(--eds-sp-3xs));\n }\n }\n\n .eds-chip__close {\n margin-left: var(--eds-sp-xs);\n }\n}\n\n// SIZE VARIANTS\n// -------------\n\n:host([size=\"s\"]) {\n --_eds-chip-font: var(--eds-f-paragraph-xs);\n --_eds-chip-padding: var(--eds-sp-4xs) var(--eds-sp-3xs);\n --_eds-chip-height: var(--eds-sp-l);\n}\n\n:host([size=\"m\"]) {\n --_eds-chip-font: var(--eds-f-paragraph-s);\n --_eds-chip-padding: var(--eds-sp-4xs) var(--eds-sp-2xs);\n --_eds-chip-height: var(--eds-sp-xl);\n}\n\n:host([size=\"l\"]) {\n --_eds-chip-font: var(--eds-f-paragraph-s);\n --_eds-chip-padding: var(--eds-sp-3xs) var(--eds-sp-2xs);\n --_eds-chip-height: var(--eds-sp-2xl);\n}\n\n// COLOR VARIANTS\n// --------------\n\n:host([color=\"neutral\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground);\n --_eds-chip-border-color: var(--eds-c-border-neutral-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-neutral-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-neutral-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-neutral-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-neutral-subtle);\n}\n\n:host([color=\"primary\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground-primary);\n --_eds-chip-border-color: var(--eds-c-border-primary-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-primary-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-primary-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-primary-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-primary-subtle);\n}\n\n:host([color=\"info\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground-info);\n --_eds-chip-border-color: var(--eds-c-border-info-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-info-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-info-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-info-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-info-subtle);\n}\n\n:host([color=\"success\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground-success);\n --_eds-chip-border-color: var(--eds-c-border-success-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-success-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-success-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-success-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-success-subtle);\n}\n\n:host([color=\"warning\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground-warning);\n --_eds-chip-border-color: var(--eds-c-border-warning-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-warning-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-warning-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-warning-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-warning-subtle);\n}\n\n:host([color=\"critical\"]) {\n --_eds-chip-surface: transparent;\n --_eds-chip-on-surface: var(--eds-c-foreground-critical);\n --_eds-chip-border-color: var(--eds-c-border-critical-subtle);\n --_eds-chip-surface-hover: var(--eds-c-surface-critical-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-critical-subtle);\n --_eds-chip-surface-active: var(--eds-c-surface-critical-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-critical-subtle);\n}\n\n// STATE OVERRIDES — ACTIVE (filled)\n// ---------------------------------\n// Active fills the chip with its OWN color. The default (no explicit color) and the neutral color\n// resolve to the neutral filled scale; primary resolves to the primary filled scale.\n\n:host([active]),\n:host([active][color=\"neutral\"]) {\n --_eds-chip-surface: var(--eds-c-surface-inverted);\n --_eds-chip-on-surface: var(--eds-c-on-surface-inverted);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-inverted--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-inverted--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-inverted--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-inverted--pressed);\n}\n\n:host([active][color=\"primary\"]) {\n --_eds-chip-surface: var(--eds-c-surface-primary);\n --_eds-chip-on-surface: var(--eds-c-on-surface-primary);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-primary--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-primary--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-primary--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-primary--pressed);\n}\n\n:host([active][color=\"info\"]) {\n --_eds-chip-surface: var(--eds-c-surface-info);\n --_eds-chip-on-surface: var(--eds-c-on-surface-info);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-info--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-info--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-info--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-info--pressed);\n}\n\n:host([active][color=\"success\"]) {\n --_eds-chip-surface: var(--eds-c-surface-success);\n --_eds-chip-on-surface: var(--eds-c-on-surface-success);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-success--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-success--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-success--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-success--pressed);\n}\n\n:host([active][color=\"warning\"]) {\n --_eds-chip-surface: var(--eds-c-surface-warning);\n --_eds-chip-on-surface: var(--eds-c-on-surface-warning);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-warning--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-warning--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-warning--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-warning--pressed);\n}\n\n:host([active][color=\"critical\"]) {\n --_eds-chip-surface: var(--eds-c-surface-critical);\n --_eds-chip-on-surface: var(--eds-c-on-surface-critical);\n --_eds-chip-border-color: transparent;\n --_eds-chip-surface-hover: var(--eds-c-surface-critical--hover);\n --_eds-chip-on-surface-hover: var(--eds-c-on-surface-critical--hover);\n --_eds-chip-surface-active: var(--eds-c-surface-critical--pressed);\n --_eds-chip-on-surface-active: var(--eds-c-on-surface-critical--pressed);\n}\n\n// Disabled wins over every color/active combination — the extra [disabled] raises specificity\n// above the two-attribute :host([active][color=\"…\"]) active overrides above.\n:host([disabled]),\n:host([disabled][active]) {\n --_eds-chip-surface: var(--eds-c-surface-disabled-subtle);\n --_eds-chip-on-surface: var(--eds-c-foreground-disabled);\n --_eds-chip-border-color: var(--eds-c-border-disabled);\n --_eds-chip-surface-hover: var(--eds-c-surface-disabled-subtle);\n --_eds-chip-on-surface-hover: var(--eds-c-foreground-disabled);\n --_eds-chip-surface-active: var(--eds-c-surface-disabled-subtle);\n --_eds-chip-on-surface-active: var(--eds-c-foreground-disabled);\n\n cursor: default;\n}\n",
|
|
28647
28643
|
"styleUrl": "./eds-chip.scss"
|
|
28648
28644
|
}
|
|
28649
28645
|
],
|
|
@@ -40909,7 +40905,7 @@
|
|
|
40909
40905
|
"assetsDirs": [],
|
|
40910
40906
|
"styleUrlsData": [
|
|
40911
40907
|
{
|
|
40912
|
-
"data": "@use '../base' as base;\n\n:host {\n --_eds-icon-size: var(--_icon-size, var(--eds-is-m)); // inherited from parent\n // --_eds-icon-on-surface lets a parent (e.g. eds-badge) override the icon color;\n // when unset, each color variant supplies its own token below.\n --_eds-icon-color: var(--_eds-icon-on-surface, var(--_on-surface, var(--eds-c-foreground))); // inherited from parent\n\n display: inline-flex;\n position: relative;\n\n .eds-icon-svg {\n height: var(--_eds-icon-size);\n width: var(--_eds-icon-size);\n fill: var(--_eds-icon-color);\n color: var(--_eds-icon-color);\n }\n\n // Multi-color sprites (flags) — disable fill inheritance so path fill attributes render\n .eds-icon-svg.eds-icon-set-flags-1x1,\n .eds-icon-svg.eds-icon-set-flags-4x3 {\n fill: none;\n }\n}\n\n// SIZE VARIANTS\n// -------------\n\n// An inherited `--_icon-size` (set by a composing parent such as eds-avatar)
|
|
40908
|
+
"data": "@use '../base' as base;\n\n:host {\n --_eds-icon-size: var(--_icon-size, var(--eds-is-m)); // inherited from parent\n // --_eds-icon-on-surface lets a parent (e.g. eds-badge) override the icon color;\n // when unset, each color variant supplies its own token below.\n --_eds-icon-color: var(--_eds-icon-on-surface, var(--_on-surface, var(--eds-c-foreground))); // inherited from parent\n\n display: inline-flex;\n position: relative;\n\n .eds-icon-svg {\n height: var(--_eds-icon-size);\n width: var(--_eds-icon-size);\n fill: var(--_eds-icon-color);\n color: var(--_eds-icon-color);\n }\n\n // Multi-color sprites (flags) — disable fill inheritance so path fill attributes render\n .eds-icon-svg.eds-icon-set-flags-1x1,\n .eds-icon-svg.eds-icon-set-flags-4x3 {\n fill: none;\n }\n}\n\n// SIZE VARIANTS\n// -------------\n\n// An explicit `size` attribute on the icon is authoritative and resolves directly to\n// its icon-size token. The inherited `--_icon-size` hint (set by a composing parent\n// such as eds-avatar) only drives the base `:host` default above — it must NOT override\n// an explicit `size`, otherwise a parent's inherited value would silently win over the\n// size a consumer passes (e.g. eds-loading-indicator's spinner).\n:host([size=\"2xs\"]) { --_eds-icon-size: var(--eds-is-2xs); }\n:host([size=\"xs\"]) { --_eds-icon-size: var(--eds-is-xs); }\n:host([size=\"s\"]) { --_eds-icon-size: var(--eds-is-s); }\n:host([size=\"m\"]) { --_eds-icon-size: var(--eds-is-m); }\n:host([size=\"l\"]) { --_eds-icon-size: var(--eds-is-l); }\n:host([size=\"xl\"]) { --_eds-icon-size: var(--eds-is-xl); }\n:host([size=\"2xl\"]) { --_eds-icon-size: var(--eds-is-2xl); }\n:host([size=\"3xl\"]) { --_eds-icon-size: var(--eds-is-3xl); }\n:host([size=\"4xl\"]) { --_eds-icon-size: var(--eds-is-4xl); }\n\n// COLOR VARIANTS\n// --------------\n\n:host([color=\"neutral\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground)); }\n:host([color=\"neutral-subtle\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-subtle)); }\n:host([color=\"neutral-subtler\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-subtler)); }\n:host([color=\"primary\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-primary)); }\n:host([color=\"highlight\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-highlight)); }\n:host([color=\"info\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-info)); }\n:host([color=\"success\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-success)); }\n:host([color=\"warning\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-warning)); }\n:host([color=\"critical\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-critical)); }\n:host([color=\"brand\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-on-surface-brand)); }\n:host([color=\"disabled\"]) { --_eds-icon-color: var(--_eds-icon-on-surface, var(--eds-c-foreground-disabled)); }\n\n// ROUNDED\n// -------\n\n:host([rounded]) {\n border-radius: 50%;\n overflow: hidden;\n\n .eds-icon-svg {\n border-radius: 50%;\n }\n}\n\n// LOADING SPINNER — inherits icon size and color\n// ----------------------------------------------\n\n:host([loading]) {\n // Spinner ring thickness scales with the icon size so every size reads correctly\n // (a fixed border would nearly fill the smallest sizes and look too thin on large ones).\n --_eds-icon-spinner-border: max(2px, calc(var(--_eds-icon-size) * 0.125));\n\n .eds-icon-spinner {\n display: inline-block;\n box-sizing: border-box;\n width: var(--_eds-icon-size);\n height: var(--_eds-icon-size);\n border: var(--_eds-icon-spinner-border) solid var(--eds-c-border-neutral-subtle);\n border-top-color: var(--_eds-icon-color);\n border-radius: 50%;\n animation: eds-icon-spin 0.6s linear infinite;\n }\n}\n\n@keyframes eds-icon-spin {\n to {\n transform: rotate(360deg);\n }\n}\n",
|
|
40913
40909
|
"styleUrl": "./eds-icon.scss"
|
|
40914
40910
|
}
|
|
40915
40911
|
],
|
|
@@ -47122,7 +47118,7 @@
|
|
|
47122
47118
|
},
|
|
47123
47119
|
{
|
|
47124
47120
|
"name": "EdsLabel",
|
|
47125
|
-
"id": "component-EdsLabel-
|
|
47121
|
+
"id": "component-EdsLabel-6a7892f50e0f744d2ac74c39cc66fcd29647088f763f2fc971778ecfee99441b09bba46f0d098031acd473b9f8d7c6ca501b7c3817903e6f657a38d12e15542a",
|
|
47126
47122
|
"file": "packages/eds/eds-label/eds-label.ts",
|
|
47127
47123
|
"changeDetection": "ChangeDetectionStrategy.OnPush",
|
|
47128
47124
|
"encapsulation": [],
|
|
@@ -47140,18 +47136,43 @@
|
|
|
47140
47136
|
"templateUrl": [],
|
|
47141
47137
|
"templateVariables": [],
|
|
47142
47138
|
"viewProviders": [],
|
|
47143
|
-
"hostDirectives": [
|
|
47139
|
+
"hostDirectives": [],
|
|
47140
|
+
"inputsClass": [
|
|
47144
47141
|
{
|
|
47145
|
-
"name": "
|
|
47146
|
-
"
|
|
47147
|
-
|
|
47148
|
-
|
|
47149
|
-
|
|
47142
|
+
"name": "color",
|
|
47143
|
+
"coverageIgnore": false,
|
|
47144
|
+
"defaultValue": "'neutral'",
|
|
47145
|
+
"deprecated": false,
|
|
47146
|
+
"deprecationMessage": "",
|
|
47147
|
+
"type": "EdsLabelColor",
|
|
47148
|
+
"indexKey": "",
|
|
47149
|
+
"optional": false,
|
|
47150
|
+
"description": "<p>Semantic color of the label.\n'neutral'</p>\n",
|
|
47151
|
+
"line": 43,
|
|
47152
|
+
"rawdescription": "\n\nSemantic color of the label.\n'neutral'\n",
|
|
47153
|
+
"jsdoctags": [
|
|
47154
|
+
{
|
|
47155
|
+
"pos": 1208,
|
|
47156
|
+
"end": 1232,
|
|
47157
|
+
"kind": 328,
|
|
47158
|
+
"id": 0,
|
|
47159
|
+
"flags": 16842752,
|
|
47160
|
+
"modifierFlagsCache": 0,
|
|
47161
|
+
"transformFlags": 0,
|
|
47162
|
+
"tagName": {
|
|
47163
|
+
"pos": 1209,
|
|
47164
|
+
"end": 1216,
|
|
47165
|
+
"kind": 80,
|
|
47166
|
+
"id": 0,
|
|
47167
|
+
"flags": 16842752,
|
|
47168
|
+
"transformFlags": 0,
|
|
47169
|
+
"escapedText": "default"
|
|
47170
|
+
},
|
|
47171
|
+
"comment": "<p>'neutral'</p>\n"
|
|
47172
|
+
}
|
|
47150
47173
|
],
|
|
47151
|
-
"
|
|
47152
|
-
}
|
|
47153
|
-
],
|
|
47154
|
-
"inputsClass": [
|
|
47174
|
+
"required": false
|
|
47175
|
+
},
|
|
47155
47176
|
{
|
|
47156
47177
|
"name": "edsRequired",
|
|
47157
47178
|
"coverageIgnore": false,
|
|
@@ -47162,20 +47183,20 @@
|
|
|
47162
47183
|
"indexKey": "",
|
|
47163
47184
|
"optional": false,
|
|
47164
47185
|
"description": "<p>Marks the label as required (appends a red asterisk).\nfalse</p>\n",
|
|
47165
|
-
"line":
|
|
47186
|
+
"line": 49,
|
|
47166
47187
|
"rawdescription": "\n\nMarks the label as required (appends a red asterisk).\nfalse\n",
|
|
47167
47188
|
"jsdoctags": [
|
|
47168
47189
|
{
|
|
47169
|
-
"pos":
|
|
47170
|
-
"end":
|
|
47190
|
+
"pos": 1357,
|
|
47191
|
+
"end": 1377,
|
|
47171
47192
|
"kind": 328,
|
|
47172
47193
|
"id": 0,
|
|
47173
47194
|
"flags": 16842752,
|
|
47174
47195
|
"modifierFlagsCache": 0,
|
|
47175
47196
|
"transformFlags": 0,
|
|
47176
47197
|
"tagName": {
|
|
47177
|
-
"pos":
|
|
47178
|
-
"end":
|
|
47198
|
+
"pos": 1358,
|
|
47199
|
+
"end": 1365,
|
|
47179
47200
|
"kind": 80,
|
|
47180
47201
|
"id": 0,
|
|
47181
47202
|
"flags": 16842752,
|
|
@@ -47189,37 +47210,7 @@
|
|
|
47189
47210
|
}
|
|
47190
47211
|
],
|
|
47191
47212
|
"outputsClass": [],
|
|
47192
|
-
"propertiesClass": [
|
|
47193
|
-
{
|
|
47194
|
-
"name": "colorDirective",
|
|
47195
|
-
"coverageIgnore": false,
|
|
47196
|
-
"defaultValue": "inject(EdsColorDirective)",
|
|
47197
|
-
"deprecated": false,
|
|
47198
|
-
"deprecationMessage": "",
|
|
47199
|
-
"type": "unknown",
|
|
47200
|
-
"indexKey": "",
|
|
47201
|
-
"optional": false,
|
|
47202
|
-
"description": "",
|
|
47203
|
-
"line": 39,
|
|
47204
|
-
"rawdescription": "\n",
|
|
47205
|
-
"modifierKind": [
|
|
47206
|
-
124
|
|
47207
|
-
]
|
|
47208
|
-
},
|
|
47209
|
-
{
|
|
47210
|
-
"name": "hostClasses",
|
|
47211
|
-
"coverageIgnore": false,
|
|
47212
|
-
"defaultValue": "computed(() => {\n const colorClass = this.colorDirective.getCssClass('eds-label');\n return [\n 'eds-label',\n colorClass || 'eds-label--neutral',\n this.edsRequired() ? 'eds-label--required' : '',\n ]\n .join(' ')\n .trim();\n })",
|
|
47213
|
-
"deprecated": false,
|
|
47214
|
-
"deprecationMessage": "",
|
|
47215
|
-
"type": "unknown",
|
|
47216
|
-
"indexKey": "",
|
|
47217
|
-
"optional": false,
|
|
47218
|
-
"description": "<p>Computed host CSS classes based on current state.</p>\n",
|
|
47219
|
-
"line": 44,
|
|
47220
|
-
"rawdescription": "\n\nComputed host CSS classes based on current state.\n"
|
|
47221
|
-
}
|
|
47222
|
-
],
|
|
47213
|
+
"propertiesClass": [],
|
|
47223
47214
|
"methodsClass": [],
|
|
47224
47215
|
"coverageIgnore": false,
|
|
47225
47216
|
"deprecated": false,
|
|
@@ -47228,29 +47219,35 @@
|
|
|
47228
47219
|
"hostListeners": [],
|
|
47229
47220
|
"standalone": false,
|
|
47230
47221
|
"imports": [],
|
|
47231
|
-
"description": "",
|
|
47232
|
-
"rawdescription": "\n",
|
|
47222
|
+
"description": "<p>A form label applied to <code>label</code>, <code>span</code>, or <code>div</code> elements via the <code>edsLabel</code> attribute.\nSupports a semantic color (<code>neutral</code> default, <code>critical</code> for errors) reflected as a host\nattribute, plus a required marker.</p>\n<p>Usage:</p>\n<b>Example :</b><div><pre class=\"line-numbers\"><code class=\"language-html\"><label edsLabel for="name">Name</label>\n<label edsLabel edsRequired for="email">Email</label>\n<span edsLabel color="critical">This field is required</span></code></pre></div>",
|
|
47223
|
+
"rawdescription": "\n\nA form label applied to `label`, `span`, or `div` elements via the `edsLabel` attribute.\nSupports a semantic color (`neutral` default, `critical` for errors) reflected as a host\nattribute, plus a required marker.\n\nUsage:\n```html\n<label edsLabel for=\"name\">Name</label>\n<label edsLabel edsRequired for=\"email\">Email</label>\n<span edsLabel color=\"critical\">This field is required</span>\n```\n",
|
|
47233
47224
|
"type": "component",
|
|
47234
|
-
"sourceCode": "import {\n Component,\n ChangeDetectionStrategy,\n input,\n
|
|
47225
|
+
"sourceCode": "import {\n Component,\n ChangeDetectionStrategy,\n input,\n booleanAttribute,\n} from '@angular/core';\n\n/**\n * Local narrowed color union — the label's color contract.\n * `neutral` is the default; `critical` colors the label for error context.\n */\nexport type EdsLabelColor = 'neutral' | 'critical';\n\n/**\n * A form label applied to `label`, `span`, or `div` elements via the `edsLabel` attribute.\n * Supports a semantic color (`neutral` default, `critical` for errors) reflected as a host\n * attribute, plus a required marker.\n *\n * Usage:\n * ```html\n * <label edsLabel for=\"name\">Name</label>\n * <label edsLabel edsRequired for=\"email\">Email</label>\n * <span edsLabel color=\"critical\">This field is required</span>\n * ```\n */\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'label[edsLabel], span[edsLabel], div[edsLabel]',\n template: '<ng-content/>',\n styleUrl: './eds-label.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'eds-label',\n '[attr.color]': 'color()',\n '[attr.required]': 'edsRequired() || null',\n },\n})\nexport class EdsLabel {\n /**\n * Semantic color of the label.\n * @default 'neutral'\n */\n color = input<EdsLabelColor>('neutral');\n\n /**\n * Marks the label as required (appends a red asterisk).\n * @default false\n */\n edsRequired = input(false, { transform: booleanAttribute });\n}\n",
|
|
47235
47226
|
"styleUrl": "./eds-label.scss",
|
|
47236
47227
|
"assetsDirs": [],
|
|
47237
47228
|
"styleUrlsData": [
|
|
47238
47229
|
{
|
|
47239
|
-
"data": "@use '../base' as base;\n\n
|
|
47230
|
+
"data": "@use '../base' as base;\n\n:host {\n display: inline-block;\n font: var(--eds-f-label-m-semibold);\n color: var(--eds-c-foreground);\n}\n\n// COLOR VARIANTS\n// --------------\n\n:host([color=\"neutral\"]) { color: var(--eds-c-foreground); }\n:host([color=\"critical\"]) { color: var(--eds-c-foreground-critical); }\n\n// REQUIRED MARKER\n// ---------------\n\n:host([required])::after {\n color: var(--eds-c-foreground-critical);\n content: ' *';\n font: var(--eds-f-label-m-semibold);\n}\n",
|
|
47240
47231
|
"styleUrl": "./eds-label.scss"
|
|
47241
47232
|
}
|
|
47242
47233
|
],
|
|
47243
47234
|
"stylesData": "",
|
|
47235
|
+
"jsdoctags": [
|
|
47236
|
+
{
|
|
47237
|
+
"pos": 308,
|
|
47238
|
+
"end": 733,
|
|
47239
|
+
"kind": 321,
|
|
47240
|
+
"id": 0,
|
|
47241
|
+
"flags": 16777216,
|
|
47242
|
+
"modifierFlagsCache": 0,
|
|
47243
|
+
"transformFlags": 0,
|
|
47244
|
+
"comment": "A form label applied to `label`, `span`, or `div` elements via the `edsLabel` attribute.\nSupports a semantic color (`neutral` default, `critical` for errors) reflected as a host\nattribute, plus a required marker.\n\nUsage:\n```html\n<label edsLabel for=\"name\">Name</label>\n<label edsLabel edsRequired for=\"email\">Email</label>\n<span edsLabel color=\"critical\">This field is required</span>\n```"
|
|
47245
|
+
}
|
|
47246
|
+
],
|
|
47244
47247
|
"extends": [],
|
|
47245
47248
|
"relationships": {
|
|
47246
47249
|
"incoming": [],
|
|
47247
|
-
"outgoing": [
|
|
47248
|
-
{
|
|
47249
|
-
"name": "EdsColorDirective",
|
|
47250
|
-
"type": "directive",
|
|
47251
|
-
"description": "Signal-based color variant directive. Provides both a string-based `edsColorVariant` input and boolean shorthand inputs (`edsNeutral`, `e..."
|
|
47252
|
-
}
|
|
47253
|
-
]
|
|
47250
|
+
"outgoing": []
|
|
47254
47251
|
}
|
|
47255
47252
|
},
|
|
47256
47253
|
{
|
|
@@ -47707,7 +47704,7 @@
|
|
|
47707
47704
|
"assetsDirs": [],
|
|
47708
47705
|
"styleUrlsData": [
|
|
47709
47706
|
{
|
|
47710
|
-
"data": "@use '../base' as base;\n\n.eui-21 {\n :host {\n display: inline-flex;\n position: relative;\n\n .language-toggle {\n display: flex;\n align-items: center;\n gap: var(--eds-sp-3xs);\n padding: var(--eds-sp-3xs) var(--eds-sp-xs);\n border: var(--eds-bw-xs) solid var(--eds-c-border-neutral-subtle);\n border-radius: var(--eds-br-s);\n background: none;\n cursor: pointer;\n font: var(--eds-f-label-m-semibold);\n color: inherit;\n transition: background 0.15s ease, border-color 0.15s ease;\n\n @include base.eds-focus-visible-ring();\n\n &:hover {\n background: var(--eds-c-surface-elevation-sunken);\n border-color: var(--eds-c-border-neutral);\n }\n\n &--icon-layout {\n border: none;\n padding: var(--eds-sp-3xs) var(--eds-sp-2xs);\n gap: var(--eds-sp-3xs);\n border-radius: var(--eds-br-s);\n\n &:hover {\n background: var(--eds-c-surface-elevation-sunken);\n }\n }\n }\n\n .language-code {\n font: var(--eds-f-label-m-semibold);\n }\n\n .chevron {\n font-size: var(--eds-f-s-xs);\n color: var(--eds-c-foreground-subtler);\n }\n\n .language-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 200;\n margin-top: var(--eds-sp-3xs);\n min-width: 160px;\n list-style: none;\n padding: var(--eds-sp-3xs) var(--eds-sp-none);\n background: var(--eds-c-surface-elevation-overlay);\n border: var(--eds-bw-xs) solid var(--eds-c-border-divider);\n border-radius: var(--eds-br-m);\n box-shadow: var(--eds-sh-3);\n\n &--align-right {\n left: auto;\n right: 0;\n }\n }\n\n .language-option {\n display: flex;\n align-items: center;\n gap: var(--eds-sp-xs);\n padding: var(--eds-sp-xs) var(--eds-sp-m);\n cursor: pointer;\n font: var(--eds-f-paragraph-s);\n color: var(--eds-c-foreground);\n transition: background 0.15s ease;\n outline: none;\n\n &:hover,\n &.focused {\n background: var(--eds-c-surface-elevation-sunken);\n }\n\n &.focused {\n outline: var(--eds-bw-xs) solid var(--eds-c-border-primary);\n outline-offset: -1px;\n }\n\n &.selected {\n color: var(--eds-c-foreground-primary);\n font-weight: var(--eds-f-w-semibold);\n }\n }\n\n .option-code {\n font: var(--eds-f-label-m-semibold);\n min-width: 2rem;\n }\n\n .option-label {\n flex: 1;\n }\n }\n\n // COLOR VARIANTS\n :host.eds-language-selector--brand {\n .language-toggle {\n color: var(--eds-c-on-surface-brand);\n border-color: transparent;\n\n &:hover {\n background: var(--eds-c-surface-brand--hover);\n color: var(--eds-c-on-surface-brand--hover);\n }\n\n &--icon-layout:hover {\n background: var(--eds-c-surface-brand--hover);\n color: var(--eds-c-on-surface-brand--hover);\n }\n\n ::ng-deep
|
|
47707
|
+
"data": "@use '../base' as base;\n\n.eui-21 {\n :host {\n display: inline-flex;\n position: relative;\n\n .language-toggle {\n display: flex;\n align-items: center;\n gap: var(--eds-sp-3xs);\n padding: var(--eds-sp-3xs) var(--eds-sp-xs);\n border: var(--eds-bw-xs) solid var(--eds-c-border-neutral-subtle);\n border-radius: var(--eds-br-s);\n background: none;\n cursor: pointer;\n font: var(--eds-f-label-m-semibold);\n color: inherit;\n transition: background 0.15s ease, border-color 0.15s ease;\n\n @include base.eds-focus-visible-ring();\n\n &:hover {\n background: var(--eds-c-surface-elevation-sunken);\n border-color: var(--eds-c-border-neutral);\n }\n\n &--icon-layout {\n border: none;\n padding: var(--eds-sp-3xs) var(--eds-sp-2xs);\n gap: var(--eds-sp-3xs);\n border-radius: var(--eds-br-s);\n\n &:hover {\n background: var(--eds-c-surface-elevation-sunken);\n }\n }\n }\n\n .language-code {\n font: var(--eds-f-label-m-semibold);\n }\n\n .chevron {\n font-size: var(--eds-f-s-xs);\n color: var(--eds-c-foreground-subtler);\n }\n\n .language-dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 200;\n margin-top: var(--eds-sp-3xs);\n min-width: 160px;\n list-style: none;\n padding: var(--eds-sp-3xs) var(--eds-sp-none);\n background: var(--eds-c-surface-elevation-overlay);\n border: var(--eds-bw-xs) solid var(--eds-c-border-divider);\n border-radius: var(--eds-br-m);\n box-shadow: var(--eds-sh-3);\n\n &--align-right {\n left: auto;\n right: 0;\n }\n }\n\n .language-option {\n display: flex;\n align-items: center;\n gap: var(--eds-sp-xs);\n padding: var(--eds-sp-xs) var(--eds-sp-m);\n cursor: pointer;\n font: var(--eds-f-paragraph-s);\n color: var(--eds-c-foreground);\n transition: background 0.15s ease;\n outline: none;\n\n &:hover,\n &.focused {\n background: var(--eds-c-surface-elevation-sunken);\n }\n\n &.focused {\n outline: var(--eds-bw-xs) solid var(--eds-c-border-primary);\n outline-offset: -1px;\n }\n\n &.selected {\n color: var(--eds-c-foreground-primary);\n font-weight: var(--eds-f-w-semibold);\n }\n }\n\n .option-code {\n font: var(--eds-f-label-m-semibold);\n min-width: 2rem;\n }\n\n .option-label {\n flex: 1;\n }\n }\n\n // COLOR VARIANTS\n :host.eds-language-selector--brand {\n .language-toggle {\n color: var(--eds-c-on-surface-brand);\n border-color: transparent;\n\n &:hover {\n background: var(--eds-c-surface-brand--hover);\n color: var(--eds-c-on-surface-brand--hover);\n }\n\n &--icon-layout:hover {\n background: var(--eds-c-surface-brand--hover);\n color: var(--eds-c-on-surface-brand--hover);\n }\n\n ::ng-deep eds-icon {\n // --_eds-icon-on-surface is the icon's top-priority color override; it is\n // honored even by the icon's own color=\"…\" variant branches, whereas\n // --_on-surface is only a lower-priority fallback the variant branches ignore.\n --_eds-icon-on-surface: var(--eds-c-on-surface-brand);\n }\n }\n\n .chevron {\n color: var(--eds-c-on-surface-brand);\n }\n }\n}\n",
|
|
47711
47708
|
"styleUrl": "./eds-language-selector.scss"
|
|
47712
47709
|
}
|
|
47713
47710
|
],
|
|
@@ -52285,7 +52282,7 @@
|
|
|
52285
52282
|
},
|
|
52286
52283
|
{
|
|
52287
52284
|
"name": "EdsOverlay",
|
|
52288
|
-
"id": "component-EdsOverlay-
|
|
52285
|
+
"id": "component-EdsOverlay-1b392b510b939cf5c652fd2b23120e50f0de213ec7253738e3cf53e8dbdfc7c6bd815cf5e1569960bebd518b0fe223e83c85be3b4c4c3c4e1a4a7386cb411815",
|
|
52289
52286
|
"file": "packages/eds/eds-overlay/eds-overlay.ts",
|
|
52290
52287
|
"changeDetection": "ChangeDetectionStrategy.OnPush",
|
|
52291
52288
|
"encapsulation": [],
|
|
@@ -52320,6 +52317,20 @@
|
|
|
52320
52317
|
"rawdescription": "\nFixed width value (overrides responsive width).",
|
|
52321
52318
|
"required": false
|
|
52322
52319
|
},
|
|
52320
|
+
{
|
|
52321
|
+
"name": "hasBackdrop",
|
|
52322
|
+
"coverageIgnore": false,
|
|
52323
|
+
"defaultValue": "false",
|
|
52324
|
+
"deprecated": false,
|
|
52325
|
+
"deprecationMessage": "",
|
|
52326
|
+
"type": "boolean",
|
|
52327
|
+
"indexKey": "",
|
|
52328
|
+
"optional": false,
|
|
52329
|
+
"description": "<p>Shows a dimmed backdrop behind the overlay panel. Off by default.</p>\n",
|
|
52330
|
+
"line": 36,
|
|
52331
|
+
"rawdescription": "\nShows a dimmed backdrop behind the overlay panel. Off by default.",
|
|
52332
|
+
"required": false
|
|
52333
|
+
},
|
|
52323
52334
|
{
|
|
52324
52335
|
"name": "hasClosedOnClickOutside",
|
|
52325
52336
|
"coverageIgnore": false,
|
|
@@ -52358,7 +52369,7 @@
|
|
|
52358
52369
|
"indexKey": "",
|
|
52359
52370
|
"optional": false,
|
|
52360
52371
|
"description": "<p>Applies highlighted visual styling.</p>\n",
|
|
52361
|
-
"line":
|
|
52372
|
+
"line": 39,
|
|
52362
52373
|
"rawdescription": "\nApplies highlighted visual styling.",
|
|
52363
52374
|
"required": false
|
|
52364
52375
|
},
|
|
@@ -52401,7 +52412,7 @@
|
|
|
52401
52412
|
"indexKey": "",
|
|
52402
52413
|
"optional": false,
|
|
52403
52414
|
"description": "<p>Emitted when the overlay's active state changes (typically false for close requests).</p>\n",
|
|
52404
|
-
"line":
|
|
52415
|
+
"line": 42,
|
|
52405
52416
|
"rawdescription": "\nEmitted when the overlay's active state changes (typically false for close requests).",
|
|
52406
52417
|
"required": false
|
|
52407
52418
|
}
|
|
@@ -52417,7 +52428,7 @@
|
|
|
52417
52428
|
"indexKey": "",
|
|
52418
52429
|
"optional": false,
|
|
52419
52430
|
"description": "",
|
|
52420
|
-
"line":
|
|
52431
|
+
"line": 44,
|
|
52421
52432
|
"rawdescription": "\n"
|
|
52422
52433
|
}
|
|
52423
52434
|
],
|
|
@@ -52429,7 +52440,7 @@
|
|
|
52429
52440
|
"optional": false,
|
|
52430
52441
|
"returnType": "void",
|
|
52431
52442
|
"typeParameters": [],
|
|
52432
|
-
"line":
|
|
52443
|
+
"line": 61,
|
|
52433
52444
|
"deprecated": false,
|
|
52434
52445
|
"deprecationMessage": "",
|
|
52435
52446
|
"rawdescription": "\n",
|
|
@@ -52442,7 +52453,7 @@
|
|
|
52442
52453
|
"optional": false,
|
|
52443
52454
|
"returnType": "void",
|
|
52444
52455
|
"typeParameters": [],
|
|
52445
|
-
"line":
|
|
52456
|
+
"line": 55,
|
|
52446
52457
|
"deprecated": false,
|
|
52447
52458
|
"deprecationMessage": "",
|
|
52448
52459
|
"rawdescription": "\n",
|
|
@@ -52470,7 +52481,7 @@
|
|
|
52470
52481
|
"argsDecorator": [],
|
|
52471
52482
|
"deprecated": false,
|
|
52472
52483
|
"deprecationMessage": "",
|
|
52473
|
-
"line":
|
|
52484
|
+
"line": 55
|
|
52474
52485
|
}
|
|
52475
52486
|
],
|
|
52476
52487
|
"standalone": false,
|
|
@@ -52483,12 +52494,12 @@
|
|
|
52483
52494
|
"description": "",
|
|
52484
52495
|
"rawdescription": "\n",
|
|
52485
52496
|
"type": "component",
|
|
52486
|
-
"sourceCode": "import { Component, ChangeDetectionStrategy, input, output, computed, booleanAttribute, HostListener } from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\n\nexport type EdsOverlayPosition = 'right' | 'left' | 'top' | 'bottom';\n\n@Component({\n selector: 'eds-overlay',\n templateUrl: './eds-overlay.html',\n styleUrl: './eds-overlay.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [A11yModule],\n host: {\n '[class]': 'hostClasses()',\n role: 'dialog',\n '[attr.aria-hidden]': '!isActive()',\n '[attr.inert]': '!isActive() ? true : null',\n },\n})\nexport class EdsOverlay {\n /** Controls the visibility and active state of the overlay. */\n isActive = input(false, { transform: booleanAttribute });\n\n /** Screen position where the overlay appears ('right', 'left', 'top', 'bottom'). */\n position = input<EdsOverlayPosition>('right');\n\n /** Responsive width variant for the overlay panel (e.g. 'small', 'medium', 'large'). */\n width = input<string>('');\n\n /** Fixed width value (overrides responsive width). */\n fixedWidth = input<string>('');\n\n /** Enables automatic closing when clicking outside the overlay. */\n hasClosedOnClickOutside = input(false, { transform: booleanAttribute });\n\n /** Applies highlighted visual styling. */\n isHighlighted = input(false, { transform: booleanAttribute });\n\n /** Emitted when the overlay's active state changes (typically false for close requests). */\n activeState = output<boolean>();\n\n hostClasses = computed(() => {\n return [\n 'eds-overlay',\n `eds-overlay--${this.position()}`,\n this.isActive() ? 'eds-overlay--active' : '',\n this.width() ? `eds-overlay--width-${this.width()}` : '',\n this.isHighlighted() ? 'eds-overlay--highlighted' : '',\n ].join(' ').trim();\n });\n\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.isActive()) {\n this.activeState.emit(false);\n }\n }\n\n onBackdropClick(): void {\n if (this.hasClosedOnClickOutside()) {\n this.activeState.emit(false);\n }\n }\n}\n",
|
|
52497
|
+
"sourceCode": "import { Component, ChangeDetectionStrategy, input, output, computed, booleanAttribute, HostListener } from '@angular/core';\nimport { A11yModule } from '@angular/cdk/a11y';\n\nexport type EdsOverlayPosition = 'right' | 'left' | 'top' | 'bottom';\n\n@Component({\n selector: 'eds-overlay',\n templateUrl: './eds-overlay.html',\n styleUrl: './eds-overlay.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [A11yModule],\n host: {\n '[class]': 'hostClasses()',\n role: 'dialog',\n '[attr.aria-hidden]': '!isActive()',\n '[attr.inert]': '!isActive() ? true : null',\n },\n})\nexport class EdsOverlay {\n /** Controls the visibility and active state of the overlay. */\n isActive = input(false, { transform: booleanAttribute });\n\n /** Screen position where the overlay appears ('right', 'left', 'top', 'bottom'). */\n position = input<EdsOverlayPosition>('right');\n\n /** Responsive width variant for the overlay panel (e.g. 'small', 'medium', 'large'). */\n width = input<string>('');\n\n /** Fixed width value (overrides responsive width). */\n fixedWidth = input<string>('');\n\n /** Enables automatic closing when clicking outside the overlay. */\n hasClosedOnClickOutside = input(false, { transform: booleanAttribute });\n\n /** Shows a dimmed backdrop behind the overlay panel. Off by default. */\n hasBackdrop = input(false, { transform: booleanAttribute });\n\n /** Applies highlighted visual styling. */\n isHighlighted = input(false, { transform: booleanAttribute });\n\n /** Emitted when the overlay's active state changes (typically false for close requests). */\n activeState = output<boolean>();\n\n hostClasses = computed(() => {\n return [\n 'eds-overlay',\n `eds-overlay--${this.position()}`,\n this.isActive() ? 'eds-overlay--active' : '',\n this.width() ? `eds-overlay--width-${this.width()}` : '',\n this.isHighlighted() ? 'eds-overlay--highlighted' : '',\n ].join(' ').trim();\n });\n\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.isActive()) {\n this.activeState.emit(false);\n }\n }\n\n onBackdropClick(): void {\n if (this.hasClosedOnClickOutside()) {\n this.activeState.emit(false);\n }\n }\n}\n",
|
|
52487
52498
|
"styleUrl": "./eds-overlay.scss",
|
|
52488
52499
|
"assetsDirs": [],
|
|
52489
52500
|
"styleUrlsData": [
|
|
52490
52501
|
{
|
|
52491
|
-
"data": "@use '../base' as base;\n\n.eui-21 {\n :host {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1000;\n pointer-events: none;\n display: flex;\n\n &.eds-overlay--active {\n pointer-events: auto;\n }\n\n &.eds-overlay--right {\n justify-content: flex-end;\n }\n\n &.eds-overlay--left {\n justify-content: flex-start;\n }\n\n &.eds-overlay--top {\n align-items: flex-start;\n\n .eds-overlay-panel {\n width: 100%;\n max-height: 80vh;\n transform: translateY(-100%);\n }\n\n &.eds-overlay--active .eds-overlay-panel {\n transform: translateY(0);\n }\n }\n\n &.eds-overlay--bottom {\n align-items: flex-end;\n\n .eds-overlay-panel {\n width: 100%;\n max-height: 80vh;\n transform: translateY(100%);\n }\n\n &.eds-overlay--active .eds-overlay-panel {\n transform: translateY(0);\n }\n }\n\n &:not(.eds-overlay--active) {\n visibility: hidden;\n\n .eds-overlay-panel {\n transform: translateX(100%);\n }\n\n &.eds-overlay--left .eds-overlay-panel {\n transform: translateX(-100%);\n }\n }\n\n &.eds-overlay--highlighted .eds-overlay-panel {\n border-left: 3px solid var(--eds-c-border-primary);\n }\n\n .eds-overlay-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--eds-c-alpha-backdrop);\n }\n\n .eds-overlay-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n background: var(--eds-c-surface-elevation-overlay);\n box-shadow: var(--eds-sh-4);\n overflow: hidden;\n transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 400px;\n max-width: 100vw;\n }\n }\n\n // Width variants\n :host.eds-overlay--width-small .eds-overlay-panel {\n width: 320px;\n }\n\n :host.eds-overlay--width-medium .eds-overlay-panel {\n width: 480px;\n }\n\n :host.eds-overlay--width-large .eds-overlay-panel {\n width: 640px;\n }\n\n :host.eds-overlay--width-xlarge .eds-overlay-panel {\n width: 800px;\n }\n}\n",
|
|
52502
|
+
"data": "@use '../base' as base;\n\n.eui-21 {\n :host {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1000;\n pointer-events: none;\n display: flex;\n\n &.eds-overlay--active {\n pointer-events: auto;\n }\n\n &.eds-overlay--right {\n justify-content: flex-end;\n }\n\n &.eds-overlay--left {\n justify-content: flex-start;\n }\n\n &.eds-overlay--top {\n align-items: flex-start;\n\n .eds-overlay-panel {\n width: 100%;\n max-height: 80vh;\n transform: translateY(-100%);\n }\n\n &.eds-overlay--active .eds-overlay-panel {\n transform: translateY(0);\n }\n }\n\n &.eds-overlay--bottom {\n align-items: flex-end;\n\n .eds-overlay-panel {\n width: 100%;\n max-height: 80vh;\n transform: translateY(100%);\n }\n\n &.eds-overlay--active .eds-overlay-panel {\n transform: translateY(0);\n }\n }\n\n &:not(.eds-overlay--active) {\n visibility: hidden;\n\n .eds-overlay-panel {\n transform: translateX(100%);\n }\n\n &.eds-overlay--left .eds-overlay-panel {\n transform: translateX(-100%);\n }\n }\n\n &.eds-overlay--highlighted .eds-overlay-panel {\n border-left: 3px solid var(--eds-c-border-primary);\n }\n\n .eds-overlay-backdrop {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n // Transparent by default (used only as a click-catcher for hasClosedOnClickOutside);\n // dimmed only when the backdrop is explicitly requested via hasBackdrop.\n background: transparent;\n\n &.eds-overlay-backdrop--visible {\n background: var(--eds-c-alpha-backdrop);\n }\n }\n\n .eds-overlay-panel {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n background: var(--eds-c-surface-elevation-overlay);\n box-shadow: var(--eds-sh-4);\n overflow: hidden;\n transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n width: 400px;\n max-width: 100vw;\n }\n }\n\n // Width variants\n :host.eds-overlay--width-small .eds-overlay-panel {\n width: 320px;\n }\n\n :host.eds-overlay--width-medium .eds-overlay-panel {\n width: 480px;\n }\n\n :host.eds-overlay--width-large .eds-overlay-panel {\n width: 640px;\n }\n\n :host.eds-overlay--width-xlarge .eds-overlay-panel {\n width: 800px;\n }\n}\n",
|
|
52492
52503
|
"styleUrl": "./eds-overlay.scss"
|
|
52493
52504
|
}
|
|
52494
52505
|
],
|
|
@@ -52503,7 +52514,7 @@
|
|
|
52503
52514
|
}
|
|
52504
52515
|
]
|
|
52505
52516
|
},
|
|
52506
|
-
"templateData": "@if (isActive()) {\n <div
|
|
52517
|
+
"templateData": "@if (isActive() && (hasBackdrop() || hasClosedOnClickOutside())) {\n <div\n class=\"eds-overlay-backdrop\"\n [class.eds-overlay-backdrop--visible]=\"hasBackdrop()\"\n (click)=\"onBackdropClick()\"></div>\n}\n\n<div\n class=\"eds-overlay-panel\"\n [style.width]=\"fixedWidth() || null\"\n [cdkTrapFocus]=\"isActive()\"\n [cdkTrapFocusAutoCapture]=\"true\">\n <ng-content select=\"eds-overlay-header\"></ng-content>\n <ng-content select=\"eds-overlay-content\"></ng-content>\n <ng-content select=\"eds-overlay-footer\"></ng-content>\n <ng-content></ng-content>\n</div>\n"
|
|
52507
52518
|
},
|
|
52508
52519
|
{
|
|
52509
52520
|
"name": "EdsOverlayContent",
|
|
@@ -77076,7 +77087,7 @@
|
|
|
77076
77087
|
"ctype": "miscellaneous",
|
|
77077
77088
|
"subtype": "typealias",
|
|
77078
77089
|
"coverageIgnore": false,
|
|
77079
|
-
"rawtype": "\"neutral\" | \"info\" | \"success\" | \"warning\" | \"critical\"",
|
|
77090
|
+
"rawtype": "\"neutral\" | \"primary\" | \"info\" | \"success\" | \"warning\" | \"critical\"",
|
|
77080
77091
|
"file": "packages/eds/eds-chip/eds-chip.ts",
|
|
77081
77092
|
"deprecated": false,
|
|
77082
77093
|
"deprecationMessage": "",
|
|
@@ -77435,6 +77446,19 @@
|
|
|
77435
77446
|
"description": "<p>Local narrowed size union — the prompt input's size contract.</p>\n",
|
|
77436
77447
|
"kind": 193
|
|
77437
77448
|
},
|
|
77449
|
+
{
|
|
77450
|
+
"name": "EdsLabelColor",
|
|
77451
|
+
"ctype": "miscellaneous",
|
|
77452
|
+
"subtype": "typealias",
|
|
77453
|
+
"coverageIgnore": false,
|
|
77454
|
+
"rawtype": "\"neutral\" | \"critical\"",
|
|
77455
|
+
"file": "packages/eds/eds-label/eds-label.ts",
|
|
77456
|
+
"deprecated": false,
|
|
77457
|
+
"deprecationMessage": "",
|
|
77458
|
+
"rawdescription": "Local narrowed color union — the label's color contract.\n`neutral` is the default; `critical` colors the label for error context.",
|
|
77459
|
+
"description": "<p>Local narrowed color union — the label's color contract.\n<code>neutral</code> is the default; <code>critical</code> colors the label for error context.</p>\n",
|
|
77460
|
+
"kind": 193
|
|
77461
|
+
},
|
|
77438
77462
|
{
|
|
77439
77463
|
"name": "EdsListRole",
|
|
77440
77464
|
"ctype": "miscellaneous",
|
|
@@ -80658,7 +80682,7 @@
|
|
|
80658
80682
|
"ctype": "miscellaneous",
|
|
80659
80683
|
"subtype": "typealias",
|
|
80660
80684
|
"coverageIgnore": false,
|
|
80661
|
-
"rawtype": "\"neutral\" | \"info\" | \"success\" | \"warning\" | \"critical\"",
|
|
80685
|
+
"rawtype": "\"neutral\" | \"primary\" | \"info\" | \"success\" | \"warning\" | \"critical\"",
|
|
80662
80686
|
"file": "packages/eds/eds-chip/eds-chip.ts",
|
|
80663
80687
|
"deprecated": false,
|
|
80664
80688
|
"deprecationMessage": "",
|
|
@@ -81048,6 +81072,21 @@
|
|
|
81048
81072
|
"kind": 193
|
|
81049
81073
|
}
|
|
81050
81074
|
],
|
|
81075
|
+
"packages/eds/eds-label/eds-label.ts": [
|
|
81076
|
+
{
|
|
81077
|
+
"name": "EdsLabelColor",
|
|
81078
|
+
"ctype": "miscellaneous",
|
|
81079
|
+
"subtype": "typealias",
|
|
81080
|
+
"coverageIgnore": false,
|
|
81081
|
+
"rawtype": "\"neutral\" | \"critical\"",
|
|
81082
|
+
"file": "packages/eds/eds-label/eds-label.ts",
|
|
81083
|
+
"deprecated": false,
|
|
81084
|
+
"deprecationMessage": "",
|
|
81085
|
+
"rawdescription": "Local narrowed color union — the label's color contract.\n`neutral` is the default; `critical` colors the label for error context.",
|
|
81086
|
+
"description": "<p>Local narrowed color union — the label's color contract.\n<code>neutral</code> is the default; <code>critical</code> colors the label for error context.</p>\n",
|
|
81087
|
+
"kind": 193
|
|
81088
|
+
}
|
|
81089
|
+
],
|
|
81051
81090
|
"packages/eds/eds-list/eds-list.ts": [
|
|
81052
81091
|
{
|
|
81053
81092
|
"name": "EdsListRole",
|