@aurodesignsystem-dev/auro-formkit 0.0.0-pr755.0 → 0.0.0-pr755.1
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/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +81 -98
- package/components/combobox/demo/index.min.js +81 -98
- package/components/combobox/dist/index.js +44 -86
- package/components/combobox/dist/registered.js +44 -86
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +555 -385
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +555 -385
- package/components/counter/dist/auro-counter-group.d.ts +71 -14
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +555 -385
- package/components/counter/dist/registered.js +555 -385
- package/components/datepicker/demo/api.min.js +65 -92
- package/components/datepicker/demo/index.min.js +65 -92
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +65 -92
- package/components/datepicker/dist/registered.js +65 -92
- package/components/dropdown/demo/api.md +76 -268
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +12 -12
- package/components/input/demo/index.min.js +12 -12
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +12 -12
- package/components/input/dist/registered.js +12 -12
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +37 -12
- package/components/menu/demo/index.min.js +37 -12
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +37 -12
- package/components/menu/dist/registered.js +37 -12
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.md +15 -9
- package/components/select/demo/api.min.js +125 -194
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +125 -194
- package/components/select/dist/auro-select.d.ts +20 -4
- package/components/select/dist/index.js +88 -182
- package/components/select/dist/registered.js +88 -182
- package/package.json +3 -3
|
@@ -689,19 +689,19 @@ class AuroFormValidation {
|
|
|
689
689
|
{
|
|
690
690
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
691
691
|
validity: 'tooShort',
|
|
692
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
692
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
693
693
|
},
|
|
694
694
|
{
|
|
695
695
|
check: (e) => e.value?.length > e.maxLength,
|
|
696
696
|
validity: 'tooLong',
|
|
697
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
697
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
698
698
|
}
|
|
699
699
|
],
|
|
700
700
|
pattern: [
|
|
701
701
|
{
|
|
702
702
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
703
703
|
validity: 'patternMismatch',
|
|
704
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
704
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
705
705
|
}
|
|
706
706
|
]
|
|
707
707
|
},
|
|
@@ -896,10 +896,10 @@ class AuroFormValidation {
|
|
|
896
896
|
if (!hasValue && elem.required && elem.touched) {
|
|
897
897
|
elem.validity = 'valueMissing';
|
|
898
898
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
899
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
899
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
900
900
|
this.validateType(elem);
|
|
901
901
|
this.validateElementAttributes(elem);
|
|
902
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
902
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
903
903
|
this.validateElementAttributes(elem);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
@@ -4173,7 +4173,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
4173
4173
|
|
|
4174
4174
|
var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;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:60px;max-height:60px;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:58px;max-height:58px;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:56px;max-height:56px}.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-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}`;
|
|
4175
4175
|
|
|
4176
|
-
var colorCss$1$2 = i$5`:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4176
|
+
var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4177
4177
|
|
|
4178
4178
|
var classicColorCss = i$5``;
|
|
4179
4179
|
|
|
@@ -4185,7 +4185,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex:1;fle
|
|
|
4185
4185
|
|
|
4186
4186
|
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4187
4187
|
|
|
4188
|
-
var styleCss$6 = i$5
|
|
4188
|
+
var styleCss$6 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
4189
4189
|
|
|
4190
4190
|
var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
4191
4191
|
|
|
@@ -4490,10 +4490,8 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
4490
4490
|
// See LICENSE in the project root for license information.
|
|
4491
4491
|
|
|
4492
4492
|
|
|
4493
|
-
|
|
4494
|
-
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
4493
|
+
/*
|
|
4495
4494
|
* @slot - Default slot for the popover content.
|
|
4496
|
-
* @slot label - Defines the content of the label.
|
|
4497
4495
|
* @slot helpText - Defines the content of the helpText.
|
|
4498
4496
|
* @slot trigger - Defines the content of the trigger.
|
|
4499
4497
|
* @csspart trigger - The trigger content container.
|
|
@@ -4512,18 +4510,22 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4512
4510
|
this.matchWidth = false;
|
|
4513
4511
|
this.noHideOnThisFocusLoss = false;
|
|
4514
4512
|
|
|
4515
|
-
this.errorMessage =
|
|
4513
|
+
this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
|
|
4516
4514
|
|
|
4517
4515
|
// Layout Config
|
|
4518
|
-
this.layout =
|
|
4519
|
-
this.shape =
|
|
4520
|
-
this.size =
|
|
4516
|
+
this.layout = undefined;
|
|
4517
|
+
this.shape = undefined;
|
|
4518
|
+
this.size = undefined;
|
|
4521
4519
|
|
|
4522
4520
|
this.parentBorder = false;
|
|
4523
4521
|
|
|
4524
4522
|
this.privateDefaults();
|
|
4525
4523
|
}
|
|
4526
4524
|
|
|
4525
|
+
/**
|
|
4526
|
+
* @private
|
|
4527
|
+
* @returns {object} Class definition for the wrapper element.
|
|
4528
|
+
*/
|
|
4527
4529
|
get commonWrapperClasses() {
|
|
4528
4530
|
return {
|
|
4529
4531
|
'trigger': true,
|
|
@@ -4543,12 +4545,8 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4543
4545
|
this.disabled = false;
|
|
4544
4546
|
this.disableFocusTrap = false;
|
|
4545
4547
|
this.error = false;
|
|
4546
|
-
this.inset = false;
|
|
4547
|
-
this.rounded = false;
|
|
4548
4548
|
this.tabIndex = 0;
|
|
4549
4549
|
this.noToggle = false;
|
|
4550
|
-
this.a11yAutocomplete = 'none';
|
|
4551
|
-
this.labeled = true;
|
|
4552
4550
|
this.a11yRole = 'button';
|
|
4553
4551
|
this.onDark = false;
|
|
4554
4552
|
this.showTriggerBorders = true;
|
|
@@ -4670,26 +4668,27 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4670
4668
|
},
|
|
4671
4669
|
|
|
4672
4670
|
/**
|
|
4673
|
-
* If declared,
|
|
4671
|
+
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4672
|
+
* @default false
|
|
4674
4673
|
*/
|
|
4675
|
-
|
|
4674
|
+
disableEventShow: {
|
|
4676
4675
|
type: Boolean,
|
|
4677
4676
|
reflect: true
|
|
4678
4677
|
},
|
|
4679
4678
|
|
|
4680
4679
|
/**
|
|
4681
|
-
* If declared,
|
|
4682
|
-
* @attr {Boolean} chevron
|
|
4680
|
+
* If declared, applies a border around the trigger slot.
|
|
4683
4681
|
*/
|
|
4684
|
-
|
|
4682
|
+
simple: {
|
|
4685
4683
|
type: Boolean,
|
|
4686
4684
|
reflect: true
|
|
4687
4685
|
},
|
|
4688
4686
|
|
|
4689
4687
|
/**
|
|
4690
|
-
* If declared, the dropdown
|
|
4688
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
4689
|
+
* @attr {Boolean} chevron
|
|
4691
4690
|
*/
|
|
4692
|
-
|
|
4691
|
+
chevron: {
|
|
4693
4692
|
type: Boolean,
|
|
4694
4693
|
reflect: true
|
|
4695
4694
|
},
|
|
@@ -4703,7 +4702,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4703
4702
|
},
|
|
4704
4703
|
|
|
4705
4704
|
/**
|
|
4706
|
-
* If
|
|
4705
|
+
* If declared, the focus trap inside of bib will be turned off.
|
|
4707
4706
|
*/
|
|
4708
4707
|
disableFocusTrap: {
|
|
4709
4708
|
type: Boolean,
|
|
@@ -4750,22 +4749,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4750
4749
|
reflect: true
|
|
4751
4750
|
},
|
|
4752
4751
|
|
|
4753
|
-
/**
|
|
4754
|
-
* Makes the trigger to be full width of its parent container.
|
|
4755
|
-
*/
|
|
4756
|
-
fluid: {
|
|
4757
|
-
type: Boolean,
|
|
4758
|
-
reflect: true
|
|
4759
|
-
},
|
|
4760
|
-
|
|
4761
|
-
/**
|
|
4762
|
-
* If declared, will apply padding around trigger slot content.
|
|
4763
|
-
*/
|
|
4764
|
-
inset: {
|
|
4765
|
-
type: Boolean,
|
|
4766
|
-
reflect: true
|
|
4767
|
-
},
|
|
4768
|
-
|
|
4769
4752
|
/**
|
|
4770
4753
|
* If true, the dropdown bib is displayed.
|
|
4771
4754
|
*/
|
|
@@ -4809,15 +4792,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4809
4792
|
reflect: true
|
|
4810
4793
|
},
|
|
4811
4794
|
|
|
4812
|
-
/**
|
|
4813
|
-
* Defines if there is a label preset.
|
|
4814
|
-
* @private
|
|
4815
|
-
*/
|
|
4816
|
-
labeled: {
|
|
4817
|
-
type: Boolean,
|
|
4818
|
-
reflect: true
|
|
4819
|
-
},
|
|
4820
|
-
|
|
4821
4795
|
/**
|
|
4822
4796
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4823
4797
|
* @private
|
|
@@ -4878,6 +4852,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4878
4852
|
reflect: true
|
|
4879
4853
|
},
|
|
4880
4854
|
|
|
4855
|
+
/**
|
|
4856
|
+
* If declared, and a function is set, that function will execute when the slot content is updated.
|
|
4857
|
+
*/
|
|
4881
4858
|
onSlotChange: {
|
|
4882
4859
|
type: Function,
|
|
4883
4860
|
reflect: false
|
|
@@ -4892,14 +4869,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4892
4869
|
reflect: true
|
|
4893
4870
|
},
|
|
4894
4871
|
|
|
4895
|
-
/**
|
|
4896
|
-
* If declared, will apply border-radius to trigger and default slots.
|
|
4897
|
-
*/
|
|
4898
|
-
rounded: {
|
|
4899
|
-
type: Boolean,
|
|
4900
|
-
reflect: true
|
|
4901
|
-
},
|
|
4902
|
-
|
|
4903
4872
|
/**
|
|
4904
4873
|
* @private
|
|
4905
4874
|
*/
|
|
@@ -4914,22 +4883,14 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4914
4883
|
type: String || undefined,
|
|
4915
4884
|
attribute: false,
|
|
4916
4885
|
reflect: false
|
|
4917
|
-
},
|
|
4918
|
-
|
|
4919
|
-
/**
|
|
4920
|
-
* The value for the aria-autocomplete attribute of the trigger element.
|
|
4921
|
-
*/
|
|
4922
|
-
a11yAutocomplete: {
|
|
4923
|
-
type: String,
|
|
4924
|
-
attribute: false,
|
|
4925
4886
|
}
|
|
4926
4887
|
};
|
|
4927
4888
|
}
|
|
4928
4889
|
|
|
4929
4890
|
static get styles() {
|
|
4930
4891
|
return [
|
|
4931
|
-
colorCss$1$2,
|
|
4932
4892
|
tokensCss$1$2,
|
|
4893
|
+
colorCss$1$2,
|
|
4933
4894
|
|
|
4934
4895
|
// default layout
|
|
4935
4896
|
classicColorCss,
|
|
@@ -5369,10 +5330,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
5369
5330
|
id="bib"
|
|
5370
5331
|
shape="${this.shape}"
|
|
5371
5332
|
?data-show="${this.isPopoverVisible}"
|
|
5372
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
5373
|
-
?common="${this.common}"
|
|
5374
|
-
?rounded="${this.common || this.rounded}"
|
|
5375
|
-
?inset="${this.common || this.inset}">
|
|
5333
|
+
?isfullscreen="${this.isBibFullscreen}">
|
|
5376
5334
|
<div class="slotContent">
|
|
5377
5335
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5378
5336
|
</div>
|
|
@@ -7353,7 +7311,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7353
7311
|
<div id="bibTemplate" part="bibtemplate">
|
|
7354
7312
|
${this.isFullscreen ? u`
|
|
7355
7313
|
<div id="headerContainer">
|
|
7356
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7314
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
7357
7315
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
7358
7316
|
</${this.buttonTag}>
|
|
7359
7317
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
@@ -7381,7 +7339,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
7381
7339
|
|
|
7382
7340
|
var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
7383
7341
|
|
|
7384
|
-
var styleCss$4 = i$5
|
|
7342
|
+
var styleCss$4 = i$5`:host{position:relative;display:block}.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
7385
7343
|
|
|
7386
7344
|
var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
7387
7345
|
|
|
@@ -7587,68 +7545,7 @@ class AuroHelpText extends i$2 {
|
|
|
7587
7545
|
|
|
7588
7546
|
var helpTextVersion = '1.0.0';
|
|
7589
7547
|
|
|
7590
|
-
i$5
|
|
7591
|
-
|
|
7592
|
-
i$5`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
|
|
7593
|
-
|
|
7594
|
-
i$5`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-container-border-color: var(--ds-auro-menuoption-container-color);--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
7595
|
-
|
|
7596
|
-
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7597
|
-
// See LICENSE in the project root for license information.
|
|
7598
|
-
|
|
7599
|
-
// ---------------------------------------------------------------------
|
|
7600
|
-
|
|
7601
|
-
/**
|
|
7602
|
-
* Converts value to an array.
|
|
7603
|
-
* If the value is a JSON string representing an array, it will be parsed.
|
|
7604
|
-
* If the value is already an array, it is returned.
|
|
7605
|
-
* If the value is undefined, it returns undefined.
|
|
7606
|
-
* @private
|
|
7607
|
-
* @param {any} value - The value to be converted. Can be a string, array, or undefined.
|
|
7608
|
-
* @returns {Array|undefined} - The converted array or undefined.
|
|
7609
|
-
* @throws {Error} - Throws an error if the value is not an array, undefined,
|
|
7610
|
-
* or if the value cannot be parsed into an array from a JSON string.
|
|
7611
|
-
*/
|
|
7612
|
-
function arrayConverter(value) {
|
|
7613
|
-
// Allow undefined
|
|
7614
|
-
if (value === undefined) {
|
|
7615
|
-
return undefined;
|
|
7616
|
-
}
|
|
7617
|
-
|
|
7618
|
-
// Return the value if it is already an array
|
|
7619
|
-
if (Array.isArray(value)) {
|
|
7620
|
-
return value;
|
|
7621
|
-
}
|
|
7622
|
-
|
|
7623
|
-
try {
|
|
7624
|
-
// If value is a JSON string, parse it
|
|
7625
|
-
const parsed = typeof value === 'string' ? JSON.parse(value) : value;
|
|
7626
|
-
|
|
7627
|
-
// Check if the parsed value is an array
|
|
7628
|
-
if (Array.isArray(parsed)) {
|
|
7629
|
-
return parsed;
|
|
7630
|
-
}
|
|
7631
|
-
} catch (error) {
|
|
7632
|
-
// If JSON parsing fails, continue to throw an error below
|
|
7633
|
-
/* eslint-disable no-console */
|
|
7634
|
-
console.error('JSON parsing failed:', error);
|
|
7635
|
-
}
|
|
7636
|
-
|
|
7637
|
-
// Throw error if the input is not an array or undefined
|
|
7638
|
-
throw new Error('Invalid value: Input must be an array or undefined');
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7641
|
-
i$5`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
7642
|
-
|
|
7643
|
-
i$5`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
|
|
7644
|
-
|
|
7645
|
-
i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
7646
|
-
|
|
7647
|
-
i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
7648
|
-
|
|
7649
|
-
i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
7650
|
-
|
|
7651
|
-
var styleCss$3 = i$5`.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}[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)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;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:8px}.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,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-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]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
|
|
7548
|
+
var styleCss$3 = i$5`.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}[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)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;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-50, 0.25rem)}.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,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-50, 0.25rem) 0 var(--ds-size-150, 0.75rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-50, 0.25rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-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]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7652
7549
|
|
|
7653
7550
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7654
7551
|
// See LICENSE in the project root for license information.
|
|
@@ -7663,7 +7560,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
7663
7560
|
* @slot label - Defines the content of the label.
|
|
7664
7561
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7665
7562
|
* @slot helpText - Defines the content of the helpText.
|
|
7666
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
7667
7563
|
* @slot valueText - Dropdown value text display.
|
|
7668
7564
|
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
7669
7565
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
@@ -7933,6 +7829,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7933
7829
|
reflect: true
|
|
7934
7830
|
},
|
|
7935
7831
|
|
|
7832
|
+
/**
|
|
7833
|
+
* Define custom placeholder text.
|
|
7834
|
+
*/
|
|
7835
|
+
placeholder: {
|
|
7836
|
+
type: String,
|
|
7837
|
+
reflect: true
|
|
7838
|
+
},
|
|
7839
|
+
|
|
7936
7840
|
/**
|
|
7937
7841
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
7938
7842
|
*/
|
|
@@ -7979,11 +7883,12 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7979
7883
|
},
|
|
7980
7884
|
|
|
7981
7885
|
/**
|
|
7982
|
-
* Value selected for the component.
|
|
7983
|
-
* @type {String|Array<String>}
|
|
7886
|
+
* Value selected for the component.
|
|
7984
7887
|
*/
|
|
7985
7888
|
value: {
|
|
7986
|
-
type:
|
|
7889
|
+
type: String,
|
|
7890
|
+
reflect: true,
|
|
7891
|
+
attribute: 'value'
|
|
7987
7892
|
},
|
|
7988
7893
|
|
|
7989
7894
|
/**
|
|
@@ -8035,6 +7940,25 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8035
7940
|
];
|
|
8036
7941
|
}
|
|
8037
7942
|
|
|
7943
|
+
/**
|
|
7944
|
+
* Formatted value based on `multiSelect` state.
|
|
7945
|
+
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
7946
|
+
* @private
|
|
7947
|
+
* @returns {String|Array<String>}
|
|
7948
|
+
*/
|
|
7949
|
+
get formattedValue() {
|
|
7950
|
+
if (this.multiSelect) {
|
|
7951
|
+
if (!this.value) {
|
|
7952
|
+
return undefined;
|
|
7953
|
+
}
|
|
7954
|
+
if (this.value.startsWith("[")) {
|
|
7955
|
+
return JSON.parse(this.value);
|
|
7956
|
+
}
|
|
7957
|
+
return [this.value];
|
|
7958
|
+
}
|
|
7959
|
+
return this.value;
|
|
7960
|
+
}
|
|
7961
|
+
|
|
8038
7962
|
/**
|
|
8039
7963
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
8040
7964
|
* @private
|
|
@@ -8043,7 +7967,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8043
7967
|
get commonLabelClasses() {
|
|
8044
7968
|
return {
|
|
8045
7969
|
'is-disabled': this.disabled,
|
|
8046
|
-
'withValue': this.value && this.value.length > 0,
|
|
7970
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8047
7971
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
8048
7972
|
};
|
|
8049
7973
|
}
|
|
@@ -8453,14 +8377,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8453
8377
|
this.configureDropdown();
|
|
8454
8378
|
this.configureMenu();
|
|
8455
8379
|
this.configureSelect();
|
|
8456
|
-
|
|
8457
|
-
// Set the initial value in auro-menu if defined
|
|
8458
|
-
if (this.hasAttribute('value') && this.getAttribute('value').length > 0) {
|
|
8459
|
-
this.value = this.multiSelect ? arrayConverter(this.getAttribute('value')) : this.getAttribute('value');
|
|
8460
|
-
if (this.menu) {
|
|
8461
|
-
this.menu.value = this.value;
|
|
8462
|
-
}
|
|
8463
|
-
}
|
|
8464
8380
|
}
|
|
8465
8381
|
|
|
8466
8382
|
/**
|
|
@@ -8472,19 +8388,18 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8472
8388
|
async updateMenuValue(value) {
|
|
8473
8389
|
if (!this.menu) return;
|
|
8474
8390
|
|
|
8391
|
+
this.menu.setAttribute('value', value);
|
|
8475
8392
|
this.menu.value = value;
|
|
8476
8393
|
await this.menu.updateComplete;
|
|
8477
8394
|
}
|
|
8478
8395
|
|
|
8479
8396
|
async updated(changedProperties) {
|
|
8480
|
-
if (changedProperties.has('multiSelect')) {
|
|
8397
|
+
if (changedProperties.has('multiSelect') && !changedProperties.has('value')) {
|
|
8481
8398
|
this.clearSelection();
|
|
8482
8399
|
}
|
|
8483
8400
|
|
|
8484
8401
|
if (changedProperties.has('value')) {
|
|
8485
8402
|
if (this.value) {
|
|
8486
|
-
this.value = this.multiSelect ? arrayConverter(this.value) : this.value;
|
|
8487
|
-
|
|
8488
8403
|
await this.updateMenuValue(this.value);
|
|
8489
8404
|
|
|
8490
8405
|
if (this.menu) {
|
|
@@ -8510,7 +8425,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8510
8425
|
composed: true,
|
|
8511
8426
|
detail: {
|
|
8512
8427
|
optionSelected: this.optionSelected,
|
|
8513
|
-
value: this.
|
|
8428
|
+
value: this.formattedValue
|
|
8514
8429
|
}
|
|
8515
8430
|
}));
|
|
8516
8431
|
}
|
|
@@ -8569,13 +8484,13 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8569
8484
|
const selectedValue = selectedOption.value;
|
|
8570
8485
|
|
|
8571
8486
|
if (this.multiSelect) {
|
|
8572
|
-
const currentArray =
|
|
8487
|
+
const currentArray = this.formattedValue;
|
|
8573
8488
|
|
|
8574
8489
|
if (!currentArray.includes(selectedValue)) {
|
|
8575
|
-
this.value = [
|
|
8490
|
+
this.value = JSON.stringify([
|
|
8576
8491
|
...currentArray,
|
|
8577
8492
|
selectedValue
|
|
8578
|
-
];
|
|
8493
|
+
]);
|
|
8579
8494
|
}
|
|
8580
8495
|
} else {
|
|
8581
8496
|
const currentValue = this.value;
|
|
@@ -8598,7 +8513,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8598
8513
|
}
|
|
8599
8514
|
|
|
8600
8515
|
if (this.multiSelect) {
|
|
8601
|
-
nativeSelect.value = this.
|
|
8516
|
+
nativeSelect.value = this.multiSelect ? this.multiSelect[0] : '';
|
|
8602
8517
|
} else {
|
|
8603
8518
|
nativeSelect.value = this.value || '';
|
|
8604
8519
|
}
|
|
@@ -8680,7 +8595,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8680
8595
|
: u`
|
|
8681
8596
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8682
8597
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8683
|
-
|
|
8598
|
+
${this.errorMessage}
|
|
8684
8599
|
</p>
|
|
8685
8600
|
</${this.helpTextTag}>
|
|
8686
8601
|
`
|
|
@@ -8695,14 +8610,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8695
8610
|
*/
|
|
8696
8611
|
renderLayoutEmphasized() {
|
|
8697
8612
|
const placeholderClass = {
|
|
8698
|
-
|
|
8613
|
+
'util_displayHidden': this.value
|
|
8699
8614
|
};
|
|
8700
8615
|
|
|
8701
8616
|
const displayValueClasses = {
|
|
8702
8617
|
'displayValue': true,
|
|
8703
8618
|
'hasContent': this.hasDisplayValueContent,
|
|
8704
8619
|
'hasFocus': this.isPopoverVisible,
|
|
8705
|
-
'withValue': this.value && this.value.length > 0,
|
|
8620
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8706
8621
|
'force': this.forceDisplayValue,
|
|
8707
8622
|
};
|
|
8708
8623
|
|
|
@@ -8729,7 +8644,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8729
8644
|
.offset="${this.offset}"
|
|
8730
8645
|
.placement="${this.placement}"
|
|
8731
8646
|
chevron
|
|
8732
|
-
fluid
|
|
8733
8647
|
for="selectMenu"
|
|
8734
8648
|
layout="${this.layout}"
|
|
8735
8649
|
part="dropdown"
|
|
@@ -8746,11 +8660,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8746
8660
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8747
8661
|
</label>
|
|
8748
8662
|
<div class="value" id="value"></div>
|
|
8749
|
-
${
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
</div>
|
|
8753
|
-
`}
|
|
8663
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8664
|
+
${this.placeholder}
|
|
8665
|
+
</div>
|
|
8754
8666
|
</div>
|
|
8755
8667
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8756
8668
|
<slot name="displayValue"></slot>
|
|
@@ -8777,14 +8689,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8777
8689
|
*/
|
|
8778
8690
|
renderLayoutSnowflake() {
|
|
8779
8691
|
const placeholderClass = {
|
|
8780
|
-
|
|
8692
|
+
'util_displayHidden': this.value
|
|
8781
8693
|
};
|
|
8782
8694
|
|
|
8783
8695
|
const displayValueClasses = {
|
|
8784
8696
|
'displayValue': true,
|
|
8785
8697
|
'hasContent': this.hasDisplayValueContent,
|
|
8786
8698
|
'hasFocus': this.isPopoverVisible,
|
|
8787
|
-
'withValue': this.value && this.value.length > 0,
|
|
8699
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8788
8700
|
'force': this.forceDisplayValue,
|
|
8789
8701
|
};
|
|
8790
8702
|
|
|
@@ -8810,7 +8722,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8810
8722
|
.offset="${this.offset}"
|
|
8811
8723
|
.placement="${this.placement}"
|
|
8812
8724
|
chevron
|
|
8813
|
-
fluid
|
|
8814
8725
|
for="selectMenu"
|
|
8815
8726
|
layout="${this.layout}"
|
|
8816
8727
|
part="dropdown"
|
|
@@ -8827,11 +8738,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8827
8738
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8828
8739
|
</label>
|
|
8829
8740
|
<div class="value" id="value"></div>
|
|
8830
|
-
${
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
</div>
|
|
8834
|
-
`}
|
|
8741
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8742
|
+
${this.placeholder}
|
|
8743
|
+
</div>
|
|
8835
8744
|
</div>
|
|
8836
8745
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8837
8746
|
<slot name="displayValue"></slot>
|
|
@@ -8859,14 +8768,14 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8859
8768
|
*/
|
|
8860
8769
|
renderLayoutClassic() {
|
|
8861
8770
|
const placeholderClass = {
|
|
8862
|
-
|
|
8771
|
+
'util_displayHidden': this.value
|
|
8863
8772
|
};
|
|
8864
8773
|
|
|
8865
8774
|
const displayValueClasses = {
|
|
8866
8775
|
'displayValue': true,
|
|
8867
8776
|
'hasContent': this.hasDisplayValueContent,
|
|
8868
8777
|
'hasFocus': this.isPopoverVisible,
|
|
8869
|
-
'withValue': this.value && this.value.length > 0,
|
|
8778
|
+
'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
|
|
8870
8779
|
'force': this.forceDisplayValue,
|
|
8871
8780
|
};
|
|
8872
8781
|
|
|
@@ -8892,7 +8801,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8892
8801
|
.offset="${this.offset}"
|
|
8893
8802
|
.placement="${this.placement}"
|
|
8894
8803
|
chevron
|
|
8895
|
-
fluid
|
|
8896
8804
|
for="selectMenu"
|
|
8897
8805
|
layout="${this.layout}"
|
|
8898
8806
|
part="dropdown"
|
|
@@ -8909,11 +8817,9 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8909
8817
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8910
8818
|
</label>
|
|
8911
8819
|
<div class="value" id="value"></div>
|
|
8912
|
-
${
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
</div>
|
|
8916
|
-
`}
|
|
8820
|
+
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8821
|
+
${this.placeholder}
|
|
8822
|
+
</div>
|
|
8917
8823
|
</div>
|
|
8918
8824
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8919
8825
|
<slot name="displayValue"></slot>
|
|
@@ -9022,7 +8928,6 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
9022
8928
|
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
9023
8929
|
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
9024
8930
|
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
9025
|
-
* @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
|
|
9026
8931
|
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
9027
8932
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
9028
8933
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
@@ -9135,9 +9040,14 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9135
9040
|
reflect: true,
|
|
9136
9041
|
attribute: 'multiselect'
|
|
9137
9042
|
},
|
|
9043
|
+
|
|
9044
|
+
/**
|
|
9045
|
+
* Value selected for the component.
|
|
9046
|
+
*/
|
|
9138
9047
|
value: {
|
|
9139
|
-
|
|
9140
|
-
|
|
9048
|
+
type: String,
|
|
9049
|
+
reflect: true,
|
|
9050
|
+
attribute: 'value'
|
|
9141
9051
|
},
|
|
9142
9052
|
|
|
9143
9053
|
/**
|
|
@@ -9172,6 +9082,25 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9172
9082
|
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroMenu);
|
|
9173
9083
|
}
|
|
9174
9084
|
|
|
9085
|
+
/**
|
|
9086
|
+
* Formatted value based on `multiSelect` state.
|
|
9087
|
+
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
9088
|
+
* @private
|
|
9089
|
+
* @returns {String|Array<String>}
|
|
9090
|
+
*/
|
|
9091
|
+
get formattedValue() {
|
|
9092
|
+
if (this.multiSelect) {
|
|
9093
|
+
if (!this.value) {
|
|
9094
|
+
return undefined;
|
|
9095
|
+
}
|
|
9096
|
+
if (this.value.startsWith("[")) {
|
|
9097
|
+
return JSON.parse(this.value);
|
|
9098
|
+
}
|
|
9099
|
+
return [this.value];
|
|
9100
|
+
}
|
|
9101
|
+
return this.value;
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9175
9104
|
// Lifecycle Methods
|
|
9176
9105
|
|
|
9177
9106
|
connectedCallback() {
|
|
@@ -9214,7 +9143,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9214
9143
|
updated(changedProperties) {
|
|
9215
9144
|
super.updated(changedProperties);
|
|
9216
9145
|
|
|
9217
|
-
if (changedProperties.has('multiSelect')) {
|
|
9146
|
+
if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
|
|
9218
9147
|
// Reset selection if multiSelect mode changes
|
|
9219
9148
|
this.clearSelection();
|
|
9220
9149
|
}
|
|
@@ -9228,7 +9157,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9228
9157
|
} else {
|
|
9229
9158
|
if (this.multiSelect) {
|
|
9230
9159
|
// In multiselect mode, this.value should be an array of strings
|
|
9231
|
-
const valueArray =
|
|
9160
|
+
const valueArray = this.formattedValue;
|
|
9232
9161
|
const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
|
|
9233
9162
|
|
|
9234
9163
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
@@ -9395,14 +9324,14 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9395
9324
|
*/
|
|
9396
9325
|
handleSelectState(option) {
|
|
9397
9326
|
if (this.multiSelect) {
|
|
9398
|
-
const currentValue = this.
|
|
9327
|
+
const currentValue = this.formattedValue || [];
|
|
9399
9328
|
const currentSelected = this.optionSelected || [];
|
|
9400
9329
|
|
|
9401
9330
|
if (!currentValue.includes(option.value)) {
|
|
9402
|
-
this.value = [
|
|
9331
|
+
this.value = JSON.stringify([
|
|
9403
9332
|
...currentValue,
|
|
9404
9333
|
option.value
|
|
9405
|
-
];
|
|
9334
|
+
]);
|
|
9406
9335
|
}
|
|
9407
9336
|
if (!currentSelected.includes(option)) {
|
|
9408
9337
|
this.optionSelected = [
|
|
@@ -9425,13 +9354,15 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9425
9354
|
* @param {HTMLElement} option - The menuoption to be deselected.
|
|
9426
9355
|
*/
|
|
9427
9356
|
handleDeselectState(option) {
|
|
9428
|
-
if (this.multiSelect
|
|
9357
|
+
if (this.multiSelect) {
|
|
9429
9358
|
// Remove this option from array
|
|
9430
|
-
|
|
9359
|
+
const newFormattedValue = (this.formattedValue || []).filter((val) => val !== option.value);
|
|
9431
9360
|
|
|
9432
9361
|
// If array is empty after removal, set back to undefined
|
|
9433
|
-
if (
|
|
9362
|
+
if (newFormattedValue && newFormattedValue.length === 0) {
|
|
9434
9363
|
this.value = undefined;
|
|
9364
|
+
} else {
|
|
9365
|
+
this.value = JSON.stringify(newFormattedValue);
|
|
9435
9366
|
}
|
|
9436
9367
|
|
|
9437
9368
|
this.optionSelected = this.optionSelected.filter((val) => val !== option);
|
|
@@ -9782,7 +9713,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9782
9713
|
}
|
|
9783
9714
|
}
|
|
9784
9715
|
|
|
9785
|
-
var styleCss$1 = i$5`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) +
|
|
9716
|
+
var styleCss$1 = i$5`:host{cursor:pointer;user-select:none}:host .wrapper{display:flex;align-items:center;padding-right:var(--ds-size-200, 1rem);padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-150, 0.75rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box],:host .wrapper[class*=shape-snowflake]{border-radius:unset}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem)}:host .wrapper[class*=-lg]:not(:last-child){margin-bottom:var(--ds-size-50, 0.25rem)}:host .wrapper[class*=-xl]{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem)}:host .wrapper[class*=-xl]:not(:last-child){margin-bottom:var(--ds-size-100, 0.5rem)}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-150, 0.75rem) + var(--ds-size-100, 0.5rem))}:host([selected]) .wrapper{padding-left:0}:host([nocheckmark]) .wrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-lg]{padding-left:var(--ds-size-150, 0.75rem)}:host([nocheckmark]) .wrapper[class*=-xl]{padding-left:var(--ds-size-200, 1rem)}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
|
|
9786
9717
|
|
|
9787
9718
|
var colorCss$1 = i$5`:host .wrapper{border:1px solid var(--ds-auro-menuoption-container-border-color);background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
|
|
9788
9719
|
|