@aurodesignsystem/auro-formkit 5.8.0 → 5.9.0
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/CHANGELOG.md +3 -12
- package/components/checkbox/demo/api.min.js +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/api.md +7 -6
- package/components/combobox/demo/api.min.js +1674 -1004
- package/components/combobox/demo/index.md +47 -2
- package/components/combobox/demo/index.min.js +1674 -1004
- package/components/combobox/dist/auro-combobox.d.ts +9 -8
- package/components/combobox/dist/index.js +129 -127
- package/components/combobox/dist/registered.js +129 -127
- package/components/counter/demo/api.min.js +12 -18
- package/components/counter/demo/index.min.js +12 -18
- package/components/counter/dist/buttonVersion.d.ts +2 -0
- package/components/counter/dist/index.js +12 -18
- package/components/counter/dist/registered.js +12 -18
- package/components/datepicker/demo/api.min.js +46 -45
- package/components/datepicker/demo/index.min.js +46 -45
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +46 -45
- package/components/datepicker/dist/registered.js +46 -45
- package/components/dropdown/demo/api.min.js +6 -8
- package/components/dropdown/demo/index.min.js +6 -8
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +6 -8
- package/components/dropdown/dist/registered.js +6 -8
- package/components/input/demo/api.min.js +33 -24
- package/components/input/demo/index.min.js +33 -24
- package/components/input/dist/base-input.d.ts +19 -2
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/index.js +33 -24
- package/components/input/dist/registered.js +33 -24
- package/components/menu/demo/api.js +4 -0
- package/components/menu/demo/api.md +271 -26
- package/components/menu/demo/api.min.js +1591 -858
- package/components/menu/demo/index.html +1 -0
- package/components/menu/demo/index.js +2 -0
- package/components/menu/demo/index.md +95 -1
- package/components/menu/demo/index.min.js +1529 -810
- package/components/menu/dist/auro-menu.context.d.ts +222 -0
- package/components/menu/dist/auro-menu.d.ts +93 -53
- package/components/menu/dist/auro-menuoption.d.ts +115 -13
- package/components/menu/dist/index.js +1441 -793
- package/components/menu/dist/registered.js +1439 -803
- package/components/radio/demo/api.min.js +3 -3
- package/components/radio/demo/index.min.js +3 -3
- package/components/radio/dist/index.js +3 -3
- package/components/radio/dist/registered.js +3 -3
- package/components/select/demo/api.md +8 -7
- package/components/select/demo/api.min.js +1587 -1020
- package/components/select/demo/index.min.js +1587 -1020
- package/components/select/dist/auro-select.d.ts +11 -35
- package/components/select/dist/index.js +72 -173
- package/components/select/dist/registered.js +72 -173
- package/package.json +6 -2
- package/components/checkbox/dist/helptextVersion.d.ts +0 -2
- package/components/combobox/dist/bibtemplateVersion.d.ts +0 -2
- package/components/combobox/dist/dropdownVersion.d.ts +0 -2
- package/components/combobox/dist/inputVersion.d.ts +0 -2
- package/components/counter/dist/bibtemplateVersion.d.ts +0 -2
- package/components/counter/dist/dropdownVersion.d.ts +0 -2
- package/components/counter/dist/helptextVersion.d.ts +0 -2
- package/components/datepicker/dist/bibtemplateVersion.d.ts +0 -2
- package/components/datepicker/dist/dropdownVersion.d.ts +0 -2
- package/components/datepicker/dist/inputVersion.d.ts +0 -2
- package/components/dropdown/dist/dropdownVersion.d.ts +0 -2
- package/components/dropdown/dist/helptextVersion.d.ts +0 -2
- package/components/input/dist/helptextVersion.d.ts +0 -2
- package/components/menu/dist/dropdownVersion.d.ts +0 -2
- package/components/radio/dist/helptextVersion.d.ts +0 -2
- package/components/select/dist/bibtemplateVersion.d.ts +0 -2
- package/components/select/dist/dropdownVersion.d.ts +0 -2
- package/components/select/dist/helptextVersion.d.ts +0 -2
|
@@ -152,23 +152,11 @@ export class AuroSelect extends AuroElement {
|
|
|
152
152
|
type: BooleanConstructor;
|
|
153
153
|
reflect: boolean;
|
|
154
154
|
};
|
|
155
|
-
/**
|
|
156
|
-
* @private
|
|
157
|
-
*/
|
|
158
|
-
optionActive: {
|
|
159
|
-
type: ObjectConstructor;
|
|
160
|
-
};
|
|
161
155
|
/**
|
|
162
156
|
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
163
157
|
* @type {HTMLElement|Array<HTMLElement>}
|
|
164
158
|
*/
|
|
165
159
|
optionSelected: HTMLElement | Array<HTMLElement>;
|
|
166
|
-
/**
|
|
167
|
-
* @private
|
|
168
|
-
*/
|
|
169
|
-
options: {
|
|
170
|
-
type: ArrayConstructor;
|
|
171
|
-
};
|
|
172
160
|
/**
|
|
173
161
|
* Position where the bib should appear relative to the trigger.
|
|
174
162
|
* Accepted values:
|
|
@@ -267,6 +255,13 @@ export class AuroSelect extends AuroElement {
|
|
|
267
255
|
reflect: boolean;
|
|
268
256
|
attribute: boolean;
|
|
269
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* @private
|
|
260
|
+
*/
|
|
261
|
+
options: {
|
|
262
|
+
type: ArrayConstructor;
|
|
263
|
+
state: boolean;
|
|
264
|
+
};
|
|
270
265
|
};
|
|
271
266
|
static get styles(): import("lit").CSSResult[];
|
|
272
267
|
/**
|
|
@@ -327,9 +322,6 @@ export class AuroSelect extends AuroElement {
|
|
|
327
322
|
*/
|
|
328
323
|
private privateDefaults;
|
|
329
324
|
appearance: string;
|
|
330
|
-
options: any[] | Element[];
|
|
331
|
-
optionActive: any;
|
|
332
|
-
optionSelected: any;
|
|
333
325
|
value: any;
|
|
334
326
|
fullscreenBreakpoint: string;
|
|
335
327
|
onDark: boolean;
|
|
@@ -389,6 +381,8 @@ export class AuroSelect extends AuroElement {
|
|
|
389
381
|
menu: Element;
|
|
390
382
|
defaultMenuSize: string;
|
|
391
383
|
defaultMenuShape: string;
|
|
384
|
+
options: any;
|
|
385
|
+
optionSelected: any;
|
|
392
386
|
/**
|
|
393
387
|
* Binds all behavior needed to the component after rendering.
|
|
394
388
|
* @private
|
|
@@ -444,26 +438,14 @@ export class AuroSelect extends AuroElement {
|
|
|
444
438
|
* @returns {void}
|
|
445
439
|
*/
|
|
446
440
|
private handleSlotChange;
|
|
447
|
-
/**
|
|
448
|
-
* Determines the element error state based on the `required` attribute and input value.
|
|
449
|
-
* @private
|
|
450
|
-
* @returns {void}
|
|
451
|
-
*/
|
|
452
|
-
private generateOptionsArray;
|
|
453
441
|
/**
|
|
454
442
|
* Resets all options to their default state.
|
|
455
443
|
* @private
|
|
456
444
|
*/
|
|
457
445
|
private clearSelection;
|
|
458
446
|
firstUpdated(): void;
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
* @param {string} value - The value to set in the menu.
|
|
462
|
-
* @returns {void}
|
|
463
|
-
* @private
|
|
464
|
-
*/
|
|
465
|
-
private updateMenuValue;
|
|
466
|
-
updated(changedProperties: any): Promise<void>;
|
|
447
|
+
setMenuValue(value: any): void;
|
|
448
|
+
updated(changedProperties: any): void;
|
|
467
449
|
/**
|
|
468
450
|
* Resets component to initial state.
|
|
469
451
|
* @returns {void}
|
|
@@ -487,12 +469,6 @@ export class AuroSelect extends AuroElement {
|
|
|
487
469
|
* @private
|
|
488
470
|
*/
|
|
489
471
|
private _updateNativeSelect;
|
|
490
|
-
/**
|
|
491
|
-
* Returns HTML for the hidden a11y screen reader content.
|
|
492
|
-
* @private
|
|
493
|
-
* @returns {html} - Returns HTML for the hidden a11y screen reader content.
|
|
494
|
-
*/
|
|
495
|
-
private renderAriaHtml;
|
|
496
472
|
/**
|
|
497
473
|
* Returns HTML for the hidden HTML5 select.
|
|
498
474
|
* @private
|
|
@@ -3780,7 +3780,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
3780
3780
|
</div>
|
|
3781
3781
|
`}};
|
|
3782
3782
|
|
|
3783
|
-
var iconVersion$1 = '
|
|
3783
|
+
var iconVersion$1 = '9.1.0';
|
|
3784
3784
|
|
|
3785
3785
|
var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
3786
3786
|
|
|
@@ -3979,17 +3979,15 @@ class AuroDropdownBib extends LitElement {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
}
|
|
3981
3981
|
|
|
3982
|
-
var dropdownVersion$1 = '3.0.0';
|
|
3983
|
-
|
|
3984
3982
|
var shapeSizeCss = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:58px;max-height:58px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:56px;max-height:56px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:54px;max-height:54px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
3985
3983
|
|
|
3986
|
-
var colorCss$1$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([
|
|
3984
|
+
var colorCss$1$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([disabled],[onDark])) .wrapper:focus-within,:host(:not([disabled],[onDark])) .wrapper:active,:host(:not([disabled],[appearance=inverse])) .wrapper:focus-within,:host(:not([disabled],[appearance=inverse])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([disabled],[onDark])) .wrapper:hover,:host(:not([disabled],[appearance=inverse])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host(:not([ondark])) .wrapper,:host(:not([appearance=inverse])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([onDark])[disabled]),:host(:not([appearance=inverse])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([onDark])[disabled]) #triggerLabel,:host(:not([appearance=inverse])[disabled]) #triggerLabel{cursor:default}:host(:not([ondark])[error]),:host(:not([appearance=inverse])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([disabled])[onDark]) .wrapper:focus-within,:host(:not([disabled])[onDark]) .wrapper:active,:host(:not([disabled])[appearance=inverse]) .wrapper:focus-within,:host(:not([disabled])[appearance=inverse]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host(:not([disabled])[onDark]) .wrapper:hover,:host(:not([disabled])[appearance=inverse]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host([onDark]) .label,:host([onDark]) .helpText,:host([appearance=inverse]) .label,:host([appearance=inverse]) .helpText{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper,:host([appearance=inverse]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([onDark][disabled]) #triggerLabel,:host([appearance=inverse][disabled]) #triggerLabel{cursor:default}:host([ondark][error]),:host([appearance=inverse][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
3987
3985
|
|
|
3988
3986
|
var styleCss$1$1 = css`:host{position:relative;display:block;text-align:left}[popover=manual]{overflow:visible;padding:0;border:inherit;margin:0;background:inherit;outline:inherit}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
3989
3987
|
|
|
3990
3988
|
var classicColorCss = css``;
|
|
3991
3989
|
|
|
3992
|
-
var classicLayoutCss = css
|
|
3990
|
+
var classicLayoutCss = css`@media(hover: hover){:host(:not([disabled])) .wrapper:hover{cursor:pointer}}:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) label{transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
3993
3991
|
|
|
3994
3992
|
var styleEmphasizedCss = css`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
3995
3993
|
|
|
@@ -4223,7 +4221,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4223
4221
|
}
|
|
4224
4222
|
};
|
|
4225
4223
|
|
|
4226
|
-
var
|
|
4224
|
+
var formkitVersion$1 = '202511191711';
|
|
4227
4225
|
|
|
4228
4226
|
class AuroElement extends LitElement {
|
|
4229
4227
|
static get properties() {
|
|
@@ -4454,12 +4452,12 @@ class AuroDropdown extends AuroElement {
|
|
|
4454
4452
|
/**
|
|
4455
4453
|
* @private
|
|
4456
4454
|
*/
|
|
4457
|
-
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib',
|
|
4455
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', formkitVersion$1, AuroDropdownBib);
|
|
4458
4456
|
|
|
4459
4457
|
/**
|
|
4460
4458
|
* @private
|
|
4461
4459
|
*/
|
|
4462
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext',
|
|
4460
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', formkitVersion$1, AuroHelpText$1);
|
|
4463
4461
|
|
|
4464
4462
|
/**
|
|
4465
4463
|
* @private
|
|
@@ -5266,8 +5264,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5266
5264
|
}
|
|
5267
5265
|
}
|
|
5268
5266
|
|
|
5269
|
-
var dropdownVersion = '3.0.0';
|
|
5270
|
-
|
|
5271
5267
|
var colorCss$1 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
5272
5268
|
|
|
5273
5269
|
var styleCss$2 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
@@ -5635,8 +5631,6 @@ class AuroBibtemplate extends LitElement {
|
|
|
5635
5631
|
}
|
|
5636
5632
|
}
|
|
5637
5633
|
|
|
5638
|
-
var bibTemplateVersion = '1.0.0';
|
|
5639
|
-
|
|
5640
5634
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]),:host([appearance=inverse]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
5641
5635
|
|
|
5642
5636
|
var styleCss$1 = css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
@@ -5865,7 +5859,7 @@ class AuroHelpText extends LitElement {
|
|
|
5865
5859
|
}
|
|
5866
5860
|
}
|
|
5867
5861
|
|
|
5868
|
-
var
|
|
5862
|
+
var formkitVersion = '202511191711';
|
|
5869
5863
|
|
|
5870
5864
|
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
5871
5865
|
|
|
@@ -5944,17 +5938,17 @@ class AuroSelect extends AuroElement$1 {
|
|
|
5944
5938
|
/**
|
|
5945
5939
|
* @private
|
|
5946
5940
|
*/
|
|
5947
|
-
this.dropdownTag = versioning.generateTag('auro-formkit-select-dropdown',
|
|
5941
|
+
this.dropdownTag = versioning.generateTag('auro-formkit-select-dropdown', formkitVersion, AuroDropdown);
|
|
5948
5942
|
|
|
5949
5943
|
/**
|
|
5950
5944
|
* @private
|
|
5951
5945
|
*/
|
|
5952
|
-
this.bibtemplateTag = versioning.generateTag('auro-formkit-select-bibtemplate',
|
|
5946
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-select-bibtemplate', formkitVersion, AuroBibtemplate);
|
|
5953
5947
|
|
|
5954
5948
|
/**
|
|
5955
5949
|
* @private
|
|
5956
5950
|
*/
|
|
5957
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext',
|
|
5951
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', formkitVersion, AuroHelpText);
|
|
5958
5952
|
|
|
5959
5953
|
/**
|
|
5960
5954
|
* @private
|
|
@@ -5978,9 +5972,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
5978
5972
|
*/
|
|
5979
5973
|
privateDefaults() {
|
|
5980
5974
|
this.appearance = 'default';
|
|
5981
|
-
this.options = [];
|
|
5982
|
-
this.optionActive = null;
|
|
5983
|
-
this.optionSelected = undefined;
|
|
5984
5975
|
this.value = undefined;
|
|
5985
5976
|
this.fullscreenBreakpoint = 'sm';
|
|
5986
5977
|
this.onDark = false;
|
|
@@ -6147,13 +6138,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6147
6138
|
reflect: true
|
|
6148
6139
|
},
|
|
6149
6140
|
|
|
6150
|
-
/**
|
|
6151
|
-
* @private
|
|
6152
|
-
*/
|
|
6153
|
-
optionActive: {
|
|
6154
|
-
type: Object
|
|
6155
|
-
},
|
|
6156
|
-
|
|
6157
6141
|
/**
|
|
6158
6142
|
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
6159
6143
|
* @type {HTMLElement|Array<HTMLElement>}
|
|
@@ -6162,13 +6146,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6162
6146
|
type: Object
|
|
6163
6147
|
},
|
|
6164
6148
|
|
|
6165
|
-
/**
|
|
6166
|
-
* @private
|
|
6167
|
-
*/
|
|
6168
|
-
options: {
|
|
6169
|
-
type: Array
|
|
6170
|
-
},
|
|
6171
|
-
|
|
6172
6149
|
/**
|
|
6173
6150
|
* Position where the bib should appear relative to the trigger.
|
|
6174
6151
|
* Accepted values:
|
|
@@ -6283,6 +6260,14 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6283
6260
|
reflect: false,
|
|
6284
6261
|
attribute: false
|
|
6285
6262
|
},
|
|
6263
|
+
|
|
6264
|
+
/**
|
|
6265
|
+
* @private
|
|
6266
|
+
*/
|
|
6267
|
+
options: {
|
|
6268
|
+
type: Array,
|
|
6269
|
+
state: true
|
|
6270
|
+
},
|
|
6286
6271
|
};
|
|
6287
6272
|
}
|
|
6288
6273
|
|
|
@@ -6302,16 +6287,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6302
6287
|
* @returns {String|Array<String>}
|
|
6303
6288
|
*/
|
|
6304
6289
|
get formattedValue() {
|
|
6305
|
-
|
|
6306
|
-
if (!this.value) {
|
|
6307
|
-
return undefined;
|
|
6308
|
-
}
|
|
6309
|
-
if (this.value.startsWith("[")) {
|
|
6310
|
-
return JSON.parse(this.value);
|
|
6311
|
-
}
|
|
6312
|
-
return [this.value];
|
|
6313
|
-
}
|
|
6314
|
-
return this.value;
|
|
6290
|
+
return this.menu.formattedValue;
|
|
6315
6291
|
}
|
|
6316
6292
|
|
|
6317
6293
|
/**
|
|
@@ -6445,14 +6421,25 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6445
6421
|
});
|
|
6446
6422
|
|
|
6447
6423
|
// Handle selected options
|
|
6448
|
-
if (this.optionSelected) {
|
|
6449
|
-
if (this.multiSelect && this.optionSelected.length > 0) {
|
|
6450
|
-
const displayText = this.optionSelected.map((option) => option.textContent).join(', ');
|
|
6424
|
+
if (this.menu && this.menu.optionSelected) {
|
|
6451
6425
|
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6426
|
+
// If multiSelect and we got an array of selected options
|
|
6427
|
+
if (this.multiSelect && Array.isArray(this.menu.optionSelected)) {
|
|
6428
|
+
|
|
6429
|
+
// If we have selected options, join and display their text content
|
|
6430
|
+
if (this.menu.optionSelected.length > 0) {
|
|
6431
|
+
const displayText = this.menu.optionSelected.map((option) => option.textContent).join(', ');
|
|
6432
|
+
valueElem.textContent = displayText;
|
|
6433
|
+
|
|
6434
|
+
// If no selected options, clear out value display
|
|
6435
|
+
} else {
|
|
6436
|
+
valueElem.textContent = '';
|
|
6437
|
+
}
|
|
6438
|
+
|
|
6439
|
+
// If single select and we got an option that was selected, update value display
|
|
6440
|
+
} else if (!this.multiSelect && this.menu && this.menu.optionSelected instanceof HTMLElement) {
|
|
6441
|
+
valueElem.innerHTML = this.menu.optionSelected.innerHTML;
|
|
6442
|
+
const displayValueEl = this.menu.optionSelected.querySelector("[slot='displayValue']");
|
|
6456
6443
|
|
|
6457
6444
|
if (displayValueEl) {
|
|
6458
6445
|
this.appendChild(displayValueEl.cloneNode(true));
|
|
@@ -6516,56 +6503,28 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6516
6503
|
}
|
|
6517
6504
|
|
|
6518
6505
|
this.updateMenuShapeSize();
|
|
6506
|
+
this.setMenuValue(this.value);
|
|
6519
6507
|
|
|
6520
6508
|
if (this.multiSelect) {
|
|
6521
6509
|
this.menu.multiSelect = this.multiSelect;
|
|
6522
6510
|
}
|
|
6523
6511
|
|
|
6524
|
-
this.
|
|
6512
|
+
this.options = this.menu.options;
|
|
6525
6513
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
6514
|
+
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
6515
|
+
this.menu.addEventListener('auroMenu-selectedOption', (event) => {
|
|
6526
6516
|
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
6530
|
-
this.optionActive = evt.detail;
|
|
6531
|
-
});
|
|
6517
|
+
// Update the displayed value
|
|
6518
|
+
this.updateDisplayedValue();
|
|
6532
6519
|
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
this.optionSelected = this.
|
|
6536
|
-
// For single select, we still use arrays but only take first value
|
|
6537
|
-
this.value = this.menu.value;
|
|
6520
|
+
// Update the internal value to match
|
|
6521
|
+
this.value = event.detail.stringValue;
|
|
6522
|
+
this.optionSelected = this.multiSelect ? event.detail.options : event.detail.options[0];
|
|
6538
6523
|
|
|
6539
6524
|
if (this.dropdown.isPopoverVisible) {
|
|
6540
6525
|
this.dropdown.hide();
|
|
6541
6526
|
}
|
|
6542
6527
|
});
|
|
6543
|
-
|
|
6544
|
-
/**
|
|
6545
|
-
* When this.value is preset auro-menu.selectByValue(this.value) is called.
|
|
6546
|
-
* However, if this.value does not match one of the menu options,
|
|
6547
|
-
* auro-menu will notify via event. In this case, clear out this.value
|
|
6548
|
-
* so that it is not storing an invalid value which can then later be returned
|
|
6549
|
-
* with `auro-select.value`.
|
|
6550
|
-
*/
|
|
6551
|
-
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
6552
|
-
this.menu.clearSelection();
|
|
6553
|
-
});
|
|
6554
|
-
|
|
6555
|
-
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
6556
|
-
this.optionSelected = this.menu.optionSelected;
|
|
6557
|
-
this.validate(this);
|
|
6558
|
-
});
|
|
6559
|
-
|
|
6560
|
-
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
6561
|
-
if (evt.detail) {
|
|
6562
|
-
evt.detail.scrollIntoView({
|
|
6563
|
-
alignToTop: false,
|
|
6564
|
-
block: "nearest",
|
|
6565
|
-
behavior: "smooth"
|
|
6566
|
-
});
|
|
6567
|
-
}
|
|
6568
|
-
});
|
|
6569
6528
|
}
|
|
6570
6529
|
|
|
6571
6530
|
/**
|
|
@@ -6577,6 +6536,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6577
6536
|
this.nativeSelect = this.shadowRoot.querySelector('select');
|
|
6578
6537
|
|
|
6579
6538
|
this.addEventListener('keydown', (evt) => {
|
|
6539
|
+
|
|
6580
6540
|
// when the focus is on trigger not on close button
|
|
6581
6541
|
if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
|
|
6582
6542
|
if (evt.key === 'ArrowUp') {
|
|
@@ -6617,7 +6577,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6617
6577
|
if (this.dropdown.isBibFullscreen) {
|
|
6618
6578
|
evt.preventDefault();
|
|
6619
6579
|
|
|
6620
|
-
|
|
6580
|
+
// when the focus is on trigger not on close button
|
|
6621
6581
|
if (this.dropdown.shadowRoot.activeElement === this.dropdown.trigger) {
|
|
6622
6582
|
// `dropdown.focus` will move focus to the first focusable element in bib when it's open,
|
|
6623
6583
|
// when bib it not open, it will focus onto trigger.
|
|
@@ -6662,7 +6622,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6662
6622
|
this.lastLetter = key;
|
|
6663
6623
|
|
|
6664
6624
|
// Get all the options that start with the last letter pressed
|
|
6665
|
-
const letterOptions = this.options.filter((option) => {
|
|
6625
|
+
const letterOptions = this.menu.options.filter((option) => {
|
|
6666
6626
|
const optionText = option.value || '';
|
|
6667
6627
|
return optionText.toLowerCase().startsWith(this.lastLetter);
|
|
6668
6628
|
});
|
|
@@ -6678,8 +6638,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6678
6638
|
|
|
6679
6639
|
// Select the new option in the menu
|
|
6680
6640
|
const newOption = letterOptions[index];
|
|
6681
|
-
|
|
6682
|
-
this.menu.updateActiveOption(newOptionIndex);
|
|
6641
|
+
this.menu.updateActiveOption(newOption);
|
|
6683
6642
|
}
|
|
6684
6643
|
}
|
|
6685
6644
|
|
|
@@ -6759,27 +6718,12 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6759
6718
|
});
|
|
6760
6719
|
}
|
|
6761
6720
|
|
|
6762
|
-
/**
|
|
6763
|
-
* Determines the element error state based on the `required` attribute and input value.
|
|
6764
|
-
* @private
|
|
6765
|
-
* @returns {void}
|
|
6766
|
-
*/
|
|
6767
|
-
generateOptionsArray() {
|
|
6768
|
-
if (this.menu) {
|
|
6769
|
-
this.options = [...this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]')];
|
|
6770
|
-
} else {
|
|
6771
|
-
this.options = [];
|
|
6772
|
-
}
|
|
6773
|
-
}
|
|
6774
|
-
|
|
6775
6721
|
/**
|
|
6776
6722
|
* Resets all options to their default state.
|
|
6777
6723
|
* @private
|
|
6778
6724
|
*/
|
|
6779
6725
|
clearSelection() {
|
|
6780
6726
|
this.value = undefined;
|
|
6781
|
-
this.optionSelected = undefined;
|
|
6782
|
-
|
|
6783
6727
|
this.menu.multiSelect = this.multiSelect;
|
|
6784
6728
|
}
|
|
6785
6729
|
|
|
@@ -6818,42 +6762,23 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6818
6762
|
this.configureSelect();
|
|
6819
6763
|
}
|
|
6820
6764
|
|
|
6821
|
-
|
|
6822
|
-
* Update the menu value. With checks for menu existence. Awaits value update.
|
|
6823
|
-
* @param {string} value - The value to set in the menu.
|
|
6824
|
-
* @returns {void}
|
|
6825
|
-
* @private
|
|
6826
|
-
*/
|
|
6827
|
-
async updateMenuValue(value) {
|
|
6765
|
+
setMenuValue(value) {
|
|
6828
6766
|
if (!this.menu) return;
|
|
6829
|
-
|
|
6830
|
-
this.menu.setAttribute('value', value);
|
|
6831
|
-
if (value) {
|
|
6832
|
-
this.menu.value = value;
|
|
6833
|
-
} else {
|
|
6834
|
-
this.menu.reset();
|
|
6835
|
-
}
|
|
6836
|
-
await this.menu.updateComplete;
|
|
6767
|
+
this.menu.value = value;
|
|
6837
6768
|
}
|
|
6838
6769
|
|
|
6839
|
-
|
|
6770
|
+
updated(changedProperties) {
|
|
6840
6771
|
if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
|
|
6841
6772
|
this.clearSelection();
|
|
6842
6773
|
}
|
|
6843
6774
|
|
|
6844
6775
|
if (changedProperties.has('value')) {
|
|
6845
|
-
|
|
6846
|
-
await this.updateMenuValue(this.value);
|
|
6847
|
-
|
|
6848
|
-
if (this.menu) {
|
|
6849
|
-
this.optionSelected = this.menu.optionSelected;
|
|
6850
|
-
}
|
|
6851
|
-
} else {
|
|
6852
|
-
await this.updateMenuValue(undefined);
|
|
6853
|
-
}
|
|
6776
|
+
this.setMenuValue(this.value);
|
|
6854
6777
|
|
|
6855
6778
|
this._updateNativeSelect();
|
|
6856
6779
|
this.validate();
|
|
6780
|
+
this.hideBib();
|
|
6781
|
+
this.focus();
|
|
6857
6782
|
|
|
6858
6783
|
// LEGACY EVENT
|
|
6859
6784
|
this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
|
|
@@ -6867,16 +6792,12 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6867
6792
|
cancelable: true,
|
|
6868
6793
|
composed: true,
|
|
6869
6794
|
detail: {
|
|
6870
|
-
optionSelected: this.optionSelected,
|
|
6871
|
-
value: this.
|
|
6795
|
+
optionSelected: this.menu.optionSelected,
|
|
6796
|
+
value: this.menu.value
|
|
6872
6797
|
}
|
|
6873
6798
|
}));
|
|
6874
6799
|
}
|
|
6875
6800
|
|
|
6876
|
-
if (changedProperties.has('optionSelected')) {
|
|
6877
|
-
this.updateDisplayedValue();
|
|
6878
|
-
}
|
|
6879
|
-
|
|
6880
6801
|
if (changedProperties.has('error')) {
|
|
6881
6802
|
this.validate(true);
|
|
6882
6803
|
this.nativeSelect.setCustomValidity(this.error || '');
|
|
@@ -6925,10 +6846,11 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6925
6846
|
*/
|
|
6926
6847
|
_handleNativeSelectChange(event) {
|
|
6927
6848
|
const selectedOption = event.target.options[event.target.selectedIndex];
|
|
6849
|
+
if (!selectedOption) return;
|
|
6928
6850
|
const selectedValue = selectedOption.value;
|
|
6929
6851
|
|
|
6930
6852
|
if (this.multiSelect) {
|
|
6931
|
-
const currentArray = this.
|
|
6853
|
+
const currentArray = this.menu.value || [];
|
|
6932
6854
|
|
|
6933
6855
|
if (!currentArray.includes(selectedValue)) {
|
|
6934
6856
|
this.value = JSON.stringify([
|
|
@@ -6951,40 +6873,17 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6951
6873
|
* @private
|
|
6952
6874
|
*/
|
|
6953
6875
|
_updateNativeSelect() {
|
|
6954
|
-
if (!this.nativeSelect)
|
|
6955
|
-
return;
|
|
6956
|
-
}
|
|
6876
|
+
if (!this.nativeSelect) return;
|
|
6957
6877
|
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
} else {
|
|
6961
|
-
this.nativeSelect.value = this.value || '';
|
|
6962
|
-
}
|
|
6963
|
-
}
|
|
6878
|
+
let { formattedValue } = this;
|
|
6879
|
+
if (!formattedValue) formattedValue = this.multiSelect ? [] : '';
|
|
6964
6880
|
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
*/
|
|
6970
|
-
renderAriaHtml() {
|
|
6971
|
-
return html`
|
|
6972
|
-
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
6973
|
-
${this.optionActive && this.options.length > 0
|
|
6974
|
-
? html`
|
|
6975
|
-
${`${this.optionActive.innerText}, option ${this.options.indexOf(this.optionActive) + 1} of ${this.options.length}`}
|
|
6976
|
-
`
|
|
6977
|
-
: undefined
|
|
6978
|
-
};
|
|
6881
|
+
const currentValue = this.nativeSelect.value;
|
|
6882
|
+
const newValue = this.multiSelect
|
|
6883
|
+
? formattedValue[0] || ''
|
|
6884
|
+
: this.value || '';
|
|
6979
6885
|
|
|
6980
|
-
|
|
6981
|
-
? html`
|
|
6982
|
-
${`${this.optionSelected.innerText} selected`}
|
|
6983
|
-
`
|
|
6984
|
-
: undefined
|
|
6985
|
-
};
|
|
6986
|
-
</div>
|
|
6987
|
-
`;
|
|
6886
|
+
if (currentValue !== newValue) this.nativeSelect.value = newValue || '';
|
|
6988
6887
|
}
|
|
6989
6888
|
|
|
6990
6889
|
/**
|
|
@@ -7005,16 +6904,16 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7005
6904
|
autocomplete="${ifDefined$1(this.autocomplete)}"
|
|
7006
6905
|
@change="${this._handleNativeSelectChange}">
|
|
7007
6906
|
<option value="" ?selected="${!this.value}"></option>
|
|
7008
|
-
${this.options.map((option) => {
|
|
7009
|
-
|
|
7010
|
-
|
|
6907
|
+
${this.menu && Array.isArray(this.menu.options) && this.menu.options.map((option) => {
|
|
6908
|
+
const optionValue = option.value || option.textContent;
|
|
6909
|
+
return html`
|
|
7011
6910
|
<option
|
|
7012
6911
|
value="${optionValue}"
|
|
7013
6912
|
?selected="${this.value === optionValue}">
|
|
7014
6913
|
${option.textContent}
|
|
7015
6914
|
</option>
|
|
7016
6915
|
`;
|
|
7017
|
-
|
|
6916
|
+
})}
|
|
7018
6917
|
</select>
|
|
7019
6918
|
</div>
|
|
7020
6919
|
`;
|