@aurodesignsystem/auro-formkit 2.0.3-beta.1 → 2.1.0-beta.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/CHANGELOG.md +12 -0
- package/components/bibtemplate/dist/index.js +148 -8
- package/components/bibtemplate/dist/registered.js +148 -8
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +643 -112
- package/components/combobox/demo/index.min.js +643 -112
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +510 -49
- package/components/combobox/dist/registered.js +510 -49
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +500 -39
- package/components/counter/demo/index.js +1 -0
- package/components/counter/demo/index.min.js +501 -39
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/index.js +500 -39
- package/components/counter/dist/registered.js +500 -39
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +1280 -206
- package/components/datepicker/demo/index.min.js +1280 -206
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +5 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +1280 -206
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1280 -206
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +81 -10
- package/components/dropdown/demo/index.min.js +81 -10
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +81 -10
- package/components/dropdown/dist/registered.js +81 -10
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +262 -12
- package/components/input/demo/index.min.js +262 -12
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +262 -12
- package/components/input/dist/registered.js +262 -12
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +77 -7
- package/components/menu/demo/index.min.js +77 -7
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/index.js +77 -7
- package/components/menu/dist/registered.js +77 -7
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +319 -38
- package/components/select/demo/index.min.js +319 -38
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +240 -29
- package/components/select/dist/registered.js +240 -29
- package/package.json +2 -2
|
@@ -200,7 +200,7 @@ const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$li
|
|
|
200
200
|
// See LICENSE in the project root for license information.
|
|
201
201
|
|
|
202
202
|
|
|
203
|
-
let AuroDependencyVersioning$
|
|
203
|
+
let AuroDependencyVersioning$4 = class AuroDependencyVersioning {
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -243,7 +243,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
243
243
|
|
|
244
244
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
245
245
|
|
|
246
|
-
let AuroLibraryRuntimeUtils$
|
|
246
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
247
247
|
|
|
248
248
|
/* eslint-disable jsdoc/require-param */
|
|
249
249
|
|
|
@@ -312,7 +312,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
312
312
|
|
|
313
313
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
314
314
|
constructor() {
|
|
315
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
315
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$7();
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/**
|
|
@@ -643,7 +643,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
643
643
|
|
|
644
644
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
645
645
|
|
|
646
|
-
let AuroLibraryRuntimeUtils$
|
|
646
|
+
let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
647
647
|
|
|
648
648
|
/* eslint-disable jsdoc/require-param */
|
|
649
649
|
|
|
@@ -2456,11 +2456,11 @@ class AuroFloatingUI {
|
|
|
2456
2456
|
|
|
2457
2457
|
updateCurrentExpandedDropdown() {
|
|
2458
2458
|
// Close any other dropdown that is already open
|
|
2459
|
-
if (document.
|
|
2460
|
-
|
|
2459
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
2460
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
|
-
document.
|
|
2463
|
+
document.expandedAuroFormkitDropdown = this;
|
|
2464
2464
|
}
|
|
2465
2465
|
|
|
2466
2466
|
showBib() {
|
|
@@ -2648,7 +2648,7 @@ class AuroFloatingUI {
|
|
|
2648
2648
|
// See LICENSE in the project root for license information.
|
|
2649
2649
|
|
|
2650
2650
|
|
|
2651
|
-
let AuroDependencyVersioning$
|
|
2651
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
2652
2652
|
|
|
2653
2653
|
/**
|
|
2654
2654
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -2835,6 +2835,76 @@ var tokensCss$2$2 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-d
|
|
|
2835
2835
|
|
|
2836
2836
|
var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
2837
2837
|
|
|
2838
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2839
|
+
// See LICENSE in the project root for license information.
|
|
2840
|
+
|
|
2841
|
+
// ---------------------------------------------------------------------
|
|
2842
|
+
|
|
2843
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2844
|
+
|
|
2845
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
2846
|
+
|
|
2847
|
+
/* eslint-disable jsdoc/require-param */
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* This will register a new custom element with the browser.
|
|
2851
|
+
* @param {String} name - The name of the custom element.
|
|
2852
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2853
|
+
* @returns {void}
|
|
2854
|
+
*/
|
|
2855
|
+
registerComponent(name, componentClass) {
|
|
2856
|
+
if (!customElements.get(name)) {
|
|
2857
|
+
customElements.define(name, class extends componentClass {});
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2863
|
+
* @returns {void}
|
|
2864
|
+
*/
|
|
2865
|
+
closestElement(
|
|
2866
|
+
selector, // selector like in .closest()
|
|
2867
|
+
base = this, // extra functionality to skip a parent
|
|
2868
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2869
|
+
!el || el === document || el === window
|
|
2870
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2871
|
+
: found
|
|
2872
|
+
? found // found a selector INside this element
|
|
2873
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2874
|
+
) {
|
|
2875
|
+
return __Closest(base);
|
|
2876
|
+
}
|
|
2877
|
+
/* eslint-enable jsdoc/require-param */
|
|
2878
|
+
|
|
2879
|
+
/**
|
|
2880
|
+
* 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.
|
|
2881
|
+
* @param {Object} elem - The element to check.
|
|
2882
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2883
|
+
* @returns {void}
|
|
2884
|
+
*/
|
|
2885
|
+
handleComponentTagRename(elem, tagName) {
|
|
2886
|
+
const tag = tagName.toLowerCase();
|
|
2887
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2888
|
+
|
|
2889
|
+
if (elemTag !== tag) {
|
|
2890
|
+
elem.setAttribute(tag, true);
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
* Validates if an element is a specific Auro component.
|
|
2896
|
+
* @param {Object} elem - The element to validate.
|
|
2897
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2898
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2899
|
+
*/
|
|
2900
|
+
elementMatch(elem, tagName) {
|
|
2901
|
+
const tag = tagName.toLowerCase();
|
|
2902
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2903
|
+
|
|
2904
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2838
2908
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2839
2909
|
// See LICENSE in the project root for license information.
|
|
2840
2910
|
|
|
@@ -2867,7 +2937,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
2867
2937
|
this.tertiary = false;
|
|
2868
2938
|
this.warning = false;
|
|
2869
2939
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
2870
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$
|
|
2940
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
2871
2941
|
}
|
|
2872
2942
|
|
|
2873
2943
|
// function to define props used within the scope of this component
|
|
@@ -3029,7 +3099,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
3029
3099
|
*
|
|
3030
3100
|
*/
|
|
3031
3101
|
static register(name = "auro-icon") {
|
|
3032
|
-
AuroLibraryRuntimeUtils$1$
|
|
3102
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
3033
3103
|
}
|
|
3034
3104
|
|
|
3035
3105
|
connectedCallback() {
|
|
@@ -3131,7 +3201,7 @@ class AuroDropdownBib extends r$1 {
|
|
|
3131
3201
|
*/
|
|
3132
3202
|
this._mobileBreakpointValue = undefined;
|
|
3133
3203
|
|
|
3134
|
-
AuroLibraryRuntimeUtils$
|
|
3204
|
+
AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3135
3205
|
}
|
|
3136
3206
|
|
|
3137
3207
|
static get styles() {
|
|
@@ -3239,7 +3309,7 @@ var tokensCss$6 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
|
|
|
3239
3309
|
|
|
3240
3310
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
3241
3311
|
|
|
3242
|
-
let AuroLibraryRuntimeUtils$
|
|
3312
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
3243
3313
|
|
|
3244
3314
|
/* eslint-disable jsdoc/require-param */
|
|
3245
3315
|
|
|
@@ -3319,7 +3389,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$1 {
|
|
|
3319
3389
|
this.error = false;
|
|
3320
3390
|
this.hasTextContent = false;
|
|
3321
3391
|
|
|
3322
|
-
AuroLibraryRuntimeUtils$
|
|
3392
|
+
AuroLibraryRuntimeUtils$6.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
3323
3393
|
}
|
|
3324
3394
|
|
|
3325
3395
|
static get styles() {
|
|
@@ -3367,7 +3437,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$1 {
|
|
|
3367
3437
|
*
|
|
3368
3438
|
*/
|
|
3369
3439
|
static register(name = "auro-helptext") {
|
|
3370
|
-
AuroLibraryRuntimeUtils$
|
|
3440
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroHelpText);
|
|
3371
3441
|
}
|
|
3372
3442
|
|
|
3373
3443
|
updated() {
|
|
@@ -3500,7 +3570,7 @@ class AuroDropdown extends r$1 {
|
|
|
3500
3570
|
/**
|
|
3501
3571
|
* @private
|
|
3502
3572
|
*/
|
|
3503
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3573
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$2();
|
|
3504
3574
|
|
|
3505
3575
|
/**
|
|
3506
3576
|
* @private
|
|
@@ -3520,22 +3590,22 @@ class AuroDropdown extends r$1 {
|
|
|
3520
3590
|
/**
|
|
3521
3591
|
* Generate unique names for dependency components.
|
|
3522
3592
|
*/
|
|
3523
|
-
const versioning = new AuroDependencyVersioning$
|
|
3593
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
3524
3594
|
|
|
3525
3595
|
/**
|
|
3526
3596
|
* @private
|
|
3527
3597
|
*/
|
|
3528
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$3, AuroIcon$3);
|
|
3598
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$3, AuroIcon$3);
|
|
3529
3599
|
|
|
3530
3600
|
/**
|
|
3531
3601
|
* @private
|
|
3532
3602
|
*/
|
|
3533
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
3603
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
|
|
3534
3604
|
|
|
3535
3605
|
/**
|
|
3536
3606
|
* @private
|
|
3537
3607
|
*/
|
|
3538
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
3608
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
3539
3609
|
}
|
|
3540
3610
|
|
|
3541
3611
|
/**
|
|
@@ -3738,7 +3808,7 @@ class AuroDropdown extends r$1 {
|
|
|
3738
3808
|
*
|
|
3739
3809
|
*/
|
|
3740
3810
|
static register(name = "auro-dropdown") {
|
|
3741
|
-
AuroLibraryRuntimeUtils$
|
|
3811
|
+
AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroDropdown);
|
|
3742
3812
|
}
|
|
3743
3813
|
|
|
3744
3814
|
connectedCallback() {
|
|
@@ -3761,6 +3831,7 @@ class AuroDropdown extends r$1 {
|
|
|
3761
3831
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3762
3832
|
this.handleTriggerContentSlotChange();
|
|
3763
3833
|
}
|
|
3834
|
+
|
|
3764
3835
|
}
|
|
3765
3836
|
|
|
3766
3837
|
firstUpdated() {
|
|
@@ -7982,7 +8053,7 @@ class AuroInputUtilities {
|
|
|
7982
8053
|
|
|
7983
8054
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7984
8055
|
|
|
7985
|
-
let AuroLibraryRuntimeUtils$
|
|
8056
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
7986
8057
|
|
|
7987
8058
|
/* eslint-disable jsdoc/require-param */
|
|
7988
8059
|
|
|
@@ -8051,7 +8122,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
8051
8122
|
|
|
8052
8123
|
class AuroFormValidation {
|
|
8053
8124
|
constructor() {
|
|
8054
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
8125
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
8055
8126
|
}
|
|
8056
8127
|
|
|
8057
8128
|
/**
|
|
@@ -9502,6 +9573,76 @@ var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
9502
9573
|
|
|
9503
9574
|
var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
9504
9575
|
|
|
9576
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
9577
|
+
// See LICENSE in the project root for license information.
|
|
9578
|
+
|
|
9579
|
+
// ---------------------------------------------------------------------
|
|
9580
|
+
|
|
9581
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
9582
|
+
|
|
9583
|
+
let AuroLibraryRuntimeUtils$3$1 = class AuroLibraryRuntimeUtils {
|
|
9584
|
+
|
|
9585
|
+
/* eslint-disable jsdoc/require-param */
|
|
9586
|
+
|
|
9587
|
+
/**
|
|
9588
|
+
* This will register a new custom element with the browser.
|
|
9589
|
+
* @param {String} name - The name of the custom element.
|
|
9590
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
9591
|
+
* @returns {void}
|
|
9592
|
+
*/
|
|
9593
|
+
registerComponent(name, componentClass) {
|
|
9594
|
+
if (!customElements.get(name)) {
|
|
9595
|
+
customElements.define(name, class extends componentClass {});
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9598
|
+
|
|
9599
|
+
/**
|
|
9600
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
9601
|
+
* @returns {void}
|
|
9602
|
+
*/
|
|
9603
|
+
closestElement(
|
|
9604
|
+
selector, // selector like in .closest()
|
|
9605
|
+
base = this, // extra functionality to skip a parent
|
|
9606
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
9607
|
+
!el || el === document || el === window
|
|
9608
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
9609
|
+
: found
|
|
9610
|
+
? found // found a selector INside this element
|
|
9611
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
9612
|
+
) {
|
|
9613
|
+
return __Closest(base);
|
|
9614
|
+
}
|
|
9615
|
+
/* eslint-enable jsdoc/require-param */
|
|
9616
|
+
|
|
9617
|
+
/**
|
|
9618
|
+
* 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.
|
|
9619
|
+
* @param {Object} elem - The element to check.
|
|
9620
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
9621
|
+
* @returns {void}
|
|
9622
|
+
*/
|
|
9623
|
+
handleComponentTagRename(elem, tagName) {
|
|
9624
|
+
const tag = tagName.toLowerCase();
|
|
9625
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
9626
|
+
|
|
9627
|
+
if (elemTag !== tag) {
|
|
9628
|
+
elem.setAttribute(tag, true);
|
|
9629
|
+
}
|
|
9630
|
+
}
|
|
9631
|
+
|
|
9632
|
+
/**
|
|
9633
|
+
* Validates if an element is a specific Auro component.
|
|
9634
|
+
* @param {Object} elem - The element to validate.
|
|
9635
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
9636
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
9637
|
+
*/
|
|
9638
|
+
elementMatch(elem, tagName) {
|
|
9639
|
+
const tag = tagName.toLowerCase();
|
|
9640
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
9641
|
+
|
|
9642
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
9643
|
+
}
|
|
9644
|
+
};
|
|
9645
|
+
|
|
9505
9646
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9506
9647
|
// See LICENSE in the project root for license information.
|
|
9507
9648
|
|
|
@@ -9534,7 +9675,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
9534
9675
|
this.tertiary = false;
|
|
9535
9676
|
this.warning = false;
|
|
9536
9677
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
9537
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
9678
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3$1();
|
|
9538
9679
|
}
|
|
9539
9680
|
|
|
9540
9681
|
// function to define props used within the scope of this component
|
|
@@ -9696,7 +9837,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
9696
9837
|
*
|
|
9697
9838
|
*/
|
|
9698
9839
|
static register(name = "auro-icon") {
|
|
9699
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
9840
|
+
AuroLibraryRuntimeUtils$3$1.prototype.registerComponent(name, AuroIcon);
|
|
9700
9841
|
}
|
|
9701
9842
|
|
|
9702
9843
|
connectedCallback() {
|
|
@@ -9764,76 +9905,256 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
9764
9905
|
|
|
9765
9906
|
var iconVersion$2 = '6.1.2';
|
|
9766
9907
|
|
|
9767
|
-
|
|
9908
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
9909
|
+
// See LICENSE in the project root for license information.
|
|
9768
9910
|
|
|
9769
|
-
var colorCss$2$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
9770
9911
|
|
|
9771
|
-
|
|
9912
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
9772
9913
|
|
|
9773
|
-
|
|
9914
|
+
/**
|
|
9915
|
+
* Generates a unique string to be used for child auro element naming.
|
|
9916
|
+
* @private
|
|
9917
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
9918
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
9919
|
+
* @returns {string} - Unique string to be used for naming.
|
|
9920
|
+
*/
|
|
9921
|
+
generateElementName(baseName, version) {
|
|
9922
|
+
let result = baseName;
|
|
9774
9923
|
|
|
9775
|
-
|
|
9924
|
+
result += '-';
|
|
9925
|
+
result += version.replace(/[.]/g, '_');
|
|
9776
9926
|
|
|
9777
|
-
|
|
9927
|
+
return result;
|
|
9928
|
+
}
|
|
9778
9929
|
|
|
9779
|
-
|
|
9780
|
-
|
|
9930
|
+
/**
|
|
9931
|
+
* Generates a unique string to be used for child auro element naming.
|
|
9932
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
9933
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
9934
|
+
* @returns {string} - Unique string to be used for naming.
|
|
9935
|
+
*/
|
|
9936
|
+
generateTag(baseName, version, tagClass) {
|
|
9937
|
+
const elementName = this.generateElementName(baseName, version);
|
|
9938
|
+
const tag = i$1`${s$1(elementName)}`;
|
|
9781
9939
|
|
|
9940
|
+
if (!customElements.get(elementName)) {
|
|
9941
|
+
customElements.define(elementName, class extends tagClass {});
|
|
9942
|
+
}
|
|
9782
9943
|
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
*
|
|
9787
|
-
* @attr {Boolean} pulse - sets loader type
|
|
9788
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
9789
|
-
* @attr {Boolean} laser - sets loader type
|
|
9790
|
-
* @attr {Boolean} orbit - sets loader type
|
|
9791
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
9792
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
9793
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
9794
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
9795
|
-
* @attr {Boolean} sm - sets size to small
|
|
9796
|
-
* @attr {Boolean} md - sets size to medium
|
|
9797
|
-
* @attr {Boolean} lg - sets size to large
|
|
9798
|
-
* @csspart element - apply style to adjust speed of animation
|
|
9799
|
-
*/
|
|
9944
|
+
return tag;
|
|
9945
|
+
}
|
|
9946
|
+
};
|
|
9800
9947
|
|
|
9801
|
-
//
|
|
9802
|
-
|
|
9803
|
-
constructor() {
|
|
9804
|
-
super();
|
|
9948
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
9949
|
+
// See LICENSE in the project root for license information.
|
|
9805
9950
|
|
|
9806
|
-
|
|
9807
|
-
* @private
|
|
9808
|
-
*/
|
|
9809
|
-
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
9951
|
+
// ---------------------------------------------------------------------
|
|
9810
9952
|
|
|
9811
|
-
|
|
9812
|
-
* @private
|
|
9813
|
-
*/
|
|
9814
|
-
this.mdCount = 3;
|
|
9953
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
9815
9954
|
|
|
9816
|
-
|
|
9817
|
-
* @private
|
|
9818
|
-
*/
|
|
9819
|
-
this.smCount = 2;
|
|
9955
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
9820
9956
|
|
|
9821
|
-
|
|
9822
|
-
* @private
|
|
9823
|
-
*/
|
|
9824
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
9957
|
+
/* eslint-disable jsdoc/require-param */
|
|
9825
9958
|
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
|
|
9829
|
-
|
|
9959
|
+
/**
|
|
9960
|
+
* This will register a new custom element with the browser.
|
|
9961
|
+
* @param {String} name - The name of the custom element.
|
|
9962
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
9963
|
+
* @returns {void}
|
|
9964
|
+
*/
|
|
9965
|
+
registerComponent(name, componentClass) {
|
|
9966
|
+
if (!customElements.get(name)) {
|
|
9967
|
+
customElements.define(name, class extends componentClass {});
|
|
9968
|
+
}
|
|
9830
9969
|
}
|
|
9831
9970
|
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9835
|
-
|
|
9836
|
-
|
|
9971
|
+
/**
|
|
9972
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
9973
|
+
* @returns {void}
|
|
9974
|
+
*/
|
|
9975
|
+
closestElement(
|
|
9976
|
+
selector, // selector like in .closest()
|
|
9977
|
+
base = this, // extra functionality to skip a parent
|
|
9978
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
9979
|
+
!el || el === document || el === window
|
|
9980
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
9981
|
+
: found
|
|
9982
|
+
? found // found a selector INside this element
|
|
9983
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
9984
|
+
) {
|
|
9985
|
+
return __Closest(base);
|
|
9986
|
+
}
|
|
9987
|
+
/* eslint-enable jsdoc/require-param */
|
|
9988
|
+
|
|
9989
|
+
/**
|
|
9990
|
+
* 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.
|
|
9991
|
+
* @param {Object} elem - The element to check.
|
|
9992
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
9993
|
+
* @returns {void}
|
|
9994
|
+
*/
|
|
9995
|
+
handleComponentTagRename(elem, tagName) {
|
|
9996
|
+
const tag = tagName.toLowerCase();
|
|
9997
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
9998
|
+
|
|
9999
|
+
if (elemTag !== tag) {
|
|
10000
|
+
elem.setAttribute(tag, true);
|
|
10001
|
+
}
|
|
10002
|
+
}
|
|
10003
|
+
|
|
10004
|
+
/**
|
|
10005
|
+
* Validates if an element is a specific Auro component.
|
|
10006
|
+
* @param {Object} elem - The element to validate.
|
|
10007
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10008
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10009
|
+
*/
|
|
10010
|
+
elementMatch(elem, tagName) {
|
|
10011
|
+
const tag = tagName.toLowerCase();
|
|
10012
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10013
|
+
|
|
10014
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10015
|
+
}
|
|
10016
|
+
};
|
|
10017
|
+
|
|
10018
|
+
var styleCss$2$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
10019
|
+
|
|
10020
|
+
var colorCss$2$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
10021
|
+
|
|
10022
|
+
var tokensCss$2$1 = i$5`:host{--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color:var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
10023
|
+
|
|
10024
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10025
|
+
// See LICENSE in the project root for license information.
|
|
10026
|
+
|
|
10027
|
+
// ---------------------------------------------------------------------
|
|
10028
|
+
|
|
10029
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10030
|
+
|
|
10031
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
10032
|
+
|
|
10033
|
+
/* eslint-disable jsdoc/require-param */
|
|
10034
|
+
|
|
10035
|
+
/**
|
|
10036
|
+
* This will register a new custom element with the browser.
|
|
10037
|
+
* @param {String} name - The name of the custom element.
|
|
10038
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
10039
|
+
* @returns {void}
|
|
10040
|
+
*/
|
|
10041
|
+
registerComponent(name, componentClass) {
|
|
10042
|
+
if (!customElements.get(name)) {
|
|
10043
|
+
customElements.define(name, class extends componentClass {});
|
|
10044
|
+
}
|
|
10045
|
+
}
|
|
10046
|
+
|
|
10047
|
+
/**
|
|
10048
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
10049
|
+
* @returns {void}
|
|
10050
|
+
*/
|
|
10051
|
+
closestElement(
|
|
10052
|
+
selector, // selector like in .closest()
|
|
10053
|
+
base = this, // extra functionality to skip a parent
|
|
10054
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10055
|
+
!el || el === document || el === window
|
|
10056
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
10057
|
+
: found
|
|
10058
|
+
? found // found a selector INside this element
|
|
10059
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10060
|
+
) {
|
|
10061
|
+
return __Closest(base);
|
|
10062
|
+
}
|
|
10063
|
+
/* eslint-enable jsdoc/require-param */
|
|
10064
|
+
|
|
10065
|
+
/**
|
|
10066
|
+
* 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.
|
|
10067
|
+
* @param {Object} elem - The element to check.
|
|
10068
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10069
|
+
* @returns {void}
|
|
10070
|
+
*/
|
|
10071
|
+
handleComponentTagRename(elem, tagName) {
|
|
10072
|
+
const tag = tagName.toLowerCase();
|
|
10073
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10074
|
+
|
|
10075
|
+
if (elemTag !== tag) {
|
|
10076
|
+
elem.setAttribute(tag, true);
|
|
10077
|
+
}
|
|
10078
|
+
}
|
|
10079
|
+
|
|
10080
|
+
/**
|
|
10081
|
+
* Validates if an element is a specific Auro component.
|
|
10082
|
+
* @param {Object} elem - The element to validate.
|
|
10083
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
10084
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10085
|
+
*/
|
|
10086
|
+
elementMatch(elem, tagName) {
|
|
10087
|
+
const tag = tagName.toLowerCase();
|
|
10088
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
10089
|
+
|
|
10090
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
10091
|
+
}
|
|
10092
|
+
};
|
|
10093
|
+
|
|
10094
|
+
var styleCss$1$2 = 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}}`;
|
|
10095
|
+
|
|
10096
|
+
var colorCss$1$2 = 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-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color:var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color:var(--ds-color-utility-neutral-inverse, #ccd2db)}: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}`;
|
|
10097
|
+
|
|
10098
|
+
var tokensCss$1$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
10099
|
+
|
|
10100
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10101
|
+
// See LICENSE in the project root for license information.
|
|
10102
|
+
|
|
10103
|
+
|
|
10104
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10105
|
+
/**
|
|
10106
|
+
* The auro-loader element is an easy to use animated loader component.
|
|
10107
|
+
*
|
|
10108
|
+
* @attr {Boolean} pulse - sets loader type
|
|
10109
|
+
* @attr {Boolean} ringworm - sets loader type
|
|
10110
|
+
* @attr {Boolean} laser - sets loader type
|
|
10111
|
+
* @attr {Boolean} orbit - sets loader type
|
|
10112
|
+
* @attr {Boolean} white - sets color of loader to white
|
|
10113
|
+
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
10114
|
+
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
10115
|
+
* @attr {Boolean} xs - sets size to extra small
|
|
10116
|
+
* @attr {Boolean} sm - sets size to small
|
|
10117
|
+
* @attr {Boolean} md - sets size to medium
|
|
10118
|
+
* @attr {Boolean} lg - sets size to large
|
|
10119
|
+
* @csspart element - apply style to adjust speed of animation
|
|
10120
|
+
*/
|
|
10121
|
+
|
|
10122
|
+
// build the component class
|
|
10123
|
+
class AuroLoader extends r$1 {
|
|
10124
|
+
constructor() {
|
|
10125
|
+
super();
|
|
10126
|
+
|
|
10127
|
+
/**
|
|
10128
|
+
* @private
|
|
10129
|
+
*/
|
|
10130
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
10131
|
+
|
|
10132
|
+
/**
|
|
10133
|
+
* @private
|
|
10134
|
+
*/
|
|
10135
|
+
this.mdCount = 3;
|
|
10136
|
+
|
|
10137
|
+
/**
|
|
10138
|
+
* @private
|
|
10139
|
+
*/
|
|
10140
|
+
this.smCount = 2;
|
|
10141
|
+
|
|
10142
|
+
/**
|
|
10143
|
+
* @private
|
|
10144
|
+
*/
|
|
10145
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
10146
|
+
|
|
10147
|
+
this.orbit = false;
|
|
10148
|
+
this.ringworm = false;
|
|
10149
|
+
this.laser = false;
|
|
10150
|
+
this.pulse = false;
|
|
10151
|
+
}
|
|
10152
|
+
|
|
10153
|
+
// function to define props used within the scope of this component
|
|
10154
|
+
static get properties() {
|
|
10155
|
+
return {
|
|
10156
|
+
pulse: {
|
|
10157
|
+
type: Boolean,
|
|
9837
10158
|
reflect: true
|
|
9838
10159
|
},
|
|
9839
10160
|
orbit: {
|
|
@@ -9868,7 +10189,7 @@ class AuroLoader extends r$1 {
|
|
|
9868
10189
|
*
|
|
9869
10190
|
*/
|
|
9870
10191
|
static register(name = "auro-loader") {
|
|
9871
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
10192
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
|
|
9872
10193
|
}
|
|
9873
10194
|
|
|
9874
10195
|
firstUpdated() {
|
|
@@ -9993,7 +10314,7 @@ class AuroButton extends r$1 {
|
|
|
9993
10314
|
/**
|
|
9994
10315
|
* Generate unique names for dependency components.
|
|
9995
10316
|
*/
|
|
9996
|
-
const versioning = new AuroDependencyVersioning$
|
|
10317
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
9997
10318
|
|
|
9998
10319
|
/**
|
|
9999
10320
|
* @private
|
|
@@ -10088,7 +10409,7 @@ class AuroButton extends r$1 {
|
|
|
10088
10409
|
*
|
|
10089
10410
|
*/
|
|
10090
10411
|
static register(name = "auro-button") {
|
|
10091
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
10412
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroButton);
|
|
10092
10413
|
}
|
|
10093
10414
|
|
|
10094
10415
|
/**
|
|
@@ -10199,7 +10520,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
|
|
|
10199
10520
|
|
|
10200
10521
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10201
10522
|
|
|
10202
|
-
let AuroLibraryRuntimeUtils$
|
|
10523
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
10203
10524
|
|
|
10204
10525
|
/* eslint-disable jsdoc/require-param */
|
|
10205
10526
|
|
|
@@ -10279,7 +10600,7 @@ class AuroHelpText extends r$1 {
|
|
|
10279
10600
|
this.error = false;
|
|
10280
10601
|
this.hasTextContent = false;
|
|
10281
10602
|
|
|
10282
|
-
AuroLibraryRuntimeUtils$
|
|
10603
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
10283
10604
|
}
|
|
10284
10605
|
|
|
10285
10606
|
static get styles() {
|
|
@@ -10327,7 +10648,7 @@ class AuroHelpText extends r$1 {
|
|
|
10327
10648
|
*
|
|
10328
10649
|
*/
|
|
10329
10650
|
static register(name = "auro-helptext") {
|
|
10330
|
-
AuroLibraryRuntimeUtils$
|
|
10651
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
|
|
10331
10652
|
}
|
|
10332
10653
|
|
|
10333
10654
|
updated() {
|
|
@@ -10402,17 +10723,17 @@ class AuroInput extends BaseInput {
|
|
|
10402
10723
|
/**
|
|
10403
10724
|
* @private
|
|
10404
10725
|
*/
|
|
10405
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
|
|
10726
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$2, AuroIcon$2);
|
|
10406
10727
|
|
|
10407
10728
|
/**
|
|
10408
10729
|
* @private
|
|
10409
10730
|
*/
|
|
10410
|
-
this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
|
|
10731
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
10411
10732
|
|
|
10412
10733
|
/**
|
|
10413
10734
|
* @private
|
|
10414
10735
|
*/
|
|
10415
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
10736
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
10416
10737
|
}
|
|
10417
10738
|
|
|
10418
10739
|
/**
|
|
@@ -10424,7 +10745,7 @@ class AuroInput extends BaseInput {
|
|
|
10424
10745
|
*
|
|
10425
10746
|
*/
|
|
10426
10747
|
static register(name = "auro-input") {
|
|
10427
|
-
AuroLibraryRuntimeUtils$
|
|
10748
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
|
|
10428
10749
|
}
|
|
10429
10750
|
|
|
10430
10751
|
/**
|
|
@@ -10604,7 +10925,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10604
10925
|
|
|
10605
10926
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10606
10927
|
|
|
10607
|
-
class AuroLibraryRuntimeUtils {
|
|
10928
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
10608
10929
|
|
|
10609
10930
|
/* eslint-disable jsdoc/require-param */
|
|
10610
10931
|
|
|
@@ -10665,7 +10986,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
10665
10986
|
|
|
10666
10987
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
10667
10988
|
}
|
|
10668
|
-
}
|
|
10989
|
+
};
|
|
10669
10990
|
|
|
10670
10991
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10671
10992
|
// See LICENSE in the project root for license information.
|
|
@@ -10858,6 +11179,76 @@ var tokensCss$2 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
10858
11179
|
|
|
10859
11180
|
var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
10860
11181
|
|
|
11182
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11183
|
+
// See LICENSE in the project root for license information.
|
|
11184
|
+
|
|
11185
|
+
// ---------------------------------------------------------------------
|
|
11186
|
+
|
|
11187
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11188
|
+
|
|
11189
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
11190
|
+
|
|
11191
|
+
/* eslint-disable jsdoc/require-param */
|
|
11192
|
+
|
|
11193
|
+
/**
|
|
11194
|
+
* This will register a new custom element with the browser.
|
|
11195
|
+
* @param {String} name - The name of the custom element.
|
|
11196
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11197
|
+
* @returns {void}
|
|
11198
|
+
*/
|
|
11199
|
+
registerComponent(name, componentClass) {
|
|
11200
|
+
if (!customElements.get(name)) {
|
|
11201
|
+
customElements.define(name, class extends componentClass {});
|
|
11202
|
+
}
|
|
11203
|
+
}
|
|
11204
|
+
|
|
11205
|
+
/**
|
|
11206
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11207
|
+
* @returns {void}
|
|
11208
|
+
*/
|
|
11209
|
+
closestElement(
|
|
11210
|
+
selector, // selector like in .closest()
|
|
11211
|
+
base = this, // extra functionality to skip a parent
|
|
11212
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11213
|
+
!el || el === document || el === window
|
|
11214
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11215
|
+
: found
|
|
11216
|
+
? found // found a selector INside this element
|
|
11217
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11218
|
+
) {
|
|
11219
|
+
return __Closest(base);
|
|
11220
|
+
}
|
|
11221
|
+
/* eslint-enable jsdoc/require-param */
|
|
11222
|
+
|
|
11223
|
+
/**
|
|
11224
|
+
* 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.
|
|
11225
|
+
* @param {Object} elem - The element to check.
|
|
11226
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11227
|
+
* @returns {void}
|
|
11228
|
+
*/
|
|
11229
|
+
handleComponentTagRename(elem, tagName) {
|
|
11230
|
+
const tag = tagName.toLowerCase();
|
|
11231
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11232
|
+
|
|
11233
|
+
if (elemTag !== tag) {
|
|
11234
|
+
elem.setAttribute(tag, true);
|
|
11235
|
+
}
|
|
11236
|
+
}
|
|
11237
|
+
|
|
11238
|
+
/**
|
|
11239
|
+
* Validates if an element is a specific Auro component.
|
|
11240
|
+
* @param {Object} elem - The element to validate.
|
|
11241
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11242
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11243
|
+
*/
|
|
11244
|
+
elementMatch(elem, tagName) {
|
|
11245
|
+
const tag = tagName.toLowerCase();
|
|
11246
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11247
|
+
|
|
11248
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11249
|
+
}
|
|
11250
|
+
};
|
|
11251
|
+
|
|
10861
11252
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10862
11253
|
// See LICENSE in the project root for license information.
|
|
10863
11254
|
|
|
@@ -10890,7 +11281,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
10890
11281
|
this.tertiary = false;
|
|
10891
11282
|
this.warning = false;
|
|
10892
11283
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10893
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
11284
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
10894
11285
|
}
|
|
10895
11286
|
|
|
10896
11287
|
// function to define props used within the scope of this component
|
|
@@ -11052,7 +11443,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11052
11443
|
*
|
|
11053
11444
|
*/
|
|
11054
11445
|
static register(name = "auro-icon") {
|
|
11055
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
11446
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
11056
11447
|
}
|
|
11057
11448
|
|
|
11058
11449
|
connectedCallback() {
|
|
@@ -11120,6 +11511,76 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11120
11511
|
|
|
11121
11512
|
var iconVersion$1 = '7.0.1';
|
|
11122
11513
|
|
|
11514
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11515
|
+
// See LICENSE in the project root for license information.
|
|
11516
|
+
|
|
11517
|
+
// ---------------------------------------------------------------------
|
|
11518
|
+
|
|
11519
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11520
|
+
|
|
11521
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
11522
|
+
|
|
11523
|
+
/* eslint-disable jsdoc/require-param */
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* This will register a new custom element with the browser.
|
|
11527
|
+
* @param {String} name - The name of the custom element.
|
|
11528
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11529
|
+
* @returns {void}
|
|
11530
|
+
*/
|
|
11531
|
+
registerComponent(name, componentClass) {
|
|
11532
|
+
if (!customElements.get(name)) {
|
|
11533
|
+
customElements.define(name, class extends componentClass {});
|
|
11534
|
+
}
|
|
11535
|
+
}
|
|
11536
|
+
|
|
11537
|
+
/**
|
|
11538
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11539
|
+
* @returns {void}
|
|
11540
|
+
*/
|
|
11541
|
+
closestElement(
|
|
11542
|
+
selector, // selector like in .closest()
|
|
11543
|
+
base = this, // extra functionality to skip a parent
|
|
11544
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11545
|
+
!el || el === document || el === window
|
|
11546
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11547
|
+
: found
|
|
11548
|
+
? found // found a selector INside this element
|
|
11549
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11550
|
+
) {
|
|
11551
|
+
return __Closest(base);
|
|
11552
|
+
}
|
|
11553
|
+
/* eslint-enable jsdoc/require-param */
|
|
11554
|
+
|
|
11555
|
+
/**
|
|
11556
|
+
* 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.
|
|
11557
|
+
* @param {Object} elem - The element to check.
|
|
11558
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11559
|
+
* @returns {void}
|
|
11560
|
+
*/
|
|
11561
|
+
handleComponentTagRename(elem, tagName) {
|
|
11562
|
+
const tag = tagName.toLowerCase();
|
|
11563
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11564
|
+
|
|
11565
|
+
if (elemTag !== tag) {
|
|
11566
|
+
elem.setAttribute(tag, true);
|
|
11567
|
+
}
|
|
11568
|
+
}
|
|
11569
|
+
|
|
11570
|
+
/**
|
|
11571
|
+
* Validates if an element is a specific Auro component.
|
|
11572
|
+
* @param {Object} elem - The element to validate.
|
|
11573
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11574
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11575
|
+
*/
|
|
11576
|
+
elementMatch(elem, tagName) {
|
|
11577
|
+
const tag = tagName.toLowerCase();
|
|
11578
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11579
|
+
|
|
11580
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11581
|
+
}
|
|
11582
|
+
};
|
|
11583
|
+
|
|
11123
11584
|
var styleCss$4 = 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)}`;
|
|
11124
11585
|
|
|
11125
11586
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -11149,7 +11610,7 @@ class AuroHeader extends r$1 {
|
|
|
11149
11610
|
/**
|
|
11150
11611
|
* @private
|
|
11151
11612
|
*/
|
|
11152
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
11613
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
11153
11614
|
}
|
|
11154
11615
|
|
|
11155
11616
|
// function to define props used within the scope of this component
|
|
@@ -11179,7 +11640,7 @@ class AuroHeader extends r$1 {
|
|
|
11179
11640
|
*
|
|
11180
11641
|
*/
|
|
11181
11642
|
static register(name = "auro-header") {
|
|
11182
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
11643
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
|
|
11183
11644
|
}
|
|
11184
11645
|
|
|
11185
11646
|
firstUpdated() {
|
|
@@ -11273,11 +11734,11 @@ class AuroBibtemplate extends r$1 {
|
|
|
11273
11734
|
constructor() {
|
|
11274
11735
|
super();
|
|
11275
11736
|
|
|
11276
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11737
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11277
11738
|
|
|
11278
11739
|
const versioning = new AuroDependencyVersioning();
|
|
11279
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
|
|
11280
|
-
this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
|
|
11740
|
+
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
|
|
11741
|
+
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11281
11742
|
}
|
|
11282
11743
|
|
|
11283
11744
|
static get styles() {
|
|
@@ -11312,7 +11773,7 @@ class AuroBibtemplate extends r$1 {
|
|
|
11312
11773
|
*
|
|
11313
11774
|
*/
|
|
11314
11775
|
static register(name = "auro-bibtemplate") {
|
|
11315
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
11776
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11316
11777
|
}
|
|
11317
11778
|
|
|
11318
11779
|
/**
|
|
@@ -11542,15 +12003,15 @@ class AuroCombobox extends r$1 {
|
|
|
11542
12003
|
|
|
11543
12004
|
this.validation = new AuroFormValidation$1();
|
|
11544
12005
|
|
|
11545
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
12006
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$7();
|
|
11546
12007
|
|
|
11547
12008
|
this.isHiddenWhileLoading = false;
|
|
11548
12009
|
|
|
11549
|
-
const versioning = new AuroDependencyVersioning$
|
|
12010
|
+
const versioning = new AuroDependencyVersioning$4();
|
|
11550
12011
|
|
|
11551
|
-
this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
|
|
11552
|
-
this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
11553
|
-
this.inputTag = versioning.generateTag('auro-input', inputVersion, AuroInput);
|
|
12012
|
+
this.dropdownTag = versioning.generateTag('auro-formkit-checkbox-dropdown', dropdownVersion, AuroDropdown);
|
|
12013
|
+
this.bibtemplateTag = versioning.generateTag('auro-formkit-checkbox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
12014
|
+
this.inputTag = versioning.generateTag('auro-formkit-checkbox-input', inputVersion, AuroInput);
|
|
11554
12015
|
}
|
|
11555
12016
|
|
|
11556
12017
|
// This function is to define props used within the scope of this component
|
|
@@ -11719,7 +12180,7 @@ class AuroCombobox extends r$1 {
|
|
|
11719
12180
|
*
|
|
11720
12181
|
*/
|
|
11721
12182
|
static register(name = 'auro-combobox') {
|
|
11722
|
-
AuroLibraryRuntimeUtils$
|
|
12183
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroCombobox);
|
|
11723
12184
|
}
|
|
11724
12185
|
|
|
11725
12186
|
/**
|
|
@@ -12710,7 +13171,7 @@ class AuroMenu extends r$1 {
|
|
|
12710
13171
|
*
|
|
12711
13172
|
*/
|
|
12712
13173
|
static register(name = "auro-menu") {
|
|
12713
|
-
AuroLibraryRuntimeUtils$
|
|
13174
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroMenu);
|
|
12714
13175
|
}
|
|
12715
13176
|
|
|
12716
13177
|
// Lifecycle Methods
|
|
@@ -12734,7 +13195,7 @@ class AuroMenu extends r$1 {
|
|
|
12734
13195
|
}
|
|
12735
13196
|
|
|
12736
13197
|
firstUpdated() {
|
|
12737
|
-
AuroLibraryRuntimeUtils$
|
|
13198
|
+
AuroLibraryRuntimeUtils$7.prototype.handleComponentTagRename(this, 'auro-menu');
|
|
12738
13199
|
|
|
12739
13200
|
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
12740
13201
|
this.initializeMenu();
|
|
@@ -13425,6 +13886,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-defau
|
|
|
13425
13886
|
|
|
13426
13887
|
var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
13427
13888
|
|
|
13889
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13890
|
+
// See LICENSE in the project root for license information.
|
|
13891
|
+
|
|
13892
|
+
// ---------------------------------------------------------------------
|
|
13893
|
+
|
|
13894
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13895
|
+
|
|
13896
|
+
class AuroLibraryRuntimeUtils {
|
|
13897
|
+
|
|
13898
|
+
/* eslint-disable jsdoc/require-param */
|
|
13899
|
+
|
|
13900
|
+
/**
|
|
13901
|
+
* This will register a new custom element with the browser.
|
|
13902
|
+
* @param {String} name - The name of the custom element.
|
|
13903
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
13904
|
+
* @returns {void}
|
|
13905
|
+
*/
|
|
13906
|
+
registerComponent(name, componentClass) {
|
|
13907
|
+
if (!customElements.get(name)) {
|
|
13908
|
+
customElements.define(name, class extends componentClass {});
|
|
13909
|
+
}
|
|
13910
|
+
}
|
|
13911
|
+
|
|
13912
|
+
/**
|
|
13913
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
13914
|
+
* @returns {void}
|
|
13915
|
+
*/
|
|
13916
|
+
closestElement(
|
|
13917
|
+
selector, // selector like in .closest()
|
|
13918
|
+
base = this, // extra functionality to skip a parent
|
|
13919
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
13920
|
+
!el || el === document || el === window
|
|
13921
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
13922
|
+
: found
|
|
13923
|
+
? found // found a selector INside this element
|
|
13924
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
13925
|
+
) {
|
|
13926
|
+
return __Closest(base);
|
|
13927
|
+
}
|
|
13928
|
+
/* eslint-enable jsdoc/require-param */
|
|
13929
|
+
|
|
13930
|
+
/**
|
|
13931
|
+
* 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.
|
|
13932
|
+
* @param {Object} elem - The element to check.
|
|
13933
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
13934
|
+
* @returns {void}
|
|
13935
|
+
*/
|
|
13936
|
+
handleComponentTagRename(elem, tagName) {
|
|
13937
|
+
const tag = tagName.toLowerCase();
|
|
13938
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13939
|
+
|
|
13940
|
+
if (elemTag !== tag) {
|
|
13941
|
+
elem.setAttribute(tag, true);
|
|
13942
|
+
}
|
|
13943
|
+
}
|
|
13944
|
+
|
|
13945
|
+
/**
|
|
13946
|
+
* Validates if an element is a specific Auro component.
|
|
13947
|
+
* @param {Object} elem - The element to validate.
|
|
13948
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
13949
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
13950
|
+
*/
|
|
13951
|
+
elementMatch(elem, tagName) {
|
|
13952
|
+
const tag = tagName.toLowerCase();
|
|
13953
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13954
|
+
|
|
13955
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
13956
|
+
}
|
|
13957
|
+
}
|
|
13958
|
+
|
|
13428
13959
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13429
13960
|
// See LICENSE in the project root for license information.
|
|
13430
13961
|
|
|
@@ -13457,7 +13988,7 @@ class AuroIcon extends BaseIcon {
|
|
|
13457
13988
|
this.tertiary = false;
|
|
13458
13989
|
this.warning = false;
|
|
13459
13990
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
13460
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils
|
|
13991
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
13461
13992
|
}
|
|
13462
13993
|
|
|
13463
13994
|
// function to define props used within the scope of this component
|
|
@@ -13619,7 +14150,7 @@ class AuroIcon extends BaseIcon {
|
|
|
13619
14150
|
*
|
|
13620
14151
|
*/
|
|
13621
14152
|
static register(name = "auro-icon") {
|
|
13622
|
-
AuroLibraryRuntimeUtils
|
|
14153
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
13623
14154
|
}
|
|
13624
14155
|
|
|
13625
14156
|
connectedCallback() {
|
|
@@ -13710,8 +14241,8 @@ class AuroMenuOption extends r$1 {
|
|
|
13710
14241
|
/**
|
|
13711
14242
|
* Generate unique names for dependency components.
|
|
13712
14243
|
*/
|
|
13713
|
-
const versioning = new AuroDependencyVersioning$
|
|
13714
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
14244
|
+
const versioning = new AuroDependencyVersioning$4();
|
|
14245
|
+
this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, AuroIcon);
|
|
13715
14246
|
|
|
13716
14247
|
this.selected = false;
|
|
13717
14248
|
this.nocheckmark = false;
|
|
@@ -13725,7 +14256,7 @@ class AuroMenuOption extends r$1 {
|
|
|
13725
14256
|
/**
|
|
13726
14257
|
* @private
|
|
13727
14258
|
*/
|
|
13728
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
14259
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$7();
|
|
13729
14260
|
}
|
|
13730
14261
|
|
|
13731
14262
|
static get properties() {
|
|
@@ -13769,7 +14300,7 @@ class AuroMenuOption extends r$1 {
|
|
|
13769
14300
|
*
|
|
13770
14301
|
*/
|
|
13771
14302
|
static register(name = "auro-menuoption") {
|
|
13772
|
-
AuroLibraryRuntimeUtils$
|
|
14303
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroMenuOption);
|
|
13773
14304
|
}
|
|
13774
14305
|
|
|
13775
14306
|
firstUpdated() {
|