@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
|
@@ -38,7 +38,7 @@ const a=Symbol.for(""),o$2=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$li
|
|
|
38
38
|
|
|
39
39
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
40
40
|
|
|
41
|
-
let AuroLibraryRuntimeUtils$
|
|
41
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
42
42
|
|
|
43
43
|
/* eslint-disable jsdoc/require-param */
|
|
44
44
|
|
|
@@ -107,7 +107,7 @@ let AuroLibraryRuntimeUtils$9 = class AuroLibraryRuntimeUtils {
|
|
|
107
107
|
|
|
108
108
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
109
109
|
constructor() {
|
|
110
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
110
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
@@ -416,7 +416,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
416
416
|
// See LICENSE in the project root for license information.
|
|
417
417
|
|
|
418
418
|
|
|
419
|
-
let AuroDependencyVersioning$
|
|
419
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
422
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -807,19 +807,19 @@ class UtilitiesCalendarRender {
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
var styleCss$d = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important}[auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}.outerWrapper{position:relative;container:outerwrapper/inline-size}.dpTriggerContent{display:flex;flex-direction:column}.dpTriggerContent [auro-input]{flex:1}:host(:not([stacked])) .dpTriggerContent{flex-direction:row}:host(:not([stacked])) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host(:not([stacked])) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host(:not([stacked])) [auro-input]:nth-child(2)::part(input){padding-left:0}:host(:not([stacked])) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host(:not([stacked])) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host(:not([stacked])[range]) [auro-input]{max-width:50%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
810
|
+
var styleCss$d = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}[auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}[auro-input]:not(:first-child)::part(wrapper)::after{position:absolute;left:50%;width:95%;height:1px;background-color:var(--ds-auro-datepicker-range-input-divider-color);content:"";transform:translateX(-50%)}.outerWrapper{position:relative;container:outerwrapper/inline-size}.dpTriggerContent{display:flex;flex-direction:column}.dpTriggerContent [auro-input]{flex:1}:host(:not([stacked])) .dpTriggerContent{flex-direction:row}:host(:not([stacked])) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host(:not([stacked])) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host(:not([stacked])) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host(:not([stacked])) [auro-input]:nth-child(2)::part(input){padding-left:0}:host(:not([stacked])) [auro-input]:nth-child(2):before{position:absolute;top:13px;left:calc(var(--ds-size-150, 0.75rem)*-1);display:block;width:1px;height:2rem;content:""}:host(:not([stacked])) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host(:not([stacked])[range]) [auro-input]{max-width:50%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
811
811
|
|
|
812
|
-
var colorCss$d = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}
|
|
812
|
+
var colorCss$d = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host([onDark]){--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
813
813
|
|
|
814
|
-
var tokensCss$a = i$5`:host{--ds-auro-datepicker-placeholder-color: var(--ds-color-
|
|
814
|
+
var tokensCss$a = i$5`:host{--ds-auro-datepicker-placeholder-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-calendar-nav-btn-border-color: transparent;--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-calendar-nav-btn-container-color: transparent;--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-border-color: transparent;--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #f7f7f7);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
815
815
|
|
|
816
816
|
var styleCss$c = i$5`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:var(--ds-text-body-size-xs, 0.75rem)}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
817
817
|
|
|
818
|
-
var colorCss$c = i$5`.calendarNavBtn{border-color:var(--ds-auro-calendar-nav-btn-border-color);background-color:var(--ds-auro-calendar-nav-btn-container-color);color:var(--ds-auro-calendar-nav-btn-chevron-color)}.calendarNavBtn:hover
|
|
818
|
+
var colorCss$c = i$5`.calendarNavBtn{border-color:var(--ds-auro-calendar-nav-btn-border-color);background-color:var(--ds-auro-calendar-nav-btn-container-color);color:var(--ds-auro-calendar-nav-btn-chevron-color)}.calendarNavBtn:hover{--ds-auro-calendar-nav-btn-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:focus{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}.calendarNavBtn:active{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-calendar-nav-btn-border-color)}.mobileHeader{background-color:var(--ds-auro-calendar-mobile-header-container-color)}.mobileDateLabel{color:var(--ds-auro-calendar-mobile-header-text-color)}:host(:not([noRange])) .headerDateTo:after{background-color:var(--ds-auro-calendar-mobile-header-divider-color)}::slotted([slot="bib.fullscreen.fromStr"]),::slotted([slot=mobileDateToStr]){color:var(--ds-auro-datepicker-placeholder-color)}@media screen and (max-width: 576px){.calendarNavBtn{--ds-auro-calendar-nav-btn-border-color: var(--ds-basic-color-brand-primary, #01426a)}}`;
|
|
819
819
|
|
|
820
|
-
var styleCss$b = i$5
|
|
820
|
+
var styleCss$b = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host{position:relative;display:block;width:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));margin:0 var(--ds-size-200, 1rem)}@media screen and (min-width: 576px){:host{width:336px;padding:var(--ds-size-200, 1rem)}}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{position:absolute;top:var(--ds-size-200, 1rem);right:calc(-1*var(--ds-size-200, 1rem));height:calc(100% - var(--ds-size-200, 1rem) - var(--ds-size-200, 1rem));display:block;width:1px;content:""}}.header{display:flex;height:var(--ds-size-500, 2.5rem);margin-bottom:var(--ds-size-150, 0.75rem);align-items:center;flex-direction:row;text-align:center}.headerTitle{display:flex;align-items:center;flex:1;flex-direction:row;justify-content:center;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.headerTitle div:first-child{margin-right:var(--ds-size-100, 0.5rem)}.calendarNavBtn{position:relative;display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.table{width:100%;border-collapse:collapse}.thead{margin-bottom:var(--ds-size-100, 0.5rem)}.th{display:flex;flex:1;align-items:center;justify-content:center;font-weight:700}.tbody{width:100%;transition:all 0ms;transform:translateX(0)}@media screen and (min-width: 576px){.tbody{height:384px}}.td{flex:1;margin:0;padding:0}.tr{display:flex;flex-direction:row;width:100%}`;
|
|
821
821
|
|
|
822
|
-
var colorCss$b = i$5
|
|
822
|
+
var colorCss$b = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host{background-color:var(--ds-auro-calendar-month-container-color)}@media screen and (min-width: 576px){:host(:not(:last-of-type)):after{background-color:var(--ds-auro-calendar-month-divider-color)}}.header{color:var(--ds-auro-calendar-month-header-color)}`;
|
|
823
823
|
|
|
824
824
|
/******************************************************************************
|
|
825
825
|
Copyright (c) Microsoft Corporation.
|
|
@@ -6811,7 +6811,7 @@ __decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
|
6811
6811
|
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
6812
6812
|
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
6813
6813
|
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
6814
|
-
AuroLibraryRuntimeUtils$
|
|
6814
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
6815
6815
|
|
|
6816
6816
|
class Day {
|
|
6817
6817
|
constructor(date) {
|
|
@@ -7329,7 +7329,7 @@ __decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
|
7329
7329
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7330
7330
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7331
7331
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7332
|
-
AuroLibraryRuntimeUtils$
|
|
7332
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7333
7333
|
|
|
7334
7334
|
/**
|
|
7335
7335
|
* @license
|
|
@@ -7346,7 +7346,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
7346
7346
|
|
|
7347
7347
|
var styleCss$a = i$5`@media screen and (max-width: 576px){:host{display:flex;justify-content:center}}.day{position:relative;width:var(--ds-size-500, 2.5rem);height:calc(var(--ds-size-700, 3.5rem) - 2px);padding:0;border-width:1px;border-style:solid;border-radius:var(--ds-size-300, 1.5rem);cursor:pointer;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);user-select:none}.day.disabled{cursor:default !important}.day.inRange::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%)}@media screen and (min-width: 576px){.day.inRange::before{width:var(--ds-size-600, 3rem)}}.day.rangeDepartDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(0%, -50%)}@media screen and (min-width: 576px){.day.rangeDepartDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.day.rangeReturnDate::before,.day.lastHoveredDate::before{position:absolute;z-index:-1;top:50%;left:50%;display:block;width:14.2857142857vw;height:var(--ds-size-600, 3rem);content:"";transform:translate(-50%, -50%);width:7.1428571429vw;transform:translate(-100%, -50%)}@media screen and (min-width: 576px){.day.rangeReturnDate::before,.day.lastHoveredDate::before{width:calc(var(--ds-size-600, 3rem)/2)}}.dateSlot{display:flex;flex-direction:column;font-size:var(--ds-text-body-size-xxs, 0.625rem)}::slotted([slot^=date_]){position:absolute;top:80%;left:50%;width:80%;overflow:hidden;white-space:nowrap;transform:translate(-50%, -50%)}::slotted(auro-icon){max-height:24px;max-width:24px}:host([renderForDateSlot]) .buttonWrapper{position:relative;width:100%;top:5px}:host([renderForDateSlot]) .currentDayMarker{position:relative;padding-bottom:5px;top:-8px}@media screen and (min-width: 576px){.day{width:var(--ds-size-600, 3rem);height:var(--ds-size-800, 4rem);font-size:var(--ds-text-body-size-lg, 1.125rem)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-text-body-size-xs, 0.75rem)}}`;
|
|
7348
7348
|
|
|
7349
|
-
var colorCss$a = i$5`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-color-
|
|
7349
|
+
var colorCss$a = i$5`:host ::slotted([slot^=date_]){color:var(--ds-auro-calendar-cell-price-text-color)}:host ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success, #447a1f)}:host .day{border-color:var(--ds-auro-calendar-cell-border-color);background-color:var(--ds-auro-calendar-cell-container-color);color:var(--ds-auro-calendar-cell-text-color)}:host .day.selected{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day.selected ::slotted([slot^=date_][highlight]){--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host .day.selected:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-selected-hover, #00274a);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host .day:hover{--ds-auro-calendar-cell-container-color: var(--ds-advanced-color-state-background-hover, #f2f2f2);--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host .day.disabled{--ds-auro-calendar-cell-container-color: transparent;--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host .day.inRange:before,:host .day.rangeDepartDate:before,:host .day.rangeReturnDate:before,:host .day.lastHoveredDate:before{background-color:var(--ds-auro-calendar-cell-in-range-color)}:host .day.sameDateTrip:before{--ds-auro-calendar-cell-in-range-color: transparent}`;
|
|
7350
7350
|
|
|
7351
7351
|
var styleCss$9 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([addSpace]) :host(:not([data-show])) .popover,:host(:not([data-show])) .popover,:host([disabled]) .popover{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.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(*){white-space:normal}::slotted(*:hover){cursor:pointer}[data-trigger-placement]::slotted(*:hover){position:relative}[data-trigger-placement]::slotted(*:hover):before{position:absolute;left:0;display:block;width:100%;height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));content:""}[data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}[data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem)))}:host([data-show]) .popover{z-index:var(--ds-depth-tooltip, 400)}:host([removeSpace]) .popover{margin:calc(-1*(var(--ds-size-50, 0.25rem) + 1px)) 0 !important}:host([addSpace]) .popover{margin:var(--ds-size-200, 1rem) 0 !important}:host([addSpace]) [data-trigger-placement]::slotted(*:hover):before{height:var(--ds-size-500, 2.5rem)}:host([addSpace]) [data-trigger-placement^=top]::slotted(*:hover):before{top:calc(-1*var(--ds-size-500, 2.5rem))}:host([addSpace]) [data-trigger-placement^=bottom]::slotted(*:hover):before{bottom:calc(-1*var(--ds-size-500, 2.5rem))}.popover{display:inline-block;max-width:calc(100% - var(--ds-size-400, 2rem));border-radius:var(--ds-border-radius, 0.375rem)}@media screen and (min-width: 576px){.popover{max-width:50%}}@media screen and (min-width: 768px){.popover{max-width:40%}}@media screen and (min-width: 1024px){.popover{max-width:27rem}}[data-popper-placement^=top]>.arrow{bottom:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=top]>.arrow:before{top:calc(-1*var(--ds-size-200, 1rem));left:calc(-1*var(--ds-size-75, 0.375rem));transform:rotate(45deg)}[data-popper-placement^=bottom]>.arrow{top:calc(-1*(var(--ds-size-100, 0.5rem) + var(--ds-size-25, 0.125rem)))}[data-popper-placement^=bottom]>.arrow:before{top:var(--ds-size-50, 0.25rem);right:calc(-1*var(--ds-size-200, 1rem));transform:rotate(-135deg)}.arrow{position:relative;margin-top:-var(--ds-size-100, 0.5rem)}.arrow:before{position:absolute;width:var(--ds-size-150, 0.75rem);height:var(--ds-size-150, 0.75rem);content:""}`;
|
|
7352
7352
|
|
|
@@ -9243,7 +9243,7 @@ class AuroPopover extends r$2 {
|
|
|
9243
9243
|
privateDefaults() {
|
|
9244
9244
|
this.isPopoverVisible = false;
|
|
9245
9245
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9246
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9246
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
9247
9247
|
}
|
|
9248
9248
|
|
|
9249
9249
|
// function to define props used within the scope of this component
|
|
@@ -9273,7 +9273,7 @@ class AuroPopover extends r$2 {
|
|
|
9273
9273
|
*
|
|
9274
9274
|
*/
|
|
9275
9275
|
static register(name = "auro-popover") {
|
|
9276
|
-
AuroLibraryRuntimeUtils$
|
|
9276
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroPopover);
|
|
9277
9277
|
}
|
|
9278
9278
|
|
|
9279
9279
|
connectedCallback() {
|
|
@@ -9441,12 +9441,12 @@ class AuroCalendarCell extends r$2 {
|
|
|
9441
9441
|
this.dateStr = null;
|
|
9442
9442
|
this.renderForDateSlot = false; // When false, the numerical date will render vertically centered. When true, the date will render off-center to the top and leave room below for the slot content.
|
|
9443
9443
|
|
|
9444
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9444
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
9445
9445
|
|
|
9446
9446
|
/**
|
|
9447
9447
|
* Generate unique names for dependency components.
|
|
9448
9448
|
*/
|
|
9449
|
-
const versioning = new AuroDependencyVersioning$
|
|
9449
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
9450
9450
|
this.popoverTag = versioning.generateTag('auro-formkit-datepicker-popover', popoverVersion, AuroPopover);
|
|
9451
9451
|
}
|
|
9452
9452
|
|
|
@@ -10343,9 +10343,9 @@ class CalendarUtilities {
|
|
|
10343
10343
|
|
|
10344
10344
|
var colorCss$1$2 = i$5`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
10345
10345
|
|
|
10346
|
-
var styleCss$2$2 = i$5`#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,
|
|
10346
|
+
var styleCss$2$2 = i$5`#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)}`;
|
|
10347
10347
|
|
|
10348
|
-
var tokenCss = i$5`: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-
|
|
10348
|
+
var tokenCss = i$5`: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)}`;
|
|
10349
10349
|
|
|
10350
10350
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10351
10351
|
// See LICENSE in the project root for license information.
|
|
@@ -10354,7 +10354,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10354
10354
|
|
|
10355
10355
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10356
10356
|
|
|
10357
|
-
let AuroLibraryRuntimeUtils$
|
|
10357
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10358
10358
|
|
|
10359
10359
|
/* eslint-disable jsdoc/require-param */
|
|
10360
10360
|
|
|
@@ -10421,7 +10421,7 @@ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
|
10421
10421
|
// See LICENSE in the project root for license information.
|
|
10422
10422
|
|
|
10423
10423
|
|
|
10424
|
-
let AuroDependencyVersioning$
|
|
10424
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
10425
10425
|
|
|
10426
10426
|
/**
|
|
10427
10427
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -10523,7 +10523,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10523
10523
|
return _fetchMap$2.get(uri);
|
|
10524
10524
|
};
|
|
10525
10525
|
|
|
10526
|
-
var styleCss$1$2 = i$5`: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}
|
|
10526
|
+
var styleCss$1$2 = i$5`: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}`;
|
|
10527
10527
|
|
|
10528
10528
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10529
10529
|
// See LICENSE in the project root for license information.
|
|
@@ -10531,7 +10531,6 @@ var styleCss$1$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
10531
10531
|
|
|
10532
10532
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10533
10533
|
/**
|
|
10534
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
10535
10534
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
10536
10535
|
*/
|
|
10537
10536
|
|
|
@@ -10546,6 +10545,10 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10546
10545
|
static get properties() {
|
|
10547
10546
|
return {
|
|
10548
10547
|
...super.properties,
|
|
10548
|
+
|
|
10549
|
+
/**
|
|
10550
|
+
* Set value for on-dark version of auro-icon.
|
|
10551
|
+
*/
|
|
10549
10552
|
onDark: {
|
|
10550
10553
|
type: Boolean,
|
|
10551
10554
|
reflect: true
|
|
@@ -10604,81 +10607,11 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10604
10607
|
}
|
|
10605
10608
|
};
|
|
10606
10609
|
|
|
10607
|
-
var tokensCss$8 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
10608
|
-
|
|
10609
|
-
var colorCss$8 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
10610
|
-
|
|
10611
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10612
|
-
// See LICENSE in the project root for license information.
|
|
10613
|
-
|
|
10614
|
-
// ---------------------------------------------------------------------
|
|
10615
|
-
|
|
10616
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10617
|
-
|
|
10618
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10619
|
-
|
|
10620
|
-
/* eslint-disable jsdoc/require-param */
|
|
10621
|
-
|
|
10622
|
-
/**
|
|
10623
|
-
* This will register a new custom element with the browser.
|
|
10624
|
-
* @param {String} name - The name of the custom element.
|
|
10625
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
10626
|
-
* @returns {void}
|
|
10627
|
-
*/
|
|
10628
|
-
registerComponent(name, componentClass) {
|
|
10629
|
-
if (!customElements.get(name)) {
|
|
10630
|
-
customElements.define(name, class extends componentClass {});
|
|
10631
|
-
}
|
|
10632
|
-
}
|
|
10633
|
-
|
|
10634
|
-
/**
|
|
10635
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
10636
|
-
* @returns {void}
|
|
10637
|
-
*/
|
|
10638
|
-
closestElement(
|
|
10639
|
-
selector, // selector like in .closest()
|
|
10640
|
-
base = this, // extra functionality to skip a parent
|
|
10641
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10642
|
-
!el || el === document || el === window
|
|
10643
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
10644
|
-
: found
|
|
10645
|
-
? found // found a selector INside this element
|
|
10646
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10647
|
-
) {
|
|
10648
|
-
return __Closest(base);
|
|
10649
|
-
}
|
|
10650
|
-
/* eslint-enable jsdoc/require-param */
|
|
10651
|
-
|
|
10652
|
-
/**
|
|
10653
|
-
* 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.
|
|
10654
|
-
* @param {Object} elem - The element to check.
|
|
10655
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10656
|
-
* @returns {void}
|
|
10657
|
-
*/
|
|
10658
|
-
handleComponentTagRename(elem, tagName) {
|
|
10659
|
-
const tag = tagName.toLowerCase();
|
|
10660
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
10661
|
-
|
|
10662
|
-
if (elemTag !== tag) {
|
|
10663
|
-
elem.setAttribute(tag, true);
|
|
10664
|
-
}
|
|
10665
|
-
}
|
|
10666
|
-
|
|
10667
|
-
/**
|
|
10668
|
-
* Validates if an element is a specific Auro component.
|
|
10669
|
-
* @param {Object} elem - The element to validate.
|
|
10670
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
10671
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10672
|
-
*/
|
|
10673
|
-
elementMatch(elem, tagName) {
|
|
10674
|
-
const tag = tagName.toLowerCase();
|
|
10675
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
10610
|
+
var tokensCss$8 = i$5`: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)}`;
|
|
10676
10611
|
|
|
10677
|
-
|
|
10678
|
-
}
|
|
10679
|
-
};
|
|
10612
|
+
var colorCss$8 = i$5`: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)}`;
|
|
10680
10613
|
|
|
10681
|
-
// Copyright (c)
|
|
10614
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10682
10615
|
// See LICENSE in the project root for license information.
|
|
10683
10616
|
|
|
10684
10617
|
|
|
@@ -10686,6 +10619,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10686
10619
|
constructor() {
|
|
10687
10620
|
super();
|
|
10688
10621
|
|
|
10622
|
+
this.variant = undefined;
|
|
10689
10623
|
this.privateDefaults();
|
|
10690
10624
|
}
|
|
10691
10625
|
|
|
@@ -10695,20 +10629,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10695
10629
|
* @returns {void}
|
|
10696
10630
|
*/
|
|
10697
10631
|
privateDefaults() {
|
|
10698
|
-
this.accent = false;
|
|
10699
|
-
this.customColor = false;
|
|
10700
|
-
this.customSvg = false;
|
|
10701
|
-
this.disabled = false;
|
|
10702
|
-
this.emphasis = false;
|
|
10703
|
-
this.error = false;
|
|
10704
|
-
this.info = false;
|
|
10705
|
-
this.label = false;
|
|
10706
|
-
this.primary = false;
|
|
10707
|
-
this.secondary = false;
|
|
10708
|
-
this.subtle = false;
|
|
10709
|
-
this.success = false;
|
|
10710
|
-
this.tertiary = false;
|
|
10711
|
-
this.warning = false;
|
|
10712
10632
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10713
10633
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
10714
10634
|
}
|
|
@@ -10718,14 +10638,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10718
10638
|
return {
|
|
10719
10639
|
...super.properties,
|
|
10720
10640
|
|
|
10721
|
-
/**
|
|
10722
|
-
* Sets the icon to use the accent style.
|
|
10723
|
-
*/
|
|
10724
|
-
accent: {
|
|
10725
|
-
type: Boolean,
|
|
10726
|
-
reflect: true
|
|
10727
|
-
},
|
|
10728
|
-
|
|
10729
10641
|
/**
|
|
10730
10642
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10731
10643
|
*/
|
|
@@ -10756,38 +10668,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10756
10668
|
type: Boolean
|
|
10757
10669
|
},
|
|
10758
10670
|
|
|
10759
|
-
/**
|
|
10760
|
-
* Sets the icon to use the disabled style.
|
|
10761
|
-
*/
|
|
10762
|
-
disabled: {
|
|
10763
|
-
type: Boolean,
|
|
10764
|
-
reflect: true
|
|
10765
|
-
},
|
|
10766
|
-
|
|
10767
|
-
/**
|
|
10768
|
-
* Sets the icon to use the emphasis style.
|
|
10769
|
-
*/
|
|
10770
|
-
emphasis: {
|
|
10771
|
-
type: Boolean,
|
|
10772
|
-
reflect: true
|
|
10773
|
-
},
|
|
10774
|
-
|
|
10775
|
-
/**
|
|
10776
|
-
* Sets the icon to use the error style.
|
|
10777
|
-
*/
|
|
10778
|
-
error: {
|
|
10779
|
-
type: Boolean,
|
|
10780
|
-
reflect: true
|
|
10781
|
-
},
|
|
10782
|
-
|
|
10783
|
-
/**
|
|
10784
|
-
* Sets the icon to use the info style.
|
|
10785
|
-
*/
|
|
10786
|
-
info: {
|
|
10787
|
-
type: Boolean,
|
|
10788
|
-
reflect: true
|
|
10789
|
-
},
|
|
10790
|
-
|
|
10791
10671
|
/**
|
|
10792
10672
|
* Exposes content in slot as icon label.
|
|
10793
10673
|
*/
|
|
@@ -10805,50 +10685,10 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10805
10685
|
},
|
|
10806
10686
|
|
|
10807
10687
|
/**
|
|
10808
|
-
*
|
|
10809
|
-
*/
|
|
10810
|
-
primary: {
|
|
10811
|
-
type: Boolean,
|
|
10812
|
-
reflect: true
|
|
10813
|
-
},
|
|
10814
|
-
|
|
10815
|
-
/**
|
|
10816
|
-
* Sets the icon to use the secondary style.
|
|
10817
|
-
*/
|
|
10818
|
-
secondary: {
|
|
10819
|
-
type: Boolean,
|
|
10820
|
-
reflect: true
|
|
10821
|
-
},
|
|
10822
|
-
|
|
10823
|
-
/**
|
|
10824
|
-
* Sets the icon to use the subtle style.
|
|
10825
|
-
*/
|
|
10826
|
-
subtle: {
|
|
10827
|
-
type: Boolean,
|
|
10828
|
-
reflect: true
|
|
10829
|
-
},
|
|
10830
|
-
|
|
10831
|
-
/**
|
|
10832
|
-
* Sets the icon to use the success style.
|
|
10833
|
-
*/
|
|
10834
|
-
success: {
|
|
10835
|
-
type: Boolean,
|
|
10836
|
-
reflect: true
|
|
10837
|
-
},
|
|
10838
|
-
|
|
10839
|
-
/**
|
|
10840
|
-
* Sets the icon to use the tertiary style.
|
|
10841
|
-
*/
|
|
10842
|
-
tertiary: {
|
|
10843
|
-
type: Boolean,
|
|
10844
|
-
reflect: true
|
|
10845
|
-
},
|
|
10846
|
-
|
|
10847
|
-
/**
|
|
10848
|
-
* Sets the icon to use the warning style.
|
|
10688
|
+
* 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`.
|
|
10849
10689
|
*/
|
|
10850
|
-
|
|
10851
|
-
type:
|
|
10690
|
+
variant: {
|
|
10691
|
+
type: String,
|
|
10852
10692
|
reflect: true
|
|
10853
10693
|
}
|
|
10854
10694
|
};
|
|
@@ -10938,7 +10778,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10938
10778
|
}
|
|
10939
10779
|
};
|
|
10940
10780
|
|
|
10941
|
-
var iconVersion$2 = '
|
|
10781
|
+
var iconVersion$2 = '8.0.1';
|
|
10942
10782
|
|
|
10943
10783
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10944
10784
|
// See LICENSE in the project root for license information.
|
|
@@ -10947,7 +10787,7 @@ var iconVersion$2 = '7.0.1';
|
|
|
10947
10787
|
|
|
10948
10788
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10949
10789
|
|
|
10950
|
-
let AuroLibraryRuntimeUtils$
|
|
10790
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
10951
10791
|
|
|
10952
10792
|
/* eslint-disable jsdoc/require-param */
|
|
10953
10793
|
|
|
@@ -11039,7 +10879,7 @@ class AuroHeader extends r$2 {
|
|
|
11039
10879
|
/**
|
|
11040
10880
|
* @private
|
|
11041
10881
|
*/
|
|
11042
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
10882
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
11043
10883
|
}
|
|
11044
10884
|
|
|
11045
10885
|
// function to define props used within the scope of this component
|
|
@@ -11069,7 +10909,7 @@ class AuroHeader extends r$2 {
|
|
|
11069
10909
|
*
|
|
11070
10910
|
*/
|
|
11071
10911
|
static register(name = "auro-header") {
|
|
11072
|
-
AuroLibraryRuntimeUtils$
|
|
10912
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
|
|
11073
10913
|
}
|
|
11074
10914
|
|
|
11075
10915
|
firstUpdated() {
|
|
@@ -11163,9 +11003,9 @@ class AuroBibtemplate extends r$2 {
|
|
|
11163
11003
|
constructor() {
|
|
11164
11004
|
super();
|
|
11165
11005
|
|
|
11166
|
-
AuroLibraryRuntimeUtils$
|
|
11006
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11167
11007
|
|
|
11168
|
-
const versioning = new AuroDependencyVersioning$
|
|
11008
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
11169
11009
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
11170
11010
|
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11171
11011
|
}
|
|
@@ -11202,7 +11042,7 @@ class AuroBibtemplate extends r$2 {
|
|
|
11202
11042
|
*
|
|
11203
11043
|
*/
|
|
11204
11044
|
static register(name = "auro-bibtemplate") {
|
|
11205
|
-
AuroLibraryRuntimeUtils$
|
|
11045
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11206
11046
|
}
|
|
11207
11047
|
|
|
11208
11048
|
/**
|
|
@@ -11274,267 +11114,84 @@ class AuroBibtemplate extends r$2 {
|
|
|
11274
11114
|
|
|
11275
11115
|
var bibTemplateVersion = '1.0.0';
|
|
11276
11116
|
|
|
11277
|
-
|
|
11278
|
-
// See LICENSE in the project root for license information.
|
|
11279
|
-
|
|
11117
|
+
var styleCss$7 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-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}`;
|
|
11280
11118
|
|
|
11281
|
-
|
|
11119
|
+
var colorCss$7 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{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}`;
|
|
11282
11120
|
|
|
11283
|
-
|
|
11284
|
-
* Generates a unique string to be used for child auro element naming.
|
|
11285
|
-
* @private
|
|
11286
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11287
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11288
|
-
* @returns {string} - Unique string to be used for naming.
|
|
11289
|
-
*/
|
|
11290
|
-
generateElementName(baseName, version) {
|
|
11291
|
-
let result = baseName;
|
|
11121
|
+
var tokensCss$7 = i$5`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11292
11122
|
|
|
11293
|
-
|
|
11294
|
-
result += version.replace(/[.]/g, '_');
|
|
11123
|
+
var styleCss$6 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11295
11124
|
|
|
11296
|
-
|
|
11297
|
-
}
|
|
11125
|
+
var colorCss$6 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
11298
11126
|
|
|
11299
|
-
|
|
11300
|
-
* Generates a unique string to be used for child auro element naming.
|
|
11301
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11302
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11303
|
-
* @returns {string} - Unique string to be used for naming.
|
|
11304
|
-
*/
|
|
11305
|
-
generateTag(baseName, version, tagClass) {
|
|
11306
|
-
const elementName = this.generateElementName(baseName, version);
|
|
11307
|
-
const tag = i$1`${s$1(elementName)}`;
|
|
11127
|
+
var tokensCss$6 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11308
11128
|
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
}
|
|
11129
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11130
|
+
// See LICENSE in the project root for license information.
|
|
11312
11131
|
|
|
11313
|
-
return tag;
|
|
11314
|
-
}
|
|
11315
|
-
};
|
|
11316
11132
|
|
|
11317
|
-
|
|
11318
|
-
|
|
11133
|
+
let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
11134
|
+
constructor() {
|
|
11135
|
+
super();
|
|
11319
11136
|
|
|
11320
|
-
|
|
11137
|
+
/**
|
|
11138
|
+
* @private
|
|
11139
|
+
*/
|
|
11140
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11321
11141
|
|
|
11322
|
-
|
|
11142
|
+
/**
|
|
11143
|
+
* @private
|
|
11144
|
+
*/
|
|
11145
|
+
this.mdCount = 3;
|
|
11323
11146
|
|
|
11324
|
-
|
|
11147
|
+
/**
|
|
11148
|
+
* @private
|
|
11149
|
+
*/
|
|
11150
|
+
this.smCount = 2;
|
|
11325
11151
|
|
|
11326
|
-
|
|
11152
|
+
/**
|
|
11153
|
+
* @private
|
|
11154
|
+
*/
|
|
11155
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11327
11156
|
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
* @returns {void}
|
|
11333
|
-
*/
|
|
11334
|
-
registerComponent(name, componentClass) {
|
|
11335
|
-
if (!customElements.get(name)) {
|
|
11336
|
-
customElements.define(name, class extends componentClass {});
|
|
11337
|
-
}
|
|
11157
|
+
this.orbit = false;
|
|
11158
|
+
this.ringworm = false;
|
|
11159
|
+
this.laser = false;
|
|
11160
|
+
this.pulse = false;
|
|
11338
11161
|
}
|
|
11339
11162
|
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
*/
|
|
11344
|
-
closestElement(
|
|
11345
|
-
selector, // selector like in .closest()
|
|
11346
|
-
base = this, // extra functionality to skip a parent
|
|
11347
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11348
|
-
!el || el === document || el === window
|
|
11349
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
11350
|
-
: found
|
|
11351
|
-
? found // found a selector INside this element
|
|
11352
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11353
|
-
) {
|
|
11354
|
-
return __Closest(base);
|
|
11355
|
-
}
|
|
11356
|
-
/* eslint-enable jsdoc/require-param */
|
|
11163
|
+
// function to define props used within the scope of this component
|
|
11164
|
+
static get properties() {
|
|
11165
|
+
return {
|
|
11357
11166
|
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
* @returns {void}
|
|
11363
|
-
*/
|
|
11364
|
-
handleComponentTagRename(elem, tagName) {
|
|
11365
|
-
const tag = tagName.toLowerCase();
|
|
11366
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11367
|
-
|
|
11368
|
-
if (elemTag !== tag) {
|
|
11369
|
-
elem.setAttribute(tag, true);
|
|
11370
|
-
}
|
|
11371
|
-
}
|
|
11372
|
-
|
|
11373
|
-
/**
|
|
11374
|
-
* Validates if an element is a specific Auro component.
|
|
11375
|
-
* @param {Object} elem - The element to validate.
|
|
11376
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
11377
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11378
|
-
*/
|
|
11379
|
-
elementMatch(elem, tagName) {
|
|
11380
|
-
const tag = tagName.toLowerCase();
|
|
11381
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11382
|
-
|
|
11383
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
11384
|
-
}
|
|
11385
|
-
};
|
|
11386
|
-
|
|
11387
|
-
var styleCss$7 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
11388
|
-
|
|
11389
|
-
var colorCss$7 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11390
|
-
|
|
11391
|
-
var tokensCss$7 = i$5`:host{--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color:var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11392
|
-
|
|
11393
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11394
|
-
// See LICENSE in the project root for license information.
|
|
11395
|
-
|
|
11396
|
-
// ---------------------------------------------------------------------
|
|
11397
|
-
|
|
11398
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11399
|
-
|
|
11400
|
-
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
11401
|
-
|
|
11402
|
-
/* eslint-disable jsdoc/require-param */
|
|
11403
|
-
|
|
11404
|
-
/**
|
|
11405
|
-
* This will register a new custom element with the browser.
|
|
11406
|
-
* @param {String} name - The name of the custom element.
|
|
11407
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
11408
|
-
* @returns {void}
|
|
11409
|
-
*/
|
|
11410
|
-
registerComponent(name, componentClass) {
|
|
11411
|
-
if (!customElements.get(name)) {
|
|
11412
|
-
customElements.define(name, class extends componentClass {});
|
|
11413
|
-
}
|
|
11414
|
-
}
|
|
11415
|
-
|
|
11416
|
-
/**
|
|
11417
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
11418
|
-
* @returns {void}
|
|
11419
|
-
*/
|
|
11420
|
-
closestElement(
|
|
11421
|
-
selector, // selector like in .closest()
|
|
11422
|
-
base = this, // extra functionality to skip a parent
|
|
11423
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11424
|
-
!el || el === document || el === window
|
|
11425
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
11426
|
-
: found
|
|
11427
|
-
? found // found a selector INside this element
|
|
11428
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11429
|
-
) {
|
|
11430
|
-
return __Closest(base);
|
|
11431
|
-
}
|
|
11432
|
-
/* eslint-enable jsdoc/require-param */
|
|
11433
|
-
|
|
11434
|
-
/**
|
|
11435
|
-
* 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.
|
|
11436
|
-
* @param {Object} elem - The element to check.
|
|
11437
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11438
|
-
* @returns {void}
|
|
11439
|
-
*/
|
|
11440
|
-
handleComponentTagRename(elem, tagName) {
|
|
11441
|
-
const tag = tagName.toLowerCase();
|
|
11442
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11443
|
-
|
|
11444
|
-
if (elemTag !== tag) {
|
|
11445
|
-
elem.setAttribute(tag, true);
|
|
11446
|
-
}
|
|
11447
|
-
}
|
|
11448
|
-
|
|
11449
|
-
/**
|
|
11450
|
-
* Validates if an element is a specific Auro component.
|
|
11451
|
-
* @param {Object} elem - The element to validate.
|
|
11452
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
11453
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11454
|
-
*/
|
|
11455
|
-
elementMatch(elem, tagName) {
|
|
11456
|
-
const tag = tagName.toLowerCase();
|
|
11457
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11458
|
-
|
|
11459
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
11460
|
-
}
|
|
11461
|
-
};
|
|
11462
|
-
|
|
11463
|
-
var styleCss$6 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11464
|
-
|
|
11465
|
-
var colorCss$6 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-color-utility-navy-default, #265688)}:host([ondark]){--ds-auro-loader-color:var(--ds-color-utility-cyan-inverse, #a8e9f7)}:host([white]){--ds-auro-loader-color:var(--ds-color-utility-neutral-inverse, #ccd2db)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
11466
|
-
|
|
11467
|
-
var tokensCss$6 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11468
|
-
|
|
11469
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11470
|
-
// See LICENSE in the project root for license information.
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11474
|
-
/**
|
|
11475
|
-
* The auro-loader element is an easy to use animated loader component.
|
|
11476
|
-
*
|
|
11477
|
-
* @attr {Boolean} pulse - sets loader type
|
|
11478
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
11479
|
-
* @attr {Boolean} laser - sets loader type
|
|
11480
|
-
* @attr {Boolean} orbit - sets loader type
|
|
11481
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
11482
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
11483
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
11484
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
11485
|
-
* @attr {Boolean} sm - sets size to small
|
|
11486
|
-
* @attr {Boolean} md - sets size to medium
|
|
11487
|
-
* @attr {Boolean} lg - sets size to large
|
|
11488
|
-
* @csspart element - apply style to adjust speed of animation
|
|
11489
|
-
*/
|
|
11490
|
-
|
|
11491
|
-
// build the component class
|
|
11492
|
-
let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
11493
|
-
constructor() {
|
|
11494
|
-
super();
|
|
11495
|
-
|
|
11496
|
-
/**
|
|
11497
|
-
* @private
|
|
11498
|
-
*/
|
|
11499
|
-
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11500
|
-
|
|
11501
|
-
/**
|
|
11502
|
-
* @private
|
|
11503
|
-
*/
|
|
11504
|
-
this.mdCount = 3;
|
|
11505
|
-
|
|
11506
|
-
/**
|
|
11507
|
-
* @private
|
|
11508
|
-
*/
|
|
11509
|
-
this.smCount = 2;
|
|
11510
|
-
|
|
11511
|
-
/**
|
|
11512
|
-
* @private
|
|
11513
|
-
*/
|
|
11514
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
11515
|
-
|
|
11516
|
-
this.orbit = false;
|
|
11517
|
-
this.ringworm = false;
|
|
11518
|
-
this.laser = false;
|
|
11519
|
-
this.pulse = false;
|
|
11520
|
-
}
|
|
11521
|
-
|
|
11522
|
-
// function to define props used within the scope of this component
|
|
11523
|
-
static get properties() {
|
|
11524
|
-
return {
|
|
11525
|
-
pulse: {
|
|
11167
|
+
/**
|
|
11168
|
+
* Sets loader to laser type.
|
|
11169
|
+
*/
|
|
11170
|
+
laser: {
|
|
11526
11171
|
type: Boolean,
|
|
11527
11172
|
reflect: true
|
|
11528
11173
|
},
|
|
11174
|
+
|
|
11175
|
+
/**
|
|
11176
|
+
* Sets loader to orbit type.
|
|
11177
|
+
*/
|
|
11529
11178
|
orbit: {
|
|
11530
11179
|
type: Boolean,
|
|
11531
11180
|
reflect: true
|
|
11532
11181
|
},
|
|
11533
|
-
|
|
11182
|
+
|
|
11183
|
+
/**
|
|
11184
|
+
* Sets loader to pulse type.
|
|
11185
|
+
*/
|
|
11186
|
+
pulse: {
|
|
11534
11187
|
type: Boolean,
|
|
11535
11188
|
reflect: true
|
|
11536
11189
|
},
|
|
11537
|
-
|
|
11190
|
+
|
|
11191
|
+
/**
|
|
11192
|
+
* Sets loader to ringworm type.
|
|
11193
|
+
*/
|
|
11194
|
+
ringworm: {
|
|
11538
11195
|
type: Boolean,
|
|
11539
11196
|
reflect: true
|
|
11540
11197
|
}
|
|
@@ -11558,7 +11215,7 @@ let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
|
11558
11215
|
*
|
|
11559
11216
|
*/
|
|
11560
11217
|
static register(name = "auro-loader") {
|
|
11561
|
-
AuroLibraryRuntimeUtils$
|
|
11218
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroLoader);
|
|
11562
11219
|
}
|
|
11563
11220
|
|
|
11564
11221
|
firstUpdated() {
|
|
@@ -11608,23 +11265,26 @@ let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
|
11608
11265
|
}
|
|
11609
11266
|
};
|
|
11610
11267
|
|
|
11611
|
-
var loaderVersion$1 = '
|
|
11268
|
+
var loaderVersion$1 = '5.0.0';
|
|
11612
11269
|
|
|
11270
|
+
/* eslint-disable max-lines */
|
|
11613
11271
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11614
11272
|
// See LICENSE in the project root for license information.
|
|
11615
11273
|
|
|
11616
11274
|
|
|
11617
11275
|
/**
|
|
11618
11276
|
* @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
|
|
11619
|
-
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
11277
|
+
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
11620
11278
|
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11621
11279
|
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11280
|
+
* @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.
|
|
11622
11281
|
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11623
11282
|
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11624
11283
|
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11625
11284
|
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11626
11285
|
* @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.
|
|
11627
11286
|
* @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.
|
|
11287
|
+
* @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.
|
|
11628
11288
|
* @attr {String} id - Set the unique ID of an element.
|
|
11629
11289
|
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11630
11290
|
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
@@ -11669,6 +11329,7 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11669
11329
|
this.rounded = false;
|
|
11670
11330
|
this.slim = false;
|
|
11671
11331
|
this.fluid = false;
|
|
11332
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
11672
11333
|
|
|
11673
11334
|
// Support for HTML5 forms
|
|
11674
11335
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -11729,6 +11390,9 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11729
11390
|
type: Boolean,
|
|
11730
11391
|
reflect: true
|
|
11731
11392
|
},
|
|
11393
|
+
loadingText: {
|
|
11394
|
+
type: String
|
|
11395
|
+
},
|
|
11732
11396
|
onDark: {
|
|
11733
11397
|
type: Boolean,
|
|
11734
11398
|
reflect: true
|
|
@@ -11749,6 +11413,10 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11749
11413
|
type: String,
|
|
11750
11414
|
reflect: true
|
|
11751
11415
|
},
|
|
11416
|
+
ariaexpanded: {
|
|
11417
|
+
type: Boolean,
|
|
11418
|
+
reflect: true
|
|
11419
|
+
},
|
|
11752
11420
|
title: {
|
|
11753
11421
|
type: String,
|
|
11754
11422
|
reflect: true
|
|
@@ -11778,7 +11446,7 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11778
11446
|
*
|
|
11779
11447
|
*/
|
|
11780
11448
|
static register(name = "auro-button") {
|
|
11781
|
-
AuroLibraryRuntimeUtils$
|
|
11449
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroButton);
|
|
11782
11450
|
}
|
|
11783
11451
|
|
|
11784
11452
|
/**
|
|
@@ -11820,12 +11488,22 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11820
11488
|
this.notifyReady();
|
|
11821
11489
|
}
|
|
11822
11490
|
|
|
11491
|
+
/**
|
|
11492
|
+
* Submits the form that this button is associated with.
|
|
11493
|
+
* @private
|
|
11494
|
+
* @returns {void}
|
|
11495
|
+
*/
|
|
11823
11496
|
surfaceSubmitEvent() {
|
|
11824
11497
|
if (this.form) {
|
|
11825
11498
|
this.form.requestSubmit();
|
|
11826
11499
|
}
|
|
11827
11500
|
}
|
|
11828
11501
|
|
|
11502
|
+
/**
|
|
11503
|
+
* Returns the form element that this button is associated with.
|
|
11504
|
+
* @private
|
|
11505
|
+
* @returns {HTMLFormElement|null}
|
|
11506
|
+
*/
|
|
11829
11507
|
get form() {
|
|
11830
11508
|
return this.internals ? this.internals.form : null;
|
|
11831
11509
|
}
|
|
@@ -11845,8 +11523,9 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11845
11523
|
return u$2`
|
|
11846
11524
|
<button
|
|
11847
11525
|
part="button"
|
|
11848
|
-
aria-label="${o(this.
|
|
11526
|
+
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
11849
11527
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11528
|
+
aria-expanded="${o(this.ariaexpanded)}"
|
|
11850
11529
|
?autofocus="${this.autofocus}"
|
|
11851
11530
|
class="${e(classes)}"
|
|
11852
11531
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -11945,7 +11624,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11945
11624
|
*/
|
|
11946
11625
|
this.slots = {};
|
|
11947
11626
|
|
|
11948
|
-
const versioning = new AuroDependencyVersioning$
|
|
11627
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
11949
11628
|
|
|
11950
11629
|
/**
|
|
11951
11630
|
* @private
|
|
@@ -12237,7 +11916,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12237
11916
|
|
|
12238
11917
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12239
11918
|
|
|
12240
|
-
let AuroLibraryRuntimeUtils$
|
|
11919
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
12241
11920
|
|
|
12242
11921
|
/* eslint-disable jsdoc/require-param */
|
|
12243
11922
|
|
|
@@ -14436,7 +14115,7 @@ class AuroFloatingUI {
|
|
|
14436
14115
|
// See LICENSE in the project root for license information.
|
|
14437
14116
|
|
|
14438
14117
|
|
|
14439
|
-
let AuroDependencyVersioning$
|
|
14118
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
14440
14119
|
|
|
14441
14120
|
/**
|
|
14442
14121
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -14538,7 +14217,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
14538
14217
|
return _fetchMap$1.get(uri);
|
|
14539
14218
|
};
|
|
14540
14219
|
|
|
14541
|
-
var styleCss$3$1 = i$5`: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}
|
|
14220
|
+
var styleCss$3$1 = i$5`: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}`;
|
|
14542
14221
|
|
|
14543
14222
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14544
14223
|
// See LICENSE in the project root for license information.
|
|
@@ -14546,7 +14225,6 @@ var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
14546
14225
|
|
|
14547
14226
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14548
14227
|
/**
|
|
14549
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
14550
14228
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
14551
14229
|
*/
|
|
14552
14230
|
|
|
@@ -14561,6 +14239,10 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
14561
14239
|
static get properties() {
|
|
14562
14240
|
return {
|
|
14563
14241
|
...super.properties,
|
|
14242
|
+
|
|
14243
|
+
/**
|
|
14244
|
+
* Set value for on-dark version of auro-icon.
|
|
14245
|
+
*/
|
|
14564
14246
|
onDark: {
|
|
14565
14247
|
type: Boolean,
|
|
14566
14248
|
reflect: true
|
|
@@ -14619,81 +14301,11 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
14619
14301
|
}
|
|
14620
14302
|
};
|
|
14621
14303
|
|
|
14622
|
-
var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
14623
|
-
|
|
14624
|
-
var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
14625
|
-
|
|
14626
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14627
|
-
// See LICENSE in the project root for license information.
|
|
14628
|
-
|
|
14629
|
-
// ---------------------------------------------------------------------
|
|
14630
|
-
|
|
14631
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14632
|
-
|
|
14633
|
-
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14634
|
-
|
|
14635
|
-
/* eslint-disable jsdoc/require-param */
|
|
14636
|
-
|
|
14637
|
-
/**
|
|
14638
|
-
* This will register a new custom element with the browser.
|
|
14639
|
-
* @param {String} name - The name of the custom element.
|
|
14640
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
14641
|
-
* @returns {void}
|
|
14642
|
-
*/
|
|
14643
|
-
registerComponent(name, componentClass) {
|
|
14644
|
-
if (!customElements.get(name)) {
|
|
14645
|
-
customElements.define(name, class extends componentClass {});
|
|
14646
|
-
}
|
|
14647
|
-
}
|
|
14648
|
-
|
|
14649
|
-
/**
|
|
14650
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
14651
|
-
* @returns {void}
|
|
14652
|
-
*/
|
|
14653
|
-
closestElement(
|
|
14654
|
-
selector, // selector like in .closest()
|
|
14655
|
-
base = this, // extra functionality to skip a parent
|
|
14656
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14657
|
-
!el || el === document || el === window
|
|
14658
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
14659
|
-
: found
|
|
14660
|
-
? found // found a selector INside this element
|
|
14661
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14662
|
-
) {
|
|
14663
|
-
return __Closest(base);
|
|
14664
|
-
}
|
|
14665
|
-
/* eslint-enable jsdoc/require-param */
|
|
14666
|
-
|
|
14667
|
-
/**
|
|
14668
|
-
* 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.
|
|
14669
|
-
* @param {Object} elem - The element to check.
|
|
14670
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14671
|
-
* @returns {void}
|
|
14672
|
-
*/
|
|
14673
|
-
handleComponentTagRename(elem, tagName) {
|
|
14674
|
-
const tag = tagName.toLowerCase();
|
|
14675
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
14676
|
-
|
|
14677
|
-
if (elemTag !== tag) {
|
|
14678
|
-
elem.setAttribute(tag, true);
|
|
14679
|
-
}
|
|
14680
|
-
}
|
|
14681
|
-
|
|
14682
|
-
/**
|
|
14683
|
-
* Validates if an element is a specific Auro component.
|
|
14684
|
-
* @param {Object} elem - The element to validate.
|
|
14685
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
14686
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14687
|
-
*/
|
|
14688
|
-
elementMatch(elem, tagName) {
|
|
14689
|
-
const tag = tagName.toLowerCase();
|
|
14690
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
14304
|
+
var tokensCss$2$1 = i$5`: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)}`;
|
|
14691
14305
|
|
|
14692
|
-
|
|
14693
|
-
}
|
|
14694
|
-
};
|
|
14306
|
+
var colorCss$3$1 = i$5`: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)}`;
|
|
14695
14307
|
|
|
14696
|
-
// Copyright (c)
|
|
14308
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14697
14309
|
// See LICENSE in the project root for license information.
|
|
14698
14310
|
|
|
14699
14311
|
|
|
@@ -14701,6 +14313,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14701
14313
|
constructor() {
|
|
14702
14314
|
super();
|
|
14703
14315
|
|
|
14316
|
+
this.variant = undefined;
|
|
14704
14317
|
this.privateDefaults();
|
|
14705
14318
|
}
|
|
14706
14319
|
|
|
@@ -14710,20 +14323,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14710
14323
|
* @returns {void}
|
|
14711
14324
|
*/
|
|
14712
14325
|
privateDefaults() {
|
|
14713
|
-
this.accent = false;
|
|
14714
|
-
this.customColor = false;
|
|
14715
|
-
this.customSvg = false;
|
|
14716
|
-
this.disabled = false;
|
|
14717
|
-
this.emphasis = false;
|
|
14718
|
-
this.error = false;
|
|
14719
|
-
this.info = false;
|
|
14720
|
-
this.label = false;
|
|
14721
|
-
this.primary = false;
|
|
14722
|
-
this.secondary = false;
|
|
14723
|
-
this.subtle = false;
|
|
14724
|
-
this.success = false;
|
|
14725
|
-
this.tertiary = false;
|
|
14726
|
-
this.warning = false;
|
|
14727
14326
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
14728
14327
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
14729
14328
|
}
|
|
@@ -14734,18 +14333,10 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14734
14333
|
...super.properties,
|
|
14735
14334
|
|
|
14736
14335
|
/**
|
|
14737
|
-
*
|
|
14336
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14738
14337
|
*/
|
|
14739
|
-
|
|
14740
|
-
type:
|
|
14741
|
-
reflect: true
|
|
14742
|
-
},
|
|
14743
|
-
|
|
14744
|
-
/**
|
|
14745
|
-
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14746
|
-
*/
|
|
14747
|
-
ariaHidden: {
|
|
14748
|
-
type: String,
|
|
14338
|
+
ariaHidden: {
|
|
14339
|
+
type: String,
|
|
14749
14340
|
reflect: true
|
|
14750
14341
|
},
|
|
14751
14342
|
|
|
@@ -14771,38 +14362,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14771
14362
|
type: Boolean
|
|
14772
14363
|
},
|
|
14773
14364
|
|
|
14774
|
-
/**
|
|
14775
|
-
* Sets the icon to use the disabled style.
|
|
14776
|
-
*/
|
|
14777
|
-
disabled: {
|
|
14778
|
-
type: Boolean,
|
|
14779
|
-
reflect: true
|
|
14780
|
-
},
|
|
14781
|
-
|
|
14782
|
-
/**
|
|
14783
|
-
* Sets the icon to use the emphasis style.
|
|
14784
|
-
*/
|
|
14785
|
-
emphasis: {
|
|
14786
|
-
type: Boolean,
|
|
14787
|
-
reflect: true
|
|
14788
|
-
},
|
|
14789
|
-
|
|
14790
|
-
/**
|
|
14791
|
-
* Sets the icon to use the error style.
|
|
14792
|
-
*/
|
|
14793
|
-
error: {
|
|
14794
|
-
type: Boolean,
|
|
14795
|
-
reflect: true
|
|
14796
|
-
},
|
|
14797
|
-
|
|
14798
|
-
/**
|
|
14799
|
-
* Sets the icon to use the info style.
|
|
14800
|
-
*/
|
|
14801
|
-
info: {
|
|
14802
|
-
type: Boolean,
|
|
14803
|
-
reflect: true
|
|
14804
|
-
},
|
|
14805
|
-
|
|
14806
14365
|
/**
|
|
14807
14366
|
* Exposes content in slot as icon label.
|
|
14808
14367
|
*/
|
|
@@ -14820,50 +14379,10 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14820
14379
|
},
|
|
14821
14380
|
|
|
14822
14381
|
/**
|
|
14823
|
-
*
|
|
14824
|
-
*/
|
|
14825
|
-
primary: {
|
|
14826
|
-
type: Boolean,
|
|
14827
|
-
reflect: true
|
|
14828
|
-
},
|
|
14829
|
-
|
|
14830
|
-
/**
|
|
14831
|
-
* Sets the icon to use the secondary style.
|
|
14832
|
-
*/
|
|
14833
|
-
secondary: {
|
|
14834
|
-
type: Boolean,
|
|
14835
|
-
reflect: true
|
|
14836
|
-
},
|
|
14837
|
-
|
|
14838
|
-
/**
|
|
14839
|
-
* Sets the icon to use the subtle style.
|
|
14840
|
-
*/
|
|
14841
|
-
subtle: {
|
|
14842
|
-
type: Boolean,
|
|
14843
|
-
reflect: true
|
|
14844
|
-
},
|
|
14845
|
-
|
|
14846
|
-
/**
|
|
14847
|
-
* Sets the icon to use the success style.
|
|
14382
|
+
* 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`.
|
|
14848
14383
|
*/
|
|
14849
|
-
|
|
14850
|
-
type:
|
|
14851
|
-
reflect: true
|
|
14852
|
-
},
|
|
14853
|
-
|
|
14854
|
-
/**
|
|
14855
|
-
* Sets the icon to use the tertiary style.
|
|
14856
|
-
*/
|
|
14857
|
-
tertiary: {
|
|
14858
|
-
type: Boolean,
|
|
14859
|
-
reflect: true
|
|
14860
|
-
},
|
|
14861
|
-
|
|
14862
|
-
/**
|
|
14863
|
-
* Sets the icon to use the warning style.
|
|
14864
|
-
*/
|
|
14865
|
-
warning: {
|
|
14866
|
-
type: Boolean,
|
|
14384
|
+
variant: {
|
|
14385
|
+
type: String,
|
|
14867
14386
|
reflect: true
|
|
14868
14387
|
}
|
|
14869
14388
|
};
|
|
@@ -14959,7 +14478,7 @@ var styleCss$2$1 = i$5`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
14959
14478
|
|
|
14960
14479
|
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
14961
14480
|
|
|
14962
|
-
var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-
|
|
14481
|
+
var tokensCss$1$1 = i$5`: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)}`;
|
|
14963
14482
|
|
|
14964
14483
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14965
14484
|
// See LICENSE in the project root for license information.
|
|
@@ -14989,7 +14508,7 @@ class AuroDropdownBib extends r$2 {
|
|
|
14989
14508
|
*/
|
|
14990
14509
|
this._mobileBreakpointValue = undefined;
|
|
14991
14510
|
|
|
14992
|
-
AuroLibraryRuntimeUtils$
|
|
14511
|
+
AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
14993
14512
|
}
|
|
14994
14513
|
|
|
14995
14514
|
static get styles() {
|
|
@@ -15082,13 +14601,13 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
15082
14601
|
|
|
15083
14602
|
var styleCss$1$1 = i$5`: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)}`;
|
|
15084
14603
|
|
|
15085
|
-
var colorCss$1$1 = i$5`.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-
|
|
14604
|
+
var colorCss$1$1 = i$5`.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))}`;
|
|
15086
14605
|
|
|
15087
|
-
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
14606
|
+
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
15088
14607
|
|
|
15089
14608
|
var styleCss$5 = i$5`.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}`;
|
|
15090
14609
|
|
|
15091
|
-
var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
14610
|
+
var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15092
14611
|
|
|
15093
14612
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15094
14613
|
// See LICENSE in the project root for license information.
|
|
@@ -15097,7 +14616,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
|
|
|
15097
14616
|
|
|
15098
14617
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15099
14618
|
|
|
15100
|
-
let AuroLibraryRuntimeUtils$
|
|
14619
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
15101
14620
|
|
|
15102
14621
|
/* eslint-disable jsdoc/require-param */
|
|
15103
14622
|
|
|
@@ -15175,9 +14694,10 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15175
14694
|
super();
|
|
15176
14695
|
|
|
15177
14696
|
this.error = false;
|
|
14697
|
+
this.onDark = false;
|
|
15178
14698
|
this.hasTextContent = false;
|
|
15179
14699
|
|
|
15180
|
-
AuroLibraryRuntimeUtils$
|
|
14700
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15181
14701
|
}
|
|
15182
14702
|
|
|
15183
14703
|
static get styles() {
|
|
@@ -15213,6 +14733,14 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15213
14733
|
type: Boolean,
|
|
15214
14734
|
reflect: true,
|
|
15215
14735
|
},
|
|
14736
|
+
|
|
14737
|
+
/**
|
|
14738
|
+
* If declared, will apply onDark styles.
|
|
14739
|
+
*/
|
|
14740
|
+
onDark: {
|
|
14741
|
+
type: Boolean,
|
|
14742
|
+
reflect: true
|
|
14743
|
+
}
|
|
15216
14744
|
};
|
|
15217
14745
|
}
|
|
15218
14746
|
|
|
@@ -15225,7 +14753,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15225
14753
|
*
|
|
15226
14754
|
*/
|
|
15227
14755
|
static register(name = "auro-helptext") {
|
|
15228
|
-
AuroLibraryRuntimeUtils$
|
|
14756
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
15229
14757
|
}
|
|
15230
14758
|
|
|
15231
14759
|
updated() {
|
|
@@ -15344,6 +14872,7 @@ class AuroDropdown extends r$2 {
|
|
|
15344
14872
|
this.tabIndex = 0;
|
|
15345
14873
|
this.noToggle = false;
|
|
15346
14874
|
this.labeled = true;
|
|
14875
|
+
this.onDark = false;
|
|
15347
14876
|
|
|
15348
14877
|
// floaterConfig
|
|
15349
14878
|
this.placement = 'bottom-start';
|
|
@@ -15364,7 +14893,7 @@ class AuroDropdown extends r$2 {
|
|
|
15364
14893
|
/**
|
|
15365
14894
|
* @private
|
|
15366
14895
|
*/
|
|
15367
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
14896
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
15368
14897
|
|
|
15369
14898
|
/**
|
|
15370
14899
|
* @private
|
|
@@ -15374,7 +14903,7 @@ class AuroDropdown extends r$2 {
|
|
|
15374
14903
|
/**
|
|
15375
14904
|
* Generate unique names for dependency components.
|
|
15376
14905
|
*/
|
|
15377
|
-
const versioning = new AuroDependencyVersioning$
|
|
14906
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
15378
14907
|
|
|
15379
14908
|
/**
|
|
15380
14909
|
* @private
|
|
@@ -15600,6 +15129,14 @@ class AuroDropdown extends r$2 {
|
|
|
15600
15129
|
reflect: true
|
|
15601
15130
|
},
|
|
15602
15131
|
|
|
15132
|
+
/**
|
|
15133
|
+
* If declared, onDark styles will be applied.
|
|
15134
|
+
*/
|
|
15135
|
+
onDark: {
|
|
15136
|
+
type: Boolean,
|
|
15137
|
+
reflect: true
|
|
15138
|
+
},
|
|
15139
|
+
|
|
15603
15140
|
onSlotChange: {
|
|
15604
15141
|
type: Function,
|
|
15605
15142
|
reflect: false
|
|
@@ -15653,7 +15190,7 @@ class AuroDropdown extends r$2 {
|
|
|
15653
15190
|
*
|
|
15654
15191
|
*/
|
|
15655
15192
|
static register(name = "auro-dropdown") {
|
|
15656
|
-
AuroLibraryRuntimeUtils$
|
|
15193
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15657
15194
|
}
|
|
15658
15195
|
|
|
15659
15196
|
connectedCallback() {
|
|
@@ -15970,14 +15507,14 @@ class AuroDropdown extends r$2 {
|
|
|
15970
15507
|
<${this.iconTag}
|
|
15971
15508
|
category="interface"
|
|
15972
15509
|
name="chevron-down"
|
|
15973
|
-
|
|
15974
|
-
|
|
15510
|
+
?onDark="${this.onDark}"
|
|
15511
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
15975
15512
|
>
|
|
15976
15513
|
</${this.iconTag}>
|
|
15977
15514
|
</div>
|
|
15978
15515
|
` : undefined }
|
|
15979
15516
|
</div>
|
|
15980
|
-
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
15517
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
15981
15518
|
<slot name="helpText"></slot>
|
|
15982
15519
|
</${this.helpTextTag}>
|
|
15983
15520
|
<div class="slotContent">
|
|
@@ -16134,11 +15671,11 @@ function stopNotifyingOnLangChange(element) {
|
|
|
16134
15671
|
watchedItems.delete(element);
|
|
16135
15672
|
}
|
|
16136
15673
|
|
|
16137
|
-
var styleCss$4 = i$5
|
|
15674
|
+
var styleCss$4 = i$5`: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}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
16138
15675
|
|
|
16139
|
-
var colorCss$4 = i$5`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-
|
|
15676
|
+
var colorCss$4 = i$5`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark][bordered]){--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
16140
15677
|
|
|
16141
|
-
var tokensCss$4 = i$5`:host{--ds-auro-input-border-color: var(--ds-color-border-
|
|
15678
|
+
var tokensCss$4 = i$5`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}`;
|
|
16142
15679
|
|
|
16143
15680
|
/** Checks if value is string */
|
|
16144
15681
|
function isString(str) {
|
|
@@ -19989,7 +19526,7 @@ class AuroInputUtilities {
|
|
|
19989
19526
|
|
|
19990
19527
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
19991
19528
|
|
|
19992
|
-
let AuroLibraryRuntimeUtils$
|
|
19529
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
19993
19530
|
|
|
19994
19531
|
/* eslint-disable jsdoc/require-param */
|
|
19995
19532
|
|
|
@@ -20058,7 +19595,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
20058
19595
|
|
|
20059
19596
|
class AuroFormValidation {
|
|
20060
19597
|
constructor() {
|
|
20061
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
19598
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
20062
19599
|
}
|
|
20063
19600
|
|
|
20064
19601
|
/**
|
|
@@ -20398,6 +19935,7 @@ class BaseInput extends r$2 {
|
|
|
20398
19935
|
this.min = undefined;
|
|
20399
19936
|
this.maxLength = undefined;
|
|
20400
19937
|
this.minLength = undefined;
|
|
19938
|
+
this.onDark = false;
|
|
20401
19939
|
this.activeLabel = false;
|
|
20402
19940
|
this.setCustomValidityForType = undefined;
|
|
20403
19941
|
}
|
|
@@ -20588,6 +20126,14 @@ class BaseInput extends r$2 {
|
|
|
20588
20126
|
type: Boolean
|
|
20589
20127
|
},
|
|
20590
20128
|
|
|
20129
|
+
/**
|
|
20130
|
+
* Sets onDark styles on input.
|
|
20131
|
+
*/
|
|
20132
|
+
onDark: {
|
|
20133
|
+
type: Boolean,
|
|
20134
|
+
reflect: true
|
|
20135
|
+
},
|
|
20136
|
+
|
|
20591
20137
|
/**
|
|
20592
20138
|
* Specifies a regular expression the form control's value should match.
|
|
20593
20139
|
*/
|
|
@@ -21322,7 +20868,7 @@ class BaseInput extends r$2 {
|
|
|
21322
20868
|
// See LICENSE in the project root for license information.
|
|
21323
20869
|
|
|
21324
20870
|
|
|
21325
|
-
|
|
20871
|
+
class AuroDependencyVersioning {
|
|
21326
20872
|
|
|
21327
20873
|
/**
|
|
21328
20874
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -21356,7 +20902,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
21356
20902
|
|
|
21357
20903
|
return tag;
|
|
21358
20904
|
}
|
|
21359
|
-
}
|
|
20905
|
+
}
|
|
21360
20906
|
|
|
21361
20907
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21362
20908
|
// See LICENSE in the project root for license information.
|
|
@@ -21424,7 +20970,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
21424
20970
|
return _fetchMap.get(uri);
|
|
21425
20971
|
};
|
|
21426
20972
|
|
|
21427
|
-
var styleCss$3 = i$5`: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}
|
|
20973
|
+
var styleCss$3 = i$5`: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}`;
|
|
21428
20974
|
|
|
21429
20975
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21430
20976
|
// See LICENSE in the project root for license information.
|
|
@@ -21432,7 +20978,6 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
21432
20978
|
|
|
21433
20979
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
21434
20980
|
/**
|
|
21435
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
21436
20981
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
21437
20982
|
*/
|
|
21438
20983
|
|
|
@@ -21447,6 +20992,10 @@ class BaseIcon extends AuroElement {
|
|
|
21447
20992
|
static get properties() {
|
|
21448
20993
|
return {
|
|
21449
20994
|
...super.properties,
|
|
20995
|
+
|
|
20996
|
+
/**
|
|
20997
|
+
* Set value for on-dark version of auro-icon.
|
|
20998
|
+
*/
|
|
21450
20999
|
onDark: {
|
|
21451
21000
|
type: Boolean,
|
|
21452
21001
|
reflect: true
|
|
@@ -21505,81 +21054,11 @@ class BaseIcon extends AuroElement {
|
|
|
21505
21054
|
}
|
|
21506
21055
|
}
|
|
21507
21056
|
|
|
21508
|
-
var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
21509
|
-
|
|
21510
|
-
var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
|
|
21511
|
-
|
|
21512
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21513
|
-
// See LICENSE in the project root for license information.
|
|
21514
|
-
|
|
21515
|
-
// ---------------------------------------------------------------------
|
|
21057
|
+
var tokensCss$3 = i$5`: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)}`;
|
|
21516
21058
|
|
|
21517
|
-
|
|
21518
|
-
|
|
21519
|
-
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
21059
|
+
var colorCss$3 = i$5`: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)}`;
|
|
21520
21060
|
|
|
21521
|
-
|
|
21522
|
-
|
|
21523
|
-
/**
|
|
21524
|
-
* This will register a new custom element with the browser.
|
|
21525
|
-
* @param {String} name - The name of the custom element.
|
|
21526
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
21527
|
-
* @returns {void}
|
|
21528
|
-
*/
|
|
21529
|
-
registerComponent(name, componentClass) {
|
|
21530
|
-
if (!customElements.get(name)) {
|
|
21531
|
-
customElements.define(name, class extends componentClass {});
|
|
21532
|
-
}
|
|
21533
|
-
}
|
|
21534
|
-
|
|
21535
|
-
/**
|
|
21536
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
21537
|
-
* @returns {void}
|
|
21538
|
-
*/
|
|
21539
|
-
closestElement(
|
|
21540
|
-
selector, // selector like in .closest()
|
|
21541
|
-
base = this, // extra functionality to skip a parent
|
|
21542
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21543
|
-
!el || el === document || el === window
|
|
21544
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
21545
|
-
: found
|
|
21546
|
-
? found // found a selector INside this element
|
|
21547
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21548
|
-
) {
|
|
21549
|
-
return __Closest(base);
|
|
21550
|
-
}
|
|
21551
|
-
/* eslint-enable jsdoc/require-param */
|
|
21552
|
-
|
|
21553
|
-
/**
|
|
21554
|
-
* 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.
|
|
21555
|
-
* @param {Object} elem - The element to check.
|
|
21556
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21557
|
-
* @returns {void}
|
|
21558
|
-
*/
|
|
21559
|
-
handleComponentTagRename(elem, tagName) {
|
|
21560
|
-
const tag = tagName.toLowerCase();
|
|
21561
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21562
|
-
|
|
21563
|
-
if (elemTag !== tag) {
|
|
21564
|
-
elem.setAttribute(tag, true);
|
|
21565
|
-
}
|
|
21566
|
-
}
|
|
21567
|
-
|
|
21568
|
-
/**
|
|
21569
|
-
* Validates if an element is a specific Auro component.
|
|
21570
|
-
* @param {Object} elem - The element to validate.
|
|
21571
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
21572
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21573
|
-
*/
|
|
21574
|
-
elementMatch(elem, tagName) {
|
|
21575
|
-
const tag = tagName.toLowerCase();
|
|
21576
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21577
|
-
|
|
21578
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
21579
|
-
}
|
|
21580
|
-
};
|
|
21581
|
-
|
|
21582
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21061
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21583
21062
|
// See LICENSE in the project root for license information.
|
|
21584
21063
|
|
|
21585
21064
|
|
|
@@ -21587,6 +21066,7 @@ class AuroIcon extends BaseIcon {
|
|
|
21587
21066
|
constructor() {
|
|
21588
21067
|
super();
|
|
21589
21068
|
|
|
21069
|
+
this.variant = undefined;
|
|
21590
21070
|
this.privateDefaults();
|
|
21591
21071
|
}
|
|
21592
21072
|
|
|
@@ -21596,22 +21076,8 @@ class AuroIcon extends BaseIcon {
|
|
|
21596
21076
|
* @returns {void}
|
|
21597
21077
|
*/
|
|
21598
21078
|
privateDefaults() {
|
|
21599
|
-
this.accent = false;
|
|
21600
|
-
this.customColor = false;
|
|
21601
|
-
this.customSvg = false;
|
|
21602
|
-
this.disabled = false;
|
|
21603
|
-
this.emphasis = false;
|
|
21604
|
-
this.error = false;
|
|
21605
|
-
this.info = false;
|
|
21606
|
-
this.label = false;
|
|
21607
|
-
this.primary = false;
|
|
21608
|
-
this.secondary = false;
|
|
21609
|
-
this.subtle = false;
|
|
21610
|
-
this.success = false;
|
|
21611
|
-
this.tertiary = false;
|
|
21612
|
-
this.warning = false;
|
|
21613
21079
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
21614
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21080
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
21615
21081
|
}
|
|
21616
21082
|
|
|
21617
21083
|
// function to define props used within the scope of this component
|
|
@@ -21619,14 +21085,6 @@ class AuroIcon extends BaseIcon {
|
|
|
21619
21085
|
return {
|
|
21620
21086
|
...super.properties,
|
|
21621
21087
|
|
|
21622
|
-
/**
|
|
21623
|
-
* Sets the icon to use the accent style.
|
|
21624
|
-
*/
|
|
21625
|
-
accent: {
|
|
21626
|
-
type: Boolean,
|
|
21627
|
-
reflect: true
|
|
21628
|
-
},
|
|
21629
|
-
|
|
21630
21088
|
/**
|
|
21631
21089
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
21632
21090
|
*/
|
|
@@ -21657,38 +21115,6 @@ class AuroIcon extends BaseIcon {
|
|
|
21657
21115
|
type: Boolean
|
|
21658
21116
|
},
|
|
21659
21117
|
|
|
21660
|
-
/**
|
|
21661
|
-
* Sets the icon to use the disabled style.
|
|
21662
|
-
*/
|
|
21663
|
-
disabled: {
|
|
21664
|
-
type: Boolean,
|
|
21665
|
-
reflect: true
|
|
21666
|
-
},
|
|
21667
|
-
|
|
21668
|
-
/**
|
|
21669
|
-
* Sets the icon to use the emphasis style.
|
|
21670
|
-
*/
|
|
21671
|
-
emphasis: {
|
|
21672
|
-
type: Boolean,
|
|
21673
|
-
reflect: true
|
|
21674
|
-
},
|
|
21675
|
-
|
|
21676
|
-
/**
|
|
21677
|
-
* Sets the icon to use the error style.
|
|
21678
|
-
*/
|
|
21679
|
-
error: {
|
|
21680
|
-
type: Boolean,
|
|
21681
|
-
reflect: true
|
|
21682
|
-
},
|
|
21683
|
-
|
|
21684
|
-
/**
|
|
21685
|
-
* Sets the icon to use the info style.
|
|
21686
|
-
*/
|
|
21687
|
-
info: {
|
|
21688
|
-
type: Boolean,
|
|
21689
|
-
reflect: true
|
|
21690
|
-
},
|
|
21691
|
-
|
|
21692
21118
|
/**
|
|
21693
21119
|
* Exposes content in slot as icon label.
|
|
21694
21120
|
*/
|
|
@@ -21706,50 +21132,10 @@ class AuroIcon extends BaseIcon {
|
|
|
21706
21132
|
},
|
|
21707
21133
|
|
|
21708
21134
|
/**
|
|
21709
|
-
*
|
|
21710
|
-
*/
|
|
21711
|
-
primary: {
|
|
21712
|
-
type: Boolean,
|
|
21713
|
-
reflect: true
|
|
21714
|
-
},
|
|
21715
|
-
|
|
21716
|
-
/**
|
|
21717
|
-
* Sets the icon to use the secondary style.
|
|
21718
|
-
*/
|
|
21719
|
-
secondary: {
|
|
21720
|
-
type: Boolean,
|
|
21721
|
-
reflect: true
|
|
21722
|
-
},
|
|
21723
|
-
|
|
21724
|
-
/**
|
|
21725
|
-
* Sets the icon to use the subtle style.
|
|
21135
|
+
* 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`.
|
|
21726
21136
|
*/
|
|
21727
|
-
|
|
21728
|
-
type:
|
|
21729
|
-
reflect: true
|
|
21730
|
-
},
|
|
21731
|
-
|
|
21732
|
-
/**
|
|
21733
|
-
* Sets the icon to use the success style.
|
|
21734
|
-
*/
|
|
21735
|
-
success: {
|
|
21736
|
-
type: Boolean,
|
|
21737
|
-
reflect: true
|
|
21738
|
-
},
|
|
21739
|
-
|
|
21740
|
-
/**
|
|
21741
|
-
* Sets the icon to use the tertiary style.
|
|
21742
|
-
*/
|
|
21743
|
-
tertiary: {
|
|
21744
|
-
type: Boolean,
|
|
21745
|
-
reflect: true
|
|
21746
|
-
},
|
|
21747
|
-
|
|
21748
|
-
/**
|
|
21749
|
-
* Sets the icon to use the warning style.
|
|
21750
|
-
*/
|
|
21751
|
-
warning: {
|
|
21752
|
-
type: Boolean,
|
|
21137
|
+
variant: {
|
|
21138
|
+
type: String,
|
|
21753
21139
|
reflect: true
|
|
21754
21140
|
}
|
|
21755
21141
|
};
|
|
@@ -21773,7 +21159,7 @@ class AuroIcon extends BaseIcon {
|
|
|
21773
21159
|
*
|
|
21774
21160
|
*/
|
|
21775
21161
|
static register(name = "auro-icon") {
|
|
21776
|
-
AuroLibraryRuntimeUtils$
|
|
21162
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
21777
21163
|
}
|
|
21778
21164
|
|
|
21779
21165
|
connectedCallback() {
|
|
@@ -21839,197 +21225,17 @@ class AuroIcon extends BaseIcon {
|
|
|
21839
21225
|
}
|
|
21840
21226
|
}
|
|
21841
21227
|
|
|
21842
|
-
var iconVersion = '
|
|
21843
|
-
|
|
21844
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21845
|
-
// See LICENSE in the project root for license information.
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
class AuroDependencyVersioning {
|
|
21849
|
-
|
|
21850
|
-
/**
|
|
21851
|
-
* Generates a unique string to be used for child auro element naming.
|
|
21852
|
-
* @private
|
|
21853
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21854
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21855
|
-
* @returns {string} - Unique string to be used for naming.
|
|
21856
|
-
*/
|
|
21857
|
-
generateElementName(baseName, version) {
|
|
21858
|
-
let result = baseName;
|
|
21859
|
-
|
|
21860
|
-
result += '-';
|
|
21861
|
-
result += version.replace(/[.]/g, '_');
|
|
21862
|
-
|
|
21863
|
-
return result;
|
|
21864
|
-
}
|
|
21865
|
-
|
|
21866
|
-
/**
|
|
21867
|
-
* Generates a unique string to be used for child auro element naming.
|
|
21868
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
21869
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
21870
|
-
* @returns {string} - Unique string to be used for naming.
|
|
21871
|
-
*/
|
|
21872
|
-
generateTag(baseName, version, tagClass) {
|
|
21873
|
-
const elementName = this.generateElementName(baseName, version);
|
|
21874
|
-
const tag = i$1`${s$1(elementName)}`;
|
|
21875
|
-
|
|
21876
|
-
if (!customElements.get(elementName)) {
|
|
21877
|
-
customElements.define(elementName, class extends tagClass {});
|
|
21878
|
-
}
|
|
21879
|
-
|
|
21880
|
-
return tag;
|
|
21881
|
-
}
|
|
21882
|
-
}
|
|
21883
|
-
|
|
21884
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21885
|
-
// See LICENSE in the project root for license information.
|
|
21886
|
-
|
|
21887
|
-
// ---------------------------------------------------------------------
|
|
21888
|
-
|
|
21889
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21890
|
-
|
|
21891
|
-
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
21892
|
-
|
|
21893
|
-
/* eslint-disable jsdoc/require-param */
|
|
21894
|
-
|
|
21895
|
-
/**
|
|
21896
|
-
* This will register a new custom element with the browser.
|
|
21897
|
-
* @param {String} name - The name of the custom element.
|
|
21898
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
21899
|
-
* @returns {void}
|
|
21900
|
-
*/
|
|
21901
|
-
registerComponent(name, componentClass) {
|
|
21902
|
-
if (!customElements.get(name)) {
|
|
21903
|
-
customElements.define(name, class extends componentClass {});
|
|
21904
|
-
}
|
|
21905
|
-
}
|
|
21906
|
-
|
|
21907
|
-
/**
|
|
21908
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
21909
|
-
* @returns {void}
|
|
21910
|
-
*/
|
|
21911
|
-
closestElement(
|
|
21912
|
-
selector, // selector like in .closest()
|
|
21913
|
-
base = this, // extra functionality to skip a parent
|
|
21914
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21915
|
-
!el || el === document || el === window
|
|
21916
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
21917
|
-
: found
|
|
21918
|
-
? found // found a selector INside this element
|
|
21919
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21920
|
-
) {
|
|
21921
|
-
return __Closest(base);
|
|
21922
|
-
}
|
|
21923
|
-
/* eslint-enable jsdoc/require-param */
|
|
21924
|
-
|
|
21925
|
-
/**
|
|
21926
|
-
* 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.
|
|
21927
|
-
* @param {Object} elem - The element to check.
|
|
21928
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21929
|
-
* @returns {void}
|
|
21930
|
-
*/
|
|
21931
|
-
handleComponentTagRename(elem, tagName) {
|
|
21932
|
-
const tag = tagName.toLowerCase();
|
|
21933
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21934
|
-
|
|
21935
|
-
if (elemTag !== tag) {
|
|
21936
|
-
elem.setAttribute(tag, true);
|
|
21937
|
-
}
|
|
21938
|
-
}
|
|
21939
|
-
|
|
21940
|
-
/**
|
|
21941
|
-
* Validates if an element is a specific Auro component.
|
|
21942
|
-
* @param {Object} elem - The element to validate.
|
|
21943
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
21944
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21945
|
-
*/
|
|
21946
|
-
elementMatch(elem, tagName) {
|
|
21947
|
-
const tag = tagName.toLowerCase();
|
|
21948
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21949
|
-
|
|
21950
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
21951
|
-
}
|
|
21952
|
-
};
|
|
21953
|
-
|
|
21954
|
-
var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-text-body-size-default, 1rem);font-weight:var(--ds-text-body-default-weight, 500);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]):after{display:block;content:"";height:calc(100% - 2px);width:calc(100% - 2px);position:absolute;top:1px;left:1px;border-radius:4px;border-style:solid;border-width:2px}.auro-button:focus-visible[variant=secondary]:after,.auro-button:focus-visible[variant=tertiary]:after{display:block;content:"";height:100%;width:100%;position:absolute;top:0;left:0;border-radius:var(--ds-border-radius, 0.375rem);border-style:solid;border-width:2px}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-text-body-size-sm, 0.875rem);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, $ds-size-200) + var(--ds-size-50, $ds-size-50))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, $ds-size-300)}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
21955
|
-
|
|
21956
|
-
var colorCss$2 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible:after{border-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-default, #225296);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-default, #225296)}.auro-button:not([ondark])[disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-default, #a0c9f1)}@media(hover: hover){.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-default, #193d73);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-default, #ffffff);--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-default, #193d73);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-default, #2c67b5)}.auro-button:not([ondark])[variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-default, #f0f7fd);--ds-auro-button-border-color:var(--ds-color-border-ui-active-default, #225296);--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-default, #f7f7f7);--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-default, #2c67b5)}@media(hover: hover){.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-default, rgba(0, 0, 0, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-default, #193d73)}}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-default, #2c67b5)}.auro-button:not([ondark])[variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-default, rgba(0, 0, 0, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-default, #225296)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-default, rgba(0, 0, 0, 0.03));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-default, #adadad)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-color-icon-ui-secondary-default-default);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-default);background-color:transparent;background-image:none;border-color:transparent}}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-color-icon-ui-secondary-disabled-default);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-button-loader-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-hover-inverse, #a8e9f7)}}.auro-button[ondark]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-active-inverse, #6ad5ef)}.auro-button[ondark][disabled]{--ds-auro-button-container-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-disabled-inverse, #275b72);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e);--ds-auro-button-border-color:var(--ds-color-container-ui-primary-disabled-inverse, #275b72)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-default-inverse, rgba(255, 255, 255, 0.03));--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=secondary]:hover{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-hover-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-hover-inverse, #a8e9f7);--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-color-border-ui-focus-inverse, #56bbde)}.auro-button[ondark][variant=secondary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:var(--ds-color-border-ui-active-inverse, #6ad5ef);--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-secondary-disabled-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:var(--ds-color-border-ui-disabled-inverse, #7e7e7e);--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-default-inverse, rgba(255, 255, 255, 0.12));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-default-inverse, #56bbde)}@media(hover: hover){.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-hover-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-hover-inverse, #a8e9f7)}}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-color-border-ui-default-inverse, #56bbde);--ds-auro-button-border-inset-color:var(--ds-color-border-ui-default-inverse, #56bbde)}.auro-button[ondark][variant=tertiary]:active{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-active-inverse, rgba(255, 255, 255, 0.06));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-active-inverse, #6ad5ef)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-container-color:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-container-image:var(--ds-color-container-ui-tertiary-disabled-inverse, rgba(255, 255, 255, 0.25));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-color-text-ui-disabled-inverse, #7e7e7e)}.auro-button[ondark][variant=flat]{color:var(--ds-color-icon-ui-secondary-default-inverse);background-color:transparent;background-image:none;border-color:transparent}@media(hover: hover){.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-color-icon-ui-secondary-hover-inverse);background-color:transparent;background-image:none;border-color:transparent}}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-color-icon-ui-disabled-default);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
21957
|
-
|
|
21958
|
-
var tokensCss$2 = i$5`:host{--ds-auro-button-border-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-border-inset-color:var(--ds-color-border-emphasis-inverse, #f2f7fb);--ds-auro-button-container-color:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-container-image:var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-button-loader-color:var(--ds-color-utility-navy-default, #265688);--ds-auro-button-text-color:var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
21959
|
-
|
|
21960
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21961
|
-
// See LICENSE in the project root for license information.
|
|
21962
|
-
|
|
21963
|
-
// ---------------------------------------------------------------------
|
|
21964
|
-
|
|
21965
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
21966
|
-
|
|
21967
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
21968
|
-
|
|
21969
|
-
/* eslint-disable jsdoc/require-param */
|
|
21970
|
-
|
|
21971
|
-
/**
|
|
21972
|
-
* This will register a new custom element with the browser.
|
|
21973
|
-
* @param {String} name - The name of the custom element.
|
|
21974
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
21975
|
-
* @returns {void}
|
|
21976
|
-
*/
|
|
21977
|
-
registerComponent(name, componentClass) {
|
|
21978
|
-
if (!customElements.get(name)) {
|
|
21979
|
-
customElements.define(name, class extends componentClass {});
|
|
21980
|
-
}
|
|
21981
|
-
}
|
|
21982
|
-
|
|
21983
|
-
/**
|
|
21984
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
21985
|
-
* @returns {void}
|
|
21986
|
-
*/
|
|
21987
|
-
closestElement(
|
|
21988
|
-
selector, // selector like in .closest()
|
|
21989
|
-
base = this, // extra functionality to skip a parent
|
|
21990
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21991
|
-
!el || el === document || el === window
|
|
21992
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
21993
|
-
: found
|
|
21994
|
-
? found // found a selector INside this element
|
|
21995
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21996
|
-
) {
|
|
21997
|
-
return __Closest(base);
|
|
21998
|
-
}
|
|
21999
|
-
/* eslint-enable jsdoc/require-param */
|
|
22000
|
-
|
|
22001
|
-
/**
|
|
22002
|
-
* 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.
|
|
22003
|
-
* @param {Object} elem - The element to check.
|
|
22004
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22005
|
-
* @returns {void}
|
|
22006
|
-
*/
|
|
22007
|
-
handleComponentTagRename(elem, tagName) {
|
|
22008
|
-
const tag = tagName.toLowerCase();
|
|
22009
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21228
|
+
var iconVersion = '8.0.1';
|
|
22010
21229
|
|
|
22011
|
-
|
|
22012
|
-
elem.setAttribute(tag, true);
|
|
22013
|
-
}
|
|
22014
|
-
}
|
|
21230
|
+
var styleCss$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-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}`;
|
|
22015
21231
|
|
|
22016
|
-
|
|
22017
|
-
* Validates if an element is a specific Auro component.
|
|
22018
|
-
* @param {Object} elem - The element to validate.
|
|
22019
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
22020
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22021
|
-
*/
|
|
22022
|
-
elementMatch(elem, tagName) {
|
|
22023
|
-
const tag = tagName.toLowerCase();
|
|
22024
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21232
|
+
var colorCss$2 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{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}`;
|
|
22025
21233
|
|
|
22026
|
-
|
|
22027
|
-
}
|
|
22028
|
-
};
|
|
21234
|
+
var tokensCss$2 = i$5`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
22029
21235
|
|
|
22030
21236
|
var styleCss$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
22031
21237
|
|
|
22032
|
-
var colorCss$1 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-color-
|
|
21238
|
+
var colorCss$1 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
22033
21239
|
|
|
22034
21240
|
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
22035
21241
|
|
|
@@ -22037,25 +21243,6 @@ var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-
|
|
|
22037
21243
|
// See LICENSE in the project root for license information.
|
|
22038
21244
|
|
|
22039
21245
|
|
|
22040
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
22041
|
-
/**
|
|
22042
|
-
* The auro-loader element is an easy to use animated loader component.
|
|
22043
|
-
*
|
|
22044
|
-
* @attr {Boolean} pulse - sets loader type
|
|
22045
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
22046
|
-
* @attr {Boolean} laser - sets loader type
|
|
22047
|
-
* @attr {Boolean} orbit - sets loader type
|
|
22048
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
22049
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
22050
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
22051
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
22052
|
-
* @attr {Boolean} sm - sets size to small
|
|
22053
|
-
* @attr {Boolean} md - sets size to medium
|
|
22054
|
-
* @attr {Boolean} lg - sets size to large
|
|
22055
|
-
* @csspart element - apply style to adjust speed of animation
|
|
22056
|
-
*/
|
|
22057
|
-
|
|
22058
|
-
// build the component class
|
|
22059
21246
|
class AuroLoader extends r$2 {
|
|
22060
21247
|
constructor() {
|
|
22061
21248
|
super();
|
|
@@ -22089,19 +21276,35 @@ class AuroLoader extends r$2 {
|
|
|
22089
21276
|
// function to define props used within the scope of this component
|
|
22090
21277
|
static get properties() {
|
|
22091
21278
|
return {
|
|
22092
|
-
|
|
21279
|
+
|
|
21280
|
+
/**
|
|
21281
|
+
* Sets loader to laser type.
|
|
21282
|
+
*/
|
|
21283
|
+
laser: {
|
|
22093
21284
|
type: Boolean,
|
|
22094
21285
|
reflect: true
|
|
22095
21286
|
},
|
|
21287
|
+
|
|
21288
|
+
/**
|
|
21289
|
+
* Sets loader to orbit type.
|
|
21290
|
+
*/
|
|
22096
21291
|
orbit: {
|
|
22097
21292
|
type: Boolean,
|
|
22098
21293
|
reflect: true
|
|
22099
21294
|
},
|
|
22100
|
-
|
|
21295
|
+
|
|
21296
|
+
/**
|
|
21297
|
+
* Sets loader to pulse type.
|
|
21298
|
+
*/
|
|
21299
|
+
pulse: {
|
|
22101
21300
|
type: Boolean,
|
|
22102
21301
|
reflect: true
|
|
22103
21302
|
},
|
|
22104
|
-
|
|
21303
|
+
|
|
21304
|
+
/**
|
|
21305
|
+
* Sets loader to ringworm type.
|
|
21306
|
+
*/
|
|
21307
|
+
ringworm: {
|
|
22105
21308
|
type: Boolean,
|
|
22106
21309
|
reflect: true
|
|
22107
21310
|
}
|
|
@@ -22175,23 +21378,26 @@ class AuroLoader extends r$2 {
|
|
|
22175
21378
|
}
|
|
22176
21379
|
}
|
|
22177
21380
|
|
|
22178
|
-
var loaderVersion = '
|
|
21381
|
+
var loaderVersion = '5.0.0';
|
|
22179
21382
|
|
|
21383
|
+
/* eslint-disable max-lines */
|
|
22180
21384
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22181
21385
|
// See LICENSE in the project root for license information.
|
|
22182
21386
|
|
|
22183
21387
|
|
|
22184
21388
|
/**
|
|
22185
21389
|
* @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
|
|
22186
|
-
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
21390
|
+
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
22187
21391
|
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
22188
21392
|
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
21393
|
+
* @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.
|
|
22189
21394
|
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
22190
21395
|
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
22191
21396
|
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
22192
21397
|
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
22193
21398
|
* @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.
|
|
22194
21399
|
* @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.
|
|
21400
|
+
* @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.
|
|
22195
21401
|
* @attr {String} id - Set the unique ID of an element.
|
|
22196
21402
|
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
22197
21403
|
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
@@ -22236,6 +21442,7 @@ class AuroButton extends r$2 {
|
|
|
22236
21442
|
this.rounded = false;
|
|
22237
21443
|
this.slim = false;
|
|
22238
21444
|
this.fluid = false;
|
|
21445
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
22239
21446
|
|
|
22240
21447
|
// Support for HTML5 forms
|
|
22241
21448
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -22296,6 +21503,9 @@ class AuroButton extends r$2 {
|
|
|
22296
21503
|
type: Boolean,
|
|
22297
21504
|
reflect: true
|
|
22298
21505
|
},
|
|
21506
|
+
loadingText: {
|
|
21507
|
+
type: String
|
|
21508
|
+
},
|
|
22299
21509
|
onDark: {
|
|
22300
21510
|
type: Boolean,
|
|
22301
21511
|
reflect: true
|
|
@@ -22316,6 +21526,10 @@ class AuroButton extends r$2 {
|
|
|
22316
21526
|
type: String,
|
|
22317
21527
|
reflect: true
|
|
22318
21528
|
},
|
|
21529
|
+
ariaexpanded: {
|
|
21530
|
+
type: Boolean,
|
|
21531
|
+
reflect: true
|
|
21532
|
+
},
|
|
22319
21533
|
title: {
|
|
22320
21534
|
type: String,
|
|
22321
21535
|
reflect: true
|
|
@@ -22345,7 +21559,7 @@ class AuroButton extends r$2 {
|
|
|
22345
21559
|
*
|
|
22346
21560
|
*/
|
|
22347
21561
|
static register(name = "auro-button") {
|
|
22348
|
-
AuroLibraryRuntimeUtils$
|
|
21562
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
22349
21563
|
}
|
|
22350
21564
|
|
|
22351
21565
|
/**
|
|
@@ -22387,12 +21601,22 @@ class AuroButton extends r$2 {
|
|
|
22387
21601
|
this.notifyReady();
|
|
22388
21602
|
}
|
|
22389
21603
|
|
|
21604
|
+
/**
|
|
21605
|
+
* Submits the form that this button is associated with.
|
|
21606
|
+
* @private
|
|
21607
|
+
* @returns {void}
|
|
21608
|
+
*/
|
|
22390
21609
|
surfaceSubmitEvent() {
|
|
22391
21610
|
if (this.form) {
|
|
22392
21611
|
this.form.requestSubmit();
|
|
22393
21612
|
}
|
|
22394
21613
|
}
|
|
22395
21614
|
|
|
21615
|
+
/**
|
|
21616
|
+
* Returns the form element that this button is associated with.
|
|
21617
|
+
* @private
|
|
21618
|
+
* @returns {HTMLFormElement|null}
|
|
21619
|
+
*/
|
|
22396
21620
|
get form() {
|
|
22397
21621
|
return this.internals ? this.internals.form : null;
|
|
22398
21622
|
}
|
|
@@ -22412,8 +21636,9 @@ class AuroButton extends r$2 {
|
|
|
22412
21636
|
return u$2`
|
|
22413
21637
|
<button
|
|
22414
21638
|
part="button"
|
|
22415
|
-
aria-label="${o(this.
|
|
21639
|
+
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
22416
21640
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
21641
|
+
aria-expanded="${o(this.ariaexpanded)}"
|
|
22417
21642
|
?autofocus="${this.autofocus}"
|
|
22418
21643
|
class="${e(classes)}"
|
|
22419
21644
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -22441,13 +21666,13 @@ class AuroButton extends r$2 {
|
|
|
22441
21666
|
}
|
|
22442
21667
|
}
|
|
22443
21668
|
|
|
22444
|
-
var buttonVersion = '
|
|
21669
|
+
var buttonVersion = '9.3.0';
|
|
22445
21670
|
|
|
22446
|
-
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
21671
|
+
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
22447
21672
|
|
|
22448
21673
|
var styleCss = i$5`.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}`;
|
|
22449
21674
|
|
|
22450
|
-
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
21675
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
22451
21676
|
|
|
22452
21677
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22453
21678
|
// See LICENSE in the project root for license information.
|
|
@@ -22534,6 +21759,7 @@ class AuroHelpText extends r$2 {
|
|
|
22534
21759
|
super();
|
|
22535
21760
|
|
|
22536
21761
|
this.error = false;
|
|
21762
|
+
this.onDark = false;
|
|
22537
21763
|
this.hasTextContent = false;
|
|
22538
21764
|
|
|
22539
21765
|
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
@@ -22572,6 +21798,14 @@ class AuroHelpText extends r$2 {
|
|
|
22572
21798
|
type: Boolean,
|
|
22573
21799
|
reflect: true,
|
|
22574
21800
|
},
|
|
21801
|
+
|
|
21802
|
+
/**
|
|
21803
|
+
* If declared, will apply onDark styles.
|
|
21804
|
+
*/
|
|
21805
|
+
onDark: {
|
|
21806
|
+
type: Boolean,
|
|
21807
|
+
reflect: true
|
|
21808
|
+
}
|
|
22575
21809
|
};
|
|
22576
21810
|
}
|
|
22577
21811
|
|
|
@@ -22654,7 +21888,7 @@ class AuroInput extends BaseInput {
|
|
|
22654
21888
|
/**
|
|
22655
21889
|
* Generate unique names for dependency components.
|
|
22656
21890
|
*/
|
|
22657
|
-
const versioning = new AuroDependencyVersioning
|
|
21891
|
+
const versioning = new AuroDependencyVersioning();
|
|
22658
21892
|
|
|
22659
21893
|
/**
|
|
22660
21894
|
* @private
|
|
@@ -22681,7 +21915,7 @@ class AuroInput extends BaseInput {
|
|
|
22681
21915
|
*
|
|
22682
21916
|
*/
|
|
22683
21917
|
static register(name = "auro-input") {
|
|
22684
|
-
AuroLibraryRuntimeUtils$
|
|
21918
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
|
|
22685
21919
|
}
|
|
22686
21920
|
|
|
22687
21921
|
/**
|
|
@@ -22721,7 +21955,8 @@ class AuroInput extends BaseInput {
|
|
|
22721
21955
|
category="payment"
|
|
22722
21956
|
name="${name}"
|
|
22723
21957
|
part="accentIcon"
|
|
22724
|
-
?
|
|
21958
|
+
?onDark="${this.onDark}"
|
|
21959
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
22725
21960
|
</${this.iconTag}>
|
|
22726
21961
|
`) : undefined
|
|
22727
21962
|
}
|
|
@@ -22733,7 +21968,8 @@ class AuroInput extends BaseInput {
|
|
|
22733
21968
|
category="interface"
|
|
22734
21969
|
name="calendar"
|
|
22735
21970
|
part="accentIcon"
|
|
22736
|
-
?
|
|
21971
|
+
?onDark="${this.onDark}"
|
|
21972
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
22737
21973
|
</${this.iconTag}>`
|
|
22738
21974
|
: undefined
|
|
22739
21975
|
}
|
|
@@ -22778,7 +22014,7 @@ class AuroInput extends BaseInput {
|
|
|
22778
22014
|
<${this.iconTag}
|
|
22779
22015
|
category="alert"
|
|
22780
22016
|
name="error-stroke"
|
|
22781
|
-
|
|
22017
|
+
customColor
|
|
22782
22018
|
</${this.iconTag}>
|
|
22783
22019
|
</div>
|
|
22784
22020
|
` : undefined}
|
|
@@ -22787,6 +22023,7 @@ class AuroInput extends BaseInput {
|
|
|
22787
22023
|
<div class="notification">
|
|
22788
22024
|
<${this.buttonTag}
|
|
22789
22025
|
variant="flat"
|
|
22026
|
+
?onDark="${this.onDark}"
|
|
22790
22027
|
aria-hidden="true"
|
|
22791
22028
|
tabindex="-1"
|
|
22792
22029
|
@click="${this.handleClickShowPassword}"
|
|
@@ -22810,6 +22047,7 @@ class AuroInput extends BaseInput {
|
|
|
22810
22047
|
<div class="notification">
|
|
22811
22048
|
<${this.buttonTag}
|
|
22812
22049
|
variant="flat"
|
|
22050
|
+
?onDark="${this.onDark}"
|
|
22813
22051
|
class="notificationBtn clearBtn"
|
|
22814
22052
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
22815
22053
|
@click="${this.handleClickClear}">
|
|
@@ -22828,14 +22066,14 @@ class AuroInput extends BaseInput {
|
|
|
22828
22066
|
<!-- Help text and error message template -->
|
|
22829
22067
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
22830
22068
|
? u$2`
|
|
22831
|
-
<${this.helpTextTag}>
|
|
22069
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
22832
22070
|
<p id="${this.uniqueId}" part="helpText">
|
|
22833
22071
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
22834
22072
|
</p>
|
|
22835
22073
|
</${this.helpTextTag}>
|
|
22836
22074
|
`
|
|
22837
22075
|
: u$2`
|
|
22838
|
-
<${this.helpTextTag} error>
|
|
22076
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
22839
22077
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
22840
22078
|
${this.errorMessage}
|
|
22841
22079
|
</p>
|
|
@@ -22900,6 +22138,7 @@ class AuroDatePicker extends r$2 {
|
|
|
22900
22138
|
|
|
22901
22139
|
this.disabled = false;
|
|
22902
22140
|
this.required = false;
|
|
22141
|
+
this.onDark = false;
|
|
22903
22142
|
this.range = false;
|
|
22904
22143
|
this.noValidate = false;
|
|
22905
22144
|
this.validity = undefined;
|
|
@@ -22945,7 +22184,7 @@ class AuroDatePicker extends r$2 {
|
|
|
22945
22184
|
/**
|
|
22946
22185
|
* @private
|
|
22947
22186
|
*/
|
|
22948
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
22187
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
22949
22188
|
|
|
22950
22189
|
/**
|
|
22951
22190
|
* @private
|
|
@@ -22955,7 +22194,7 @@ class AuroDatePicker extends r$2 {
|
|
|
22955
22194
|
/**
|
|
22956
22195
|
* Generate unique names for dependency components.
|
|
22957
22196
|
*/
|
|
22958
|
-
const versioning = new AuroDependencyVersioning$
|
|
22197
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
22959
22198
|
|
|
22960
22199
|
/**
|
|
22961
22200
|
* @private
|
|
@@ -23109,6 +22348,14 @@ class AuroDatePicker extends r$2 {
|
|
|
23109
22348
|
reflect: true
|
|
23110
22349
|
},
|
|
23111
22350
|
|
|
22351
|
+
/**
|
|
22352
|
+
* If declared, onDark styles will be applied to the trigger.
|
|
22353
|
+
*/
|
|
22354
|
+
onDark: {
|
|
22355
|
+
type: Boolean,
|
|
22356
|
+
reflect: true
|
|
22357
|
+
},
|
|
22358
|
+
|
|
23112
22359
|
/**
|
|
23113
22360
|
* Position where the bib should appear relative to the trigger.
|
|
23114
22361
|
* Accepted values:
|
|
@@ -23223,7 +22470,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23223
22470
|
*
|
|
23224
22471
|
*/
|
|
23225
22472
|
static register(name = "auro-datepicker") {
|
|
23226
|
-
AuroLibraryRuntimeUtils$
|
|
22473
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroDatePicker);
|
|
23227
22474
|
}
|
|
23228
22475
|
|
|
23229
22476
|
/**
|
|
@@ -23857,6 +23104,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23857
23104
|
fluid
|
|
23858
23105
|
bordered
|
|
23859
23106
|
rounded
|
|
23107
|
+
?onDark="${this.onDark}"
|
|
23860
23108
|
?disabled="${this.disabled}"
|
|
23861
23109
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
23862
23110
|
disableEventShow
|
|
@@ -23871,6 +23119,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23871
23119
|
id="${this.generateRandomString(12)}"
|
|
23872
23120
|
bordered
|
|
23873
23121
|
class="dateFrom"
|
|
23122
|
+
?onDark="${this.onDark}"
|
|
23874
23123
|
?required="${this.required}"
|
|
23875
23124
|
noValidate
|
|
23876
23125
|
type="date"
|
|
@@ -23891,6 +23140,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23891
23140
|
id="${this.generateRandomString(12)}"
|
|
23892
23141
|
bordered
|
|
23893
23142
|
class="dateTo"
|
|
23143
|
+
?onDark="${this.onDark}"
|
|
23894
23144
|
?required="${this.required}"
|
|
23895
23145
|
noValidate
|
|
23896
23146
|
type="date"
|