@eui/ecl 22.0.0-alpha.31 → 22.0.0-alpha.33
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 +72 -0
- package/docs/components/EclSelectContainerComponent.html +4 -77
- package/docs/directives/EclSelectDirective.html +0 -122
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +40 -109
- package/docs/llms.txt +3 -3
- package/docs/miscellaneous/variables.html +20 -20
- package/docs/properties.html +1 -1
- package/fesm2022/eui-ecl-components-ecl-select.mjs +16 -22
- package/fesm2022/eui-ecl-components-ecl-select.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eui-ecl-components-ecl-select.d.ts +1 -1
- package/types/eui-ecl-components-ecl-select.d.ts.map +1 -1
|
@@ -31160,12 +31160,12 @@
|
|
|
31160
31160
|
},
|
|
31161
31161
|
{
|
|
31162
31162
|
"name": "EclSelectDirective",
|
|
31163
|
-
"id": "directive-EclSelectDirective-
|
|
31163
|
+
"id": "directive-EclSelectDirective-295863edc7c93bb82eb11114b171204469ad3c18ecb9782ed1eade871e3ba5a6fe8550d90f548da49ec399e2a55521e129202400aea1ff540902fbf6f7f674b6",
|
|
31164
31164
|
"file": "packages/ecl/components/ecl-select/ecl-select.directive.ts",
|
|
31165
31165
|
"type": "directive",
|
|
31166
31166
|
"description": "<p>Directive that enhances a native <select> element with ECL styling\nby wrapping it inside an {@link EclSelectContainerComponent}.</p>\n",
|
|
31167
31167
|
"rawdescription": "\n\nDirective that enhances a native <select> element with ECL styling\nby wrapping it inside an {@link EclSelectContainerComponent}.\n",
|
|
31168
|
-
"sourceCode": "import {\n AfterContentInit,\n ComponentRef,\n Directive,\n DoCheck,\n ElementRef,\n
|
|
31168
|
+
"sourceCode": "import {\n AfterContentInit,\n ComponentRef,\n Directive,\n DoCheck,\n ElementRef,\n Injector,\n OnDestroy,\n OnInit,\n PLATFORM_ID,\n Renderer2,\n ViewContainerRef,\n afterNextRender,\n booleanAttribute,\n inject,\n runInInjectionContext,\n input,\n} from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclSelectContainerComponent } from './ecl-select-container.component';\nimport { NgControl } from '@angular/forms';\nimport { isPlatformBrowser } from '@angular/common';\n\n/**\n * Directive that enhances a native <select> element with ECL styling\n * by wrapping it inside an {@link EclSelectContainerComponent}.\n */\n@Directive({\n selector: 'select[eclSelect]',\n host: {\n '[class]': 'cssClasses',\n '[attr.disabled]': 'isDisabled',\n '[class.ecl-select--invalid]': 'isInvalidState',\n },\n})\nexport class EclSelectDirective extends ECLBaseDirective\n implements OnInit, DoCheck, AfterContentInit, OnDestroy {\n\n /** Disables the select element. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** Marks the select element as invalid. */\n readonly isInvalid = input(false, { transform: booleanAttribute });\n\n /** Accessible label for the toggle button. */\n readonly toggleLabel = input<string>(undefined);\n\n /** Size of the select component. */\n readonly eclSize = input<'s' | 'm' | 'l'>('m');\n\n private ngControl = inject(NgControl, { optional: true, self: true });\n private el = inject(ElementRef<HTMLElement>);\n private injector = inject(Injector);\n private vcr = inject(ViewContainerRef);\n private renderer = inject(Renderer2);\n private platformId = inject(PLATFORM_ID);\n private isBrowser = isPlatformBrowser(this.platformId);\n private containerRef!: ComponentRef<EclSelectContainerComponent>;\n private readonly OPTGROUP_TAG_NAME = 'OPTGROUP';\n\n get cssClasses(): string {\n return [super.getCssClasses('ecl-select')].join(' ').trim();\n }\n\n get isDisabled(): boolean {\n return this.ngControl ? (this.ngControl.disabled || null) : (this.disabled() || null);\n }\n\n get isInvalidState(): boolean {\n return this.ngControl\n ? (this.ngControl.status === 'INVALID' && this.ngControl.touched)\n : this.isInvalid();\n }\n\n /**\n * Initializes the directive.\n * - Creates the {@link EclSelectContainerComponent} wrapper.\n * - Synchronizes initial input values.\n * - Moves the <select> element inside the wrapper.\n *\n * Skipped on the server to avoid SSR hydration mismatch (NG0500).\n */\n ngOnInit(): void {\n if (!this.isBrowser) return;\n\n this.containerRef = this.vcr.createComponent(EclSelectContainerComponent);\n this.syncContainerInputs();\n\n const containerEl = this.containerRef.location.nativeElement as any;\n const selectEl = this.el.nativeElement as any;\n\n if (selectEl.parentNode !== containerEl) {\n runInInjectionContext(this.injector, () => {\n afterNextRender(() => {\n if (selectEl.parentNode === containerEl) return;\n const firstChild = containerEl.firstChild ?? null;\n this.renderer.insertBefore(containerEl, selectEl, firstChild, true);\n });\n });\n }\n }\n\n /**\n * Processes any <optgroup> elements inside the <select> and\n * enhances them with appropriate accessibility attributes.\n */\n ngAfterContentInit(): void {\n const childrenElements: Element[] =\n Array.from(this.el.nativeElement.children);\n\n this.handleOptgroup(childrenElements);\n }\n\n /**\n * Keeps the wrapper component synchronized with the directive’s\n * current inputs and form control state.\n *\n * This is used to reflect runtime changes such as:\n * - Disabled state\n * - Validation status\n * - Size changes\n */\n ngDoCheck(): void {\n this.syncContainerInputs();\n }\n\n /**\n * Destroys the dynamically created wrapper component to prevent\n * memory leaks when the directive is removed.\n */\n ngOnDestroy(): void {\n this.containerRef?.destroy();\n }\n\n /**\n * Synchronizes directive inputs and control state\n * with the wrapper component instance.\n */\n private syncContainerInputs(): void {\n const c = this.containerRef?.instance;\n if (!c) return;\n\n c.eclSize.set(this.eclSize());\n c.disabled.set(this.isDisabled);\n c.toggleLabel.set(this.toggleLabel());\n c.isInvalid.set(this.isInvalidState);\n }\n\n /**\n * Enhances <optgroup> and <option> elements with\n * accessible aria-label attributes.\n *\n * - Applies the optgroup label to the group container.\n * - Combines option and group labels for child options.\n *\n * This improves screen reader support for grouped options.\n *\n * @param childrenElements List of direct children of the <select> element.\n */\n private handleOptgroup(childrenElements: Element[]): void {\n childrenElements\n .filter(el =>\n el.tagName === this.OPTGROUP_TAG_NAME &&\n el.getAttribute('label') !== null\n )\n .forEach(optGroup => {\n const optGroupLabel = optGroup.getAttribute('label');\n\n this.renderer.setAttribute(\n optGroup,\n 'aria-label',\n optGroupLabel\n );\n\n Array.from(optGroup.children).forEach(option => {\n const optionLabel =\n option.getAttribute('label') || option.textContent;\n\n if (optionLabel) {\n this.renderer.setAttribute(\n option,\n 'aria-label',\n `${optionLabel} - ${optGroupLabel}`\n );\n }\n });\n });\n }\n}\n",
|
|
31169
31169
|
"selector": "select[eclSelect]",
|
|
31170
31170
|
"providers": [],
|
|
31171
31171
|
"hostDirectives": [],
|
|
@@ -31181,16 +31181,9 @@
|
|
|
31181
31181
|
"indexKey": "",
|
|
31182
31182
|
"optional": false,
|
|
31183
31183
|
"description": "<p>Disables the select element.</p>\n",
|
|
31184
|
-
"line":
|
|
31184
|
+
"line": 40,
|
|
31185
31185
|
"rawdescription": "\nDisables the select element.",
|
|
31186
|
-
"decorators": [
|
|
31187
|
-
{
|
|
31188
|
-
"name": "HostBinding",
|
|
31189
|
-
"stringifiedArguments": "'attr.disabled'"
|
|
31190
|
-
}
|
|
31191
|
-
],
|
|
31192
31186
|
"modifierKind": [
|
|
31193
|
-
171,
|
|
31194
31187
|
148
|
|
31195
31188
|
],
|
|
31196
31189
|
"required": false
|
|
@@ -31205,7 +31198,7 @@
|
|
|
31205
31198
|
"indexKey": "",
|
|
31206
31199
|
"optional": false,
|
|
31207
31200
|
"description": "<p>Size of the select component.</p>\n",
|
|
31208
|
-
"line":
|
|
31201
|
+
"line": 49,
|
|
31209
31202
|
"rawdescription": "\nSize of the select component.",
|
|
31210
31203
|
"modifierKind": [
|
|
31211
31204
|
148
|
|
@@ -31222,7 +31215,7 @@
|
|
|
31222
31215
|
"indexKey": "",
|
|
31223
31216
|
"optional": false,
|
|
31224
31217
|
"description": "<p>Marks the select element as invalid.</p>\n",
|
|
31225
|
-
"line":
|
|
31218
|
+
"line": 43,
|
|
31226
31219
|
"rawdescription": "\nMarks the select element as invalid.",
|
|
31227
31220
|
"modifierKind": [
|
|
31228
31221
|
148
|
|
@@ -31239,7 +31232,7 @@
|
|
|
31239
31232
|
"indexKey": "",
|
|
31240
31233
|
"optional": false,
|
|
31241
31234
|
"description": "<p>Accessible label for the toggle button.</p>\n",
|
|
31242
|
-
"line":
|
|
31235
|
+
"line": 46,
|
|
31243
31236
|
"rawdescription": "\nAccessible label for the toggle button.",
|
|
31244
31237
|
"modifierKind": [
|
|
31245
31238
|
148
|
|
@@ -31293,57 +31286,7 @@
|
|
|
31293
31286
|
"outputsClass": [],
|
|
31294
31287
|
"deprecated": false,
|
|
31295
31288
|
"deprecationMessage": "",
|
|
31296
|
-
"hostBindings": [
|
|
31297
|
-
{
|
|
31298
|
-
"coverageIgnore": false,
|
|
31299
|
-
"name": "attr.disabled",
|
|
31300
|
-
"actualName": "disabled",
|
|
31301
|
-
"defaultValue": "input(false, { transform: booleanAttribute })",
|
|
31302
|
-
"deprecated": false,
|
|
31303
|
-
"deprecationMessage": "",
|
|
31304
|
-
"rawdescription": "\nDisables the select element.",
|
|
31305
|
-
"description": "<p>Disables the select element.</p>\n",
|
|
31306
|
-
"line": 35,
|
|
31307
|
-
"type": "any",
|
|
31308
|
-
"decorators": []
|
|
31309
|
-
},
|
|
31310
|
-
{
|
|
31311
|
-
"coverageIgnore": false,
|
|
31312
|
-
"name": "attr.disabled",
|
|
31313
|
-
"actualName": "isDisabled",
|
|
31314
|
-
"deprecated": false,
|
|
31315
|
-
"deprecationMessage": "",
|
|
31316
|
-
"rawdescription": "\n",
|
|
31317
|
-
"description": "",
|
|
31318
|
-
"line": 62,
|
|
31319
|
-
"type": "boolean",
|
|
31320
|
-
"decorators": []
|
|
31321
|
-
},
|
|
31322
|
-
{
|
|
31323
|
-
"coverageIgnore": false,
|
|
31324
|
-
"name": "class",
|
|
31325
|
-
"actualName": "cssClasses",
|
|
31326
|
-
"deprecated": false,
|
|
31327
|
-
"deprecationMessage": "",
|
|
31328
|
-
"rawdescription": "\n",
|
|
31329
|
-
"description": "",
|
|
31330
|
-
"line": 57,
|
|
31331
|
-
"type": "string",
|
|
31332
|
-
"decorators": []
|
|
31333
|
-
},
|
|
31334
|
-
{
|
|
31335
|
-
"coverageIgnore": false,
|
|
31336
|
-
"name": "class.ecl-select--invalid",
|
|
31337
|
-
"actualName": "isInvalidState",
|
|
31338
|
-
"deprecated": false,
|
|
31339
|
-
"deprecationMessage": "",
|
|
31340
|
-
"rawdescription": "\n",
|
|
31341
|
-
"description": "",
|
|
31342
|
-
"line": 67,
|
|
31343
|
-
"type": "boolean",
|
|
31344
|
-
"decorators": []
|
|
31345
|
-
}
|
|
31346
|
-
],
|
|
31289
|
+
"hostBindings": [],
|
|
31347
31290
|
"hostListeners": [],
|
|
31348
31291
|
"propertiesClass": [],
|
|
31349
31292
|
"methodsClass": [
|
|
@@ -31354,7 +31297,7 @@
|
|
|
31354
31297
|
"optional": false,
|
|
31355
31298
|
"returnType": "void",
|
|
31356
31299
|
"typeParameters": [],
|
|
31357
|
-
"line":
|
|
31300
|
+
"line": 107,
|
|
31358
31301
|
"deprecated": false,
|
|
31359
31302
|
"deprecationMessage": "",
|
|
31360
31303
|
"rawdescription": "\n\nProcesses any <optgroup> elements inside the <select> and\nenhances them with appropriate accessibility attributes.\n",
|
|
@@ -31367,7 +31310,7 @@
|
|
|
31367
31310
|
"optional": false,
|
|
31368
31311
|
"returnType": "void",
|
|
31369
31312
|
"typeParameters": [],
|
|
31370
|
-
"line":
|
|
31313
|
+
"line": 123,
|
|
31371
31314
|
"deprecated": false,
|
|
31372
31315
|
"deprecationMessage": "",
|
|
31373
31316
|
"rawdescription": "\n\nKeeps the wrapper component synchronized with the directive’s\ncurrent inputs and form control state.\n\nThis is used to reflect runtime changes such as:\n- Disabled state\n- Validation status\n- Size changes\n",
|
|
@@ -31380,7 +31323,7 @@
|
|
|
31380
31323
|
"optional": false,
|
|
31381
31324
|
"returnType": "void",
|
|
31382
31325
|
"typeParameters": [],
|
|
31383
|
-
"line":
|
|
31326
|
+
"line": 131,
|
|
31384
31327
|
"deprecated": false,
|
|
31385
31328
|
"deprecationMessage": "",
|
|
31386
31329
|
"rawdescription": "\n\nDestroys the dynamically created wrapper component to prevent\nmemory leaks when the directive is removed.\n",
|
|
@@ -31393,7 +31336,7 @@
|
|
|
31393
31336
|
"optional": false,
|
|
31394
31337
|
"returnType": "void",
|
|
31395
31338
|
"typeParameters": [],
|
|
31396
|
-
"line":
|
|
31339
|
+
"line": 83,
|
|
31397
31340
|
"deprecated": false,
|
|
31398
31341
|
"deprecationMessage": "",
|
|
31399
31342
|
"rawdescription": "\n\nInitializes the directive.\n- Creates the {@link EclSelectContainerComponent} wrapper.\n- Synchronizes initial input values.\n- Moves the <select> element inside the wrapper.\n\nSkipped on the server to avoid SSR hydration mismatch (NG0500).\n",
|
|
@@ -31441,8 +31384,8 @@
|
|
|
31441
31384
|
"coverageIgnore": false,
|
|
31442
31385
|
"jsdoctags": [
|
|
31443
31386
|
{
|
|
31444
|
-
"pos":
|
|
31445
|
-
"end":
|
|
31387
|
+
"pos": 533,
|
|
31388
|
+
"end": 675,
|
|
31446
31389
|
"kind": 321,
|
|
31447
31390
|
"id": 0,
|
|
31448
31391
|
"flags": 16777216,
|
|
@@ -31450,8 +31393,8 @@
|
|
|
31450
31393
|
"transformFlags": 0,
|
|
31451
31394
|
"comment": [
|
|
31452
31395
|
{
|
|
31453
|
-
"pos":
|
|
31454
|
-
"end":
|
|
31396
|
+
"pos": 533,
|
|
31397
|
+
"end": 635,
|
|
31455
31398
|
"kind": 322,
|
|
31456
31399
|
"id": 0,
|
|
31457
31400
|
"flags": 16777216,
|
|
@@ -31460,16 +31403,16 @@
|
|
|
31460
31403
|
"text": "Directive that enhances a native <select> element with ECL styling\nby wrapping it inside an "
|
|
31461
31404
|
},
|
|
31462
31405
|
{
|
|
31463
|
-
"pos":
|
|
31464
|
-
"end":
|
|
31406
|
+
"pos": 635,
|
|
31407
|
+
"end": 670,
|
|
31465
31408
|
"kind": 325,
|
|
31466
31409
|
"id": 0,
|
|
31467
31410
|
"flags": 16777216,
|
|
31468
31411
|
"modifierFlagsCache": 0,
|
|
31469
31412
|
"transformFlags": 0,
|
|
31470
31413
|
"name": {
|
|
31471
|
-
"pos":
|
|
31472
|
-
"end":
|
|
31414
|
+
"pos": 642,
|
|
31415
|
+
"end": 669,
|
|
31473
31416
|
"kind": 80,
|
|
31474
31417
|
"id": 0,
|
|
31475
31418
|
"flags": 16777216,
|
|
@@ -31479,8 +31422,8 @@
|
|
|
31479
31422
|
"text": ""
|
|
31480
31423
|
},
|
|
31481
31424
|
{
|
|
31482
|
-
"pos":
|
|
31483
|
-
"end":
|
|
31425
|
+
"pos": 670,
|
|
31426
|
+
"end": 673,
|
|
31484
31427
|
"kind": 322,
|
|
31485
31428
|
"id": 0,
|
|
31486
31429
|
"flags": 16777216,
|
|
@@ -31507,7 +31450,7 @@
|
|
|
31507
31450
|
"name": "cssClasses",
|
|
31508
31451
|
"type": "string",
|
|
31509
31452
|
"returnType": "string",
|
|
31510
|
-
"line":
|
|
31453
|
+
"line": 61,
|
|
31511
31454
|
"rawdescription": "\n",
|
|
31512
31455
|
"description": ""
|
|
31513
31456
|
}
|
|
@@ -31518,7 +31461,7 @@
|
|
|
31518
31461
|
"name": "isDisabled",
|
|
31519
31462
|
"type": "boolean",
|
|
31520
31463
|
"returnType": "boolean",
|
|
31521
|
-
"line":
|
|
31464
|
+
"line": 65,
|
|
31522
31465
|
"rawdescription": "\n",
|
|
31523
31466
|
"description": ""
|
|
31524
31467
|
}
|
|
@@ -31529,7 +31472,7 @@
|
|
|
31529
31472
|
"name": "isInvalidState",
|
|
31530
31473
|
"type": "boolean",
|
|
31531
31474
|
"returnType": "boolean",
|
|
31532
|
-
"line":
|
|
31475
|
+
"line": 69,
|
|
31533
31476
|
"rawdescription": "\n",
|
|
31534
31477
|
"description": ""
|
|
31535
31478
|
}
|
|
@@ -77406,10 +77349,11 @@
|
|
|
77406
77349
|
},
|
|
77407
77350
|
{
|
|
77408
77351
|
"name": "EclSelectContainerComponent",
|
|
77409
|
-
"id": "component-EclSelectContainerComponent-
|
|
77352
|
+
"id": "component-EclSelectContainerComponent-52fb6b5010017a285bbdac362014ca29500c77306054d6d5ed50dd99107eeabb4c6a59fc47e6e6b049e248c8db2587de9643f57b7d3df17fbc2e231cb5913707",
|
|
77410
77353
|
"file": "packages/ecl/components/ecl-select/ecl-select-container.component.ts",
|
|
77411
77354
|
"encapsulation": [],
|
|
77412
77355
|
"entryComponents": [],
|
|
77356
|
+
"host": {},
|
|
77413
77357
|
"inputs": [],
|
|
77414
77358
|
"outputs": [],
|
|
77415
77359
|
"providers": [],
|
|
@@ -77433,7 +77377,7 @@
|
|
|
77433
77377
|
"indexKey": "",
|
|
77434
77378
|
"optional": false,
|
|
77435
77379
|
"description": "",
|
|
77436
|
-
"line":
|
|
77380
|
+
"line": 29,
|
|
77437
77381
|
"rawdescription": "\n",
|
|
77438
77382
|
"modifierKind": [
|
|
77439
77383
|
148
|
|
@@ -77450,7 +77394,7 @@
|
|
|
77450
77394
|
"indexKey": "",
|
|
77451
77395
|
"optional": false,
|
|
77452
77396
|
"description": "<p>Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\nSame as the size of the main host element.</p>\n",
|
|
77453
|
-
"line":
|
|
77397
|
+
"line": 28,
|
|
77454
77398
|
"rawdescription": "\n\nSize/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\nSame as the size of the main host element.\n",
|
|
77455
77399
|
"modifierKind": [
|
|
77456
77400
|
148
|
|
@@ -77467,7 +77411,7 @@
|
|
|
77467
77411
|
"indexKey": "",
|
|
77468
77412
|
"optional": false,
|
|
77469
77413
|
"description": "",
|
|
77470
|
-
"line":
|
|
77414
|
+
"line": 30,
|
|
77471
77415
|
"rawdescription": "\n",
|
|
77472
77416
|
"modifierKind": [
|
|
77473
77417
|
148
|
|
@@ -77484,7 +77428,7 @@
|
|
|
77484
77428
|
"indexKey": "",
|
|
77485
77429
|
"optional": false,
|
|
77486
77430
|
"description": "<p>Custom label for the arrow-down button. Set from the main host element.</p>\n",
|
|
77487
|
-
"line":
|
|
77431
|
+
"line": 34,
|
|
77488
77432
|
"rawdescription": "\n\nCustom label for the arrow-down button. Set from the main host element.\n",
|
|
77489
77433
|
"modifierKind": [
|
|
77490
77434
|
148
|
|
@@ -77546,7 +77490,7 @@
|
|
|
77546
77490
|
"indexKey": "",
|
|
77547
77491
|
"optional": false,
|
|
77548
77492
|
"description": "",
|
|
77549
|
-
"line":
|
|
77493
|
+
"line": 29,
|
|
77550
77494
|
"rawdescription": "\n",
|
|
77551
77495
|
"modifierKind": [
|
|
77552
77496
|
148
|
|
@@ -77563,7 +77507,7 @@
|
|
|
77563
77507
|
"indexKey": "",
|
|
77564
77508
|
"optional": false,
|
|
77565
77509
|
"description": "<p>Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\nSame as the size of the main host element.</p>\n",
|
|
77566
|
-
"line":
|
|
77510
|
+
"line": 28,
|
|
77567
77511
|
"rawdescription": "\n\nSize/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\nSame as the size of the main host element.\n",
|
|
77568
77512
|
"modifierKind": [
|
|
77569
77513
|
148
|
|
@@ -77580,7 +77524,7 @@
|
|
|
77580
77524
|
"indexKey": "",
|
|
77581
77525
|
"optional": false,
|
|
77582
77526
|
"description": "",
|
|
77583
|
-
"line":
|
|
77527
|
+
"line": 30,
|
|
77584
77528
|
"rawdescription": "\n",
|
|
77585
77529
|
"modifierKind": [
|
|
77586
77530
|
148
|
|
@@ -77597,7 +77541,7 @@
|
|
|
77597
77541
|
"indexKey": "",
|
|
77598
77542
|
"optional": false,
|
|
77599
77543
|
"description": "<p>Custom label for the arrow-down button. Set from the main host element.</p>\n",
|
|
77600
|
-
"line":
|
|
77544
|
+
"line": 34,
|
|
77601
77545
|
"rawdescription": "\n\nCustom label for the arrow-down button. Set from the main host element.\n",
|
|
77602
77546
|
"modifierKind": [
|
|
77603
77547
|
148
|
|
@@ -77649,20 +77593,7 @@
|
|
|
77649
77593
|
"coverageIgnore": false,
|
|
77650
77594
|
"deprecated": false,
|
|
77651
77595
|
"deprecationMessage": "",
|
|
77652
|
-
"hostBindings": [
|
|
77653
|
-
{
|
|
77654
|
-
"coverageIgnore": false,
|
|
77655
|
-
"name": "class",
|
|
77656
|
-
"actualName": "cssClasses",
|
|
77657
|
-
"deprecated": false,
|
|
77658
|
-
"deprecationMessage": "",
|
|
77659
|
-
"rawdescription": "\n\nAdds specific classes for the container.\n",
|
|
77660
|
-
"description": "<p>Adds specific classes for the container.</p>\n",
|
|
77661
|
-
"line": 37,
|
|
77662
|
-
"type": "string",
|
|
77663
|
-
"decorators": []
|
|
77664
|
-
}
|
|
77665
|
-
],
|
|
77596
|
+
"hostBindings": [],
|
|
77666
77597
|
"hostListeners": [],
|
|
77667
77598
|
"standalone": false,
|
|
77668
77599
|
"imports": [
|
|
@@ -77680,14 +77611,14 @@
|
|
|
77680
77611
|
"description": "<p>Container component, which wraps the <select> component. Ataches custom select button with dropdown arrow.</p>\n",
|
|
77681
77612
|
"rawdescription": "\n\nContainer component, which wraps the <select> component. Ataches custom select button with dropdown arrow.\n",
|
|
77682
77613
|
"type": "component",
|
|
77683
|
-
"sourceCode": "import { Component,
|
|
77614
|
+
"sourceCode": "import { Component, inject, model } from '@angular/core';\nimport { ECLBaseDirective } from '@eui/ecl/core';\nimport { EclThemeService } from '@eui/ecl/core';\nimport { EUI_ECL_ICON } from '@eui/ecl/components/ecl-icon';\nimport { EUI_ECL_BUTTON } from '@eui/ecl/components/ecl-button';\nimport { TranslatePipe } from '@ngx-translate/core';\n\n/**\n * Container component, which wraps the <select> component. Ataches custom select button with dropdown arrow.\n */\n@Component({\n selector: 'ecl-select-container',\n templateUrl: './ecl-select-container.component.html',\n imports: [\n ...EUI_ECL_ICON,\n TranslatePipe,\n ...EUI_ECL_BUTTON,\n ],\n host: {\n '[class]': 'cssClasses',\n },\n})\nexport class EclSelectContainerComponent extends ECLBaseDirective {\n /**\n * Size/length of the field and the dropdown, can be 's', 'm' or 'l'. Default is 'm'.\n * Same as the size of the main host element.\n */\n readonly eclSize = model('m');\n readonly disabled = model<boolean>(undefined);\n readonly isInvalid = model<boolean>(undefined);\n /**\n * Custom label for the arrow-down button. Set from the main host element.\n */\n readonly toggleLabel = model<string | undefined>(undefined);\n\n /**\n * Adds specific classes for the container.\n */\n get cssClasses(): string {\n const eclSize = this.eclSize();\n return [\n super.getCssClasses('ecl-select__container'),\n eclSize ? `ecl-select__container--${eclSize}` : '',\n this.disabled() ? 'ecl-select__container--disabled' : '',\n this.isInvalid() ? 'ecl-select__container--invalid' : '',\n ]\n .join(' ')\n .trim();\n }\n\n private ICON_SIZE_EC = 'xs';\n private ICON_SIZE_EU = 's'\n private eclThemeService = inject(EclThemeService);\n\n /**\n * Returns different icon sizes, depending if it's EU (s) or EC (xs) theme.\n */\n protected get iconSize(): string {\n if (this.eclThemeService.isECTheme()) {\n return this.ICON_SIZE_EC;\n } else {\n return this.ICON_SIZE_EU;\n }\n }\n}\n",
|
|
77684
77615
|
"assetsDirs": [],
|
|
77685
77616
|
"styleUrlsData": "",
|
|
77686
77617
|
"stylesData": "",
|
|
77687
77618
|
"jsdoctags": [
|
|
77688
77619
|
{
|
|
77689
|
-
"pos":
|
|
77690
|
-
"end":
|
|
77620
|
+
"pos": 337,
|
|
77621
|
+
"end": 454,
|
|
77691
77622
|
"kind": 321,
|
|
77692
77623
|
"id": 0,
|
|
77693
77624
|
"flags": 16777216,
|
|
@@ -77706,7 +77637,7 @@
|
|
|
77706
77637
|
"name": "cssClasses",
|
|
77707
77638
|
"type": "string",
|
|
77708
77639
|
"returnType": "string",
|
|
77709
|
-
"line":
|
|
77640
|
+
"line": 39,
|
|
77710
77641
|
"rawdescription": "\n\nAdds specific classes for the container.\n",
|
|
77711
77642
|
"description": "<p>Adds specific classes for the container.</p>\n"
|
|
77712
77643
|
}
|
|
@@ -77717,7 +77648,7 @@
|
|
|
77717
77648
|
"name": "iconSize",
|
|
77718
77649
|
"type": "string",
|
|
77719
77650
|
"returnType": "string",
|
|
77720
|
-
"line":
|
|
77651
|
+
"line": 58,
|
|
77721
77652
|
"rawdescription": "\n\nReturns different icon sizes, depending if it's EU (s) or EC (xs) theme.\n",
|
|
77722
77653
|
"description": "<p>Returns different icon sizes, depending if it's EU (s) or EC (xs) theme.</p>\n"
|
|
77723
77654
|
}
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# eui documentation
|
|
2
2
|
|
|
3
|
-
> Generated by compodoc 2.0.0 at 2026-09-
|
|
3
|
+
> Generated by compodoc 2.0.0 at 2026-09-30T11:26:41.222Z, llm-md export.
|
|
4
4
|
|
|
5
5
|
## Modules
|
|
6
6
|
|
|
@@ -7469,10 +7469,10 @@ Properties:
|
|
|
7469
7469
|
|
|
7470
7470
|
## Public variables
|
|
7471
7471
|
|
|
7472
|
-
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
7473
|
-
Defined in `packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts`
|
|
7474
7472
|
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
7475
7473
|
Defined in `packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts`
|
|
7474
|
+
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
7475
|
+
Defined in `packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts`
|
|
7476
7476
|
- `ARROW_SIZE: string = '0.5rem'` — Half the arrow's own width, matching ECL's arrowSize .
|
|
7477
7477
|
Defined in `packages/ecl/components/ecl-site-header/search/ecl-site-header-search.component.ts`
|
|
7478
7478
|
- `AVAILABLE_NON_EU_LOGO_COUNTRY_CODES: string[] = ['ar', 'ca', 'is', 'jp', 'lb', 'no', 'ru', 'sw', 'tr', 'uk', 'zh'] as const`
|
|
@@ -138,10 +138,10 @@
|
|
|
138
138
|
<td class="col-md-4">
|
|
139
139
|
<ul class="index-list">
|
|
140
140
|
<li>
|
|
141
|
-
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/
|
|
141
|
+
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-login.component.ts)</span></a>
|
|
142
142
|
</li>
|
|
143
143
|
<li>
|
|
144
|
-
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/
|
|
144
|
+
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-language.component.ts)</span></a>
|
|
145
145
|
</li>
|
|
146
146
|
<li>
|
|
147
147
|
<a href="#ARROW_SIZE" title="packages/ecl/components/ecl-site-header/search/ecl-site-header-search.component.ts" class="reference-link "><span class="reference-badge reference-badge--variable" aria-hidden="true">V</span><span class="reference-link-label"><b>ARROW_SIZE</b> (packages/.../ecl-site-header-search.component.ts)</span></a>
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
</table>
|
|
412
412
|
</section>
|
|
413
413
|
|
|
414
|
-
<h3>packages/ecl/components/ecl-site-header/
|
|
414
|
+
<h3>packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts</h3>
|
|
415
415
|
<section data-compodoc="block-properties">
|
|
416
416
|
<h3></h3> <table class="table table-sm table-bordered">
|
|
417
417
|
<tbody>
|
|
@@ -445,67 +445,67 @@
|
|
|
445
445
|
|
|
446
446
|
</tbody>
|
|
447
447
|
</table>
|
|
448
|
-
|
|
449
|
-
<h3>packages/ecl/components/ecl-site-header/login/ecl-site-header-login.component.ts</h3>
|
|
450
|
-
<section data-compodoc="block-properties">
|
|
451
|
-
<h3></h3> <table class="table table-sm table-bordered">
|
|
448
|
+
<table class="table table-sm table-bordered">
|
|
452
449
|
<tbody>
|
|
453
450
|
<tr>
|
|
454
451
|
<td class="col-md-4">
|
|
455
|
-
<a name="
|
|
452
|
+
<a name="RESIZE_DEBOUNCE"></a>
|
|
456
453
|
<span class="name">
|
|
457
|
-
<span ><b>
|
|
458
|
-
<a href="#
|
|
454
|
+
<span ><b>RESIZE_DEBOUNCE</b></span>
|
|
455
|
+
<a href="#RESIZE_DEBOUNCE"><span class="icon ion-ios-link"></span></a>
|
|
459
456
|
</span>
|
|
460
457
|
</td>
|
|
461
458
|
</tr>
|
|
462
459
|
<tr>
|
|
463
460
|
<td class="col-md-4">
|
|
464
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
|
|
461
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
465
462
|
|
|
466
463
|
</td>
|
|
467
464
|
</tr>
|
|
468
465
|
<tr>
|
|
469
466
|
<td class="col-md-4">
|
|
470
|
-
<i>Default value : </i><code
|
|
467
|
+
<i>Default value : </i><code>200</code>
|
|
471
468
|
</td>
|
|
472
469
|
</tr>
|
|
473
470
|
|
|
474
471
|
<tr>
|
|
475
472
|
<td class="col-md-4">
|
|
476
|
-
<div class="io-description"><p>
|
|
473
|
+
<div class="io-description"><p>Debounce for the resize recomputation, matching ECL's <code>handleResize</code>.</p>
|
|
477
474
|
</div>
|
|
478
475
|
</td>
|
|
479
476
|
</tr>
|
|
480
477
|
|
|
481
478
|
</tbody>
|
|
482
479
|
</table>
|
|
483
|
-
|
|
480
|
+
</section>
|
|
481
|
+
<h3>packages/ecl/components/ecl-site-header/language/ecl-site-header-language.component.ts</h3>
|
|
482
|
+
<section data-compodoc="block-properties">
|
|
483
|
+
<h3></h3> <table class="table table-sm table-bordered">
|
|
484
484
|
<tbody>
|
|
485
485
|
<tr>
|
|
486
486
|
<td class="col-md-4">
|
|
487
|
-
<a name="
|
|
487
|
+
<a name="ARROW_SIZE"></a>
|
|
488
488
|
<span class="name">
|
|
489
|
-
<span ><b>
|
|
490
|
-
<a href="#
|
|
489
|
+
<span ><b>ARROW_SIZE</b></span>
|
|
490
|
+
<a href="#ARROW_SIZE"><span class="icon ion-ios-link"></span></a>
|
|
491
491
|
</span>
|
|
492
492
|
</td>
|
|
493
493
|
</tr>
|
|
494
494
|
<tr>
|
|
495
495
|
<td class="col-md-4">
|
|
496
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/
|
|
496
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
497
497
|
|
|
498
498
|
</td>
|
|
499
499
|
</tr>
|
|
500
500
|
<tr>
|
|
501
501
|
<td class="col-md-4">
|
|
502
|
-
<i>Default value : </i><code
|
|
502
|
+
<i>Default value : </i><code>'0.5rem'</code>
|
|
503
503
|
</td>
|
|
504
504
|
</tr>
|
|
505
505
|
|
|
506
506
|
<tr>
|
|
507
507
|
<td class="col-md-4">
|
|
508
|
-
<div class="io-description"><p>
|
|
508
|
+
<div class="io-description"><p>Half the arrow's own width, matching ECL's <code>arrowSize</code>.</p>
|
|
509
509
|
</div>
|
|
510
510
|
</td>
|
|
511
511
|
</tr>
|