@aurodesignsystem-dev/auro-formkit 0.0.0-pr1393.1 → 0.0.0-pr1394.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/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 +44 -13
- package/components/combobox/demo/index.min.js +44 -13
- package/components/combobox/dist/index.js +44 -13
- package/components/combobox/dist/registered.js +44 -13
- package/components/counter/demo/api.min.js +78 -43
- package/components/counter/demo/index.min.js +78 -43
- package/components/counter/dist/auro-counter.d.ts +7 -0
- package/components/counter/dist/index.js +78 -43
- package/components/counter/dist/registered.js +78 -43
- package/components/datepicker/demo/api.min.js +44 -13
- package/components/datepicker/demo/index.min.js +44 -13
- package/components/datepicker/dist/index.js +44 -13
- package/components/datepicker/dist/registered.js +44 -13
- package/components/dropdown/demo/api.min.js +42 -11
- package/components/dropdown/demo/index.min.js +42 -11
- package/components/dropdown/dist/auro-dropdownBib.d.ts +13 -2
- package/components/dropdown/dist/index.js +42 -11
- package/components/dropdown/dist/registered.js +42 -11
- package/components/form/demo/api.min.js +212 -84
- package/components/form/demo/index.min.js +212 -84
- 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 +43 -12
- package/components/select/demo/index.min.js +43 -12
- package/components/select/dist/index.js +43 -12
- package/components/select/dist/registered.js +43 -12
- package/custom-elements.json +37 -0
- 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 = '202603232347';
|
|
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 = '202603232347';
|
|
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 = '202603232347';
|
|
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 = '202603232347';
|
|
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.
|
|
@@ -4404,6 +4404,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4404
4404
|
|
|
4405
4405
|
this.shape = "rounded";
|
|
4406
4406
|
this.matchWidth = false;
|
|
4407
|
+
this.hasActiveDescendant = false;
|
|
4407
4408
|
}
|
|
4408
4409
|
|
|
4409
4410
|
static get styles() {
|
|
@@ -4490,6 +4491,17 @@ class AuroDropdownBib extends i$4 {
|
|
|
4490
4491
|
*/
|
|
4491
4492
|
dialogRole: {
|
|
4492
4493
|
type: String
|
|
4494
|
+
},
|
|
4495
|
+
|
|
4496
|
+
/**
|
|
4497
|
+
* Set by auro-dropdown when a menu option is highlighted via
|
|
4498
|
+
* aria-activedescendant. The dialog keyboard bridge checks this
|
|
4499
|
+
* flag so that Enter selects the highlighted option instead of
|
|
4500
|
+
* clicking the trigger button.
|
|
4501
|
+
* @private
|
|
4502
|
+
*/
|
|
4503
|
+
hasActiveDescendant: {
|
|
4504
|
+
type: Boolean
|
|
4493
4505
|
}
|
|
4494
4506
|
};
|
|
4495
4507
|
}
|
|
@@ -4573,7 +4585,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4573
4585
|
/**
|
|
4574
4586
|
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4575
4587
|
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4576
|
-
* @param {HTMLDialogElement} dialog
|
|
4588
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the cancel listener to.
|
|
4577
4589
|
* @private
|
|
4578
4590
|
*/
|
|
4579
4591
|
_setupCancelHandler(dialog) {
|
|
@@ -4617,7 +4629,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4617
4629
|
* is a secondary path for parent components that also listen for
|
|
4618
4630
|
* Escape keydown.
|
|
4619
4631
|
*
|
|
4620
|
-
* @param {HTMLDialogElement} dialog
|
|
4632
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the keyboard bridge to.
|
|
4621
4633
|
* @private
|
|
4622
4634
|
*/
|
|
4623
4635
|
_setupKeyboardBridge(dialog) {
|
|
@@ -4636,15 +4648,23 @@ class AuroDropdownBib extends i$4 {
|
|
|
4636
4648
|
|
|
4637
4649
|
// Custom elements (auro-button) don't get the native Enter→click
|
|
4638
4650
|
// behavior that <button> has. Find the button in the composed path
|
|
4639
|
-
// and click it directly
|
|
4651
|
+
// and click it directly — but only when no menu option is
|
|
4652
|
+
// highlighted. In fullscreen mode focus stays on the close button
|
|
4653
|
+
// while arrow keys move the active-descendant highlight through
|
|
4654
|
+
// the listbox. If the user presses Enter with an option
|
|
4655
|
+
// highlighted, the intent is to select that option, not to click
|
|
4656
|
+
// the close button. In that case we fall through and bridge the
|
|
4657
|
+
// Enter key to the parent component's keyboard strategy.
|
|
4640
4658
|
if (event.key === 'Enter') {
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4659
|
+
if (!this.hasActiveDescendant) {
|
|
4660
|
+
const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
|
|
4661
|
+
const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
|
|
4662
|
+
if (btn) {
|
|
4663
|
+
event.preventDefault();
|
|
4664
|
+
event.stopPropagation();
|
|
4665
|
+
btn.click();
|
|
4666
|
+
return;
|
|
4667
|
+
}
|
|
4648
4668
|
}
|
|
4649
4669
|
}
|
|
4650
4670
|
|
|
@@ -4759,6 +4779,8 @@ class AuroDropdownBib extends i$4 {
|
|
|
4759
4779
|
* Closes the dialog.
|
|
4760
4780
|
*/
|
|
4761
4781
|
close() {
|
|
4782
|
+
this.hasActiveDescendant = false;
|
|
4783
|
+
|
|
4762
4784
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4763
4785
|
|
|
4764
4786
|
if (dialog && dialog.open) {
|
|
@@ -5036,7 +5058,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5036
5058
|
}
|
|
5037
5059
|
};
|
|
5038
5060
|
|
|
5039
|
-
var formkitVersion$2 = '
|
|
5061
|
+
var formkitVersion$2 = '202603232347';
|
|
5040
5062
|
|
|
5041
5063
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5042
5064
|
static get properties() {
|
|
@@ -5355,6 +5377,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5355
5377
|
this.trigger.ariaActiveDescendantElement = null;
|
|
5356
5378
|
this.trigger.removeAttribute('aria-activedescendant');
|
|
5357
5379
|
}
|
|
5380
|
+
|
|
5381
|
+
// In fullscreen, focus stays on the close button while arrow keys
|
|
5382
|
+
// highlight options via active-descendant. Without this flag the
|
|
5383
|
+
// keyboard bridge clicks the close button on Enter (closing the
|
|
5384
|
+
// bib without selecting). When true, the bridge skips the button
|
|
5385
|
+
// click and forwards Enter to the parent to make the selection.
|
|
5386
|
+
if (this.bibContent) {
|
|
5387
|
+
this.bibContent.hasActiveDescendant = Boolean(element);
|
|
5388
|
+
}
|
|
5358
5389
|
}
|
|
5359
5390
|
|
|
5360
5391
|
// function to define props used within the scope of this component
|
|
@@ -12791,7 +12822,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12791
12822
|
}
|
|
12792
12823
|
};
|
|
12793
12824
|
|
|
12794
|
-
var formkitVersion$1 = '
|
|
12825
|
+
var formkitVersion$1 = '202603232347';
|
|
12795
12826
|
|
|
12796
12827
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12797
12828
|
// See LICENSE in the project root for license information.
|
|
@@ -13830,7 +13861,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13830
13861
|
}
|
|
13831
13862
|
}
|
|
13832
13863
|
|
|
13833
|
-
var formkitVersion = '
|
|
13864
|
+
var formkitVersion = '202603232347';
|
|
13834
13865
|
|
|
13835
13866
|
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}`;
|
|
13836
13867
|
|
|
@@ -4327,6 +4327,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4327
4327
|
|
|
4328
4328
|
this.shape = "rounded";
|
|
4329
4329
|
this.matchWidth = false;
|
|
4330
|
+
this.hasActiveDescendant = false;
|
|
4330
4331
|
}
|
|
4331
4332
|
|
|
4332
4333
|
static get styles() {
|
|
@@ -4413,6 +4414,17 @@ class AuroDropdownBib extends i$4 {
|
|
|
4413
4414
|
*/
|
|
4414
4415
|
dialogRole: {
|
|
4415
4416
|
type: String
|
|
4417
|
+
},
|
|
4418
|
+
|
|
4419
|
+
/**
|
|
4420
|
+
* Set by auro-dropdown when a menu option is highlighted via
|
|
4421
|
+
* aria-activedescendant. The dialog keyboard bridge checks this
|
|
4422
|
+
* flag so that Enter selects the highlighted option instead of
|
|
4423
|
+
* clicking the trigger button.
|
|
4424
|
+
* @private
|
|
4425
|
+
*/
|
|
4426
|
+
hasActiveDescendant: {
|
|
4427
|
+
type: Boolean
|
|
4416
4428
|
}
|
|
4417
4429
|
};
|
|
4418
4430
|
}
|
|
@@ -4496,7 +4508,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4496
4508
|
/**
|
|
4497
4509
|
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4498
4510
|
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4499
|
-
* @param {HTMLDialogElement} dialog
|
|
4511
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the cancel listener to.
|
|
4500
4512
|
* @private
|
|
4501
4513
|
*/
|
|
4502
4514
|
_setupCancelHandler(dialog) {
|
|
@@ -4540,7 +4552,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4540
4552
|
* is a secondary path for parent components that also listen for
|
|
4541
4553
|
* Escape keydown.
|
|
4542
4554
|
*
|
|
4543
|
-
* @param {HTMLDialogElement} dialog
|
|
4555
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the keyboard bridge to.
|
|
4544
4556
|
* @private
|
|
4545
4557
|
*/
|
|
4546
4558
|
_setupKeyboardBridge(dialog) {
|
|
@@ -4559,15 +4571,23 @@ class AuroDropdownBib extends i$4 {
|
|
|
4559
4571
|
|
|
4560
4572
|
// Custom elements (auro-button) don't get the native Enter→click
|
|
4561
4573
|
// behavior that <button> has. Find the button in the composed path
|
|
4562
|
-
// and click it directly
|
|
4574
|
+
// and click it directly — but only when no menu option is
|
|
4575
|
+
// highlighted. In fullscreen mode focus stays on the close button
|
|
4576
|
+
// while arrow keys move the active-descendant highlight through
|
|
4577
|
+
// the listbox. If the user presses Enter with an option
|
|
4578
|
+
// highlighted, the intent is to select that option, not to click
|
|
4579
|
+
// the close button. In that case we fall through and bridge the
|
|
4580
|
+
// Enter key to the parent component's keyboard strategy.
|
|
4563
4581
|
if (event.key === 'Enter') {
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4582
|
+
if (!this.hasActiveDescendant) {
|
|
4583
|
+
const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
|
|
4584
|
+
const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
|
|
4585
|
+
if (btn) {
|
|
4586
|
+
event.preventDefault();
|
|
4587
|
+
event.stopPropagation();
|
|
4588
|
+
btn.click();
|
|
4589
|
+
return;
|
|
4590
|
+
}
|
|
4571
4591
|
}
|
|
4572
4592
|
}
|
|
4573
4593
|
|
|
@@ -4682,6 +4702,8 @@ class AuroDropdownBib extends i$4 {
|
|
|
4682
4702
|
* Closes the dialog.
|
|
4683
4703
|
*/
|
|
4684
4704
|
close() {
|
|
4705
|
+
this.hasActiveDescendant = false;
|
|
4706
|
+
|
|
4685
4707
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4686
4708
|
|
|
4687
4709
|
if (dialog && dialog.open) {
|
|
@@ -4959,7 +4981,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4959
4981
|
}
|
|
4960
4982
|
};
|
|
4961
4983
|
|
|
4962
|
-
var formkitVersion$2 = '
|
|
4984
|
+
var formkitVersion$2 = '202603232347';
|
|
4963
4985
|
|
|
4964
4986
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4965
4987
|
static get properties() {
|
|
@@ -5278,6 +5300,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5278
5300
|
this.trigger.ariaActiveDescendantElement = null;
|
|
5279
5301
|
this.trigger.removeAttribute('aria-activedescendant');
|
|
5280
5302
|
}
|
|
5303
|
+
|
|
5304
|
+
// In fullscreen, focus stays on the close button while arrow keys
|
|
5305
|
+
// highlight options via active-descendant. Without this flag the
|
|
5306
|
+
// keyboard bridge clicks the close button on Enter (closing the
|
|
5307
|
+
// bib without selecting). When true, the bridge skips the button
|
|
5308
|
+
// click and forwards Enter to the parent to make the selection.
|
|
5309
|
+
if (this.bibContent) {
|
|
5310
|
+
this.bibContent.hasActiveDescendant = Boolean(element);
|
|
5311
|
+
}
|
|
5281
5312
|
}
|
|
5282
5313
|
|
|
5283
5314
|
// function to define props used within the scope of this component
|
|
@@ -12714,7 +12745,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12714
12745
|
}
|
|
12715
12746
|
};
|
|
12716
12747
|
|
|
12717
|
-
var formkitVersion$1 = '
|
|
12748
|
+
var formkitVersion$1 = '202603232347';
|
|
12718
12749
|
|
|
12719
12750
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12720
12751
|
// See LICENSE in the project root for license information.
|
|
@@ -13753,7 +13784,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13753
13784
|
}
|
|
13754
13785
|
}
|
|
13755
13786
|
|
|
13756
|
-
var formkitVersion = '
|
|
13787
|
+
var formkitVersion = '202603232347';
|
|
13757
13788
|
|
|
13758
13789
|
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}`;
|
|
13759
13790
|
|
|
@@ -4260,6 +4260,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4260
4260
|
|
|
4261
4261
|
this.shape = "rounded";
|
|
4262
4262
|
this.matchWidth = false;
|
|
4263
|
+
this.hasActiveDescendant = false;
|
|
4263
4264
|
}
|
|
4264
4265
|
|
|
4265
4266
|
static get styles() {
|
|
@@ -4346,6 +4347,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
4346
4347
|
*/
|
|
4347
4348
|
dialogRole: {
|
|
4348
4349
|
type: String
|
|
4350
|
+
},
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* Set by auro-dropdown when a menu option is highlighted via
|
|
4354
|
+
* aria-activedescendant. The dialog keyboard bridge checks this
|
|
4355
|
+
* flag so that Enter selects the highlighted option instead of
|
|
4356
|
+
* clicking the trigger button.
|
|
4357
|
+
* @private
|
|
4358
|
+
*/
|
|
4359
|
+
hasActiveDescendant: {
|
|
4360
|
+
type: Boolean
|
|
4349
4361
|
}
|
|
4350
4362
|
};
|
|
4351
4363
|
}
|
|
@@ -4429,7 +4441,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4429
4441
|
/**
|
|
4430
4442
|
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4431
4443
|
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4432
|
-
* @param {HTMLDialogElement} dialog
|
|
4444
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the cancel listener to.
|
|
4433
4445
|
* @private
|
|
4434
4446
|
*/
|
|
4435
4447
|
_setupCancelHandler(dialog) {
|
|
@@ -4473,7 +4485,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4473
4485
|
* is a secondary path for parent components that also listen for
|
|
4474
4486
|
* Escape keydown.
|
|
4475
4487
|
*
|
|
4476
|
-
* @param {HTMLDialogElement} dialog
|
|
4488
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the keyboard bridge to.
|
|
4477
4489
|
* @private
|
|
4478
4490
|
*/
|
|
4479
4491
|
_setupKeyboardBridge(dialog) {
|
|
@@ -4492,15 +4504,23 @@ class AuroDropdownBib extends LitElement {
|
|
|
4492
4504
|
|
|
4493
4505
|
// Custom elements (auro-button) don't get the native Enter→click
|
|
4494
4506
|
// behavior that <button> has. Find the button in the composed path
|
|
4495
|
-
// and click it directly
|
|
4507
|
+
// and click it directly — but only when no menu option is
|
|
4508
|
+
// highlighted. In fullscreen mode focus stays on the close button
|
|
4509
|
+
// while arrow keys move the active-descendant highlight through
|
|
4510
|
+
// the listbox. If the user presses Enter with an option
|
|
4511
|
+
// highlighted, the intent is to select that option, not to click
|
|
4512
|
+
// the close button. In that case we fall through and bridge the
|
|
4513
|
+
// Enter key to the parent component's keyboard strategy.
|
|
4496
4514
|
if (event.key === 'Enter') {
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4515
|
+
if (!this.hasActiveDescendant) {
|
|
4516
|
+
const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
|
|
4517
|
+
const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
|
|
4518
|
+
if (btn) {
|
|
4519
|
+
event.preventDefault();
|
|
4520
|
+
event.stopPropagation();
|
|
4521
|
+
btn.click();
|
|
4522
|
+
return;
|
|
4523
|
+
}
|
|
4504
4524
|
}
|
|
4505
4525
|
}
|
|
4506
4526
|
|
|
@@ -4615,6 +4635,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4615
4635
|
* Closes the dialog.
|
|
4616
4636
|
*/
|
|
4617
4637
|
close() {
|
|
4638
|
+
this.hasActiveDescendant = false;
|
|
4639
|
+
|
|
4618
4640
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4619
4641
|
|
|
4620
4642
|
if (dialog && dialog.open) {
|
|
@@ -4892,7 +4914,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4892
4914
|
}
|
|
4893
4915
|
};
|
|
4894
4916
|
|
|
4895
|
-
var formkitVersion$2 = '
|
|
4917
|
+
var formkitVersion$2 = '202603232347';
|
|
4896
4918
|
|
|
4897
4919
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4898
4920
|
static get properties() {
|
|
@@ -5211,6 +5233,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5211
5233
|
this.trigger.ariaActiveDescendantElement = null;
|
|
5212
5234
|
this.trigger.removeAttribute('aria-activedescendant');
|
|
5213
5235
|
}
|
|
5236
|
+
|
|
5237
|
+
// In fullscreen, focus stays on the close button while arrow keys
|
|
5238
|
+
// highlight options via active-descendant. Without this flag the
|
|
5239
|
+
// keyboard bridge clicks the close button on Enter (closing the
|
|
5240
|
+
// bib without selecting). When true, the bridge skips the button
|
|
5241
|
+
// click and forwards Enter to the parent to make the selection.
|
|
5242
|
+
if (this.bibContent) {
|
|
5243
|
+
this.bibContent.hasActiveDescendant = Boolean(element);
|
|
5244
|
+
}
|
|
5214
5245
|
}
|
|
5215
5246
|
|
|
5216
5247
|
// function to define props used within the scope of this component
|
|
@@ -12640,7 +12671,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12640
12671
|
}
|
|
12641
12672
|
};
|
|
12642
12673
|
|
|
12643
|
-
var formkitVersion$1 = '
|
|
12674
|
+
var formkitVersion$1 = '202603232347';
|
|
12644
12675
|
|
|
12645
12676
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12646
12677
|
// See LICENSE in the project root for license information.
|
|
@@ -13679,7 +13710,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13679
13710
|
}
|
|
13680
13711
|
}
|
|
13681
13712
|
|
|
13682
|
-
var formkitVersion = '
|
|
13713
|
+
var formkitVersion = '202603232347';
|
|
13683
13714
|
|
|
13684
13715
|
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}`;
|
|
13685
13716
|
|
|
@@ -4260,6 +4260,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4260
4260
|
|
|
4261
4261
|
this.shape = "rounded";
|
|
4262
4262
|
this.matchWidth = false;
|
|
4263
|
+
this.hasActiveDescendant = false;
|
|
4263
4264
|
}
|
|
4264
4265
|
|
|
4265
4266
|
static get styles() {
|
|
@@ -4346,6 +4347,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
4346
4347
|
*/
|
|
4347
4348
|
dialogRole: {
|
|
4348
4349
|
type: String
|
|
4350
|
+
},
|
|
4351
|
+
|
|
4352
|
+
/**
|
|
4353
|
+
* Set by auro-dropdown when a menu option is highlighted via
|
|
4354
|
+
* aria-activedescendant. The dialog keyboard bridge checks this
|
|
4355
|
+
* flag so that Enter selects the highlighted option instead of
|
|
4356
|
+
* clicking the trigger button.
|
|
4357
|
+
* @private
|
|
4358
|
+
*/
|
|
4359
|
+
hasActiveDescendant: {
|
|
4360
|
+
type: Boolean
|
|
4349
4361
|
}
|
|
4350
4362
|
};
|
|
4351
4363
|
}
|
|
@@ -4429,7 +4441,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4429
4441
|
/**
|
|
4430
4442
|
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4431
4443
|
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4432
|
-
* @param {HTMLDialogElement} dialog
|
|
4444
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the cancel listener to.
|
|
4433
4445
|
* @private
|
|
4434
4446
|
*/
|
|
4435
4447
|
_setupCancelHandler(dialog) {
|
|
@@ -4473,7 +4485,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4473
4485
|
* is a secondary path for parent components that also listen for
|
|
4474
4486
|
* Escape keydown.
|
|
4475
4487
|
*
|
|
4476
|
-
* @param {HTMLDialogElement} dialog
|
|
4488
|
+
* @param {HTMLDialogElement} dialog - The dialog element to attach the keyboard bridge to.
|
|
4477
4489
|
* @private
|
|
4478
4490
|
*/
|
|
4479
4491
|
_setupKeyboardBridge(dialog) {
|
|
@@ -4492,15 +4504,23 @@ class AuroDropdownBib extends LitElement {
|
|
|
4492
4504
|
|
|
4493
4505
|
// Custom elements (auro-button) don't get the native Enter→click
|
|
4494
4506
|
// behavior that <button> has. Find the button in the composed path
|
|
4495
|
-
// and click it directly
|
|
4507
|
+
// and click it directly — but only when no menu option is
|
|
4508
|
+
// highlighted. In fullscreen mode focus stays on the close button
|
|
4509
|
+
// while arrow keys move the active-descendant highlight through
|
|
4510
|
+
// the listbox. If the user presses Enter with an option
|
|
4511
|
+
// highlighted, the intent is to select that option, not to click
|
|
4512
|
+
// the close button. In that case we fall through and bridge the
|
|
4513
|
+
// Enter key to the parent component's keyboard strategy.
|
|
4496
4514
|
if (event.key === 'Enter') {
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4515
|
+
if (!this.hasActiveDescendant) {
|
|
4516
|
+
const buttonSelector = 'button, [role="button"], auro-button, [auro-button]';
|
|
4517
|
+
const btn = event.composedPath().find((el) => el.matches && el.matches(buttonSelector));
|
|
4518
|
+
if (btn) {
|
|
4519
|
+
event.preventDefault();
|
|
4520
|
+
event.stopPropagation();
|
|
4521
|
+
btn.click();
|
|
4522
|
+
return;
|
|
4523
|
+
}
|
|
4504
4524
|
}
|
|
4505
4525
|
}
|
|
4506
4526
|
|
|
@@ -4615,6 +4635,8 @@ class AuroDropdownBib extends LitElement {
|
|
|
4615
4635
|
* Closes the dialog.
|
|
4616
4636
|
*/
|
|
4617
4637
|
close() {
|
|
4638
|
+
this.hasActiveDescendant = false;
|
|
4639
|
+
|
|
4618
4640
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4619
4641
|
|
|
4620
4642
|
if (dialog && dialog.open) {
|
|
@@ -4892,7 +4914,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4892
4914
|
}
|
|
4893
4915
|
};
|
|
4894
4916
|
|
|
4895
|
-
var formkitVersion$2 = '
|
|
4917
|
+
var formkitVersion$2 = '202603232347';
|
|
4896
4918
|
|
|
4897
4919
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4898
4920
|
static get properties() {
|
|
@@ -5211,6 +5233,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5211
5233
|
this.trigger.ariaActiveDescendantElement = null;
|
|
5212
5234
|
this.trigger.removeAttribute('aria-activedescendant');
|
|
5213
5235
|
}
|
|
5236
|
+
|
|
5237
|
+
// In fullscreen, focus stays on the close button while arrow keys
|
|
5238
|
+
// highlight options via active-descendant. Without this flag the
|
|
5239
|
+
// keyboard bridge clicks the close button on Enter (closing the
|
|
5240
|
+
// bib without selecting). When true, the bridge skips the button
|
|
5241
|
+
// click and forwards Enter to the parent to make the selection.
|
|
5242
|
+
if (this.bibContent) {
|
|
5243
|
+
this.bibContent.hasActiveDescendant = Boolean(element);
|
|
5244
|
+
}
|
|
5214
5245
|
}
|
|
5215
5246
|
|
|
5216
5247
|
// function to define props used within the scope of this component
|
|
@@ -12640,7 +12671,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12640
12671
|
}
|
|
12641
12672
|
};
|
|
12642
12673
|
|
|
12643
|
-
var formkitVersion$1 = '
|
|
12674
|
+
var formkitVersion$1 = '202603232347';
|
|
12644
12675
|
|
|
12645
12676
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12646
12677
|
// See LICENSE in the project root for license information.
|
|
@@ -13679,7 +13710,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13679
13710
|
}
|
|
13680
13711
|
}
|
|
13681
13712
|
|
|
13682
|
-
var formkitVersion = '
|
|
13713
|
+
var formkitVersion = '202603232347';
|
|
13683
13714
|
|
|
13684
13715
|
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}`;
|
|
13685
13716
|
|