@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
|
@@ -297,7 +297,7 @@ const a=Symbol.for(""),o$2=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$li
|
|
|
297
297
|
|
|
298
298
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
299
299
|
|
|
300
|
-
let AuroLibraryRuntimeUtils$
|
|
300
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
301
301
|
|
|
302
302
|
/* eslint-disable jsdoc/require-param */
|
|
303
303
|
|
|
@@ -366,7 +366,7 @@ let AuroLibraryRuntimeUtils$9 = class AuroLibraryRuntimeUtils {
|
|
|
366
366
|
|
|
367
367
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
368
368
|
constructor() {
|
|
369
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
369
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
/**
|
|
@@ -675,7 +675,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
675
675
|
// See LICENSE in the project root for license information.
|
|
676
676
|
|
|
677
677
|
|
|
678
|
-
let AuroDependencyVersioning$
|
|
678
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
681
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -1066,19 +1066,19 @@ class UtilitiesCalendarRender {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
|
-
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}}`;
|
|
1069
|
+
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}}`;
|
|
1070
1070
|
|
|
1071
|
-
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)}
|
|
1071
|
+
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)}`;
|
|
1072
1072
|
|
|
1073
|
-
var tokensCss$a = i$5`:host{--ds-auro-datepicker-placeholder-color: var(--ds-color-
|
|
1073
|
+
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)}`;
|
|
1074
1074
|
|
|
1075
1075
|
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:""}`;
|
|
1076
1076
|
|
|
1077
|
-
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
|
|
1077
|
+
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)}}`;
|
|
1078
1078
|
|
|
1079
|
-
var styleCss$b = i$5
|
|
1079
|
+
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%}`;
|
|
1080
1080
|
|
|
1081
|
-
var colorCss$b = i$5
|
|
1081
|
+
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)}`;
|
|
1082
1082
|
|
|
1083
1083
|
/******************************************************************************
|
|
1084
1084
|
Copyright (c) Microsoft Corporation.
|
|
@@ -7070,7 +7070,7 @@ __decorate([n({ type: Array })], RangeDatepickerCell.prototype, "disabledDays",
|
|
|
7070
7070
|
__decorate([n({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7071
7071
|
__decorate([n({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7072
7072
|
__decorate([n({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7073
|
-
AuroLibraryRuntimeUtils$
|
|
7073
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7074
7074
|
|
|
7075
7075
|
class Day {
|
|
7076
7076
|
constructor(date) {
|
|
@@ -7588,7 +7588,7 @@ __decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "yearsList",
|
|
|
7588
7588
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7589
7589
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7590
7590
|
__decorate([n({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7591
|
-
AuroLibraryRuntimeUtils$
|
|
7591
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7592
7592
|
|
|
7593
7593
|
/**
|
|
7594
7594
|
* @license
|
|
@@ -7605,7 +7605,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
7605
7605
|
|
|
7606
7606
|
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)}}`;
|
|
7607
7607
|
|
|
7608
|
-
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-
|
|
7608
|
+
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}`;
|
|
7609
7609
|
|
|
7610
7610
|
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:""}`;
|
|
7611
7611
|
|
|
@@ -9502,7 +9502,7 @@ class AuroPopover extends r$2 {
|
|
|
9502
9502
|
privateDefaults() {
|
|
9503
9503
|
this.isPopoverVisible = false;
|
|
9504
9504
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9505
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9505
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
9506
9506
|
}
|
|
9507
9507
|
|
|
9508
9508
|
// function to define props used within the scope of this component
|
|
@@ -9532,7 +9532,7 @@ class AuroPopover extends r$2 {
|
|
|
9532
9532
|
*
|
|
9533
9533
|
*/
|
|
9534
9534
|
static register(name = "auro-popover") {
|
|
9535
|
-
AuroLibraryRuntimeUtils$
|
|
9535
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroPopover);
|
|
9536
9536
|
}
|
|
9537
9537
|
|
|
9538
9538
|
connectedCallback() {
|
|
@@ -9700,12 +9700,12 @@ class AuroCalendarCell extends r$2 {
|
|
|
9700
9700
|
this.dateStr = null;
|
|
9701
9701
|
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.
|
|
9702
9702
|
|
|
9703
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9703
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
9704
9704
|
|
|
9705
9705
|
/**
|
|
9706
9706
|
* Generate unique names for dependency components.
|
|
9707
9707
|
*/
|
|
9708
|
-
const versioning = new AuroDependencyVersioning$
|
|
9708
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
9709
9709
|
this.popoverTag = versioning.generateTag('auro-formkit-datepicker-popover', popoverVersion, AuroPopover);
|
|
9710
9710
|
}
|
|
9711
9711
|
|
|
@@ -10602,9 +10602,9 @@ class CalendarUtilities {
|
|
|
10602
10602
|
|
|
10603
10603
|
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)}`;
|
|
10604
10604
|
|
|
10605
|
-
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,
|
|
10605
|
+
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)}`;
|
|
10606
10606
|
|
|
10607
|
-
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-
|
|
10607
|
+
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)}`;
|
|
10608
10608
|
|
|
10609
10609
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10610
10610
|
// See LICENSE in the project root for license information.
|
|
@@ -10613,7 +10613,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10613
10613
|
|
|
10614
10614
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10615
10615
|
|
|
10616
|
-
let AuroLibraryRuntimeUtils$
|
|
10616
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10617
10617
|
|
|
10618
10618
|
/* eslint-disable jsdoc/require-param */
|
|
10619
10619
|
|
|
@@ -10680,7 +10680,7 @@ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
|
10680
10680
|
// See LICENSE in the project root for license information.
|
|
10681
10681
|
|
|
10682
10682
|
|
|
10683
|
-
let AuroDependencyVersioning$
|
|
10683
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
10684
10684
|
|
|
10685
10685
|
/**
|
|
10686
10686
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -10782,7 +10782,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
10782
10782
|
return _fetchMap$2.get(uri);
|
|
10783
10783
|
};
|
|
10784
10784
|
|
|
10785
|
-
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}
|
|
10785
|
+
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}`;
|
|
10786
10786
|
|
|
10787
10787
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10788
10788
|
// See LICENSE in the project root for license information.
|
|
@@ -10790,7 +10790,6 @@ var styleCss$1$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
10790
10790
|
|
|
10791
10791
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
10792
10792
|
/**
|
|
10793
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
10794
10793
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
10795
10794
|
*/
|
|
10796
10795
|
|
|
@@ -10805,6 +10804,10 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10805
10804
|
static get properties() {
|
|
10806
10805
|
return {
|
|
10807
10806
|
...super.properties,
|
|
10807
|
+
|
|
10808
|
+
/**
|
|
10809
|
+
* Set value for on-dark version of auro-icon.
|
|
10810
|
+
*/
|
|
10808
10811
|
onDark: {
|
|
10809
10812
|
type: Boolean,
|
|
10810
10813
|
reflect: true
|
|
@@ -10863,81 +10866,11 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10863
10866
|
}
|
|
10864
10867
|
};
|
|
10865
10868
|
|
|
10866
|
-
var tokensCss$8 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
10867
|
-
|
|
10868
|
-
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)}`;
|
|
10869
|
-
|
|
10870
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
10871
|
-
// See LICENSE in the project root for license information.
|
|
10872
|
-
|
|
10873
|
-
// ---------------------------------------------------------------------
|
|
10874
|
-
|
|
10875
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10876
|
-
|
|
10877
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10878
|
-
|
|
10879
|
-
/* eslint-disable jsdoc/require-param */
|
|
10880
|
-
|
|
10881
|
-
/**
|
|
10882
|
-
* This will register a new custom element with the browser.
|
|
10883
|
-
* @param {String} name - The name of the custom element.
|
|
10884
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
10885
|
-
* @returns {void}
|
|
10886
|
-
*/
|
|
10887
|
-
registerComponent(name, componentClass) {
|
|
10888
|
-
if (!customElements.get(name)) {
|
|
10889
|
-
customElements.define(name, class extends componentClass {});
|
|
10890
|
-
}
|
|
10891
|
-
}
|
|
10892
|
-
|
|
10893
|
-
/**
|
|
10894
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
10895
|
-
* @returns {void}
|
|
10896
|
-
*/
|
|
10897
|
-
closestElement(
|
|
10898
|
-
selector, // selector like in .closest()
|
|
10899
|
-
base = this, // extra functionality to skip a parent
|
|
10900
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
10901
|
-
!el || el === document || el === window
|
|
10902
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
10903
|
-
: found
|
|
10904
|
-
? found // found a selector INside this element
|
|
10905
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
10906
|
-
) {
|
|
10907
|
-
return __Closest(base);
|
|
10908
|
-
}
|
|
10909
|
-
/* eslint-enable jsdoc/require-param */
|
|
10910
|
-
|
|
10911
|
-
/**
|
|
10912
|
-
* 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.
|
|
10913
|
-
* @param {Object} elem - The element to check.
|
|
10914
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
10915
|
-
* @returns {void}
|
|
10916
|
-
*/
|
|
10917
|
-
handleComponentTagRename(elem, tagName) {
|
|
10918
|
-
const tag = tagName.toLowerCase();
|
|
10919
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
10920
|
-
|
|
10921
|
-
if (elemTag !== tag) {
|
|
10922
|
-
elem.setAttribute(tag, true);
|
|
10923
|
-
}
|
|
10924
|
-
}
|
|
10925
|
-
|
|
10926
|
-
/**
|
|
10927
|
-
* Validates if an element is a specific Auro component.
|
|
10928
|
-
* @param {Object} elem - The element to validate.
|
|
10929
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
10930
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
10931
|
-
*/
|
|
10932
|
-
elementMatch(elem, tagName) {
|
|
10933
|
-
const tag = tagName.toLowerCase();
|
|
10934
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
10869
|
+
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)}`;
|
|
10935
10870
|
|
|
10936
|
-
|
|
10937
|
-
}
|
|
10938
|
-
};
|
|
10871
|
+
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)}`;
|
|
10939
10872
|
|
|
10940
|
-
// Copyright (c)
|
|
10873
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10941
10874
|
// See LICENSE in the project root for license information.
|
|
10942
10875
|
|
|
10943
10876
|
|
|
@@ -10945,6 +10878,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10945
10878
|
constructor() {
|
|
10946
10879
|
super();
|
|
10947
10880
|
|
|
10881
|
+
this.variant = undefined;
|
|
10948
10882
|
this.privateDefaults();
|
|
10949
10883
|
}
|
|
10950
10884
|
|
|
@@ -10954,20 +10888,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10954
10888
|
* @returns {void}
|
|
10955
10889
|
*/
|
|
10956
10890
|
privateDefaults() {
|
|
10957
|
-
this.accent = false;
|
|
10958
|
-
this.customColor = false;
|
|
10959
|
-
this.customSvg = false;
|
|
10960
|
-
this.disabled = false;
|
|
10961
|
-
this.emphasis = false;
|
|
10962
|
-
this.error = false;
|
|
10963
|
-
this.info = false;
|
|
10964
|
-
this.label = false;
|
|
10965
|
-
this.primary = false;
|
|
10966
|
-
this.secondary = false;
|
|
10967
|
-
this.subtle = false;
|
|
10968
|
-
this.success = false;
|
|
10969
|
-
this.tertiary = false;
|
|
10970
|
-
this.warning = false;
|
|
10971
10891
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10972
10892
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
10973
10893
|
}
|
|
@@ -10977,14 +10897,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10977
10897
|
return {
|
|
10978
10898
|
...super.properties,
|
|
10979
10899
|
|
|
10980
|
-
/**
|
|
10981
|
-
* Sets the icon to use the accent style.
|
|
10982
|
-
*/
|
|
10983
|
-
accent: {
|
|
10984
|
-
type: Boolean,
|
|
10985
|
-
reflect: true
|
|
10986
|
-
},
|
|
10987
|
-
|
|
10988
10900
|
/**
|
|
10989
10901
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
10990
10902
|
*/
|
|
@@ -11015,38 +10927,6 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11015
10927
|
type: Boolean
|
|
11016
10928
|
},
|
|
11017
10929
|
|
|
11018
|
-
/**
|
|
11019
|
-
* Sets the icon to use the disabled style.
|
|
11020
|
-
*/
|
|
11021
|
-
disabled: {
|
|
11022
|
-
type: Boolean,
|
|
11023
|
-
reflect: true
|
|
11024
|
-
},
|
|
11025
|
-
|
|
11026
|
-
/**
|
|
11027
|
-
* Sets the icon to use the emphasis style.
|
|
11028
|
-
*/
|
|
11029
|
-
emphasis: {
|
|
11030
|
-
type: Boolean,
|
|
11031
|
-
reflect: true
|
|
11032
|
-
},
|
|
11033
|
-
|
|
11034
|
-
/**
|
|
11035
|
-
* Sets the icon to use the error style.
|
|
11036
|
-
*/
|
|
11037
|
-
error: {
|
|
11038
|
-
type: Boolean,
|
|
11039
|
-
reflect: true
|
|
11040
|
-
},
|
|
11041
|
-
|
|
11042
|
-
/**
|
|
11043
|
-
* Sets the icon to use the info style.
|
|
11044
|
-
*/
|
|
11045
|
-
info: {
|
|
11046
|
-
type: Boolean,
|
|
11047
|
-
reflect: true
|
|
11048
|
-
},
|
|
11049
|
-
|
|
11050
10930
|
/**
|
|
11051
10931
|
* Exposes content in slot as icon label.
|
|
11052
10932
|
*/
|
|
@@ -11064,50 +10944,10 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11064
10944
|
},
|
|
11065
10945
|
|
|
11066
10946
|
/**
|
|
11067
|
-
*
|
|
11068
|
-
*/
|
|
11069
|
-
primary: {
|
|
11070
|
-
type: Boolean,
|
|
11071
|
-
reflect: true
|
|
11072
|
-
},
|
|
11073
|
-
|
|
11074
|
-
/**
|
|
11075
|
-
* Sets the icon to use the secondary style.
|
|
11076
|
-
*/
|
|
11077
|
-
secondary: {
|
|
11078
|
-
type: Boolean,
|
|
11079
|
-
reflect: true
|
|
11080
|
-
},
|
|
11081
|
-
|
|
11082
|
-
/**
|
|
11083
|
-
* Sets the icon to use the subtle style.
|
|
11084
|
-
*/
|
|
11085
|
-
subtle: {
|
|
11086
|
-
type: Boolean,
|
|
11087
|
-
reflect: true
|
|
11088
|
-
},
|
|
11089
|
-
|
|
11090
|
-
/**
|
|
11091
|
-
* Sets the icon to use the success style.
|
|
11092
|
-
*/
|
|
11093
|
-
success: {
|
|
11094
|
-
type: Boolean,
|
|
11095
|
-
reflect: true
|
|
11096
|
-
},
|
|
11097
|
-
|
|
11098
|
-
/**
|
|
11099
|
-
* Sets the icon to use the tertiary style.
|
|
11100
|
-
*/
|
|
11101
|
-
tertiary: {
|
|
11102
|
-
type: Boolean,
|
|
11103
|
-
reflect: true
|
|
11104
|
-
},
|
|
11105
|
-
|
|
11106
|
-
/**
|
|
11107
|
-
* Sets the icon to use the warning style.
|
|
10947
|
+
* 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`.
|
|
11108
10948
|
*/
|
|
11109
|
-
|
|
11110
|
-
type:
|
|
10949
|
+
variant: {
|
|
10950
|
+
type: String,
|
|
11111
10951
|
reflect: true
|
|
11112
10952
|
}
|
|
11113
10953
|
};
|
|
@@ -11197,7 +11037,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11197
11037
|
}
|
|
11198
11038
|
};
|
|
11199
11039
|
|
|
11200
|
-
var iconVersion$2 = '
|
|
11040
|
+
var iconVersion$2 = '8.0.1';
|
|
11201
11041
|
|
|
11202
11042
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11203
11043
|
// See LICENSE in the project root for license information.
|
|
@@ -11206,7 +11046,7 @@ var iconVersion$2 = '7.0.1';
|
|
|
11206
11046
|
|
|
11207
11047
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11208
11048
|
|
|
11209
|
-
let AuroLibraryRuntimeUtils$
|
|
11049
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
11210
11050
|
|
|
11211
11051
|
/* eslint-disable jsdoc/require-param */
|
|
11212
11052
|
|
|
@@ -11298,7 +11138,7 @@ class AuroHeader extends r$2 {
|
|
|
11298
11138
|
/**
|
|
11299
11139
|
* @private
|
|
11300
11140
|
*/
|
|
11301
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11141
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
11302
11142
|
}
|
|
11303
11143
|
|
|
11304
11144
|
// function to define props used within the scope of this component
|
|
@@ -11328,7 +11168,7 @@ class AuroHeader extends r$2 {
|
|
|
11328
11168
|
*
|
|
11329
11169
|
*/
|
|
11330
11170
|
static register(name = "auro-header") {
|
|
11331
|
-
AuroLibraryRuntimeUtils$
|
|
11171
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
|
|
11332
11172
|
}
|
|
11333
11173
|
|
|
11334
11174
|
firstUpdated() {
|
|
@@ -11422,9 +11262,9 @@ class AuroBibtemplate extends r$2 {
|
|
|
11422
11262
|
constructor() {
|
|
11423
11263
|
super();
|
|
11424
11264
|
|
|
11425
|
-
AuroLibraryRuntimeUtils$
|
|
11265
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11426
11266
|
|
|
11427
|
-
const versioning = new AuroDependencyVersioning$
|
|
11267
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
11428
11268
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
11429
11269
|
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
11430
11270
|
}
|
|
@@ -11461,7 +11301,7 @@ class AuroBibtemplate extends r$2 {
|
|
|
11461
11301
|
*
|
|
11462
11302
|
*/
|
|
11463
11303
|
static register(name = "auro-bibtemplate") {
|
|
11464
|
-
AuroLibraryRuntimeUtils$
|
|
11304
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11465
11305
|
}
|
|
11466
11306
|
|
|
11467
11307
|
/**
|
|
@@ -11533,267 +11373,84 @@ class AuroBibtemplate extends r$2 {
|
|
|
11533
11373
|
|
|
11534
11374
|
var bibTemplateVersion = '1.0.0';
|
|
11535
11375
|
|
|
11536
|
-
|
|
11537
|
-
// See LICENSE in the project root for license information.
|
|
11538
|
-
|
|
11376
|
+
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}`;
|
|
11539
11377
|
|
|
11540
|
-
|
|
11378
|
+
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}`;
|
|
11541
11379
|
|
|
11542
|
-
|
|
11543
|
-
* Generates a unique string to be used for child auro element naming.
|
|
11544
|
-
* @private
|
|
11545
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11546
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11547
|
-
* @returns {string} - Unique string to be used for naming.
|
|
11548
|
-
*/
|
|
11549
|
-
generateElementName(baseName, version) {
|
|
11550
|
-
let result = baseName;
|
|
11380
|
+
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}`;
|
|
11551
11381
|
|
|
11552
|
-
|
|
11553
|
-
result += version.replace(/[.]/g, '_');
|
|
11382
|
+
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}}`;
|
|
11554
11383
|
|
|
11555
|
-
|
|
11556
|
-
}
|
|
11384
|
+
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}`;
|
|
11557
11385
|
|
|
11558
|
-
|
|
11559
|
-
* Generates a unique string to be used for child auro element naming.
|
|
11560
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
11561
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
11562
|
-
* @returns {string} - Unique string to be used for naming.
|
|
11563
|
-
*/
|
|
11564
|
-
generateTag(baseName, version, tagClass) {
|
|
11565
|
-
const elementName = this.generateElementName(baseName, version);
|
|
11566
|
-
const tag = i$1`${s$1(elementName)}`;
|
|
11386
|
+
var tokensCss$6 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11567
11387
|
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
}
|
|
11388
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11389
|
+
// See LICENSE in the project root for license information.
|
|
11571
11390
|
|
|
11572
|
-
return tag;
|
|
11573
|
-
}
|
|
11574
|
-
};
|
|
11575
11391
|
|
|
11576
|
-
|
|
11577
|
-
|
|
11392
|
+
let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
11393
|
+
constructor() {
|
|
11394
|
+
super();
|
|
11578
11395
|
|
|
11579
|
-
|
|
11396
|
+
/**
|
|
11397
|
+
* @private
|
|
11398
|
+
*/
|
|
11399
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11580
11400
|
|
|
11581
|
-
|
|
11401
|
+
/**
|
|
11402
|
+
* @private
|
|
11403
|
+
*/
|
|
11404
|
+
this.mdCount = 3;
|
|
11582
11405
|
|
|
11583
|
-
|
|
11406
|
+
/**
|
|
11407
|
+
* @private
|
|
11408
|
+
*/
|
|
11409
|
+
this.smCount = 2;
|
|
11584
11410
|
|
|
11585
|
-
|
|
11411
|
+
/**
|
|
11412
|
+
* @private
|
|
11413
|
+
*/
|
|
11414
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11586
11415
|
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
* @returns {void}
|
|
11592
|
-
*/
|
|
11593
|
-
registerComponent(name, componentClass) {
|
|
11594
|
-
if (!customElements.get(name)) {
|
|
11595
|
-
customElements.define(name, class extends componentClass {});
|
|
11596
|
-
}
|
|
11416
|
+
this.orbit = false;
|
|
11417
|
+
this.ringworm = false;
|
|
11418
|
+
this.laser = false;
|
|
11419
|
+
this.pulse = false;
|
|
11597
11420
|
}
|
|
11598
11421
|
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
*/
|
|
11603
|
-
closestElement(
|
|
11604
|
-
selector, // selector like in .closest()
|
|
11605
|
-
base = this, // extra functionality to skip a parent
|
|
11606
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11607
|
-
!el || el === document || el === window
|
|
11608
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
11609
|
-
: found
|
|
11610
|
-
? found // found a selector INside this element
|
|
11611
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11612
|
-
) {
|
|
11613
|
-
return __Closest(base);
|
|
11614
|
-
}
|
|
11615
|
-
/* eslint-enable jsdoc/require-param */
|
|
11422
|
+
// function to define props used within the scope of this component
|
|
11423
|
+
static get properties() {
|
|
11424
|
+
return {
|
|
11616
11425
|
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
* @returns {void}
|
|
11622
|
-
*/
|
|
11623
|
-
handleComponentTagRename(elem, tagName) {
|
|
11624
|
-
const tag = tagName.toLowerCase();
|
|
11625
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11626
|
-
|
|
11627
|
-
if (elemTag !== tag) {
|
|
11628
|
-
elem.setAttribute(tag, true);
|
|
11629
|
-
}
|
|
11630
|
-
}
|
|
11631
|
-
|
|
11632
|
-
/**
|
|
11633
|
-
* Validates if an element is a specific Auro component.
|
|
11634
|
-
* @param {Object} elem - The element to validate.
|
|
11635
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
11636
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11637
|
-
*/
|
|
11638
|
-
elementMatch(elem, tagName) {
|
|
11639
|
-
const tag = tagName.toLowerCase();
|
|
11640
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11641
|
-
|
|
11642
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
11643
|
-
}
|
|
11644
|
-
};
|
|
11645
|
-
|
|
11646
|
-
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}`;
|
|
11647
|
-
|
|
11648
|
-
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}`;
|
|
11649
|
-
|
|
11650
|
-
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}`;
|
|
11651
|
-
|
|
11652
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11653
|
-
// See LICENSE in the project root for license information.
|
|
11654
|
-
|
|
11655
|
-
// ---------------------------------------------------------------------
|
|
11656
|
-
|
|
11657
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11658
|
-
|
|
11659
|
-
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
11660
|
-
|
|
11661
|
-
/* eslint-disable jsdoc/require-param */
|
|
11662
|
-
|
|
11663
|
-
/**
|
|
11664
|
-
* This will register a new custom element with the browser.
|
|
11665
|
-
* @param {String} name - The name of the custom element.
|
|
11666
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
11667
|
-
* @returns {void}
|
|
11668
|
-
*/
|
|
11669
|
-
registerComponent(name, componentClass) {
|
|
11670
|
-
if (!customElements.get(name)) {
|
|
11671
|
-
customElements.define(name, class extends componentClass {});
|
|
11672
|
-
}
|
|
11673
|
-
}
|
|
11674
|
-
|
|
11675
|
-
/**
|
|
11676
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
11677
|
-
* @returns {void}
|
|
11678
|
-
*/
|
|
11679
|
-
closestElement(
|
|
11680
|
-
selector, // selector like in .closest()
|
|
11681
|
-
base = this, // extra functionality to skip a parent
|
|
11682
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11683
|
-
!el || el === document || el === window
|
|
11684
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
11685
|
-
: found
|
|
11686
|
-
? found // found a selector INside this element
|
|
11687
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11688
|
-
) {
|
|
11689
|
-
return __Closest(base);
|
|
11690
|
-
}
|
|
11691
|
-
/* eslint-enable jsdoc/require-param */
|
|
11692
|
-
|
|
11693
|
-
/**
|
|
11694
|
-
* 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.
|
|
11695
|
-
* @param {Object} elem - The element to check.
|
|
11696
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11697
|
-
* @returns {void}
|
|
11698
|
-
*/
|
|
11699
|
-
handleComponentTagRename(elem, tagName) {
|
|
11700
|
-
const tag = tagName.toLowerCase();
|
|
11701
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11702
|
-
|
|
11703
|
-
if (elemTag !== tag) {
|
|
11704
|
-
elem.setAttribute(tag, true);
|
|
11705
|
-
}
|
|
11706
|
-
}
|
|
11707
|
-
|
|
11708
|
-
/**
|
|
11709
|
-
* Validates if an element is a specific Auro component.
|
|
11710
|
-
* @param {Object} elem - The element to validate.
|
|
11711
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
11712
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11713
|
-
*/
|
|
11714
|
-
elementMatch(elem, tagName) {
|
|
11715
|
-
const tag = tagName.toLowerCase();
|
|
11716
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11717
|
-
|
|
11718
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
11719
|
-
}
|
|
11720
|
-
};
|
|
11721
|
-
|
|
11722
|
-
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}}`;
|
|
11723
|
-
|
|
11724
|
-
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}`;
|
|
11725
|
-
|
|
11726
|
-
var tokensCss$6 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11727
|
-
|
|
11728
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11729
|
-
// See LICENSE in the project root for license information.
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
11733
|
-
/**
|
|
11734
|
-
* The auro-loader element is an easy to use animated loader component.
|
|
11735
|
-
*
|
|
11736
|
-
* @attr {Boolean} pulse - sets loader type
|
|
11737
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
11738
|
-
* @attr {Boolean} laser - sets loader type
|
|
11739
|
-
* @attr {Boolean} orbit - sets loader type
|
|
11740
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
11741
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
11742
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
11743
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
11744
|
-
* @attr {Boolean} sm - sets size to small
|
|
11745
|
-
* @attr {Boolean} md - sets size to medium
|
|
11746
|
-
* @attr {Boolean} lg - sets size to large
|
|
11747
|
-
* @csspart element - apply style to adjust speed of animation
|
|
11748
|
-
*/
|
|
11749
|
-
|
|
11750
|
-
// build the component class
|
|
11751
|
-
let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
11752
|
-
constructor() {
|
|
11753
|
-
super();
|
|
11754
|
-
|
|
11755
|
-
/**
|
|
11756
|
-
* @private
|
|
11757
|
-
*/
|
|
11758
|
-
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
11759
|
-
|
|
11760
|
-
/**
|
|
11761
|
-
* @private
|
|
11762
|
-
*/
|
|
11763
|
-
this.mdCount = 3;
|
|
11764
|
-
|
|
11765
|
-
/**
|
|
11766
|
-
* @private
|
|
11767
|
-
*/
|
|
11768
|
-
this.smCount = 2;
|
|
11769
|
-
|
|
11770
|
-
/**
|
|
11771
|
-
* @private
|
|
11772
|
-
*/
|
|
11773
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
11774
|
-
|
|
11775
|
-
this.orbit = false;
|
|
11776
|
-
this.ringworm = false;
|
|
11777
|
-
this.laser = false;
|
|
11778
|
-
this.pulse = false;
|
|
11779
|
-
}
|
|
11780
|
-
|
|
11781
|
-
// function to define props used within the scope of this component
|
|
11782
|
-
static get properties() {
|
|
11783
|
-
return {
|
|
11784
|
-
pulse: {
|
|
11426
|
+
/**
|
|
11427
|
+
* Sets loader to laser type.
|
|
11428
|
+
*/
|
|
11429
|
+
laser: {
|
|
11785
11430
|
type: Boolean,
|
|
11786
11431
|
reflect: true
|
|
11787
11432
|
},
|
|
11433
|
+
|
|
11434
|
+
/**
|
|
11435
|
+
* Sets loader to orbit type.
|
|
11436
|
+
*/
|
|
11788
11437
|
orbit: {
|
|
11789
11438
|
type: Boolean,
|
|
11790
11439
|
reflect: true
|
|
11791
11440
|
},
|
|
11792
|
-
|
|
11441
|
+
|
|
11442
|
+
/**
|
|
11443
|
+
* Sets loader to pulse type.
|
|
11444
|
+
*/
|
|
11445
|
+
pulse: {
|
|
11793
11446
|
type: Boolean,
|
|
11794
11447
|
reflect: true
|
|
11795
11448
|
},
|
|
11796
|
-
|
|
11449
|
+
|
|
11450
|
+
/**
|
|
11451
|
+
* Sets loader to ringworm type.
|
|
11452
|
+
*/
|
|
11453
|
+
ringworm: {
|
|
11797
11454
|
type: Boolean,
|
|
11798
11455
|
reflect: true
|
|
11799
11456
|
}
|
|
@@ -11817,7 +11474,7 @@ let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
|
11817
11474
|
*
|
|
11818
11475
|
*/
|
|
11819
11476
|
static register(name = "auro-loader") {
|
|
11820
|
-
AuroLibraryRuntimeUtils$
|
|
11477
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroLoader);
|
|
11821
11478
|
}
|
|
11822
11479
|
|
|
11823
11480
|
firstUpdated() {
|
|
@@ -11867,23 +11524,26 @@ let AuroLoader$1 = class AuroLoader extends r$2 {
|
|
|
11867
11524
|
}
|
|
11868
11525
|
};
|
|
11869
11526
|
|
|
11870
|
-
var loaderVersion$1 = '
|
|
11527
|
+
var loaderVersion$1 = '5.0.0';
|
|
11871
11528
|
|
|
11529
|
+
/* eslint-disable max-lines */
|
|
11872
11530
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11873
11531
|
// See LICENSE in the project root for license information.
|
|
11874
11532
|
|
|
11875
11533
|
|
|
11876
11534
|
/**
|
|
11877
11535
|
* @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
|
|
11878
|
-
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
11536
|
+
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
11879
11537
|
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11880
11538
|
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11539
|
+
* @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.
|
|
11881
11540
|
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11882
11541
|
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11883
11542
|
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11884
11543
|
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11885
11544
|
* @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.
|
|
11886
11545
|
* @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.
|
|
11546
|
+
* @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.
|
|
11887
11547
|
* @attr {String} id - Set the unique ID of an element.
|
|
11888
11548
|
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11889
11549
|
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
@@ -11928,6 +11588,7 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11928
11588
|
this.rounded = false;
|
|
11929
11589
|
this.slim = false;
|
|
11930
11590
|
this.fluid = false;
|
|
11591
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
11931
11592
|
|
|
11932
11593
|
// Support for HTML5 forms
|
|
11933
11594
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -11988,6 +11649,9 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
11988
11649
|
type: Boolean,
|
|
11989
11650
|
reflect: true
|
|
11990
11651
|
},
|
|
11652
|
+
loadingText: {
|
|
11653
|
+
type: String
|
|
11654
|
+
},
|
|
11991
11655
|
onDark: {
|
|
11992
11656
|
type: Boolean,
|
|
11993
11657
|
reflect: true
|
|
@@ -12008,6 +11672,10 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
12008
11672
|
type: String,
|
|
12009
11673
|
reflect: true
|
|
12010
11674
|
},
|
|
11675
|
+
ariaexpanded: {
|
|
11676
|
+
type: Boolean,
|
|
11677
|
+
reflect: true
|
|
11678
|
+
},
|
|
12011
11679
|
title: {
|
|
12012
11680
|
type: String,
|
|
12013
11681
|
reflect: true
|
|
@@ -12037,7 +11705,7 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
12037
11705
|
*
|
|
12038
11706
|
*/
|
|
12039
11707
|
static register(name = "auro-button") {
|
|
12040
|
-
AuroLibraryRuntimeUtils$
|
|
11708
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroButton);
|
|
12041
11709
|
}
|
|
12042
11710
|
|
|
12043
11711
|
/**
|
|
@@ -12079,12 +11747,22 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
12079
11747
|
this.notifyReady();
|
|
12080
11748
|
}
|
|
12081
11749
|
|
|
11750
|
+
/**
|
|
11751
|
+
* Submits the form that this button is associated with.
|
|
11752
|
+
* @private
|
|
11753
|
+
* @returns {void}
|
|
11754
|
+
*/
|
|
12082
11755
|
surfaceSubmitEvent() {
|
|
12083
11756
|
if (this.form) {
|
|
12084
11757
|
this.form.requestSubmit();
|
|
12085
11758
|
}
|
|
12086
11759
|
}
|
|
12087
11760
|
|
|
11761
|
+
/**
|
|
11762
|
+
* Returns the form element that this button is associated with.
|
|
11763
|
+
* @private
|
|
11764
|
+
* @returns {HTMLFormElement|null}
|
|
11765
|
+
*/
|
|
12088
11766
|
get form() {
|
|
12089
11767
|
return this.internals ? this.internals.form : null;
|
|
12090
11768
|
}
|
|
@@ -12104,8 +11782,9 @@ let AuroButton$1 = class AuroButton extends r$2 {
|
|
|
12104
11782
|
return u$2`
|
|
12105
11783
|
<button
|
|
12106
11784
|
part="button"
|
|
12107
|
-
aria-label="${o(this.
|
|
11785
|
+
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
12108
11786
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11787
|
+
aria-expanded="${o(this.ariaexpanded)}"
|
|
12109
11788
|
?autofocus="${this.autofocus}"
|
|
12110
11789
|
class="${e(classes)}"
|
|
12111
11790
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -12204,7 +11883,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
12204
11883
|
*/
|
|
12205
11884
|
this.slots = {};
|
|
12206
11885
|
|
|
12207
|
-
const versioning = new AuroDependencyVersioning$
|
|
11886
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
12208
11887
|
|
|
12209
11888
|
/**
|
|
12210
11889
|
* @private
|
|
@@ -12496,7 +12175,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12496
12175
|
|
|
12497
12176
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12498
12177
|
|
|
12499
|
-
let AuroLibraryRuntimeUtils$
|
|
12178
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
12500
12179
|
|
|
12501
12180
|
/* eslint-disable jsdoc/require-param */
|
|
12502
12181
|
|
|
@@ -14695,7 +14374,7 @@ class AuroFloatingUI {
|
|
|
14695
14374
|
// See LICENSE in the project root for license information.
|
|
14696
14375
|
|
|
14697
14376
|
|
|
14698
|
-
let AuroDependencyVersioning$
|
|
14377
|
+
let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
14699
14378
|
|
|
14700
14379
|
/**
|
|
14701
14380
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -14797,7 +14476,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
14797
14476
|
return _fetchMap$1.get(uri);
|
|
14798
14477
|
};
|
|
14799
14478
|
|
|
14800
|
-
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}
|
|
14479
|
+
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}`;
|
|
14801
14480
|
|
|
14802
14481
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14803
14482
|
// See LICENSE in the project root for license information.
|
|
@@ -14805,7 +14484,6 @@ var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
14805
14484
|
|
|
14806
14485
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14807
14486
|
/**
|
|
14808
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
14809
14487
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
14810
14488
|
*/
|
|
14811
14489
|
|
|
@@ -14820,6 +14498,10 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
14820
14498
|
static get properties() {
|
|
14821
14499
|
return {
|
|
14822
14500
|
...super.properties,
|
|
14501
|
+
|
|
14502
|
+
/**
|
|
14503
|
+
* Set value for on-dark version of auro-icon.
|
|
14504
|
+
*/
|
|
14823
14505
|
onDark: {
|
|
14824
14506
|
type: Boolean,
|
|
14825
14507
|
reflect: true
|
|
@@ -14878,81 +14560,11 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
14878
14560
|
}
|
|
14879
14561
|
};
|
|
14880
14562
|
|
|
14881
|
-
var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
14882
|
-
|
|
14883
|
-
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)}`;
|
|
14884
|
-
|
|
14885
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14886
|
-
// See LICENSE in the project root for license information.
|
|
14887
|
-
|
|
14888
|
-
// ---------------------------------------------------------------------
|
|
14889
|
-
|
|
14890
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14891
|
-
|
|
14892
|
-
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14893
|
-
|
|
14894
|
-
/* eslint-disable jsdoc/require-param */
|
|
14895
|
-
|
|
14896
|
-
/**
|
|
14897
|
-
* This will register a new custom element with the browser.
|
|
14898
|
-
* @param {String} name - The name of the custom element.
|
|
14899
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
14900
|
-
* @returns {void}
|
|
14901
|
-
*/
|
|
14902
|
-
registerComponent(name, componentClass) {
|
|
14903
|
-
if (!customElements.get(name)) {
|
|
14904
|
-
customElements.define(name, class extends componentClass {});
|
|
14905
|
-
}
|
|
14906
|
-
}
|
|
14907
|
-
|
|
14908
|
-
/**
|
|
14909
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
14910
|
-
* @returns {void}
|
|
14911
|
-
*/
|
|
14912
|
-
closestElement(
|
|
14913
|
-
selector, // selector like in .closest()
|
|
14914
|
-
base = this, // extra functionality to skip a parent
|
|
14915
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14916
|
-
!el || el === document || el === window
|
|
14917
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
14918
|
-
: found
|
|
14919
|
-
? found // found a selector INside this element
|
|
14920
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14921
|
-
) {
|
|
14922
|
-
return __Closest(base);
|
|
14923
|
-
}
|
|
14924
|
-
/* eslint-enable jsdoc/require-param */
|
|
14925
|
-
|
|
14926
|
-
/**
|
|
14927
|
-
* 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.
|
|
14928
|
-
* @param {Object} elem - The element to check.
|
|
14929
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14930
|
-
* @returns {void}
|
|
14931
|
-
*/
|
|
14932
|
-
handleComponentTagRename(elem, tagName) {
|
|
14933
|
-
const tag = tagName.toLowerCase();
|
|
14934
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
14935
|
-
|
|
14936
|
-
if (elemTag !== tag) {
|
|
14937
|
-
elem.setAttribute(tag, true);
|
|
14938
|
-
}
|
|
14939
|
-
}
|
|
14940
|
-
|
|
14941
|
-
/**
|
|
14942
|
-
* Validates if an element is a specific Auro component.
|
|
14943
|
-
* @param {Object} elem - The element to validate.
|
|
14944
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
14945
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14946
|
-
*/
|
|
14947
|
-
elementMatch(elem, tagName) {
|
|
14948
|
-
const tag = tagName.toLowerCase();
|
|
14949
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
14563
|
+
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)}`;
|
|
14950
14564
|
|
|
14951
|
-
|
|
14952
|
-
}
|
|
14953
|
-
};
|
|
14565
|
+
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)}`;
|
|
14954
14566
|
|
|
14955
|
-
// Copyright (c)
|
|
14567
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14956
14568
|
// See LICENSE in the project root for license information.
|
|
14957
14569
|
|
|
14958
14570
|
|
|
@@ -14960,6 +14572,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14960
14572
|
constructor() {
|
|
14961
14573
|
super();
|
|
14962
14574
|
|
|
14575
|
+
this.variant = undefined;
|
|
14963
14576
|
this.privateDefaults();
|
|
14964
14577
|
}
|
|
14965
14578
|
|
|
@@ -14969,20 +14582,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14969
14582
|
* @returns {void}
|
|
14970
14583
|
*/
|
|
14971
14584
|
privateDefaults() {
|
|
14972
|
-
this.accent = false;
|
|
14973
|
-
this.customColor = false;
|
|
14974
|
-
this.customSvg = false;
|
|
14975
|
-
this.disabled = false;
|
|
14976
|
-
this.emphasis = false;
|
|
14977
|
-
this.error = false;
|
|
14978
|
-
this.info = false;
|
|
14979
|
-
this.label = false;
|
|
14980
|
-
this.primary = false;
|
|
14981
|
-
this.secondary = false;
|
|
14982
|
-
this.subtle = false;
|
|
14983
|
-
this.success = false;
|
|
14984
|
-
this.tertiary = false;
|
|
14985
|
-
this.warning = false;
|
|
14986
14585
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
14987
14586
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
14988
14587
|
}
|
|
@@ -14993,18 +14592,10 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14993
14592
|
...super.properties,
|
|
14994
14593
|
|
|
14995
14594
|
/**
|
|
14996
|
-
*
|
|
14595
|
+
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
14997
14596
|
*/
|
|
14998
|
-
|
|
14999
|
-
type:
|
|
15000
|
-
reflect: true
|
|
15001
|
-
},
|
|
15002
|
-
|
|
15003
|
-
/**
|
|
15004
|
-
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
15005
|
-
*/
|
|
15006
|
-
ariaHidden: {
|
|
15007
|
-
type: String,
|
|
14597
|
+
ariaHidden: {
|
|
14598
|
+
type: String,
|
|
15008
14599
|
reflect: true
|
|
15009
14600
|
},
|
|
15010
14601
|
|
|
@@ -15030,38 +14621,6 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15030
14621
|
type: Boolean
|
|
15031
14622
|
},
|
|
15032
14623
|
|
|
15033
|
-
/**
|
|
15034
|
-
* Sets the icon to use the disabled style.
|
|
15035
|
-
*/
|
|
15036
|
-
disabled: {
|
|
15037
|
-
type: Boolean,
|
|
15038
|
-
reflect: true
|
|
15039
|
-
},
|
|
15040
|
-
|
|
15041
|
-
/**
|
|
15042
|
-
* Sets the icon to use the emphasis style.
|
|
15043
|
-
*/
|
|
15044
|
-
emphasis: {
|
|
15045
|
-
type: Boolean,
|
|
15046
|
-
reflect: true
|
|
15047
|
-
},
|
|
15048
|
-
|
|
15049
|
-
/**
|
|
15050
|
-
* Sets the icon to use the error style.
|
|
15051
|
-
*/
|
|
15052
|
-
error: {
|
|
15053
|
-
type: Boolean,
|
|
15054
|
-
reflect: true
|
|
15055
|
-
},
|
|
15056
|
-
|
|
15057
|
-
/**
|
|
15058
|
-
* Sets the icon to use the info style.
|
|
15059
|
-
*/
|
|
15060
|
-
info: {
|
|
15061
|
-
type: Boolean,
|
|
15062
|
-
reflect: true
|
|
15063
|
-
},
|
|
15064
|
-
|
|
15065
14624
|
/**
|
|
15066
14625
|
* Exposes content in slot as icon label.
|
|
15067
14626
|
*/
|
|
@@ -15079,50 +14638,10 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
15079
14638
|
},
|
|
15080
14639
|
|
|
15081
14640
|
/**
|
|
15082
|
-
*
|
|
15083
|
-
*/
|
|
15084
|
-
primary: {
|
|
15085
|
-
type: Boolean,
|
|
15086
|
-
reflect: true
|
|
15087
|
-
},
|
|
15088
|
-
|
|
15089
|
-
/**
|
|
15090
|
-
* Sets the icon to use the secondary style.
|
|
15091
|
-
*/
|
|
15092
|
-
secondary: {
|
|
15093
|
-
type: Boolean,
|
|
15094
|
-
reflect: true
|
|
15095
|
-
},
|
|
15096
|
-
|
|
15097
|
-
/**
|
|
15098
|
-
* Sets the icon to use the subtle style.
|
|
15099
|
-
*/
|
|
15100
|
-
subtle: {
|
|
15101
|
-
type: Boolean,
|
|
15102
|
-
reflect: true
|
|
15103
|
-
},
|
|
15104
|
-
|
|
15105
|
-
/**
|
|
15106
|
-
* Sets the icon to use the success style.
|
|
14641
|
+
* 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`.
|
|
15107
14642
|
*/
|
|
15108
|
-
|
|
15109
|
-
type:
|
|
15110
|
-
reflect: true
|
|
15111
|
-
},
|
|
15112
|
-
|
|
15113
|
-
/**
|
|
15114
|
-
* Sets the icon to use the tertiary style.
|
|
15115
|
-
*/
|
|
15116
|
-
tertiary: {
|
|
15117
|
-
type: Boolean,
|
|
15118
|
-
reflect: true
|
|
15119
|
-
},
|
|
15120
|
-
|
|
15121
|
-
/**
|
|
15122
|
-
* Sets the icon to use the warning style.
|
|
15123
|
-
*/
|
|
15124
|
-
warning: {
|
|
15125
|
-
type: Boolean,
|
|
14643
|
+
variant: {
|
|
14644
|
+
type: String,
|
|
15126
14645
|
reflect: true
|
|
15127
14646
|
}
|
|
15128
14647
|
};
|
|
@@ -15218,7 +14737,7 @@ var styleCss$2$1 = i$5`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
15218
14737
|
|
|
15219
14738
|
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)}`;
|
|
15220
14739
|
|
|
15221
|
-
var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-
|
|
14740
|
+
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)}`;
|
|
15222
14741
|
|
|
15223
14742
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15224
14743
|
// See LICENSE in the project root for license information.
|
|
@@ -15248,7 +14767,7 @@ class AuroDropdownBib extends r$2 {
|
|
|
15248
14767
|
*/
|
|
15249
14768
|
this._mobileBreakpointValue = undefined;
|
|
15250
14769
|
|
|
15251
|
-
AuroLibraryRuntimeUtils$
|
|
14770
|
+
AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
15252
14771
|
}
|
|
15253
14772
|
|
|
15254
14773
|
static get styles() {
|
|
@@ -15341,13 +14860,13 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
15341
14860
|
|
|
15342
14861
|
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)}`;
|
|
15343
14862
|
|
|
15344
|
-
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-
|
|
14863
|
+
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))}`;
|
|
15345
14864
|
|
|
15346
|
-
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
14865
|
+
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)}`;
|
|
15347
14866
|
|
|
15348
14867
|
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}`;
|
|
15349
14868
|
|
|
15350
|
-
var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
14869
|
+
var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
15351
14870
|
|
|
15352
14871
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
15353
14872
|
// See LICENSE in the project root for license information.
|
|
@@ -15356,7 +14875,7 @@ var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
|
|
|
15356
14875
|
|
|
15357
14876
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15358
14877
|
|
|
15359
|
-
let AuroLibraryRuntimeUtils$
|
|
14878
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
15360
14879
|
|
|
15361
14880
|
/* eslint-disable jsdoc/require-param */
|
|
15362
14881
|
|
|
@@ -15434,9 +14953,10 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15434
14953
|
super();
|
|
15435
14954
|
|
|
15436
14955
|
this.error = false;
|
|
14956
|
+
this.onDark = false;
|
|
15437
14957
|
this.hasTextContent = false;
|
|
15438
14958
|
|
|
15439
|
-
AuroLibraryRuntimeUtils$
|
|
14959
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15440
14960
|
}
|
|
15441
14961
|
|
|
15442
14962
|
static get styles() {
|
|
@@ -15472,6 +14992,14 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15472
14992
|
type: Boolean,
|
|
15473
14993
|
reflect: true,
|
|
15474
14994
|
},
|
|
14995
|
+
|
|
14996
|
+
/**
|
|
14997
|
+
* If declared, will apply onDark styles.
|
|
14998
|
+
*/
|
|
14999
|
+
onDark: {
|
|
15000
|
+
type: Boolean,
|
|
15001
|
+
reflect: true
|
|
15002
|
+
}
|
|
15475
15003
|
};
|
|
15476
15004
|
}
|
|
15477
15005
|
|
|
@@ -15484,7 +15012,7 @@ let AuroHelpText$1 = class AuroHelpText extends r$2 {
|
|
|
15484
15012
|
*
|
|
15485
15013
|
*/
|
|
15486
15014
|
static register(name = "auro-helptext") {
|
|
15487
|
-
AuroLibraryRuntimeUtils$
|
|
15015
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
|
|
15488
15016
|
}
|
|
15489
15017
|
|
|
15490
15018
|
updated() {
|
|
@@ -15603,6 +15131,7 @@ class AuroDropdown extends r$2 {
|
|
|
15603
15131
|
this.tabIndex = 0;
|
|
15604
15132
|
this.noToggle = false;
|
|
15605
15133
|
this.labeled = true;
|
|
15134
|
+
this.onDark = false;
|
|
15606
15135
|
|
|
15607
15136
|
// floaterConfig
|
|
15608
15137
|
this.placement = 'bottom-start';
|
|
@@ -15623,7 +15152,7 @@ class AuroDropdown extends r$2 {
|
|
|
15623
15152
|
/**
|
|
15624
15153
|
* @private
|
|
15625
15154
|
*/
|
|
15626
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15155
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
15627
15156
|
|
|
15628
15157
|
/**
|
|
15629
15158
|
* @private
|
|
@@ -15633,7 +15162,7 @@ class AuroDropdown extends r$2 {
|
|
|
15633
15162
|
/**
|
|
15634
15163
|
* Generate unique names for dependency components.
|
|
15635
15164
|
*/
|
|
15636
|
-
const versioning = new AuroDependencyVersioning$
|
|
15165
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
15637
15166
|
|
|
15638
15167
|
/**
|
|
15639
15168
|
* @private
|
|
@@ -15859,6 +15388,14 @@ class AuroDropdown extends r$2 {
|
|
|
15859
15388
|
reflect: true
|
|
15860
15389
|
},
|
|
15861
15390
|
|
|
15391
|
+
/**
|
|
15392
|
+
* If declared, onDark styles will be applied.
|
|
15393
|
+
*/
|
|
15394
|
+
onDark: {
|
|
15395
|
+
type: Boolean,
|
|
15396
|
+
reflect: true
|
|
15397
|
+
},
|
|
15398
|
+
|
|
15862
15399
|
onSlotChange: {
|
|
15863
15400
|
type: Function,
|
|
15864
15401
|
reflect: false
|
|
@@ -15912,7 +15449,7 @@ class AuroDropdown extends r$2 {
|
|
|
15912
15449
|
*
|
|
15913
15450
|
*/
|
|
15914
15451
|
static register(name = "auro-dropdown") {
|
|
15915
|
-
AuroLibraryRuntimeUtils$
|
|
15452
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15916
15453
|
}
|
|
15917
15454
|
|
|
15918
15455
|
connectedCallback() {
|
|
@@ -16229,14 +15766,14 @@ class AuroDropdown extends r$2 {
|
|
|
16229
15766
|
<${this.iconTag}
|
|
16230
15767
|
category="interface"
|
|
16231
15768
|
name="chevron-down"
|
|
16232
|
-
|
|
16233
|
-
|
|
15769
|
+
?onDark="${this.onDark}"
|
|
15770
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16234
15771
|
>
|
|
16235
15772
|
</${this.iconTag}>
|
|
16236
15773
|
</div>
|
|
16237
15774
|
` : undefined }
|
|
16238
15775
|
</div>
|
|
16239
|
-
<${this.helpTextTag} part="helpText" ?error="${this.error}">
|
|
15776
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16240
15777
|
<slot name="helpText"></slot>
|
|
16241
15778
|
</${this.helpTextTag}>
|
|
16242
15779
|
<div class="slotContent">
|
|
@@ -16393,11 +15930,11 @@ function stopNotifyingOnLangChange(element) {
|
|
|
16393
15930
|
watchedItems.delete(element);
|
|
16394
15931
|
}
|
|
16395
15932
|
|
|
16396
|
-
var styleCss$4 = i$5
|
|
15933
|
+
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)}`;
|
|
16397
15934
|
|
|
16398
|
-
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-
|
|
15935
|
+
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))}`;
|
|
16399
15936
|
|
|
16400
|
-
var tokensCss$4 = i$5`:host{--ds-auro-input-border-color: var(--ds-color-border-
|
|
15937
|
+
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)}`;
|
|
16401
15938
|
|
|
16402
15939
|
/** Checks if value is string */
|
|
16403
15940
|
function isString(str) {
|
|
@@ -20248,7 +19785,7 @@ class AuroInputUtilities {
|
|
|
20248
19785
|
|
|
20249
19786
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
20250
19787
|
|
|
20251
|
-
let AuroLibraryRuntimeUtils$
|
|
19788
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
20252
19789
|
|
|
20253
19790
|
/* eslint-disable jsdoc/require-param */
|
|
20254
19791
|
|
|
@@ -20317,7 +19854,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
20317
19854
|
|
|
20318
19855
|
class AuroFormValidation {
|
|
20319
19856
|
constructor() {
|
|
20320
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
19857
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
20321
19858
|
}
|
|
20322
19859
|
|
|
20323
19860
|
/**
|
|
@@ -20657,6 +20194,7 @@ class BaseInput extends r$2 {
|
|
|
20657
20194
|
this.min = undefined;
|
|
20658
20195
|
this.maxLength = undefined;
|
|
20659
20196
|
this.minLength = undefined;
|
|
20197
|
+
this.onDark = false;
|
|
20660
20198
|
this.activeLabel = false;
|
|
20661
20199
|
this.setCustomValidityForType = undefined;
|
|
20662
20200
|
}
|
|
@@ -20847,6 +20385,14 @@ class BaseInput extends r$2 {
|
|
|
20847
20385
|
type: Boolean
|
|
20848
20386
|
},
|
|
20849
20387
|
|
|
20388
|
+
/**
|
|
20389
|
+
* Sets onDark styles on input.
|
|
20390
|
+
*/
|
|
20391
|
+
onDark: {
|
|
20392
|
+
type: Boolean,
|
|
20393
|
+
reflect: true
|
|
20394
|
+
},
|
|
20395
|
+
|
|
20850
20396
|
/**
|
|
20851
20397
|
* Specifies a regular expression the form control's value should match.
|
|
20852
20398
|
*/
|
|
@@ -21581,7 +21127,7 @@ class BaseInput extends r$2 {
|
|
|
21581
21127
|
// See LICENSE in the project root for license information.
|
|
21582
21128
|
|
|
21583
21129
|
|
|
21584
|
-
|
|
21130
|
+
class AuroDependencyVersioning {
|
|
21585
21131
|
|
|
21586
21132
|
/**
|
|
21587
21133
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -21615,7 +21161,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
21615
21161
|
|
|
21616
21162
|
return tag;
|
|
21617
21163
|
}
|
|
21618
|
-
}
|
|
21164
|
+
}
|
|
21619
21165
|
|
|
21620
21166
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21621
21167
|
// See LICENSE in the project root for license information.
|
|
@@ -21683,7 +21229,7 @@ const cacheFetch = (uri, options = {}) => {
|
|
|
21683
21229
|
return _fetchMap.get(uri);
|
|
21684
21230
|
};
|
|
21685
21231
|
|
|
21686
|
-
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}
|
|
21232
|
+
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}`;
|
|
21687
21233
|
|
|
21688
21234
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21689
21235
|
// See LICENSE in the project root for license information.
|
|
@@ -21691,7 +21237,6 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
21691
21237
|
|
|
21692
21238
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
21693
21239
|
/**
|
|
21694
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-icon
|
|
21695
21240
|
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
21696
21241
|
*/
|
|
21697
21242
|
|
|
@@ -21706,6 +21251,10 @@ class BaseIcon extends AuroElement {
|
|
|
21706
21251
|
static get properties() {
|
|
21707
21252
|
return {
|
|
21708
21253
|
...super.properties,
|
|
21254
|
+
|
|
21255
|
+
/**
|
|
21256
|
+
* Set value for on-dark version of auro-icon.
|
|
21257
|
+
*/
|
|
21709
21258
|
onDark: {
|
|
21710
21259
|
type: Boolean,
|
|
21711
21260
|
reflect: true
|
|
@@ -21764,81 +21313,11 @@ class BaseIcon extends AuroElement {
|
|
|
21764
21313
|
}
|
|
21765
21314
|
}
|
|
21766
21315
|
|
|
21767
|
-
var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-color-
|
|
21768
|
-
|
|
21769
|
-
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)}`;
|
|
21770
|
-
|
|
21771
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
21772
|
-
// See LICENSE in the project root for license information.
|
|
21773
|
-
|
|
21774
|
-
// ---------------------------------------------------------------------
|
|
21316
|
+
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)}`;
|
|
21775
21317
|
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
21318
|
+
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)}`;
|
|
21779
21319
|
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
/**
|
|
21783
|
-
* This will register a new custom element with the browser.
|
|
21784
|
-
* @param {String} name - The name of the custom element.
|
|
21785
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
21786
|
-
* @returns {void}
|
|
21787
|
-
*/
|
|
21788
|
-
registerComponent(name, componentClass) {
|
|
21789
|
-
if (!customElements.get(name)) {
|
|
21790
|
-
customElements.define(name, class extends componentClass {});
|
|
21791
|
-
}
|
|
21792
|
-
}
|
|
21793
|
-
|
|
21794
|
-
/**
|
|
21795
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
21796
|
-
* @returns {void}
|
|
21797
|
-
*/
|
|
21798
|
-
closestElement(
|
|
21799
|
-
selector, // selector like in .closest()
|
|
21800
|
-
base = this, // extra functionality to skip a parent
|
|
21801
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
21802
|
-
!el || el === document || el === window
|
|
21803
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
21804
|
-
: found
|
|
21805
|
-
? found // found a selector INside this element
|
|
21806
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
21807
|
-
) {
|
|
21808
|
-
return __Closest(base);
|
|
21809
|
-
}
|
|
21810
|
-
/* eslint-enable jsdoc/require-param */
|
|
21811
|
-
|
|
21812
|
-
/**
|
|
21813
|
-
* 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.
|
|
21814
|
-
* @param {Object} elem - The element to check.
|
|
21815
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
21816
|
-
* @returns {void}
|
|
21817
|
-
*/
|
|
21818
|
-
handleComponentTagRename(elem, tagName) {
|
|
21819
|
-
const tag = tagName.toLowerCase();
|
|
21820
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21821
|
-
|
|
21822
|
-
if (elemTag !== tag) {
|
|
21823
|
-
elem.setAttribute(tag, true);
|
|
21824
|
-
}
|
|
21825
|
-
}
|
|
21826
|
-
|
|
21827
|
-
/**
|
|
21828
|
-
* Validates if an element is a specific Auro component.
|
|
21829
|
-
* @param {Object} elem - The element to validate.
|
|
21830
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
21831
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
21832
|
-
*/
|
|
21833
|
-
elementMatch(elem, tagName) {
|
|
21834
|
-
const tag = tagName.toLowerCase();
|
|
21835
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21836
|
-
|
|
21837
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
21838
|
-
}
|
|
21839
|
-
};
|
|
21840
|
-
|
|
21841
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21320
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21842
21321
|
// See LICENSE in the project root for license information.
|
|
21843
21322
|
|
|
21844
21323
|
|
|
@@ -21846,6 +21325,7 @@ class AuroIcon extends BaseIcon {
|
|
|
21846
21325
|
constructor() {
|
|
21847
21326
|
super();
|
|
21848
21327
|
|
|
21328
|
+
this.variant = undefined;
|
|
21849
21329
|
this.privateDefaults();
|
|
21850
21330
|
}
|
|
21851
21331
|
|
|
@@ -21855,22 +21335,8 @@ class AuroIcon extends BaseIcon {
|
|
|
21855
21335
|
* @returns {void}
|
|
21856
21336
|
*/
|
|
21857
21337
|
privateDefaults() {
|
|
21858
|
-
this.accent = false;
|
|
21859
|
-
this.customColor = false;
|
|
21860
|
-
this.customSvg = false;
|
|
21861
|
-
this.disabled = false;
|
|
21862
|
-
this.emphasis = false;
|
|
21863
|
-
this.error = false;
|
|
21864
|
-
this.info = false;
|
|
21865
|
-
this.label = false;
|
|
21866
|
-
this.primary = false;
|
|
21867
|
-
this.secondary = false;
|
|
21868
|
-
this.subtle = false;
|
|
21869
|
-
this.success = false;
|
|
21870
|
-
this.tertiary = false;
|
|
21871
|
-
this.warning = false;
|
|
21872
21338
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
21873
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21339
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
21874
21340
|
}
|
|
21875
21341
|
|
|
21876
21342
|
// function to define props used within the scope of this component
|
|
@@ -21878,14 +21344,6 @@ class AuroIcon extends BaseIcon {
|
|
|
21878
21344
|
return {
|
|
21879
21345
|
...super.properties,
|
|
21880
21346
|
|
|
21881
|
-
/**
|
|
21882
|
-
* Sets the icon to use the accent style.
|
|
21883
|
-
*/
|
|
21884
|
-
accent: {
|
|
21885
|
-
type: Boolean,
|
|
21886
|
-
reflect: true
|
|
21887
|
-
},
|
|
21888
|
-
|
|
21889
21347
|
/**
|
|
21890
21348
|
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
21891
21349
|
*/
|
|
@@ -21916,38 +21374,6 @@ class AuroIcon extends BaseIcon {
|
|
|
21916
21374
|
type: Boolean
|
|
21917
21375
|
},
|
|
21918
21376
|
|
|
21919
|
-
/**
|
|
21920
|
-
* Sets the icon to use the disabled style.
|
|
21921
|
-
*/
|
|
21922
|
-
disabled: {
|
|
21923
|
-
type: Boolean,
|
|
21924
|
-
reflect: true
|
|
21925
|
-
},
|
|
21926
|
-
|
|
21927
|
-
/**
|
|
21928
|
-
* Sets the icon to use the emphasis style.
|
|
21929
|
-
*/
|
|
21930
|
-
emphasis: {
|
|
21931
|
-
type: Boolean,
|
|
21932
|
-
reflect: true
|
|
21933
|
-
},
|
|
21934
|
-
|
|
21935
|
-
/**
|
|
21936
|
-
* Sets the icon to use the error style.
|
|
21937
|
-
*/
|
|
21938
|
-
error: {
|
|
21939
|
-
type: Boolean,
|
|
21940
|
-
reflect: true
|
|
21941
|
-
},
|
|
21942
|
-
|
|
21943
|
-
/**
|
|
21944
|
-
* Sets the icon to use the info style.
|
|
21945
|
-
*/
|
|
21946
|
-
info: {
|
|
21947
|
-
type: Boolean,
|
|
21948
|
-
reflect: true
|
|
21949
|
-
},
|
|
21950
|
-
|
|
21951
21377
|
/**
|
|
21952
21378
|
* Exposes content in slot as icon label.
|
|
21953
21379
|
*/
|
|
@@ -21965,50 +21391,10 @@ class AuroIcon extends BaseIcon {
|
|
|
21965
21391
|
},
|
|
21966
21392
|
|
|
21967
21393
|
/**
|
|
21968
|
-
*
|
|
21969
|
-
*/
|
|
21970
|
-
primary: {
|
|
21971
|
-
type: Boolean,
|
|
21972
|
-
reflect: true
|
|
21973
|
-
},
|
|
21974
|
-
|
|
21975
|
-
/**
|
|
21976
|
-
* Sets the icon to use the secondary style.
|
|
21977
|
-
*/
|
|
21978
|
-
secondary: {
|
|
21979
|
-
type: Boolean,
|
|
21980
|
-
reflect: true
|
|
21981
|
-
},
|
|
21982
|
-
|
|
21983
|
-
/**
|
|
21984
|
-
* Sets the icon to use the subtle style.
|
|
21394
|
+
* 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`.
|
|
21985
21395
|
*/
|
|
21986
|
-
|
|
21987
|
-
type:
|
|
21988
|
-
reflect: true
|
|
21989
|
-
},
|
|
21990
|
-
|
|
21991
|
-
/**
|
|
21992
|
-
* Sets the icon to use the success style.
|
|
21993
|
-
*/
|
|
21994
|
-
success: {
|
|
21995
|
-
type: Boolean,
|
|
21996
|
-
reflect: true
|
|
21997
|
-
},
|
|
21998
|
-
|
|
21999
|
-
/**
|
|
22000
|
-
* Sets the icon to use the tertiary style.
|
|
22001
|
-
*/
|
|
22002
|
-
tertiary: {
|
|
22003
|
-
type: Boolean,
|
|
22004
|
-
reflect: true
|
|
22005
|
-
},
|
|
22006
|
-
|
|
22007
|
-
/**
|
|
22008
|
-
* Sets the icon to use the warning style.
|
|
22009
|
-
*/
|
|
22010
|
-
warning: {
|
|
22011
|
-
type: Boolean,
|
|
21396
|
+
variant: {
|
|
21397
|
+
type: String,
|
|
22012
21398
|
reflect: true
|
|
22013
21399
|
}
|
|
22014
21400
|
};
|
|
@@ -22032,7 +21418,7 @@ class AuroIcon extends BaseIcon {
|
|
|
22032
21418
|
*
|
|
22033
21419
|
*/
|
|
22034
21420
|
static register(name = "auro-icon") {
|
|
22035
|
-
AuroLibraryRuntimeUtils$
|
|
21421
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
22036
21422
|
}
|
|
22037
21423
|
|
|
22038
21424
|
connectedCallback() {
|
|
@@ -22098,197 +21484,17 @@ class AuroIcon extends BaseIcon {
|
|
|
22098
21484
|
}
|
|
22099
21485
|
}
|
|
22100
21486
|
|
|
22101
|
-
var iconVersion = '
|
|
22102
|
-
|
|
22103
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22104
|
-
// See LICENSE in the project root for license information.
|
|
22105
|
-
|
|
22106
|
-
|
|
22107
|
-
class AuroDependencyVersioning {
|
|
22108
|
-
|
|
22109
|
-
/**
|
|
22110
|
-
* Generates a unique string to be used for child auro element naming.
|
|
22111
|
-
* @private
|
|
22112
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
22113
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
22114
|
-
* @returns {string} - Unique string to be used for naming.
|
|
22115
|
-
*/
|
|
22116
|
-
generateElementName(baseName, version) {
|
|
22117
|
-
let result = baseName;
|
|
22118
|
-
|
|
22119
|
-
result += '-';
|
|
22120
|
-
result += version.replace(/[.]/g, '_');
|
|
22121
|
-
|
|
22122
|
-
return result;
|
|
22123
|
-
}
|
|
22124
|
-
|
|
22125
|
-
/**
|
|
22126
|
-
* Generates a unique string to be used for child auro element naming.
|
|
22127
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
22128
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
22129
|
-
* @returns {string} - Unique string to be used for naming.
|
|
22130
|
-
*/
|
|
22131
|
-
generateTag(baseName, version, tagClass) {
|
|
22132
|
-
const elementName = this.generateElementName(baseName, version);
|
|
22133
|
-
const tag = i$1`${s$1(elementName)}`;
|
|
22134
|
-
|
|
22135
|
-
if (!customElements.get(elementName)) {
|
|
22136
|
-
customElements.define(elementName, class extends tagClass {});
|
|
22137
|
-
}
|
|
22138
|
-
|
|
22139
|
-
return tag;
|
|
22140
|
-
}
|
|
22141
|
-
}
|
|
22142
|
-
|
|
22143
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22144
|
-
// See LICENSE in the project root for license information.
|
|
22145
|
-
|
|
22146
|
-
// ---------------------------------------------------------------------
|
|
22147
|
-
|
|
22148
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
22149
|
-
|
|
22150
|
-
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
22151
|
-
|
|
22152
|
-
/* eslint-disable jsdoc/require-param */
|
|
22153
|
-
|
|
22154
|
-
/**
|
|
22155
|
-
* This will register a new custom element with the browser.
|
|
22156
|
-
* @param {String} name - The name of the custom element.
|
|
22157
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
22158
|
-
* @returns {void}
|
|
22159
|
-
*/
|
|
22160
|
-
registerComponent(name, componentClass) {
|
|
22161
|
-
if (!customElements.get(name)) {
|
|
22162
|
-
customElements.define(name, class extends componentClass {});
|
|
22163
|
-
}
|
|
22164
|
-
}
|
|
22165
|
-
|
|
22166
|
-
/**
|
|
22167
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
22168
|
-
* @returns {void}
|
|
22169
|
-
*/
|
|
22170
|
-
closestElement(
|
|
22171
|
-
selector, // selector like in .closest()
|
|
22172
|
-
base = this, // extra functionality to skip a parent
|
|
22173
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
22174
|
-
!el || el === document || el === window
|
|
22175
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
22176
|
-
: found
|
|
22177
|
-
? found // found a selector INside this element
|
|
22178
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
22179
|
-
) {
|
|
22180
|
-
return __Closest(base);
|
|
22181
|
-
}
|
|
22182
|
-
/* eslint-enable jsdoc/require-param */
|
|
22183
|
-
|
|
22184
|
-
/**
|
|
22185
|
-
* 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.
|
|
22186
|
-
* @param {Object} elem - The element to check.
|
|
22187
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22188
|
-
* @returns {void}
|
|
22189
|
-
*/
|
|
22190
|
-
handleComponentTagRename(elem, tagName) {
|
|
22191
|
-
const tag = tagName.toLowerCase();
|
|
22192
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
22193
|
-
|
|
22194
|
-
if (elemTag !== tag) {
|
|
22195
|
-
elem.setAttribute(tag, true);
|
|
22196
|
-
}
|
|
22197
|
-
}
|
|
22198
|
-
|
|
22199
|
-
/**
|
|
22200
|
-
* Validates if an element is a specific Auro component.
|
|
22201
|
-
* @param {Object} elem - The element to validate.
|
|
22202
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
22203
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22204
|
-
*/
|
|
22205
|
-
elementMatch(elem, tagName) {
|
|
22206
|
-
const tag = tagName.toLowerCase();
|
|
22207
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
22208
|
-
|
|
22209
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
22210
|
-
}
|
|
22211
|
-
};
|
|
22212
|
-
|
|
22213
|
-
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}`;
|
|
22214
|
-
|
|
22215
|
-
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}`;
|
|
22216
|
-
|
|
22217
|
-
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}`;
|
|
22218
|
-
|
|
22219
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22220
|
-
// See LICENSE in the project root for license information.
|
|
22221
|
-
|
|
22222
|
-
// ---------------------------------------------------------------------
|
|
22223
|
-
|
|
22224
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
22225
|
-
|
|
22226
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
22227
|
-
|
|
22228
|
-
/* eslint-disable jsdoc/require-param */
|
|
22229
|
-
|
|
22230
|
-
/**
|
|
22231
|
-
* This will register a new custom element with the browser.
|
|
22232
|
-
* @param {String} name - The name of the custom element.
|
|
22233
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
22234
|
-
* @returns {void}
|
|
22235
|
-
*/
|
|
22236
|
-
registerComponent(name, componentClass) {
|
|
22237
|
-
if (!customElements.get(name)) {
|
|
22238
|
-
customElements.define(name, class extends componentClass {});
|
|
22239
|
-
}
|
|
22240
|
-
}
|
|
22241
|
-
|
|
22242
|
-
/**
|
|
22243
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
22244
|
-
* @returns {void}
|
|
22245
|
-
*/
|
|
22246
|
-
closestElement(
|
|
22247
|
-
selector, // selector like in .closest()
|
|
22248
|
-
base = this, // extra functionality to skip a parent
|
|
22249
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
22250
|
-
!el || el === document || el === window
|
|
22251
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
22252
|
-
: found
|
|
22253
|
-
? found // found a selector INside this element
|
|
22254
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
22255
|
-
) {
|
|
22256
|
-
return __Closest(base);
|
|
22257
|
-
}
|
|
22258
|
-
/* eslint-enable jsdoc/require-param */
|
|
22259
|
-
|
|
22260
|
-
/**
|
|
22261
|
-
* 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.
|
|
22262
|
-
* @param {Object} elem - The element to check.
|
|
22263
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22264
|
-
* @returns {void}
|
|
22265
|
-
*/
|
|
22266
|
-
handleComponentTagRename(elem, tagName) {
|
|
22267
|
-
const tag = tagName.toLowerCase();
|
|
22268
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21487
|
+
var iconVersion = '8.0.1';
|
|
22269
21488
|
|
|
22270
|
-
|
|
22271
|
-
elem.setAttribute(tag, true);
|
|
22272
|
-
}
|
|
22273
|
-
}
|
|
21489
|
+
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}`;
|
|
22274
21490
|
|
|
22275
|
-
|
|
22276
|
-
* Validates if an element is a specific Auro component.
|
|
22277
|
-
* @param {Object} elem - The element to validate.
|
|
22278
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
22279
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22280
|
-
*/
|
|
22281
|
-
elementMatch(elem, tagName) {
|
|
22282
|
-
const tag = tagName.toLowerCase();
|
|
22283
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
21491
|
+
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}`;
|
|
22284
21492
|
|
|
22285
|
-
|
|
22286
|
-
}
|
|
22287
|
-
};
|
|
21493
|
+
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}`;
|
|
22288
21494
|
|
|
22289
21495
|
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}}`;
|
|
22290
21496
|
|
|
22291
|
-
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-
|
|
21497
|
+
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}`;
|
|
22292
21498
|
|
|
22293
21499
|
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
22294
21500
|
|
|
@@ -22296,25 +21502,6 @@ var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-
|
|
|
22296
21502
|
// See LICENSE in the project root for license information.
|
|
22297
21503
|
|
|
22298
21504
|
|
|
22299
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
22300
|
-
/**
|
|
22301
|
-
* The auro-loader element is an easy to use animated loader component.
|
|
22302
|
-
*
|
|
22303
|
-
* @attr {Boolean} pulse - sets loader type
|
|
22304
|
-
* @attr {Boolean} ringworm - sets loader type
|
|
22305
|
-
* @attr {Boolean} laser - sets loader type
|
|
22306
|
-
* @attr {Boolean} orbit - sets loader type
|
|
22307
|
-
* @attr {Boolean} white - sets color of loader to white
|
|
22308
|
-
* @attr {Boolean} ondark - sets color of loader to auro-color-ui-default-on-dark
|
|
22309
|
-
* @attr {Boolean} onlight - sets color of loader to auro-color-ui-default-on-light
|
|
22310
|
-
* @attr {Boolean} xs - sets size to extra small
|
|
22311
|
-
* @attr {Boolean} sm - sets size to small
|
|
22312
|
-
* @attr {Boolean} md - sets size to medium
|
|
22313
|
-
* @attr {Boolean} lg - sets size to large
|
|
22314
|
-
* @csspart element - apply style to adjust speed of animation
|
|
22315
|
-
*/
|
|
22316
|
-
|
|
22317
|
-
// build the component class
|
|
22318
21505
|
class AuroLoader extends r$2 {
|
|
22319
21506
|
constructor() {
|
|
22320
21507
|
super();
|
|
@@ -22348,19 +21535,35 @@ class AuroLoader extends r$2 {
|
|
|
22348
21535
|
// function to define props used within the scope of this component
|
|
22349
21536
|
static get properties() {
|
|
22350
21537
|
return {
|
|
22351
|
-
|
|
21538
|
+
|
|
21539
|
+
/**
|
|
21540
|
+
* Sets loader to laser type.
|
|
21541
|
+
*/
|
|
21542
|
+
laser: {
|
|
22352
21543
|
type: Boolean,
|
|
22353
21544
|
reflect: true
|
|
22354
21545
|
},
|
|
21546
|
+
|
|
21547
|
+
/**
|
|
21548
|
+
* Sets loader to orbit type.
|
|
21549
|
+
*/
|
|
22355
21550
|
orbit: {
|
|
22356
21551
|
type: Boolean,
|
|
22357
21552
|
reflect: true
|
|
22358
21553
|
},
|
|
22359
|
-
|
|
21554
|
+
|
|
21555
|
+
/**
|
|
21556
|
+
* Sets loader to pulse type.
|
|
21557
|
+
*/
|
|
21558
|
+
pulse: {
|
|
22360
21559
|
type: Boolean,
|
|
22361
21560
|
reflect: true
|
|
22362
21561
|
},
|
|
22363
|
-
|
|
21562
|
+
|
|
21563
|
+
/**
|
|
21564
|
+
* Sets loader to ringworm type.
|
|
21565
|
+
*/
|
|
21566
|
+
ringworm: {
|
|
22364
21567
|
type: Boolean,
|
|
22365
21568
|
reflect: true
|
|
22366
21569
|
}
|
|
@@ -22434,23 +21637,26 @@ class AuroLoader extends r$2 {
|
|
|
22434
21637
|
}
|
|
22435
21638
|
}
|
|
22436
21639
|
|
|
22437
|
-
var loaderVersion = '
|
|
21640
|
+
var loaderVersion = '5.0.0';
|
|
22438
21641
|
|
|
21642
|
+
/* eslint-disable max-lines */
|
|
22439
21643
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22440
21644
|
// See LICENSE in the project root for license information.
|
|
22441
21645
|
|
|
22442
21646
|
|
|
22443
21647
|
/**
|
|
22444
21648
|
* @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
|
|
22445
|
-
* @attr {Boolean} disabled - If set to true button will become disabled and not allow for interactions
|
|
21649
|
+
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
22446
21650
|
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
22447
21651
|
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
21652
|
+
* @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.
|
|
22448
21653
|
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
22449
21654
|
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
22450
21655
|
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
22451
21656
|
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
22452
21657
|
* @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.
|
|
22453
21658
|
* @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.
|
|
21659
|
+
* @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.
|
|
22454
21660
|
* @attr {String} id - Set the unique ID of an element.
|
|
22455
21661
|
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
22456
21662
|
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
@@ -22495,6 +21701,7 @@ class AuroButton extends r$2 {
|
|
|
22495
21701
|
this.rounded = false;
|
|
22496
21702
|
this.slim = false;
|
|
22497
21703
|
this.fluid = false;
|
|
21704
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
22498
21705
|
|
|
22499
21706
|
// Support for HTML5 forms
|
|
22500
21707
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -22555,6 +21762,9 @@ class AuroButton extends r$2 {
|
|
|
22555
21762
|
type: Boolean,
|
|
22556
21763
|
reflect: true
|
|
22557
21764
|
},
|
|
21765
|
+
loadingText: {
|
|
21766
|
+
type: String
|
|
21767
|
+
},
|
|
22558
21768
|
onDark: {
|
|
22559
21769
|
type: Boolean,
|
|
22560
21770
|
reflect: true
|
|
@@ -22575,6 +21785,10 @@ class AuroButton extends r$2 {
|
|
|
22575
21785
|
type: String,
|
|
22576
21786
|
reflect: true
|
|
22577
21787
|
},
|
|
21788
|
+
ariaexpanded: {
|
|
21789
|
+
type: Boolean,
|
|
21790
|
+
reflect: true
|
|
21791
|
+
},
|
|
22578
21792
|
title: {
|
|
22579
21793
|
type: String,
|
|
22580
21794
|
reflect: true
|
|
@@ -22604,7 +21818,7 @@ class AuroButton extends r$2 {
|
|
|
22604
21818
|
*
|
|
22605
21819
|
*/
|
|
22606
21820
|
static register(name = "auro-button") {
|
|
22607
|
-
AuroLibraryRuntimeUtils$
|
|
21821
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
22608
21822
|
}
|
|
22609
21823
|
|
|
22610
21824
|
/**
|
|
@@ -22646,12 +21860,22 @@ class AuroButton extends r$2 {
|
|
|
22646
21860
|
this.notifyReady();
|
|
22647
21861
|
}
|
|
22648
21862
|
|
|
21863
|
+
/**
|
|
21864
|
+
* Submits the form that this button is associated with.
|
|
21865
|
+
* @private
|
|
21866
|
+
* @returns {void}
|
|
21867
|
+
*/
|
|
22649
21868
|
surfaceSubmitEvent() {
|
|
22650
21869
|
if (this.form) {
|
|
22651
21870
|
this.form.requestSubmit();
|
|
22652
21871
|
}
|
|
22653
21872
|
}
|
|
22654
21873
|
|
|
21874
|
+
/**
|
|
21875
|
+
* Returns the form element that this button is associated with.
|
|
21876
|
+
* @private
|
|
21877
|
+
* @returns {HTMLFormElement|null}
|
|
21878
|
+
*/
|
|
22655
21879
|
get form() {
|
|
22656
21880
|
return this.internals ? this.internals.form : null;
|
|
22657
21881
|
}
|
|
@@ -22671,8 +21895,9 @@ class AuroButton extends r$2 {
|
|
|
22671
21895
|
return u$2`
|
|
22672
21896
|
<button
|
|
22673
21897
|
part="button"
|
|
22674
|
-
aria-label="${o(this.
|
|
21898
|
+
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
22675
21899
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
21900
|
+
aria-expanded="${o(this.ariaexpanded)}"
|
|
22676
21901
|
?autofocus="${this.autofocus}"
|
|
22677
21902
|
class="${e(classes)}"
|
|
22678
21903
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -22700,13 +21925,13 @@ class AuroButton extends r$2 {
|
|
|
22700
21925
|
}
|
|
22701
21926
|
}
|
|
22702
21927
|
|
|
22703
|
-
var buttonVersion = '
|
|
21928
|
+
var buttonVersion = '9.3.0';
|
|
22704
21929
|
|
|
22705
|
-
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
21930
|
+
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)}`;
|
|
22706
21931
|
|
|
22707
21932
|
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}`;
|
|
22708
21933
|
|
|
22709
|
-
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
21934
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
22710
21935
|
|
|
22711
21936
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22712
21937
|
// See LICENSE in the project root for license information.
|
|
@@ -22793,6 +22018,7 @@ class AuroHelpText extends r$2 {
|
|
|
22793
22018
|
super();
|
|
22794
22019
|
|
|
22795
22020
|
this.error = false;
|
|
22021
|
+
this.onDark = false;
|
|
22796
22022
|
this.hasTextContent = false;
|
|
22797
22023
|
|
|
22798
22024
|
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
@@ -22831,6 +22057,14 @@ class AuroHelpText extends r$2 {
|
|
|
22831
22057
|
type: Boolean,
|
|
22832
22058
|
reflect: true,
|
|
22833
22059
|
},
|
|
22060
|
+
|
|
22061
|
+
/**
|
|
22062
|
+
* If declared, will apply onDark styles.
|
|
22063
|
+
*/
|
|
22064
|
+
onDark: {
|
|
22065
|
+
type: Boolean,
|
|
22066
|
+
reflect: true
|
|
22067
|
+
}
|
|
22834
22068
|
};
|
|
22835
22069
|
}
|
|
22836
22070
|
|
|
@@ -22913,7 +22147,7 @@ class AuroInput extends BaseInput {
|
|
|
22913
22147
|
/**
|
|
22914
22148
|
* Generate unique names for dependency components.
|
|
22915
22149
|
*/
|
|
22916
|
-
const versioning = new AuroDependencyVersioning
|
|
22150
|
+
const versioning = new AuroDependencyVersioning();
|
|
22917
22151
|
|
|
22918
22152
|
/**
|
|
22919
22153
|
* @private
|
|
@@ -22940,7 +22174,7 @@ class AuroInput extends BaseInput {
|
|
|
22940
22174
|
*
|
|
22941
22175
|
*/
|
|
22942
22176
|
static register(name = "auro-input") {
|
|
22943
|
-
AuroLibraryRuntimeUtils$
|
|
22177
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
|
|
22944
22178
|
}
|
|
22945
22179
|
|
|
22946
22180
|
/**
|
|
@@ -22980,7 +22214,8 @@ class AuroInput extends BaseInput {
|
|
|
22980
22214
|
category="payment"
|
|
22981
22215
|
name="${name}"
|
|
22982
22216
|
part="accentIcon"
|
|
22983
|
-
?
|
|
22217
|
+
?onDark="${this.onDark}"
|
|
22218
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
22984
22219
|
</${this.iconTag}>
|
|
22985
22220
|
`) : undefined
|
|
22986
22221
|
}
|
|
@@ -22992,7 +22227,8 @@ class AuroInput extends BaseInput {
|
|
|
22992
22227
|
category="interface"
|
|
22993
22228
|
name="calendar"
|
|
22994
22229
|
part="accentIcon"
|
|
22995
|
-
?
|
|
22230
|
+
?onDark="${this.onDark}"
|
|
22231
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
22996
22232
|
</${this.iconTag}>`
|
|
22997
22233
|
: undefined
|
|
22998
22234
|
}
|
|
@@ -23037,7 +22273,7 @@ class AuroInput extends BaseInput {
|
|
|
23037
22273
|
<${this.iconTag}
|
|
23038
22274
|
category="alert"
|
|
23039
22275
|
name="error-stroke"
|
|
23040
|
-
|
|
22276
|
+
customColor
|
|
23041
22277
|
</${this.iconTag}>
|
|
23042
22278
|
</div>
|
|
23043
22279
|
` : undefined}
|
|
@@ -23046,6 +22282,7 @@ class AuroInput extends BaseInput {
|
|
|
23046
22282
|
<div class="notification">
|
|
23047
22283
|
<${this.buttonTag}
|
|
23048
22284
|
variant="flat"
|
|
22285
|
+
?onDark="${this.onDark}"
|
|
23049
22286
|
aria-hidden="true"
|
|
23050
22287
|
tabindex="-1"
|
|
23051
22288
|
@click="${this.handleClickShowPassword}"
|
|
@@ -23069,6 +22306,7 @@ class AuroInput extends BaseInput {
|
|
|
23069
22306
|
<div class="notification">
|
|
23070
22307
|
<${this.buttonTag}
|
|
23071
22308
|
variant="flat"
|
|
22309
|
+
?onDark="${this.onDark}"
|
|
23072
22310
|
class="notificationBtn clearBtn"
|
|
23073
22311
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
23074
22312
|
@click="${this.handleClickClear}">
|
|
@@ -23087,14 +22325,14 @@ class AuroInput extends BaseInput {
|
|
|
23087
22325
|
<!-- Help text and error message template -->
|
|
23088
22326
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
23089
22327
|
? u$2`
|
|
23090
|
-
<${this.helpTextTag}>
|
|
22328
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23091
22329
|
<p id="${this.uniqueId}" part="helpText">
|
|
23092
22330
|
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23093
22331
|
</p>
|
|
23094
22332
|
</${this.helpTextTag}>
|
|
23095
22333
|
`
|
|
23096
22334
|
: u$2`
|
|
23097
|
-
<${this.helpTextTag} error>
|
|
22335
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
23098
22336
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
23099
22337
|
${this.errorMessage}
|
|
23100
22338
|
</p>
|
|
@@ -23159,6 +22397,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23159
22397
|
|
|
23160
22398
|
this.disabled = false;
|
|
23161
22399
|
this.required = false;
|
|
22400
|
+
this.onDark = false;
|
|
23162
22401
|
this.range = false;
|
|
23163
22402
|
this.noValidate = false;
|
|
23164
22403
|
this.validity = undefined;
|
|
@@ -23204,7 +22443,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23204
22443
|
/**
|
|
23205
22444
|
* @private
|
|
23206
22445
|
*/
|
|
23207
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
22446
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
23208
22447
|
|
|
23209
22448
|
/**
|
|
23210
22449
|
* @private
|
|
@@ -23214,7 +22453,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23214
22453
|
/**
|
|
23215
22454
|
* Generate unique names for dependency components.
|
|
23216
22455
|
*/
|
|
23217
|
-
const versioning = new AuroDependencyVersioning$
|
|
22456
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
23218
22457
|
|
|
23219
22458
|
/**
|
|
23220
22459
|
* @private
|
|
@@ -23368,6 +22607,14 @@ class AuroDatePicker extends r$2 {
|
|
|
23368
22607
|
reflect: true
|
|
23369
22608
|
},
|
|
23370
22609
|
|
|
22610
|
+
/**
|
|
22611
|
+
* If declared, onDark styles will be applied to the trigger.
|
|
22612
|
+
*/
|
|
22613
|
+
onDark: {
|
|
22614
|
+
type: Boolean,
|
|
22615
|
+
reflect: true
|
|
22616
|
+
},
|
|
22617
|
+
|
|
23371
22618
|
/**
|
|
23372
22619
|
* Position where the bib should appear relative to the trigger.
|
|
23373
22620
|
* Accepted values:
|
|
@@ -23482,7 +22729,7 @@ class AuroDatePicker extends r$2 {
|
|
|
23482
22729
|
*
|
|
23483
22730
|
*/
|
|
23484
22731
|
static register(name = "auro-datepicker") {
|
|
23485
|
-
AuroLibraryRuntimeUtils$
|
|
22732
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroDatePicker);
|
|
23486
22733
|
}
|
|
23487
22734
|
|
|
23488
22735
|
/**
|
|
@@ -24116,6 +23363,7 @@ class AuroDatePicker extends r$2 {
|
|
|
24116
23363
|
fluid
|
|
24117
23364
|
bordered
|
|
24118
23365
|
rounded
|
|
23366
|
+
?onDark="${this.onDark}"
|
|
24119
23367
|
?disabled="${this.disabled}"
|
|
24120
23368
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24121
23369
|
disableEventShow
|
|
@@ -24130,6 +23378,7 @@ class AuroDatePicker extends r$2 {
|
|
|
24130
23378
|
id="${this.generateRandomString(12)}"
|
|
24131
23379
|
bordered
|
|
24132
23380
|
class="dateFrom"
|
|
23381
|
+
?onDark="${this.onDark}"
|
|
24133
23382
|
?required="${this.required}"
|
|
24134
23383
|
noValidate
|
|
24135
23384
|
type="date"
|
|
@@ -24150,6 +23399,7 @@ class AuroDatePicker extends r$2 {
|
|
|
24150
23399
|
id="${this.generateRandomString(12)}"
|
|
24151
23400
|
bordered
|
|
24152
23401
|
class="dateTo"
|
|
23402
|
+
?onDark="${this.onDark}"
|
|
24153
23403
|
?required="${this.required}"
|
|
24154
23404
|
noValidate
|
|
24155
23405
|
type="date"
|