@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
|
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
99
99
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
100
100
|
|
|
101
101
|
```html
|
|
102
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.
|
|
102
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.3-beta.1/auro-input/+esm"></script>
|
|
103
103
|
```
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
@@ -4118,7 +4118,7 @@ class AuroInputUtilities {
|
|
|
4118
4118
|
|
|
4119
4119
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4120
4120
|
|
|
4121
|
-
let AuroLibraryRuntimeUtils$
|
|
4121
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
4122
4122
|
|
|
4123
4123
|
/* eslint-disable jsdoc/require-param */
|
|
4124
4124
|
|
|
@@ -4187,7 +4187,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
4187
4187
|
|
|
4188
4188
|
class AuroFormValidation {
|
|
4189
4189
|
constructor() {
|
|
4190
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4190
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
4191
4191
|
}
|
|
4192
4192
|
|
|
4193
4193
|
/**
|
|
@@ -5451,7 +5451,7 @@ class BaseInput extends r {
|
|
|
5451
5451
|
// See LICENSE in the project root for license information.
|
|
5452
5452
|
|
|
5453
5453
|
|
|
5454
|
-
class AuroDependencyVersioning {
|
|
5454
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
5455
5455
|
|
|
5456
5456
|
/**
|
|
5457
5457
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -5485,7 +5485,7 @@ class AuroDependencyVersioning {
|
|
|
5485
5485
|
|
|
5486
5486
|
return tag;
|
|
5487
5487
|
}
|
|
5488
|
-
}
|
|
5488
|
+
};
|
|
5489
5489
|
|
|
5490
5490
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5491
5491
|
// See LICENSE in the project root for license information.
|
|
@@ -5638,6 +5638,76 @@ var tokensCss$3 = i$2`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
5638
5638
|
|
|
5639
5639
|
var colorCss$3 = i$2`: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)}`;
|
|
5640
5640
|
|
|
5641
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5642
|
+
// See LICENSE in the project root for license information.
|
|
5643
|
+
|
|
5644
|
+
// ---------------------------------------------------------------------
|
|
5645
|
+
|
|
5646
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5647
|
+
|
|
5648
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
5649
|
+
|
|
5650
|
+
/* eslint-disable jsdoc/require-param */
|
|
5651
|
+
|
|
5652
|
+
/**
|
|
5653
|
+
* This will register a new custom element with the browser.
|
|
5654
|
+
* @param {String} name - The name of the custom element.
|
|
5655
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
5656
|
+
* @returns {void}
|
|
5657
|
+
*/
|
|
5658
|
+
registerComponent(name, componentClass) {
|
|
5659
|
+
if (!customElements.get(name)) {
|
|
5660
|
+
customElements.define(name, class extends componentClass {});
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5663
|
+
|
|
5664
|
+
/**
|
|
5665
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
5666
|
+
* @returns {void}
|
|
5667
|
+
*/
|
|
5668
|
+
closestElement(
|
|
5669
|
+
selector, // selector like in .closest()
|
|
5670
|
+
base = this, // extra functionality to skip a parent
|
|
5671
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5672
|
+
!el || el === document || el === window
|
|
5673
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
5674
|
+
: found
|
|
5675
|
+
? found // found a selector INside this element
|
|
5676
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5677
|
+
) {
|
|
5678
|
+
return __Closest(base);
|
|
5679
|
+
}
|
|
5680
|
+
/* eslint-enable jsdoc/require-param */
|
|
5681
|
+
|
|
5682
|
+
/**
|
|
5683
|
+
* 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.
|
|
5684
|
+
* @param {Object} elem - The element to check.
|
|
5685
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5686
|
+
* @returns {void}
|
|
5687
|
+
*/
|
|
5688
|
+
handleComponentTagRename(elem, tagName) {
|
|
5689
|
+
const tag = tagName.toLowerCase();
|
|
5690
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5691
|
+
|
|
5692
|
+
if (elemTag !== tag) {
|
|
5693
|
+
elem.setAttribute(tag, true);
|
|
5694
|
+
}
|
|
5695
|
+
}
|
|
5696
|
+
|
|
5697
|
+
/**
|
|
5698
|
+
* Validates if an element is a specific Auro component.
|
|
5699
|
+
* @param {Object} elem - The element to validate.
|
|
5700
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
5701
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
5702
|
+
*/
|
|
5703
|
+
elementMatch(elem, tagName) {
|
|
5704
|
+
const tag = tagName.toLowerCase();
|
|
5705
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
5706
|
+
|
|
5707
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
5708
|
+
}
|
|
5709
|
+
};
|
|
5710
|
+
|
|
5641
5711
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5642
5712
|
// See LICENSE in the project root for license information.
|
|
5643
5713
|
|
|
@@ -5670,7 +5740,7 @@ class AuroIcon extends BaseIcon {
|
|
|
5670
5740
|
this.tertiary = false;
|
|
5671
5741
|
this.warning = false;
|
|
5672
5742
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
5673
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5743
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
5674
5744
|
}
|
|
5675
5745
|
|
|
5676
5746
|
// function to define props used within the scope of this component
|
|
@@ -5832,7 +5902,7 @@ class AuroIcon extends BaseIcon {
|
|
|
5832
5902
|
*
|
|
5833
5903
|
*/
|
|
5834
5904
|
static register(name = "auro-icon") {
|
|
5835
|
-
AuroLibraryRuntimeUtils$
|
|
5905
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
5836
5906
|
}
|
|
5837
5907
|
|
|
5838
5908
|
connectedCallback() {
|
|
@@ -5900,12 +5970,192 @@ class AuroIcon extends BaseIcon {
|
|
|
5900
5970
|
|
|
5901
5971
|
var iconVersion = '6.1.2';
|
|
5902
5972
|
|
|
5973
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5974
|
+
// See LICENSE in the project root for license information.
|
|
5975
|
+
|
|
5976
|
+
|
|
5977
|
+
class AuroDependencyVersioning {
|
|
5978
|
+
|
|
5979
|
+
/**
|
|
5980
|
+
* Generates a unique string to be used for child auro element naming.
|
|
5981
|
+
* @private
|
|
5982
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
5983
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
5984
|
+
* @returns {string} - Unique string to be used for naming.
|
|
5985
|
+
*/
|
|
5986
|
+
generateElementName(baseName, version) {
|
|
5987
|
+
let result = baseName;
|
|
5988
|
+
|
|
5989
|
+
result += '-';
|
|
5990
|
+
result += version.replace(/[.]/g, '_');
|
|
5991
|
+
|
|
5992
|
+
return result;
|
|
5993
|
+
}
|
|
5994
|
+
|
|
5995
|
+
/**
|
|
5996
|
+
* Generates a unique string to be used for child auro element naming.
|
|
5997
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
5998
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
5999
|
+
* @returns {string} - Unique string to be used for naming.
|
|
6000
|
+
*/
|
|
6001
|
+
generateTag(baseName, version, tagClass) {
|
|
6002
|
+
const elementName = this.generateElementName(baseName, version);
|
|
6003
|
+
const tag = i$4`${s$2(elementName)}`;
|
|
6004
|
+
|
|
6005
|
+
if (!customElements.get(elementName)) {
|
|
6006
|
+
customElements.define(elementName, class extends tagClass {});
|
|
6007
|
+
}
|
|
6008
|
+
|
|
6009
|
+
return tag;
|
|
6010
|
+
}
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6014
|
+
// See LICENSE in the project root for license information.
|
|
6015
|
+
|
|
6016
|
+
// ---------------------------------------------------------------------
|
|
6017
|
+
|
|
6018
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6019
|
+
|
|
6020
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6021
|
+
|
|
6022
|
+
/* eslint-disable jsdoc/require-param */
|
|
6023
|
+
|
|
6024
|
+
/**
|
|
6025
|
+
* This will register a new custom element with the browser.
|
|
6026
|
+
* @param {String} name - The name of the custom element.
|
|
6027
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6028
|
+
* @returns {void}
|
|
6029
|
+
*/
|
|
6030
|
+
registerComponent(name, componentClass) {
|
|
6031
|
+
if (!customElements.get(name)) {
|
|
6032
|
+
customElements.define(name, class extends componentClass {});
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
|
|
6036
|
+
/**
|
|
6037
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6038
|
+
* @returns {void}
|
|
6039
|
+
*/
|
|
6040
|
+
closestElement(
|
|
6041
|
+
selector, // selector like in .closest()
|
|
6042
|
+
base = this, // extra functionality to skip a parent
|
|
6043
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6044
|
+
!el || el === document || el === window
|
|
6045
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6046
|
+
: found
|
|
6047
|
+
? found // found a selector INside this element
|
|
6048
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6049
|
+
) {
|
|
6050
|
+
return __Closest(base);
|
|
6051
|
+
}
|
|
6052
|
+
/* eslint-enable jsdoc/require-param */
|
|
6053
|
+
|
|
6054
|
+
/**
|
|
6055
|
+
* 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.
|
|
6056
|
+
* @param {Object} elem - The element to check.
|
|
6057
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6058
|
+
* @returns {void}
|
|
6059
|
+
*/
|
|
6060
|
+
handleComponentTagRename(elem, tagName) {
|
|
6061
|
+
const tag = tagName.toLowerCase();
|
|
6062
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6063
|
+
|
|
6064
|
+
if (elemTag !== tag) {
|
|
6065
|
+
elem.setAttribute(tag, true);
|
|
6066
|
+
}
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
/**
|
|
6070
|
+
* Validates if an element is a specific Auro component.
|
|
6071
|
+
* @param {Object} elem - The element to validate.
|
|
6072
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6073
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6074
|
+
*/
|
|
6075
|
+
elementMatch(elem, tagName) {
|
|
6076
|
+
const tag = tagName.toLowerCase();
|
|
6077
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6078
|
+
|
|
6079
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6080
|
+
}
|
|
6081
|
+
};
|
|
6082
|
+
|
|
5903
6083
|
var styleCss$2 = i$2`: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}`;
|
|
5904
6084
|
|
|
5905
6085
|
var colorCss$2 = i$2`[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}`;
|
|
5906
6086
|
|
|
5907
6087
|
var tokensCss$2 = i$2`: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}`;
|
|
5908
6088
|
|
|
6089
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6090
|
+
// See LICENSE in the project root for license information.
|
|
6091
|
+
|
|
6092
|
+
// ---------------------------------------------------------------------
|
|
6093
|
+
|
|
6094
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6095
|
+
|
|
6096
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6097
|
+
|
|
6098
|
+
/* eslint-disable jsdoc/require-param */
|
|
6099
|
+
|
|
6100
|
+
/**
|
|
6101
|
+
* This will register a new custom element with the browser.
|
|
6102
|
+
* @param {String} name - The name of the custom element.
|
|
6103
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6104
|
+
* @returns {void}
|
|
6105
|
+
*/
|
|
6106
|
+
registerComponent(name, componentClass) {
|
|
6107
|
+
if (!customElements.get(name)) {
|
|
6108
|
+
customElements.define(name, class extends componentClass {});
|
|
6109
|
+
}
|
|
6110
|
+
}
|
|
6111
|
+
|
|
6112
|
+
/**
|
|
6113
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6114
|
+
* @returns {void}
|
|
6115
|
+
*/
|
|
6116
|
+
closestElement(
|
|
6117
|
+
selector, // selector like in .closest()
|
|
6118
|
+
base = this, // extra functionality to skip a parent
|
|
6119
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6120
|
+
!el || el === document || el === window
|
|
6121
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6122
|
+
: found
|
|
6123
|
+
? found // found a selector INside this element
|
|
6124
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6125
|
+
) {
|
|
6126
|
+
return __Closest(base);
|
|
6127
|
+
}
|
|
6128
|
+
/* eslint-enable jsdoc/require-param */
|
|
6129
|
+
|
|
6130
|
+
/**
|
|
6131
|
+
* 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.
|
|
6132
|
+
* @param {Object} elem - The element to check.
|
|
6133
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6134
|
+
* @returns {void}
|
|
6135
|
+
*/
|
|
6136
|
+
handleComponentTagRename(elem, tagName) {
|
|
6137
|
+
const tag = tagName.toLowerCase();
|
|
6138
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6139
|
+
|
|
6140
|
+
if (elemTag !== tag) {
|
|
6141
|
+
elem.setAttribute(tag, true);
|
|
6142
|
+
}
|
|
6143
|
+
}
|
|
6144
|
+
|
|
6145
|
+
/**
|
|
6146
|
+
* Validates if an element is a specific Auro component.
|
|
6147
|
+
* @param {Object} elem - The element to validate.
|
|
6148
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6149
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6150
|
+
*/
|
|
6151
|
+
elementMatch(elem, tagName) {
|
|
6152
|
+
const tag = tagName.toLowerCase();
|
|
6153
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6154
|
+
|
|
6155
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6156
|
+
}
|
|
6157
|
+
};
|
|
6158
|
+
|
|
5909
6159
|
var styleCss$1 = i$2`: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}}`;
|
|
5910
6160
|
|
|
5911
6161
|
var colorCss$1 = i$2`: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}`;
|
|
@@ -6224,7 +6474,7 @@ class AuroButton extends r {
|
|
|
6224
6474
|
*
|
|
6225
6475
|
*/
|
|
6226
6476
|
static register(name = "auro-button") {
|
|
6227
|
-
AuroLibraryRuntimeUtils$
|
|
6477
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
6228
6478
|
}
|
|
6229
6479
|
|
|
6230
6480
|
/**
|
|
@@ -6533,22 +6783,22 @@ class AuroInput extends BaseInput {
|
|
|
6533
6783
|
/**
|
|
6534
6784
|
* Generate unique names for dependency components.
|
|
6535
6785
|
*/
|
|
6536
|
-
const versioning = new AuroDependencyVersioning();
|
|
6786
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
6537
6787
|
|
|
6538
6788
|
/**
|
|
6539
6789
|
* @private
|
|
6540
6790
|
*/
|
|
6541
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
6791
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
6542
6792
|
|
|
6543
6793
|
/**
|
|
6544
6794
|
* @private
|
|
6545
6795
|
*/
|
|
6546
|
-
this.buttonTag = versioning.generateTag('auro-button', buttonVersion, AuroButton);
|
|
6796
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
6547
6797
|
|
|
6548
6798
|
/**
|
|
6549
6799
|
* @private
|
|
6550
6800
|
*/
|
|
6551
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
6801
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
6552
6802
|
}
|
|
6553
6803
|
|
|
6554
6804
|
/**
|
|
@@ -6560,7 +6810,7 @@ class AuroInput extends BaseInput {
|
|
|
6560
6810
|
*
|
|
6561
6811
|
*/
|
|
6562
6812
|
static register(name = "auro-input") {
|
|
6563
|
-
AuroLibraryRuntimeUtils$
|
|
6813
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroInput);
|
|
6564
6814
|
}
|
|
6565
6815
|
|
|
6566
6816
|
/**
|