@aurodesignsystem-dev/auro-formkit 0.0.0-pr1396.2 → 0.0.0-pr1396.3
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 +15 -4
- package/components/combobox/demo/index.min.js +15 -4
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +15 -4
- package/components/combobox/dist/registered.js +15 -4
- 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 +75 -9
- package/components/datepicker/demo/index.min.js +75 -9
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +4 -0
- package/components/datepicker/dist/index.js +75 -9
- package/components/datepicker/dist/registered.js +75 -9
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.min.js +109 -21
- package/components/form/demo/index.min.js +109 -21
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/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 +14 -3
- package/components/select/demo/index.min.js +14 -3
- package/components/select/dist/index.js +14 -3
- package/components/select/dist/registered.js +14 -3
- package/components/select/dist/selectKeyboardStrategy.d.ts +1 -1
- package/custom-elements.json +1413 -1389
- package/package.json +1 -1
|
@@ -1687,7 +1687,7 @@ class AuroHelpText extends i$2 {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var formkitVersion = '
|
|
1690
|
+
var formkitVersion = '202603252040';
|
|
1691
1691
|
|
|
1692
1692
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1693
1693
|
// See LICENSE in the project root for license information.
|
|
@@ -1679,7 +1679,7 @@ class AuroHelpText extends i$2 {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
var formkitVersion = '
|
|
1682
|
+
var formkitVersion = '202603252040';
|
|
1683
1683
|
|
|
1684
1684
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1685
1685
|
// See LICENSE in the project root for license information.
|
|
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202603252040';
|
|
1636
1636
|
|
|
1637
1637
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202603252040';
|
|
1636
1636
|
|
|
1637
1637
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
@@ -1357,11 +1357,22 @@ const comboboxKeyboardStrategy = {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
},
|
|
1359
1359
|
|
|
1360
|
-
Tab(component,
|
|
1360
|
+
Tab(component, evt, ctx) {
|
|
1361
1361
|
if (!ctx.isExpanded) {
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
1364
|
|
|
1365
|
+
// Shift+Tab moves the highlight to the first non-disabled option
|
|
1366
|
+
// without making a selection or closing the bib.
|
|
1367
|
+
if (evt.shiftKey) {
|
|
1368
|
+
evt.preventDefault();
|
|
1369
|
+
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1370
|
+
if (firstActive) {
|
|
1371
|
+
component.menu.updateActiveOption(firstActive);
|
|
1372
|
+
}
|
|
1373
|
+
return;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1365
1376
|
if (ctx.isModal) {
|
|
1366
1377
|
if (!ctx.activeInput) {
|
|
1367
1378
|
return;
|
|
@@ -5059,7 +5070,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5059
5070
|
}
|
|
5060
5071
|
};
|
|
5061
5072
|
|
|
5062
|
-
var formkitVersion$2 = '
|
|
5073
|
+
var formkitVersion$2 = '202603252040';
|
|
5063
5074
|
|
|
5064
5075
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5065
5076
|
static get properties() {
|
|
@@ -12823,7 +12834,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12823
12834
|
}
|
|
12824
12835
|
};
|
|
12825
12836
|
|
|
12826
|
-
var formkitVersion$1 = '
|
|
12837
|
+
var formkitVersion$1 = '202603252040';
|
|
12827
12838
|
|
|
12828
12839
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12829
12840
|
// See LICENSE in the project root for license information.
|
|
@@ -13862,7 +13873,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13862
13873
|
}
|
|
13863
13874
|
}
|
|
13864
13875
|
|
|
13865
|
-
var formkitVersion = '
|
|
13876
|
+
var formkitVersion = '202603252040';
|
|
13866
13877
|
|
|
13867
13878
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13868
13879
|
|
|
@@ -1280,11 +1280,22 @@ const comboboxKeyboardStrategy = {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
},
|
|
1282
1282
|
|
|
1283
|
-
Tab(component,
|
|
1283
|
+
Tab(component, evt, ctx) {
|
|
1284
1284
|
if (!ctx.isExpanded) {
|
|
1285
1285
|
return;
|
|
1286
1286
|
}
|
|
1287
1287
|
|
|
1288
|
+
// Shift+Tab moves the highlight to the first non-disabled option
|
|
1289
|
+
// without making a selection or closing the bib.
|
|
1290
|
+
if (evt.shiftKey) {
|
|
1291
|
+
evt.preventDefault();
|
|
1292
|
+
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1293
|
+
if (firstActive) {
|
|
1294
|
+
component.menu.updateActiveOption(firstActive);
|
|
1295
|
+
}
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1288
1299
|
if (ctx.isModal) {
|
|
1289
1300
|
if (!ctx.activeInput) {
|
|
1290
1301
|
return;
|
|
@@ -4982,7 +4993,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4982
4993
|
}
|
|
4983
4994
|
};
|
|
4984
4995
|
|
|
4985
|
-
var formkitVersion$2 = '
|
|
4996
|
+
var formkitVersion$2 = '202603252040';
|
|
4986
4997
|
|
|
4987
4998
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4988
4999
|
static get properties() {
|
|
@@ -12746,7 +12757,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12746
12757
|
}
|
|
12747
12758
|
};
|
|
12748
12759
|
|
|
12749
|
-
var formkitVersion$1 = '
|
|
12760
|
+
var formkitVersion$1 = '202603252040';
|
|
12750
12761
|
|
|
12751
12762
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12752
12763
|
// See LICENSE in the project root for license information.
|
|
@@ -13785,7 +13796,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13785
13796
|
}
|
|
13786
13797
|
}
|
|
13787
13798
|
|
|
13788
|
-
var formkitVersion = '
|
|
13799
|
+
var formkitVersion = '202603252040';
|
|
13789
13800
|
|
|
13790
13801
|
var styleCss$3 = i$7`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13791
13802
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export namespace comboboxKeyboardStrategy {
|
|
2
2
|
function Enter(component: any, evt: any, ctx: any): Promise<void>;
|
|
3
|
-
function Tab(component: any,
|
|
3
|
+
function Tab(component: any, evt: any, ctx: any): void;
|
|
4
4
|
function ArrowUp(component: any, evt: any, ctx: any): void;
|
|
5
5
|
function ArrowDown(component: any, evt: any, ctx: any): void;
|
|
6
6
|
}
|
|
@@ -1237,11 +1237,22 @@ const comboboxKeyboardStrategy = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
|
|
1240
|
-
Tab(component,
|
|
1240
|
+
Tab(component, evt, ctx) {
|
|
1241
1241
|
if (!ctx.isExpanded) {
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
|
+
// Shift+Tab moves the highlight to the first non-disabled option
|
|
1246
|
+
// without making a selection or closing the bib.
|
|
1247
|
+
if (evt.shiftKey) {
|
|
1248
|
+
evt.preventDefault();
|
|
1249
|
+
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1250
|
+
if (firstActive) {
|
|
1251
|
+
component.menu.updateActiveOption(firstActive);
|
|
1252
|
+
}
|
|
1253
|
+
return;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1245
1256
|
if (ctx.isModal) {
|
|
1246
1257
|
if (!ctx.activeInput) {
|
|
1247
1258
|
return;
|
|
@@ -4915,7 +4926,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4915
4926
|
}
|
|
4916
4927
|
};
|
|
4917
4928
|
|
|
4918
|
-
var formkitVersion$2 = '
|
|
4929
|
+
var formkitVersion$2 = '202603252040';
|
|
4919
4930
|
|
|
4920
4931
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4921
4932
|
static get properties() {
|
|
@@ -12672,7 +12683,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12672
12683
|
}
|
|
12673
12684
|
};
|
|
12674
12685
|
|
|
12675
|
-
var formkitVersion$1 = '
|
|
12686
|
+
var formkitVersion$1 = '202603252040';
|
|
12676
12687
|
|
|
12677
12688
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12678
12689
|
// See LICENSE in the project root for license information.
|
|
@@ -13711,7 +13722,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13711
13722
|
}
|
|
13712
13723
|
}
|
|
13713
13724
|
|
|
13714
|
-
var formkitVersion = '
|
|
13725
|
+
var formkitVersion = '202603252040';
|
|
13715
13726
|
|
|
13716
13727
|
var styleCss$1 = 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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13717
13728
|
|
|
@@ -1237,11 +1237,22 @@ const comboboxKeyboardStrategy = {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
|
|
1240
|
-
Tab(component,
|
|
1240
|
+
Tab(component, evt, ctx) {
|
|
1241
1241
|
if (!ctx.isExpanded) {
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
|
+
// Shift+Tab moves the highlight to the first non-disabled option
|
|
1246
|
+
// without making a selection or closing the bib.
|
|
1247
|
+
if (evt.shiftKey) {
|
|
1248
|
+
evt.preventDefault();
|
|
1249
|
+
const firstActive = component.menu.menuService.menuOptions.find((option) => option.isActive);
|
|
1250
|
+
if (firstActive) {
|
|
1251
|
+
component.menu.updateActiveOption(firstActive);
|
|
1252
|
+
}
|
|
1253
|
+
return;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1245
1256
|
if (ctx.isModal) {
|
|
1246
1257
|
if (!ctx.activeInput) {
|
|
1247
1258
|
return;
|
|
@@ -4915,7 +4926,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4915
4926
|
}
|
|
4916
4927
|
};
|
|
4917
4928
|
|
|
4918
|
-
var formkitVersion$2 = '
|
|
4929
|
+
var formkitVersion$2 = '202603252040';
|
|
4919
4930
|
|
|
4920
4931
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4921
4932
|
static get properties() {
|
|
@@ -12672,7 +12683,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12672
12683
|
}
|
|
12673
12684
|
};
|
|
12674
12685
|
|
|
12675
|
-
var formkitVersion$1 = '
|
|
12686
|
+
var formkitVersion$1 = '202603252040';
|
|
12676
12687
|
|
|
12677
12688
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12678
12689
|
// See LICENSE in the project root for license information.
|
|
@@ -13711,7 +13722,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13711
13722
|
}
|
|
13712
13723
|
}
|
|
13713
13724
|
|
|
13714
|
-
var formkitVersion = '
|
|
13725
|
+
var formkitVersion = '202603252040';
|
|
13715
13726
|
|
|
13716
13727
|
var styleCss$1 = 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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13717
13728
|
|
|
@@ -1470,7 +1470,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
1472
|
|
|
1473
|
-
var formkitVersion$1 = '
|
|
1473
|
+
var formkitVersion$1 = '202603252040';
|
|
1474
1474
|
|
|
1475
1475
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1476
1476
|
// See LICENSE in the project root for license information.
|
|
@@ -5517,7 +5517,7 @@ class AuroHelpText extends i$2 {
|
|
|
5517
5517
|
}
|
|
5518
5518
|
}
|
|
5519
5519
|
|
|
5520
|
-
var formkitVersion = '
|
|
5520
|
+
var formkitVersion = '202603252040';
|
|
5521
5521
|
|
|
5522
5522
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5523
5523
|
static get properties() {
|
|
@@ -1470,7 +1470,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
1472
|
|
|
1473
|
-
var formkitVersion$1 = '
|
|
1473
|
+
var formkitVersion$1 = '202603252040';
|
|
1474
1474
|
|
|
1475
1475
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1476
1476
|
// See LICENSE in the project root for license information.
|
|
@@ -5517,7 +5517,7 @@ class AuroHelpText extends i$2 {
|
|
|
5517
5517
|
}
|
|
5518
5518
|
}
|
|
5519
5519
|
|
|
5520
|
-
var formkitVersion = '
|
|
5520
|
+
var formkitVersion = '202603252040';
|
|
5521
5521
|
|
|
5522
5522
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5523
5523
|
static get properties() {
|
|
@@ -1420,7 +1420,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
|
-
var formkitVersion$1 = '
|
|
1423
|
+
var formkitVersion$1 = '202603252040';
|
|
1424
1424
|
|
|
1425
1425
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1426
1426
|
// See LICENSE in the project root for license information.
|
|
@@ -5449,7 +5449,7 @@ class AuroHelpText extends LitElement {
|
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
5451
5451
|
|
|
5452
|
-
var formkitVersion = '
|
|
5452
|
+
var formkitVersion = '202603252040';
|
|
5453
5453
|
|
|
5454
5454
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5455
5455
|
static get properties() {
|
|
@@ -1420,7 +1420,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
};
|
|
1422
1422
|
|
|
1423
|
-
var formkitVersion$1 = '
|
|
1423
|
+
var formkitVersion$1 = '202603252040';
|
|
1424
1424
|
|
|
1425
1425
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1426
1426
|
// See LICENSE in the project root for license information.
|
|
@@ -5449,7 +5449,7 @@ class AuroHelpText extends LitElement {
|
|
|
5449
5449
|
}
|
|
5450
5450
|
}
|
|
5451
5451
|
|
|
5452
|
-
var formkitVersion = '
|
|
5452
|
+
var formkitVersion = '202603252040';
|
|
5453
5453
|
|
|
5454
5454
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5455
5455
|
static get properties() {
|
|
@@ -9549,7 +9549,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
9549
9549
|
}
|
|
9550
9550
|
}
|
|
9551
9551
|
|
|
9552
|
-
var formkitVersion$2 = '
|
|
9552
|
+
var formkitVersion$2 = '202603252040';
|
|
9553
9553
|
|
|
9554
9554
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$4 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9555
9555
|
`,u$6=i$3`.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, .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, .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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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, .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, .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, .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, .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, .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, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -13630,7 +13630,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
13630
13630
|
}
|
|
13631
13631
|
};
|
|
13632
13632
|
|
|
13633
|
-
var formkitVersion$1 = '
|
|
13633
|
+
var formkitVersion$1 = '202603252040';
|
|
13634
13634
|
|
|
13635
13635
|
let AuroElement$2 = class AuroElement extends i$1 {
|
|
13636
13636
|
static get properties() {
|
|
@@ -21394,7 +21394,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
21394
21394
|
}
|
|
21395
21395
|
};
|
|
21396
21396
|
|
|
21397
|
-
var formkitVersion = '
|
|
21397
|
+
var formkitVersion = '202603252040';
|
|
21398
21398
|
|
|
21399
21399
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21400
21400
|
// See LICENSE in the project root for license information.
|
|
@@ -22595,6 +22595,75 @@ function restoreTriggerAfterClose(dropdown, focusTarget) {
|
|
|
22595
22595
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22596
22596
|
*/class e extends i$4{constructor(i){if(super(i),this.it=A$4,i.type!==t$2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A$4||null==r)return this._t=void 0,this.it=r;if(r===E$1)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;
|
|
22597
22597
|
|
|
22598
|
+
/**
|
|
22599
|
+
* Computes display state once per keydown event.
|
|
22600
|
+
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
22601
|
+
*
|
|
22602
|
+
* @param {HTMLElement} component - The component with a dropdown reference.
|
|
22603
|
+
* @param {Object} [options] - Optional config.
|
|
22604
|
+
* @param {HTMLElement} [options.dropdown] - Explicit dropdown reference. Falls back to component.dropdown.
|
|
22605
|
+
* @param {Function} [options.inputResolver] - Called with (component, ctx) to resolve the active input element.
|
|
22606
|
+
* @returns {{isExpanded: boolean, isModal: boolean, isPopover: boolean, activeInput: HTMLElement|null}}
|
|
22607
|
+
* isModal and isPopover reflect the display mode (fullscreen vs not) regardless of expanded state.
|
|
22608
|
+
*/
|
|
22609
|
+
function createDisplayContext(component, options = {}) {
|
|
22610
|
+
const dd = options.dropdown || component.dropdown;
|
|
22611
|
+
// isPopoverVisible reflects as the `open` attribute.
|
|
22612
|
+
// It reports whether the bib is open in any mode (popover or modal).
|
|
22613
|
+
const isExpanded = Boolean(dd && dd.isPopoverVisible);
|
|
22614
|
+
const isFullscreen = Boolean(dd && dd.isBibFullscreen);
|
|
22615
|
+
|
|
22616
|
+
const ctx = {
|
|
22617
|
+
isExpanded,
|
|
22618
|
+
isModal: isFullscreen,
|
|
22619
|
+
isPopover: !isFullscreen,
|
|
22620
|
+
activeInput: null,
|
|
22621
|
+
};
|
|
22622
|
+
|
|
22623
|
+
if (options.inputResolver) {
|
|
22624
|
+
const resolvedInput = options.inputResolver(component, ctx);
|
|
22625
|
+
// Guard against resolvers returning undefined or non-HTMLElement values.
|
|
22626
|
+
ctx.activeInput = resolvedInput instanceof HTMLElement ? resolvedInput : null;
|
|
22627
|
+
}
|
|
22628
|
+
|
|
22629
|
+
return ctx;
|
|
22630
|
+
}
|
|
22631
|
+
|
|
22632
|
+
/**
|
|
22633
|
+
* Wires up a keydown listener that dispatches to strategy[evt.key] or strategy.default.
|
|
22634
|
+
* Handles both sync and async handlers.
|
|
22635
|
+
* @param {HTMLElement} component - The component to attach the listener to.
|
|
22636
|
+
* @param {Object} strategy - Map of key names to handler functions.
|
|
22637
|
+
* @param {Object} [options] - Optional config passed to createDisplayContext.
|
|
22638
|
+
*/
|
|
22639
|
+
function applyKeyboardStrategy(component, strategy, options = {}) {
|
|
22640
|
+
component.addEventListener('keydown', async (evt) => {
|
|
22641
|
+
const handler = strategy[evt.key] || strategy.default;
|
|
22642
|
+
if (typeof handler === 'function') {
|
|
22643
|
+
const ctx = createDisplayContext(component, options);
|
|
22644
|
+
await handler(component, evt, ctx);
|
|
22645
|
+
}
|
|
22646
|
+
});
|
|
22647
|
+
}
|
|
22648
|
+
|
|
22649
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22650
|
+
// See LICENSE in the project root for license information.
|
|
22651
|
+
|
|
22652
|
+
const datepickerKeyboardStrategy = {
|
|
22653
|
+
Enter(component, evt, ctx) {
|
|
22654
|
+
if (!ctx.isExpanded) {
|
|
22655
|
+
evt.preventDefault();
|
|
22656
|
+
component.dropdown.show();
|
|
22657
|
+
}
|
|
22658
|
+
},
|
|
22659
|
+
|
|
22660
|
+
Tab(component, _evt, ctx) {
|
|
22661
|
+
if (ctx.isExpanded && ctx.isModal) {
|
|
22662
|
+
component.dropdown.hide();
|
|
22663
|
+
}
|
|
22664
|
+
},
|
|
22665
|
+
};
|
|
22666
|
+
|
|
22598
22667
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22599
22668
|
// See LICENSE in the project root for license information.
|
|
22600
22669
|
|
|
@@ -22604,7 +22673,7 @@ function restoreTriggerAfterClose(dropdown, focusTarget) {
|
|
|
22604
22673
|
/**
|
|
22605
22674
|
* The `auro-datepicker` component provides users with a way to select a date or date range from a calendar popup or fullscreen calendar on mobile.
|
|
22606
22675
|
* @customElement auro-datepicker
|
|
22607
|
-
*
|
|
22676
|
+
*
|
|
22608
22677
|
* @slot helpText - Defines the content of the helpText.
|
|
22609
22678
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
22610
22679
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
@@ -23408,11 +23477,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
23408
23477
|
// Tab closes the fullscreen dialog (same pattern as select).
|
|
23409
23478
|
// The dialog event bridge intercepts Tab and re-dispatches it as a
|
|
23410
23479
|
// composed keydown; this listener catches the re-dispatched event.
|
|
23411
|
-
|
|
23412
|
-
|
|
23413
|
-
this.dropdown.hide();
|
|
23414
|
-
}
|
|
23415
|
-
});
|
|
23480
|
+
// Enter opens the bib when it is closed.
|
|
23481
|
+
applyKeyboardStrategy(this, datepickerKeyboardStrategy);
|
|
23416
23482
|
|
|
23417
23483
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
23418
23484
|
if (!this.isPopoverVisible) {
|
|
@@ -9290,7 +9290,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
9290
9290
|
}
|
|
9291
9291
|
}
|
|
9292
9292
|
|
|
9293
|
-
var formkitVersion$2 = '
|
|
9293
|
+
var formkitVersion$2 = '202603252040';
|
|
9294
9294
|
|
|
9295
9295
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$4 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$3=i$3`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9296
9296
|
`,u$6=i$3`.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, .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, .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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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, .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, .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, .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, .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, .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, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -13371,7 +13371,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$1 {
|
|
|
13371
13371
|
}
|
|
13372
13372
|
};
|
|
13373
13373
|
|
|
13374
|
-
var formkitVersion$1 = '
|
|
13374
|
+
var formkitVersion$1 = '202603252040';
|
|
13375
13375
|
|
|
13376
13376
|
let AuroElement$2 = class AuroElement extends i$1 {
|
|
13377
13377
|
static get properties() {
|
|
@@ -21135,7 +21135,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
21135
21135
|
}
|
|
21136
21136
|
};
|
|
21137
21137
|
|
|
21138
|
-
var formkitVersion = '
|
|
21138
|
+
var formkitVersion = '202603252040';
|
|
21139
21139
|
|
|
21140
21140
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21141
21141
|
// See LICENSE in the project root for license information.
|
|
@@ -22336,6 +22336,75 @@ function restoreTriggerAfterClose(dropdown, focusTarget) {
|
|
|
22336
22336
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22337
22337
|
*/class e extends i$4{constructor(i){if(super(i),this.it=A$4,i.type!==t$2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A$4||null==r)return this._t=void 0,this.it=r;if(r===E$1)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;
|
|
22338
22338
|
|
|
22339
|
+
/**
|
|
22340
|
+
* Computes display state once per keydown event.
|
|
22341
|
+
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
22342
|
+
*
|
|
22343
|
+
* @param {HTMLElement} component - The component with a dropdown reference.
|
|
22344
|
+
* @param {Object} [options] - Optional config.
|
|
22345
|
+
* @param {HTMLElement} [options.dropdown] - Explicit dropdown reference. Falls back to component.dropdown.
|
|
22346
|
+
* @param {Function} [options.inputResolver] - Called with (component, ctx) to resolve the active input element.
|
|
22347
|
+
* @returns {{isExpanded: boolean, isModal: boolean, isPopover: boolean, activeInput: HTMLElement|null}}
|
|
22348
|
+
* isModal and isPopover reflect the display mode (fullscreen vs not) regardless of expanded state.
|
|
22349
|
+
*/
|
|
22350
|
+
function createDisplayContext(component, options = {}) {
|
|
22351
|
+
const dd = options.dropdown || component.dropdown;
|
|
22352
|
+
// isPopoverVisible reflects as the `open` attribute.
|
|
22353
|
+
// It reports whether the bib is open in any mode (popover or modal).
|
|
22354
|
+
const isExpanded = Boolean(dd && dd.isPopoverVisible);
|
|
22355
|
+
const isFullscreen = Boolean(dd && dd.isBibFullscreen);
|
|
22356
|
+
|
|
22357
|
+
const ctx = {
|
|
22358
|
+
isExpanded,
|
|
22359
|
+
isModal: isFullscreen,
|
|
22360
|
+
isPopover: !isFullscreen,
|
|
22361
|
+
activeInput: null,
|
|
22362
|
+
};
|
|
22363
|
+
|
|
22364
|
+
if (options.inputResolver) {
|
|
22365
|
+
const resolvedInput = options.inputResolver(component, ctx);
|
|
22366
|
+
// Guard against resolvers returning undefined or non-HTMLElement values.
|
|
22367
|
+
ctx.activeInput = resolvedInput instanceof HTMLElement ? resolvedInput : null;
|
|
22368
|
+
}
|
|
22369
|
+
|
|
22370
|
+
return ctx;
|
|
22371
|
+
}
|
|
22372
|
+
|
|
22373
|
+
/**
|
|
22374
|
+
* Wires up a keydown listener that dispatches to strategy[evt.key] or strategy.default.
|
|
22375
|
+
* Handles both sync and async handlers.
|
|
22376
|
+
* @param {HTMLElement} component - The component to attach the listener to.
|
|
22377
|
+
* @param {Object} strategy - Map of key names to handler functions.
|
|
22378
|
+
* @param {Object} [options] - Optional config passed to createDisplayContext.
|
|
22379
|
+
*/
|
|
22380
|
+
function applyKeyboardStrategy(component, strategy, options = {}) {
|
|
22381
|
+
component.addEventListener('keydown', async (evt) => {
|
|
22382
|
+
const handler = strategy[evt.key] || strategy.default;
|
|
22383
|
+
if (typeof handler === 'function') {
|
|
22384
|
+
const ctx = createDisplayContext(component, options);
|
|
22385
|
+
await handler(component, evt, ctx);
|
|
22386
|
+
}
|
|
22387
|
+
});
|
|
22388
|
+
}
|
|
22389
|
+
|
|
22390
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22391
|
+
// See LICENSE in the project root for license information.
|
|
22392
|
+
|
|
22393
|
+
const datepickerKeyboardStrategy = {
|
|
22394
|
+
Enter(component, evt, ctx) {
|
|
22395
|
+
if (!ctx.isExpanded) {
|
|
22396
|
+
evt.preventDefault();
|
|
22397
|
+
component.dropdown.show();
|
|
22398
|
+
}
|
|
22399
|
+
},
|
|
22400
|
+
|
|
22401
|
+
Tab(component, _evt, ctx) {
|
|
22402
|
+
if (ctx.isExpanded && ctx.isModal) {
|
|
22403
|
+
component.dropdown.hide();
|
|
22404
|
+
}
|
|
22405
|
+
},
|
|
22406
|
+
};
|
|
22407
|
+
|
|
22339
22408
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22340
22409
|
// See LICENSE in the project root for license information.
|
|
22341
22410
|
|
|
@@ -22345,7 +22414,7 @@ function restoreTriggerAfterClose(dropdown, focusTarget) {
|
|
|
22345
22414
|
/**
|
|
22346
22415
|
* The `auro-datepicker` component provides users with a way to select a date or date range from a calendar popup or fullscreen calendar on mobile.
|
|
22347
22416
|
* @customElement auro-datepicker
|
|
22348
|
-
*
|
|
22417
|
+
*
|
|
22349
22418
|
* @slot helpText - Defines the content of the helpText.
|
|
22350
22419
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
22351
22420
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
@@ -23149,11 +23218,8 @@ class AuroDatePicker extends AuroElement {
|
|
|
23149
23218
|
// Tab closes the fullscreen dialog (same pattern as select).
|
|
23150
23219
|
// The dialog event bridge intercepts Tab and re-dispatches it as a
|
|
23151
23220
|
// composed keydown; this listener catches the re-dispatched event.
|
|
23152
|
-
|
|
23153
|
-
|
|
23154
|
-
this.dropdown.hide();
|
|
23155
|
-
}
|
|
23156
|
-
});
|
|
23221
|
+
// Enter opens the bib when it is closed.
|
|
23222
|
+
applyKeyboardStrategy(this, datepickerKeyboardStrategy);
|
|
23157
23223
|
|
|
23158
23224
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
23159
23225
|
if (!this.isPopoverVisible) {
|