@aurodesignsystem-dev/auro-formkit 0.0.0-pr1052.0 → 0.0.0-pr1052.10
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/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +96 -57
- package/components/combobox/demo/api.min.js +353 -144
- package/components/combobox/demo/index.md +2 -0
- package/components/combobox/demo/index.min.js +332 -133
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +81 -33
- package/components/combobox/dist/index.js +294 -118
- package/components/combobox/dist/registered.js +294 -118
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +54 -14
- package/components/datepicker/demo/index.min.js +54 -14
- package/components/datepicker/dist/index.js +54 -14
- package/components/datepicker/dist/registered.js +54 -14
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/input/demo/api.md +48 -46
- package/components/input/demo/api.min.js +52 -12
- package/components/input/demo/index.md +6 -1
- 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 +39 -16
- package/components/menu/demo/index.min.js +39 -16
- package/components/menu/dist/auro-menu.d.ts +3 -3
- package/components/menu/dist/index.js +39 -16
- package/components/menu/dist/registered.js +39 -16
- package/components/select/demo/api.min.js +40 -17
- package/components/select/demo/index.min.js +40 -17
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- 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() {
|
|
@@ -10229,7 +10229,7 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10229
10229
|
* @returns {boolean} - Returns true if the element has focus.
|
|
10230
10230
|
*/
|
|
10231
10231
|
get componentHasFocus() {
|
|
10232
|
-
return this.matches(':focus');
|
|
10232
|
+
return this.matches(':focus') || this.matches(':focus-within');
|
|
10233
10233
|
}
|
|
10234
10234
|
|
|
10235
10235
|
resetShapeClasses() {
|
|
@@ -10303,7 +10303,7 @@ let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
|
10303
10303
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10304
10304
|
* @attr id
|
|
10305
10305
|
*
|
|
10306
|
-
* @slot ariaLabel.clear - Sets aria-label on clear button for
|
|
10306
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
10307
10307
|
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10308
10308
|
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10309
10309
|
* @slot helpText - Sets the help text displayed below the input.
|
|
@@ -10331,6 +10331,7 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10331
10331
|
this.activeLabel = false;
|
|
10332
10332
|
this.icon = false;
|
|
10333
10333
|
this.disabled = false;
|
|
10334
|
+
this.dvInputOnly = false;
|
|
10334
10335
|
this.max = undefined;
|
|
10335
10336
|
this.maxLength = undefined;
|
|
10336
10337
|
this.min = undefined;
|
|
@@ -10424,6 +10425,14 @@ class BaseInput extends AuroElement$2$1 {
|
|
|
10424
10425
|
return {
|
|
10425
10426
|
...super.properties,
|
|
10426
10427
|
|
|
10428
|
+
/**
|
|
10429
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked.
|
|
10430
|
+
*/
|
|
10431
|
+
dvInputOnly: {
|
|
10432
|
+
type: Boolean,
|
|
10433
|
+
reflect: true
|
|
10434
|
+
},
|
|
10435
|
+
|
|
10427
10436
|
/**
|
|
10428
10437
|
* The value for the role attribute.
|
|
10429
10438
|
*/
|
|
@@ -13189,7 +13198,13 @@ class AuroInput extends BaseInput {
|
|
|
13189
13198
|
* @private
|
|
13190
13199
|
*/
|
|
13191
13200
|
get inputHidden() {
|
|
13192
|
-
return (
|
|
13201
|
+
return (
|
|
13202
|
+
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
13203
|
+
(
|
|
13204
|
+
(!this.value || this.value.length === 0) &&
|
|
13205
|
+
!this.hasFocus &&
|
|
13206
|
+
(!this.placeholder || this.placeholder === '')
|
|
13207
|
+
);
|
|
13193
13208
|
}
|
|
13194
13209
|
|
|
13195
13210
|
/**
|
|
@@ -13209,7 +13224,7 @@ class AuroInput extends BaseInput {
|
|
|
13209
13224
|
* @private
|
|
13210
13225
|
*/
|
|
13211
13226
|
get labelHidden() {
|
|
13212
|
-
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
13227
|
+
return this.hasDisplayValueContent && !this.dvInputOnly && !this.hasFocus && this.hasValue;
|
|
13213
13228
|
}
|
|
13214
13229
|
|
|
13215
13230
|
/**
|
|
@@ -13218,18 +13233,26 @@ class AuroInput extends BaseInput {
|
|
|
13218
13233
|
* @returns {string} - The font class for the label.
|
|
13219
13234
|
*/
|
|
13220
13235
|
get labelFontClass() {
|
|
13221
|
-
const isHidden = this.inputHidden;
|
|
13222
|
-
|
|
13223
13236
|
if (this.layout.startsWith('emphasized')) {
|
|
13224
|
-
|
|
13237
|
+
let typeSize = 'body-sm';
|
|
13238
|
+
|
|
13239
|
+
if (this.hasDisplayValueContent) {
|
|
13240
|
+
if (!this.hasValue) {
|
|
13241
|
+
typeSize = 'accent-xl';
|
|
13242
|
+
}
|
|
13243
|
+
} else if (this.noFocusOrValue) {
|
|
13244
|
+
typeSize = 'accent-xl';
|
|
13245
|
+
}
|
|
13246
|
+
|
|
13247
|
+
return typeSize;
|
|
13225
13248
|
}
|
|
13226
13249
|
|
|
13227
13250
|
if (this.layout === 'snowflake') {
|
|
13228
|
-
return
|
|
13251
|
+
return this.hasValue || this.hasFocus || this.placeholder ? 'body-xs' : 'body-lg';
|
|
13229
13252
|
}
|
|
13230
13253
|
|
|
13231
13254
|
// classic layout (default)
|
|
13232
|
-
return
|
|
13255
|
+
return ((!this.value || this.value.length === 0) && !this.placeholder && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
13233
13256
|
}
|
|
13234
13257
|
|
|
13235
13258
|
/**
|
|
@@ -13239,7 +13262,17 @@ class AuroInput extends BaseInput {
|
|
|
13239
13262
|
*/
|
|
13240
13263
|
get inputFontClass() {
|
|
13241
13264
|
if (this.layout.startsWith('emphasized')) {
|
|
13242
|
-
|
|
13265
|
+
let typeSize = 'accent-xl';
|
|
13266
|
+
|
|
13267
|
+
if (this.hasDisplayValueContent) {
|
|
13268
|
+
if (!this.hasValue) {
|
|
13269
|
+
typeSize = 'body-sm';
|
|
13270
|
+
}
|
|
13271
|
+
} else if (this.noFocusOrValue) {
|
|
13272
|
+
typeSize = 'body-sm';
|
|
13273
|
+
}
|
|
13274
|
+
|
|
13275
|
+
return typeSize;
|
|
13243
13276
|
}
|
|
13244
13277
|
|
|
13245
13278
|
if (this.layout === 'snowflake') {
|
|
@@ -13282,6 +13315,13 @@ class AuroInput extends BaseInput {
|
|
|
13282
13315
|
};
|
|
13283
13316
|
}
|
|
13284
13317
|
|
|
13318
|
+
get commonDisplayValueWrapperClasses() {
|
|
13319
|
+
return {
|
|
13320
|
+
'displayValueWrapper': true,
|
|
13321
|
+
[this.inputFontClass]: true,
|
|
13322
|
+
};
|
|
13323
|
+
}
|
|
13324
|
+
|
|
13285
13325
|
/**
|
|
13286
13326
|
* Returns classmap configuration for html5 inputs in each layout.
|
|
13287
13327
|
* @private
|
|
@@ -13354,7 +13394,7 @@ class AuroInput extends BaseInput {
|
|
|
13354
13394
|
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
13355
13395
|
|
|
13356
13396
|
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
13357
|
-
if (nodes[0].tagName === 'SLOT') {
|
|
13397
|
+
if (nodes && nodes[0] && nodes[0].tagName === 'SLOT') {
|
|
13358
13398
|
nodes = nodes[0].assignedNodes();
|
|
13359
13399
|
}
|
|
13360
13400
|
|
|
@@ -13445,7 +13485,7 @@ class AuroInput extends BaseInput {
|
|
|
13445
13485
|
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
13446
13486
|
/>
|
|
13447
13487
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
13448
|
-
<div class="
|
|
13488
|
+
<div class="${e(this.commonDisplayValueWrapperClasses)}">
|
|
13449
13489
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
13450
13490
|
</div>
|
|
13451
13491
|
</div>
|
|
@@ -15707,7 +15747,7 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
15707
15747
|
* @returns {boolean} - Returns true if the element has focus.
|
|
15708
15748
|
*/
|
|
15709
15749
|
get componentHasFocus() {
|
|
15710
|
-
return this.matches(':focus');
|
|
15750
|
+
return this.matches(':focus') || this.matches(':focus-within');
|
|
15711
15751
|
}
|
|
15712
15752
|
|
|
15713
15753
|
resetShapeClasses() {
|
|
@@ -15989,7 +16029,9 @@ class AuroHelpText extends i$2 {
|
|
|
15989
16029
|
* @slot label - Defines the content of the label.
|
|
15990
16030
|
* @slot helpText - Defines the content of the helpText.
|
|
15991
16031
|
* @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.
|
|
16032
|
+
* @event auroCombobox-valueSet - (Deprecated) Notifies that the component has a new value set.
|
|
16033
|
+
* @event input - Notifies that the component has a new value set.
|
|
16034
|
+
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
15993
16035
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
15994
16036
|
*/
|
|
15995
16037
|
|
|
@@ -15999,75 +16041,60 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
15999
16041
|
constructor() {
|
|
16000
16042
|
super();
|
|
16001
16043
|
|
|
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;
|
|
16044
|
+
// Defaults that effect the combobox behavior and state
|
|
16022
16045
|
this.disabled = false;
|
|
16046
|
+
this.msgSelectionMissing = 'Please select an option.';
|
|
16047
|
+
this.noFilter = false;
|
|
16023
16048
|
this.noValidate = false;
|
|
16024
|
-
this.required = false;
|
|
16025
|
-
this.triggerIcon = false;
|
|
16026
|
-
|
|
16027
|
-
this.availableOptions = [];
|
|
16028
16049
|
this.optionActive = null;
|
|
16029
|
-
this.
|
|
16050
|
+
this.persistInput = false;
|
|
16051
|
+
this.required = false;
|
|
16052
|
+
this.value = undefined;
|
|
16053
|
+
this.typedValue = undefined;
|
|
16030
16054
|
|
|
16055
|
+
// Defaults that effect the overall layout of the combobox
|
|
16056
|
+
this.checkmark = false;
|
|
16057
|
+
this.dvInputOnly = false;
|
|
16031
16058
|
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
16059
|
this.layout = 'classic';
|
|
16048
|
-
|
|
16049
|
-
/**
|
|
16050
|
-
* @private
|
|
16051
|
-
*/
|
|
16060
|
+
this.matchWidth = true;
|
|
16052
16061
|
this.shape = 'classic';
|
|
16053
|
-
|
|
16054
|
-
/**
|
|
16055
|
-
* @private
|
|
16056
|
-
*/
|
|
16057
16062
|
this.size = 'xl';
|
|
16063
|
+
this.triggerIcon = false;
|
|
16058
16064
|
|
|
16059
|
-
//
|
|
16065
|
+
// Defaults that effect the dropdown
|
|
16060
16066
|
this.placement = 'bottom-start';
|
|
16061
16067
|
this.offset = 0;
|
|
16062
16068
|
this.noFlip = false;
|
|
16063
16069
|
this.autoPlacement = false;
|
|
16064
16070
|
|
|
16071
|
+
this.privateDefaults();
|
|
16072
|
+
}
|
|
16073
|
+
|
|
16074
|
+
/**
|
|
16075
|
+
* @private
|
|
16076
|
+
* @returns {void} Internal defaults.
|
|
16077
|
+
*/
|
|
16078
|
+
privateDefaults() {
|
|
16065
16079
|
const versioning = new AuroDependencyVersioning$3();
|
|
16066
16080
|
|
|
16067
16081
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
|
|
16068
16082
|
this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
16069
16083
|
this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
|
|
16070
16084
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
|
|
16085
|
+
|
|
16086
|
+
this.availableOptions = [];
|
|
16087
|
+
this.dropdownId = undefined;
|
|
16088
|
+
this.dropdownOpen = false;
|
|
16089
|
+
this.errorMessage = null;
|
|
16090
|
+
this.isHiddenWhileLoading = false;
|
|
16091
|
+
this.largeFullscreenHeadline = false;
|
|
16092
|
+
this.onDark = false;
|
|
16093
|
+
this.optionSelected = undefined;
|
|
16094
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
16095
|
+
this.touched = false;
|
|
16096
|
+
this.validation = new AuroFormValidation$1();
|
|
16097
|
+
this.validity = undefined;
|
|
16071
16098
|
}
|
|
16072
16099
|
|
|
16073
16100
|
// This function is to define props used within the scope of this component
|
|
@@ -16105,7 +16132,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16105
16132
|
},
|
|
16106
16133
|
|
|
16107
16134
|
/**
|
|
16108
|
-
* When attribute is present auro-menu will apply
|
|
16135
|
+
* When attribute is present auro-menu will apply check marks to selected options.
|
|
16109
16136
|
*/
|
|
16110
16137
|
checkmark: {
|
|
16111
16138
|
type: Boolean,
|
|
@@ -16140,6 +16167,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16140
16167
|
attribute: false
|
|
16141
16168
|
},
|
|
16142
16169
|
|
|
16170
|
+
/**
|
|
16171
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked.
|
|
16172
|
+
*/
|
|
16173
|
+
dvInputOnly: {
|
|
16174
|
+
type: Boolean,
|
|
16175
|
+
reflect: true
|
|
16176
|
+
},
|
|
16177
|
+
|
|
16143
16178
|
/**
|
|
16144
16179
|
* When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
16145
16180
|
*/
|
|
@@ -16222,6 +16257,17 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16222
16257
|
type: Object
|
|
16223
16258
|
},
|
|
16224
16259
|
|
|
16260
|
+
/**
|
|
16261
|
+
* If declared, selecting a menu option will not change the input value. By doing so,
|
|
16262
|
+
* the current menu filter will be preserved and the user can continue from their last
|
|
16263
|
+
* filter state. It is recommended to use this in combination with the `displayValue` slot.
|
|
16264
|
+
* @type {Boolean}
|
|
16265
|
+
*/
|
|
16266
|
+
persistInput: {
|
|
16267
|
+
type: Boolean,
|
|
16268
|
+
reflect: true
|
|
16269
|
+
},
|
|
16270
|
+
|
|
16225
16271
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
16226
16272
|
/**
|
|
16227
16273
|
* Position where the bib should appear relative to the trigger.
|
|
@@ -16275,6 +16321,18 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16275
16321
|
type: String
|
|
16276
16322
|
},
|
|
16277
16323
|
|
|
16324
|
+
/**
|
|
16325
|
+
* Indicates whether the combobox is in a dirty state (has been interacted with).
|
|
16326
|
+
* @type {boolean}
|
|
16327
|
+
* @default false
|
|
16328
|
+
* @private
|
|
16329
|
+
*/
|
|
16330
|
+
touched: {
|
|
16331
|
+
type: Boolean,
|
|
16332
|
+
reflect: true,
|
|
16333
|
+
attribute: false
|
|
16334
|
+
},
|
|
16335
|
+
|
|
16278
16336
|
/**
|
|
16279
16337
|
* If set, the `icon` attribute will be applied to the trigger `auro-input` element.
|
|
16280
16338
|
*/
|
|
@@ -16291,6 +16349,14 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16291
16349
|
reflect: true
|
|
16292
16350
|
},
|
|
16293
16351
|
|
|
16352
|
+
/**
|
|
16353
|
+
* Specifies the value of the input element within the combobox.
|
|
16354
|
+
*/
|
|
16355
|
+
typedValue: {
|
|
16356
|
+
type: String,
|
|
16357
|
+
reflect: true
|
|
16358
|
+
},
|
|
16359
|
+
|
|
16294
16360
|
/**
|
|
16295
16361
|
* Specifies the `validityState` this element is in.
|
|
16296
16362
|
*/
|
|
@@ -16350,6 +16416,24 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16350
16416
|
];
|
|
16351
16417
|
}
|
|
16352
16418
|
|
|
16419
|
+
/**
|
|
16420
|
+
* Returns the current value of the input element within the combobox.
|
|
16421
|
+
* @returns {string|undefined} The value of the input element, or undefined if the input is not present.
|
|
16422
|
+
*/
|
|
16423
|
+
get inputValue() {
|
|
16424
|
+
if (!this.input) {
|
|
16425
|
+
return undefined;
|
|
16426
|
+
}
|
|
16427
|
+
return this.input.value;
|
|
16428
|
+
}
|
|
16429
|
+
|
|
16430
|
+
// /**
|
|
16431
|
+
// * Sets the value of the input element within the combobox.
|
|
16432
|
+
// */
|
|
16433
|
+
// set inputValue(value) {
|
|
16434
|
+
// this.input.value = value;
|
|
16435
|
+
// }
|
|
16436
|
+
|
|
16353
16437
|
/**
|
|
16354
16438
|
* Checks if the element is valid.
|
|
16355
16439
|
* @returns {boolean} - Returns true if the element is valid, false otherwise.
|
|
@@ -16435,13 +16519,43 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16435
16519
|
this.menu.value = this.value;
|
|
16436
16520
|
this.menu.matchWord = this.input.value;
|
|
16437
16521
|
|
|
16522
|
+
console.warn('syncValuesAndStates()');
|
|
16523
|
+
console.info('this.value', this.value);
|
|
16524
|
+
console.info('this.input.value', this.input.value);
|
|
16525
|
+
console.info('this.menu.value', this.menu.value);
|
|
16526
|
+
|
|
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
|
+
}
|
|
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
|
+
}
|
|
16445
16559
|
}
|
|
16446
16560
|
}
|
|
16447
16561
|
|
|
@@ -16464,11 +16578,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16464
16578
|
* @returns {void}
|
|
16465
16579
|
*/
|
|
16466
16580
|
handleMenuOptions() {
|
|
16467
|
-
|
|
16581
|
+
console.warn('handleMenuOptions()');
|
|
16468
16582
|
this.resetMenuMatchword();
|
|
16583
|
+
|
|
16469
16584
|
this.generateOptionsArray();
|
|
16470
16585
|
this.availableOptions = [];
|
|
16471
16586
|
this.updateFilter();
|
|
16587
|
+
|
|
16588
|
+
if (this.value && this.input.value && !this.menu.value) {
|
|
16589
|
+
this.syncValuesAndStates();
|
|
16590
|
+
}
|
|
16472
16591
|
}
|
|
16473
16592
|
|
|
16474
16593
|
/**
|
|
@@ -16566,14 +16685,29 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16566
16685
|
});
|
|
16567
16686
|
}
|
|
16568
16687
|
|
|
16688
|
+
/**
|
|
16689
|
+
* @private
|
|
16690
|
+
*/
|
|
16691
|
+
setClearBtnFocus() {
|
|
16692
|
+
const clearBtn = this.input.shadowRoot.querySelector('.clearBtn');
|
|
16693
|
+
if (clearBtn) {
|
|
16694
|
+
clearBtn.focus();
|
|
16695
|
+
}
|
|
16696
|
+
}
|
|
16697
|
+
|
|
16569
16698
|
/**
|
|
16570
16699
|
* @private
|
|
16571
16700
|
*/
|
|
16572
16701
|
setInputFocus() {
|
|
16573
16702
|
if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
|
|
16574
16703
|
this.inputInBib.focus();
|
|
16575
|
-
} else {
|
|
16704
|
+
} else if (!this.input.componentHasFocus) {
|
|
16705
|
+
const focusedEl = this.querySelector(":focus");
|
|
16576
16706
|
this.input.focus();
|
|
16707
|
+
// current focus is on a menuoption, after clicking on it.
|
|
16708
|
+
if (this.persistInput && focusedEl && (focusedEl.tagName.toLowerCase() === 'auro-menuoption' || focusedEl.hasAttribute('auro-menuoption'))) {
|
|
16709
|
+
this.setClearBtnFocus();
|
|
16710
|
+
}
|
|
16577
16711
|
}
|
|
16578
16712
|
}
|
|
16579
16713
|
|
|
@@ -16609,6 +16743,8 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16609
16743
|
configureMenu() {
|
|
16610
16744
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
16611
16745
|
|
|
16746
|
+
this.menu.value = this.value;
|
|
16747
|
+
|
|
16612
16748
|
this.updateMenuShapeSize();
|
|
16613
16749
|
|
|
16614
16750
|
// a racing condition on custom-combobox with custom-menu
|
|
@@ -16629,7 +16765,8 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16629
16765
|
}
|
|
16630
16766
|
|
|
16631
16767
|
// handle the menu event for an option selection
|
|
16632
|
-
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
16768
|
+
this.menu.addEventListener('auroMenu-selectedOption', (evt) => {
|
|
16769
|
+
console.warn('event 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
|
|
|
@@ -16744,6 +16871,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16744
16871
|
* @returns {void}
|
|
16745
16872
|
*/
|
|
16746
16873
|
handleInputValueChange(event) {
|
|
16874
|
+
console.warn('handleInputValueChange', event);
|
|
16747
16875
|
if (event.target === this.inputInBib) {
|
|
16748
16876
|
this.input.value = this.inputInBib.value;
|
|
16749
16877
|
return;
|
|
@@ -16754,29 +16882,9 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16754
16882
|
this.menu.matchWord = this.input.value;
|
|
16755
16883
|
this.optionActive = null;
|
|
16756
16884
|
|
|
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;
|
|
16885
|
+
if (!this.input.value) {
|
|
16886
|
+
this.clear();
|
|
16777
16887
|
}
|
|
16778
|
-
|
|
16779
|
-
this.menu.clearSelection();
|
|
16780
16888
|
this.handleMenuOptions();
|
|
16781
16889
|
|
|
16782
16890
|
// Validate only if the value was set programmatically
|
|
@@ -16801,10 +16909,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16801
16909
|
* @returns {void}
|
|
16802
16910
|
*/
|
|
16803
16911
|
configureCombobox() {
|
|
16804
|
-
this.addEventListener('keydown', (evt) => {
|
|
16912
|
+
this.addEventListener('keydown', async (evt) => {
|
|
16805
16913
|
if (evt.key === 'Enter') {
|
|
16806
16914
|
if (this.dropdown.isPopoverVisible && this.optionActive) {
|
|
16807
16915
|
this.menu.makeSelection();
|
|
16916
|
+
|
|
16917
|
+
await this.updateComplete;
|
|
16918
|
+
|
|
16919
|
+
evt.preventDefault();
|
|
16920
|
+
evt.stopPropagation();
|
|
16921
|
+
this.setClearBtnFocus();
|
|
16808
16922
|
} else {
|
|
16809
16923
|
this.showBib();
|
|
16810
16924
|
}
|
|
@@ -16819,6 +16933,10 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16819
16933
|
this.dropdown.focus();
|
|
16820
16934
|
}
|
|
16821
16935
|
} else {
|
|
16936
|
+
if (this.menu.optionActive && this.menu.optionActive.value) {
|
|
16937
|
+
this.menu.value = this.menu.optionActive.value;
|
|
16938
|
+
}
|
|
16939
|
+
|
|
16822
16940
|
setTimeout(() => {
|
|
16823
16941
|
if (!this.componentHasFocus) {
|
|
16824
16942
|
this.hideBib();
|
|
@@ -16848,8 +16966,15 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16848
16966
|
});
|
|
16849
16967
|
|
|
16850
16968
|
this.addEventListener('focusin', () => {
|
|
16969
|
+
this.touched = true;
|
|
16970
|
+
|
|
16851
16971
|
this.focus();
|
|
16852
16972
|
});
|
|
16973
|
+
|
|
16974
|
+
this.addEventListener('auroFormElement-validated', (evt) => {
|
|
16975
|
+
this.input.validity = evt.detail.validity;
|
|
16976
|
+
this.input.errorMessage = evt.detail.message;
|
|
16977
|
+
});
|
|
16853
16978
|
}
|
|
16854
16979
|
|
|
16855
16980
|
/**
|
|
@@ -16894,7 +17019,9 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16894
17019
|
* @returns {void}
|
|
16895
17020
|
*/
|
|
16896
17021
|
focus() {
|
|
16897
|
-
this.
|
|
17022
|
+
if (!this.componentHasFocus) {
|
|
17023
|
+
this.input.focus();
|
|
17024
|
+
}
|
|
16898
17025
|
}
|
|
16899
17026
|
|
|
16900
17027
|
/**
|
|
@@ -16903,7 +17030,11 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16903
17030
|
*/
|
|
16904
17031
|
reset() {
|
|
16905
17032
|
this.input.reset();
|
|
17033
|
+
this.menu.reset();
|
|
17034
|
+
this.optionSelected = undefined;
|
|
17035
|
+
this.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
|
|
@@ -16987,8 +17155,13 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
16987
17155
|
* @returns {void}
|
|
16988
17156
|
*/
|
|
16989
17157
|
handleSlotChange(event) {
|
|
17158
|
+
console.warn('handleSlotChange', event);
|
|
16990
17159
|
switch (event.target.name) {
|
|
16991
17160
|
case '':
|
|
17161
|
+
if (!this.menu || this.menu !== this.querySelector('auro-menu, [auro-menu]')) {
|
|
17162
|
+
this.configureMenu();
|
|
17163
|
+
}
|
|
17164
|
+
|
|
16992
17165
|
// Treat only generic menuoptions.
|
|
16993
17166
|
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
16994
17167
|
this.options.forEach((opt) => {
|
|
@@ -17065,14 +17238,16 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17065
17238
|
.inputmode="${this.inputmode}"
|
|
17066
17239
|
.placeholder="${this.placeholder}"
|
|
17067
17240
|
.type="${this.type}"
|
|
17241
|
+
.value="${this.typedValue}"
|
|
17068
17242
|
?disabled="${this.disabled}"
|
|
17069
17243
|
?icon="${this.triggerIcon}"
|
|
17070
|
-
?
|
|
17244
|
+
?dvInputOnly="${this.dvInputOnly}"
|
|
17071
17245
|
?onDark="${this.onDark}"
|
|
17072
17246
|
?required="${this.required}"
|
|
17073
17247
|
a11yRole="combobox"
|
|
17074
17248
|
id="${this.id}"
|
|
17075
17249
|
layout="${this.layout}"
|
|
17250
|
+
noValidate="true"
|
|
17076
17251
|
setCustomValidity="${this.setCustomValidity}"
|
|
17077
17252
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
17078
17253
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
@@ -17088,7 +17263,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17088
17263
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
17089
17264
|
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
17090
17265
|
<slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
|
|
17091
|
-
<slot></slot>
|
|
17266
|
+
<slot @slotchange="${this.handleSlotChange}"></slot>
|
|
17092
17267
|
<${this.inputTag}
|
|
17093
17268
|
id="inputInBib"
|
|
17094
17269
|
@input="${this.handleInputValueChange}"
|
|
@@ -17098,6 +17273,7 @@ class AuroCombobox extends AuroElement$1 {
|
|
|
17098
17273
|
.inputmode="${this.inputmode}"
|
|
17099
17274
|
.placeholder="${this.placeholder}"
|
|
17100
17275
|
.type="${this.type}"
|
|
17276
|
+
.value="${this.typedValue}"
|
|
17101
17277
|
?disabled="${this.disabled}"
|
|
17102
17278
|
?icon="${this.triggerIcon}"
|
|
17103
17279
|
?required="${this.required}"
|
|
@@ -17422,10 +17598,11 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17422
17598
|
|
|
17423
17599
|
|
|
17424
17600
|
if (changedProperties.has("value")) {
|
|
17601
|
+
console.warn('menu value updated', this.value);
|
|
17602
|
+
console.info('available options', this.availableOptions);
|
|
17425
17603
|
// Handle null/undefined case
|
|
17426
17604
|
if (this.value === undefined || this.value === null) {
|
|
17427
|
-
this.
|
|
17428
|
-
this.index = -1;
|
|
17605
|
+
this.clearSelection();
|
|
17429
17606
|
} else {
|
|
17430
17607
|
if (this.multiSelect) {
|
|
17431
17608
|
// In multiselect mode, this.value should be an array of strings
|
|
@@ -17434,9 +17611,12 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17434
17611
|
|
|
17435
17612
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
17436
17613
|
} else {
|
|
17614
|
+
console.info('single-select mode, looking for value', this.value);
|
|
17437
17615
|
// In single-select mode, this.value should be a string
|
|
17438
17616
|
const matchingOptions = this.items.find((item) => item.value === this.value);
|
|
17439
17617
|
|
|
17618
|
+
console.info('matchingOptions', matchingOptions);
|
|
17619
|
+
|
|
17440
17620
|
if (matchingOptions) {
|
|
17441
17621
|
this.optionSelected = matchingOptions;
|
|
17442
17622
|
this.index = this.items.indexOf(matchingOptions);
|
|
@@ -17445,6 +17625,8 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17445
17625
|
this.optionSelected = undefined;
|
|
17446
17626
|
this.index = -1;
|
|
17447
17627
|
}
|
|
17628
|
+
|
|
17629
|
+
console.warn('optionSelected', this.optionSelected);
|
|
17448
17630
|
}
|
|
17449
17631
|
|
|
17450
17632
|
// If no matching options were found in either mode
|
|
@@ -17471,6 +17653,11 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17471
17653
|
|
|
17472
17654
|
// Process all other UI updates
|
|
17473
17655
|
this.updateItemsState(changedProperties);
|
|
17656
|
+
|
|
17657
|
+
if (changedProperties.has('optionSelected')) {
|
|
17658
|
+
console.warn('updated: optionSelected', this.optionSelected);
|
|
17659
|
+
this.notifySelectionChange();
|
|
17660
|
+
}
|
|
17474
17661
|
}
|
|
17475
17662
|
|
|
17476
17663
|
/**
|
|
@@ -17529,6 +17716,12 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17529
17716
|
if (changedProperties.has('matchWord') && regexWord &&
|
|
17530
17717
|
isOptionInteractive(option) && !option.hasAttribute('persistent')) {
|
|
17531
17718
|
const nested = option.querySelectorAll('.nestingSpacer');
|
|
17719
|
+
|
|
17720
|
+
const displayValueEl = option.querySelector('[slot="displayValue"]');
|
|
17721
|
+
if (displayValueEl) {
|
|
17722
|
+
option.removeChild(displayValueEl);
|
|
17723
|
+
}
|
|
17724
|
+
|
|
17532
17725
|
// Create nested spacers
|
|
17533
17726
|
const nestingSpacerBundle = [...nested].map(() => this.nestingSpacer).join('');
|
|
17534
17727
|
|
|
@@ -17538,6 +17731,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17538
17731
|
regexWord,
|
|
17539
17732
|
(match) => `<strong>${match}</strong>`
|
|
17540
17733
|
);
|
|
17734
|
+
if (displayValueEl) {
|
|
17735
|
+
option.append(displayValueEl);
|
|
17736
|
+
}
|
|
17541
17737
|
}
|
|
17542
17738
|
|
|
17543
17739
|
// Update disabled state
|
|
@@ -17669,6 +17865,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17669
17865
|
clearSelection() {
|
|
17670
17866
|
this.optionSelected = undefined;
|
|
17671
17867
|
this.value = undefined;
|
|
17868
|
+
this.index = -1;
|
|
17672
17869
|
}
|
|
17673
17870
|
|
|
17674
17871
|
/**
|
|
@@ -17766,7 +17963,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17766
17963
|
// In multiselect, toggle individual selections
|
|
17767
17964
|
this.toggleOption(option);
|
|
17768
17965
|
// In single select, only handle selection of new options
|
|
17769
|
-
} else if (!this.isOptionSelected(option)) {
|
|
17966
|
+
} else if (this.option !== this.optionSelected || !this.isOptionSelected(option)) {
|
|
17770
17967
|
this.clearSelection();
|
|
17771
17968
|
this.handleSelectState(option);
|
|
17772
17969
|
}
|
|
@@ -17797,7 +17994,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17797
17994
|
* @param {MouseEvent} event - Event object from the browser.
|
|
17798
17995
|
*/
|
|
17799
17996
|
handleMouseSelect(event) {
|
|
17800
|
-
if (event.target === this) {
|
|
17997
|
+
if (!this.rootMenu || event.target === this) {
|
|
17801
17998
|
return;
|
|
17802
17999
|
}
|
|
17803
18000
|
|
|
@@ -17822,7 +18019,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17822
18019
|
/**
|
|
17823
18020
|
* Handles slot change events.
|
|
17824
18021
|
* @private
|
|
17825
|
-
* @param {Event} evt -
|
|
18022
|
+
* @param {Event} evt - Event object from the browser.
|
|
17826
18023
|
*/
|
|
17827
18024
|
handleSlotChange(evt) {
|
|
17828
18025
|
if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
|
|
@@ -17840,12 +18037,14 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17840
18037
|
]));
|
|
17841
18038
|
}
|
|
17842
18039
|
|
|
17843
|
-
|
|
17844
|
-
|
|
17845
|
-
|
|
17846
|
-
|
|
17847
|
-
|
|
17848
|
-
|
|
18040
|
+
if (this.value) {
|
|
18041
|
+
this.items.forEach((opt) => {
|
|
18042
|
+
if (opt.value === this.value || (this.multiSelect && this.formattedValue.includes(opt.value))) {
|
|
18043
|
+
this.handleSelectState(opt);
|
|
18044
|
+
this.notifySelectionChange(evt.type);
|
|
18045
|
+
}
|
|
18046
|
+
});
|
|
18047
|
+
}
|
|
17849
18048
|
}
|
|
17850
18049
|
|
|
17851
18050
|
/**
|
|
@@ -17900,7 +18099,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17900
18099
|
|
|
17901
18100
|
/**
|
|
17902
18101
|
* Updates the active option state and dispatches events.
|
|
17903
|
-
* @private
|
|
17904
18102
|
* @param {number} index - Index of the option to make active.
|
|
17905
18103
|
*/
|
|
17906
18104
|
updateActiveOption(index) {
|
|
@@ -17929,10 +18127,11 @@ class AuroMenu extends AuroElement$1 {
|
|
|
17929
18127
|
|
|
17930
18128
|
/**
|
|
17931
18129
|
* Notifies selection change to parent components.
|
|
18130
|
+
* @param {any} source - The source that triggers this event.
|
|
17932
18131
|
* @private
|
|
17933
18132
|
*/
|
|
17934
|
-
notifySelectionChange() {
|
|
17935
|
-
dispatchMenuEvent(this, 'auroMenu-selectedOption');
|
|
18133
|
+
notifySelectionChange(source = undefined) {
|
|
18134
|
+
dispatchMenuEvent(this, 'auroMenu-selectedOption', { source });
|
|
17936
18135
|
}
|
|
17937
18136
|
|
|
17938
18137
|
/**
|
|
@@ -18005,7 +18204,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
18005
18204
|
}
|
|
18006
18205
|
}
|
|
18007
18206
|
|
|
18008
|
-
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}`;
|
|
18207
|
+
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}`;
|
|
18009
18208
|
|
|
18010
18209
|
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)}`;
|
|
18011
18210
|
|