@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.0 → 0.0.0-pr1413.2
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/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +121 -129
- package/components/combobox/demo/index.min.js +121 -129
- package/components/combobox/demo/keyboardBehavior.md +9 -36
- package/components/combobox/dist/auro-combobox.d.ts +13 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +4 -2
- package/components/combobox/dist/index.js +120 -128
- package/components/combobox/dist/registered.js +120 -128
- package/components/counter/demo/api.min.js +13 -3
- package/components/counter/demo/index.min.js +13 -3
- package/components/counter/dist/index.js +13 -3
- package/components/counter/dist/registered.js +13 -3
- package/components/datepicker/demo/api.min.js +44 -21
- package/components/datepicker/demo/index.min.js +44 -21
- package/components/datepicker/dist/index.js +44 -21
- package/components/datepicker/dist/registered.js +44 -21
- package/components/dropdown/demo/api.md +29 -28
- package/components/dropdown/demo/api.min.js +12 -2
- package/components/dropdown/demo/index.min.js +12 -2
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/index.js +12 -2
- package/components/dropdown/dist/registered.js +12 -2
- package/components/form/demo/api.min.js +363 -264
- package/components/form/demo/index.min.js +363 -264
- package/components/input/demo/api.min.js +102 -77
- package/components/input/demo/index.min.js +102 -77
- package/components/input/dist/auro-input.d.ts +11 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +32 -18
- package/components/input/dist/registered.js +32 -18
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +87 -26
- package/components/select/demo/index.min.js +87 -26
- package/components/select/demo/keyboardBehavior.md +3 -3
- package/components/select/dist/index.js +86 -25
- package/components/select/dist/registered.js +86 -25
- package/components/select/dist/selectKeyboardStrategy.d.ts +5 -2
- package/custom-elements.json +62 -4
- package/package.json +1 -1
|
@@ -47,6 +47,17 @@ export class AuroInput extends BaseInput {
|
|
|
47
47
|
* @private
|
|
48
48
|
*/
|
|
49
49
|
private iconTag;
|
|
50
|
+
/**
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
private clearButtonRef;
|
|
54
|
+
/**
|
|
55
|
+
* Returns classmap configuration for the clear button visibility.
|
|
56
|
+
* The button is hidden when the input has no value, is read-only, or is disabled.
|
|
57
|
+
* @private
|
|
58
|
+
* @returns {Record<string, boolean>} - Classmap object controlling clear button display state.
|
|
59
|
+
*/
|
|
60
|
+
private get clearBtnClassMap();
|
|
50
61
|
/**
|
|
51
62
|
* Determines if the HTML input element should be visually hidden.
|
|
52
63
|
* Returns true when display value content exists without focus and has a value,
|
|
@@ -3,6 +3,7 @@ import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
|
3
3
|
import { repeat } from 'lit/directives/repeat.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
+
import { createRef, ref } from 'lit/directives/ref.js';
|
|
6
7
|
|
|
7
8
|
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}`;
|
|
8
9
|
|
|
@@ -5602,6 +5603,12 @@ class BaseInput extends AuroElement {
|
|
|
5602
5603
|
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5603
5604
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
5604
5605
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5606
|
+
this.clearBtn = this.clearButtonRef.value;
|
|
5607
|
+
|
|
5608
|
+
// This must get moved into inputKeyboardStrategy when implemented
|
|
5609
|
+
this.clearBtn.addEventListener('keydown', (evt) => {
|
|
5610
|
+
evt.stopPropagation();
|
|
5611
|
+
});
|
|
5605
5612
|
|
|
5606
5613
|
this.patchInputEvent(this.inputElement);
|
|
5607
5614
|
|
|
@@ -6625,7 +6632,7 @@ class AuroHelpText extends LitElement {
|
|
|
6625
6632
|
}
|
|
6626
6633
|
}
|
|
6627
6634
|
|
|
6628
|
-
var formkitVersion = '
|
|
6635
|
+
var formkitVersion = '202604031554';
|
|
6629
6636
|
|
|
6630
6637
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6631
6638
|
// See LICENSE in the project root for license information.
|
|
@@ -6682,6 +6689,11 @@ class AuroInput extends BaseInput {
|
|
|
6682
6689
|
* @private
|
|
6683
6690
|
*/
|
|
6684
6691
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, _);
|
|
6692
|
+
|
|
6693
|
+
/**
|
|
6694
|
+
* @private
|
|
6695
|
+
*/
|
|
6696
|
+
this.clearButtonRef = createRef();
|
|
6685
6697
|
}
|
|
6686
6698
|
|
|
6687
6699
|
static get styles() {
|
|
@@ -6699,6 +6711,19 @@ class AuroInput extends BaseInput {
|
|
|
6699
6711
|
];
|
|
6700
6712
|
}
|
|
6701
6713
|
|
|
6714
|
+
/**
|
|
6715
|
+
* Returns classmap configuration for the clear button visibility.
|
|
6716
|
+
* The button is hidden when the input has no value, is read-only, or is disabled.
|
|
6717
|
+
* @private
|
|
6718
|
+
* @returns {Record<string, boolean>} - Classmap object controlling clear button display state.
|
|
6719
|
+
*/
|
|
6720
|
+
get clearBtnClassMap() {
|
|
6721
|
+
return {
|
|
6722
|
+
'util_displayHidden': !this.hasValue || this.readyOnly || this.disabled
|
|
6723
|
+
};
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
|
|
6702
6727
|
/**
|
|
6703
6728
|
* Determines if the HTML input element should be visually hidden.
|
|
6704
6729
|
* Returns true when display value content exists without focus and has a value,
|
|
@@ -7018,10 +7043,11 @@ class AuroInput extends BaseInput {
|
|
|
7018
7043
|
<${this.buttonTag}
|
|
7019
7044
|
@click="${this.handleClickClear}"
|
|
7020
7045
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7021
|
-
class="notificationBtn clearBtn"
|
|
7046
|
+
class="notificationBtn clearBtn ${classMap(this.clearBtnClassMap)}"
|
|
7022
7047
|
shape="circle"
|
|
7023
7048
|
size="sm"
|
|
7024
|
-
variant="ghost"
|
|
7049
|
+
variant="ghost"
|
|
7050
|
+
${ref(this.clearButtonRef)}>
|
|
7025
7051
|
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
7026
7052
|
<${this.iconTag}
|
|
7027
7053
|
aria-hidden="true"
|
|
@@ -7166,11 +7192,7 @@ class AuroInput extends BaseInput {
|
|
|
7166
7192
|
<div part="accent-right" class="accents right">
|
|
7167
7193
|
${this.renderValidationErrorIconHtml()}
|
|
7168
7194
|
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7169
|
-
${this.
|
|
7170
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7171
|
-
${this.renderHtmlActionClear()}
|
|
7172
|
-
` : undefined}
|
|
7173
|
-
` : undefined}
|
|
7195
|
+
${this.renderHtmlActionClear()}
|
|
7174
7196
|
</div>
|
|
7175
7197
|
</div>
|
|
7176
7198
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -7202,11 +7224,7 @@ class AuroInput extends BaseInput {
|
|
|
7202
7224
|
${this.layout.includes('right') || this.layout === "emphasized" ? html$1`
|
|
7203
7225
|
${this.renderValidationErrorIconHtml()}
|
|
7204
7226
|
` : undefined}
|
|
7205
|
-
${this.
|
|
7206
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7207
|
-
${this.renderHtmlActionClear()}
|
|
7208
|
-
` : undefined}
|
|
7209
|
-
` : undefined}
|
|
7227
|
+
${this.renderHtmlActionClear()}
|
|
7210
7228
|
</div>
|
|
7211
7229
|
</div>
|
|
7212
7230
|
<div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
|
|
@@ -7234,11 +7252,7 @@ class AuroInput extends BaseInput {
|
|
|
7234
7252
|
</div>
|
|
7235
7253
|
<div class="accents right">
|
|
7236
7254
|
${this.renderValidationErrorIconHtml()}
|
|
7237
|
-
${this.
|
|
7238
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7239
|
-
${this.renderHtmlActionClear()}
|
|
7240
|
-
` : undefined}
|
|
7241
|
-
` : undefined}
|
|
7255
|
+
${this.renderHtmlActionClear()}
|
|
7242
7256
|
</div>
|
|
7243
7257
|
</div>
|
|
7244
7258
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -3,6 +3,7 @@ import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
|
3
3
|
import { repeat } from 'lit/directives/repeat.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
+
import { createRef, ref } from 'lit/directives/ref.js';
|
|
6
7
|
|
|
7
8
|
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}`;
|
|
8
9
|
|
|
@@ -5602,6 +5603,12 @@ class BaseInput extends AuroElement {
|
|
|
5602
5603
|
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5603
5604
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
5604
5605
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5606
|
+
this.clearBtn = this.clearButtonRef.value;
|
|
5607
|
+
|
|
5608
|
+
// This must get moved into inputKeyboardStrategy when implemented
|
|
5609
|
+
this.clearBtn.addEventListener('keydown', (evt) => {
|
|
5610
|
+
evt.stopPropagation();
|
|
5611
|
+
});
|
|
5605
5612
|
|
|
5606
5613
|
this.patchInputEvent(this.inputElement);
|
|
5607
5614
|
|
|
@@ -6625,7 +6632,7 @@ class AuroHelpText extends LitElement {
|
|
|
6625
6632
|
}
|
|
6626
6633
|
}
|
|
6627
6634
|
|
|
6628
|
-
var formkitVersion = '
|
|
6635
|
+
var formkitVersion = '202604031554';
|
|
6629
6636
|
|
|
6630
6637
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6631
6638
|
// See LICENSE in the project root for license information.
|
|
@@ -6682,6 +6689,11 @@ class AuroInput extends BaseInput {
|
|
|
6682
6689
|
* @private
|
|
6683
6690
|
*/
|
|
6684
6691
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, _);
|
|
6692
|
+
|
|
6693
|
+
/**
|
|
6694
|
+
* @private
|
|
6695
|
+
*/
|
|
6696
|
+
this.clearButtonRef = createRef();
|
|
6685
6697
|
}
|
|
6686
6698
|
|
|
6687
6699
|
static get styles() {
|
|
@@ -6699,6 +6711,19 @@ class AuroInput extends BaseInput {
|
|
|
6699
6711
|
];
|
|
6700
6712
|
}
|
|
6701
6713
|
|
|
6714
|
+
/**
|
|
6715
|
+
* Returns classmap configuration for the clear button visibility.
|
|
6716
|
+
* The button is hidden when the input has no value, is read-only, or is disabled.
|
|
6717
|
+
* @private
|
|
6718
|
+
* @returns {Record<string, boolean>} - Classmap object controlling clear button display state.
|
|
6719
|
+
*/
|
|
6720
|
+
get clearBtnClassMap() {
|
|
6721
|
+
return {
|
|
6722
|
+
'util_displayHidden': !this.hasValue || this.readyOnly || this.disabled
|
|
6723
|
+
};
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
|
|
6702
6727
|
/**
|
|
6703
6728
|
* Determines if the HTML input element should be visually hidden.
|
|
6704
6729
|
* Returns true when display value content exists without focus and has a value,
|
|
@@ -7018,10 +7043,11 @@ class AuroInput extends BaseInput {
|
|
|
7018
7043
|
<${this.buttonTag}
|
|
7019
7044
|
@click="${this.handleClickClear}"
|
|
7020
7045
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7021
|
-
class="notificationBtn clearBtn"
|
|
7046
|
+
class="notificationBtn clearBtn ${classMap(this.clearBtnClassMap)}"
|
|
7022
7047
|
shape="circle"
|
|
7023
7048
|
size="sm"
|
|
7024
|
-
variant="ghost"
|
|
7049
|
+
variant="ghost"
|
|
7050
|
+
${ref(this.clearButtonRef)}>
|
|
7025
7051
|
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
7026
7052
|
<${this.iconTag}
|
|
7027
7053
|
aria-hidden="true"
|
|
@@ -7166,11 +7192,7 @@ class AuroInput extends BaseInput {
|
|
|
7166
7192
|
<div part="accent-right" class="accents right">
|
|
7167
7193
|
${this.renderValidationErrorIconHtml()}
|
|
7168
7194
|
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7169
|
-
${this.
|
|
7170
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7171
|
-
${this.renderHtmlActionClear()}
|
|
7172
|
-
` : undefined}
|
|
7173
|
-
` : undefined}
|
|
7195
|
+
${this.renderHtmlActionClear()}
|
|
7174
7196
|
</div>
|
|
7175
7197
|
</div>
|
|
7176
7198
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -7202,11 +7224,7 @@ class AuroInput extends BaseInput {
|
|
|
7202
7224
|
${this.layout.includes('right') || this.layout === "emphasized" ? html$1`
|
|
7203
7225
|
${this.renderValidationErrorIconHtml()}
|
|
7204
7226
|
` : undefined}
|
|
7205
|
-
${this.
|
|
7206
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7207
|
-
${this.renderHtmlActionClear()}
|
|
7208
|
-
` : undefined}
|
|
7209
|
-
` : undefined}
|
|
7227
|
+
${this.renderHtmlActionClear()}
|
|
7210
7228
|
</div>
|
|
7211
7229
|
</div>
|
|
7212
7230
|
<div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
|
|
@@ -7234,11 +7252,7 @@ class AuroInput extends BaseInput {
|
|
|
7234
7252
|
</div>
|
|
7235
7253
|
<div class="accents right">
|
|
7236
7254
|
${this.renderValidationErrorIconHtml()}
|
|
7237
|
-
${this.
|
|
7238
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
7239
|
-
${this.renderHtmlActionClear()}
|
|
7240
|
-
` : undefined}
|
|
7241
|
-
` : undefined}
|
|
7255
|
+
${this.renderHtmlActionClear()}
|
|
7242
7256
|
</div>
|
|
7243
7257
|
</div>
|
|
7244
7258
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -965,7 +965,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
965
965
|
});
|
|
966
966
|
|
|
967
967
|
return u$1`
|
|
968
|
-
<div class="${classes}">
|
|
968
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
969
969
|
${this.selected && !this.noCheckmark
|
|
970
970
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
971
971
|
: undefined}
|
|
@@ -873,7 +873,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
873
873
|
});
|
|
874
874
|
|
|
875
875
|
return u$1`
|
|
876
|
-
<div class="${classes}">
|
|
876
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
877
877
|
${this.selected && !this.noCheckmark
|
|
878
878
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
879
879
|
: undefined}
|
|
@@ -847,7 +847,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
847
847
|
});
|
|
848
848
|
|
|
849
849
|
return html$1`
|
|
850
|
-
<div class="${classes}">
|
|
850
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
851
851
|
${this.selected && !this.noCheckmark
|
|
852
852
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
853
853
|
: undefined}
|
|
@@ -794,7 +794,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
794
794
|
});
|
|
795
795
|
|
|
796
796
|
return html$1`
|
|
797
|
-
<div class="${classes}">
|
|
797
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
798
798
|
${this.selected && !this.noCheckmark
|
|
799
799
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
800
800
|
: undefined}
|
|
@@ -1645,7 +1645,7 @@ class AuroHelpText extends i$2 {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
|
-
var formkitVersion = '
|
|
1648
|
+
var formkitVersion = '202604031554';
|
|
1649
1649
|
|
|
1650
1650
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1651
1651
|
// See LICENSE in the project root for license information.
|
|
@@ -1620,7 +1620,7 @@ class AuroHelpText extends i$2 {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
var formkitVersion = '
|
|
1623
|
+
var formkitVersion = '202604031554';
|
|
1624
1624
|
|
|
1625
1625
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1626
1626
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202604031554';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202604031554';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -1363,9 +1363,16 @@ function navigateArrow(component, direction, options = {}) {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
|
+
/* eslint-disable new-cap */
|
|
1367
|
+
|
|
1366
1368
|
const selectKeyboardStrategy = {
|
|
1367
1369
|
ArrowUp(component, evt, ctx) {
|
|
1368
1370
|
evt.preventDefault();
|
|
1371
|
+
if (evt.altKey || evt.metaKey) {
|
|
1372
|
+
// navigate to first enabled option
|
|
1373
|
+
selectKeyboardStrategy.Home(component, evt, ctx);
|
|
1374
|
+
return;
|
|
1375
|
+
}
|
|
1369
1376
|
navigateArrow(component, 'up', {
|
|
1370
1377
|
ctx,
|
|
1371
1378
|
showFn: () => component.dropdown.show(),
|
|
@@ -1374,30 +1381,36 @@ const selectKeyboardStrategy = {
|
|
|
1374
1381
|
|
|
1375
1382
|
ArrowDown(component, evt, ctx) {
|
|
1376
1383
|
evt.preventDefault();
|
|
1384
|
+
if (evt.altKey || evt.metaKey) {
|
|
1385
|
+
// navigate to last enabled option
|
|
1386
|
+
selectKeyboardStrategy.End(component, evt, ctx);
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1377
1389
|
navigateArrow(component, 'down', {
|
|
1378
1390
|
ctx,
|
|
1379
1391
|
showFn: () => component.dropdown.show(),
|
|
1380
1392
|
});
|
|
1381
1393
|
},
|
|
1382
1394
|
|
|
1383
|
-
Enter(component, evt) {
|
|
1395
|
+
Enter(component, evt, ctx) {
|
|
1384
1396
|
evt.preventDefault();
|
|
1397
|
+
evt.stopPropagation();
|
|
1398
|
+
if (!ctx.isExpanded) {
|
|
1399
|
+
component.dropdown.show();
|
|
1400
|
+
return;
|
|
1401
|
+
}
|
|
1385
1402
|
component.menu.makeSelection();
|
|
1386
1403
|
},
|
|
1387
1404
|
|
|
1388
|
-
|
|
1405
|
+
Escape(component, evt, ctx) {
|
|
1389
1406
|
if (!ctx.isExpanded) {
|
|
1390
1407
|
return;
|
|
1391
1408
|
}
|
|
1409
|
+
component.dropdown.hide();
|
|
1410
|
+
},
|
|
1392
1411
|
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
if (evt.shiftKey) {
|
|
1396
|
-
evt.preventDefault();
|
|
1397
|
-
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1398
|
-
if (firstActive) {
|
|
1399
|
-
component.menu.updateActiveOption(firstActive);
|
|
1400
|
-
}
|
|
1412
|
+
Tab(component, evt, ctx) {
|
|
1413
|
+
if (!ctx.isExpanded) {
|
|
1401
1414
|
return;
|
|
1402
1415
|
}
|
|
1403
1416
|
|
|
@@ -1408,9 +1421,41 @@ const selectKeyboardStrategy = {
|
|
|
1408
1421
|
}
|
|
1409
1422
|
component.dropdown.hide();
|
|
1410
1423
|
},
|
|
1424
|
+
Home(component, evt, ctx) {
|
|
1425
|
+
if (!ctx.isExpanded) {
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
evt.preventDefault();
|
|
1429
|
+
evt.stopPropagation();
|
|
1430
|
+
const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
1431
|
+
if (firstOption) {
|
|
1432
|
+
component.menu.updateActiveOption(firstOption);
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1411
1435
|
|
|
1412
|
-
|
|
1436
|
+
End(component, evt, ctx) {
|
|
1437
|
+
if (!ctx.isExpanded) {
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1440
|
+
evt.preventDefault();
|
|
1441
|
+
evt.stopPropagation();
|
|
1442
|
+
const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled);
|
|
1443
|
+
if (lastOption) {
|
|
1444
|
+
component.menu.updateActiveOption(lastOption);
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
|
|
1448
|
+
default(component, evt, ctx) {
|
|
1413
1449
|
component.updateActiveOptionBasedOnKey(evt.key);
|
|
1450
|
+
if (evt.key === ' ') {
|
|
1451
|
+
evt.preventDefault();
|
|
1452
|
+
evt.stopPropagation();
|
|
1453
|
+
if (ctx.isExpanded) {
|
|
1454
|
+
component.dropdown.hide();
|
|
1455
|
+
return;
|
|
1456
|
+
}
|
|
1457
|
+
component.dropdown.show();
|
|
1458
|
+
}
|
|
1414
1459
|
},
|
|
1415
1460
|
};
|
|
1416
1461
|
|
|
@@ -5055,7 +5100,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5055
5100
|
}
|
|
5056
5101
|
};
|
|
5057
5102
|
|
|
5058
|
-
var formkitVersion$1 = '
|
|
5103
|
+
var formkitVersion$1 = '202604031554';
|
|
5059
5104
|
|
|
5060
5105
|
class AuroElement extends i$3 {
|
|
5061
5106
|
static get properties() {
|
|
@@ -5236,6 +5281,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5236
5281
|
this.appearance = 'default';
|
|
5237
5282
|
this.chevron = false;
|
|
5238
5283
|
this.disabled = false;
|
|
5284
|
+
this.disableKeyboardHandling = false;
|
|
5239
5285
|
this.error = false;
|
|
5240
5286
|
this.tabIndex = 0;
|
|
5241
5287
|
this.noToggle = false;
|
|
@@ -5447,6 +5493,14 @@ class AuroDropdown extends AuroElement {
|
|
|
5447
5493
|
reflect: true
|
|
5448
5494
|
},
|
|
5449
5495
|
|
|
5496
|
+
/**
|
|
5497
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
5498
|
+
*/
|
|
5499
|
+
disableKeyboardHandling: {
|
|
5500
|
+
type: Boolean,
|
|
5501
|
+
reflect: true
|
|
5502
|
+
},
|
|
5503
|
+
|
|
5450
5504
|
/**
|
|
5451
5505
|
* @private
|
|
5452
5506
|
*/
|
|
@@ -5752,7 +5806,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5752
5806
|
|
|
5753
5807
|
firstUpdated() {
|
|
5754
5808
|
// Configure the floater to, this will generate the ID for the bib
|
|
5755
|
-
this.floater.configure(this, 'auroDropdown');
|
|
5809
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
5756
5810
|
|
|
5757
5811
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
5758
5812
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -6060,6 +6114,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6060
6114
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6061
6115
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6062
6116
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6117
|
+
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
6063
6118
|
@focusin="${this.handleFocusin}"
|
|
6064
6119
|
@blur="${this.handleFocusOut}">
|
|
6065
6120
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -6798,7 +6853,7 @@ class AuroHelpText extends i$3 {
|
|
|
6798
6853
|
}
|
|
6799
6854
|
}
|
|
6800
6855
|
|
|
6801
|
-
var formkitVersion = '
|
|
6856
|
+
var formkitVersion = '202604031554';
|
|
6802
6857
|
|
|
6803
6858
|
var styleCss$2 = i$6`.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}`;
|
|
6804
6859
|
|
|
@@ -7341,6 +7396,20 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7341
7396
|
if (this.dropdown.isPopoverVisible) {
|
|
7342
7397
|
this.updateMenuShapeSize();
|
|
7343
7398
|
|
|
7399
|
+
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7400
|
+
// No selection → first enabled option gets highlighted
|
|
7401
|
+
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7402
|
+
this.menu.updateActiveOption(this.optionSelected);
|
|
7403
|
+
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7404
|
+
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7405
|
+
} else if (!this.menu.optionActive) {
|
|
7406
|
+
// If no activeOption has yet to be set, then make the first enabled option active by default
|
|
7407
|
+
const firstActive = this.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
7408
|
+
this.menu.updateActiveOption(firstActive);
|
|
7409
|
+
}
|
|
7410
|
+
|
|
7411
|
+
// Scroll the selected option into view when dropdown opens
|
|
7412
|
+
this.scrollSelectedOptionIntoView();
|
|
7344
7413
|
if (this.dropdown.isBibFullscreen) {
|
|
7345
7414
|
// Hide the trigger from assistive technology so VoiceOver cannot reach it
|
|
7346
7415
|
// behind the fullscreen dialog
|
|
@@ -7352,17 +7421,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7352
7421
|
// multiple Lit update cycles before moving focus into the bib
|
|
7353
7422
|
doubleRaf(() => {
|
|
7354
7423
|
this.bibtemplate.focusCloseButton();
|
|
7355
|
-
|
|
7356
|
-
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7357
|
-
// No selection → no highlight
|
|
7358
|
-
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7359
|
-
this.menu.updateActiveOption(this.optionSelected);
|
|
7360
|
-
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7361
|
-
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7362
|
-
}
|
|
7363
|
-
|
|
7364
|
-
// Scroll the selected option into view when dropdown opens
|
|
7365
|
-
this.scrollSelectedOptionIntoView();
|
|
7366
7424
|
});
|
|
7367
7425
|
} else {
|
|
7368
7426
|
// wait til the bib gets fully rendered
|
|
@@ -8048,6 +8106,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8048
8106
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8049
8107
|
</div>
|
|
8050
8108
|
<${this.dropdownTag}
|
|
8109
|
+
disableKeyboardHandling
|
|
8051
8110
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8052
8111
|
.a11yRole=${"combobox"}
|
|
8053
8112
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8127,6 +8186,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8127
8186
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8128
8187
|
</div>
|
|
8129
8188
|
<${this.dropdownTag}
|
|
8189
|
+
disableKeyboardHandling
|
|
8130
8190
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8131
8191
|
.a11yRole=${"combobox"}
|
|
8132
8192
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8212,6 +8272,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8212
8272
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8213
8273
|
</div>
|
|
8214
8274
|
<${this.dropdownTag}
|
|
8275
|
+
disableKeyboardHandling
|
|
8215
8276
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8216
8277
|
.a11yRole=${"combobox"}
|
|
8217
8278
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8889,7 +8950,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8889
8950
|
});
|
|
8890
8951
|
|
|
8891
8952
|
return u$4`
|
|
8892
|
-
<div class="${classes}">
|
|
8953
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
8893
8954
|
${this.selected && !this.noCheckmark
|
|
8894
8955
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
8895
8956
|
: undefined}
|