@aurodesignsystem/auro-formkit 2.2.1 → 3.0.0
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 +49 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +18 -178
- package/components/bibtemplate/dist/registered.js +18 -178
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/api.md +129 -58
- package/components/checkbox/demo/api.min.js +41 -8
- package/components/checkbox/demo/index.html +2 -1
- package/components/checkbox/demo/index.md +116 -50
- package/components/checkbox/demo/index.min.js +41 -8
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -0
- package/components/checkbox/dist/index.js +41 -8
- package/components/checkbox/dist/registered.js +41 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.html +2 -1
- package/components/combobox/demo/api.md +102 -1
- package/components/combobox/demo/api.min.js +238 -988
- package/components/combobox/demo/index.html +2 -4
- package/components/combobox/demo/index.md +32 -0
- package/components/combobox/demo/index.min.js +238 -988
- package/components/combobox/demo/readme.html +2 -1
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +8 -0
- package/components/combobox/dist/index.js +196 -786
- package/components/combobox/dist/registered.js +196 -786
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.html +2 -1
- package/components/counter/demo/api.md +29 -10
- package/components/counter/demo/api.min.js +187 -785
- package/components/counter/demo/index.html +2 -1
- package/components/counter/demo/index.md +104 -8
- package/components/counter/demo/index.min.js +187 -785
- package/components/counter/demo/readme.html +2 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +10 -2
- package/components/counter/dist/auro-counter.d.ts +1 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +187 -785
- package/components/counter/dist/registered.js +187 -785
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +2 -4
- package/components/datepicker/demo/api.md +15 -14
- package/components/datepicker/demo/api.min.js +286 -1036
- package/components/datepicker/demo/index.html +2 -4
- package/components/datepicker/demo/index.md +38 -0
- package/components/datepicker/demo/index.min.js +286 -1036
- package/components/datepicker/demo/readme.html +2 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
- package/components/datepicker/dist/index.js +286 -1036
- package/components/datepicker/dist/registered.js +286 -1036
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.html +2 -1
- package/components/dropdown/demo/api.md +173 -82
- package/components/dropdown/demo/api.min.js +41 -183
- package/components/dropdown/demo/index.html +2 -1
- package/components/dropdown/demo/index.md +86 -4
- package/components/dropdown/demo/index.min.js +41 -183
- package/components/dropdown/demo/readme.html +2 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +2 -2
- package/components/dropdown/dist/index.js +41 -183
- package/components/dropdown/dist/registered.js +41 -183
- package/components/form/README.md +1 -1
- package/components/form/demo/api.html +2 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.html +2 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/demo/readme.html +2 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/working.html +2 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +8 -0
- package/components/helptext/dist/index.js +11 -2
- package/components/helptext/dist/registered.js +11 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.html +2 -1
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +108 -18
- package/components/input/demo/api.min.js +117 -402
- package/components/input/demo/index.html +2 -1
- package/components/input/demo/index.md +30 -0
- package/components/input/demo/index.min.js +103 -402
- package/components/input/demo/readme.html +2 -1
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +8 -0
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +103 -402
- package/components/input/dist/registered.js +103 -402
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.html +2 -1
- package/components/menu/demo/api.md +6 -2
- package/components/menu/demo/api.min.js +23 -183
- package/components/menu/demo/index.html +2 -1
- package/components/menu/demo/index.min.js +23 -183
- package/components/menu/demo/readme.html +2 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +23 -183
- package/components/menu/dist/registered.js +23 -183
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.html +2 -1
- package/components/radio/demo/api.md +160 -56
- package/components/radio/demo/api.min.js +35 -8
- package/components/radio/demo/index.html +2 -1
- package/components/radio/demo/index.md +43 -12
- package/components/radio/demo/index.min.js +35 -8
- package/components/radio/demo/readme.html +2 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -0
- package/components/radio/dist/auro-radio.d.ts +6 -0
- package/components/radio/dist/index.js +35 -8
- package/components/radio/dist/registered.js +35 -8
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +112 -35
- package/components/select/demo/api.min.js +116 -589
- package/components/select/demo/index.html +2 -1
- package/components/select/demo/index.md +100 -0
- package/components/select/demo/index.min.js +116 -576
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +8 -0
- package/components/select/dist/index.js +91 -391
- package/components/select/dist/registered.js +91 -391
- package/package.json +23 -23
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +0 -2
- package/components/select/dist/styles/color-css.d.ts +0 -2
- package/components/select/dist/styles/tokens-css.d.ts +0 -2
|
@@ -3,17 +3,17 @@ import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var tokensCss$7 = css`:host{--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15))}`;
|
|
7
7
|
|
|
8
|
-
var styleButtonColorCss = css`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-
|
|
8
|
+
var styleButtonColorCss = css`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-background-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1))}}:host([onDark]) .auroButton{--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05))}@media(hover: hover){:host([onDark]) .auroButton:active:not(:disabled),:host([onDark]) .auroButton:hover:not(:disabled){--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}}`;
|
|
9
9
|
|
|
10
|
-
var styleButtonCss = css
|
|
10
|
+
var styleButtonCss = css`: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}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;touch-action:manipulation;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline:none;transform:unset}`;
|
|
11
11
|
|
|
12
12
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13
13
|
// See LICENSE in the project root for license information.
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
let AuroDependencyVersioning$
|
|
16
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -56,7 +56,7 @@ let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
|
56
56
|
|
|
57
57
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
58
58
|
|
|
59
|
-
let AuroLibraryRuntimeUtils$
|
|
59
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
60
60
|
|
|
61
61
|
/* eslint-disable jsdoc/require-param */
|
|
62
62
|
|
|
@@ -119,111 +119,22 @@ let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
var styleCss$9 = css`: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
|
|
123
|
-
|
|
124
|
-
var colorCss$8 = css`[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}`;
|
|
125
|
-
|
|
126
|
-
var tokensCss$7 = css`: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}`;
|
|
122
|
+
var styleCss$9 = css`: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-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, Book);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{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.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-basic-text-body-sm-font-size, 14px);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--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.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,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}: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}`;
|
|
127
123
|
|
|
128
|
-
|
|
129
|
-
// See LICENSE in the project root for license information.
|
|
130
|
-
|
|
131
|
-
// ---------------------------------------------------------------------
|
|
124
|
+
var colorCss$8 = css`[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{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.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-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.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-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
132
125
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
136
|
-
|
|
137
|
-
/* eslint-disable jsdoc/require-param */
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* This will register a new custom element with the browser.
|
|
141
|
-
* @param {String} name - The name of the custom element.
|
|
142
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
143
|
-
* @returns {void}
|
|
144
|
-
*/
|
|
145
|
-
registerComponent(name, componentClass) {
|
|
146
|
-
if (!customElements.get(name)) {
|
|
147
|
-
customElements.define(name, class extends componentClass {});
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
153
|
-
* @returns {void}
|
|
154
|
-
*/
|
|
155
|
-
closestElement(
|
|
156
|
-
selector, // selector like in .closest()
|
|
157
|
-
base = this, // extra functionality to skip a parent
|
|
158
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
159
|
-
!el || el === document || el === window
|
|
160
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
161
|
-
: found
|
|
162
|
-
? found // found a selector INside this element
|
|
163
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
164
|
-
) {
|
|
165
|
-
return __Closest(base);
|
|
166
|
-
}
|
|
167
|
-
/* eslint-enable jsdoc/require-param */
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* 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.
|
|
171
|
-
* @param {Object} elem - The element to check.
|
|
172
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
173
|
-
* @returns {void}
|
|
174
|
-
*/
|
|
175
|
-
handleComponentTagRename(elem, tagName) {
|
|
176
|
-
const tag = tagName.toLowerCase();
|
|
177
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
178
|
-
|
|
179
|
-
if (elemTag !== tag) {
|
|
180
|
-
elem.setAttribute(tag, true);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Validates if an element is a specific Auro component.
|
|
186
|
-
* @param {Object} elem - The element to validate.
|
|
187
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
188
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
189
|
-
*/
|
|
190
|
-
elementMatch(elem, tagName) {
|
|
191
|
-
const tag = tagName.toLowerCase();
|
|
192
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
193
|
-
|
|
194
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
195
|
-
}
|
|
196
|
-
};
|
|
126
|
+
var tokensCss$6 = css`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
197
127
|
|
|
198
128
|
var styleCss$8 = css`: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}}`;
|
|
199
129
|
|
|
200
|
-
var colorCss$7 = css`: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-
|
|
130
|
+
var colorCss$7 = css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
201
131
|
|
|
202
|
-
var tokensCss$
|
|
132
|
+
var tokensCss$5 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
203
133
|
|
|
204
134
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
205
135
|
// See LICENSE in the project root for license information.
|
|
206
136
|
|
|
207
137
|
|
|
208
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
209
|
-
/**
|
|
210
|
-
* The auro-loader element is an easy to use animated loader component.
|
|
211
|
-
*
|
|
212
|
-
* @attr {Boolean} pulse - sets loader type
|
|
213
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
214
|
-
* @attr {Boolean} laser - sets loader type
|
|
215
|
-
* @attr {Boolean} orbit - sets loader type
|
|
216
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
217
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
218
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
219
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
220
|
-
* @attr {Boolean} sm - sets size to small
|
|
221
|
-
* @attr {Boolean} md - sets size to medium
|
|
222
|
-
* @attr {Boolean} lg - sets size to large
|
|
223
|
-
* @csspart element - apply style to adjust speed of animation
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
// build the component class
|
|
227
138
|
class AuroLoader extends LitElement {
|
|
228
139
|
constructor() {
|
|
229
140
|
super();
|
|
@@ -246,7 +157,7 @@ class AuroLoader extends LitElement {
|
|
|
246
157
|
/**
|
|
247
158
|
* @private
|
|
248
159
|
*/
|
|
249
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
160
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
250
161
|
|
|
251
162
|
this.orbit = false;
|
|
252
163
|
this.ringworm = false;
|
|
@@ -257,19 +168,35 @@ class AuroLoader extends LitElement {
|
|
|
257
168
|
// function to define props used within the scope of this component
|
|
258
169
|
static get properties() {
|
|
259
170
|
return {
|
|
260
|
-
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Sets loader to laser type.
|
|
174
|
+
*/
|
|
175
|
+
laser: {
|
|
261
176
|
type: Boolean,
|
|
262
177
|
reflect: true
|
|
263
178
|
},
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Sets loader to orbit type.
|
|
182
|
+
*/
|
|
264
183
|
orbit: {
|
|
265
184
|
type: Boolean,
|
|
266
185
|
reflect: true
|
|
267
186
|
},
|
|
268
|
-
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Sets loader to pulse type.
|
|
190
|
+
*/
|
|
191
|
+
pulse: {
|
|
269
192
|
type: Boolean,
|
|
270
193
|
reflect: true
|
|
271
194
|
},
|
|
272
|
-
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Sets loader to ringworm type.
|
|
198
|
+
*/
|
|
199
|
+
ringworm: {
|
|
273
200
|
type: Boolean,
|
|
274
201
|
reflect: true
|
|
275
202
|
}
|
|
@@ -280,7 +207,7 @@ class AuroLoader extends LitElement {
|
|
|
280
207
|
return [
|
|
281
208
|
css`${styleCss$8}`,
|
|
282
209
|
css`${colorCss$7}`,
|
|
283
|
-
css`${tokensCss$
|
|
210
|
+
css`${tokensCss$5}`
|
|
284
211
|
];
|
|
285
212
|
}
|
|
286
213
|
|
|
@@ -293,7 +220,7 @@ class AuroLoader extends LitElement {
|
|
|
293
220
|
*
|
|
294
221
|
*/
|
|
295
222
|
static register(name = "auro-loader") {
|
|
296
|
-
AuroLibraryRuntimeUtils$
|
|
223
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroLoader);
|
|
297
224
|
}
|
|
298
225
|
|
|
299
226
|
firstUpdated() {
|
|
@@ -343,23 +270,26 @@ class AuroLoader extends LitElement {
|
|
|
343
270
|
}
|
|
344
271
|
}
|
|
345
272
|
|
|
346
|
-
var loaderVersion = '
|
|
273
|
+
var loaderVersion = '5.0.0';
|
|
347
274
|
|
|
275
|
+
/* eslint-disable max-lines */
|
|
348
276
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
349
277
|
// See LICENSE in the project root for license information.
|
|
350
278
|
|
|
351
279
|
|
|
352
280
|
/**
|
|
353
281
|
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
354
|
-
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
282
|
+
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
355
283
|
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
356
284
|
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
285
|
+
* @attr {String} loadingText - Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
357
286
|
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
358
287
|
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
359
288
|
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
360
289
|
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
361
290
|
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
362
291
|
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
292
|
+
* @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
|
|
363
293
|
* @attr {String} id - Set the unique ID of an element.
|
|
364
294
|
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
365
295
|
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
@@ -404,6 +334,7 @@ class AuroButton extends LitElement {
|
|
|
404
334
|
this.rounded = false;
|
|
405
335
|
this.slim = false;
|
|
406
336
|
this.fluid = false;
|
|
337
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
407
338
|
|
|
408
339
|
// Support for HTML5 forms
|
|
409
340
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -418,7 +349,7 @@ class AuroButton extends LitElement {
|
|
|
418
349
|
/**
|
|
419
350
|
* Generate unique names for dependency components.
|
|
420
351
|
*/
|
|
421
|
-
const versioning = new AuroDependencyVersioning$
|
|
352
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
422
353
|
|
|
423
354
|
/**
|
|
424
355
|
* @private
|
|
@@ -428,7 +359,7 @@ class AuroButton extends LitElement {
|
|
|
428
359
|
|
|
429
360
|
static get styles() {
|
|
430
361
|
return [
|
|
431
|
-
tokensCss$
|
|
362
|
+
tokensCss$6,
|
|
432
363
|
styleCss$9,
|
|
433
364
|
colorCss$8
|
|
434
365
|
];
|
|
@@ -464,6 +395,9 @@ class AuroButton extends LitElement {
|
|
|
464
395
|
type: Boolean,
|
|
465
396
|
reflect: true
|
|
466
397
|
},
|
|
398
|
+
loadingText: {
|
|
399
|
+
type: String
|
|
400
|
+
},
|
|
467
401
|
onDark: {
|
|
468
402
|
type: Boolean,
|
|
469
403
|
reflect: true
|
|
@@ -484,6 +418,10 @@ class AuroButton extends LitElement {
|
|
|
484
418
|
type: String,
|
|
485
419
|
reflect: true
|
|
486
420
|
},
|
|
421
|
+
ariaexpanded: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
reflect: true
|
|
424
|
+
},
|
|
487
425
|
title: {
|
|
488
426
|
type: String,
|
|
489
427
|
reflect: true
|
|
@@ -513,7 +451,7 @@ class AuroButton extends LitElement {
|
|
|
513
451
|
*
|
|
514
452
|
*/
|
|
515
453
|
static register(name = "auro-button") {
|
|
516
|
-
AuroLibraryRuntimeUtils$
|
|
454
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
517
455
|
}
|
|
518
456
|
|
|
519
457
|
/**
|
|
@@ -555,12 +493,22 @@ class AuroButton extends LitElement {
|
|
|
555
493
|
this.notifyReady();
|
|
556
494
|
}
|
|
557
495
|
|
|
496
|
+
/**
|
|
497
|
+
* Submits the form that this button is associated with.
|
|
498
|
+
* @private
|
|
499
|
+
* @returns {void}
|
|
500
|
+
*/
|
|
558
501
|
surfaceSubmitEvent() {
|
|
559
502
|
if (this.form) {
|
|
560
503
|
this.form.requestSubmit();
|
|
561
504
|
}
|
|
562
505
|
}
|
|
563
506
|
|
|
507
|
+
/**
|
|
508
|
+
* Returns the form element that this button is associated with.
|
|
509
|
+
* @private
|
|
510
|
+
* @returns {HTMLFormElement|null}
|
|
511
|
+
*/
|
|
564
512
|
get form() {
|
|
565
513
|
return this.internals ? this.internals.form : null;
|
|
566
514
|
}
|
|
@@ -580,8 +528,9 @@ class AuroButton extends LitElement {
|
|
|
580
528
|
return html$1`
|
|
581
529
|
<button
|
|
582
530
|
part="button"
|
|
583
|
-
aria-label="${ifDefined(this.
|
|
531
|
+
aria-label="${ifDefined(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
584
532
|
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
533
|
+
aria-expanded="${ifDefined(this.ariaexpanded)}"
|
|
585
534
|
?autofocus="${this.autofocus}"
|
|
586
535
|
class="${classMap(classes)}"
|
|
587
536
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -609,76 +558,6 @@ class AuroButton extends LitElement {
|
|
|
609
558
|
}
|
|
610
559
|
}
|
|
611
560
|
|
|
612
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
613
|
-
// See LICENSE in the project root for license information.
|
|
614
|
-
|
|
615
|
-
// ---------------------------------------------------------------------
|
|
616
|
-
|
|
617
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
618
|
-
|
|
619
|
-
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
620
|
-
|
|
621
|
-
/* eslint-disable jsdoc/require-param */
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* This will register a new custom element with the browser.
|
|
625
|
-
* @param {String} name - The name of the custom element.
|
|
626
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
627
|
-
* @returns {void}
|
|
628
|
-
*/
|
|
629
|
-
registerComponent(name, componentClass) {
|
|
630
|
-
if (!customElements.get(name)) {
|
|
631
|
-
customElements.define(name, class extends componentClass {});
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
637
|
-
* @returns {void}
|
|
638
|
-
*/
|
|
639
|
-
closestElement(
|
|
640
|
-
selector, // selector like in .closest()
|
|
641
|
-
base = this, // extra functionality to skip a parent
|
|
642
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
643
|
-
!el || el === document || el === window
|
|
644
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
645
|
-
: found
|
|
646
|
-
? found // found a selector INside this element
|
|
647
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
648
|
-
) {
|
|
649
|
-
return __Closest(base);
|
|
650
|
-
}
|
|
651
|
-
/* eslint-enable jsdoc/require-param */
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* 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.
|
|
655
|
-
* @param {Object} elem - The element to check.
|
|
656
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
657
|
-
* @returns {void}
|
|
658
|
-
*/
|
|
659
|
-
handleComponentTagRename(elem, tagName) {
|
|
660
|
-
const tag = tagName.toLowerCase();
|
|
661
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
662
|
-
|
|
663
|
-
if (elemTag !== tag) {
|
|
664
|
-
elem.setAttribute(tag, true);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* Validates if an element is a specific Auro component.
|
|
670
|
-
* @param {Object} elem - The element to validate.
|
|
671
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
672
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
673
|
-
*/
|
|
674
|
-
elementMatch(elem, tagName) {
|
|
675
|
-
const tag = tagName.toLowerCase();
|
|
676
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
677
|
-
|
|
678
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
|
|
682
561
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
683
562
|
// See LICENSE in the project root for license information.
|
|
684
563
|
|
|
@@ -690,7 +569,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
690
569
|
return [
|
|
691
570
|
styleButtonCss,
|
|
692
571
|
styleButtonColorCss,
|
|
693
|
-
|
|
572
|
+
tokensCss$7
|
|
694
573
|
];
|
|
695
574
|
}
|
|
696
575
|
|
|
@@ -703,7 +582,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
703
582
|
*
|
|
704
583
|
*/
|
|
705
584
|
static register(name = "auro-counter-button") {
|
|
706
|
-
AuroLibraryRuntimeUtils$
|
|
585
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterButton);
|
|
707
586
|
}
|
|
708
587
|
}
|
|
709
588
|
|
|
@@ -713,46 +592,6 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
713
592
|
customElements.define("auro-counter-button", AuroCounterButton);
|
|
714
593
|
}
|
|
715
594
|
|
|
716
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
717
|
-
// See LICENSE in the project root for license information.
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Generates a unique string to be used for child auro element naming.
|
|
724
|
-
* @private
|
|
725
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
726
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
727
|
-
* @returns {string} - Unique string to be used for naming.
|
|
728
|
-
*/
|
|
729
|
-
generateElementName(baseName, version) {
|
|
730
|
-
let result = baseName;
|
|
731
|
-
|
|
732
|
-
result += '-';
|
|
733
|
-
result += version.replace(/[.]/g, '_');
|
|
734
|
-
|
|
735
|
-
return result;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Generates a unique string to be used for child auro element naming.
|
|
740
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
741
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
742
|
-
* @returns {string} - Unique string to be used for naming.
|
|
743
|
-
*/
|
|
744
|
-
generateTag(baseName, version, tagClass) {
|
|
745
|
-
const elementName = this.generateElementName(baseName, version);
|
|
746
|
-
const tag = literal`${unsafeStatic(elementName)}`;
|
|
747
|
-
|
|
748
|
-
if (!customElements.get(elementName)) {
|
|
749
|
-
customElements.define(elementName, class extends tagClass {});
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
return tag;
|
|
753
|
-
}
|
|
754
|
-
};
|
|
755
|
-
|
|
756
595
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
757
596
|
// See LICENSE in the project root for license information.
|
|
758
597
|
|
|
@@ -819,7 +658,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
819
658
|
return _fetchMap$2.get(uri);
|
|
820
659
|
};
|
|
821
660
|
|
|
822
|
-
var styleCss$7 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}
|
|
661
|
+
var styleCss$7 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
823
662
|
|
|
824
663
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
825
664
|
// See LICENSE in the project root for license information.
|
|
@@ -827,7 +666,6 @@ var styleCss$7 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
827
666
|
|
|
828
667
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
829
668
|
/**
|
|
830
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
831
669
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
832
670
|
*/
|
|
833
671
|
|
|
@@ -842,6 +680,10 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
842
680
|
static get properties() {
|
|
843
681
|
return {
|
|
844
682
|
...super.properties,
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Set value for on-dark version of auro-icon.
|
|
686
|
+
*/
|
|
845
687
|
onDark: {
|
|
846
688
|
type: Boolean,
|
|
847
689
|
reflect: true
|
|
@@ -900,81 +742,11 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
900
742
|
}
|
|
901
743
|
};
|
|
902
744
|
|
|
903
|
-
var tokensCss$
|
|
904
|
-
|
|
905
|
-
var colorCss$6 = css`: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)}`;
|
|
906
|
-
|
|
907
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
908
|
-
// See LICENSE in the project root for license information.
|
|
909
|
-
|
|
910
|
-
// ---------------------------------------------------------------------
|
|
911
|
-
|
|
912
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
913
|
-
|
|
914
|
-
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
745
|
+
var tokensCss$4 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
915
746
|
|
|
916
|
-
|
|
747
|
+
var colorCss$6 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=fareOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-emerald, #139142)}:host(:not([onDark])[variant=fareOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=fareOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
917
748
|
|
|
918
|
-
|
|
919
|
-
* This will register a new custom element with the browser.
|
|
920
|
-
* @param {String} name - The name of the custom element.
|
|
921
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
922
|
-
* @returns {void}
|
|
923
|
-
*/
|
|
924
|
-
registerComponent(name, componentClass) {
|
|
925
|
-
if (!customElements.get(name)) {
|
|
926
|
-
customElements.define(name, class extends componentClass {});
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
932
|
-
* @returns {void}
|
|
933
|
-
*/
|
|
934
|
-
closestElement(
|
|
935
|
-
selector, // selector like in .closest()
|
|
936
|
-
base = this, // extra functionality to skip a parent
|
|
937
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
938
|
-
!el || el === document || el === window
|
|
939
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
940
|
-
: found
|
|
941
|
-
? found // found a selector INside this element
|
|
942
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
943
|
-
) {
|
|
944
|
-
return __Closest(base);
|
|
945
|
-
}
|
|
946
|
-
/* eslint-enable jsdoc/require-param */
|
|
947
|
-
|
|
948
|
-
/**
|
|
949
|
-
* 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.
|
|
950
|
-
* @param {Object} elem - The element to check.
|
|
951
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
952
|
-
* @returns {void}
|
|
953
|
-
*/
|
|
954
|
-
handleComponentTagRename(elem, tagName) {
|
|
955
|
-
const tag = tagName.toLowerCase();
|
|
956
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
957
|
-
|
|
958
|
-
if (elemTag !== tag) {
|
|
959
|
-
elem.setAttribute(tag, true);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* Validates if an element is a specific Auro component.
|
|
965
|
-
* @param {Object} elem - The element to validate.
|
|
966
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
967
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
968
|
-
*/
|
|
969
|
-
elementMatch(elem, tagName) {
|
|
970
|
-
const tag = tagName.toLowerCase();
|
|
971
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
972
|
-
|
|
973
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
974
|
-
}
|
|
975
|
-
};
|
|
976
|
-
|
|
977
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
749
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
978
750
|
// See LICENSE in the project root for license information.
|
|
979
751
|
|
|
980
752
|
|
|
@@ -982,6 +754,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
982
754
|
constructor() {
|
|
983
755
|
super();
|
|
984
756
|
|
|
757
|
+
this.variant = undefined;
|
|
985
758
|
this.privateDefaults();
|
|
986
759
|
}
|
|
987
760
|
|
|
@@ -991,22 +764,8 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
991
764
|
* @returns {void}
|
|
992
765
|
*/
|
|
993
766
|
privateDefaults() {
|
|
994
|
-
this.accent = false;
|
|
995
|
-
this.customColor = false;
|
|
996
|
-
this.customSvg = false;
|
|
997
|
-
this.disabled = false;
|
|
998
|
-
this.emphasis = false;
|
|
999
|
-
this.error = false;
|
|
1000
|
-
this.info = false;
|
|
1001
|
-
this.label = false;
|
|
1002
|
-
this.primary = false;
|
|
1003
|
-
this.secondary = false;
|
|
1004
|
-
this.subtle = false;
|
|
1005
|
-
this.success = false;
|
|
1006
|
-
this.tertiary = false;
|
|
1007
|
-
this.warning = false;
|
|
1008
767
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
1009
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
768
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
1010
769
|
}
|
|
1011
770
|
|
|
1012
771
|
// function to define props used within the scope of this component
|
|
@@ -1014,14 +773,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1014
773
|
return {
|
|
1015
774
|
...super.properties,
|
|
1016
775
|
|
|
1017
|
-
/**
|
|
1018
|
-
* Sets the icon to use the accent style.
|
|
1019
|
-
*/
|
|
1020
|
-
accent: {
|
|
1021
|
-
type: Boolean,
|
|
1022
|
-
reflect: true
|
|
1023
|
-
},
|
|
1024
|
-
|
|
1025
776
|
/**
|
|
1026
777
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
1027
778
|
*/
|
|
@@ -1052,38 +803,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1052
803
|
type: Boolean
|
|
1053
804
|
},
|
|
1054
805
|
|
|
1055
|
-
/**
|
|
1056
|
-
* Sets the icon to use the disabled style.
|
|
1057
|
-
*/
|
|
1058
|
-
disabled: {
|
|
1059
|
-
type: Boolean,
|
|
1060
|
-
reflect: true
|
|
1061
|
-
},
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* Sets the icon to use the emphasis style.
|
|
1065
|
-
*/
|
|
1066
|
-
emphasis: {
|
|
1067
|
-
type: Boolean,
|
|
1068
|
-
reflect: true
|
|
1069
|
-
},
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* Sets the icon to use the error style.
|
|
1073
|
-
*/
|
|
1074
|
-
error: {
|
|
1075
|
-
type: Boolean,
|
|
1076
|
-
reflect: true
|
|
1077
|
-
},
|
|
1078
|
-
|
|
1079
|
-
/**
|
|
1080
|
-
* Sets the icon to use the info style.
|
|
1081
|
-
*/
|
|
1082
|
-
info: {
|
|
1083
|
-
type: Boolean,
|
|
1084
|
-
reflect: true
|
|
1085
|
-
},
|
|
1086
|
-
|
|
1087
806
|
/**
|
|
1088
807
|
* Exposes content in slot as icon label.
|
|
1089
808
|
*/
|
|
@@ -1101,50 +820,10 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1101
820
|
},
|
|
1102
821
|
|
|
1103
822
|
/**
|
|
1104
|
-
*
|
|
1105
|
-
*/
|
|
1106
|
-
primary: {
|
|
1107
|
-
type: Boolean,
|
|
1108
|
-
reflect: true
|
|
1109
|
-
},
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* Sets the icon to use the secondary style.
|
|
823
|
+
* The style of the icon. The accepted variants are `accent1`, `disabled`, `muted`, `statusDefault`, `statusInfo`, `statusSuccess`, `statusWarning`, `statusError`, `statusInfoSubtle`, `statusSuccessSubtle`, `statusWarningSubtle`, `statusErrorSubtle`, `fareBasicEconomy`, `fareBusiness`, `fareEconomy`, `fareFirst`, `farePremiumEconomy`, `fareOneWorldEmerald`, `fareOneWorldSapphire`, `fareOneWorldRuby`.
|
|
1113
824
|
*/
|
|
1114
|
-
|
|
1115
|
-
type:
|
|
1116
|
-
reflect: true
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
* Sets the icon to use the subtle style.
|
|
1121
|
-
*/
|
|
1122
|
-
subtle: {
|
|
1123
|
-
type: Boolean,
|
|
1124
|
-
reflect: true
|
|
1125
|
-
},
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* Sets the icon to use the success style.
|
|
1129
|
-
*/
|
|
1130
|
-
success: {
|
|
1131
|
-
type: Boolean,
|
|
1132
|
-
reflect: true
|
|
1133
|
-
},
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* Sets the icon to use the tertiary style.
|
|
1137
|
-
*/
|
|
1138
|
-
tertiary: {
|
|
1139
|
-
type: Boolean,
|
|
1140
|
-
reflect: true
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* Sets the icon to use the warning style.
|
|
1145
|
-
*/
|
|
1146
|
-
warning: {
|
|
1147
|
-
type: Boolean,
|
|
825
|
+
variant: {
|
|
826
|
+
type: String,
|
|
1148
827
|
reflect: true
|
|
1149
828
|
}
|
|
1150
829
|
};
|
|
@@ -1153,7 +832,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1153
832
|
static get styles() {
|
|
1154
833
|
return [
|
|
1155
834
|
super.styles,
|
|
1156
|
-
css`${tokensCss$
|
|
835
|
+
css`${tokensCss$4}`,
|
|
1157
836
|
css`${styleCss$7}`,
|
|
1158
837
|
css`${colorCss$6}`
|
|
1159
838
|
];
|
|
@@ -1168,7 +847,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1168
847
|
*
|
|
1169
848
|
*/
|
|
1170
849
|
static register(name = "auro-icon") {
|
|
1171
|
-
AuroLibraryRuntimeUtils$
|
|
850
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
1172
851
|
}
|
|
1173
852
|
|
|
1174
853
|
connectedCallback() {
|
|
@@ -1234,7 +913,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1234
913
|
}
|
|
1235
914
|
};
|
|
1236
915
|
|
|
1237
|
-
var iconVersion$2 = '
|
|
916
|
+
var iconVersion$2 = '8.0.1';
|
|
1238
917
|
|
|
1239
918
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1240
919
|
// See LICENSE in the project root for license information.
|
|
@@ -1242,7 +921,7 @@ var iconVersion$2 = '7.0.1';
|
|
|
1242
921
|
|
|
1243
922
|
class AuroFormValidation {
|
|
1244
923
|
constructor() {
|
|
1245
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
924
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
1246
925
|
}
|
|
1247
926
|
|
|
1248
927
|
/**
|
|
@@ -1574,11 +1253,9 @@ var plusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width"
|
|
|
1574
1253
|
|
|
1575
1254
|
var minusIcon = {"role":"img","color":"currentColor","title":"","desc":"","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"minus-lg","category":"interface","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.75 12.75h12.5a.75.75 0 1 0 0-1.5H5.75a.75.75 0 1 0 0 1.5\"/></svg>"};
|
|
1576
1255
|
|
|
1577
|
-
var
|
|
1256
|
+
var colorCss$5 = css`.label{color:var(--ds-auro-counter-label-text-color)}[name=description]::slotted(*){color:var(--ds-auro-counter-description-text-color)}.controlIcon{color:var(--ds-auro-counter-icon-color)}.quantityWrapper{background-color:var(--ds-auro-counter-control-background-color);color:var(--ds-auro-counter-quantity-text-color)}:host::part(counterControl):focus-visible{outline-color:var(--ds-auro-counter-control-border-color)}[disabled],:host([disabled]){--ds-auro-counter-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}[onDark],:host([onDark]){--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}[onDark][disabled],:host([onDark][disabled]){--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-counter-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1578
1257
|
|
|
1579
|
-
var
|
|
1580
|
-
|
|
1581
|
-
var styleCss$6 = css`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;border-radius:var(--ds-size-500, 2.5rem);line-height:0;touch-action:manipulation}:host::part(counterControl):focus-visible{outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem)}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
1258
|
+
var styleCss$6 = css`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;border-radius:var(--ds-size-500, 2.5rem);line-height:0;touch-action:manipulation}:host::part(counterControl):focus-visible{outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem)}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, $ds-size-500) 0 0 var(--ds-size-500, $ds-size-500);--ds-auro-counter-control-padding: var(--ds-size-50, $ds-size-50) var(--ds-size-50, $ds-size-50) var(--ds-size-50, $ds-size-50) var(--ds-size-100, $ds-size-100)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, $ds-size-500) var(--ds-size-500, $ds-size-500) 0;--ds-auro-counter-control-padding: var(--ds-size-50, $ds-size-50) var(--ds-size-100, $ds-size-100) var(--ds-size-50, $ds-size-50) var(--ds-size-50, $ds-size-50)}auro-counter-button{display:flex}`;
|
|
1582
1259
|
|
|
1583
1260
|
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1584
1261
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -1606,6 +1283,7 @@ class AuroCounter extends LitElement {
|
|
|
1606
1283
|
this.disableMin = false;
|
|
1607
1284
|
this.max = 9;
|
|
1608
1285
|
this.min = 0;
|
|
1286
|
+
this.onDark = false;
|
|
1609
1287
|
this.validity = undefined;
|
|
1610
1288
|
this.value = undefined;
|
|
1611
1289
|
|
|
@@ -1703,6 +1381,14 @@ class AuroCounter extends LitElement {
|
|
|
1703
1381
|
reflect: true,
|
|
1704
1382
|
},
|
|
1705
1383
|
|
|
1384
|
+
/**
|
|
1385
|
+
* If declared, the counter will be rendered with onDark styles.
|
|
1386
|
+
*/
|
|
1387
|
+
onDark: {
|
|
1388
|
+
type: Boolean,
|
|
1389
|
+
reflect: true
|
|
1390
|
+
},
|
|
1391
|
+
|
|
1706
1392
|
/**
|
|
1707
1393
|
* The validity state of the counter.
|
|
1708
1394
|
*/
|
|
@@ -1727,12 +1413,12 @@ class AuroCounter extends LitElement {
|
|
|
1727
1413
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1728
1414
|
*/
|
|
1729
1415
|
static register(name = "auro-counter") {
|
|
1730
|
-
AuroLibraryRuntimeUtils$
|
|
1416
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounter);
|
|
1731
1417
|
}
|
|
1732
1418
|
|
|
1733
1419
|
static get styles() {
|
|
1734
1420
|
return [
|
|
1735
|
-
tokensCss$
|
|
1421
|
+
tokensCss$7,
|
|
1736
1422
|
colorCss$5,
|
|
1737
1423
|
styleCss$6
|
|
1738
1424
|
];
|
|
@@ -1877,6 +1563,7 @@ class AuroCounter extends LitElement {
|
|
|
1877
1563
|
tabindex="-1"
|
|
1878
1564
|
part="controlMinus"
|
|
1879
1565
|
@click="${() => this.decrement()}"
|
|
1566
|
+
?onDark="${this.onDark}"
|
|
1880
1567
|
?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
|
|
1881
1568
|
>
|
|
1882
1569
|
<${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(minusIcon)} </${this.iconTag}>
|
|
@@ -1892,6 +1579,7 @@ class AuroCounter extends LitElement {
|
|
|
1892
1579
|
tabindex="-1"
|
|
1893
1580
|
part="controlPlus"
|
|
1894
1581
|
@click="${() => this.increment()}"
|
|
1582
|
+
?onDark="${this.onDark}"
|
|
1895
1583
|
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
1896
1584
|
>
|
|
1897
1585
|
<${this.iconTag} class="controlIcon" slot="icon" customSvg> ${IconUtil.generateSvgHtml(plusIcon)} </${this.iconTag}>
|
|
@@ -1911,7 +1599,7 @@ var styleCss$5 = css`:host{position:relative;display:block}[slot=trigger],::slot
|
|
|
1911
1599
|
|
|
1912
1600
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1913
1601
|
|
|
1914
|
-
let AuroLibraryRuntimeUtils$
|
|
1602
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
1915
1603
|
|
|
1916
1604
|
/* eslint-disable jsdoc/require-param */
|
|
1917
1605
|
|
|
@@ -4212,7 +3900,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
4212
3900
|
return _fetchMap$1.get(uri);
|
|
4213
3901
|
};
|
|
4214
3902
|
|
|
4215
|
-
var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}
|
|
3903
|
+
var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
4216
3904
|
|
|
4217
3905
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4218
3906
|
// See LICENSE in the project root for license information.
|
|
@@ -4220,7 +3908,6 @@ var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
4220
3908
|
|
|
4221
3909
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
4222
3910
|
/**
|
|
4223
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
4224
3911
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
4225
3912
|
*/
|
|
4226
3913
|
|
|
@@ -4235,6 +3922,10 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
4235
3922
|
static get properties() {
|
|
4236
3923
|
return {
|
|
4237
3924
|
...super.properties,
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* Set value for on-dark version of auro-icon.
|
|
3928
|
+
*/
|
|
4238
3929
|
onDark: {
|
|
4239
3930
|
type: Boolean,
|
|
4240
3931
|
reflect: true
|
|
@@ -4283,91 +3974,21 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
4283
3974
|
const svg = await this.fetchIcon(this.category, this.name);
|
|
4284
3975
|
|
|
4285
3976
|
if (svg) {
|
|
4286
|
-
this.svg = svg;
|
|
4287
|
-
} else if (!svg) {
|
|
4288
|
-
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
4289
|
-
|
|
4290
|
-
this.svg = penDOM.body.firstChild;
|
|
4291
|
-
}
|
|
4292
|
-
}
|
|
4293
|
-
}
|
|
4294
|
-
};
|
|
4295
|
-
|
|
4296
|
-
var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-default, #676767);--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
4297
|
-
|
|
4298
|
-
var colorCss$3 = css`: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)}`;
|
|
4299
|
-
|
|
4300
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4301
|
-
// See LICENSE in the project root for license information.
|
|
4302
|
-
|
|
4303
|
-
// ---------------------------------------------------------------------
|
|
4304
|
-
|
|
4305
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4306
|
-
|
|
4307
|
-
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4308
|
-
|
|
4309
|
-
/* eslint-disable jsdoc/require-param */
|
|
4310
|
-
|
|
4311
|
-
/**
|
|
4312
|
-
* This will register a new custom element with the browser.
|
|
4313
|
-
* @param {String} name - The name of the custom element.
|
|
4314
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
4315
|
-
* @returns {void}
|
|
4316
|
-
*/
|
|
4317
|
-
registerComponent(name, componentClass) {
|
|
4318
|
-
if (!customElements.get(name)) {
|
|
4319
|
-
customElements.define(name, class extends componentClass {});
|
|
4320
|
-
}
|
|
4321
|
-
}
|
|
4322
|
-
|
|
4323
|
-
/**
|
|
4324
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
4325
|
-
* @returns {void}
|
|
4326
|
-
*/
|
|
4327
|
-
closestElement(
|
|
4328
|
-
selector, // selector like in .closest()
|
|
4329
|
-
base = this, // extra functionality to skip a parent
|
|
4330
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4331
|
-
!el || el === document || el === window
|
|
4332
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
4333
|
-
: found
|
|
4334
|
-
? found // found a selector INside this element
|
|
4335
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4336
|
-
) {
|
|
4337
|
-
return __Closest(base);
|
|
4338
|
-
}
|
|
4339
|
-
/* eslint-enable jsdoc/require-param */
|
|
4340
|
-
|
|
4341
|
-
/**
|
|
4342
|
-
* 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.
|
|
4343
|
-
* @param {Object} elem - The element to check.
|
|
4344
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4345
|
-
* @returns {void}
|
|
4346
|
-
*/
|
|
4347
|
-
handleComponentTagRename(elem, tagName) {
|
|
4348
|
-
const tag = tagName.toLowerCase();
|
|
4349
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4350
|
-
|
|
4351
|
-
if (elemTag !== tag) {
|
|
4352
|
-
elem.setAttribute(tag, true);
|
|
4353
|
-
}
|
|
4354
|
-
}
|
|
4355
|
-
|
|
4356
|
-
/**
|
|
4357
|
-
* Validates if an element is a specific Auro component.
|
|
4358
|
-
* @param {Object} elem - The element to validate.
|
|
4359
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
4360
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4361
|
-
*/
|
|
4362
|
-
elementMatch(elem, tagName) {
|
|
4363
|
-
const tag = tagName.toLowerCase();
|
|
4364
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
3977
|
+
this.svg = svg;
|
|
3978
|
+
} else if (!svg) {
|
|
3979
|
+
const penDOM = new DOMParser().parseFromString(error$1.svg, 'text/html');
|
|
4365
3980
|
|
|
4366
|
-
|
|
3981
|
+
this.svg = penDOM.body.firstChild;
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
4367
3984
|
}
|
|
4368
3985
|
};
|
|
4369
3986
|
|
|
4370
|
-
|
|
3987
|
+
var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
3988
|
+
|
|
3989
|
+
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=fareOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-emerald, #139142)}:host(:not([onDark])[variant=fareOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=fareOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
3990
|
+
|
|
3991
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4371
3992
|
// See LICENSE in the project root for license information.
|
|
4372
3993
|
|
|
4373
3994
|
|
|
@@ -4375,6 +3996,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4375
3996
|
constructor() {
|
|
4376
3997
|
super();
|
|
4377
3998
|
|
|
3999
|
+
this.variant = undefined;
|
|
4378
4000
|
this.privateDefaults();
|
|
4379
4001
|
}
|
|
4380
4002
|
|
|
@@ -4384,20 +4006,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4384
4006
|
* @returns {void}
|
|
4385
4007
|
*/
|
|
4386
4008
|
privateDefaults() {
|
|
4387
|
-
this.accent = false;
|
|
4388
|
-
this.customColor = false;
|
|
4389
|
-
this.customSvg = false;
|
|
4390
|
-
this.disabled = false;
|
|
4391
|
-
this.emphasis = false;
|
|
4392
|
-
this.error = false;
|
|
4393
|
-
this.info = false;
|
|
4394
|
-
this.label = false;
|
|
4395
|
-
this.primary = false;
|
|
4396
|
-
this.secondary = false;
|
|
4397
|
-
this.subtle = false;
|
|
4398
|
-
this.success = false;
|
|
4399
|
-
this.tertiary = false;
|
|
4400
|
-
this.warning = false;
|
|
4401
4009
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4402
4010
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
4403
4011
|
}
|
|
@@ -4407,14 +4015,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4407
4015
|
return {
|
|
4408
4016
|
...super.properties,
|
|
4409
4017
|
|
|
4410
|
-
/**
|
|
4411
|
-
* Sets the icon to use the accent style.
|
|
4412
|
-
*/
|
|
4413
|
-
accent: {
|
|
4414
|
-
type: Boolean,
|
|
4415
|
-
reflect: true
|
|
4416
|
-
},
|
|
4417
|
-
|
|
4418
4018
|
/**
|
|
4419
4019
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
4420
4020
|
*/
|
|
@@ -4445,38 +4045,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4445
4045
|
type: Boolean
|
|
4446
4046
|
},
|
|
4447
4047
|
|
|
4448
|
-
/**
|
|
4449
|
-
* Sets the icon to use the disabled style.
|
|
4450
|
-
*/
|
|
4451
|
-
disabled: {
|
|
4452
|
-
type: Boolean,
|
|
4453
|
-
reflect: true
|
|
4454
|
-
},
|
|
4455
|
-
|
|
4456
|
-
/**
|
|
4457
|
-
* Sets the icon to use the emphasis style.
|
|
4458
|
-
*/
|
|
4459
|
-
emphasis: {
|
|
4460
|
-
type: Boolean,
|
|
4461
|
-
reflect: true
|
|
4462
|
-
},
|
|
4463
|
-
|
|
4464
|
-
/**
|
|
4465
|
-
* Sets the icon to use the error style.
|
|
4466
|
-
*/
|
|
4467
|
-
error: {
|
|
4468
|
-
type: Boolean,
|
|
4469
|
-
reflect: true
|
|
4470
|
-
},
|
|
4471
|
-
|
|
4472
|
-
/**
|
|
4473
|
-
* Sets the icon to use the info style.
|
|
4474
|
-
*/
|
|
4475
|
-
info: {
|
|
4476
|
-
type: Boolean,
|
|
4477
|
-
reflect: true
|
|
4478
|
-
},
|
|
4479
|
-
|
|
4480
4048
|
/**
|
|
4481
4049
|
* Exposes content in slot as icon label.
|
|
4482
4050
|
*/
|
|
@@ -4494,50 +4062,10 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4494
4062
|
},
|
|
4495
4063
|
|
|
4496
4064
|
/**
|
|
4497
|
-
*
|
|
4498
|
-
*/
|
|
4499
|
-
primary: {
|
|
4500
|
-
type: Boolean,
|
|
4501
|
-
reflect: true
|
|
4502
|
-
},
|
|
4503
|
-
|
|
4504
|
-
/**
|
|
4505
|
-
* Sets the icon to use the secondary style.
|
|
4506
|
-
*/
|
|
4507
|
-
secondary: {
|
|
4508
|
-
type: Boolean,
|
|
4509
|
-
reflect: true
|
|
4510
|
-
},
|
|
4511
|
-
|
|
4512
|
-
/**
|
|
4513
|
-
* Sets the icon to use the subtle style.
|
|
4514
|
-
*/
|
|
4515
|
-
subtle: {
|
|
4516
|
-
type: Boolean,
|
|
4517
|
-
reflect: true
|
|
4518
|
-
},
|
|
4519
|
-
|
|
4520
|
-
/**
|
|
4521
|
-
* Sets the icon to use the success style.
|
|
4522
|
-
*/
|
|
4523
|
-
success: {
|
|
4524
|
-
type: Boolean,
|
|
4525
|
-
reflect: true
|
|
4526
|
-
},
|
|
4527
|
-
|
|
4528
|
-
/**
|
|
4529
|
-
* Sets the icon to use the tertiary style.
|
|
4530
|
-
*/
|
|
4531
|
-
tertiary: {
|
|
4532
|
-
type: Boolean,
|
|
4533
|
-
reflect: true
|
|
4534
|
-
},
|
|
4535
|
-
|
|
4536
|
-
/**
|
|
4537
|
-
* Sets the icon to use the warning style.
|
|
4065
|
+
* The style of the icon. The accepted variants are `accent1`, `disabled`, `muted`, `statusDefault`, `statusInfo`, `statusSuccess`, `statusWarning`, `statusError`, `statusInfoSubtle`, `statusSuccessSubtle`, `statusWarningSubtle`, `statusErrorSubtle`, `fareBasicEconomy`, `fareBusiness`, `fareEconomy`, `fareFirst`, `farePremiumEconomy`, `fareOneWorldEmerald`, `fareOneWorldSapphire`, `fareOneWorldRuby`.
|
|
4538
4066
|
*/
|
|
4539
|
-
|
|
4540
|
-
type:
|
|
4067
|
+
variant: {
|
|
4068
|
+
type: String,
|
|
4541
4069
|
reflect: true
|
|
4542
4070
|
}
|
|
4543
4071
|
};
|
|
@@ -4633,7 +4161,7 @@ var styleCss$2$1 = css`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
4633
4161
|
|
|
4634
4162
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4635
4163
|
|
|
4636
|
-
var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-
|
|
4164
|
+
var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
4637
4165
|
|
|
4638
4166
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4639
4167
|
// See LICENSE in the project root for license information.
|
|
@@ -4663,7 +4191,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4663
4191
|
*/
|
|
4664
4192
|
this._mobileBreakpointValue = undefined;
|
|
4665
4193
|
|
|
4666
|
-
AuroLibraryRuntimeUtils$
|
|
4194
|
+
AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4667
4195
|
}
|
|
4668
4196
|
|
|
4669
4197
|
static get styles() {
|
|
@@ -4756,13 +4284,13 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
4756
4284
|
|
|
4757
4285
|
var styleCss$1$1 = css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
4758
4286
|
|
|
4759
|
-
var colorCss$1$1 = css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-
|
|
4287
|
+
var colorCss$1$1 = css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([onDark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark]):focus-within,:host([onDark]):active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][common]),:host([onDark][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([onDark][common]) .trigger:focus-within,:host([onDark][common]) .trigger:active,:host([onDark][bordered]) .trigger:focus-within,:host([onDark][bordered]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([onDark][error]) .trigger:focus-within,:host([onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled][common]),:host([onDark][disabled][bordered]){--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
4760
4288
|
|
|
4761
|
-
var colorCss$4 = css`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
4289
|
+
var colorCss$4 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4762
4290
|
|
|
4763
4291
|
var styleCss$4 = css`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
4764
4292
|
|
|
4765
|
-
var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
4293
|
+
var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
4766
4294
|
|
|
4767
4295
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4768
4296
|
// See LICENSE in the project root for license information.
|
|
@@ -4771,7 +4299,7 @@ var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
|
|
|
4771
4299
|
|
|
4772
4300
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4773
4301
|
|
|
4774
|
-
let AuroLibraryRuntimeUtils$
|
|
4302
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
4775
4303
|
|
|
4776
4304
|
/* eslint-disable jsdoc/require-param */
|
|
4777
4305
|
|
|
@@ -4849,9 +4377,10 @@ class AuroHelpText extends LitElement {
|
|
|
4849
4377
|
super();
|
|
4850
4378
|
|
|
4851
4379
|
this.error = false;
|
|
4380
|
+
this.onDark = false;
|
|
4852
4381
|
this.hasTextContent = false;
|
|
4853
4382
|
|
|
4854
|
-
AuroLibraryRuntimeUtils$
|
|
4383
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4855
4384
|
}
|
|
4856
4385
|
|
|
4857
4386
|
static get styles() {
|
|
@@ -4887,6 +4416,14 @@ class AuroHelpText extends LitElement {
|
|
|
4887
4416
|
type: Boolean,
|
|
4888
4417
|
reflect: true,
|
|
4889
4418
|
},
|
|
4419
|
+
|
|
4420
|
+
/**
|
|
4421
|
+
* If declared, will apply onDark styles.
|
|
4422
|
+
*/
|
|
4423
|
+
onDark: {
|
|
4424
|
+
type: Boolean,
|
|
4425
|
+
reflect: true
|
|
4426
|
+
}
|
|
4890
4427
|
};
|
|
4891
4428
|
}
|
|
4892
4429
|
|
|
@@ -4899,7 +4436,7 @@ class AuroHelpText extends LitElement {
|
|
|
4899
4436
|
*
|
|
4900
4437
|
*/
|
|
4901
4438
|
static register(name = "auro-helptext") {
|
|
4902
|
-
AuroLibraryRuntimeUtils$
|
|
4439
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
4903
4440
|
}
|
|
4904
4441
|
|
|
4905
4442
|
updated() {
|
|
@@ -5018,6 +4555,7 @@ class AuroDropdown extends LitElement {
|
|
|
5018
4555
|
this.tabIndex = 0;
|
|
5019
4556
|
this.noToggle = false;
|
|
5020
4557
|
this.labeled = true;
|
|
4558
|
+
this.onDark = false;
|
|
5021
4559
|
|
|
5022
4560
|
// floaterConfig
|
|
5023
4561
|
this.placement = 'bottom-start';
|
|
@@ -5038,7 +4576,7 @@ class AuroDropdown extends LitElement {
|
|
|
5038
4576
|
/**
|
|
5039
4577
|
* @private
|
|
5040
4578
|
*/
|
|
5041
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4579
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
5042
4580
|
|
|
5043
4581
|
/**
|
|
5044
4582
|
* @private
|
|
@@ -5274,6 +4812,14 @@ class AuroDropdown extends LitElement {
|
|
|
5274
4812
|
reflect: true
|
|
5275
4813
|
},
|
|
5276
4814
|
|
|
4815
|
+
/**
|
|
4816
|
+
* If declared, onDark styles will be applied.
|
|
4817
|
+
*/
|
|
4818
|
+
onDark: {
|
|
4819
|
+
type: Boolean,
|
|
4820
|
+
reflect: true
|
|
4821
|
+
},
|
|
4822
|
+
|
|
5277
4823
|
onSlotChange: {
|
|
5278
4824
|
type: Function,
|
|
5279
4825
|
reflect: false
|
|
@@ -5327,7 +4873,7 @@ class AuroDropdown extends LitElement {
|
|
|
5327
4873
|
*
|
|
5328
4874
|
*/
|
|
5329
4875
|
static register(name = "auro-dropdown") {
|
|
5330
|
-
AuroLibraryRuntimeUtils$
|
|
4876
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5331
4877
|
}
|
|
5332
4878
|
|
|
5333
4879
|
connectedCallback() {
|
|
@@ -5644,14 +5190,14 @@ class AuroDropdown extends LitElement {
|
|
|
5644
5190
|
<${this.iconTag}
|
|
5645
5191
|
category="interface"
|
|
5646
5192
|
name="chevron-down"
|
|
5647
|
-
|
|
5648
|
-
|
|
5193
|
+
?onDark="${this.onDark}"
|
|
5194
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
5649
5195
|
>
|
|
5650
5196
|
</${this.iconTag}>
|
|
5651
5197
|
</div>
|
|
5652
5198
|
` : undefined }
|
|
5653
5199
|
</div>
|
|
5654
|
-
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
5200
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
5655
5201
|
<slot name="helpText"></slot>
|
|
5656
5202
|
</${this.helpTextTag}>
|
|
5657
5203
|
<div class="slotContent">
|
|
@@ -5676,9 +5222,9 @@ var dropdownVersion = '3.0.0';
|
|
|
5676
5222
|
|
|
5677
5223
|
var colorCss$1 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
5678
5224
|
|
|
5679
|
-
var styleCss$2 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500,
|
|
5225
|
+
var styleCss$2 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
5680
5226
|
|
|
5681
|
-
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-color-
|
|
5227
|
+
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
5682
5228
|
|
|
5683
5229
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5684
5230
|
// See LICENSE in the project root for license information.
|
|
@@ -5687,7 +5233,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
5687
5233
|
|
|
5688
5234
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5689
5235
|
|
|
5690
|
-
let AuroLibraryRuntimeUtils$
|
|
5236
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5691
5237
|
|
|
5692
5238
|
/* eslint-disable jsdoc/require-param */
|
|
5693
5239
|
|
|
@@ -5856,7 +5402,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
5856
5402
|
return _fetchMap.get(uri);
|
|
5857
5403
|
};
|
|
5858
5404
|
|
|
5859
|
-
var styleCss$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}
|
|
5405
|
+
var styleCss$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5860
5406
|
|
|
5861
5407
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5862
5408
|
// See LICENSE in the project root for license information.
|
|
@@ -5864,7 +5410,6 @@ var styleCss$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
5864
5410
|
|
|
5865
5411
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
5866
5412
|
/**
|
|
5867
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
5868
5413
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
5869
5414
|
*/
|
|
5870
5415
|
|
|
@@ -5879,6 +5424,10 @@ class BaseIcon extends AuroElement {
|
|
|
5879
5424
|
static get properties() {
|
|
5880
5425
|
return {
|
|
5881
5426
|
...super.properties,
|
|
5427
|
+
|
|
5428
|
+
/**
|
|
5429
|
+
* Set value for on-dark version of auro-icon.
|
|
5430
|
+
*/
|
|
5882
5431
|
onDark: {
|
|
5883
5432
|
type: Boolean,
|
|
5884
5433
|
reflect: true
|
|
@@ -5937,81 +5486,11 @@ class BaseIcon extends AuroElement {
|
|
|
5937
5486
|
}
|
|
5938
5487
|
}
|
|
5939
5488
|
|
|
5940
|
-
var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-color-
|
|
5941
|
-
|
|
5942
|
-
var colorCss$2 = css`: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)}`;
|
|
5943
|
-
|
|
5944
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
5945
|
-
// See LICENSE in the project root for license information.
|
|
5946
|
-
|
|
5947
|
-
// ---------------------------------------------------------------------
|
|
5948
|
-
|
|
5949
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5950
|
-
|
|
5951
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
5952
|
-
|
|
5953
|
-
/* eslint-disable jsdoc/require-param */
|
|
5954
|
-
|
|
5955
|
-
/**
|
|
5956
|
-
* This will register a new custom element with the browser.
|
|
5957
|
-
* @param {String} name - The name of the custom element.
|
|
5958
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
5959
|
-
* @returns {void}
|
|
5960
|
-
*/
|
|
5961
|
-
registerComponent(name, componentClass) {
|
|
5962
|
-
if (!customElements.get(name)) {
|
|
5963
|
-
customElements.define(name, class extends componentClass {});
|
|
5964
|
-
}
|
|
5965
|
-
}
|
|
5966
|
-
|
|
5967
|
-
/**
|
|
5968
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
5969
|
-
* @returns {void}
|
|
5970
|
-
*/
|
|
5971
|
-
closestElement(
|
|
5972
|
-
selector, // selector like in .closest()
|
|
5973
|
-
base = this, // extra functionality to skip a parent
|
|
5974
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
5975
|
-
!el || el === document || el === window
|
|
5976
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
5977
|
-
: found
|
|
5978
|
-
? found // found a selector INside this element
|
|
5979
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
5980
|
-
) {
|
|
5981
|
-
return __Closest(base);
|
|
5982
|
-
}
|
|
5983
|
-
/* eslint-enable jsdoc/require-param */
|
|
5984
|
-
|
|
5985
|
-
/**
|
|
5986
|
-
* 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.
|
|
5987
|
-
* @param {Object} elem - The element to check.
|
|
5988
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
5989
|
-
* @returns {void}
|
|
5990
|
-
*/
|
|
5991
|
-
handleComponentTagRename(elem, tagName) {
|
|
5992
|
-
const tag = tagName.toLowerCase();
|
|
5993
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
5994
|
-
|
|
5995
|
-
if (elemTag !== tag) {
|
|
5996
|
-
elem.setAttribute(tag, true);
|
|
5997
|
-
}
|
|
5998
|
-
}
|
|
5489
|
+
var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
5999
5490
|
|
|
6000
|
-
|
|
6001
|
-
* Validates if an element is a specific Auro component.
|
|
6002
|
-
* @param {Object} elem - The element to validate.
|
|
6003
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6004
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6005
|
-
*/
|
|
6006
|
-
elementMatch(elem, tagName) {
|
|
6007
|
-
const tag = tagName.toLowerCase();
|
|
6008
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6009
|
-
|
|
6010
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
6011
|
-
}
|
|
6012
|
-
};
|
|
5491
|
+
var colorCss$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=fareOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-emerald, #139142)}:host(:not([onDark])[variant=fareOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=fareOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-fare-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
6013
5492
|
|
|
6014
|
-
// Copyright (c)
|
|
5493
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6015
5494
|
// See LICENSE in the project root for license information.
|
|
6016
5495
|
|
|
6017
5496
|
|
|
@@ -6019,6 +5498,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6019
5498
|
constructor() {
|
|
6020
5499
|
super();
|
|
6021
5500
|
|
|
5501
|
+
this.variant = undefined;
|
|
6022
5502
|
this.privateDefaults();
|
|
6023
5503
|
}
|
|
6024
5504
|
|
|
@@ -6028,20 +5508,6 @@ class AuroIcon extends BaseIcon {
|
|
|
6028
5508
|
* @returns {void}
|
|
6029
5509
|
*/
|
|
6030
5510
|
privateDefaults() {
|
|
6031
|
-
this.accent = false;
|
|
6032
|
-
this.customColor = false;
|
|
6033
|
-
this.customSvg = false;
|
|
6034
|
-
this.disabled = false;
|
|
6035
|
-
this.emphasis = false;
|
|
6036
|
-
this.error = false;
|
|
6037
|
-
this.info = false;
|
|
6038
|
-
this.label = false;
|
|
6039
|
-
this.primary = false;
|
|
6040
|
-
this.secondary = false;
|
|
6041
|
-
this.subtle = false;
|
|
6042
|
-
this.success = false;
|
|
6043
|
-
this.tertiary = false;
|
|
6044
|
-
this.warning = false;
|
|
6045
5511
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6046
5512
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6047
5513
|
}
|
|
@@ -6051,14 +5517,6 @@ class AuroIcon extends BaseIcon {
|
|
|
6051
5517
|
return {
|
|
6052
5518
|
...super.properties,
|
|
6053
5519
|
|
|
6054
|
-
/**
|
|
6055
|
-
* Sets the icon to use the accent style.
|
|
6056
|
-
*/
|
|
6057
|
-
accent: {
|
|
6058
|
-
type: Boolean,
|
|
6059
|
-
reflect: true
|
|
6060
|
-
},
|
|
6061
|
-
|
|
6062
5520
|
/**
|
|
6063
5521
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
6064
5522
|
*/
|
|
@@ -6089,38 +5547,6 @@ class AuroIcon extends BaseIcon {
|
|
|
6089
5547
|
type: Boolean
|
|
6090
5548
|
},
|
|
6091
5549
|
|
|
6092
|
-
/**
|
|
6093
|
-
* Sets the icon to use the disabled style.
|
|
6094
|
-
*/
|
|
6095
|
-
disabled: {
|
|
6096
|
-
type: Boolean,
|
|
6097
|
-
reflect: true
|
|
6098
|
-
},
|
|
6099
|
-
|
|
6100
|
-
/**
|
|
6101
|
-
* Sets the icon to use the emphasis style.
|
|
6102
|
-
*/
|
|
6103
|
-
emphasis: {
|
|
6104
|
-
type: Boolean,
|
|
6105
|
-
reflect: true
|
|
6106
|
-
},
|
|
6107
|
-
|
|
6108
|
-
/**
|
|
6109
|
-
* Sets the icon to use the error style.
|
|
6110
|
-
*/
|
|
6111
|
-
error: {
|
|
6112
|
-
type: Boolean,
|
|
6113
|
-
reflect: true
|
|
6114
|
-
},
|
|
6115
|
-
|
|
6116
|
-
/**
|
|
6117
|
-
* Sets the icon to use the info style.
|
|
6118
|
-
*/
|
|
6119
|
-
info: {
|
|
6120
|
-
type: Boolean,
|
|
6121
|
-
reflect: true
|
|
6122
|
-
},
|
|
6123
|
-
|
|
6124
5550
|
/**
|
|
6125
5551
|
* Exposes content in slot as icon label.
|
|
6126
5552
|
*/
|
|
@@ -6138,50 +5564,10 @@ class AuroIcon extends BaseIcon {
|
|
|
6138
5564
|
},
|
|
6139
5565
|
|
|
6140
5566
|
/**
|
|
6141
|
-
*
|
|
6142
|
-
*/
|
|
6143
|
-
primary: {
|
|
6144
|
-
type: Boolean,
|
|
6145
|
-
reflect: true
|
|
6146
|
-
},
|
|
6147
|
-
|
|
6148
|
-
/**
|
|
6149
|
-
* Sets the icon to use the secondary style.
|
|
6150
|
-
*/
|
|
6151
|
-
secondary: {
|
|
6152
|
-
type: Boolean,
|
|
6153
|
-
reflect: true
|
|
6154
|
-
},
|
|
6155
|
-
|
|
6156
|
-
/**
|
|
6157
|
-
* Sets the icon to use the subtle style.
|
|
6158
|
-
*/
|
|
6159
|
-
subtle: {
|
|
6160
|
-
type: Boolean,
|
|
6161
|
-
reflect: true
|
|
6162
|
-
},
|
|
6163
|
-
|
|
6164
|
-
/**
|
|
6165
|
-
* Sets the icon to use the success style.
|
|
6166
|
-
*/
|
|
6167
|
-
success: {
|
|
6168
|
-
type: Boolean,
|
|
6169
|
-
reflect: true
|
|
6170
|
-
},
|
|
6171
|
-
|
|
6172
|
-
/**
|
|
6173
|
-
* Sets the icon to use the tertiary style.
|
|
6174
|
-
*/
|
|
6175
|
-
tertiary: {
|
|
6176
|
-
type: Boolean,
|
|
6177
|
-
reflect: true
|
|
6178
|
-
},
|
|
6179
|
-
|
|
6180
|
-
/**
|
|
6181
|
-
* Sets the icon to use the warning style.
|
|
5567
|
+
* The style of the icon. The accepted variants are `accent1`, `disabled`, `muted`, `statusDefault`, `statusInfo`, `statusSuccess`, `statusWarning`, `statusError`, `statusInfoSubtle`, `statusSuccessSubtle`, `statusWarningSubtle`, `statusErrorSubtle`, `fareBasicEconomy`, `fareBusiness`, `fareEconomy`, `fareFirst`, `farePremiumEconomy`, `fareOneWorldEmerald`, `fareOneWorldSapphire`, `fareOneWorldRuby`.
|
|
6182
5568
|
*/
|
|
6183
|
-
|
|
6184
|
-
type:
|
|
5569
|
+
variant: {
|
|
5570
|
+
type: String,
|
|
6185
5571
|
reflect: true
|
|
6186
5572
|
}
|
|
6187
5573
|
};
|
|
@@ -6271,7 +5657,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6271
5657
|
}
|
|
6272
5658
|
}
|
|
6273
5659
|
|
|
6274
|
-
var iconVersion = '
|
|
5660
|
+
var iconVersion = '8.0.1';
|
|
6275
5661
|
|
|
6276
5662
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6277
5663
|
// See LICENSE in the project root for license information.
|
|
@@ -6496,7 +5882,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6496
5882
|
constructor() {
|
|
6497
5883
|
super();
|
|
6498
5884
|
|
|
6499
|
-
AuroLibraryRuntimeUtils$
|
|
5885
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6500
5886
|
|
|
6501
5887
|
const versioning = new AuroDependencyVersioning();
|
|
6502
5888
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -6535,7 +5921,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6535
5921
|
*
|
|
6536
5922
|
*/
|
|
6537
5923
|
static register(name = "auro-bibtemplate") {
|
|
6538
|
-
AuroLibraryRuntimeUtils$
|
|
5924
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
6539
5925
|
}
|
|
6540
5926
|
|
|
6541
5927
|
/**
|
|
@@ -6609,7 +5995,7 @@ var bibTemplateVersion = '1.0.0';
|
|
|
6609
5995
|
|
|
6610
5996
|
var styleCss = css`.wrapper{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.wrapper ::slotted(*:not(:first-child)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}:host([isindropdown]) .wrapper{padding:var(--ds-size-300, 1.5rem)}`;
|
|
6611
5997
|
|
|
6612
|
-
var colorCss = css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-
|
|
5998
|
+
var colorCss = css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-auro-counter-divider-color)}`;
|
|
6613
5999
|
|
|
6614
6000
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6615
6001
|
// See LICENSE in the project root for license information.
|
|
@@ -6630,7 +6016,8 @@ class AuroCounterWrapper extends LitElement {
|
|
|
6630
6016
|
static get styles() {
|
|
6631
6017
|
return [
|
|
6632
6018
|
colorCss,
|
|
6633
|
-
styleCss
|
|
6019
|
+
styleCss,
|
|
6020
|
+
tokensCss$7
|
|
6634
6021
|
];
|
|
6635
6022
|
}
|
|
6636
6023
|
|
|
@@ -6641,7 +6028,7 @@ class AuroCounterWrapper extends LitElement {
|
|
|
6641
6028
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
6642
6029
|
*/
|
|
6643
6030
|
static register(name = "auro-counter-wrapper") {
|
|
6644
|
-
AuroLibraryRuntimeUtils$
|
|
6031
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterWrapper);
|
|
6645
6032
|
}
|
|
6646
6033
|
|
|
6647
6034
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -6681,6 +6068,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
6681
6068
|
this.isDropdown = false;
|
|
6682
6069
|
this.max = undefined;
|
|
6683
6070
|
this.min = undefined;
|
|
6071
|
+
this.onDark = false;
|
|
6684
6072
|
this.total = undefined;
|
|
6685
6073
|
this.validity = undefined;
|
|
6686
6074
|
this.value = undefined;
|
|
@@ -6778,7 +6166,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
6778
6166
|
|
|
6779
6167
|
/**
|
|
6780
6168
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
6781
|
-
* Otherwise, Heading 600
|
|
6169
|
+
* Otherwise, Heading 600.
|
|
6782
6170
|
*/
|
|
6783
6171
|
largeFullscreenHeadline: {
|
|
6784
6172
|
type: Boolean,
|
|
@@ -6804,6 +6192,14 @@ class AuroCounterGroup extends LitElement {
|
|
|
6804
6192
|
reflect: true
|
|
6805
6193
|
},
|
|
6806
6194
|
|
|
6195
|
+
/**
|
|
6196
|
+
* If declared, counters and dropdown will be rendered with onDark styles.
|
|
6197
|
+
*/
|
|
6198
|
+
onDark: {
|
|
6199
|
+
type: Boolean,
|
|
6200
|
+
reflect: true
|
|
6201
|
+
},
|
|
6202
|
+
|
|
6807
6203
|
/**
|
|
6808
6204
|
* Position where the bib should appear relative to the trigger.
|
|
6809
6205
|
* Accepted values:
|
|
@@ -6915,6 +6311,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
6915
6311
|
configureCounters() {
|
|
6916
6312
|
this.counters = this.querySelectorAll("auro-counter, [auro-counter]");
|
|
6917
6313
|
this.counters.forEach((counter) => {
|
|
6314
|
+
counter.onDark = this.onDark;
|
|
6918
6315
|
counter.addEventListener("input", () => this.updateValue());
|
|
6919
6316
|
});
|
|
6920
6317
|
}
|
|
@@ -6964,11 +6361,11 @@ class AuroCounterGroup extends LitElement {
|
|
|
6964
6361
|
}
|
|
6965
6362
|
|
|
6966
6363
|
/**
|
|
6967
|
-
* @private
|
|
6968
6364
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6365
|
+
* @private
|
|
6969
6366
|
*/
|
|
6970
6367
|
configureBibtemplate() {
|
|
6971
|
-
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
|
|
6368
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
|
|
6972
6369
|
this.bibtemplate.addEventListener('close-click', () => {
|
|
6973
6370
|
if (this.dropdown.isPopoverVisible) {
|
|
6974
6371
|
this.dropdown.hide();
|
|
@@ -7065,6 +6462,10 @@ class AuroCounterGroup extends LitElement {
|
|
|
7065
6462
|
}
|
|
7066
6463
|
);
|
|
7067
6464
|
}
|
|
6465
|
+
|
|
6466
|
+
if (changedProperties.has("onDark") && !this.isDropdown) {
|
|
6467
|
+
this.configureCounters();
|
|
6468
|
+
}
|
|
7068
6469
|
}
|
|
7069
6470
|
|
|
7070
6471
|
/**
|
|
@@ -7074,7 +6475,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
7074
6475
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7075
6476
|
*/
|
|
7076
6477
|
static register(name = "auro-counter-group") {
|
|
7077
|
-
AuroLibraryRuntimeUtils$
|
|
6478
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroCounterGroup);
|
|
7078
6479
|
}
|
|
7079
6480
|
|
|
7080
6481
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7085,6 +6486,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
7085
6486
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
7086
6487
|
.placement="${this.placement}"
|
|
7087
6488
|
.offset="${this.offset}"
|
|
6489
|
+
?onDark="${this.onDark}"
|
|
7088
6490
|
?autoPlacement="${this.autoPlacement}"
|
|
7089
6491
|
?noFlip="${this.noFlip}">
|
|
7090
6492
|
<div slot="trigger"><slot name="valueText">
|