@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.12 → 0.0.0-pr624.14
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/bibtemplate/dist/index.js +79 -9
- package/components/bibtemplate/dist/registered.js +79 -9
- package/components/checkbox/demo/api.md +6 -7
- 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 +291 -41
- package/components/combobox/demo/index.min.js +291 -41
- package/components/combobox/dist/index.js +286 -36
- package/components/combobox/dist/registered.js +286 -36
- package/components/counter/demo/api.min.js +271 -21
- package/components/counter/demo/index.min.js +271 -21
- package/components/counter/dist/index.js +271 -21
- package/components/counter/dist/registered.js +271 -21
- package/components/datepicker/demo/api.md +13 -14
- package/components/datepicker/demo/api.min.js +560 -60
- package/components/datepicker/demo/index.min.js +560 -60
- package/components/datepicker/dist/index.js +560 -60
- package/components/datepicker/dist/registered.js +560 -60
- package/components/dropdown/demo/api.md +2 -2
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +194 -14
- package/components/input/demo/index.min.js +194 -14
- package/components/input/dist/index.js +194 -14
- package/components/input/dist/registered.js +194 -14
- package/components/menu/demo/api.md +5 -5
- package/components/radio/demo/api.md +2 -2
- 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 +91 -21
- package/components/select/demo/index.min.js +91 -21
- package/components/select/dist/index.js +87 -17
- package/components/select/dist/registered.js +87 -17
- package/package.json +3 -1
|
@@ -60,7 +60,7 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{cons
|
|
|
60
60
|
// See LICENSE in the project root for license information.
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
let AuroDependencyVersioning$
|
|
63
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -103,7 +103,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
103
103
|
|
|
104
104
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
105
105
|
|
|
106
|
-
let AuroLibraryRuntimeUtils$
|
|
106
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
107
107
|
|
|
108
108
|
/* eslint-disable jsdoc/require-param */
|
|
109
109
|
|
|
@@ -172,6 +172,76 @@ var colorCss$8 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.aur
|
|
|
172
172
|
|
|
173
173
|
var tokensCss$6 = i$5`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
174
174
|
|
|
175
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
176
|
+
// See LICENSE in the project root for license information.
|
|
177
|
+
|
|
178
|
+
// ---------------------------------------------------------------------
|
|
179
|
+
|
|
180
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
181
|
+
|
|
182
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
183
|
+
|
|
184
|
+
/* eslint-disable jsdoc/require-param */
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* This will register a new custom element with the browser.
|
|
188
|
+
* @param {String} name - The name of the custom element.
|
|
189
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
190
|
+
* @returns {void}
|
|
191
|
+
*/
|
|
192
|
+
registerComponent(name, componentClass) {
|
|
193
|
+
if (!customElements.get(name)) {
|
|
194
|
+
customElements.define(name, class extends componentClass {});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
200
|
+
* @returns {void}
|
|
201
|
+
*/
|
|
202
|
+
closestElement(
|
|
203
|
+
selector, // selector like in .closest()
|
|
204
|
+
base = this, // extra functionality to skip a parent
|
|
205
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
206
|
+
!el || el === document || el === window
|
|
207
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
208
|
+
: found
|
|
209
|
+
? found // found a selector INside this element
|
|
210
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
211
|
+
) {
|
|
212
|
+
return __Closest(base);
|
|
213
|
+
}
|
|
214
|
+
/* eslint-enable jsdoc/require-param */
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* 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.
|
|
218
|
+
* @param {Object} elem - The element to check.
|
|
219
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
220
|
+
* @returns {void}
|
|
221
|
+
*/
|
|
222
|
+
handleComponentTagRename(elem, tagName) {
|
|
223
|
+
const tag = tagName.toLowerCase();
|
|
224
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
225
|
+
|
|
226
|
+
if (elemTag !== tag) {
|
|
227
|
+
elem.setAttribute(tag, true);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Validates if an element is a specific Auro component.
|
|
233
|
+
* @param {Object} elem - The element to validate.
|
|
234
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
235
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
236
|
+
*/
|
|
237
|
+
elementMatch(elem, tagName) {
|
|
238
|
+
const tag = tagName.toLowerCase();
|
|
239
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
240
|
+
|
|
241
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
175
245
|
var styleCss$8 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
176
246
|
|
|
177
247
|
var colorCss$7 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
@@ -204,7 +274,7 @@ class AuroLoader extends i$2 {
|
|
|
204
274
|
/**
|
|
205
275
|
* @private
|
|
206
276
|
*/
|
|
207
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
277
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
208
278
|
|
|
209
279
|
this.orbit = false;
|
|
210
280
|
this.ringworm = false;
|
|
@@ -267,7 +337,7 @@ class AuroLoader extends i$2 {
|
|
|
267
337
|
*
|
|
268
338
|
*/
|
|
269
339
|
static register(name = "auro-loader") {
|
|
270
|
-
AuroLibraryRuntimeUtils$
|
|
340
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroLoader);
|
|
271
341
|
}
|
|
272
342
|
|
|
273
343
|
firstUpdated() {
|
|
@@ -373,7 +443,7 @@ class AuroButton extends i$2 {
|
|
|
373
443
|
/**
|
|
374
444
|
* Generate unique names for dependency components.
|
|
375
445
|
*/
|
|
376
|
-
const versioning = new AuroDependencyVersioning$
|
|
446
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
377
447
|
|
|
378
448
|
/**
|
|
379
449
|
* @private
|
|
@@ -571,7 +641,7 @@ class AuroButton extends i$2 {
|
|
|
571
641
|
*
|
|
572
642
|
*/
|
|
573
643
|
static register(name = "auro-button") {
|
|
574
|
-
AuroLibraryRuntimeUtils$
|
|
644
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroButton);
|
|
575
645
|
}
|
|
576
646
|
|
|
577
647
|
/**
|
|
@@ -661,6 +731,76 @@ class AuroButton extends i$2 {
|
|
|
661
731
|
}
|
|
662
732
|
}
|
|
663
733
|
|
|
734
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
735
|
+
// See LICENSE in the project root for license information.
|
|
736
|
+
|
|
737
|
+
// ---------------------------------------------------------------------
|
|
738
|
+
|
|
739
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
740
|
+
|
|
741
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
742
|
+
|
|
743
|
+
/* eslint-disable jsdoc/require-param */
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* This will register a new custom element with the browser.
|
|
747
|
+
* @param {String} name - The name of the custom element.
|
|
748
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
749
|
+
* @returns {void}
|
|
750
|
+
*/
|
|
751
|
+
registerComponent(name, componentClass) {
|
|
752
|
+
if (!customElements.get(name)) {
|
|
753
|
+
customElements.define(name, class extends componentClass {});
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
759
|
+
* @returns {void}
|
|
760
|
+
*/
|
|
761
|
+
closestElement(
|
|
762
|
+
selector, // selector like in .closest()
|
|
763
|
+
base = this, // extra functionality to skip a parent
|
|
764
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
765
|
+
!el || el === document || el === window
|
|
766
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
767
|
+
: found
|
|
768
|
+
? found // found a selector INside this element
|
|
769
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
770
|
+
) {
|
|
771
|
+
return __Closest(base);
|
|
772
|
+
}
|
|
773
|
+
/* eslint-enable jsdoc/require-param */
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* 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.
|
|
777
|
+
* @param {Object} elem - The element to check.
|
|
778
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
779
|
+
* @returns {void}
|
|
780
|
+
*/
|
|
781
|
+
handleComponentTagRename(elem, tagName) {
|
|
782
|
+
const tag = tagName.toLowerCase();
|
|
783
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
784
|
+
|
|
785
|
+
if (elemTag !== tag) {
|
|
786
|
+
elem.setAttribute(tag, true);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Validates if an element is a specific Auro component.
|
|
792
|
+
* @param {Object} elem - The element to validate.
|
|
793
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
794
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
795
|
+
*/
|
|
796
|
+
elementMatch(elem, tagName) {
|
|
797
|
+
const tag = tagName.toLowerCase();
|
|
798
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
799
|
+
|
|
800
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
|
|
664
804
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
665
805
|
// See LICENSE in the project root for license information.
|
|
666
806
|
|
|
@@ -695,6 +835,46 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
695
835
|
customElements.define("auro-counter-button", AuroCounterButton);
|
|
696
836
|
}
|
|
697
837
|
|
|
838
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
839
|
+
// See LICENSE in the project root for license information.
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* Generates a unique string to be used for child auro element naming.
|
|
846
|
+
* @private
|
|
847
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
848
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
849
|
+
* @returns {string} - Unique string to be used for naming.
|
|
850
|
+
*/
|
|
851
|
+
generateElementName(baseName, version) {
|
|
852
|
+
let result = baseName;
|
|
853
|
+
|
|
854
|
+
result += '-';
|
|
855
|
+
result += version.replace(/[.]/g, '_');
|
|
856
|
+
|
|
857
|
+
return result;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Generates a unique string to be used for child auro element naming.
|
|
862
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
863
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
864
|
+
* @returns {string} - Unique string to be used for naming.
|
|
865
|
+
*/
|
|
866
|
+
generateTag(baseName, version, tagClass) {
|
|
867
|
+
const elementName = this.generateElementName(baseName, version);
|
|
868
|
+
const tag = i$1`${s(elementName)}`;
|
|
869
|
+
|
|
870
|
+
if (!customElements.get(elementName)) {
|
|
871
|
+
customElements.define(elementName, class extends tagClass {});
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
return tag;
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
|
|
698
878
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
699
879
|
// See LICENSE in the project root for license information.
|
|
700
880
|
|
|
@@ -1892,7 +2072,7 @@ var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width
|
|
|
1892
2072
|
|
|
1893
2073
|
var colorCss$5 = i$5`.label{color:var(--ds-auro-counter-label-text-color)}[name=description]::slotted(*){color:var(--ds-auro-counter-description-text-color)}.controlIcon{color:var(--ds-auro-counter-icon-color)}.quantityWrapper{background-color:var(--ds-auro-counter-control-background-color);color:var(--ds-auro-counter-quantity-text-color)}:host::part(counterControl):focus-visible{outline-color:var(--ds-auro-counter-control-border-color)}[disabled],:host([disabled]){--ds-auro-counter-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}[onDark],:host([onDark]){--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}[onDark][disabled],:host([onDark][disabled]){--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-counter-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1894
2074
|
|
|
1895
|
-
var styleCss$6 = i$5`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:
|
|
2075
|
+
var styleCss$6 = i$5`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px;text-align:center}:host{position:relative}:host::part(counterControl){display:flex;border-radius:var(--ds-size-500, 2.5rem);line-height:0;touch-action:manipulation}:host::part(counterControl):focus-visible{outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem)}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1896
2076
|
|
|
1897
2077
|
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1898
2078
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -2236,7 +2416,7 @@ var styleCss$5 = i$5`:host{position:relative;display:block}[slot=trigger],::slot
|
|
|
2236
2416
|
|
|
2237
2417
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2238
2418
|
|
|
2239
|
-
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
2419
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
2240
2420
|
|
|
2241
2421
|
/* eslint-disable jsdoc/require-param */
|
|
2242
2422
|
|
|
@@ -4933,7 +5113,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
4933
5113
|
*/
|
|
4934
5114
|
this._mobileBreakpointValue = undefined;
|
|
4935
5115
|
|
|
4936
|
-
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
5116
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4937
5117
|
}
|
|
4938
5118
|
|
|
4939
5119
|
static get styles() {
|
|
@@ -5087,7 +5267,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direc
|
|
|
5087
5267
|
|
|
5088
5268
|
var colorCss$4 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
5089
5269
|
|
|
5090
|
-
var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:
|
|
5270
|
+
var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
5091
5271
|
|
|
5092
5272
|
var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
5093
5273
|
|
|
@@ -5486,7 +5666,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5486
5666
|
/**
|
|
5487
5667
|
* @private
|
|
5488
5668
|
*/
|
|
5489
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5669
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
5490
5670
|
|
|
5491
5671
|
/**
|
|
5492
5672
|
* @private
|
|
@@ -5837,7 +6017,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5837
6017
|
*
|
|
5838
6018
|
*/
|
|
5839
6019
|
static register(name = "auro-dropdown") {
|
|
5840
|
-
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
6020
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
5841
6021
|
}
|
|
5842
6022
|
|
|
5843
6023
|
/**
|
|
@@ -6407,7 +6587,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
6407
6587
|
|
|
6408
6588
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6409
6589
|
|
|
6410
|
-
let AuroLibraryRuntimeUtils$
|
|
6590
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6411
6591
|
|
|
6412
6592
|
/* eslint-disable jsdoc/require-param */
|
|
6413
6593
|
|
|
@@ -6671,7 +6851,7 @@ var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6671
6851
|
|
|
6672
6852
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6673
6853
|
|
|
6674
|
-
class AuroLibraryRuntimeUtils {
|
|
6854
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6675
6855
|
|
|
6676
6856
|
/* eslint-disable jsdoc/require-param */
|
|
6677
6857
|
|
|
@@ -6732,7 +6912,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6732
6912
|
|
|
6733
6913
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
6734
6914
|
}
|
|
6735
|
-
}
|
|
6915
|
+
};
|
|
6736
6916
|
|
|
6737
6917
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6738
6918
|
// See LICENSE in the project root for license information.
|
|
@@ -6753,7 +6933,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6753
6933
|
*/
|
|
6754
6934
|
privateDefaults() {
|
|
6755
6935
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6756
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6936
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6757
6937
|
}
|
|
6758
6938
|
|
|
6759
6939
|
// function to define props used within the scope of this component
|
|
@@ -6835,7 +7015,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6835
7015
|
*
|
|
6836
7016
|
*/
|
|
6837
7017
|
static register(name = "auro-icon") {
|
|
6838
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
7018
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
6839
7019
|
}
|
|
6840
7020
|
|
|
6841
7021
|
connectedCallback() {
|
|
@@ -6903,6 +7083,76 @@ class AuroIcon extends BaseIcon {
|
|
|
6903
7083
|
|
|
6904
7084
|
var iconVersion = '8.0.3';
|
|
6905
7085
|
|
|
7086
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7087
|
+
// See LICENSE in the project root for license information.
|
|
7088
|
+
|
|
7089
|
+
// ---------------------------------------------------------------------
|
|
7090
|
+
|
|
7091
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7092
|
+
|
|
7093
|
+
class AuroLibraryRuntimeUtils {
|
|
7094
|
+
|
|
7095
|
+
/* eslint-disable jsdoc/require-param */
|
|
7096
|
+
|
|
7097
|
+
/**
|
|
7098
|
+
* This will register a new custom element with the browser.
|
|
7099
|
+
* @param {String} name - The name of the custom element.
|
|
7100
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
7101
|
+
* @returns {void}
|
|
7102
|
+
*/
|
|
7103
|
+
registerComponent(name, componentClass) {
|
|
7104
|
+
if (!customElements.get(name)) {
|
|
7105
|
+
customElements.define(name, class extends componentClass {});
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
/**
|
|
7110
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
7111
|
+
* @returns {void}
|
|
7112
|
+
*/
|
|
7113
|
+
closestElement(
|
|
7114
|
+
selector, // selector like in .closest()
|
|
7115
|
+
base = this, // extra functionality to skip a parent
|
|
7116
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
7117
|
+
!el || el === document || el === window
|
|
7118
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
7119
|
+
: found
|
|
7120
|
+
? found // found a selector INside this element
|
|
7121
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
7122
|
+
) {
|
|
7123
|
+
return __Closest(base);
|
|
7124
|
+
}
|
|
7125
|
+
/* eslint-enable jsdoc/require-param */
|
|
7126
|
+
|
|
7127
|
+
/**
|
|
7128
|
+
* 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.
|
|
7129
|
+
* @param {Object} elem - The element to check.
|
|
7130
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
7131
|
+
* @returns {void}
|
|
7132
|
+
*/
|
|
7133
|
+
handleComponentTagRename(elem, tagName) {
|
|
7134
|
+
const tag = tagName.toLowerCase();
|
|
7135
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7136
|
+
|
|
7137
|
+
if (elemTag !== tag) {
|
|
7138
|
+
elem.setAttribute(tag, true);
|
|
7139
|
+
}
|
|
7140
|
+
}
|
|
7141
|
+
|
|
7142
|
+
/**
|
|
7143
|
+
* Validates if an element is a specific Auro component.
|
|
7144
|
+
* @param {Object} elem - The element to validate.
|
|
7145
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
7146
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7147
|
+
*/
|
|
7148
|
+
elementMatch(elem, tagName) {
|
|
7149
|
+
const tag = tagName.toLowerCase();
|
|
7150
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7151
|
+
|
|
7152
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
7153
|
+
}
|
|
7154
|
+
}
|
|
7155
|
+
|
|
6906
7156
|
var styleCss$3 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
6907
7157
|
|
|
6908
7158
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -6932,7 +7182,7 @@ class AuroHeader extends i$2 {
|
|
|
6932
7182
|
/**
|
|
6933
7183
|
* @private
|
|
6934
7184
|
*/
|
|
6935
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils
|
|
7185
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6936
7186
|
}
|
|
6937
7187
|
|
|
6938
7188
|
// function to define props used within the scope of this component
|
|
@@ -6962,7 +7212,7 @@ class AuroHeader extends i$2 {
|
|
|
6962
7212
|
*
|
|
6963
7213
|
*/
|
|
6964
7214
|
static register(name = "auro-header") {
|
|
6965
|
-
AuroLibraryRuntimeUtils
|
|
7215
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
6966
7216
|
}
|
|
6967
7217
|
|
|
6968
7218
|
firstUpdated() {
|
|
@@ -7058,7 +7308,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7058
7308
|
|
|
7059
7309
|
this.large = false;
|
|
7060
7310
|
|
|
7061
|
-
AuroLibraryRuntimeUtils$
|
|
7311
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7062
7312
|
|
|
7063
7313
|
const versioning = new AuroDependencyVersioning();
|
|
7064
7314
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -7097,7 +7347,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7097
7347
|
*
|
|
7098
7348
|
*/
|
|
7099
7349
|
static register(name = "auro-bibtemplate") {
|
|
7100
|
-
AuroLibraryRuntimeUtils$
|
|
7350
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
7101
7351
|
}
|
|
7102
7352
|
|
|
7103
7353
|
/**
|