@aurodesignsystem-dev/auro-formkit 0.0.0-pr1430.0 → 0.0.0-pr1430.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 +44 -96
- package/components/combobox/demo/index.min.js +31 -95
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +21 -95
- package/components/combobox/dist/registered.js +21 -95
- 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 -104
- package/components/counter/demo/index.min.js +43 -104
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
- package/components/counter/dist/index.js +43 -104
- package/components/counter/dist/registered.js +43 -104
- 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 -95
- package/components/datepicker/demo/index.min.js +94 -95
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
- package/components/datepicker/dist/index.js +94 -95
- package/components/datepicker/dist/registered.js +94 -95
- 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 -88
- package/components/dropdown/demo/index.min.js +5 -88
- package/components/dropdown/dist/index.js +5 -88
- package/components/dropdown/dist/registered.js +5 -88
- package/components/form/demo/api.min.js +230 -435
- package/components/form/demo/index.min.js +230 -435
- 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 +10 -0
- package/components/menu/demo/index.min.js +10 -0
- package/components/menu/dist/auro-menuoption.d.ts +9 -0
- package/components/menu/dist/index.js +10 -0
- package/components/menu/dist/registered.js +10 -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 +45 -101
- package/components/select/demo/index.min.js +32 -101
- package/components/select/dist/index.js +18 -97
- package/components/select/dist/registered.js +18 -97
- package/custom-elements.json +48 -3
- package/package.json +4 -3
|
@@ -120,7 +120,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
120
120
|
|
|
121
121
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
122
122
|
|
|
123
|
-
let AuroLibraryRuntimeUtils$
|
|
123
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
124
124
|
|
|
125
125
|
/* eslint-disable jsdoc/require-param */
|
|
126
126
|
|
|
@@ -196,7 +196,7 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
199
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
200
200
|
// See LICENSE in the project root for license information.
|
|
201
201
|
|
|
202
202
|
|
|
@@ -226,7 +226,7 @@ class AuroCounterButton extends T$1 {
|
|
|
226
226
|
*
|
|
227
227
|
*/
|
|
228
228
|
static register(name = "auro-counter-button") {
|
|
229
|
-
AuroLibraryRuntimeUtils$
|
|
229
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterButton);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
@@ -718,7 +718,7 @@ const {
|
|
|
718
718
|
class AuroFormValidation {
|
|
719
719
|
|
|
720
720
|
constructor() {
|
|
721
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
721
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
/**
|
|
@@ -1306,7 +1306,7 @@ var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
1306
1306
|
|
|
1307
1307
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1308
1308
|
|
|
1309
|
-
let AuroLibraryRuntimeUtils$
|
|
1309
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
1310
1310
|
|
|
1311
1311
|
/* eslint-disable jsdoc/require-param */
|
|
1312
1312
|
|
|
@@ -1399,7 +1399,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1399
1399
|
this.onDark = false;
|
|
1400
1400
|
this.hasTextContent = false;
|
|
1401
1401
|
|
|
1402
|
-
AuroLibraryRuntimeUtils$
|
|
1402
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
static get styles() {
|
|
@@ -1465,7 +1465,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1465
1465
|
*
|
|
1466
1466
|
*/
|
|
1467
1467
|
static register(name = "auro-helptext") {
|
|
1468
|
-
AuroLibraryRuntimeUtils$
|
|
1468
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
1471
|
updated() {
|
|
@@ -1521,9 +1521,9 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
};
|
|
1523
1523
|
|
|
1524
|
-
var formkitVersion$1 = '
|
|
1524
|
+
var formkitVersion$1 = '202604091756';
|
|
1525
1525
|
|
|
1526
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1526
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1527
1527
|
// See LICENSE in the project root for license information.
|
|
1528
1528
|
|
|
1529
1529
|
const keyboardStrategy = {
|
|
@@ -1612,7 +1612,7 @@ class AuroCounter extends i$2 {
|
|
|
1612
1612
|
/**
|
|
1613
1613
|
* @private
|
|
1614
1614
|
*/
|
|
1615
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1615
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
1616
1616
|
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
@@ -1754,7 +1754,7 @@ class AuroCounter extends i$2 {
|
|
|
1754
1754
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1755
1755
|
*/
|
|
1756
1756
|
static register(name = "auro-counter") {
|
|
1757
|
-
AuroLibraryRuntimeUtils$
|
|
1757
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounter);
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
1760
|
static get styles() {
|
|
@@ -2010,7 +2010,7 @@ var shapeSizeCss$1 = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.
|
|
|
2010
2010
|
|
|
2011
2011
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2012
2012
|
|
|
2013
|
-
let AuroLibraryRuntimeUtils$
|
|
2013
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2014
2014
|
|
|
2015
2015
|
/* eslint-disable jsdoc/require-param */
|
|
2016
2016
|
|
|
@@ -5051,89 +5051,6 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
5051
5051
|
|
|
5052
5052
|
var iconVersion$1 = '9.1.2';
|
|
5053
5053
|
|
|
5054
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5055
|
-
// See LICENSE in the project root for license information.
|
|
5056
|
-
|
|
5057
|
-
// ---------------------------------------------------------------------
|
|
5058
|
-
|
|
5059
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5060
|
-
|
|
5061
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5062
|
-
|
|
5063
|
-
/* eslint-disable jsdoc/require-param */
|
|
5064
|
-
|
|
5065
|
-
/**
|
|
5066
|
-
* This will register a new custom element with the browser.
|
|
5067
|
-
* @param {String} name - The name of the custom element.
|
|
5068
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
5069
|
-
* @returns {void}
|
|
5070
|
-
*/
|
|
5071
|
-
registerComponent(name, componentClass) {
|
|
5072
|
-
if (!customElements.get(name)) {
|
|
5073
|
-
customElements.define(name, class extends componentClass {});
|
|
5074
|
-
}
|
|
5075
|
-
}
|
|
5076
|
-
|
|
5077
|
-
/**
|
|
5078
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
5079
|
-
* @returns {void}
|
|
5080
|
-
*/
|
|
5081
|
-
closestElement(
|
|
5082
|
-
selector, // selector like in .closest()
|
|
5083
|
-
base = this, // extra functionality to skip a parent
|
|
5084
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5085
|
-
!el || el === document || el === window
|
|
5086
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
5087
|
-
: found
|
|
5088
|
-
? found // found a selector INside this element
|
|
5089
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5090
|
-
) {
|
|
5091
|
-
return __Closest(base);
|
|
5092
|
-
}
|
|
5093
|
-
/* eslint-enable jsdoc/require-param */
|
|
5094
|
-
|
|
5095
|
-
/**
|
|
5096
|
-
* 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.
|
|
5097
|
-
* @param {Object} elem - The element to check.
|
|
5098
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5099
|
-
* @returns {void}
|
|
5100
|
-
*/
|
|
5101
|
-
handleComponentTagRename(elem, tagName) {
|
|
5102
|
-
const tag = tagName.toLowerCase();
|
|
5103
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
5104
|
-
|
|
5105
|
-
if (elemTag !== tag) {
|
|
5106
|
-
elem.setAttribute(tag, true);
|
|
5107
|
-
}
|
|
5108
|
-
}
|
|
5109
|
-
|
|
5110
|
-
/**
|
|
5111
|
-
* Validates if an element is a specific Auro component.
|
|
5112
|
-
* @param {Object} elem - The element to validate.
|
|
5113
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
5114
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
5115
|
-
*/
|
|
5116
|
-
elementMatch(elem, tagName) {
|
|
5117
|
-
const tag = tagName.toLowerCase();
|
|
5118
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
5119
|
-
|
|
5120
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
5121
|
-
}
|
|
5122
|
-
|
|
5123
|
-
/**
|
|
5124
|
-
* Gets the text content of a named slot.
|
|
5125
|
-
* @returns {String}
|
|
5126
|
-
* @private
|
|
5127
|
-
*/
|
|
5128
|
-
getSlotText(elem, name) {
|
|
5129
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
5130
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
5131
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
5132
|
-
|
|
5133
|
-
return text || null;
|
|
5134
|
-
}
|
|
5135
|
-
};
|
|
5136
|
-
|
|
5137
5054
|
/**
|
|
5138
5055
|
* Computes display state once per keydown event.
|
|
5139
5056
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5601,7 +5518,7 @@ var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-textico
|
|
|
5601
5518
|
|
|
5602
5519
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5603
5520
|
|
|
5604
|
-
let AuroLibraryRuntimeUtils$
|
|
5521
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
5605
5522
|
|
|
5606
5523
|
/* eslint-disable jsdoc/require-param */
|
|
5607
5524
|
|
|
@@ -5694,7 +5611,7 @@ class AuroHelpText extends i$2 {
|
|
|
5694
5611
|
this.onDark = false;
|
|
5695
5612
|
this.hasTextContent = false;
|
|
5696
5613
|
|
|
5697
|
-
AuroLibraryRuntimeUtils$
|
|
5614
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
5698
5615
|
}
|
|
5699
5616
|
|
|
5700
5617
|
static get styles() {
|
|
@@ -5760,7 +5677,7 @@ class AuroHelpText extends i$2 {
|
|
|
5760
5677
|
*
|
|
5761
5678
|
*/
|
|
5762
5679
|
static register(name = "auro-helptext") {
|
|
5763
|
-
AuroLibraryRuntimeUtils$
|
|
5680
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
5764
5681
|
}
|
|
5765
5682
|
|
|
5766
5683
|
updated() {
|
|
@@ -5816,7 +5733,7 @@ class AuroHelpText extends i$2 {
|
|
|
5816
5733
|
}
|
|
5817
5734
|
}
|
|
5818
5735
|
|
|
5819
|
-
var formkitVersion = '
|
|
5736
|
+
var formkitVersion = '202604091756';
|
|
5820
5737
|
|
|
5821
5738
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5822
5739
|
static get properties() {
|
|
@@ -5922,7 +5839,7 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5922
5839
|
}
|
|
5923
5840
|
};
|
|
5924
5841
|
|
|
5925
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5842
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5926
5843
|
// See LICENSE in the project root for license information.
|
|
5927
5844
|
|
|
5928
5845
|
|
|
@@ -6027,7 +5944,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6027
5944
|
/**
|
|
6028
5945
|
* @private
|
|
6029
5946
|
*/
|
|
6030
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5947
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6031
5948
|
|
|
6032
5949
|
/**
|
|
6033
5950
|
* @private
|
|
@@ -6445,7 +6362,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6445
6362
|
*
|
|
6446
6363
|
*/
|
|
6447
6364
|
static register(name = "auro-dropdown") {
|
|
6448
|
-
AuroLibraryRuntimeUtils$
|
|
6365
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
6449
6366
|
}
|
|
6450
6367
|
|
|
6451
6368
|
/**
|
|
@@ -7371,7 +7288,7 @@ class AuroCounterWrapper extends i$2 {
|
|
|
7371
7288
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
7372
7289
|
*/
|
|
7373
7290
|
static register(name = "auro-counter-wrapper") {
|
|
7374
|
-
AuroLibraryRuntimeUtils$
|
|
7291
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterWrapper);
|
|
7375
7292
|
}
|
|
7376
7293
|
|
|
7377
7294
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7490,6 +7407,24 @@ class AuroElement extends i$2 {
|
|
|
7490
7407
|
}
|
|
7491
7408
|
}
|
|
7492
7409
|
|
|
7410
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
7411
|
+
// See LICENSE in the project root for license information.
|
|
7412
|
+
|
|
7413
|
+
const counterGroupKeyboardStrategy = {
|
|
7414
|
+
Escape(component, evt) {
|
|
7415
|
+
if (!component.dropdown || !component.dropdown.isPopoverVisible) {
|
|
7416
|
+
return;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups.
|
|
7420
|
+
// Because stopPropagation prevents the document-level floatingUI keydown handler from
|
|
7421
|
+
// seeing this event, we must also close the dropdown explicitly.
|
|
7422
|
+
evt.stopPropagation();
|
|
7423
|
+
|
|
7424
|
+
component.dropdown.hide();
|
|
7425
|
+
},
|
|
7426
|
+
};
|
|
7427
|
+
|
|
7493
7428
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions, max-lines, no-underscore-dangle, arrow-parens, no-confusing-arrow, curly, dot-location, no-inline-comments, line-comment-position,
|
|
7494
7429
|
*/
|
|
7495
7430
|
|
|
@@ -8090,6 +8025,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8090
8025
|
super.firstUpdated();
|
|
8091
8026
|
this.updateValue();
|
|
8092
8027
|
this.updateValueText();
|
|
8028
|
+
|
|
8029
|
+
if (this.isDropdown) {
|
|
8030
|
+
applyKeyboardStrategy$1(this, counterGroupKeyboardStrategy);
|
|
8031
|
+
}
|
|
8093
8032
|
}
|
|
8094
8033
|
|
|
8095
8034
|
/**
|
|
@@ -8099,7 +8038,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8099
8038
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
8100
8039
|
*/
|
|
8101
8040
|
static register(name = "auro-counter-group") {
|
|
8102
|
-
AuroLibraryRuntimeUtils$
|
|
8041
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterGroup);
|
|
8103
8042
|
}
|
|
8104
8043
|
|
|
8105
8044
|
/**
|
|
@@ -8327,6 +8266,24 @@ function eventCounterExample() {
|
|
|
8327
8266
|
});
|
|
8328
8267
|
}
|
|
8329
8268
|
|
|
8269
|
+
function inDialogExample() {
|
|
8270
|
+
document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
|
|
8271
|
+
const dialog = document.querySelector("#counter-dialog");
|
|
8272
|
+
dialog.open = true;
|
|
8273
|
+
});
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8276
|
+
function inDrawerExample() {
|
|
8277
|
+
document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
|
|
8278
|
+
const drawer = document.querySelector("#counter-drawer");
|
|
8279
|
+
if (drawer.hasAttribute('open')) {
|
|
8280
|
+
drawer.removeAttribute('open');
|
|
8281
|
+
} else {
|
|
8282
|
+
drawer.setAttribute('open', true);
|
|
8283
|
+
}
|
|
8284
|
+
});
|
|
8285
|
+
}
|
|
8286
|
+
|
|
8330
8287
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
8331
8288
|
|
|
8332
8289
|
function initExamples(initialCount = 0) {
|
|
@@ -8334,6 +8291,8 @@ function initExamples(initialCount = 0) {
|
|
|
8334
8291
|
// javascript example function calls to be added here upon creation to test examples
|
|
8335
8292
|
// dropdownCounterExample();
|
|
8336
8293
|
eventCounterExample();
|
|
8294
|
+
inDialogExample();
|
|
8295
|
+
inDrawerExample();
|
|
8337
8296
|
|
|
8338
8297
|
} catch (err) {
|
|
8339
8298
|
if (initialCount <= 20) {
|
|
@@ -120,7 +120,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
120
120
|
|
|
121
121
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
122
122
|
|
|
123
|
-
let AuroLibraryRuntimeUtils$
|
|
123
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
124
124
|
|
|
125
125
|
/* eslint-disable jsdoc/require-param */
|
|
126
126
|
|
|
@@ -196,7 +196,7 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
199
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
200
200
|
// See LICENSE in the project root for license information.
|
|
201
201
|
|
|
202
202
|
|
|
@@ -226,7 +226,7 @@ class AuroCounterButton extends T$1 {
|
|
|
226
226
|
*
|
|
227
227
|
*/
|
|
228
228
|
static register(name = "auro-counter-button") {
|
|
229
|
-
AuroLibraryRuntimeUtils$
|
|
229
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterButton);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
@@ -718,7 +718,7 @@ const {
|
|
|
718
718
|
class AuroFormValidation {
|
|
719
719
|
|
|
720
720
|
constructor() {
|
|
721
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
721
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
/**
|
|
@@ -1306,7 +1306,7 @@ var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
1306
1306
|
|
|
1307
1307
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1308
1308
|
|
|
1309
|
-
let AuroLibraryRuntimeUtils$
|
|
1309
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
1310
1310
|
|
|
1311
1311
|
/* eslint-disable jsdoc/require-param */
|
|
1312
1312
|
|
|
@@ -1399,7 +1399,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1399
1399
|
this.onDark = false;
|
|
1400
1400
|
this.hasTextContent = false;
|
|
1401
1401
|
|
|
1402
|
-
AuroLibraryRuntimeUtils$
|
|
1402
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
static get styles() {
|
|
@@ -1465,7 +1465,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1465
1465
|
*
|
|
1466
1466
|
*/
|
|
1467
1467
|
static register(name = "auro-helptext") {
|
|
1468
|
-
AuroLibraryRuntimeUtils$
|
|
1468
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
1469
1469
|
}
|
|
1470
1470
|
|
|
1471
1471
|
updated() {
|
|
@@ -1521,9 +1521,9 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
};
|
|
1523
1523
|
|
|
1524
|
-
var formkitVersion$1 = '
|
|
1524
|
+
var formkitVersion$1 = '202604091756';
|
|
1525
1525
|
|
|
1526
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1526
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1527
1527
|
// See LICENSE in the project root for license information.
|
|
1528
1528
|
|
|
1529
1529
|
const keyboardStrategy = {
|
|
@@ -1612,7 +1612,7 @@ class AuroCounter extends i$2 {
|
|
|
1612
1612
|
/**
|
|
1613
1613
|
* @private
|
|
1614
1614
|
*/
|
|
1615
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1615
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
1616
1616
|
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
@@ -1754,7 +1754,7 @@ class AuroCounter extends i$2 {
|
|
|
1754
1754
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1755
1755
|
*/
|
|
1756
1756
|
static register(name = "auro-counter") {
|
|
1757
|
-
AuroLibraryRuntimeUtils$
|
|
1757
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounter);
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
1760
|
static get styles() {
|
|
@@ -2010,7 +2010,7 @@ var shapeSizeCss$1 = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.
|
|
|
2010
2010
|
|
|
2011
2011
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2012
2012
|
|
|
2013
|
-
let AuroLibraryRuntimeUtils$
|
|
2013
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2014
2014
|
|
|
2015
2015
|
/* eslint-disable jsdoc/require-param */
|
|
2016
2016
|
|
|
@@ -5051,89 +5051,6 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
5051
5051
|
|
|
5052
5052
|
var iconVersion$1 = '9.1.2';
|
|
5053
5053
|
|
|
5054
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5055
|
-
// See LICENSE in the project root for license information.
|
|
5056
|
-
|
|
5057
|
-
// ---------------------------------------------------------------------
|
|
5058
|
-
|
|
5059
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5060
|
-
|
|
5061
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5062
|
-
|
|
5063
|
-
/* eslint-disable jsdoc/require-param */
|
|
5064
|
-
|
|
5065
|
-
/**
|
|
5066
|
-
* This will register a new custom element with the browser.
|
|
5067
|
-
* @param {String} name - The name of the custom element.
|
|
5068
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
5069
|
-
* @returns {void}
|
|
5070
|
-
*/
|
|
5071
|
-
registerComponent(name, componentClass) {
|
|
5072
|
-
if (!customElements.get(name)) {
|
|
5073
|
-
customElements.define(name, class extends componentClass {});
|
|
5074
|
-
}
|
|
5075
|
-
}
|
|
5076
|
-
|
|
5077
|
-
/**
|
|
5078
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
5079
|
-
* @returns {void}
|
|
5080
|
-
*/
|
|
5081
|
-
closestElement(
|
|
5082
|
-
selector, // selector like in .closest()
|
|
5083
|
-
base = this, // extra functionality to skip a parent
|
|
5084
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5085
|
-
!el || el === document || el === window
|
|
5086
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
5087
|
-
: found
|
|
5088
|
-
? found // found a selector INside this element
|
|
5089
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5090
|
-
) {
|
|
5091
|
-
return __Closest(base);
|
|
5092
|
-
}
|
|
5093
|
-
/* eslint-enable jsdoc/require-param */
|
|
5094
|
-
|
|
5095
|
-
/**
|
|
5096
|
-
* 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.
|
|
5097
|
-
* @param {Object} elem - The element to check.
|
|
5098
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5099
|
-
* @returns {void}
|
|
5100
|
-
*/
|
|
5101
|
-
handleComponentTagRename(elem, tagName) {
|
|
5102
|
-
const tag = tagName.toLowerCase();
|
|
5103
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
5104
|
-
|
|
5105
|
-
if (elemTag !== tag) {
|
|
5106
|
-
elem.setAttribute(tag, true);
|
|
5107
|
-
}
|
|
5108
|
-
}
|
|
5109
|
-
|
|
5110
|
-
/**
|
|
5111
|
-
* Validates if an element is a specific Auro component.
|
|
5112
|
-
* @param {Object} elem - The element to validate.
|
|
5113
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
5114
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
5115
|
-
*/
|
|
5116
|
-
elementMatch(elem, tagName) {
|
|
5117
|
-
const tag = tagName.toLowerCase();
|
|
5118
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
5119
|
-
|
|
5120
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
5121
|
-
}
|
|
5122
|
-
|
|
5123
|
-
/**
|
|
5124
|
-
* Gets the text content of a named slot.
|
|
5125
|
-
* @returns {String}
|
|
5126
|
-
* @private
|
|
5127
|
-
*/
|
|
5128
|
-
getSlotText(elem, name) {
|
|
5129
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
5130
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
5131
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
5132
|
-
|
|
5133
|
-
return text || null;
|
|
5134
|
-
}
|
|
5135
|
-
};
|
|
5136
|
-
|
|
5137
5054
|
/**
|
|
5138
5055
|
* Computes display state once per keydown event.
|
|
5139
5056
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5601,7 +5518,7 @@ var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-textico
|
|
|
5601
5518
|
|
|
5602
5519
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5603
5520
|
|
|
5604
|
-
let AuroLibraryRuntimeUtils$
|
|
5521
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
5605
5522
|
|
|
5606
5523
|
/* eslint-disable jsdoc/require-param */
|
|
5607
5524
|
|
|
@@ -5694,7 +5611,7 @@ class AuroHelpText extends i$2 {
|
|
|
5694
5611
|
this.onDark = false;
|
|
5695
5612
|
this.hasTextContent = false;
|
|
5696
5613
|
|
|
5697
|
-
AuroLibraryRuntimeUtils$
|
|
5614
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
5698
5615
|
}
|
|
5699
5616
|
|
|
5700
5617
|
static get styles() {
|
|
@@ -5760,7 +5677,7 @@ class AuroHelpText extends i$2 {
|
|
|
5760
5677
|
*
|
|
5761
5678
|
*/
|
|
5762
5679
|
static register(name = "auro-helptext") {
|
|
5763
|
-
AuroLibraryRuntimeUtils$
|
|
5680
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
5764
5681
|
}
|
|
5765
5682
|
|
|
5766
5683
|
updated() {
|
|
@@ -5816,7 +5733,7 @@ class AuroHelpText extends i$2 {
|
|
|
5816
5733
|
}
|
|
5817
5734
|
}
|
|
5818
5735
|
|
|
5819
|
-
var formkitVersion = '
|
|
5736
|
+
var formkitVersion = '202604091756';
|
|
5820
5737
|
|
|
5821
5738
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5822
5739
|
static get properties() {
|
|
@@ -5922,7 +5839,7 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5922
5839
|
}
|
|
5923
5840
|
};
|
|
5924
5841
|
|
|
5925
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5842
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5926
5843
|
// See LICENSE in the project root for license information.
|
|
5927
5844
|
|
|
5928
5845
|
|
|
@@ -6027,7 +5944,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6027
5944
|
/**
|
|
6028
5945
|
* @private
|
|
6029
5946
|
*/
|
|
6030
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5947
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6031
5948
|
|
|
6032
5949
|
/**
|
|
6033
5950
|
* @private
|
|
@@ -6445,7 +6362,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6445
6362
|
*
|
|
6446
6363
|
*/
|
|
6447
6364
|
static register(name = "auro-dropdown") {
|
|
6448
|
-
AuroLibraryRuntimeUtils$
|
|
6365
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
6449
6366
|
}
|
|
6450
6367
|
|
|
6451
6368
|
/**
|
|
@@ -7371,7 +7288,7 @@ class AuroCounterWrapper extends i$2 {
|
|
|
7371
7288
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
7372
7289
|
*/
|
|
7373
7290
|
static register(name = "auro-counter-wrapper") {
|
|
7374
|
-
AuroLibraryRuntimeUtils$
|
|
7291
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterWrapper);
|
|
7375
7292
|
}
|
|
7376
7293
|
|
|
7377
7294
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7490,6 +7407,24 @@ class AuroElement extends i$2 {
|
|
|
7490
7407
|
}
|
|
7491
7408
|
}
|
|
7492
7409
|
|
|
7410
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
7411
|
+
// See LICENSE in the project root for license information.
|
|
7412
|
+
|
|
7413
|
+
const counterGroupKeyboardStrategy = {
|
|
7414
|
+
Escape(component, evt) {
|
|
7415
|
+
if (!component.dropdown || !component.dropdown.isPopoverVisible) {
|
|
7416
|
+
return;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups.
|
|
7420
|
+
// Because stopPropagation prevents the document-level floatingUI keydown handler from
|
|
7421
|
+
// seeing this event, we must also close the dropdown explicitly.
|
|
7422
|
+
evt.stopPropagation();
|
|
7423
|
+
|
|
7424
|
+
component.dropdown.hide();
|
|
7425
|
+
},
|
|
7426
|
+
};
|
|
7427
|
+
|
|
7493
7428
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions, max-lines, no-underscore-dangle, arrow-parens, no-confusing-arrow, curly, dot-location, no-inline-comments, line-comment-position,
|
|
7494
7429
|
*/
|
|
7495
7430
|
|
|
@@ -8090,6 +8025,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8090
8025
|
super.firstUpdated();
|
|
8091
8026
|
this.updateValue();
|
|
8092
8027
|
this.updateValueText();
|
|
8028
|
+
|
|
8029
|
+
if (this.isDropdown) {
|
|
8030
|
+
applyKeyboardStrategy$1(this, counterGroupKeyboardStrategy);
|
|
8031
|
+
}
|
|
8093
8032
|
}
|
|
8094
8033
|
|
|
8095
8034
|
/**
|
|
@@ -8099,7 +8038,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8099
8038
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
8100
8039
|
*/
|
|
8101
8040
|
static register(name = "auro-counter-group") {
|
|
8102
|
-
AuroLibraryRuntimeUtils$
|
|
8041
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroCounterGroup);
|
|
8103
8042
|
}
|
|
8104
8043
|
|
|
8105
8044
|
/**
|