@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.0 → 0.0.0-pr1413.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +121 -129
- package/components/combobox/demo/index.min.js +121 -129
- package/components/combobox/demo/keyboardBehavior.md +9 -36
- package/components/combobox/dist/auro-combobox.d.ts +13 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +4 -2
- package/components/combobox/dist/index.js +120 -128
- package/components/combobox/dist/registered.js +120 -128
- package/components/counter/demo/api.min.js +13 -3
- package/components/counter/demo/index.min.js +13 -3
- package/components/counter/dist/index.js +13 -3
- package/components/counter/dist/registered.js +13 -3
- package/components/datepicker/demo/api.min.js +44 -21
- package/components/datepicker/demo/index.min.js +44 -21
- package/components/datepicker/dist/index.js +44 -21
- package/components/datepicker/dist/registered.js +44 -21
- package/components/dropdown/demo/api.md +29 -28
- package/components/dropdown/demo/api.min.js +12 -2
- package/components/dropdown/demo/index.min.js +12 -2
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/index.js +12 -2
- package/components/dropdown/dist/registered.js +12 -2
- package/components/form/demo/api.min.js +363 -264
- package/components/form/demo/index.min.js +363 -264
- package/components/input/demo/api.min.js +102 -77
- package/components/input/demo/index.min.js +102 -77
- package/components/input/dist/auro-input.d.ts +11 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +32 -18
- package/components/input/dist/registered.js +32 -18
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +87 -26
- package/components/select/demo/index.min.js +87 -26
- package/components/select/demo/keyboardBehavior.md +3 -3
- package/components/select/dist/index.js +86 -25
- package/components/select/dist/registered.js +86 -25
- package/components/select/dist/selectKeyboardStrategy.d.ts +5 -2
- package/custom-elements.json +62 -4
- package/package.json +1 -1
|
@@ -1291,9 +1291,16 @@ function navigateArrow(component, direction, options = {}) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
+
/* eslint-disable new-cap */
|
|
1295
|
+
|
|
1294
1296
|
const selectKeyboardStrategy = {
|
|
1295
1297
|
ArrowUp(component, evt, ctx) {
|
|
1296
1298
|
evt.preventDefault();
|
|
1299
|
+
if (evt.altKey || evt.metaKey) {
|
|
1300
|
+
// navigate to first enabled option
|
|
1301
|
+
selectKeyboardStrategy.Home(component, evt, ctx);
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1297
1304
|
navigateArrow(component, 'up', {
|
|
1298
1305
|
ctx,
|
|
1299
1306
|
showFn: () => component.dropdown.show(),
|
|
@@ -1302,30 +1309,36 @@ const selectKeyboardStrategy = {
|
|
|
1302
1309
|
|
|
1303
1310
|
ArrowDown(component, evt, ctx) {
|
|
1304
1311
|
evt.preventDefault();
|
|
1312
|
+
if (evt.altKey || evt.metaKey) {
|
|
1313
|
+
// navigate to last enabled option
|
|
1314
|
+
selectKeyboardStrategy.End(component, evt, ctx);
|
|
1315
|
+
return;
|
|
1316
|
+
}
|
|
1305
1317
|
navigateArrow(component, 'down', {
|
|
1306
1318
|
ctx,
|
|
1307
1319
|
showFn: () => component.dropdown.show(),
|
|
1308
1320
|
});
|
|
1309
1321
|
},
|
|
1310
1322
|
|
|
1311
|
-
Enter(component, evt) {
|
|
1323
|
+
Enter(component, evt, ctx) {
|
|
1312
1324
|
evt.preventDefault();
|
|
1325
|
+
evt.stopPropagation();
|
|
1326
|
+
if (!ctx.isExpanded) {
|
|
1327
|
+
component.dropdown.show();
|
|
1328
|
+
return;
|
|
1329
|
+
}
|
|
1313
1330
|
component.menu.makeSelection();
|
|
1314
1331
|
},
|
|
1315
1332
|
|
|
1316
|
-
|
|
1333
|
+
Escape(component, evt, ctx) {
|
|
1317
1334
|
if (!ctx.isExpanded) {
|
|
1318
1335
|
return;
|
|
1319
1336
|
}
|
|
1337
|
+
component.dropdown.hide();
|
|
1338
|
+
},
|
|
1320
1339
|
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
if (evt.shiftKey) {
|
|
1324
|
-
evt.preventDefault();
|
|
1325
|
-
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1326
|
-
if (firstActive) {
|
|
1327
|
-
component.menu.updateActiveOption(firstActive);
|
|
1328
|
-
}
|
|
1340
|
+
Tab(component, evt, ctx) {
|
|
1341
|
+
if (!ctx.isExpanded) {
|
|
1329
1342
|
return;
|
|
1330
1343
|
}
|
|
1331
1344
|
|
|
@@ -1336,9 +1349,41 @@ const selectKeyboardStrategy = {
|
|
|
1336
1349
|
}
|
|
1337
1350
|
component.dropdown.hide();
|
|
1338
1351
|
},
|
|
1352
|
+
Home(component, evt, ctx) {
|
|
1353
|
+
if (!ctx.isExpanded) {
|
|
1354
|
+
return;
|
|
1355
|
+
}
|
|
1356
|
+
evt.preventDefault();
|
|
1357
|
+
evt.stopPropagation();
|
|
1358
|
+
const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
1359
|
+
if (firstOption) {
|
|
1360
|
+
component.menu.updateActiveOption(firstOption);
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1339
1363
|
|
|
1340
|
-
|
|
1364
|
+
End(component, evt, ctx) {
|
|
1365
|
+
if (!ctx.isExpanded) {
|
|
1366
|
+
return;
|
|
1367
|
+
}
|
|
1368
|
+
evt.preventDefault();
|
|
1369
|
+
evt.stopPropagation();
|
|
1370
|
+
const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled);
|
|
1371
|
+
if (lastOption) {
|
|
1372
|
+
component.menu.updateActiveOption(lastOption);
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
|
|
1376
|
+
default(component, evt, ctx) {
|
|
1341
1377
|
component.updateActiveOptionBasedOnKey(evt.key);
|
|
1378
|
+
if (evt.key === ' ') {
|
|
1379
|
+
evt.preventDefault();
|
|
1380
|
+
evt.stopPropagation();
|
|
1381
|
+
if (ctx.isExpanded) {
|
|
1382
|
+
component.dropdown.hide();
|
|
1383
|
+
return;
|
|
1384
|
+
}
|
|
1385
|
+
component.dropdown.show();
|
|
1386
|
+
}
|
|
1342
1387
|
},
|
|
1343
1388
|
};
|
|
1344
1389
|
|
|
@@ -4983,7 +5028,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
4983
5028
|
}
|
|
4984
5029
|
};
|
|
4985
5030
|
|
|
4986
|
-
var formkitVersion$1 = '
|
|
5031
|
+
var formkitVersion$1 = '202604031554';
|
|
4987
5032
|
|
|
4988
5033
|
class AuroElement extends i$3 {
|
|
4989
5034
|
static get properties() {
|
|
@@ -5164,6 +5209,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5164
5209
|
this.appearance = 'default';
|
|
5165
5210
|
this.chevron = false;
|
|
5166
5211
|
this.disabled = false;
|
|
5212
|
+
this.disableKeyboardHandling = false;
|
|
5167
5213
|
this.error = false;
|
|
5168
5214
|
this.tabIndex = 0;
|
|
5169
5215
|
this.noToggle = false;
|
|
@@ -5375,6 +5421,14 @@ class AuroDropdown extends AuroElement {
|
|
|
5375
5421
|
reflect: true
|
|
5376
5422
|
},
|
|
5377
5423
|
|
|
5424
|
+
/**
|
|
5425
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
5426
|
+
*/
|
|
5427
|
+
disableKeyboardHandling: {
|
|
5428
|
+
type: Boolean,
|
|
5429
|
+
reflect: true
|
|
5430
|
+
},
|
|
5431
|
+
|
|
5378
5432
|
/**
|
|
5379
5433
|
* @private
|
|
5380
5434
|
*/
|
|
@@ -5680,7 +5734,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5680
5734
|
|
|
5681
5735
|
firstUpdated() {
|
|
5682
5736
|
// Configure the floater to, this will generate the ID for the bib
|
|
5683
|
-
this.floater.configure(this, 'auroDropdown');
|
|
5737
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
5684
5738
|
|
|
5685
5739
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
5686
5740
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -5988,6 +6042,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5988
6042
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5989
6043
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
5990
6044
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6045
|
+
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
5991
6046
|
@focusin="${this.handleFocusin}"
|
|
5992
6047
|
@blur="${this.handleFocusOut}">
|
|
5993
6048
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -6726,7 +6781,7 @@ class AuroHelpText extends i$3 {
|
|
|
6726
6781
|
}
|
|
6727
6782
|
}
|
|
6728
6783
|
|
|
6729
|
-
var formkitVersion = '
|
|
6784
|
+
var formkitVersion = '202604031554';
|
|
6730
6785
|
|
|
6731
6786
|
var styleCss$2 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
6732
6787
|
|
|
@@ -7269,6 +7324,20 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7269
7324
|
if (this.dropdown.isPopoverVisible) {
|
|
7270
7325
|
this.updateMenuShapeSize();
|
|
7271
7326
|
|
|
7327
|
+
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7328
|
+
// No selection → first enabled option gets highlighted
|
|
7329
|
+
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7330
|
+
this.menu.updateActiveOption(this.optionSelected);
|
|
7331
|
+
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7332
|
+
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7333
|
+
} else if (!this.menu.optionActive) {
|
|
7334
|
+
// If no activeOption has yet to be set, then make the first enabled option active by default
|
|
7335
|
+
const firstActive = this.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
7336
|
+
this.menu.updateActiveOption(firstActive);
|
|
7337
|
+
}
|
|
7338
|
+
|
|
7339
|
+
// Scroll the selected option into view when dropdown opens
|
|
7340
|
+
this.scrollSelectedOptionIntoView();
|
|
7272
7341
|
if (this.dropdown.isBibFullscreen) {
|
|
7273
7342
|
// Hide the trigger from assistive technology so VoiceOver cannot reach it
|
|
7274
7343
|
// behind the fullscreen dialog
|
|
@@ -7280,17 +7349,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7280
7349
|
// multiple Lit update cycles before moving focus into the bib
|
|
7281
7350
|
doubleRaf(() => {
|
|
7282
7351
|
this.bibtemplate.focusCloseButton();
|
|
7283
|
-
|
|
7284
|
-
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7285
|
-
// No selection → no highlight
|
|
7286
|
-
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7287
|
-
this.menu.updateActiveOption(this.optionSelected);
|
|
7288
|
-
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7289
|
-
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7290
|
-
}
|
|
7291
|
-
|
|
7292
|
-
// Scroll the selected option into view when dropdown opens
|
|
7293
|
-
this.scrollSelectedOptionIntoView();
|
|
7294
7352
|
});
|
|
7295
7353
|
} else {
|
|
7296
7354
|
// wait til the bib gets fully rendered
|
|
@@ -7976,6 +8034,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7976
8034
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
7977
8035
|
</div>
|
|
7978
8036
|
<${this.dropdownTag}
|
|
8037
|
+
disableKeyboardHandling
|
|
7979
8038
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7980
8039
|
.a11yRole=${"combobox"}
|
|
7981
8040
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8055,6 +8114,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8055
8114
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8056
8115
|
</div>
|
|
8057
8116
|
<${this.dropdownTag}
|
|
8117
|
+
disableKeyboardHandling
|
|
8058
8118
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8059
8119
|
.a11yRole=${"combobox"}
|
|
8060
8120
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8140,6 +8200,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8140
8200
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8141
8201
|
</div>
|
|
8142
8202
|
<${this.dropdownTag}
|
|
8203
|
+
disableKeyboardHandling
|
|
8143
8204
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8144
8205
|
.a11yRole=${"combobox"}
|
|
8145
8206
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8817,7 +8878,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8817
8878
|
});
|
|
8818
8879
|
|
|
8819
8880
|
return u$4`
|
|
8820
|
-
<div class="${classes}">
|
|
8881
|
+
<div class="${classes}" aria-disabled="${this.disabled ? 'true' : 'false'}">
|
|
8821
8882
|
${this.selected && !this.noCheckmark
|
|
8822
8883
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
8823
8884
|
: undefined}
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
<td>
|
|
164
164
|
The current <code>focused</code> option is selected.
|
|
165
165
|
<div class="note">
|
|
166
|
-
<strong>Note:</strong> the page will also navigate to the next focusable element in the tabindex
|
|
166
|
+
<strong>Note:</strong> the page will also navigate to the next focusable element in the tabindex sequence.
|
|
167
167
|
</div>
|
|
168
168
|
</td>
|
|
169
169
|
</tr>
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
<td>Expanded</td>
|
|
173
173
|
<td>Trigger element</td>
|
|
174
174
|
<td>
|
|
175
|
-
|
|
175
|
+
The current <code>focused</code> option is selected.
|
|
176
176
|
<div class="note">
|
|
177
|
-
<strong>Note:</strong> the page will
|
|
177
|
+
<strong>Note:</strong> the page will also navigate to the previous focusable element in the tabindex sequence.
|
|
178
178
|
</div>
|
|
179
179
|
</td>
|
|
180
180
|
</tr>
|
|
@@ -1248,9 +1248,16 @@ function navigateArrow(component, direction, options = {}) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
1251
|
+
/* eslint-disable new-cap */
|
|
1252
|
+
|
|
1251
1253
|
const selectKeyboardStrategy = {
|
|
1252
1254
|
ArrowUp(component, evt, ctx) {
|
|
1253
1255
|
evt.preventDefault();
|
|
1256
|
+
if (evt.altKey || evt.metaKey) {
|
|
1257
|
+
// navigate to first enabled option
|
|
1258
|
+
selectKeyboardStrategy.Home(component, evt, ctx);
|
|
1259
|
+
return;
|
|
1260
|
+
}
|
|
1254
1261
|
navigateArrow(component, 'up', {
|
|
1255
1262
|
ctx,
|
|
1256
1263
|
showFn: () => component.dropdown.show(),
|
|
@@ -1259,30 +1266,36 @@ const selectKeyboardStrategy = {
|
|
|
1259
1266
|
|
|
1260
1267
|
ArrowDown(component, evt, ctx) {
|
|
1261
1268
|
evt.preventDefault();
|
|
1269
|
+
if (evt.altKey || evt.metaKey) {
|
|
1270
|
+
// navigate to last enabled option
|
|
1271
|
+
selectKeyboardStrategy.End(component, evt, ctx);
|
|
1272
|
+
return;
|
|
1273
|
+
}
|
|
1262
1274
|
navigateArrow(component, 'down', {
|
|
1263
1275
|
ctx,
|
|
1264
1276
|
showFn: () => component.dropdown.show(),
|
|
1265
1277
|
});
|
|
1266
1278
|
},
|
|
1267
1279
|
|
|
1268
|
-
Enter(component, evt) {
|
|
1280
|
+
Enter(component, evt, ctx) {
|
|
1269
1281
|
evt.preventDefault();
|
|
1282
|
+
evt.stopPropagation();
|
|
1283
|
+
if (!ctx.isExpanded) {
|
|
1284
|
+
component.dropdown.show();
|
|
1285
|
+
return;
|
|
1286
|
+
}
|
|
1270
1287
|
component.menu.makeSelection();
|
|
1271
1288
|
},
|
|
1272
1289
|
|
|
1273
|
-
|
|
1290
|
+
Escape(component, evt, ctx) {
|
|
1274
1291
|
if (!ctx.isExpanded) {
|
|
1275
1292
|
return;
|
|
1276
1293
|
}
|
|
1294
|
+
component.dropdown.hide();
|
|
1295
|
+
},
|
|
1277
1296
|
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
if (evt.shiftKey) {
|
|
1281
|
-
evt.preventDefault();
|
|
1282
|
-
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1283
|
-
if (firstActive) {
|
|
1284
|
-
component.menu.updateActiveOption(firstActive);
|
|
1285
|
-
}
|
|
1297
|
+
Tab(component, evt, ctx) {
|
|
1298
|
+
if (!ctx.isExpanded) {
|
|
1286
1299
|
return;
|
|
1287
1300
|
}
|
|
1288
1301
|
|
|
@@ -1293,9 +1306,41 @@ const selectKeyboardStrategy = {
|
|
|
1293
1306
|
}
|
|
1294
1307
|
component.dropdown.hide();
|
|
1295
1308
|
},
|
|
1309
|
+
Home(component, evt, ctx) {
|
|
1310
|
+
if (!ctx.isExpanded) {
|
|
1311
|
+
return;
|
|
1312
|
+
}
|
|
1313
|
+
evt.preventDefault();
|
|
1314
|
+
evt.stopPropagation();
|
|
1315
|
+
const firstOption = component.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
1316
|
+
if (firstOption) {
|
|
1317
|
+
component.menu.updateActiveOption(firstOption);
|
|
1318
|
+
}
|
|
1319
|
+
},
|
|
1296
1320
|
|
|
1297
|
-
|
|
1321
|
+
End(component, evt, ctx) {
|
|
1322
|
+
if (!ctx.isExpanded) {
|
|
1323
|
+
return;
|
|
1324
|
+
}
|
|
1325
|
+
evt.preventDefault();
|
|
1326
|
+
evt.stopPropagation();
|
|
1327
|
+
const lastOption = [...component.menu.menuService.menuOptions].reverse().find((option) => !option.disabled);
|
|
1328
|
+
if (lastOption) {
|
|
1329
|
+
component.menu.updateActiveOption(lastOption);
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
|
|
1333
|
+
default(component, evt, ctx) {
|
|
1298
1334
|
component.updateActiveOptionBasedOnKey(evt.key);
|
|
1335
|
+
if (evt.key === ' ') {
|
|
1336
|
+
evt.preventDefault();
|
|
1337
|
+
evt.stopPropagation();
|
|
1338
|
+
if (ctx.isExpanded) {
|
|
1339
|
+
component.dropdown.hide();
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
component.dropdown.show();
|
|
1343
|
+
}
|
|
1299
1344
|
},
|
|
1300
1345
|
};
|
|
1301
1346
|
|
|
@@ -4916,7 +4961,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
4916
4961
|
}
|
|
4917
4962
|
};
|
|
4918
4963
|
|
|
4919
|
-
var formkitVersion$1 = '
|
|
4964
|
+
var formkitVersion$1 = '202604031554';
|
|
4920
4965
|
|
|
4921
4966
|
class AuroElement extends LitElement {
|
|
4922
4967
|
static get properties() {
|
|
@@ -5097,6 +5142,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5097
5142
|
this.appearance = 'default';
|
|
5098
5143
|
this.chevron = false;
|
|
5099
5144
|
this.disabled = false;
|
|
5145
|
+
this.disableKeyboardHandling = false;
|
|
5100
5146
|
this.error = false;
|
|
5101
5147
|
this.tabIndex = 0;
|
|
5102
5148
|
this.noToggle = false;
|
|
@@ -5308,6 +5354,14 @@ class AuroDropdown extends AuroElement {
|
|
|
5308
5354
|
reflect: true
|
|
5309
5355
|
},
|
|
5310
5356
|
|
|
5357
|
+
/**
|
|
5358
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
5359
|
+
*/
|
|
5360
|
+
disableKeyboardHandling: {
|
|
5361
|
+
type: Boolean,
|
|
5362
|
+
reflect: true
|
|
5363
|
+
},
|
|
5364
|
+
|
|
5311
5365
|
/**
|
|
5312
5366
|
* @private
|
|
5313
5367
|
*/
|
|
@@ -5613,7 +5667,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5613
5667
|
|
|
5614
5668
|
firstUpdated() {
|
|
5615
5669
|
// Configure the floater to, this will generate the ID for the bib
|
|
5616
|
-
this.floater.configure(this, 'auroDropdown');
|
|
5670
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
5617
5671
|
|
|
5618
5672
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
5619
5673
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -5921,6 +5975,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5921
5975
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5922
5976
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
5923
5977
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
5978
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
5924
5979
|
@focusin="${this.handleFocusin}"
|
|
5925
5980
|
@blur="${this.handleFocusOut}">
|
|
5926
5981
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -6659,7 +6714,7 @@ class AuroHelpText extends LitElement {
|
|
|
6659
6714
|
}
|
|
6660
6715
|
}
|
|
6661
6716
|
|
|
6662
|
-
var formkitVersion = '
|
|
6717
|
+
var formkitVersion = '202604031554';
|
|
6663
6718
|
|
|
6664
6719
|
var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
6665
6720
|
|
|
@@ -7202,6 +7257,20 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7202
7257
|
if (this.dropdown.isPopoverVisible) {
|
|
7203
7258
|
this.updateMenuShapeSize();
|
|
7204
7259
|
|
|
7260
|
+
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7261
|
+
// No selection → first enabled option gets highlighted
|
|
7262
|
+
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7263
|
+
this.menu.updateActiveOption(this.optionSelected);
|
|
7264
|
+
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7265
|
+
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7266
|
+
} else if (!this.menu.optionActive) {
|
|
7267
|
+
// If no activeOption has yet to be set, then make the first enabled option active by default
|
|
7268
|
+
const firstActive = this.menu.menuService.menuOptions.find((option) => !option.disabled);
|
|
7269
|
+
this.menu.updateActiveOption(firstActive);
|
|
7270
|
+
}
|
|
7271
|
+
|
|
7272
|
+
// Scroll the selected option into view when dropdown opens
|
|
7273
|
+
this.scrollSelectedOptionIntoView();
|
|
7205
7274
|
if (this.dropdown.isBibFullscreen) {
|
|
7206
7275
|
// Hide the trigger from assistive technology so VoiceOver cannot reach it
|
|
7207
7276
|
// behind the fullscreen dialog
|
|
@@ -7213,17 +7282,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7213
7282
|
// multiple Lit update cycles before moving focus into the bib
|
|
7214
7283
|
doubleRaf(() => {
|
|
7215
7284
|
this.bibtemplate.focusCloseButton();
|
|
7216
|
-
|
|
7217
|
-
// If there's a selected option, highlight it (per W3C APG combobox-select-only pattern)
|
|
7218
|
-
// No selection → no highlight
|
|
7219
|
-
if (this.optionSelected && !Array.isArray(this.optionSelected)) {
|
|
7220
|
-
this.menu.updateActiveOption(this.optionSelected);
|
|
7221
|
-
} else if (this.multiSelect && Array.isArray(this.optionSelected) && this.optionSelected.length > 0) {
|
|
7222
|
-
this.menu.updateActiveOption(this.optionSelected[0]);
|
|
7223
|
-
}
|
|
7224
|
-
|
|
7225
|
-
// Scroll the selected option into view when dropdown opens
|
|
7226
|
-
this.scrollSelectedOptionIntoView();
|
|
7227
7285
|
});
|
|
7228
7286
|
} else {
|
|
7229
7287
|
// wait til the bib gets fully rendered
|
|
@@ -7909,6 +7967,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7909
7967
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
7910
7968
|
</div>
|
|
7911
7969
|
<${this.dropdownTag}
|
|
7970
|
+
disableKeyboardHandling
|
|
7912
7971
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7913
7972
|
.a11yRole=${"combobox"}
|
|
7914
7973
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -7988,6 +8047,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7988
8047
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
7989
8048
|
</div>
|
|
7990
8049
|
<${this.dropdownTag}
|
|
8050
|
+
disableKeyboardHandling
|
|
7991
8051
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
7992
8052
|
.a11yRole=${"combobox"}
|
|
7993
8053
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -8073,6 +8133,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8073
8133
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
8074
8134
|
</div>
|
|
8075
8135
|
<${this.dropdownTag}
|
|
8136
|
+
disableKeyboardHandling
|
|
8076
8137
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
8077
8138
|
.a11yRole=${"combobox"}
|
|
8078
8139
|
?autoPlacement="${this.autoPlacement}"
|