@aurodesignsystem/auro-formkit 5.1.3 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -2
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +190 -62
- package/components/combobox/demo/api.min.js +401 -146
- package/components/combobox/demo/index.md +2 -0
- package/components/combobox/demo/index.min.js +331 -132
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +81 -33
- package/components/combobox/dist/index.js +297 -122
- package/components/combobox/dist/registered.js +297 -122
- package/components/counter/demo/api.min.js +9 -4
- package/components/counter/demo/index.min.js +9 -4
- package/components/counter/dist/index.js +9 -4
- package/components/counter/dist/registered.js +9 -4
- package/components/datepicker/demo/api.min.js +61 -16
- package/components/datepicker/demo/index.min.js +61 -16
- package/components/datepicker/dist/index.js +61 -16
- package/components/datepicker/dist/registered.js +61 -16
- package/components/dropdown/demo/api.min.js +8 -3
- package/components/dropdown/demo/index.min.js +8 -3
- package/components/dropdown/dist/index.js +8 -3
- package/components/dropdown/dist/registered.js +8 -3
- package/components/input/demo/api.md +48 -46
- package/components/input/demo/api.min.js +52 -12
- package/components/input/demo/index.md +7 -3
- package/components/input/demo/index.min.js +52 -12
- package/components/input/dist/auro-input.d.ts +4 -0
- package/components/input/dist/base-input.d.ts +9 -1
- package/components/input/dist/index.js +52 -12
- package/components/input/dist/registered.js +52 -12
- package/components/layoutElement/dist/index.js +1 -1
- package/components/layoutElement/dist/registered.js +1 -1
- package/components/menu/demo/api.md +4 -3
- package/components/menu/demo/api.min.js +35 -11
- package/components/menu/demo/index.min.js +35 -11
- package/components/menu/dist/auro-menu.d.ts +3 -2
- package/components/menu/dist/auro-menuoption.d.ts +1 -0
- package/components/menu/dist/index.js +35 -11
- package/components/menu/dist/registered.js +35 -11
- package/components/select/demo/api.min.js +44 -15
- package/components/select/demo/index.min.js +44 -15
- package/components/select/dist/index.js +10 -5
- package/components/select/dist/registered.js +10 -5
- package/package.json +1 -1
|
@@ -4369,7 +4369,7 @@ let AuroElement$4 = class AuroElement extends i$2 {
|
|
|
4369
4369
|
* @returns {boolean} - Returns true if the element has focus.
|
|
4370
4370
|
*/
|
|
4371
4371
|
get componentHasFocus() {
|
|
4372
|
-
return this.matches(':focus');
|
|
4372
|
+
return this.matches(':focus') || this.matches(':focus-within');
|
|
4373
4373
|
}
|
|
4374
4374
|
|
|
4375
4375
|
resetShapeClasses() {
|
|
@@ -5154,8 +5154,13 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5154
5154
|
}
|
|
5155
5155
|
|
|
5156
5156
|
if (event) {
|
|
5157
|
-
|
|
5158
|
-
|
|
5157
|
+
// Wrap in a try-catch block to handle errors when trying to use assignedNodes from the NodeJS test environment.
|
|
5158
|
+
try {
|
|
5159
|
+
this.triggerNode = event.target;
|
|
5160
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
5161
|
+
} catch (error) {
|
|
5162
|
+
console.warn('auro-dropdown: Unable to access the trigger content slot.', error); // eslint-disable-line no-console
|
|
5163
|
+
}
|
|
5159
5164
|
}
|
|
5160
5165
|
|
|
5161
5166
|
if (this.triggerContentSlot) {
|
|
@@ -10229,7 +10234,7 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10229
10234
|
* @returns {boolean} - Returns true if the element has focus.
|
|
10230
10235
|
*/
|
|
10231
10236
|
get componentHasFocus() {
|
|
10232
|
-
return this.matches(':focus');
|
|
10237
|
+
return this.matches(':focus') || this.matches(':focus-within');
|
|
10233
10238
|
}
|
|
10234
10239
|
|
|
10235
10240
|
resetShapeClasses() {
|
|
@@ -10303,7 +10308,7 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10303
10308
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10304
10309
|
* @attr id
|
|
10305
10310
|
*
|
|
10306
|
-
* @slot ariaLabel.clear - Sets aria-label on clear button for
|
|
10311
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
10307
10312
|
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10308
10313
|
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10309
10314
|
* @slot helpText - Sets the help text displayed below the input.
|
|
@@ -10331,6 +10336,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10331
10336
|
this.activeLabel = false;
|
|
10332
10337
|
this.icon = false;
|
|
10333
10338
|
this.disabled = false;
|
|
10339
|
+
this.dvInputOnly = false;
|
|
10334
10340
|
this.max = undefined;
|
|
10335
10341
|
this.maxLength = undefined;
|
|
10336
10342
|
this.min = undefined;
|
|
@@ -10424,6 +10430,14 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10424
10430
|
return {
|
|
10425
10431
|
...super.properties,
|
|
10426
10432
|
|
|
10433
|
+
/**
|
|
10434
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
10435
|
+
*/
|
|
10436
|
+
dvInputOnly: {
|
|
10437
|
+
type: Boolean,
|
|
10438
|
+
reflect: true
|
|
10439
|
+
},
|
|
10440
|
+
|
|
10427
10441
|
/**
|
|
10428
10442
|
* The value for the role attribute.
|
|
10429
10443
|
*/
|
|
@@ -13189,7 +13203,13 @@ class AuroInput extends BaseInput {
|
|
|
13189
13203
|
* @private
|
|
13190
13204
|
*/
|
|
13191
13205
|
get inputHidden() {
|
|
13192
|
-
return (
|
|
13206
|
+
return (
|
|
13207
|
+
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
13208
|
+
(
|
|
13209
|
+
(!this.value || this.value.length === 0) &&
|
|
13210
|
+
!this.hasFocus &&
|
|
13211
|
+
(!this.placeholder || this.placeholder === '')
|
|
13212
|
+
);
|
|
13193
13213
|
}
|
|
13194
13214
|
|
|
13195
13215
|
/**
|
|
@@ -13209,7 +13229,7 @@ class AuroInput extends BaseInput {
|
|
|
13209
13229
|
* @private
|
|
13210
13230
|
*/
|
|
13211
13231
|
get labelHidden() {
|
|
13212
|
-
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
13232
|
+
return this.hasDisplayValueContent && !this.dvInputOnly && !this.hasFocus && this.hasValue;
|
|
13213
13233
|
}
|
|
13214
13234
|
|
|
13215
13235
|
/**
|
|
@@ -13218,18 +13238,26 @@ class AuroInput extends BaseInput {
|
|
|
13218
13238
|
* @returns {string} - The font class for the label.
|
|
13219
13239
|
*/
|
|
13220
13240
|
get labelFontClass() {
|
|
13221
|
-
const isHidden = this.inputHidden;
|
|
13222
|
-
|
|
13223
13241
|
if (this.layout.startsWith('emphasized')) {
|
|
13224
|
-
|
|
13242
|
+
let typeSize = 'body-sm';
|
|
13243
|
+
|
|
13244
|
+
if (this.hasDisplayValueContent) {
|
|
13245
|
+
if (!this.hasValue) {
|
|
13246
|
+
typeSize = 'accent-xl';
|
|
13247
|
+
}
|
|
13248
|
+
} else if (this.noFocusOrValue) {
|
|
13249
|
+
typeSize = 'accent-xl';
|
|
13250
|
+
}
|
|
13251
|
+
|
|
13252
|
+
return typeSize;
|
|
13225
13253
|
}
|
|
13226
13254
|
|
|
13227
13255
|
if (this.layout === 'snowflake') {
|
|
13228
|
-
return
|
|
13256
|
+
return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
|
|
13229
13257
|
}
|
|
13230
13258
|
|
|
13231
13259
|
// classic layout (default)
|
|
13232
|
-
return
|
|
13260
|
+
return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
13233
13261
|
}
|
|
13234
13262
|
|
|
13235
13263
|
/**
|
|
@@ -13239,7 +13267,17 @@ class AuroInput extends BaseInput {
|
|
|
13239
13267
|
*/
|
|
13240
13268
|
get inputFontClass() {
|
|
13241
13269
|
if (this.layout.startsWith('emphasized')) {
|
|
13242
|
-
|
|
13270
|
+
let typeSize = 'accent-xl';
|
|
13271
|
+
|
|
13272
|
+
if (this.hasDisplayValueContent) {
|
|
13273
|
+
if (!this.hasValue) {
|
|
13274
|
+
typeSize = 'body-sm';
|
|
13275
|
+
}
|
|
13276
|
+
} else if (this.noFocusOrValue) {
|
|
13277
|
+
typeSize = 'body-sm';
|
|
13278
|
+
}
|
|
13279
|
+
|
|
13280
|
+
return typeSize;
|
|
13243
13281
|
}
|
|
13244
13282
|
|
|
13245
13283
|
if (this.layout === 'snowflake') {
|
|
@@ -13282,6 +13320,13 @@ class AuroInput extends BaseInput {
|
|
|
13282
13320
|
};
|
|
13283
13321
|
}
|
|
13284
13322
|
|
|
13323
|
+
get commonDisplayValueWrapperClasses() {
|
|
13324
|
+
return {
|
|
13325
|
+
'displayValueWrapper': true,
|
|
13326
|
+
[this.inputFontClass]: true,
|
|
13327
|
+
};
|
|
13328
|
+
}
|
|
13329
|
+
|
|
13285
13330
|
/**
|
|
13286
13331
|
* Returns classmap configuration for html5 inputs in each layout.
|
|
13287
13332
|
* @private
|
|
@@ -13354,7 +13399,7 @@ class AuroInput extends BaseInput {
|
|
|
13354
13399
|
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
13355
13400
|
|
|
13356
13401
|
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
13357
|
-
if (nodes[0].tagName === 'SLOT') {
|
|
13402
|
+
if (nodes && nodes[0] && nodes[0].tagName === 'SLOT') {
|
|
13358
13403
|
nodes = nodes[0].assignedNodes();
|
|
13359
13404
|
}
|
|
13360
13405
|
|
|
@@ -13445,7 +13490,7 @@ class AuroInput extends BaseInput {
|
|
|
13445
13490
|
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
13446
13491
|
/>
|
|
13447
13492
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
13448
|
-
<div class="
|
|
13493
|
+
<div class="${e(this.commonDisplayValueWrapperClasses)}">
|
|
13449
13494
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
13450
13495
|
</div>
|
|
13451
13496
|
</div>
|
|
@@ -15663,7 +15708,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
15663
15708
|
|
|
15664
15709
|
var styleCss$4 = 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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host #inputInBib::part(accent-right){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
15665
15710
|
|
|
15666
|
-
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]
|
|
15711
|
+
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{--ds-auro-input-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));--ds-auro-input-container-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843));width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
15667
15712
|
|
|
15668
15713
|
var styleSnowflakeCss = i$5`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake][shape*=snowflake])::part(helpText){text-align:center}`;
|
|
15669
15714
|
|
|
@@ -15707,7 +15752,7 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
15707
15752
|
* @returns {boolean} - Returns true if the element has focus.
|
|
15708
15753
|
*/
|
|
15709
15754
|
get componentHasFocus() {
|
|
15710
|
-
return this.matches(':focus');
|
|
15755
|
+
return this.matches(':focus') || this.matches(':focus-within');
|
|
15711
15756
|
}
|
|
15712
15757
|
|
|
15713
15758
|
resetShapeClasses() {
|
|
@@ -15989,7 +16034,9 @@ class AuroHelpText extends i$2 {
|
|
|
15989
16034
|
* @slot label - Defines the content of the label.
|
|
15990
16035
|
* @slot helpText - Defines the content of the helpText.
|
|
15991
16036
|
* @slot displayValue - Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts.
|
|
15992
|
-
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
16037
|
+
* @event auroCombobox-valueSet - (Deprecated) Notifies that the component has a new value set.
|
|
16038
|
+
* @event input - Notifies that the component has a new value set.
|
|
16039
|
+
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
15993
16040
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
15994
16041
|
*/
|
|
15995
16042
|
|
|
@@ -15999,75 +16046,60 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
15999
16046
|
constructor() {
|
|
16000
16047
|
super();
|
|
16001
16048
|
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
this.privateDefaults();
|
|
16005
|
-
}
|
|
16006
|
-
|
|
16007
|
-
/**
|
|
16008
|
-
* @private
|
|
16009
|
-
* @returns {void} Internal defaults.
|
|
16010
|
-
*/
|
|
16011
|
-
privateDefaults() {
|
|
16012
|
-
this.dropdownOpen = false;
|
|
16013
|
-
this.dropdownId = undefined;
|
|
16014
|
-
this.onDark = false;
|
|
16015
|
-
|
|
16016
|
-
this.noFilter = false;
|
|
16017
|
-
this.validity = undefined;
|
|
16018
|
-
this.value = undefined;
|
|
16019
|
-
this.optionSelected = undefined;
|
|
16020
|
-
|
|
16021
|
-
this.checkmark = false;
|
|
16049
|
+
// Defaults that effect the combobox behavior and state
|
|
16022
16050
|
this.disabled = false;
|
|
16051
|
+
this.msgSelectionMissing = 'Please select an option.';
|
|
16052
|
+
this.noFilter = false;
|
|
16023
16053
|
this.noValidate = false;
|
|
16024
|
-
this.required = false;
|
|
16025
|
-
this.triggerIcon = false;
|
|
16026
|
-
|
|
16027
|
-
this.availableOptions = [];
|
|
16028
16054
|
this.optionActive = null;
|
|
16029
|
-
this.
|
|
16055
|
+
this.persistInput = false;
|
|
16056
|
+
this.required = false;
|
|
16057
|
+
this.value = undefined;
|
|
16058
|
+
this.typedValue = undefined;
|
|
16030
16059
|
|
|
16060
|
+
// Defaults that effect the overall layout of the combobox
|
|
16061
|
+
this.checkmark = false;
|
|
16062
|
+
this.dvInputOnly = false;
|
|
16031
16063
|
this.fullscreenBreakpoint = 'sm';
|
|
16032
|
-
this.largeFullscreenHeadline = false;
|
|
16033
|
-
|
|
16034
|
-
this.validation = new AuroFormValidation$1();
|
|
16035
|
-
|
|
16036
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
16037
|
-
|
|
16038
|
-
this.isHiddenWhileLoading = false;
|
|
16039
|
-
|
|
16040
|
-
// Error message
|
|
16041
|
-
this.errorMessage = null;
|
|
16042
|
-
|
|
16043
|
-
// Layout Config
|
|
16044
|
-
/**
|
|
16045
|
-
* @private
|
|
16046
|
-
*/
|
|
16047
16064
|
this.layout = 'classic';
|
|
16048
|
-
|
|
16049
|
-
/**
|
|
16050
|
-
* @private
|
|
16051
|
-
*/
|
|
16065
|
+
this.matchWidth = true;
|
|
16052
16066
|
this.shape = 'classic';
|
|
16053
|
-
|
|
16054
|
-
/**
|
|
16055
|
-
* @private
|
|
16056
|
-
*/
|
|
16057
16067
|
this.size = 'xl';
|
|
16068
|
+
this.triggerIcon = false;
|
|
16058
16069
|
|
|
16059
|
-
//
|
|
16070
|
+
// Defaults that effect the dropdown
|
|
16060
16071
|
this.placement = 'bottom-start';
|
|
16061
16072
|
this.offset = 0;
|
|
16062
16073
|
this.noFlip = false;
|
|
16063
16074
|
this.autoPlacement = false;
|
|
16064
16075
|
|
|
16076
|
+
this.privateDefaults();
|
|
16077
|
+
}
|
|
16078
|
+
|
|
16079
|
+
/**
|
|
16080
|
+
* @private
|
|
16081
|
+
* @returns {void} Internal defaults.
|
|
16082
|
+
*/
|
|
16083
|
+
privateDefaults() {
|
|
16065
16084
|
const versioning = new AuroDependencyVersioning$3();
|
|
16066
16085
|
|
|
16067
16086
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
|
|
16068
16087
|
this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
16069
16088
|
this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
|
|
16070
16089
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
|
|
16090
|
+
|
|
16091
|
+
this.availableOptions = [];
|
|
16092
|
+
this.dropdownId = undefined;
|
|
16093
|
+
this.dropdownOpen = false;
|
|
16094
|
+
this.errorMessage = null;
|
|
16095
|
+
this.isHiddenWhileLoading = false;
|
|
16096
|
+
this.largeFullscreenHeadline = false;
|
|
16097
|
+
this.onDark = false;
|
|
16098
|
+
this.optionSelected = undefined;
|
|
16099
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
16100
|
+
this.touched = false;
|
|
16101
|
+
this.validation = new AuroFormValidation$1();
|
|
16102
|
+
this.validity = undefined;
|
|
16071
16103
|
}
|
|
16072
16104
|
|
|
16073
16105
|
// This function is to define props used within the scope of this component
|
|
@@ -16105,7 +16137,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16105
16137
|
},
|
|
16106
16138
|
|
|
16107
16139
|
/**
|
|
16108
|
-
* When attribute is present auro-menu will apply
|
|
16140
|
+
* When attribute is present auro-menu will apply check marks to selected options.
|
|
16109
16141
|
*/
|
|
16110
16142
|
checkmark: {
|
|
16111
16143
|
type: Boolean,
|
|
@@ -16140,6 +16172,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16140
16172
|
attribute: false
|
|
16141
16173
|
},
|
|
16142
16174
|
|
|
16175
|
+
/**
|
|
16176
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked.
|
|
16177
|
+
*/
|
|
16178
|
+
dvInputOnly: {
|
|
16179
|
+
type: Boolean,
|
|
16180
|
+
reflect: true
|
|
16181
|
+
},
|
|
16182
|
+
|
|
16143
16183
|
/**
|
|
16144
16184
|
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
16145
16185
|
*/
|
|
@@ -16222,6 +16262,17 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16222
16262
|
type: Object
|
|
16223
16263
|
},
|
|
16224
16264
|
|
|
16265
|
+
/**
|
|
16266
|
+
* If declared, selecting a menu option will not change the input value. By doing so,
|
|
16267
|
+
* the current menu filter will be preserved and the user can continue from their last
|
|
16268
|
+
* filter state. It is recommended to use this in combination with the `displayValue` slot.
|
|
16269
|
+
* @type {Boolean}
|
|
16270
|
+
*/
|
|
16271
|
+
persistInput: {
|
|
16272
|
+
type: Boolean,
|
|
16273
|
+
reflect: true
|
|
16274
|
+
},
|
|
16275
|
+
|
|
16225
16276
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
16226
16277
|
/**
|
|
16227
16278
|
* Position where the bib should appear relative to the trigger.
|
|
@@ -16275,6 +16326,18 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16275
16326
|
type: String
|
|
16276
16327
|
},
|
|
16277
16328
|
|
|
16329
|
+
/**
|
|
16330
|
+
* Indicates whether the combobox is in a dirty state (has been interacted with).
|
|
16331
|
+
* @type {boolean}
|
|
16332
|
+
* @default false
|
|
16333
|
+
* @private
|
|
16334
|
+
*/
|
|
16335
|
+
touched: {
|
|
16336
|
+
type: Boolean,
|
|
16337
|
+
reflect: true,
|
|
16338
|
+
attribute: false
|
|
16339
|
+
},
|
|
16340
|
+
|
|
16278
16341
|
/**
|
|
16279
16342
|
* If set, the `icon` attribute will be applied to the trigger `auro-input` element.
|
|
16280
16343
|
*/
|
|
@@ -16291,6 +16354,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16291
16354
|
reflect: true
|
|
16292
16355
|
},
|
|
16293
16356
|
|
|
16357
|
+
/**
|
|
16358
|
+
* Specifies the value of the input element within the combobox.
|
|
16359
|
+
*/
|
|
16360
|
+
typedValue: {
|
|
16361
|
+
type: String,
|
|
16362
|
+
reflect: true
|
|
16363
|
+
},
|
|
16364
|
+
|
|
16294
16365
|
/**
|
|
16295
16366
|
* Specifies the `validityState` this element is in.
|
|
16296
16367
|
*/
|
|
@@ -16350,6 +16421,24 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16350
16421
|
];
|
|
16351
16422
|
}
|
|
16352
16423
|
|
|
16424
|
+
/**
|
|
16425
|
+
* Returns the current value of the input element within the combobox.
|
|
16426
|
+
* @returns {string|undefined} The value of the input element, or undefined if the input is not present.
|
|
16427
|
+
*/
|
|
16428
|
+
get inputValue() {
|
|
16429
|
+
if (!this.input) {
|
|
16430
|
+
return undefined;
|
|
16431
|
+
}
|
|
16432
|
+
return this.input.value;
|
|
16433
|
+
}
|
|
16434
|
+
|
|
16435
|
+
// /**
|
|
16436
|
+
// * Sets the value of the input element within the combobox.
|
|
16437
|
+
// */
|
|
16438
|
+
// set inputValue(value) {
|
|
16439
|
+
// this.input.value = value;
|
|
16440
|
+
// }
|
|
16441
|
+
|
|
16353
16442
|
/**
|
|
16354
16443
|
* Checks if the element is valid.
|
|
16355
16444
|
* @returns {boolean} - Returns true if the element is valid, false otherwise.
|
|
@@ -16438,11 +16527,38 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16438
16527
|
// Wait a lifecycle for child components to update
|
|
16439
16528
|
await Promise.all([this.menu.updateComplete]);
|
|
16440
16529
|
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
16530
|
+
this.updateTriggerTextDisplay();
|
|
16531
|
+
}
|
|
16532
|
+
|
|
16533
|
+
/**
|
|
16534
|
+
* Update displayValue or input.value, it's called when making a selection.
|
|
16535
|
+
* @private
|
|
16536
|
+
*/
|
|
16537
|
+
updateTriggerTextDisplay() {
|
|
16538
|
+
// update the input content if persistInput is false
|
|
16539
|
+
if (!this.persistInput) {
|
|
16540
|
+
if (this.menu.optionSelected && this.menu.optionSelected.textContent.length > 0) {
|
|
16541
|
+
this.input.value = this.menu.optionSelected.textContent;
|
|
16542
|
+
} else {
|
|
16543
|
+
this.input.value = this.value;
|
|
16544
|
+
}
|
|
16445
16545
|
}
|
|
16546
|
+
|
|
16547
|
+
// update the displayValue in the trigger if displayValue slot content is present
|
|
16548
|
+
const displayValueInTrigger = this.input.querySelector('[slot="displayValue"]');
|
|
16549
|
+
|
|
16550
|
+
if (displayValueInTrigger) {
|
|
16551
|
+
displayValueInTrigger.remove();
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
if (this.menu.optionSelected) {
|
|
16555
|
+
const displayValueEl = this.menu.optionSelected.querySelector("[slot='displayValue']");
|
|
16556
|
+
if (displayValueEl) {
|
|
16557
|
+
this.input.appendChild(displayValueEl.cloneNode(true));
|
|
16558
|
+
}
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16561
|
+
this.requestUpdate();
|
|
16446
16562
|
}
|
|
16447
16563
|
|
|
16448
16564
|
/**
|
|
@@ -16464,11 +16580,15 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16464
16580
|
* @returns {void}
|
|
16465
16581
|
*/
|
|
16466
16582
|
handleMenuOptions() {
|
|
16467
|
-
|
|
16468
16583
|
this.resetMenuMatchword();
|
|
16584
|
+
|
|
16469
16585
|
this.generateOptionsArray();
|
|
16470
16586
|
this.availableOptions = [];
|
|
16471
16587
|
this.updateFilter();
|
|
16588
|
+
|
|
16589
|
+
if (this.value && this.input.value && !this.menu.value) {
|
|
16590
|
+
this.syncValuesAndStates();
|
|
16591
|
+
}
|
|
16472
16592
|
}
|
|
16473
16593
|
|
|
16474
16594
|
/**
|
|
@@ -16566,14 +16686,29 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16566
16686
|
});
|
|
16567
16687
|
}
|
|
16568
16688
|
|
|
16689
|
+
/**
|
|
16690
|
+
* @private
|
|
16691
|
+
*/
|
|
16692
|
+
setClearBtnFocus() {
|
|
16693
|
+
const clearBtn = this.input.shadowRoot.querySelector('.clearBtn');
|
|
16694
|
+
if (clearBtn) {
|
|
16695
|
+
clearBtn.focus();
|
|
16696
|
+
}
|
|
16697
|
+
}
|
|
16698
|
+
|
|
16569
16699
|
/**
|
|
16570
16700
|
* @private
|
|
16571
16701
|
*/
|
|
16572
16702
|
setInputFocus() {
|
|
16573
16703
|
if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
|
|
16574
16704
|
this.inputInBib.focus();
|
|
16575
|
-
} else {
|
|
16705
|
+
} else if (!this.input.componentHasFocus) {
|
|
16706
|
+
const focusedEl = this.querySelector(":focus");
|
|
16576
16707
|
this.input.focus();
|
|
16708
|
+
// current focus is on a menuoption, after clicking on it.
|
|
16709
|
+
if (this.persistInput && focusedEl && (focusedEl.tagName.toLowerCase() === 'auro-menuoption' || focusedEl.hasAttribute('auro-menuoption'))) {
|
|
16710
|
+
this.setClearBtnFocus();
|
|
16711
|
+
}
|
|
16577
16712
|
}
|
|
16578
16713
|
}
|
|
16579
16714
|
|
|
@@ -16609,6 +16744,8 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16609
16744
|
configureMenu() {
|
|
16610
16745
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16611
16746
|
|
|
16747
|
+
this.menu.value = this.value;
|
|
16748
|
+
|
|
16612
16749
|
this.updateMenuShapeSize();
|
|
16613
16750
|
|
|
16614
16751
|
// a racing condition on custom-combobox with custom-menu
|
|
@@ -16629,7 +16766,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16629
16766
|
}
|
|
16630
16767
|
|
|
16631
16768
|
// handle the menu event for an option selection
|
|
16632
|
-
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
16769
|
+
this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
|
|
16633
16770
|
if (this.menu.optionSelected) {
|
|
16634
16771
|
const selected = this.menu.optionSelected;
|
|
16635
16772
|
|
|
@@ -16639,12 +16776,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16639
16776
|
|
|
16640
16777
|
if (!this.value || this.value !== this.optionSelected.value) {
|
|
16641
16778
|
this.value = this.optionSelected.value;
|
|
16642
|
-
this.menu.value = this.value;
|
|
16779
|
+
// this.menu.value = this.value;
|
|
16643
16780
|
}
|
|
16644
16781
|
|
|
16645
|
-
|
|
16646
|
-
this.input.value = this.optionSelected.textContent;
|
|
16647
|
-
}
|
|
16782
|
+
this.updateTriggerTextDisplay();
|
|
16648
16783
|
|
|
16649
16784
|
if (this.menu.matchWord !== this.input.value) {
|
|
16650
16785
|
this.menu.matchWord = this.input.value;
|
|
@@ -16652,18 +16787,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16652
16787
|
|
|
16653
16788
|
// update the hidden state of options based on newly selected value
|
|
16654
16789
|
this.handleMenuOptions();
|
|
16655
|
-
|
|
16656
|
-
this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
|
|
16657
|
-
bubbles: true,
|
|
16658
|
-
cancelable: false,
|
|
16659
|
-
composed: true,
|
|
16660
|
-
}));
|
|
16661
16790
|
}
|
|
16662
16791
|
|
|
16663
16792
|
// dropdown bib should hide when making a selection
|
|
16664
|
-
|
|
16665
|
-
|
|
16666
|
-
|
|
16793
|
+
if (evt.detail && evt.detail.source !== 'slotchange') {
|
|
16794
|
+
setTimeout(() => {
|
|
16795
|
+
this.hideBib();
|
|
16796
|
+
}, 0);
|
|
16797
|
+
}
|
|
16667
16798
|
});
|
|
16668
16799
|
|
|
16669
16800
|
this.menu.addEventListener('auroMenu-customEventFired', () => {
|
|
@@ -16705,12 +16836,8 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16705
16836
|
}
|
|
16706
16837
|
});
|
|
16707
16838
|
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
// not to bubble up input's validated event.
|
|
16711
|
-
evt.stopPropagation();
|
|
16712
|
-
|
|
16713
|
-
this.errorMessage = evt.detail.message;
|
|
16839
|
+
this.input.addEventListener('input', () => {
|
|
16840
|
+
this.dispatchEvent(new CustomEvent('inputValue', { detail: { value: this.inputValue} }));
|
|
16714
16841
|
});
|
|
16715
16842
|
}
|
|
16716
16843
|
|
|
@@ -16754,29 +16881,9 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16754
16881
|
this.menu.matchWord = this.input.value;
|
|
16755
16882
|
this.optionActive = null;
|
|
16756
16883
|
|
|
16757
|
-
|
|
16758
|
-
|
|
16759
|
-
if (!this.value || this.value !== this.input.value) {
|
|
16760
|
-
this.menu.value = this.input.value;
|
|
16761
|
-
this.value = this.menu.value;
|
|
16762
|
-
hasChange = true;
|
|
16763
|
-
this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
|
|
16764
|
-
bubbles: true,
|
|
16765
|
-
cancelable: false,
|
|
16766
|
-
composed: true,
|
|
16767
|
-
}));
|
|
16768
|
-
}
|
|
16769
|
-
|
|
16770
|
-
if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
|
|
16771
|
-
this.optionSelected = undefined;
|
|
16772
|
-
hasChange = true;
|
|
16773
|
-
}
|
|
16774
|
-
|
|
16775
|
-
if (!hasChange) {
|
|
16776
|
-
return;
|
|
16884
|
+
if (!this.input.value) {
|
|
16885
|
+
this.clear();
|
|
16777
16886
|
}
|
|
16778
|
-
|
|
16779
|
-
this.menu.clearSelection();
|
|
16780
16887
|
this.handleMenuOptions();
|
|
16781
16888
|
|
|
16782
16889
|
// Validate only if the value was set programmatically
|
|
@@ -16801,10 +16908,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16801
16908
|
* @returns {void}
|
|
16802
16909
|
*/
|
|
16803
16910
|
configureCombobox() {
|
|
16804
|
-
this.addEventListener('keydown', (evt) => {
|
|
16911
|
+
this.addEventListener('keydown', async (evt) => {
|
|
16805
16912
|
if (evt.key === 'Enter') {
|
|
16806
16913
|
if (this.dropdown.isPopoverVisible && this.optionActive) {
|
|
16807
16914
|
this.menu.makeSelection();
|
|
16915
|
+
|
|
16916
|
+
await this.updateComplete;
|
|
16917
|
+
|
|
16918
|
+
evt.preventDefault();
|
|
16919
|
+
evt.stopPropagation();
|
|
16920
|
+
this.setClearBtnFocus();
|
|
16808
16921
|
} else {
|
|
16809
16922
|
this.showBib();
|
|
16810
16923
|
}
|
|
@@ -16819,6 +16932,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16819
16932
|
this.dropdown.focus();
|
|
16820
16933
|
}
|
|
16821
16934
|
} else {
|
|
16935
|
+
if (this.menu.optionActive && this.menu.optionActive.value) {
|
|
16936
|
+
this.menu.value = this.menu.optionActive.value;
|
|
16937
|
+
}
|
|
16938
|
+
|
|
16822
16939
|
setTimeout(() => {
|
|
16823
16940
|
if (!this.componentHasFocus) {
|
|
16824
16941
|
this.hideBib();
|
|
@@ -16848,8 +16965,15 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16848
16965
|
});
|
|
16849
16966
|
|
|
16850
16967
|
this.addEventListener('focusin', () => {
|
|
16968
|
+
this.touched = true;
|
|
16969
|
+
|
|
16851
16970
|
this.focus();
|
|
16852
16971
|
});
|
|
16972
|
+
|
|
16973
|
+
this.addEventListener('auroFormElement-validated', (evt) => {
|
|
16974
|
+
this.input.validity = evt.detail.validity;
|
|
16975
|
+
this.input.errorMessage = evt.detail.message;
|
|
16976
|
+
});
|
|
16853
16977
|
}
|
|
16854
16978
|
|
|
16855
16979
|
/**
|
|
@@ -16894,7 +17018,9 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16894
17018
|
* @returns {void}
|
|
16895
17019
|
*/
|
|
16896
17020
|
focus() {
|
|
16897
|
-
this.
|
|
17021
|
+
if (!this.componentHasFocus) {
|
|
17022
|
+
this.input.focus();
|
|
17023
|
+
}
|
|
16898
17024
|
}
|
|
16899
17025
|
|
|
16900
17026
|
/**
|
|
@@ -16902,8 +17028,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16902
17028
|
* @returns {void}
|
|
16903
17029
|
*/
|
|
16904
17030
|
reset() {
|
|
16905
|
-
this.
|
|
17031
|
+
this.optionSelected = undefined;
|
|
17032
|
+
this.value = undefined;
|
|
17033
|
+
this.typedValue = undefined;
|
|
17034
|
+
this.input.value = undefined;
|
|
17035
|
+
this.menu.value = undefined;
|
|
16906
17036
|
this.validation.reset(this);
|
|
17037
|
+
this.touched = false;
|
|
16907
17038
|
}
|
|
16908
17039
|
|
|
16909
17040
|
/**
|
|
@@ -16912,6 +17043,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16912
17043
|
*/
|
|
16913
17044
|
clear() {
|
|
16914
17045
|
this.input.clear();
|
|
17046
|
+
if (this.menu.value || this.menu.optionSelected) {
|
|
17047
|
+
this.menu.reset();
|
|
17048
|
+
}
|
|
17049
|
+
this.optionSelected = undefined;
|
|
17050
|
+
this.value = undefined;
|
|
16915
17051
|
}
|
|
16916
17052
|
|
|
16917
17053
|
/**
|
|
@@ -16924,7 +17060,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16924
17060
|
|
|
16925
17061
|
async updated(changedProperties) {
|
|
16926
17062
|
// After the component is ready, send direct value changes to auro-menu.
|
|
16927
|
-
if (changedProperties.has('value')
|
|
17063
|
+
if (changedProperties.has('value')) {
|
|
17064
|
+
if (this.value && this.value.length > 0) {
|
|
17065
|
+
this.hasValue = true;
|
|
17066
|
+
} else {
|
|
17067
|
+
this.hasValue = false;
|
|
17068
|
+
}
|
|
17069
|
+
|
|
17070
|
+
if (this.hasValue && !this.input.value && (!this.menu.availableOptions || this.menu.availableOptions.length === 0)) {
|
|
17071
|
+
this.input.value = this.value;
|
|
17072
|
+
}
|
|
16928
17073
|
|
|
16929
17074
|
if (this.value) {
|
|
16930
17075
|
// If the value got set programmatically make sure we hide the bib
|
|
@@ -16938,6 +17083,19 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16938
17083
|
|
|
16939
17084
|
// Sync the input, menu, and optionSelected states
|
|
16940
17085
|
await this.syncValuesAndStates();
|
|
17086
|
+
|
|
17087
|
+
this.dispatchEvent(new CustomEvent('input', {
|
|
17088
|
+
bubbles: true,
|
|
17089
|
+
cancelable: false,
|
|
17090
|
+
composed: true,
|
|
17091
|
+
}));
|
|
17092
|
+
|
|
17093
|
+
// Deprecated, need to be removed.
|
|
17094
|
+
this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
|
|
17095
|
+
bubbles: true,
|
|
17096
|
+
cancelable: false,
|
|
17097
|
+
composed: true,
|
|
17098
|
+
}));
|
|
16941
17099
|
}
|
|
16942
17100
|
|
|
16943
17101
|
if (changedProperties.has('availableOptions')) {
|
|
@@ -16980,6 +17138,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16980
17138
|
});
|
|
16981
17139
|
}
|
|
16982
17140
|
|
|
17141
|
+
/**
|
|
17142
|
+
* Updates the active option in the menu.
|
|
17143
|
+
* @param {number} index - Index of the option to make active.
|
|
17144
|
+
*/
|
|
17145
|
+
updateActiveOption(index) {
|
|
17146
|
+
if (this.menu) {
|
|
17147
|
+
this.menu.updateActiveOption(index);
|
|
17148
|
+
}
|
|
17149
|
+
}
|
|
17150
|
+
|
|
16983
17151
|
/**
|
|
16984
17152
|
* Watch for slot changes and recalculate the menuoptions.
|
|
16985
17153
|
* @private
|
|
@@ -16989,6 +17157,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16989
17157
|
handleSlotChange(event) {
|
|
16990
17158
|
switch (event.target.name) {
|
|
16991
17159
|
case '':
|
|
17160
|
+
if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
|
|
17161
|
+
this.configureMenu();
|
|
17162
|
+
}
|
|
17163
|
+
|
|
16992
17164
|
// Treat only generic menuoptions.
|
|
16993
17165
|
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
16994
17166
|
this.options.forEach((opt) => {
|
|
@@ -17065,14 +17237,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17065
17237
|
.inputmode="${this.inputmode}"
|
|
17066
17238
|
.placeholder="${this.placeholder}"
|
|
17067
17239
|
.type="${this.type}"
|
|
17240
|
+
.value="${this.typedValue}"
|
|
17068
17241
|
?disabled="${this.disabled}"
|
|
17069
17242
|
?icon="${this.triggerIcon}"
|
|
17070
|
-
?
|
|
17243
|
+
?dvInputOnly="${this.dvInputOnly}"
|
|
17071
17244
|
?onDark="${this.onDark}"
|
|
17072
17245
|
?required="${this.required}"
|
|
17073
17246
|
a11yRole="combobox"
|
|
17074
17247
|
id="${this.id}"
|
|
17075
17248
|
layout="${this.layout}"
|
|
17249
|
+
noValidate="true"
|
|
17076
17250
|
setCustomValidity="${this.setCustomValidity}"
|
|
17077
17251
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
17078
17252
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -17088,7 +17262,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17088
17262
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
17089
17263
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17090
17264
|
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
17091
|
-
<slot></slot>
|
|
17265
|
+
<slot @slotchange="${this.handleSlotChange}"></slot>
|
|
17092
17266
|
<${this.inputTag}
|
|
17093
17267
|
id="inputInBib"
|
|
17094
17268
|
@input="${this.handleInputValueChange}"
|
|
@@ -17098,6 +17272,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17098
17272
|
.inputmode="${this.inputmode}"
|
|
17099
17273
|
.placeholder="${this.placeholder}"
|
|
17100
17274
|
.type="${this.type}"
|
|
17275
|
+
.value="${this.typedValue}"
|
|
17101
17276
|
?disabled="${this.disabled}"
|
|
17102
17277
|
?icon="${this.triggerIcon}"
|
|
17103
17278
|
?required="${this.required}"
|
|
@@ -17415,6 +17590,10 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17415
17590
|
updated(changedProperties) {
|
|
17416
17591
|
super.updated(changedProperties);
|
|
17417
17592
|
|
|
17593
|
+
if (changedProperties.has('optionSelected')) {
|
|
17594
|
+
this.notifySelectionChange();
|
|
17595
|
+
}
|
|
17596
|
+
|
|
17418
17597
|
if (changedProperties.has('multiSelect') && !changedProperties.has("value")) {
|
|
17419
17598
|
// Reset selection if multiSelect mode changes
|
|
17420
17599
|
this.clearSelection();
|
|
@@ -17424,8 +17603,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17424
17603
|
if (changedProperties.has("value")) {
|
|
17425
17604
|
// Handle null/undefined case
|
|
17426
17605
|
if (this.value === undefined || this.value === null) {
|
|
17427
|
-
this.
|
|
17428
|
-
this.index = -1;
|
|
17606
|
+
this.clearSelection();
|
|
17429
17607
|
} else {
|
|
17430
17608
|
if (this.multiSelect) {
|
|
17431
17609
|
// In multiselect mode, this.value should be an array of strings
|
|
@@ -17529,6 +17707,12 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17529
17707
|
if (changedProperties.has('matchWord') && regexWord &&
|
|
17530
17708
|
isOptionInteractive(option) && !option.hasAttribute('persistent')) {
|
|
17531
17709
|
const nested = option.querySelectorAll('.nestingSpacer');
|
|
17710
|
+
|
|
17711
|
+
const displayValueEl = option.querySelector('[slot="displayValue"]');
|
|
17712
|
+
if (displayValueEl) {
|
|
17713
|
+
option.removeChild(displayValueEl);
|
|
17714
|
+
}
|
|
17715
|
+
|
|
17532
17716
|
// Create nested spacers
|
|
17533
17717
|
const nestingSpacerBundle = [...nested].map(() => this.nestingSpacer).join('');
|
|
17534
17718
|
|
|
@@ -17538,6 +17722,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17538
17722
|
regexWord,
|
|
17539
17723
|
(match) => `<strong>${match}</strong>`
|
|
17540
17724
|
);
|
|
17725
|
+
if (displayValueEl) {
|
|
17726
|
+
option.append(displayValueEl);
|
|
17727
|
+
}
|
|
17541
17728
|
}
|
|
17542
17729
|
|
|
17543
17730
|
// Update disabled state
|
|
@@ -17669,6 +17856,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17669
17856
|
clearSelection() {
|
|
17670
17857
|
this.optionSelected = undefined;
|
|
17671
17858
|
this.value = undefined;
|
|
17859
|
+
this.index = -1;
|
|
17672
17860
|
}
|
|
17673
17861
|
|
|
17674
17862
|
/**
|
|
@@ -17766,7 +17954,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17766
17954
|
// In multiselect, toggle individual selections
|
|
17767
17955
|
this.toggleOption(option);
|
|
17768
17956
|
// In single select, only handle selection of new options
|
|
17769
|
-
} else if (!this.isOptionSelected(option)) {
|
|
17957
|
+
} else if (this.option !== this.optionSelected || !this.isOptionSelected(option)) {
|
|
17770
17958
|
this.clearSelection();
|
|
17771
17959
|
this.handleSelectState(option);
|
|
17772
17960
|
}
|
|
@@ -17797,7 +17985,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17797
17985
|
* @param {MouseEvent} event - Event object from the browser.
|
|
17798
17986
|
*/
|
|
17799
17987
|
handleMouseSelect(event) {
|
|
17800
|
-
if (event.target === this) {
|
|
17988
|
+
if (!this.rootMenu || event.target === this) {
|
|
17801
17989
|
return;
|
|
17802
17990
|
}
|
|
17803
17991
|
|
|
@@ -17822,8 +18010,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17822
18010
|
/**
|
|
17823
18011
|
* Handles slot change events.
|
|
17824
18012
|
* @private
|
|
18013
|
+
* @param {Event} evt - Event object from the browser.
|
|
17825
18014
|
*/
|
|
17826
|
-
handleSlotChange() {
|
|
18015
|
+
handleSlotChange(evt) {
|
|
17827
18016
|
if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
|
|
17828
18017
|
this.rootMenu = false;
|
|
17829
18018
|
}
|
|
@@ -17838,6 +18027,15 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17838
18027
|
]
|
|
17839
18028
|
]));
|
|
17840
18029
|
}
|
|
18030
|
+
|
|
18031
|
+
if (this.value) {
|
|
18032
|
+
this.items.forEach((opt) => {
|
|
18033
|
+
if (opt.value === this.value || (this.multiSelect && this.formattedValue.includes(opt.value))) {
|
|
18034
|
+
this.handleSelectState(opt);
|
|
18035
|
+
this.notifySelectionChange(evt.type);
|
|
18036
|
+
}
|
|
18037
|
+
});
|
|
18038
|
+
}
|
|
17841
18039
|
}
|
|
17842
18040
|
|
|
17843
18041
|
/**
|
|
@@ -17892,7 +18090,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17892
18090
|
|
|
17893
18091
|
/**
|
|
17894
18092
|
* Updates the active option state and dispatches events.
|
|
17895
|
-
* @private
|
|
17896
18093
|
* @param {number} index - Index of the option to make active.
|
|
17897
18094
|
*/
|
|
17898
18095
|
updateActiveOption(index) {
|
|
@@ -17921,10 +18118,11 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17921
18118
|
|
|
17922
18119
|
/**
|
|
17923
18120
|
* Notifies selection change to parent components.
|
|
18121
|
+
* @param {any} source - The source that triggers this event.
|
|
17924
18122
|
* @private
|
|
17925
18123
|
*/
|
|
17926
|
-
notifySelectionChange() {
|
|
17927
|
-
dispatchMenuEvent(this, 'auroMenu-selectedOption');
|
|
18124
|
+
notifySelectionChange(source = undefined) {
|
|
18125
|
+
dispatchMenuEvent(this, 'auroMenu-selectedOption', { source });
|
|
17928
18126
|
}
|
|
17929
18127
|
|
|
17930
18128
|
/**
|
|
@@ -17997,7 +18195,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17997
18195
|
}
|
|
17998
18196
|
}
|
|
17999
18197
|
|
|
18000
|
-
var styleCss$1 = i$5`.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.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);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-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);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);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.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);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.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);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.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);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.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);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.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);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.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);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.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);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.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);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.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);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.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);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.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);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.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);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));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);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));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);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));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);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}: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-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}: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([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + 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}`;
|
|
18198
|
+
var styleCss$1 = i$5`.body-default{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);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.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);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{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);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.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);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-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);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);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.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);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.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);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.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);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.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);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.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);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.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);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.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);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.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);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.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);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.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);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.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);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.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);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));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);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));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);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));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);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.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);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}: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-300, 1.5rem) + var(--ds-size-100, 0.5rem));padding-top:var(--ds-size-50, 0.25rem);padding-bottom:var(--ds-size-50, 0.25rem);border-radius:var(--ds-size-100, 0.5rem);-webkit-tap-highlight-color:transparent}:host .wrapper[class*=shape-box]{border-radius:unset}:host .wrapper[class*=shape-snowflake]{border-radius:unset;line-height:24px}:host .wrapper[class*=shape-pill]{border-radius:30px}:host .wrapper[class*=-lg]{padding-top:var(--ds-size-75, 0.375rem);padding-bottom:var(--ds-size-75, 0.375rem);padding-right:var(--ds-size-150, 0.75rem);line-height:26px}:host .wrapper[class*=-xl]{padding-top:var(--ds-size-100, 0.5rem);padding-bottom:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-200, 1rem);line-height:26px}: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)}[slot=displayValue]{display:none}:host([loadingplaceholder]) .wrapper{padding-left:calc(var(--ds-size-150, 0.75rem) + var(--ds-size-300, 1.5rem) + 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}`;
|
|
18001
18199
|
|
|
18002
18200
|
var colorCss$1 = i$5`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color, transparent);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color, transparent);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host(:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([selected]:hover),:host([selected].active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host([selected]:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host(:focus:hover),:host(:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]:focus:hover),:host([selected]:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}`;
|
|
18003
18201
|
|
|
@@ -18471,7 +18669,8 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
18471
18669
|
reflect: true
|
|
18472
18670
|
},
|
|
18473
18671
|
value: {
|
|
18474
|
-
type: String
|
|
18672
|
+
type: String,
|
|
18673
|
+
reflect: true
|
|
18475
18674
|
},
|
|
18476
18675
|
tabIndex: {
|
|
18477
18676
|
type: Number,
|