@aurodesignsystem-dev/auro-formkit 0.0.0-pr1430.0 → 0.0.0-pr1431.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 +3 -3
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +3 -1
- package/components/combobox/demo/api.md +75 -0
- package/components/combobox/demo/api.min.js +42 -124
- package/components/combobox/demo/index.min.js +29 -123
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +21 -123
- package/components/combobox/dist/registered.js +21 -123
- package/components/counter/demo/api.html +3 -0
- package/components/counter/demo/api.js +4 -0
- package/components/counter/demo/api.md +130 -0
- package/components/counter/demo/api.min.js +63 -132
- package/components/counter/demo/index.min.js +43 -132
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
- package/components/counter/dist/index.js +43 -132
- package/components/counter/dist/registered.js +43 -132
- package/components/datepicker/demo/api.html +1 -0
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +57 -0
- package/components/datepicker/demo/api.min.js +106 -123
- package/components/datepicker/demo/index.min.js +94 -123
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
- package/components/datepicker/dist/index.js +94 -123
- package/components/datepicker/dist/registered.js +94 -123
- package/components/dropdown/demo/api.html +1 -0
- package/components/dropdown/demo/api.js +2 -0
- package/components/dropdown/demo/api.md +95 -0
- package/components/dropdown/demo/api.min.js +25 -116
- package/components/dropdown/demo/index.min.js +5 -116
- package/components/dropdown/dist/index.js +5 -116
- package/components/dropdown/dist/registered.js +5 -116
- package/components/form/demo/api.min.js +228 -547
- package/components/form/demo/index.min.js +228 -547
- 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 +1 -0
- package/components/menu/demo/api.min.js +8 -0
- package/components/menu/demo/index.min.js +8 -0
- package/components/menu/dist/auro-menuoption.d.ts +7 -0
- package/components/menu/dist/index.js +8 -0
- package/components/menu/dist/registered.js +8 -0
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +76 -0
- package/components/select/demo/api.min.js +43 -129
- package/components/select/demo/index.min.js +30 -129
- package/components/select/dist/index.js +18 -125
- package/components/select/dist/registered.js +18 -125
- package/custom-elements.json +1688 -1645
- package/package.json +3 -2
|
@@ -1344,10 +1344,19 @@ const comboboxKeyboardStrategy = {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
},
|
|
1346
1346
|
|
|
1347
|
-
Escape(component,
|
|
1348
|
-
if (ctx.isExpanded
|
|
1347
|
+
Escape(component, evt, ctx) {
|
|
1348
|
+
if (!ctx.isExpanded) {
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
|
|
1353
|
+
evt.stopPropagation();
|
|
1354
|
+
|
|
1355
|
+
if (ctx.isModal) {
|
|
1349
1356
|
component.setTriggerInputFocus();
|
|
1350
1357
|
}
|
|
1358
|
+
|
|
1359
|
+
component.hideBib();
|
|
1351
1360
|
},
|
|
1352
1361
|
|
|
1353
1362
|
Home(component, evt, ctx) {
|
|
@@ -1408,7 +1417,7 @@ const comboboxKeyboardStrategy = {
|
|
|
1408
1417
|
|
|
1409
1418
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1410
1419
|
|
|
1411
|
-
let AuroLibraryRuntimeUtils$2
|
|
1420
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
1412
1421
|
|
|
1413
1422
|
/* eslint-disable jsdoc/require-param */
|
|
1414
1423
|
|
|
@@ -3197,7 +3206,6 @@ class AuroFloatingUI {
|
|
|
3197
3206
|
this.focusHandler = null;
|
|
3198
3207
|
this.clickHandler = null;
|
|
3199
3208
|
this.keyDownHandler = null;
|
|
3200
|
-
this.touchHandler = null;
|
|
3201
3209
|
|
|
3202
3210
|
/**
|
|
3203
3211
|
* @private
|
|
@@ -3615,28 +3623,6 @@ class AuroFloatingUI {
|
|
|
3615
3623
|
setTimeout(() => {
|
|
3616
3624
|
window.addEventListener("click", this.clickHandler);
|
|
3617
3625
|
}, 0);
|
|
3618
|
-
|
|
3619
|
-
// iOS Safari does not fire `click` on non-interactive elements, so
|
|
3620
|
-
// tapping an inert backdrop never reaches the click handler above.
|
|
3621
|
-
// Mirror the same outside-tap logic with a passive touchstart listener.
|
|
3622
|
-
this.touchHandler = (evt) => {
|
|
3623
|
-
const element = this.element;
|
|
3624
|
-
if (!element?.bib) {
|
|
3625
|
-
return;
|
|
3626
|
-
}
|
|
3627
|
-
|
|
3628
|
-
// fullscreen (modal) dialog handles its own dismissal
|
|
3629
|
-
if (element.bib.hasAttribute("isfullscreen")) {
|
|
3630
|
-
return;
|
|
3631
|
-
}
|
|
3632
|
-
|
|
3633
|
-
const path = evt.composedPath();
|
|
3634
|
-
if (!path.includes(element.trigger) && !path.includes(element.bib)) {
|
|
3635
|
-
this.hideBib("click");
|
|
3636
|
-
}
|
|
3637
|
-
};
|
|
3638
|
-
|
|
3639
|
-
window.addEventListener("touchstart", this.touchHandler, { passive: true });
|
|
3640
3626
|
}
|
|
3641
3627
|
|
|
3642
3628
|
cleanupHideHandlers() {
|
|
@@ -3652,11 +3638,6 @@ class AuroFloatingUI {
|
|
|
3652
3638
|
this.clickHandler = null;
|
|
3653
3639
|
}
|
|
3654
3640
|
|
|
3655
|
-
if (this.touchHandler) {
|
|
3656
|
-
window.removeEventListener("touchstart", this.touchHandler);
|
|
3657
|
-
this.touchHandler = null;
|
|
3658
|
-
}
|
|
3659
|
-
|
|
3660
3641
|
if (this.keyDownHandler) {
|
|
3661
3642
|
document.removeEventListener("keydown", this.keyDownHandler);
|
|
3662
3643
|
this.keyDownHandler = null;
|
|
@@ -4449,89 +4430,6 @@ let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4449
4430
|
|
|
4450
4431
|
var iconVersion$3 = '9.1.2';
|
|
4451
4432
|
|
|
4452
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4453
|
-
// See LICENSE in the project root for license information.
|
|
4454
|
-
|
|
4455
|
-
// ---------------------------------------------------------------------
|
|
4456
|
-
|
|
4457
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4458
|
-
|
|
4459
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
4460
|
-
|
|
4461
|
-
/* eslint-disable jsdoc/require-param */
|
|
4462
|
-
|
|
4463
|
-
/**
|
|
4464
|
-
* This will register a new custom element with the browser.
|
|
4465
|
-
* @param {String} name - The name of the custom element.
|
|
4466
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
4467
|
-
* @returns {void}
|
|
4468
|
-
*/
|
|
4469
|
-
registerComponent(name, componentClass) {
|
|
4470
|
-
if (!customElements.get(name)) {
|
|
4471
|
-
customElements.define(name, class extends componentClass {});
|
|
4472
|
-
}
|
|
4473
|
-
}
|
|
4474
|
-
|
|
4475
|
-
/**
|
|
4476
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
4477
|
-
* @returns {void}
|
|
4478
|
-
*/
|
|
4479
|
-
closestElement(
|
|
4480
|
-
selector, // selector like in .closest()
|
|
4481
|
-
base = this, // extra functionality to skip a parent
|
|
4482
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4483
|
-
!el || el === document || el === window
|
|
4484
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
4485
|
-
: found
|
|
4486
|
-
? found // found a selector INside this element
|
|
4487
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4488
|
-
) {
|
|
4489
|
-
return __Closest(base);
|
|
4490
|
-
}
|
|
4491
|
-
/* eslint-enable jsdoc/require-param */
|
|
4492
|
-
|
|
4493
|
-
/**
|
|
4494
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4495
|
-
* @param {Object} elem - The element to check.
|
|
4496
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4497
|
-
* @returns {void}
|
|
4498
|
-
*/
|
|
4499
|
-
handleComponentTagRename(elem, tagName) {
|
|
4500
|
-
const tag = tagName.toLowerCase();
|
|
4501
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4502
|
-
|
|
4503
|
-
if (elemTag !== tag) {
|
|
4504
|
-
elem.setAttribute(tag, true);
|
|
4505
|
-
}
|
|
4506
|
-
}
|
|
4507
|
-
|
|
4508
|
-
/**
|
|
4509
|
-
* Validates if an element is a specific Auro component.
|
|
4510
|
-
* @param {Object} elem - The element to validate.
|
|
4511
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
4512
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4513
|
-
*/
|
|
4514
|
-
elementMatch(elem, tagName) {
|
|
4515
|
-
const tag = tagName.toLowerCase();
|
|
4516
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4517
|
-
|
|
4518
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4521
|
-
/**
|
|
4522
|
-
* Gets the text content of a named slot.
|
|
4523
|
-
* @returns {String}
|
|
4524
|
-
* @private
|
|
4525
|
-
*/
|
|
4526
|
-
getSlotText(elem, name) {
|
|
4527
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
4528
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
4529
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
4530
|
-
|
|
4531
|
-
return text || null;
|
|
4532
|
-
}
|
|
4533
|
-
};
|
|
4534
|
-
|
|
4535
4433
|
/**
|
|
4536
4434
|
* Computes display state once per keydown event.
|
|
4537
4435
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5214,7 +5112,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5214
5112
|
}
|
|
5215
5113
|
};
|
|
5216
5114
|
|
|
5217
|
-
var formkitVersion$2 = '
|
|
5115
|
+
var formkitVersion$2 = '202604091433';
|
|
5218
5116
|
|
|
5219
5117
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5220
5118
|
static get properties() {
|
|
@@ -5320,7 +5218,7 @@ let AuroElement$2 = class AuroElement extends i$4 {
|
|
|
5320
5218
|
}
|
|
5321
5219
|
};
|
|
5322
5220
|
|
|
5323
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5221
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5324
5222
|
// See LICENSE in the project root for license information.
|
|
5325
5223
|
|
|
5326
5224
|
|
|
@@ -5425,7 +5323,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5425
5323
|
/**
|
|
5426
5324
|
* @private
|
|
5427
5325
|
*/
|
|
5428
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2
|
|
5326
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
5429
5327
|
|
|
5430
5328
|
/**
|
|
5431
5329
|
* @private
|
|
@@ -5843,7 +5741,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5843
5741
|
*
|
|
5844
5742
|
*/
|
|
5845
5743
|
static register(name = "auro-dropdown") {
|
|
5846
|
-
AuroLibraryRuntimeUtils$2
|
|
5744
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
5847
5745
|
}
|
|
5848
5746
|
|
|
5849
5747
|
/**
|
|
@@ -12978,7 +12876,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12978
12876
|
}
|
|
12979
12877
|
};
|
|
12980
12878
|
|
|
12981
|
-
var formkitVersion$1 = '
|
|
12879
|
+
var formkitVersion$1 = '202604091433';
|
|
12982
12880
|
|
|
12983
12881
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12984
12882
|
// See LICENSE in the project root for license information.
|
|
@@ -14043,7 +13941,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
14043
13941
|
}
|
|
14044
13942
|
}
|
|
14045
13943
|
|
|
14046
|
-
var formkitVersion = '
|
|
13944
|
+
var formkitVersion = '202604091433';
|
|
14047
13945
|
|
|
14048
13946
|
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}`;
|
|
14049
13947
|
|
|
@@ -14383,7 +14281,7 @@ class AuroHelpText extends i$4 {
|
|
|
14383
14281
|
}
|
|
14384
14282
|
}
|
|
14385
14283
|
|
|
14386
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
14284
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
14387
14285
|
// See LICENSE in the project root for license information.
|
|
14388
14286
|
|
|
14389
14287
|
|
|
@@ -14906,7 +14804,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14906
14804
|
* @returns {void}
|
|
14907
14805
|
*/
|
|
14908
14806
|
activateFirstEnabledAvailableOption() {
|
|
14909
|
-
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled);
|
|
14807
|
+
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled && !opt.noMatch);
|
|
14910
14808
|
this.updateActiveOption(firstEnabledOptionIndex);
|
|
14911
14809
|
}
|
|
14912
14810
|
|
|
@@ -14920,7 +14818,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14920
14818
|
|
|
14921
14819
|
// Work backwards through the available options array to find the last enabled option
|
|
14922
14820
|
for (let index = this.availableOptions.length - 1; index >= 0; index -= 1) {
|
|
14923
|
-
if (!this.availableOptions[index].disabled) {
|
|
14821
|
+
if (!this.availableOptions[index].disabled && !this.availableOptions[index].noMatch) {
|
|
14924
14822
|
lastEnabledOptionIndex = index;
|
|
14925
14823
|
break;
|
|
14926
14824
|
}
|
|
@@ -16260,6 +16158,14 @@ class AuroMenuOption extends AuroElement {
|
|
|
16260
16158
|
reflect: true
|
|
16261
16159
|
},
|
|
16262
16160
|
|
|
16161
|
+
/**
|
|
16162
|
+
* When true, marks this option as the "no matching results" placeholder shown by combobox when the user's input does not match any available options. Enables distinct styling and prevents the option from being treated as a selectable match.
|
|
16163
|
+
*/
|
|
16164
|
+
noMatch: {
|
|
16165
|
+
type: Boolean,
|
|
16166
|
+
reflect: true
|
|
16167
|
+
},
|
|
16168
|
+
|
|
16263
16169
|
/**
|
|
16264
16170
|
* Specifies that an option is selected.
|
|
16265
16171
|
*/
|
|
@@ -3,7 +3,7 @@ export namespace comboboxKeyboardStrategy {
|
|
|
3
3
|
function ArrowUp(component: any, evt: any, ctx: any): void;
|
|
4
4
|
function End(component: any, evt: any, ctx: any): void;
|
|
5
5
|
function Enter(component: any, evt: any, ctx: any): void;
|
|
6
|
-
function Escape(component: any,
|
|
6
|
+
function Escape(component: any, evt: any, ctx: any): void;
|
|
7
7
|
function Home(component: any, evt: any, ctx: any): void;
|
|
8
8
|
function Tab(component: any, evt: any, ctx: any): void;
|
|
9
9
|
}
|
|
@@ -1301,10 +1301,19 @@ const comboboxKeyboardStrategy = {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
},
|
|
1303
1303
|
|
|
1304
|
-
Escape(component,
|
|
1305
|
-
if (ctx.isExpanded
|
|
1304
|
+
Escape(component, evt, ctx) {
|
|
1305
|
+
if (!ctx.isExpanded) {
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
|
|
1310
|
+
evt.stopPropagation();
|
|
1311
|
+
|
|
1312
|
+
if (ctx.isModal) {
|
|
1306
1313
|
component.setTriggerInputFocus();
|
|
1307
1314
|
}
|
|
1315
|
+
|
|
1316
|
+
component.hideBib();
|
|
1308
1317
|
},
|
|
1309
1318
|
|
|
1310
1319
|
Home(component, evt, ctx) {
|
|
@@ -1341,7 +1350,7 @@ const comboboxKeyboardStrategy = {
|
|
|
1341
1350
|
|
|
1342
1351
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1343
1352
|
|
|
1344
|
-
let AuroLibraryRuntimeUtils$2
|
|
1353
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
1345
1354
|
|
|
1346
1355
|
/* eslint-disable jsdoc/require-param */
|
|
1347
1356
|
|
|
@@ -3130,7 +3139,6 @@ class AuroFloatingUI {
|
|
|
3130
3139
|
this.focusHandler = null;
|
|
3131
3140
|
this.clickHandler = null;
|
|
3132
3141
|
this.keyDownHandler = null;
|
|
3133
|
-
this.touchHandler = null;
|
|
3134
3142
|
|
|
3135
3143
|
/**
|
|
3136
3144
|
* @private
|
|
@@ -3548,28 +3556,6 @@ class AuroFloatingUI {
|
|
|
3548
3556
|
setTimeout(() => {
|
|
3549
3557
|
window.addEventListener("click", this.clickHandler);
|
|
3550
3558
|
}, 0);
|
|
3551
|
-
|
|
3552
|
-
// iOS Safari does not fire `click` on non-interactive elements, so
|
|
3553
|
-
// tapping an inert backdrop never reaches the click handler above.
|
|
3554
|
-
// Mirror the same outside-tap logic with a passive touchstart listener.
|
|
3555
|
-
this.touchHandler = (evt) => {
|
|
3556
|
-
const element = this.element;
|
|
3557
|
-
if (!element?.bib) {
|
|
3558
|
-
return;
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
// fullscreen (modal) dialog handles its own dismissal
|
|
3562
|
-
if (element.bib.hasAttribute("isfullscreen")) {
|
|
3563
|
-
return;
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
const path = evt.composedPath();
|
|
3567
|
-
if (!path.includes(element.trigger) && !path.includes(element.bib)) {
|
|
3568
|
-
this.hideBib("click");
|
|
3569
|
-
}
|
|
3570
|
-
};
|
|
3571
|
-
|
|
3572
|
-
window.addEventListener("touchstart", this.touchHandler, { passive: true });
|
|
3573
3559
|
}
|
|
3574
3560
|
|
|
3575
3561
|
cleanupHideHandlers() {
|
|
@@ -3585,11 +3571,6 @@ class AuroFloatingUI {
|
|
|
3585
3571
|
this.clickHandler = null;
|
|
3586
3572
|
}
|
|
3587
3573
|
|
|
3588
|
-
if (this.touchHandler) {
|
|
3589
|
-
window.removeEventListener("touchstart", this.touchHandler);
|
|
3590
|
-
this.touchHandler = null;
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
3574
|
if (this.keyDownHandler) {
|
|
3594
3575
|
document.removeEventListener("keydown", this.keyDownHandler);
|
|
3595
3576
|
this.keyDownHandler = null;
|
|
@@ -4382,89 +4363,6 @@ let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4382
4363
|
|
|
4383
4364
|
var iconVersion$2 = '9.1.2';
|
|
4384
4365
|
|
|
4385
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4386
|
-
// See LICENSE in the project root for license information.
|
|
4387
|
-
|
|
4388
|
-
// ---------------------------------------------------------------------
|
|
4389
|
-
|
|
4390
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4391
|
-
|
|
4392
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
4393
|
-
|
|
4394
|
-
/* eslint-disable jsdoc/require-param */
|
|
4395
|
-
|
|
4396
|
-
/**
|
|
4397
|
-
* This will register a new custom element with the browser.
|
|
4398
|
-
* @param {String} name - The name of the custom element.
|
|
4399
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
4400
|
-
* @returns {void}
|
|
4401
|
-
*/
|
|
4402
|
-
registerComponent(name, componentClass) {
|
|
4403
|
-
if (!customElements.get(name)) {
|
|
4404
|
-
customElements.define(name, class extends componentClass {});
|
|
4405
|
-
}
|
|
4406
|
-
}
|
|
4407
|
-
|
|
4408
|
-
/**
|
|
4409
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
4410
|
-
* @returns {void}
|
|
4411
|
-
*/
|
|
4412
|
-
closestElement(
|
|
4413
|
-
selector, // selector like in .closest()
|
|
4414
|
-
base = this, // extra functionality to skip a parent
|
|
4415
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4416
|
-
!el || el === document || el === window
|
|
4417
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
4418
|
-
: found
|
|
4419
|
-
? found // found a selector INside this element
|
|
4420
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4421
|
-
) {
|
|
4422
|
-
return __Closest(base);
|
|
4423
|
-
}
|
|
4424
|
-
/* eslint-enable jsdoc/require-param */
|
|
4425
|
-
|
|
4426
|
-
/**
|
|
4427
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4428
|
-
* @param {Object} elem - The element to check.
|
|
4429
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4430
|
-
* @returns {void}
|
|
4431
|
-
*/
|
|
4432
|
-
handleComponentTagRename(elem, tagName) {
|
|
4433
|
-
const tag = tagName.toLowerCase();
|
|
4434
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4435
|
-
|
|
4436
|
-
if (elemTag !== tag) {
|
|
4437
|
-
elem.setAttribute(tag, true);
|
|
4438
|
-
}
|
|
4439
|
-
}
|
|
4440
|
-
|
|
4441
|
-
/**
|
|
4442
|
-
* Validates if an element is a specific Auro component.
|
|
4443
|
-
* @param {Object} elem - The element to validate.
|
|
4444
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
4445
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4446
|
-
*/
|
|
4447
|
-
elementMatch(elem, tagName) {
|
|
4448
|
-
const tag = tagName.toLowerCase();
|
|
4449
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4450
|
-
|
|
4451
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
4452
|
-
}
|
|
4453
|
-
|
|
4454
|
-
/**
|
|
4455
|
-
* Gets the text content of a named slot.
|
|
4456
|
-
* @returns {String}
|
|
4457
|
-
* @private
|
|
4458
|
-
*/
|
|
4459
|
-
getSlotText(elem, name) {
|
|
4460
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
4461
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
4462
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
4463
|
-
|
|
4464
|
-
return text || null;
|
|
4465
|
-
}
|
|
4466
|
-
};
|
|
4467
|
-
|
|
4468
4366
|
/**
|
|
4469
4367
|
* Computes display state once per keydown event.
|
|
4470
4368
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5147,7 +5045,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
5147
5045
|
}
|
|
5148
5046
|
};
|
|
5149
5047
|
|
|
5150
|
-
var formkitVersion$2 = '
|
|
5048
|
+
var formkitVersion$2 = '202604091433';
|
|
5151
5049
|
|
|
5152
5050
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
5153
5051
|
static get properties() {
|
|
@@ -5253,7 +5151,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
5253
5151
|
}
|
|
5254
5152
|
};
|
|
5255
5153
|
|
|
5256
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5154
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5257
5155
|
// See LICENSE in the project root for license information.
|
|
5258
5156
|
|
|
5259
5157
|
|
|
@@ -5358,7 +5256,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5358
5256
|
/**
|
|
5359
5257
|
* @private
|
|
5360
5258
|
*/
|
|
5361
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2
|
|
5259
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
5362
5260
|
|
|
5363
5261
|
/**
|
|
5364
5262
|
* @private
|
|
@@ -5776,7 +5674,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5776
5674
|
*
|
|
5777
5675
|
*/
|
|
5778
5676
|
static register(name = "auro-dropdown") {
|
|
5779
|
-
AuroLibraryRuntimeUtils$2
|
|
5677
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
5780
5678
|
}
|
|
5781
5679
|
|
|
5782
5680
|
/**
|
|
@@ -12904,7 +12802,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12904
12802
|
}
|
|
12905
12803
|
};
|
|
12906
12804
|
|
|
12907
|
-
var formkitVersion$1 = '
|
|
12805
|
+
var formkitVersion$1 = '202604091433';
|
|
12908
12806
|
|
|
12909
12807
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12910
12808
|
// See LICENSE in the project root for license information.
|
|
@@ -13969,7 +13867,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13969
13867
|
}
|
|
13970
13868
|
}
|
|
13971
13869
|
|
|
13972
|
-
var formkitVersion = '
|
|
13870
|
+
var formkitVersion = '202604091433';
|
|
13973
13871
|
|
|
13974
13872
|
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}`;
|
|
13975
13873
|
|
|
@@ -14309,7 +14207,7 @@ class AuroHelpText extends LitElement {
|
|
|
14309
14207
|
}
|
|
14310
14208
|
}
|
|
14311
14209
|
|
|
14312
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
14210
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
14313
14211
|
// See LICENSE in the project root for license information.
|
|
14314
14212
|
|
|
14315
14213
|
|
|
@@ -14832,7 +14730,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14832
14730
|
* @returns {void}
|
|
14833
14731
|
*/
|
|
14834
14732
|
activateFirstEnabledAvailableOption() {
|
|
14835
|
-
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled);
|
|
14733
|
+
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled && !opt.noMatch);
|
|
14836
14734
|
this.updateActiveOption(firstEnabledOptionIndex);
|
|
14837
14735
|
}
|
|
14838
14736
|
|
|
@@ -14846,7 +14744,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14846
14744
|
|
|
14847
14745
|
// Work backwards through the available options array to find the last enabled option
|
|
14848
14746
|
for (let index = this.availableOptions.length - 1; index >= 0; index -= 1) {
|
|
14849
|
-
if (!this.availableOptions[index].disabled) {
|
|
14747
|
+
if (!this.availableOptions[index].disabled && !this.availableOptions[index].noMatch) {
|
|
14850
14748
|
lastEnabledOptionIndex = index;
|
|
14851
14749
|
break;
|
|
14852
14750
|
}
|