@aurodesignsystem-dev/auro-formkit 0.0.0-pr1395.0 → 0.0.0-pr1395.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 +151 -40
- package/components/combobox/demo/index.min.js +151 -40
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +74 -13
- package/components/datepicker/demo/index.min.js +74 -13
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +4 -0
- package/components/datepicker/dist/index.js +74 -13
- package/components/datepicker/dist/registered.js +74 -13
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.min.js +240 -63
- package/components/form/demo/index.min.js +240 -63
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +148 -37
- package/components/menu/demo/index.min.js +148 -37
- package/components/menu/dist/auro-menu.context.d.ts +15 -3
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +148 -37
- package/components/menu/dist/registered.js +148 -37
- 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 +158 -42
- package/components/select/demo/index.min.js +158 -42
- package/components/select/dist/index.js +10 -5
- package/components/select/dist/registered.js +10 -5
- package/custom-elements.json +1514 -1429
- package/package.json +11 -4
|
@@ -4959,7 +4959,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
4959
4959
|
}
|
|
4960
4960
|
};
|
|
4961
4961
|
|
|
4962
|
-
var formkitVersion$1 = '
|
|
4962
|
+
var formkitVersion$1 = '202603241855';
|
|
4963
4963
|
|
|
4964
4964
|
class AuroElement extends i$3 {
|
|
4965
4965
|
static get properties() {
|
|
@@ -6703,7 +6703,7 @@ class AuroHelpText extends i$3 {
|
|
|
6703
6703
|
}
|
|
6704
6704
|
}
|
|
6705
6705
|
|
|
6706
|
-
var formkitVersion = '
|
|
6706
|
+
var formkitVersion = '202603241855';
|
|
6707
6707
|
|
|
6708
6708
|
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}`;
|
|
6709
6709
|
|
|
@@ -7484,9 +7484,11 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7484
7484
|
// Update the displayed value
|
|
7485
7485
|
this.updateDisplayedValue();
|
|
7486
7486
|
|
|
7487
|
-
|
|
7487
|
+
const options = event.detail.options || [];
|
|
7488
|
+
|
|
7488
7489
|
this.value = event.detail.stringValue;
|
|
7489
|
-
|
|
7490
|
+
|
|
7491
|
+
this.optionSelected = this.multiSelect ? options : options[0];
|
|
7490
7492
|
|
|
7491
7493
|
if (this.dropdown.isPopoverVisible) {
|
|
7492
7494
|
this.dropdown.hide();
|
|
@@ -7736,7 +7738,10 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7736
7738
|
}
|
|
7737
7739
|
|
|
7738
7740
|
updated(changedProperties) {
|
|
7739
|
-
if (
|
|
7741
|
+
if (
|
|
7742
|
+
changedProperties.has('multiSelect') &&
|
|
7743
|
+
!changedProperties.has('value')
|
|
7744
|
+
) {
|
|
7740
7745
|
this.clearSelection();
|
|
7741
7746
|
}
|
|
7742
7747
|
|
|
@@ -8472,10 +8477,20 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8472
8477
|
subscribe: true
|
|
8473
8478
|
});
|
|
8474
8479
|
|
|
8475
|
-
// Establish the key property as early as possible
|
|
8480
|
+
// Establish the key property as early as possible.
|
|
8481
|
+
// When a framework (e.g. Svelte) inserts the element into the DOM before
|
|
8482
|
+
// setting its `value` property, both `getAttribute('value')` and
|
|
8483
|
+
// `getAttribute('key')` return null here. Setting `this.key = null`
|
|
8484
|
+
// would block the fallback in `updated()` that assigns key from the
|
|
8485
|
+
// value property (the guard checked `=== undefined`). Only assign key
|
|
8486
|
+
// if at least one source attribute is actually present so that the
|
|
8487
|
+
// `updated()` fallback can run when the value property arrives later.
|
|
8476
8488
|
const valueAttr = this.getAttribute('value');
|
|
8477
8489
|
const keyAttr = this.getAttribute('key');
|
|
8478
|
-
|
|
8490
|
+
const resolvedKey = keyAttr !== null ? keyAttr : valueAttr;
|
|
8491
|
+
if (resolvedKey !== null) {
|
|
8492
|
+
this.key = resolvedKey;
|
|
8493
|
+
}
|
|
8479
8494
|
}
|
|
8480
8495
|
|
|
8481
8496
|
firstUpdated() {
|
|
@@ -8525,8 +8540,14 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8525
8540
|
this.updateTextHighlight();
|
|
8526
8541
|
}
|
|
8527
8542
|
|
|
8528
|
-
// Set the key to be the passed value if no key is provided
|
|
8529
|
-
|
|
8543
|
+
// Set the key to be the passed value if no key is provided.
|
|
8544
|
+
// Loose equality (== null) is intentional: it catches both null AND
|
|
8545
|
+
// undefined. When a framework (e.g. Svelte, React) inserts the element
|
|
8546
|
+
// before setting its value property, connectedCallback skips key
|
|
8547
|
+
// assignment because both attributes are null at that point. The Lit
|
|
8548
|
+
// property default for `key` is undefined (not null), so strict
|
|
8549
|
+
// === null would miss the case and the fallback would never run.
|
|
8550
|
+
if (changedProperties.has('value') && this.key == null) { // eslint-disable-line eqeqeq, no-eq-null
|
|
8530
8551
|
this.key = this.value;
|
|
8531
8552
|
}
|
|
8532
8553
|
}
|
|
@@ -8895,6 +8916,9 @@ class MenuService {
|
|
|
8895
8916
|
this._subscribers = [];
|
|
8896
8917
|
this.internalUpdateInProgress = false;
|
|
8897
8918
|
this.selectedOptions = [];
|
|
8919
|
+
this._pendingValue = null;
|
|
8920
|
+
this._pendingRetryScheduled = false;
|
|
8921
|
+
this._pendingRetryCount = 0;
|
|
8898
8922
|
}
|
|
8899
8923
|
|
|
8900
8924
|
/**
|
|
@@ -8934,6 +8958,9 @@ class MenuService {
|
|
|
8934
8958
|
hostDisconnected() {
|
|
8935
8959
|
this._subscribers = [];
|
|
8936
8960
|
this._menuOptions = [];
|
|
8961
|
+
this._pendingValue = null;
|
|
8962
|
+
this._pendingRetryScheduled = false;
|
|
8963
|
+
this._pendingRetryCount = 0;
|
|
8937
8964
|
}
|
|
8938
8965
|
|
|
8939
8966
|
/**
|
|
@@ -9136,17 +9163,22 @@ class MenuService {
|
|
|
9136
9163
|
* @param {string|number|Array<string|number>} value - The value(s) to select.
|
|
9137
9164
|
*/
|
|
9138
9165
|
selectByValue(value) {
|
|
9139
|
-
|
|
9140
|
-
if (this.internalUpdateInProgress ||
|
|
9141
|
-
this.host.internalUpdateInProgress ||
|
|
9142
|
-
value === undefined ||
|
|
9166
|
+
const isEmptyValue = value === undefined ||
|
|
9143
9167
|
value === null ||
|
|
9144
9168
|
(Array.isArray(value) && value.length === 0) ||
|
|
9145
|
-
(typeof value === 'string' && value.trim() === '')
|
|
9169
|
+
(typeof value === 'string' && value.trim() === '');
|
|
9170
|
+
|
|
9171
|
+
// Early exit for invalid/empty values
|
|
9172
|
+
if (isEmptyValue) {
|
|
9146
9173
|
return;
|
|
9147
9174
|
}
|
|
9148
9175
|
|
|
9149
|
-
|
|
9176
|
+
// If an internal update cycle is still in progress, defer value application
|
|
9177
|
+
// rather than dropping it.
|
|
9178
|
+
if (this.internalUpdateInProgress || this.host.internalUpdateInProgress) {
|
|
9179
|
+
this.queuePendingValue(value);
|
|
9180
|
+
return;
|
|
9181
|
+
}
|
|
9150
9182
|
|
|
9151
9183
|
// Normalize values to array of strings
|
|
9152
9184
|
const normalizedValues = this._getNormalizedValues(value);
|
|
@@ -9158,33 +9190,100 @@ class MenuService {
|
|
|
9158
9190
|
validatedValues = [normalizedValues[0]];
|
|
9159
9191
|
}
|
|
9160
9192
|
|
|
9193
|
+
if (this._menuOptions.length === 0) {
|
|
9194
|
+
this.queuePendingValue(value);
|
|
9195
|
+
return;
|
|
9196
|
+
}
|
|
9197
|
+
|
|
9161
9198
|
// Find matching options by comparing available options to validated values
|
|
9162
9199
|
const trackedKeys = new Set();
|
|
9163
9200
|
const optionsToSelect = this._menuOptions.filter(option => {
|
|
9164
9201
|
const passesFilter = validatedValues.includes(option.key);
|
|
9165
9202
|
const alreadyTracked = trackedKeys.has(option.key);
|
|
9203
|
+
const isActive = option.isActive;
|
|
9166
9204
|
|
|
9167
9205
|
trackedKeys.add(option.key);
|
|
9168
9206
|
|
|
9169
9207
|
// Include the option in the options to be selected if it passes the filter check and
|
|
9170
9208
|
// either hasn't been tracked yet or selectAllMatchingOptions is true
|
|
9171
|
-
return passesFilter && (!alreadyTracked || (alreadyTracked && this.selectAllMatchingOptions));
|
|
9209
|
+
return isActive && passesFilter && (!alreadyTracked || (alreadyTracked && this.selectAllMatchingOptions));
|
|
9172
9210
|
});
|
|
9173
9211
|
|
|
9174
|
-
// Handle selection
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9212
|
+
// Handle no matches: clear existing selection, but do not dispatch an intermediate
|
|
9213
|
+
// undefined value that can overwrite the host value in parent components.
|
|
9214
|
+
if (!optionsToSelect.length) {
|
|
9215
|
+
const hasUnresolvedKeys = this._menuOptions.some((option) => option.isActive && option.key == null);
|
|
9216
|
+
|
|
9217
|
+
if (hasUnresolvedKeys) {
|
|
9218
|
+
this.queuePendingValue(value);
|
|
9219
|
+
return;
|
|
9220
|
+
}
|
|
9221
|
+
|
|
9222
|
+
this.clearPendingValue();
|
|
9223
|
+
|
|
9224
|
+
if (this.selectedOptions.length > 0) {
|
|
9225
|
+
this.selectedOptions = [];
|
|
9226
|
+
}
|
|
9227
|
+
|
|
9228
|
+
// Always notify so the host resets any stale invalid value, even when
|
|
9229
|
+
// selectedOptions was already empty (e.g. double-clicking set-invalid).
|
|
9230
|
+
this.stageUpdate({ reason: 'no-match' });
|
|
9231
|
+
|
|
9232
|
+
// Dispatch failure event if no matches found
|
|
9233
|
+
if (validatedValues.length) {
|
|
9234
|
+
this.dispatchChangeEvent('auroMenu-selectValueFailure', {
|
|
9235
|
+
message: 'No matching options found for the provided value(s).',
|
|
9236
|
+
values: validatedValues
|
|
9237
|
+
});
|
|
9238
|
+
}
|
|
9239
|
+
|
|
9240
|
+
return;
|
|
9179
9241
|
}
|
|
9180
9242
|
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
values: validatedValues
|
|
9186
|
-
});
|
|
9243
|
+
this.clearPendingValue();
|
|
9244
|
+
|
|
9245
|
+
if (this.optionsArraysMatch(optionsToSelect, this.selectedOptions)) {
|
|
9246
|
+
return;
|
|
9187
9247
|
}
|
|
9248
|
+
|
|
9249
|
+
// Apply programmatic selection as a single transaction and emit one final state.
|
|
9250
|
+
this.selectedOptions = optionsToSelect;
|
|
9251
|
+
this.stageUpdate();
|
|
9252
|
+
}
|
|
9253
|
+
|
|
9254
|
+
/**
|
|
9255
|
+
* Queues a pending value and schedules a bounded retry.
|
|
9256
|
+
* @param {string|number|Array<string|number>} value - The value to retry.
|
|
9257
|
+
*/
|
|
9258
|
+
queuePendingValue(value) {
|
|
9259
|
+
this._pendingValue = value;
|
|
9260
|
+
|
|
9261
|
+
if (this._pendingRetryScheduled || this._pendingRetryCount >= 5) {
|
|
9262
|
+
return;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
this._pendingRetryScheduled = true;
|
|
9266
|
+
this._pendingRetryCount += 1;
|
|
9267
|
+
|
|
9268
|
+
setTimeout(() => {
|
|
9269
|
+
this._pendingRetryScheduled = false;
|
|
9270
|
+
|
|
9271
|
+
if (this._pendingValue == null) {
|
|
9272
|
+
return;
|
|
9273
|
+
}
|
|
9274
|
+
|
|
9275
|
+
const pendingValue = this._pendingValue;
|
|
9276
|
+
this.selectByValue(pendingValue);
|
|
9277
|
+
}, 0);
|
|
9278
|
+
}
|
|
9279
|
+
|
|
9280
|
+
/**
|
|
9281
|
+
* Clears pending retry state.
|
|
9282
|
+
*/
|
|
9283
|
+
clearPendingValue() {
|
|
9284
|
+
this._pendingValue = null;
|
|
9285
|
+
this._pendingRetryScheduled = false;
|
|
9286
|
+
this._pendingRetryCount = 0;
|
|
9188
9287
|
}
|
|
9189
9288
|
|
|
9190
9289
|
/**
|
|
@@ -9223,9 +9322,9 @@ class MenuService {
|
|
|
9223
9322
|
/**
|
|
9224
9323
|
* Stages an update to notify subscribers of state and value changes.
|
|
9225
9324
|
*/
|
|
9226
|
-
stageUpdate() {
|
|
9227
|
-
this.notifyStateChange();
|
|
9228
|
-
this.notifyValueChange();
|
|
9325
|
+
stageUpdate(meta = {}) {
|
|
9326
|
+
this.notifyStateChange(meta);
|
|
9327
|
+
this.notifyValueChange(meta);
|
|
9229
9328
|
}
|
|
9230
9329
|
|
|
9231
9330
|
/**
|
|
@@ -9240,14 +9339,18 @@ class MenuService {
|
|
|
9240
9339
|
/**
|
|
9241
9340
|
* Notifies subscribers of a state change (selected options has changed).
|
|
9242
9341
|
*/
|
|
9243
|
-
notifyStateChange() {
|
|
9244
|
-
this.notify({
|
|
9342
|
+
notifyStateChange(meta = {}) {
|
|
9343
|
+
this.notify({
|
|
9344
|
+
type: 'stateChange',
|
|
9345
|
+
selectedOptions: this.selectedOptions,
|
|
9346
|
+
...meta
|
|
9347
|
+
});
|
|
9245
9348
|
}
|
|
9246
9349
|
|
|
9247
9350
|
/**
|
|
9248
9351
|
* Notifies subscribers of a value change (current value has changed).
|
|
9249
9352
|
*/
|
|
9250
|
-
notifyValueChange() {
|
|
9353
|
+
notifyValueChange(meta = {}) {
|
|
9251
9354
|
|
|
9252
9355
|
// Prepare details for the event
|
|
9253
9356
|
const details = {
|
|
@@ -9263,10 +9366,9 @@ class MenuService {
|
|
|
9263
9366
|
|
|
9264
9367
|
this.notify({
|
|
9265
9368
|
type: 'valueChange',
|
|
9369
|
+
...meta,
|
|
9266
9370
|
...details
|
|
9267
9371
|
});
|
|
9268
|
-
|
|
9269
|
-
this.dispatchChangeEvent('auroMenu-selectedOption', details);
|
|
9270
9372
|
}
|
|
9271
9373
|
|
|
9272
9374
|
/**
|
|
@@ -9294,6 +9396,10 @@ class MenuService {
|
|
|
9294
9396
|
addMenuOption(option) {
|
|
9295
9397
|
this._menuOptions.push(option);
|
|
9296
9398
|
this.notify({ type: 'optionsChange', options: this._menuOptions });
|
|
9399
|
+
|
|
9400
|
+
if (this._pendingValue != null) {
|
|
9401
|
+
this.queuePendingValue(this._pendingValue);
|
|
9402
|
+
}
|
|
9297
9403
|
}
|
|
9298
9404
|
|
|
9299
9405
|
/**
|
|
@@ -9303,6 +9409,10 @@ class MenuService {
|
|
|
9303
9409
|
removeMenuOption(option) {
|
|
9304
9410
|
this._menuOptions = this._menuOptions.filter(opt => opt !== option);
|
|
9305
9411
|
this.notify({ type: 'optionsChange', options: this._menuOptions });
|
|
9412
|
+
|
|
9413
|
+
if (this._menuOptions.length === 0) {
|
|
9414
|
+
this.clearPendingValue();
|
|
9415
|
+
}
|
|
9306
9416
|
}
|
|
9307
9417
|
|
|
9308
9418
|
/**
|
|
@@ -9576,7 +9686,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9576
9686
|
},
|
|
9577
9687
|
|
|
9578
9688
|
/**
|
|
9579
|
-
* Available menu options
|
|
9689
|
+
* Available menu options.
|
|
9580
9690
|
* @readonly
|
|
9581
9691
|
*/
|
|
9582
9692
|
options: {
|
|
@@ -9643,7 +9753,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9643
9753
|
/**
|
|
9644
9754
|
* @readonly
|
|
9645
9755
|
* @returns {Array<HTMLElement>} - Returns the array of available menu options.
|
|
9646
|
-
* @deprecated
|
|
9756
|
+
* @deprecated Use `options` property instead.
|
|
9647
9757
|
*/
|
|
9648
9758
|
get items() {
|
|
9649
9759
|
return this.options;
|
|
@@ -9751,7 +9861,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9751
9861
|
const newValue = event.stringValue;
|
|
9752
9862
|
|
|
9753
9863
|
// Check if the option or value has actually changed
|
|
9754
|
-
if (
|
|
9864
|
+
if (this.optionSelected !== newOption || this.stringValue !== newValue) {
|
|
9755
9865
|
this.optionSelected = newOption;
|
|
9756
9866
|
this.setInternalValue(newValue);
|
|
9757
9867
|
}
|
|
@@ -9825,8 +9935,13 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9825
9935
|
updated(changedProperties) {
|
|
9826
9936
|
super.updated(changedProperties);
|
|
9827
9937
|
|
|
9828
|
-
//
|
|
9829
|
-
|
|
9938
|
+
// Apply value selection synchronously so that static-HTML fixtures
|
|
9939
|
+
// resolve within a single update cycle. The refactored selectByValue
|
|
9940
|
+
// no longer calls reset() first, so the destructive intermediate-event
|
|
9941
|
+
// cascade that originally required deferral is eliminated. If option
|
|
9942
|
+
// keys are not yet resolved (framework mount-order race), selectByValue
|
|
9943
|
+
// queues a bounded retry automatically via queuePendingValue.
|
|
9944
|
+
if (changedProperties.has('value') && !this.internalUpdateInProgress) {
|
|
9830
9945
|
this.menuService.selectByValue(this.value);
|
|
9831
9946
|
}
|
|
9832
9947
|
|
|
@@ -10006,12 +10121,13 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10006
10121
|
* @param {any} source - The source that triggers this event.
|
|
10007
10122
|
* @private
|
|
10008
10123
|
*/
|
|
10009
|
-
notifySelectionChange({value, stringValue, keys, options} = {}) {
|
|
10124
|
+
notifySelectionChange({value, stringValue, keys, options, reason} = {}) {
|
|
10010
10125
|
dispatchMenuEvent(this, 'auroMenu-selectedOption', {
|
|
10011
10126
|
value,
|
|
10012
10127
|
stringValue,
|
|
10013
10128
|
keys,
|
|
10014
|
-
options
|
|
10129
|
+
options,
|
|
10130
|
+
reason
|
|
10015
10131
|
});
|
|
10016
10132
|
}
|
|
10017
10133
|
|
|
@@ -4892,7 +4892,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
};
|
|
4894
4894
|
|
|
4895
|
-
var formkitVersion$1 = '
|
|
4895
|
+
var formkitVersion$1 = '202603241855';
|
|
4896
4896
|
|
|
4897
4897
|
class AuroElement extends LitElement {
|
|
4898
4898
|
static get properties() {
|
|
@@ -6636,7 +6636,7 @@ class AuroHelpText extends LitElement {
|
|
|
6636
6636
|
}
|
|
6637
6637
|
}
|
|
6638
6638
|
|
|
6639
|
-
var formkitVersion = '
|
|
6639
|
+
var formkitVersion = '202603241855';
|
|
6640
6640
|
|
|
6641
6641
|
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}`;
|
|
6642
6642
|
|
|
@@ -7417,9 +7417,11 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7417
7417
|
// Update the displayed value
|
|
7418
7418
|
this.updateDisplayedValue();
|
|
7419
7419
|
|
|
7420
|
-
|
|
7420
|
+
const options = event.detail.options || [];
|
|
7421
|
+
|
|
7421
7422
|
this.value = event.detail.stringValue;
|
|
7422
|
-
|
|
7423
|
+
|
|
7424
|
+
this.optionSelected = this.multiSelect ? options : options[0];
|
|
7423
7425
|
|
|
7424
7426
|
if (this.dropdown.isPopoverVisible) {
|
|
7425
7427
|
this.dropdown.hide();
|
|
@@ -7669,7 +7671,10 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7669
7671
|
}
|
|
7670
7672
|
|
|
7671
7673
|
updated(changedProperties) {
|
|
7672
|
-
if (
|
|
7674
|
+
if (
|
|
7675
|
+
changedProperties.has('multiSelect') &&
|
|
7676
|
+
!changedProperties.has('value')
|
|
7677
|
+
) {
|
|
7673
7678
|
this.clearSelection();
|
|
7674
7679
|
}
|
|
7675
7680
|
|
|
@@ -4892,7 +4892,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
};
|
|
4894
4894
|
|
|
4895
|
-
var formkitVersion$1 = '
|
|
4895
|
+
var formkitVersion$1 = '202603241855';
|
|
4896
4896
|
|
|
4897
4897
|
class AuroElement extends LitElement {
|
|
4898
4898
|
static get properties() {
|
|
@@ -6636,7 +6636,7 @@ class AuroHelpText extends LitElement {
|
|
|
6636
6636
|
}
|
|
6637
6637
|
}
|
|
6638
6638
|
|
|
6639
|
-
var formkitVersion = '
|
|
6639
|
+
var formkitVersion = '202603241855';
|
|
6640
6640
|
|
|
6641
6641
|
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}`;
|
|
6642
6642
|
|
|
@@ -7417,9 +7417,11 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7417
7417
|
// Update the displayed value
|
|
7418
7418
|
this.updateDisplayedValue();
|
|
7419
7419
|
|
|
7420
|
-
|
|
7420
|
+
const options = event.detail.options || [];
|
|
7421
|
+
|
|
7421
7422
|
this.value = event.detail.stringValue;
|
|
7422
|
-
|
|
7423
|
+
|
|
7424
|
+
this.optionSelected = this.multiSelect ? options : options[0];
|
|
7423
7425
|
|
|
7424
7426
|
if (this.dropdown.isPopoverVisible) {
|
|
7425
7427
|
this.dropdown.hide();
|
|
@@ -7669,7 +7671,10 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7669
7671
|
}
|
|
7670
7672
|
|
|
7671
7673
|
updated(changedProperties) {
|
|
7672
|
-
if (
|
|
7674
|
+
if (
|
|
7675
|
+
changedProperties.has('multiSelect') &&
|
|
7676
|
+
!changedProperties.has('value')
|
|
7677
|
+
) {
|
|
7673
7678
|
this.clearSelection();
|
|
7674
7679
|
}
|
|
7675
7680
|
|