@aurodesignsystem-dev/auro-formkit 0.0.0-pr1346.13 → 0.0.0-pr1346.15
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 +63 -47
- package/components/combobox/demo/index.min.js +63 -47
- package/components/combobox/dist/index.js +59 -42
- package/components/combobox/dist/registered.js +59 -42
- package/components/counter/demo/api.min.js +58 -41
- package/components/counter/demo/index.min.js +58 -41
- package/components/counter/dist/index.js +58 -41
- package/components/counter/dist/registered.js +58 -41
- package/components/datepicker/demo/api.min.js +59 -42
- package/components/datepicker/demo/index.min.js +59 -42
- package/components/datepicker/dist/index.js +59 -42
- package/components/datepicker/dist/registered.js +59 -42
- package/components/dropdown/demo/api.min.js +57 -40
- package/components/dropdown/demo/index.min.js +57 -40
- package/components/dropdown/dist/auro-dropdownBib.d.ts +42 -0
- package/components/dropdown/dist/index.js +57 -40
- package/components/dropdown/dist/registered.js +57 -40
- package/components/form/demo/api.min.js +241 -174
- package/components/form/demo/index.min.js +241 -174
- 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/menu/demo/api.md +4 -10
- package/components/menu/demo/api.min.js +4 -5
- package/components/menu/demo/index.min.js +4 -5
- package/components/menu/dist/auro-menuoption.d.ts +0 -8
- package/components/menu/dist/index.js +4 -5
- package/components/menu/dist/registered.js +4 -5
- 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 +62 -46
- package/components/select/demo/index.min.js +62 -46
- package/components/select/dist/index.js +58 -41
- package/components/select/dist/registered.js +58 -41
- package/custom-elements.json +1408 -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 = '202603091803';
|
|
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 = '202603091803';
|
|
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 = '202603091803';
|
|
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 = '202603091803';
|
|
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.
|
|
@@ -4433,45 +4433,70 @@ class AuroDropdownBib extends i$4 {
|
|
|
4433
4433
|
firstUpdated(changedProperties) {
|
|
4434
4434
|
super.firstUpdated(changedProperties);
|
|
4435
4435
|
|
|
4436
|
-
// Handle ESC key via dialog's cancel event
|
|
4437
4436
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4437
|
+
this._setupCancelHandler(dialog);
|
|
4438
|
+
this._setupKeyboardBridge(dialog);
|
|
4439
|
+
|
|
4440
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4441
|
+
bubbles: true,
|
|
4442
|
+
composed: true,
|
|
4443
|
+
detail: {
|
|
4444
|
+
element: this
|
|
4445
|
+
}
|
|
4446
|
+
}));
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4451
|
+
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4452
|
+
* @param {HTMLDialogElement} dialog
|
|
4453
|
+
* @private
|
|
4454
|
+
*/
|
|
4455
|
+
_setupCancelHandler(dialog) {
|
|
4438
4456
|
dialog.addEventListener('cancel', (event) => {
|
|
4439
|
-
// Let parent handle closing
|
|
4440
4457
|
event.preventDefault();
|
|
4441
4458
|
this.dispatchEvent(new CustomEvent('auro-bib-cancel', {
|
|
4442
4459
|
bubbles: true,
|
|
4443
4460
|
composed: true
|
|
4444
4461
|
}));
|
|
4445
4462
|
});
|
|
4463
|
+
}
|
|
4446
4464
|
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4465
|
+
/**
|
|
4466
|
+
* showModal() creates a closed focus scope — keyboard events inside
|
|
4467
|
+
* the dialog's shadow DOM do NOT bubble out to the combobox/select
|
|
4468
|
+
* keydown handlers in the parent shadow DOM. This handler bridges
|
|
4469
|
+
* that gap by re-dispatching navigation keys so they cross the
|
|
4470
|
+
* shadow boundary and reach the menu navigation logic in the parent
|
|
4471
|
+
* component.
|
|
4472
|
+
*
|
|
4473
|
+
* The trade-off: intercepting these keys means native keyboard
|
|
4474
|
+
* behaviors that would normally "just work" must be manually
|
|
4475
|
+
* re-implemented here:
|
|
4476
|
+
*
|
|
4477
|
+
* - Enter on buttons: Custom elements (auro-button) don't get the
|
|
4478
|
+
* native Enter→click that <button> provides, so we call .click()
|
|
4479
|
+
* directly when Enter is pressed on a button-like element.
|
|
4480
|
+
*
|
|
4481
|
+
* - Tab: Intercepted and re-dispatched so parent components
|
|
4482
|
+
* (select/combobox) can select the active option and close the
|
|
4483
|
+
* dialog. The <dialog> provides containment and isolation
|
|
4484
|
+
* (inert background, VoiceOver focus trapping, top layer), while
|
|
4485
|
+
* the content inside is a role="listbox" navigated via
|
|
4486
|
+
* aria-activedescendant (options are not focusable). Tab keyboard
|
|
4487
|
+
* behavior follows listbox conventions (select + close) because
|
|
4488
|
+
* the dialog's native Tab trap only cycles between the close
|
|
4489
|
+
* button and browser chrome.
|
|
4490
|
+
*
|
|
4491
|
+
* - Escape: The native <dialog> fires a `cancel` event on ESC
|
|
4492
|
+
* (handled by _setupCancelHandler), so the re-dispatched Escape
|
|
4493
|
+
* is a secondary path for parent components that also listen for
|
|
4494
|
+
* Escape keydown.
|
|
4495
|
+
*
|
|
4496
|
+
* @param {HTMLDialogElement} dialog
|
|
4497
|
+
* @private
|
|
4498
|
+
*/
|
|
4499
|
+
_setupKeyboardBridge(dialog) {
|
|
4475
4500
|
const navKeys = new Set([
|
|
4476
4501
|
'ArrowUp',
|
|
4477
4502
|
'ArrowDown',
|
|
@@ -4479,6 +4504,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4479
4504
|
'Escape',
|
|
4480
4505
|
'Tab'
|
|
4481
4506
|
]);
|
|
4507
|
+
|
|
4482
4508
|
dialog.addEventListener('keydown', (event) => {
|
|
4483
4509
|
if (!navKeys.has(event.key)) {
|
|
4484
4510
|
return;
|
|
@@ -4513,15 +4539,6 @@ class AuroDropdownBib extends i$4 {
|
|
|
4513
4539
|
});
|
|
4514
4540
|
this.dispatchEvent(newEvent);
|
|
4515
4541
|
});
|
|
4516
|
-
|
|
4517
|
-
// Dispatch a custom event when the component is connected
|
|
4518
|
-
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4519
|
-
bubbles: true,
|
|
4520
|
-
composed: true,
|
|
4521
|
-
detail: {
|
|
4522
|
-
element: this
|
|
4523
|
-
}
|
|
4524
|
-
}));
|
|
4525
4542
|
}
|
|
4526
4543
|
|
|
4527
4544
|
/**
|
|
@@ -4873,7 +4890,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4873
4890
|
}
|
|
4874
4891
|
};
|
|
4875
4892
|
|
|
4876
|
-
var formkitVersion$2 = '
|
|
4893
|
+
var formkitVersion$2 = '202603091803';
|
|
4877
4894
|
|
|
4878
4895
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4879
4896
|
static get properties() {
|
|
@@ -12617,7 +12634,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12617
12634
|
}
|
|
12618
12635
|
};
|
|
12619
12636
|
|
|
12620
|
-
var formkitVersion$1 = '
|
|
12637
|
+
var formkitVersion$1 = '202603091803';
|
|
12621
12638
|
|
|
12622
12639
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12623
12640
|
// See LICENSE in the project root for license information.
|
|
@@ -13656,7 +13673,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13656
13673
|
}
|
|
13657
13674
|
}
|
|
13658
13675
|
|
|
13659
|
-
var formkitVersion = '
|
|
13676
|
+
var formkitVersion = '202603091803';
|
|
13660
13677
|
|
|
13661
13678
|
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}`;
|
|
13662
13679
|
|
|
@@ -15636,6 +15653,8 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
15636
15653
|
*
|
|
15637
15654
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
15638
15655
|
*/
|
|
15656
|
+
let menuOptionIdCounter = 0;
|
|
15657
|
+
|
|
15639
15658
|
class AuroMenuOption extends AuroElement {
|
|
15640
15659
|
|
|
15641
15660
|
/**
|
|
@@ -15820,11 +15839,8 @@ class AuroMenuOption extends AuroElement {
|
|
|
15820
15839
|
|
|
15821
15840
|
// Generate unique ID if not already set (required for aria-activedescendant)
|
|
15822
15841
|
if (!this.id) {
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
const sliceEnd = 8;
|
|
15826
|
-
this.id = `menuoption-${Math.random().toString(idBase).
|
|
15827
|
-
slice(sliceStart, sliceEnd)}`;
|
|
15842
|
+
menuOptionIdCounter += 1;
|
|
15843
|
+
this.id = `menuoption-${menuOptionIdCounter}`;
|
|
15828
15844
|
}
|
|
15829
15845
|
|
|
15830
15846
|
this.setAttribute('role', 'option');
|
|
@@ -4356,45 +4356,70 @@ class AuroDropdownBib extends i$4 {
|
|
|
4356
4356
|
firstUpdated(changedProperties) {
|
|
4357
4357
|
super.firstUpdated(changedProperties);
|
|
4358
4358
|
|
|
4359
|
-
// Handle ESC key via dialog's cancel event
|
|
4360
4359
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4360
|
+
this._setupCancelHandler(dialog);
|
|
4361
|
+
this._setupKeyboardBridge(dialog);
|
|
4362
|
+
|
|
4363
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4364
|
+
bubbles: true,
|
|
4365
|
+
composed: true,
|
|
4366
|
+
detail: {
|
|
4367
|
+
element: this
|
|
4368
|
+
}
|
|
4369
|
+
}));
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4374
|
+
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4375
|
+
* @param {HTMLDialogElement} dialog
|
|
4376
|
+
* @private
|
|
4377
|
+
*/
|
|
4378
|
+
_setupCancelHandler(dialog) {
|
|
4361
4379
|
dialog.addEventListener('cancel', (event) => {
|
|
4362
|
-
// Let parent handle closing
|
|
4363
4380
|
event.preventDefault();
|
|
4364
4381
|
this.dispatchEvent(new CustomEvent('auro-bib-cancel', {
|
|
4365
4382
|
bubbles: true,
|
|
4366
4383
|
composed: true
|
|
4367
4384
|
}));
|
|
4368
4385
|
});
|
|
4386
|
+
}
|
|
4369
4387
|
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4388
|
+
/**
|
|
4389
|
+
* showModal() creates a closed focus scope — keyboard events inside
|
|
4390
|
+
* the dialog's shadow DOM do NOT bubble out to the combobox/select
|
|
4391
|
+
* keydown handlers in the parent shadow DOM. This handler bridges
|
|
4392
|
+
* that gap by re-dispatching navigation keys so they cross the
|
|
4393
|
+
* shadow boundary and reach the menu navigation logic in the parent
|
|
4394
|
+
* component.
|
|
4395
|
+
*
|
|
4396
|
+
* The trade-off: intercepting these keys means native keyboard
|
|
4397
|
+
* behaviors that would normally "just work" must be manually
|
|
4398
|
+
* re-implemented here:
|
|
4399
|
+
*
|
|
4400
|
+
* - Enter on buttons: Custom elements (auro-button) don't get the
|
|
4401
|
+
* native Enter→click that <button> provides, so we call .click()
|
|
4402
|
+
* directly when Enter is pressed on a button-like element.
|
|
4403
|
+
*
|
|
4404
|
+
* - Tab: Intercepted and re-dispatched so parent components
|
|
4405
|
+
* (select/combobox) can select the active option and close the
|
|
4406
|
+
* dialog. The <dialog> provides containment and isolation
|
|
4407
|
+
* (inert background, VoiceOver focus trapping, top layer), while
|
|
4408
|
+
* the content inside is a role="listbox" navigated via
|
|
4409
|
+
* aria-activedescendant (options are not focusable). Tab keyboard
|
|
4410
|
+
* behavior follows listbox conventions (select + close) because
|
|
4411
|
+
* the dialog's native Tab trap only cycles between the close
|
|
4412
|
+
* button and browser chrome.
|
|
4413
|
+
*
|
|
4414
|
+
* - Escape: The native <dialog> fires a `cancel` event on ESC
|
|
4415
|
+
* (handled by _setupCancelHandler), so the re-dispatched Escape
|
|
4416
|
+
* is a secondary path for parent components that also listen for
|
|
4417
|
+
* Escape keydown.
|
|
4418
|
+
*
|
|
4419
|
+
* @param {HTMLDialogElement} dialog
|
|
4420
|
+
* @private
|
|
4421
|
+
*/
|
|
4422
|
+
_setupKeyboardBridge(dialog) {
|
|
4398
4423
|
const navKeys = new Set([
|
|
4399
4424
|
'ArrowUp',
|
|
4400
4425
|
'ArrowDown',
|
|
@@ -4402,6 +4427,7 @@ class AuroDropdownBib extends i$4 {
|
|
|
4402
4427
|
'Escape',
|
|
4403
4428
|
'Tab'
|
|
4404
4429
|
]);
|
|
4430
|
+
|
|
4405
4431
|
dialog.addEventListener('keydown', (event) => {
|
|
4406
4432
|
if (!navKeys.has(event.key)) {
|
|
4407
4433
|
return;
|
|
@@ -4436,15 +4462,6 @@ class AuroDropdownBib extends i$4 {
|
|
|
4436
4462
|
});
|
|
4437
4463
|
this.dispatchEvent(newEvent);
|
|
4438
4464
|
});
|
|
4439
|
-
|
|
4440
|
-
// Dispatch a custom event when the component is connected
|
|
4441
|
-
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4442
|
-
bubbles: true,
|
|
4443
|
-
composed: true,
|
|
4444
|
-
detail: {
|
|
4445
|
-
element: this
|
|
4446
|
-
}
|
|
4447
|
-
}));
|
|
4448
4465
|
}
|
|
4449
4466
|
|
|
4450
4467
|
/**
|
|
@@ -4796,7 +4813,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4796
4813
|
}
|
|
4797
4814
|
};
|
|
4798
4815
|
|
|
4799
|
-
var formkitVersion$2 = '
|
|
4816
|
+
var formkitVersion$2 = '202603091803';
|
|
4800
4817
|
|
|
4801
4818
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4802
4819
|
static get properties() {
|
|
@@ -12540,7 +12557,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12540
12557
|
}
|
|
12541
12558
|
};
|
|
12542
12559
|
|
|
12543
|
-
var formkitVersion$1 = '
|
|
12560
|
+
var formkitVersion$1 = '202603091803';
|
|
12544
12561
|
|
|
12545
12562
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12546
12563
|
// See LICENSE in the project root for license information.
|
|
@@ -13579,7 +13596,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13579
13596
|
}
|
|
13580
13597
|
}
|
|
13581
13598
|
|
|
13582
|
-
var formkitVersion = '
|
|
13599
|
+
var formkitVersion = '202603091803';
|
|
13583
13600
|
|
|
13584
13601
|
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}`;
|
|
13585
13602
|
|
|
@@ -15559,6 +15576,8 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
15559
15576
|
*
|
|
15560
15577
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
15561
15578
|
*/
|
|
15579
|
+
let menuOptionIdCounter = 0;
|
|
15580
|
+
|
|
15562
15581
|
class AuroMenuOption extends AuroElement {
|
|
15563
15582
|
|
|
15564
15583
|
/**
|
|
@@ -15743,11 +15762,8 @@ class AuroMenuOption extends AuroElement {
|
|
|
15743
15762
|
|
|
15744
15763
|
// Generate unique ID if not already set (required for aria-activedescendant)
|
|
15745
15764
|
if (!this.id) {
|
|
15746
|
-
|
|
15747
|
-
|
|
15748
|
-
const sliceEnd = 8;
|
|
15749
|
-
this.id = `menuoption-${Math.random().toString(idBase).
|
|
15750
|
-
slice(sliceStart, sliceEnd)}`;
|
|
15765
|
+
menuOptionIdCounter += 1;
|
|
15766
|
+
this.id = `menuoption-${menuOptionIdCounter}`;
|
|
15751
15767
|
}
|
|
15752
15768
|
|
|
15753
15769
|
this.setAttribute('role', 'option');
|
|
@@ -4289,45 +4289,70 @@ class AuroDropdownBib extends LitElement {
|
|
|
4289
4289
|
firstUpdated(changedProperties) {
|
|
4290
4290
|
super.firstUpdated(changedProperties);
|
|
4291
4291
|
|
|
4292
|
-
// Handle ESC key via dialog's cancel event
|
|
4293
4292
|
const dialog = this.shadowRoot.querySelector('dialog');
|
|
4293
|
+
this._setupCancelHandler(dialog);
|
|
4294
|
+
this._setupKeyboardBridge(dialog);
|
|
4295
|
+
|
|
4296
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4297
|
+
bubbles: true,
|
|
4298
|
+
composed: true,
|
|
4299
|
+
detail: {
|
|
4300
|
+
element: this
|
|
4301
|
+
}
|
|
4302
|
+
}));
|
|
4303
|
+
}
|
|
4304
|
+
|
|
4305
|
+
/**
|
|
4306
|
+
* Forwards the dialog's native `cancel` event (fired on ESC) as
|
|
4307
|
+
* an `auro-bib-cancel` custom event so parent components can close.
|
|
4308
|
+
* @param {HTMLDialogElement} dialog
|
|
4309
|
+
* @private
|
|
4310
|
+
*/
|
|
4311
|
+
_setupCancelHandler(dialog) {
|
|
4294
4312
|
dialog.addEventListener('cancel', (event) => {
|
|
4295
|
-
// Let parent handle closing
|
|
4296
4313
|
event.preventDefault();
|
|
4297
4314
|
this.dispatchEvent(new CustomEvent('auro-bib-cancel', {
|
|
4298
4315
|
bubbles: true,
|
|
4299
4316
|
composed: true
|
|
4300
4317
|
}));
|
|
4301
4318
|
});
|
|
4319
|
+
}
|
|
4302
4320
|
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4321
|
+
/**
|
|
4322
|
+
* showModal() creates a closed focus scope — keyboard events inside
|
|
4323
|
+
* the dialog's shadow DOM do NOT bubble out to the combobox/select
|
|
4324
|
+
* keydown handlers in the parent shadow DOM. This handler bridges
|
|
4325
|
+
* that gap by re-dispatching navigation keys so they cross the
|
|
4326
|
+
* shadow boundary and reach the menu navigation logic in the parent
|
|
4327
|
+
* component.
|
|
4328
|
+
*
|
|
4329
|
+
* The trade-off: intercepting these keys means native keyboard
|
|
4330
|
+
* behaviors that would normally "just work" must be manually
|
|
4331
|
+
* re-implemented here:
|
|
4332
|
+
*
|
|
4333
|
+
* - Enter on buttons: Custom elements (auro-button) don't get the
|
|
4334
|
+
* native Enter→click that <button> provides, so we call .click()
|
|
4335
|
+
* directly when Enter is pressed on a button-like element.
|
|
4336
|
+
*
|
|
4337
|
+
* - Tab: Intercepted and re-dispatched so parent components
|
|
4338
|
+
* (select/combobox) can select the active option and close the
|
|
4339
|
+
* dialog. The <dialog> provides containment and isolation
|
|
4340
|
+
* (inert background, VoiceOver focus trapping, top layer), while
|
|
4341
|
+
* the content inside is a role="listbox" navigated via
|
|
4342
|
+
* aria-activedescendant (options are not focusable). Tab keyboard
|
|
4343
|
+
* behavior follows listbox conventions (select + close) because
|
|
4344
|
+
* the dialog's native Tab trap only cycles between the close
|
|
4345
|
+
* button and browser chrome.
|
|
4346
|
+
*
|
|
4347
|
+
* - Escape: The native <dialog> fires a `cancel` event on ESC
|
|
4348
|
+
* (handled by _setupCancelHandler), so the re-dispatched Escape
|
|
4349
|
+
* is a secondary path for parent components that also listen for
|
|
4350
|
+
* Escape keydown.
|
|
4351
|
+
*
|
|
4352
|
+
* @param {HTMLDialogElement} dialog
|
|
4353
|
+
* @private
|
|
4354
|
+
*/
|
|
4355
|
+
_setupKeyboardBridge(dialog) {
|
|
4331
4356
|
const navKeys = new Set([
|
|
4332
4357
|
'ArrowUp',
|
|
4333
4358
|
'ArrowDown',
|
|
@@ -4335,6 +4360,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4335
4360
|
'Escape',
|
|
4336
4361
|
'Tab'
|
|
4337
4362
|
]);
|
|
4363
|
+
|
|
4338
4364
|
dialog.addEventListener('keydown', (event) => {
|
|
4339
4365
|
if (!navKeys.has(event.key)) {
|
|
4340
4366
|
return;
|
|
@@ -4369,15 +4395,6 @@ class AuroDropdownBib extends LitElement {
|
|
|
4369
4395
|
});
|
|
4370
4396
|
this.dispatchEvent(newEvent);
|
|
4371
4397
|
});
|
|
4372
|
-
|
|
4373
|
-
// Dispatch a custom event when the component is connected
|
|
4374
|
-
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
4375
|
-
bubbles: true,
|
|
4376
|
-
composed: true,
|
|
4377
|
-
detail: {
|
|
4378
|
-
element: this
|
|
4379
|
-
}
|
|
4380
|
-
}));
|
|
4381
4398
|
}
|
|
4382
4399
|
|
|
4383
4400
|
/**
|
|
@@ -4729,7 +4746,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4729
4746
|
}
|
|
4730
4747
|
};
|
|
4731
4748
|
|
|
4732
|
-
var formkitVersion$2 = '
|
|
4749
|
+
var formkitVersion$2 = '202603091803';
|
|
4733
4750
|
|
|
4734
4751
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4735
4752
|
static get properties() {
|
|
@@ -12466,7 +12483,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12466
12483
|
}
|
|
12467
12484
|
};
|
|
12468
12485
|
|
|
12469
|
-
var formkitVersion$1 = '
|
|
12486
|
+
var formkitVersion$1 = '202603091803';
|
|
12470
12487
|
|
|
12471
12488
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12472
12489
|
// See LICENSE in the project root for license information.
|
|
@@ -13505,7 +13522,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13505
13522
|
}
|
|
13506
13523
|
}
|
|
13507
13524
|
|
|
13508
|
-
var formkitVersion = '
|
|
13525
|
+
var formkitVersion = '202603091803';
|
|
13509
13526
|
|
|
13510
13527
|
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}`;
|
|
13511
13528
|
|