@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +14 -3
- package/components/checkbox/demo/index.min.js +14 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
- package/components/checkbox/dist/index.js +14 -3
- package/components/checkbox/dist/registered.js +14 -3
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +3 -0
- package/components/combobox/demo/api.min.js +1479 -395
- package/components/combobox/demo/index.html +2 -0
- package/components/combobox/demo/index.md +75 -0
- package/components/combobox/demo/index.min.js +1479 -395
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +19 -9
- package/components/combobox/dist/index.js +1471 -387
- package/components/combobox/dist/registered.js +1471 -387
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +433 -104
- package/components/counter/demo/index.min.js +433 -104
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +433 -104
- package/components/counter/dist/registered.js +433 -104
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +1157 -376
- package/components/datepicker/demo/index.min.js +1157 -376
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +1156 -375
- package/components/datepicker/dist/registered.js +1156 -375
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +59 -35
- package/components/dropdown/demo/api.min.js +361 -88
- package/components/dropdown/demo/index.md +52 -0
- package/components/dropdown/demo/index.min.js +361 -88
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
- package/components/dropdown/dist/index.js +331 -58
- package/components/dropdown/dist/registered.js +331 -58
- package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +2 -2
- package/components/input/demo/api.md +76 -64
- package/components/input/demo/api.min.js +747 -295
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/index.md +49 -4
- package/components/input/demo/index.min.js +747 -295
- package/components/input/demo/readme.md +2 -2
- package/components/input/dist/auro-input.d.ts +97 -3
- package/components/input/dist/base-input.d.ts +36 -18
- package/components/input/dist/index.js +681 -229
- package/components/input/dist/registered.js +681 -229
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/input-css.d.ts +2 -0
- package/components/input/dist/styles/default/label-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +1 -0
- package/components/layoutElement/dist/registered.js +1 -0
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +8 -0
- package/components/radio/demo/api.min.js +13 -5
- package/components/radio/demo/index.min.js +13 -5
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +4 -0
- package/components/radio/dist/index.js +13 -5
- package/components/radio/dist/registered.js +13 -5
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +15 -0
- package/components/select/demo/api.md +178 -0
- package/components/select/demo/api.min.js +403 -62
- package/components/select/demo/index.html +15 -0
- package/components/select/demo/index.md +177 -0
- package/components/select/demo/index.min.js +403 -62
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +27 -0
- package/components/select/dist/index.js +400 -58
- package/components/select/dist/registered.js +400 -58
- package/package.json +2 -2
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -1246,17 +1246,17 @@ class UtilitiesCalendarRender {
|
|
|
1246
1246
|
|
|
1247
1247
|
var styleCss$d = css`.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}}`;
|
|
1248
1248
|
|
|
1249
|
-
var colorCss$
|
|
1249
|
+
var colorCss$c = css`.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)}`;
|
|
1250
1250
|
|
|
1251
1251
|
var tokensCss$a = css`: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)}`;
|
|
1252
1252
|
|
|
1253
1253
|
var styleCss$c = css`: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-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}.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:""}`;
|
|
1254
1254
|
|
|
1255
|
-
var colorCss$
|
|
1255
|
+
var colorCss$b = css`.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)}}`;
|
|
1256
1256
|
|
|
1257
1257
|
var styleCss$b = css`: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-basic-text-heading-xs-breakpoint-md-font-size, 20px);font-weight:var(--ds-basic-text-heading-xs-breakpoint-md-font-weight, 450);letter-spacing:var(--ds-basic-text-heading-xs-breakpoint-md-letter-spacing, 0);line-height:var(--ds-basic-text-heading-xs-breakpoint-md-line-height, 130%)}.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%}`;
|
|
1258
1258
|
|
|
1259
|
-
var colorCss$
|
|
1259
|
+
var colorCss$a = css`: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)}`;
|
|
1260
1260
|
|
|
1261
1261
|
/******************************************************************************
|
|
1262
1262
|
Copyright (c) Microsoft Corporation.
|
|
@@ -7764,11 +7764,11 @@ AuroLibraryRuntimeUtils$4.prototype.registerComponent('wc-range-datepicker-calen
|
|
|
7764
7764
|
|
|
7765
7765
|
var styleCss$a = css`@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-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);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-basic-text-body-xxs-font-size, 10px);font-weight:var(--ds-basic-text-body-xxs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xxs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xxs-line-height, 14px)}::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-family:var(--ds-basic-text-body-lg-font-family, "AS Circular");font-size:var(--ds-basic-text-body-lg-font-size, 18px);font-weight:var(--ds-basic-text-body-lg-font-weight, 450);letter-spacing:var(--ds-basic-text-body-lg-letter-spacing, 0);line-height:var(--ds-basic-text-body-lg-line-height, 26px)}.day:hover{cursor:pointer}.dateSlot{font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}}`;
|
|
7766
7766
|
|
|
7767
|
-
var colorCss$
|
|
7767
|
+
var colorCss$9 = css`: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}`;
|
|
7768
7768
|
|
|
7769
7769
|
var styleCss$9 = css`: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:""}`;
|
|
7770
7770
|
|
|
7771
|
-
var colorCss$
|
|
7771
|
+
var colorCss$8 = css`::slotted(*){color:var(--ds-auro-popover-text-color)}.popover{background-color:var(--ds-auro-popover-container-color);box-shadow:var(--ds-auro-popover-boxshadow-color)}.arrow:before{background-color:var(--ds-auro-popover-container-color);box-shadow:2px 2px 1px 0 var(--ds-auro-popover-boxshadow-color)}`;
|
|
7772
7772
|
|
|
7773
7773
|
var tokensCss$9 = css`:host{--ds-auro-popover-boxshadow-color:var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-popover-container-color:var(--ds-basic-color-surface-default, #ffffff);--ds-auro-popover-text-color:var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
7774
7774
|
|
|
@@ -9677,7 +9677,7 @@ class AuroPopover extends LitElement {
|
|
|
9677
9677
|
static get styles() {
|
|
9678
9678
|
return [
|
|
9679
9679
|
css`${styleCss$9}`,
|
|
9680
|
-
css`${colorCss$
|
|
9680
|
+
css`${colorCss$8}`,
|
|
9681
9681
|
css`${tokensCss$9}`
|
|
9682
9682
|
];
|
|
9683
9683
|
}
|
|
@@ -9909,7 +9909,7 @@ class AuroCalendarCell extends LitElement {
|
|
|
9909
9909
|
return [
|
|
9910
9910
|
// ...super.styles,
|
|
9911
9911
|
styleCss$a,
|
|
9912
|
-
colorCss$
|
|
9912
|
+
colorCss$9,
|
|
9913
9913
|
tokensCss$a
|
|
9914
9914
|
];
|
|
9915
9915
|
}
|
|
@@ -10214,7 +10214,7 @@ class AuroCalendarMonth extends RangeDatepickerCalendar {
|
|
|
10214
10214
|
return [
|
|
10215
10215
|
// ...super.styles,
|
|
10216
10216
|
styleCss$b,
|
|
10217
|
-
colorCss$
|
|
10217
|
+
colorCss$a,
|
|
10218
10218
|
tokensCss$a
|
|
10219
10219
|
];
|
|
10220
10220
|
}
|
|
@@ -10883,7 +10883,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10883
10883
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10884
10884
|
*/
|
|
10885
10885
|
|
|
10886
|
-
let AuroElement$
|
|
10886
|
+
let AuroElement$3 = class AuroElement extends LitElement {
|
|
10887
10887
|
|
|
10888
10888
|
// function to define props used within the scope of this component
|
|
10889
10889
|
static get properties() {
|
|
@@ -10951,7 +10951,7 @@ var styleCss$1$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
10951
10951
|
*/
|
|
10952
10952
|
|
|
10953
10953
|
// build the component class
|
|
10954
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
10954
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
10955
10955
|
constructor() {
|
|
10956
10956
|
super();
|
|
10957
10957
|
this.onDark = false;
|
|
@@ -11025,7 +11025,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
11025
11025
|
|
|
11026
11026
|
var tokensCss$8 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
11027
11027
|
|
|
11028
|
-
var colorCss$
|
|
11028
|
+
var colorCss$7 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-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)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
11029
11029
|
|
|
11030
11030
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11031
11031
|
// See LICENSE in the project root for license information.
|
|
@@ -11115,7 +11115,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11115
11115
|
super.styles,
|
|
11116
11116
|
css`${tokensCss$8}`,
|
|
11117
11117
|
css`${styleCss$1$2}`,
|
|
11118
|
-
css`${colorCss$
|
|
11118
|
+
css`${colorCss$7}`
|
|
11119
11119
|
];
|
|
11120
11120
|
}
|
|
11121
11121
|
|
|
@@ -11194,7 +11194,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11194
11194
|
}
|
|
11195
11195
|
};
|
|
11196
11196
|
|
|
11197
|
-
var iconVersion$2 = '8.0.
|
|
11197
|
+
var iconVersion$2 = '8.0.3';
|
|
11198
11198
|
|
|
11199
11199
|
var styleCss$8 = css`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
11200
11200
|
|
|
@@ -11462,15 +11462,15 @@ class AuroBibtemplate extends LitElement {
|
|
|
11462
11462
|
|
|
11463
11463
|
var bibTemplateVersion = '1.0.0';
|
|
11464
11464
|
|
|
11465
|
-
var styleCss$7 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight,
|
|
11465
|
+
var styleCss$7 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);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-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);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, 1.5rem)}.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, 1rem) + var(--ds-size-50, 0.25rem))}.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, 1.5rem)}.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}`;
|
|
11466
11466
|
|
|
11467
|
-
var colorCss$
|
|
11467
|
+
var colorCss$6 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11468
11468
|
|
|
11469
11469
|
var tokensCss$7 = css`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11470
11470
|
|
|
11471
11471
|
var styleCss$6 = css`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11472
11472
|
|
|
11473
|
-
var colorCss$
|
|
11473
|
+
var colorCss$5 = css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
11474
11474
|
|
|
11475
11475
|
var tokensCss$6 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11476
11476
|
|
|
@@ -11549,7 +11549,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
11549
11549
|
static get styles() {
|
|
11550
11550
|
return [
|
|
11551
11551
|
css`${styleCss$6}`,
|
|
11552
|
-
css`${colorCss$
|
|
11552
|
+
css`${colorCss$5}`,
|
|
11553
11553
|
css`${tokensCss$6}`
|
|
11554
11554
|
];
|
|
11555
11555
|
}
|
|
@@ -11621,27 +11621,6 @@ var loaderVersion$1 = '5.0.0';
|
|
|
11621
11621
|
|
|
11622
11622
|
|
|
11623
11623
|
/**
|
|
11624
|
-
* @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
|
|
11625
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
11626
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11627
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11628
|
-
* @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.
|
|
11629
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11630
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11631
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11632
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11633
|
-
* @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.
|
|
11634
|
-
* @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.
|
|
11635
|
-
* @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.
|
|
11636
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
11637
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11638
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
11639
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
11640
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
11641
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
11642
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
11643
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
11644
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
11645
11624
|
* @slot - Default slot for the text of the button.
|
|
11646
11625
|
* @slot icon - Slot to provide auro-icon for the button.
|
|
11647
11626
|
* @csspart button - Apply CSS to HTML5 button.
|
|
@@ -11665,13 +11644,11 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11665
11644
|
|
|
11666
11645
|
constructor() {
|
|
11667
11646
|
super();
|
|
11668
|
-
|
|
11669
11647
|
this.autofocus = false;
|
|
11670
11648
|
this.disabled = false;
|
|
11671
11649
|
this.iconOnly = false;
|
|
11672
11650
|
this.loading = false;
|
|
11673
11651
|
this.onDark = false;
|
|
11674
|
-
this.ready = false;
|
|
11675
11652
|
this.secondary = false;
|
|
11676
11653
|
this.tertiary = false;
|
|
11677
11654
|
this.rounded = false;
|
|
@@ -11704,79 +11681,175 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11704
11681
|
return [
|
|
11705
11682
|
tokensCss$7,
|
|
11706
11683
|
styleCss$7,
|
|
11707
|
-
colorCss$
|
|
11684
|
+
colorCss$6
|
|
11708
11685
|
];
|
|
11709
11686
|
}
|
|
11710
11687
|
|
|
11711
11688
|
static get properties() {
|
|
11712
11689
|
return {
|
|
11690
|
+
|
|
11691
|
+
/**
|
|
11692
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
11693
|
+
*/
|
|
11713
11694
|
autofocus: {
|
|
11714
11695
|
type: Boolean,
|
|
11715
11696
|
reflect: true
|
|
11716
11697
|
},
|
|
11698
|
+
|
|
11699
|
+
/**
|
|
11700
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
11701
|
+
*/
|
|
11717
11702
|
disabled: {
|
|
11718
11703
|
type: Boolean,
|
|
11719
11704
|
reflect: true
|
|
11720
11705
|
},
|
|
11706
|
+
|
|
11707
|
+
/**
|
|
11708
|
+
* DEPRECATED.
|
|
11709
|
+
* @deprecated
|
|
11710
|
+
*/
|
|
11721
11711
|
secondary: {
|
|
11722
11712
|
type: Boolean,
|
|
11723
11713
|
reflect: true
|
|
11724
11714
|
},
|
|
11715
|
+
|
|
11716
|
+
/**
|
|
11717
|
+
* DEPRECATED.
|
|
11718
|
+
* @deprecated
|
|
11719
|
+
*/
|
|
11725
11720
|
tertiary: {
|
|
11726
11721
|
type: Boolean,
|
|
11727
11722
|
reflect: true
|
|
11728
11723
|
},
|
|
11724
|
+
|
|
11725
|
+
/**
|
|
11726
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
11727
|
+
*/
|
|
11729
11728
|
fluid: {
|
|
11730
11729
|
type: Boolean,
|
|
11731
11730
|
reflect: true
|
|
11732
11731
|
},
|
|
11732
|
+
|
|
11733
|
+
/**
|
|
11734
|
+
* If set to true, the button will contain an icon with no additional content.
|
|
11735
|
+
*/
|
|
11733
11736
|
iconOnly: {
|
|
11734
11737
|
type: Boolean,
|
|
11735
11738
|
reflect: true
|
|
11736
11739
|
},
|
|
11740
|
+
|
|
11741
|
+
/**
|
|
11742
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
11743
|
+
*/
|
|
11737
11744
|
loading: {
|
|
11738
11745
|
type: Boolean,
|
|
11739
11746
|
reflect: true
|
|
11740
11747
|
},
|
|
11748
|
+
|
|
11749
|
+
/**
|
|
11750
|
+
* 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.
|
|
11751
|
+
*/
|
|
11741
11752
|
loadingText: {
|
|
11742
11753
|
type: String
|
|
11743
11754
|
},
|
|
11755
|
+
|
|
11756
|
+
/**
|
|
11757
|
+
* Set value for on-dark version of auro-button.
|
|
11758
|
+
*/
|
|
11744
11759
|
onDark: {
|
|
11745
11760
|
type: Boolean,
|
|
11746
11761
|
reflect: true
|
|
11747
11762
|
},
|
|
11763
|
+
|
|
11764
|
+
/**
|
|
11765
|
+
* If set to true, the button will have a rounded shape.
|
|
11766
|
+
*/
|
|
11748
11767
|
rounded: {
|
|
11749
11768
|
type: Boolean,
|
|
11750
11769
|
reflect: true
|
|
11751
11770
|
},
|
|
11771
|
+
|
|
11772
|
+
/**
|
|
11773
|
+
* Set value for slim version of auro-button.
|
|
11774
|
+
*/
|
|
11752
11775
|
slim: {
|
|
11753
11776
|
type: Boolean,
|
|
11754
11777
|
reflect: true
|
|
11755
11778
|
},
|
|
11779
|
+
|
|
11780
|
+
/**
|
|
11781
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
11782
|
+
*/
|
|
11783
|
+
tIndex: {
|
|
11784
|
+
type: String,
|
|
11785
|
+
reflect: true
|
|
11786
|
+
},
|
|
11787
|
+
|
|
11788
|
+
/**
|
|
11789
|
+
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
11790
|
+
*/
|
|
11791
|
+
ariahidden: {
|
|
11792
|
+
type: String,
|
|
11793
|
+
reflect: true,
|
|
11794
|
+
},
|
|
11795
|
+
|
|
11796
|
+
/**
|
|
11797
|
+
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
11798
|
+
* Use it in cases where a text label is not visible on the screen.
|
|
11799
|
+
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
11800
|
+
*/
|
|
11756
11801
|
arialabel: {
|
|
11757
11802
|
type: String,
|
|
11758
11803
|
reflect: true
|
|
11759
11804
|
},
|
|
11805
|
+
|
|
11806
|
+
/**
|
|
11807
|
+
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
11808
|
+
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
11809
|
+
* List multiple element IDs in a space delimited fashion.
|
|
11810
|
+
*/
|
|
11760
11811
|
arialabelledby: {
|
|
11761
11812
|
type: String,
|
|
11762
11813
|
reflect: true
|
|
11763
11814
|
},
|
|
11815
|
+
|
|
11816
|
+
/**
|
|
11817
|
+
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
11818
|
+
* or another grouping element it controls, is currently expanded or collapsed.
|
|
11819
|
+
* This is an optional attribute for buttons.
|
|
11820
|
+
*/
|
|
11764
11821
|
ariaexpanded: {
|
|
11765
11822
|
type: Boolean,
|
|
11766
11823
|
reflect: true
|
|
11767
11824
|
},
|
|
11825
|
+
|
|
11826
|
+
/**
|
|
11827
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11828
|
+
*/
|
|
11768
11829
|
title: {
|
|
11769
11830
|
type: String,
|
|
11770
11831
|
reflect: true
|
|
11771
11832
|
},
|
|
11833
|
+
|
|
11834
|
+
/**
|
|
11835
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
11836
|
+
*/
|
|
11772
11837
|
type: {
|
|
11773
11838
|
type: String,
|
|
11774
11839
|
reflect: true
|
|
11775
11840
|
},
|
|
11841
|
+
|
|
11842
|
+
/**
|
|
11843
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
11844
|
+
*/
|
|
11776
11845
|
value: {
|
|
11777
11846
|
type: String,
|
|
11778
11847
|
reflect: true
|
|
11779
11848
|
},
|
|
11849
|
+
|
|
11850
|
+
/**
|
|
11851
|
+
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
11852
|
+
*/
|
|
11780
11853
|
variant: {
|
|
11781
11854
|
type: String,
|
|
11782
11855
|
reflect: true
|
|
@@ -11806,21 +11879,6 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11806
11879
|
this.renderRoot.querySelector('button').focus();
|
|
11807
11880
|
}
|
|
11808
11881
|
|
|
11809
|
-
/**
|
|
11810
|
-
* Marks the component as ready and sends event.
|
|
11811
|
-
* @private
|
|
11812
|
-
* @returns {void}
|
|
11813
|
-
*/
|
|
11814
|
-
notifyReady() {
|
|
11815
|
-
this.ready = true;
|
|
11816
|
-
|
|
11817
|
-
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
11818
|
-
bubbles: true,
|
|
11819
|
-
cancelable: false,
|
|
11820
|
-
composed: true,
|
|
11821
|
-
}));
|
|
11822
|
-
}
|
|
11823
|
-
|
|
11824
11882
|
updated() {
|
|
11825
11883
|
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
11826
11884
|
if (this.secondary) {
|
|
@@ -11832,10 +11890,6 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11832
11890
|
}
|
|
11833
11891
|
}
|
|
11834
11892
|
|
|
11835
|
-
firstUpdated() {
|
|
11836
|
-
this.notifyReady();
|
|
11837
|
-
}
|
|
11838
|
-
|
|
11839
11893
|
/**
|
|
11840
11894
|
* Submits the form that this button is associated with.
|
|
11841
11895
|
* @private
|
|
@@ -11850,7 +11904,7 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11850
11904
|
/**
|
|
11851
11905
|
* Returns the form element that this button is associated with.
|
|
11852
11906
|
* @private
|
|
11853
|
-
* @returns {HTMLFormElement|null}
|
|
11907
|
+
* @returns {HTMLFormElement | null}
|
|
11854
11908
|
*/
|
|
11855
11909
|
get form() {
|
|
11856
11910
|
return this.internals ? this.internals.form : null;
|
|
@@ -11871,9 +11925,11 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11871
11925
|
return html$1`
|
|
11872
11926
|
<button
|
|
11873
11927
|
part="button"
|
|
11928
|
+
aria-hidden="${ifDefined(this.ariahidden || undefined)}"
|
|
11874
11929
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
11875
11930
|
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11876
11931
|
aria-expanded="${ifDefined(this.ariaexpanded)}"
|
|
11932
|
+
tabIndex="${ifDefined(this.tIndex)}"
|
|
11877
11933
|
?autofocus="${this.autofocus}"
|
|
11878
11934
|
class="${classMap(classes)}"
|
|
11879
11935
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -11992,7 +12048,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
11992
12048
|
static get styles() {
|
|
11993
12049
|
return [
|
|
11994
12050
|
styleCss$c,
|
|
11995
|
-
colorCss$
|
|
12051
|
+
colorCss$b,
|
|
11996
12052
|
tokensCss$a
|
|
11997
12053
|
];
|
|
11998
12054
|
}
|
|
@@ -12849,16 +12905,21 @@ const flip$1 = function (options) {
|
|
|
12849
12905
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
12850
12906
|
const nextPlacement = placements[nextIndex];
|
|
12851
12907
|
if (nextPlacement) {
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12908
|
+
var _overflowsData$;
|
|
12909
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
12910
|
+
const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
12911
|
+
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
|
|
12912
|
+
// Try next placement and re-run the lifecycle.
|
|
12913
|
+
return {
|
|
12914
|
+
data: {
|
|
12915
|
+
index: nextIndex,
|
|
12916
|
+
overflows: overflowsData
|
|
12917
|
+
},
|
|
12918
|
+
reset: {
|
|
12919
|
+
placement: nextPlacement
|
|
12920
|
+
}
|
|
12921
|
+
};
|
|
12922
|
+
}
|
|
12862
12923
|
}
|
|
12863
12924
|
|
|
12864
12925
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -13510,6 +13571,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
13510
13571
|
scrollTop: 0
|
|
13511
13572
|
};
|
|
13512
13573
|
const offsets = createCoords(0);
|
|
13574
|
+
|
|
13575
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
13576
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
13577
|
+
function setLeftRTLScrollbarOffset() {
|
|
13578
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
13579
|
+
}
|
|
13513
13580
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
13514
13581
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
13515
13582
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -13519,11 +13586,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
13519
13586
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
13520
13587
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
13521
13588
|
} else if (documentElement) {
|
|
13522
|
-
|
|
13523
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
13524
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
13589
|
+
setLeftRTLScrollbarOffset();
|
|
13525
13590
|
}
|
|
13526
13591
|
}
|
|
13592
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
13593
|
+
setLeftRTLScrollbarOffset();
|
|
13594
|
+
}
|
|
13527
13595
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
13528
13596
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
13529
13597
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -13700,7 +13768,7 @@ function observeMove(element, onMove) {
|
|
|
13700
13768
|
// Handle <iframe>s
|
|
13701
13769
|
root: root.ownerDocument
|
|
13702
13770
|
});
|
|
13703
|
-
} catch (
|
|
13771
|
+
} catch (_e) {
|
|
13704
13772
|
io = new IntersectionObserver(handleObserve, options);
|
|
13705
13773
|
}
|
|
13706
13774
|
io.observe(element);
|
|
@@ -14513,7 +14581,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
14513
14581
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
14514
14582
|
*/
|
|
14515
14583
|
|
|
14516
|
-
let AuroElement$1 = class AuroElement extends LitElement {
|
|
14584
|
+
let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
14517
14585
|
|
|
14518
14586
|
// function to define props used within the scope of this component
|
|
14519
14587
|
static get properties() {
|
|
@@ -14581,7 +14649,7 @@ var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
14581
14649
|
*/
|
|
14582
14650
|
|
|
14583
14651
|
// build the component class
|
|
14584
|
-
let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
14652
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
14585
14653
|
constructor() {
|
|
14586
14654
|
super();
|
|
14587
14655
|
this.onDark = false;
|
|
@@ -14655,7 +14723,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
14655
14723
|
|
|
14656
14724
|
var tokensCss$2$1 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
14657
14725
|
|
|
14658
|
-
var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-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)}`;
|
|
14726
|
+
var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-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)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
14659
14727
|
|
|
14660
14728
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14661
14729
|
// See LICENSE in the project root for license information.
|
|
@@ -14830,7 +14898,7 @@ var styleCss$2$1 = css`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
14830
14898
|
|
|
14831
14899
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
14832
14900
|
|
|
14833
|
-
var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
14901
|
+
var tokensCss$1$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--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-dropdown-helptext-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-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--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-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
14834
14902
|
|
|
14835
14903
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14836
14904
|
// See LICENSE in the project root for license information.
|
|
@@ -14953,11 +15021,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
14953
15021
|
|
|
14954
15022
|
var dropdownVersion$1 = '3.0.0';
|
|
14955
15023
|
|
|
14956
|
-
var
|
|
15024
|
+
var shapeSizeCss$1 = css`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
|
|
15025
|
+
|
|
15026
|
+
var styleCss$1$1 = css`:host([layout*=classic]){position:relative;display:inline-block;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .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}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
14957
15027
|
|
|
14958
|
-
var colorCss$1$1 = css
|
|
15028
|
+
var colorCss$1$1 = css`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
14959
15029
|
|
|
14960
|
-
var
|
|
15030
|
+
var styleEmphasizedCss = css`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
15031
|
+
|
|
15032
|
+
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
15033
|
+
|
|
15034
|
+
var colorCss$4 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
14961
15035
|
|
|
14962
15036
|
var styleCss$5 = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
14963
15037
|
|
|
@@ -15056,7 +15130,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
15056
15130
|
|
|
15057
15131
|
static get styles() {
|
|
15058
15132
|
return [
|
|
15059
|
-
colorCss$
|
|
15133
|
+
colorCss$4,
|
|
15060
15134
|
styleCss$5,
|
|
15061
15135
|
tokensCss$5
|
|
15062
15136
|
];
|
|
@@ -15165,6 +15239,98 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
15165
15239
|
|
|
15166
15240
|
var helpTextVersion$1 = '1.0.0';
|
|
15167
15241
|
|
|
15242
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
15243
|
+
static get properties() {
|
|
15244
|
+
return {
|
|
15245
|
+
|
|
15246
|
+
/**
|
|
15247
|
+
* Defines the language of an element.
|
|
15248
|
+
* @default {'default'}
|
|
15249
|
+
*/
|
|
15250
|
+
layout: {
|
|
15251
|
+
type: String,
|
|
15252
|
+
attribute: "layout",
|
|
15253
|
+
reflect: true
|
|
15254
|
+
},
|
|
15255
|
+
|
|
15256
|
+
shape: {
|
|
15257
|
+
type: String,
|
|
15258
|
+
attribute: "shape",
|
|
15259
|
+
reflect: true
|
|
15260
|
+
},
|
|
15261
|
+
|
|
15262
|
+
size: {
|
|
15263
|
+
type: String,
|
|
15264
|
+
attribute: "size",
|
|
15265
|
+
reflect: true
|
|
15266
|
+
},
|
|
15267
|
+
|
|
15268
|
+
onDark: {
|
|
15269
|
+
type: Boolean,
|
|
15270
|
+
attribute: "ondark",
|
|
15271
|
+
reflect: true
|
|
15272
|
+
}
|
|
15273
|
+
};
|
|
15274
|
+
}
|
|
15275
|
+
|
|
15276
|
+
resetShapeClasses() {
|
|
15277
|
+
if (this.shape && this.size) {
|
|
15278
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15279
|
+
|
|
15280
|
+
if (wrapper) {
|
|
15281
|
+
wrapper.classList.forEach((className) => {
|
|
15282
|
+
if (className.startsWith('shape-')) {
|
|
15283
|
+
wrapper.classList.remove(className);
|
|
15284
|
+
}
|
|
15285
|
+
});
|
|
15286
|
+
|
|
15287
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
15288
|
+
}
|
|
15289
|
+
}
|
|
15290
|
+
}
|
|
15291
|
+
|
|
15292
|
+
resetLayoutClasses() {
|
|
15293
|
+
if (this.layout) {
|
|
15294
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15295
|
+
|
|
15296
|
+
if (wrapper) {
|
|
15297
|
+
wrapper.classList.forEach((className) => {
|
|
15298
|
+
if (className.startsWith('layout-')) {
|
|
15299
|
+
wrapper.classList.remove(className);
|
|
15300
|
+
}
|
|
15301
|
+
});
|
|
15302
|
+
|
|
15303
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
15304
|
+
}
|
|
15305
|
+
}
|
|
15306
|
+
}
|
|
15307
|
+
|
|
15308
|
+
updateComponentArchitecture() {
|
|
15309
|
+
this.resetLayoutClasses();
|
|
15310
|
+
this.resetShapeClasses();
|
|
15311
|
+
}
|
|
15312
|
+
|
|
15313
|
+
updated(changedProperties) {
|
|
15314
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
15315
|
+
this.updateComponentArchitecture();
|
|
15316
|
+
}
|
|
15317
|
+
}
|
|
15318
|
+
|
|
15319
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
15320
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
15321
|
+
render() {
|
|
15322
|
+
try {
|
|
15323
|
+
return this.renderLayout();
|
|
15324
|
+
} catch (error) {
|
|
15325
|
+
// failed to get the defined layout
|
|
15326
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
15327
|
+
|
|
15328
|
+
// fallback to the default layout
|
|
15329
|
+
return this.getLayout('default');
|
|
15330
|
+
}
|
|
15331
|
+
}
|
|
15332
|
+
};
|
|
15333
|
+
|
|
15168
15334
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
15169
15335
|
// See LICENSE in the project root for license information.
|
|
15170
15336
|
|
|
@@ -15182,7 +15348,7 @@ var helpTextVersion$1 = '1.0.0';
|
|
|
15182
15348
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15183
15349
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15184
15350
|
*/
|
|
15185
|
-
class AuroDropdown extends
|
|
15351
|
+
class AuroDropdown extends AuroElement$2 {
|
|
15186
15352
|
constructor() {
|
|
15187
15353
|
super();
|
|
15188
15354
|
|
|
@@ -15191,26 +15357,29 @@ class AuroDropdown extends LitElement {
|
|
|
15191
15357
|
this.matchWidth = false;
|
|
15192
15358
|
this.noHideOnThisFocusLoss = false;
|
|
15193
15359
|
|
|
15360
|
+
this.errorMessage = ''; // TODO!
|
|
15361
|
+
|
|
15362
|
+
// Layout Config
|
|
15363
|
+
this.layout = 'default';
|
|
15364
|
+
this.shape = 'rounded';
|
|
15365
|
+
this.size = 'xl';
|
|
15366
|
+
|
|
15194
15367
|
this.privateDefaults();
|
|
15368
|
+
}
|
|
15195
15369
|
|
|
15196
|
-
|
|
15197
|
-
|
|
15198
|
-
|
|
15199
|
-
*/
|
|
15200
|
-
this.constructor.shadowRootOptions = {
|
|
15201
|
-
...LitElement.shadowRootOptions,
|
|
15202
|
-
delegatesFocus: true,
|
|
15370
|
+
get commonLabelClasses() {
|
|
15371
|
+
return {
|
|
15372
|
+
// 'withValue': this.value && this.value.length > 0
|
|
15203
15373
|
};
|
|
15374
|
+
}
|
|
15204
15375
|
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
*/
|
|
15213
|
-
this.showTriggerBorders = true;
|
|
15376
|
+
get commonWrapperClasses() {
|
|
15377
|
+
return {
|
|
15378
|
+
'trigger': true,
|
|
15379
|
+
'wrapper': true,
|
|
15380
|
+
'hasFocus': this.hasFocus,
|
|
15381
|
+
'simple': this.simple
|
|
15382
|
+
};
|
|
15214
15383
|
}
|
|
15215
15384
|
|
|
15216
15385
|
/**
|
|
@@ -15218,7 +15387,6 @@ class AuroDropdown extends LitElement {
|
|
|
15218
15387
|
* @returns {void} Internal defaults.
|
|
15219
15388
|
*/
|
|
15220
15389
|
privateDefaults() {
|
|
15221
|
-
this.bordered = false;
|
|
15222
15390
|
this.chevron = false;
|
|
15223
15391
|
this.disabled = false;
|
|
15224
15392
|
this.error = false;
|
|
@@ -15228,8 +15396,11 @@ class AuroDropdown extends LitElement {
|
|
|
15228
15396
|
this.noToggle = false;
|
|
15229
15397
|
this.a11yAutocomplete = 'none';
|
|
15230
15398
|
this.labeled = true;
|
|
15231
|
-
this.a11yRole = '
|
|
15399
|
+
this.a11yRole = 'button';
|
|
15232
15400
|
this.onDark = false;
|
|
15401
|
+
this.showTriggerBorders = true;
|
|
15402
|
+
this.triggerContentFocusable = false;
|
|
15403
|
+
this.simple = false;
|
|
15233
15404
|
|
|
15234
15405
|
// floaterConfig
|
|
15235
15406
|
this.placement = 'bottom-start';
|
|
@@ -15237,6 +15408,15 @@ class AuroDropdown extends LitElement {
|
|
|
15237
15408
|
this.noFlip = false;
|
|
15238
15409
|
this.autoPlacement = false;
|
|
15239
15410
|
|
|
15411
|
+
/**
|
|
15412
|
+
* @private
|
|
15413
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
15414
|
+
*/
|
|
15415
|
+
this.constructor.shadowRootOptions = {
|
|
15416
|
+
...LitElement.shadowRootOptions,
|
|
15417
|
+
delegatesFocus: true,
|
|
15418
|
+
};
|
|
15419
|
+
|
|
15240
15420
|
/**
|
|
15241
15421
|
* @private
|
|
15242
15422
|
*/
|
|
@@ -15327,7 +15507,7 @@ class AuroDropdown extends LitElement {
|
|
|
15327
15507
|
/**
|
|
15328
15508
|
* If declared, applies a border around the trigger slot.
|
|
15329
15509
|
*/
|
|
15330
|
-
|
|
15510
|
+
simple: {
|
|
15331
15511
|
type: Boolean,
|
|
15332
15512
|
reflect: true
|
|
15333
15513
|
},
|
|
@@ -15375,13 +15555,20 @@ class AuroDropdown extends LitElement {
|
|
|
15375
15555
|
},
|
|
15376
15556
|
|
|
15377
15557
|
/**
|
|
15378
|
-
* If declared in combination with `
|
|
15558
|
+
* If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both.
|
|
15379
15559
|
*/
|
|
15380
15560
|
error: {
|
|
15381
15561
|
type: Boolean,
|
|
15382
15562
|
reflect: true
|
|
15383
15563
|
},
|
|
15384
15564
|
|
|
15565
|
+
/**
|
|
15566
|
+
* Contains the help text message for the current validity error.
|
|
15567
|
+
*/
|
|
15568
|
+
errorMessage: {
|
|
15569
|
+
type: String
|
|
15570
|
+
},
|
|
15571
|
+
|
|
15385
15572
|
/**
|
|
15386
15573
|
* If declared, the bib will display when focus is applied to the trigger.
|
|
15387
15574
|
*/
|
|
@@ -15516,11 +15703,6 @@ class AuroDropdown extends LitElement {
|
|
|
15516
15703
|
|
|
15517
15704
|
/**
|
|
15518
15705
|
* Position where the bib should appear relative to the trigger.
|
|
15519
|
-
* Accepted values:
|
|
15520
|
-
* "top" | "right" | "bottom" | "left" |
|
|
15521
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
15522
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
15523
|
-
* "left-start" | "left-end"
|
|
15524
15706
|
* @default bottom-start
|
|
15525
15707
|
*/
|
|
15526
15708
|
placement: {
|
|
@@ -15566,7 +15748,10 @@ class AuroDropdown extends LitElement {
|
|
|
15566
15748
|
return [
|
|
15567
15749
|
colorCss$1$1,
|
|
15568
15750
|
styleCss$1$1,
|
|
15569
|
-
tokensCss$1$1
|
|
15751
|
+
tokensCss$1$1,
|
|
15752
|
+
styleEmphasizedCss,
|
|
15753
|
+
styleSnowflakeCss,
|
|
15754
|
+
shapeSizeCss$1
|
|
15570
15755
|
];
|
|
15571
15756
|
}
|
|
15572
15757
|
|
|
@@ -15602,6 +15787,7 @@ class AuroDropdown extends LitElement {
|
|
|
15602
15787
|
}
|
|
15603
15788
|
|
|
15604
15789
|
updated(changedProperties) {
|
|
15790
|
+
super.updated(changedProperties);
|
|
15605
15791
|
this.floater.handleUpdate(changedProperties);
|
|
15606
15792
|
|
|
15607
15793
|
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
@@ -15611,7 +15797,7 @@ class AuroDropdown extends LitElement {
|
|
|
15611
15797
|
}
|
|
15612
15798
|
|
|
15613
15799
|
// when trigger's content is changed without any attribute or node change,
|
|
15614
|
-
// `requestUpdate` needs to be called to update
|
|
15800
|
+
// `requestUpdate` needs to be called to update hasTriggerContent
|
|
15615
15801
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
15616
15802
|
this.handleTriggerContentSlotChange();
|
|
15617
15803
|
}
|
|
@@ -15672,6 +15858,24 @@ class AuroDropdown extends LitElement {
|
|
|
15672
15858
|
return inCustomSlot;
|
|
15673
15859
|
}
|
|
15674
15860
|
|
|
15861
|
+
/**
|
|
15862
|
+
* Function to support @focusin event.
|
|
15863
|
+
* @private
|
|
15864
|
+
* @return {void}
|
|
15865
|
+
*/
|
|
15866
|
+
handleFocusin() {
|
|
15867
|
+
this.hasFocus = true;
|
|
15868
|
+
}
|
|
15869
|
+
|
|
15870
|
+
/**
|
|
15871
|
+
* Function to support @focusout event.
|
|
15872
|
+
* @private
|
|
15873
|
+
* @return {void}
|
|
15874
|
+
*/
|
|
15875
|
+
handleFocusout() {
|
|
15876
|
+
this.hasFocus = false;
|
|
15877
|
+
}
|
|
15878
|
+
|
|
15675
15879
|
/**
|
|
15676
15880
|
* Determines if the element or any children are focusable.
|
|
15677
15881
|
* @private
|
|
@@ -15731,8 +15935,8 @@ class AuroDropdown extends LitElement {
|
|
|
15731
15935
|
}
|
|
15732
15936
|
|
|
15733
15937
|
/**
|
|
15734
|
-
* @private
|
|
15735
15938
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
15939
|
+
* @private
|
|
15736
15940
|
* @param {Event} event - The original focus event.
|
|
15737
15941
|
*/
|
|
15738
15942
|
bindFocusEventToTrigger(event) {
|
|
@@ -15745,9 +15949,9 @@ class AuroDropdown extends LitElement {
|
|
|
15745
15949
|
}
|
|
15746
15950
|
|
|
15747
15951
|
/**
|
|
15748
|
-
* @private
|
|
15749
15952
|
* Sets up event listeners to deliver focus and blur events from nested Auro components within the trigger slot to trigger.
|
|
15750
15953
|
* This ensures that focus/blur events originating from within these components are propagated to the trigger element itself.
|
|
15954
|
+
* @private
|
|
15751
15955
|
*/
|
|
15752
15956
|
setupTriggerFocusEventBinding() {
|
|
15753
15957
|
if (!this.triggerContentSlot || this.triggerContentSlot.length === 0) {
|
|
@@ -15841,7 +16045,7 @@ class AuroDropdown extends LitElement {
|
|
|
15841
16045
|
// If there are children
|
|
15842
16046
|
if (triggerContentNodes) {
|
|
15843
16047
|
|
|
15844
|
-
// See if any of them are focusable
|
|
16048
|
+
// See if any of them are focusable elements
|
|
15845
16049
|
this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
|
|
15846
16050
|
|
|
15847
16051
|
// If any of them are focusable elements
|
|
@@ -15927,21 +16131,26 @@ class AuroDropdown extends LitElement {
|
|
|
15927
16131
|
this.labeled = nodesArr.length > 0;
|
|
15928
16132
|
}
|
|
15929
16133
|
|
|
15930
|
-
|
|
15931
|
-
|
|
16134
|
+
/**
|
|
16135
|
+
* Returns HTML for the common portion of the layouts.
|
|
16136
|
+
* @private
|
|
16137
|
+
* @param {Object} helpTextClasses - Classes to apply to the help text container.
|
|
16138
|
+
* @returns {html} - Returns HTML.
|
|
16139
|
+
*/
|
|
16140
|
+
renderBasicHtml(helpTextClasses) {
|
|
15932
16141
|
return html$1`
|
|
15933
16142
|
<div>
|
|
15934
16143
|
<div
|
|
15935
16144
|
id="trigger"
|
|
15936
|
-
class="
|
|
15937
|
-
part="trigger"
|
|
16145
|
+
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
15938
16146
|
tabindex="${this.tabIndex}"
|
|
15939
16147
|
?showBorder="${this.showTriggerBorders}"
|
|
15940
16148
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
15941
16149
|
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
15942
16150
|
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
15943
16151
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
15944
|
-
|
|
16152
|
+
@focusin="${this.handleFocusin}"
|
|
16153
|
+
@blur="${this.handleFocusOut}">
|
|
15945
16154
|
<div class="triggerContentWrapper">
|
|
15946
16155
|
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
15947
16156
|
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
@@ -15966,9 +16175,9 @@ class AuroDropdown extends LitElement {
|
|
|
15966
16175
|
</div>
|
|
15967
16176
|
` : undefined }
|
|
15968
16177
|
</div>
|
|
15969
|
-
|
|
16178
|
+
<div class="${classMap(helpTextClasses)}">
|
|
15970
16179
|
<slot name="helpText"></slot>
|
|
15971
|
-
|
|
16180
|
+
</div>
|
|
15972
16181
|
<div class="slotContent">
|
|
15973
16182
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
15974
16183
|
</div>
|
|
@@ -15979,37 +16188,177 @@ class AuroDropdown extends LitElement {
|
|
|
15979
16188
|
?isfullscreen="${this.isBibFullscreen}"
|
|
15980
16189
|
?common="${this.common}"
|
|
15981
16190
|
?rounded="${this.common || this.rounded}"
|
|
15982
|
-
?inset="${this.common || this.inset}"
|
|
15983
|
-
>
|
|
16191
|
+
?inset="${this.common || this.inset}">
|
|
15984
16192
|
</${this.dropdownBibTag}>
|
|
15985
16193
|
</div>
|
|
15986
16194
|
`;
|
|
15987
16195
|
}
|
|
15988
|
-
}
|
|
15989
|
-
|
|
15990
|
-
var dropdownVersion = '3.0.0';
|
|
15991
|
-
|
|
15992
|
-
const watchedItems = new Set();
|
|
15993
|
-
|
|
15994
|
-
|
|
15995
|
-
/**
|
|
15996
|
-
* Function for setting the value of the lang attribute.
|
|
15997
|
-
* @private
|
|
15998
|
-
* @param {object} item - Individual DOM node from set of watchedItems.
|
|
15999
|
-
* @param {string} lang - Current language set for the document.
|
|
16000
|
-
*/
|
|
16001
|
-
function setLang(item, lang) {
|
|
16002
16196
|
|
|
16003
16197
|
/**
|
|
16004
|
-
*
|
|
16005
|
-
*
|
|
16198
|
+
* Returns HTML for the classic layout. Does not support type="*".
|
|
16199
|
+
* @private
|
|
16200
|
+
* @returns {html} - Returns HTML for the classic layout.
|
|
16006
16201
|
*/
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16202
|
+
renderLayoutClassic() {
|
|
16203
|
+
return html$1`
|
|
16204
|
+
<div>
|
|
16205
|
+
<div
|
|
16206
|
+
id="trigger"
|
|
16207
|
+
class="trigger"
|
|
16208
|
+
part="trigger"
|
|
16209
|
+
tabindex="${this.tabIndex}"
|
|
16210
|
+
?showBorder="${this.showTriggerBorders}"
|
|
16211
|
+
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16212
|
+
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16213
|
+
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16214
|
+
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16215
|
+
>
|
|
16216
|
+
<div class="triggerContentWrapper">
|
|
16217
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16218
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16219
|
+
</label>
|
|
16220
|
+
<div class="triggerContent">
|
|
16221
|
+
<slot
|
|
16222
|
+
name="trigger"
|
|
16223
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16224
|
+
</div>
|
|
16225
|
+
</div>
|
|
16226
|
+
${this.chevron || this.common ? html$1`
|
|
16227
|
+
<div
|
|
16228
|
+
id="showStateIcon"
|
|
16229
|
+
part="chevron">
|
|
16230
|
+
<${this.iconTag}
|
|
16231
|
+
category="interface"
|
|
16232
|
+
name="chevron-down"
|
|
16233
|
+
?onDark="${this.onDark}"
|
|
16234
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16235
|
+
>
|
|
16236
|
+
</${this.iconTag}>
|
|
16237
|
+
</div>
|
|
16238
|
+
` : undefined }
|
|
16239
|
+
</div>
|
|
16240
|
+
<div class="slotContent">
|
|
16241
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16242
|
+
</div>
|
|
16243
|
+
<div id="bibSizer" part="size"></div>
|
|
16244
|
+
<${this.dropdownBibTag}
|
|
16245
|
+
id="bib"
|
|
16246
|
+
?data-show="${this.isPopoverVisible}"
|
|
16247
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
16248
|
+
?common="${this.common}"
|
|
16249
|
+
?rounded="${this.common || this.rounded}"
|
|
16250
|
+
?inset="${this.common || this.inset}"
|
|
16251
|
+
>
|
|
16252
|
+
</${this.dropdownBibTag}>
|
|
16253
|
+
</div>
|
|
16254
|
+
`;
|
|
16255
|
+
}
|
|
16256
|
+
|
|
16257
|
+
/**
|
|
16258
|
+
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
16259
|
+
* @private
|
|
16260
|
+
* @returns {html} - Returns HTML for the snowflake layout.
|
|
16261
|
+
*/
|
|
16262
|
+
renderLayoutSnowflake() {
|
|
16263
|
+
const helpTextClasses = {
|
|
16264
|
+
'helpText': true,
|
|
16265
|
+
'leftIndent': true,
|
|
16266
|
+
'rightIndent': true
|
|
16267
|
+
};
|
|
16268
|
+
|
|
16269
|
+
return html$1`
|
|
16270
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
16271
|
+
`;
|
|
16272
|
+
}
|
|
16273
|
+
|
|
16274
|
+
/**
|
|
16275
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
16276
|
+
* @private
|
|
16277
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
16278
|
+
*/
|
|
16279
|
+
renderLayoutEmphasized() {
|
|
16280
|
+
const helpTextClasses = {
|
|
16281
|
+
'helpText': true,
|
|
16282
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
16283
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
16284
|
+
};
|
|
16285
|
+
|
|
16286
|
+
return html$1`
|
|
16287
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
16288
|
+
`;
|
|
16289
|
+
}
|
|
16290
|
+
|
|
16291
|
+
/**
|
|
16292
|
+
* Logic to determine the layout of the component.
|
|
16293
|
+
* @private
|
|
16294
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
16295
|
+
* @returns {HTMLCollection} - Returns the HTML for the layout.
|
|
16296
|
+
*/
|
|
16297
|
+
renderLayout(ForcedLayout) {
|
|
16298
|
+
const layout = ForcedLayout || this.layout;
|
|
16299
|
+
|
|
16300
|
+
switch (layout) {
|
|
16301
|
+
case 'emphasized':
|
|
16302
|
+
return this.renderLayoutEmphasized();
|
|
16303
|
+
case 'emphasized-left':
|
|
16304
|
+
return this.renderLayoutEmphasized();
|
|
16305
|
+
case 'emphasized-right':
|
|
16306
|
+
return this.renderLayoutEmphasized();
|
|
16307
|
+
case 'snowflake':
|
|
16308
|
+
return this.renderLayoutSnowflake();
|
|
16309
|
+
case 'snowflake-left':
|
|
16310
|
+
return this.renderLayoutSnowflake();
|
|
16311
|
+
case 'snowflake-right':
|
|
16312
|
+
return this.renderLayoutSnowflake();
|
|
16313
|
+
default:
|
|
16314
|
+
return this.renderLayoutClassic();
|
|
16315
|
+
}
|
|
16316
|
+
}
|
|
16317
|
+
}
|
|
16318
|
+
|
|
16319
|
+
var dropdownVersion = '3.0.0';
|
|
16320
|
+
|
|
16321
|
+
var shapeSizeCss = css`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
|
|
16322
|
+
|
|
16323
|
+
var styleCss$4 = css`.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}`;
|
|
16324
|
+
|
|
16325
|
+
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .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)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .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))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .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}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .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([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):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([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}.layoutDefault label,:host(:not([layout])) 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}.layoutDefault :host(:not([bordered])) label,:host(:not([layout])) :host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}.layoutDefault :host(:not([bordered])) label.withIcon,:host(:not([layout])) :host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([class=layoutDefault][bordered]) label,:host(:not([layout])[bordered]) label{top:50%;transform:translateY(-50%)}:host([class=layoutDefault][bordered]) label.withIcon,:host(:not([layout])[bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([class=layoutDefault][bordered]) label:not(label.withIcon),:host(:not([layout])[bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}.layoutDefault .wrapper:focus-within label,:host(:not([layout])) .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}.layoutDefault label.withValue,:host(:not([layout])) label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([class=layoutDefault][activeLabel]) .wrapper label,:host(:not([layout])[activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}.layoutDefault input,:host(:not([layout])) 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-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, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);outline:none;text-overflow:ellipsis;white-space:nowrap}.layoutDefault input::-ms-reveal,.layoutDefault input::-ms-clear,:host(:not([layout])) input::-ms-reveal,:host(:not([layout])) input::-ms-clear{display:none}.layoutDefault input::-webkit-outer-spin-button,.layoutDefault input::-webkit-inner-spin-button,:host(:not([layout])) input::-webkit-outer-spin-button,:host(:not([layout])) input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.layoutDefault input[type=number],:host(:not([layout])) input[type=number]{-moz-appearance:textfield;appearance:textfield}.layoutDefault input:disabled,:host(:not([layout])) input:disabled{background:none;pointer-events:none}:host([class=layoutDefault][bordered]) input,:host(:not([layout])[bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}: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}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
16326
|
+
|
|
16327
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{color:var(--ds-auro-input-text-color);caret-color:var(--ds-auro-input-caret-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
16328
|
+
|
|
16329
|
+
var tokensCss$4 = css`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--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)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--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, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
16330
|
+
|
|
16331
|
+
var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
|
|
16332
|
+
|
|
16333
|
+
var classicColorCss = css`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
|
|
16334
|
+
|
|
16335
|
+
var emphasizedStyleCss = css`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
16336
|
+
|
|
16337
|
+
var emphasizedColorCss = css`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
16338
|
+
|
|
16339
|
+
var snowflakeStyleCss = css`:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
16340
|
+
|
|
16341
|
+
const watchedItems = new Set();
|
|
16342
|
+
|
|
16343
|
+
|
|
16344
|
+
/**
|
|
16345
|
+
* Function for setting the value of the lang attribute.
|
|
16346
|
+
* @private
|
|
16347
|
+
* @param {object} item - Individual DOM node from set of watchedItems.
|
|
16348
|
+
* @param {string} lang - Current language set for the document.
|
|
16349
|
+
*/
|
|
16350
|
+
function setLang(item, lang) {
|
|
16351
|
+
|
|
16352
|
+
/**
|
|
16353
|
+
* It is desired that if the lang is `en` to maintain `undefined` as not to
|
|
16354
|
+
* add the `lang` attribute to the individual element.
|
|
16355
|
+
*/
|
|
16356
|
+
item.lang = lang === 'en' ? undefined : lang;
|
|
16357
|
+
}
|
|
16358
|
+
|
|
16359
|
+
/**
|
|
16360
|
+
* Change handler for MutationObserver() callback.
|
|
16361
|
+
* @private
|
|
16013
16362
|
* @param {MutationRecord[]} mutationList - Observed list of mutations.
|
|
16014
16363
|
*/
|
|
16015
16364
|
function handleChange(mutationList) {
|
|
@@ -16110,12 +16459,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
16110
16459
|
watchedItems.delete(element);
|
|
16111
16460
|
}
|
|
16112
16461
|
|
|
16113
|
-
var styleCss$4 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.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-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);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-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, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);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)}`;
|
|
16114
|
-
|
|
16115
|
-
var colorCss$4 = css`.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))}`;
|
|
16116
|
-
|
|
16117
|
-
var tokensCss$4 = css`: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)}`;
|
|
16118
|
-
|
|
16119
16462
|
/** Checks if value is string */
|
|
16120
16463
|
function isString(str) {
|
|
16121
16464
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -20802,6 +21145,98 @@ class AuroFormValidation {
|
|
|
20802
21145
|
}
|
|
20803
21146
|
}
|
|
20804
21147
|
|
|
21148
|
+
let AuroElement$1 = class AuroElement extends LitElement {
|
|
21149
|
+
static get properties() {
|
|
21150
|
+
return {
|
|
21151
|
+
|
|
21152
|
+
/**
|
|
21153
|
+
* Defines the language of an element.
|
|
21154
|
+
* @default {'default'}
|
|
21155
|
+
*/
|
|
21156
|
+
layout: {
|
|
21157
|
+
type: String,
|
|
21158
|
+
attribute: "layout",
|
|
21159
|
+
reflect: true
|
|
21160
|
+
},
|
|
21161
|
+
|
|
21162
|
+
shape: {
|
|
21163
|
+
type: String,
|
|
21164
|
+
attribute: "shape",
|
|
21165
|
+
reflect: true
|
|
21166
|
+
},
|
|
21167
|
+
|
|
21168
|
+
size: {
|
|
21169
|
+
type: String,
|
|
21170
|
+
attribute: "size",
|
|
21171
|
+
reflect: true
|
|
21172
|
+
},
|
|
21173
|
+
|
|
21174
|
+
onDark: {
|
|
21175
|
+
type: Boolean,
|
|
21176
|
+
attribute: "ondark",
|
|
21177
|
+
reflect: true
|
|
21178
|
+
}
|
|
21179
|
+
};
|
|
21180
|
+
}
|
|
21181
|
+
|
|
21182
|
+
resetShapeClasses() {
|
|
21183
|
+
if (this.shape && this.size) {
|
|
21184
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
21185
|
+
|
|
21186
|
+
if (wrapper) {
|
|
21187
|
+
wrapper.classList.forEach((className) => {
|
|
21188
|
+
if (className.startsWith('shape-')) {
|
|
21189
|
+
wrapper.classList.remove(className);
|
|
21190
|
+
}
|
|
21191
|
+
});
|
|
21192
|
+
|
|
21193
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
21194
|
+
}
|
|
21195
|
+
}
|
|
21196
|
+
}
|
|
21197
|
+
|
|
21198
|
+
resetLayoutClasses() {
|
|
21199
|
+
if (this.layout) {
|
|
21200
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
21201
|
+
|
|
21202
|
+
if (wrapper) {
|
|
21203
|
+
wrapper.classList.forEach((className) => {
|
|
21204
|
+
if (className.startsWith('layout-')) {
|
|
21205
|
+
wrapper.classList.remove(className);
|
|
21206
|
+
}
|
|
21207
|
+
});
|
|
21208
|
+
|
|
21209
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
21210
|
+
}
|
|
21211
|
+
}
|
|
21212
|
+
}
|
|
21213
|
+
|
|
21214
|
+
updateComponentArchitecture() {
|
|
21215
|
+
this.resetLayoutClasses();
|
|
21216
|
+
this.resetShapeClasses();
|
|
21217
|
+
}
|
|
21218
|
+
|
|
21219
|
+
updated(changedProperties) {
|
|
21220
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
21221
|
+
this.updateComponentArchitecture();
|
|
21222
|
+
}
|
|
21223
|
+
}
|
|
21224
|
+
|
|
21225
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
21226
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
21227
|
+
render() {
|
|
21228
|
+
try {
|
|
21229
|
+
return this.renderLayout();
|
|
21230
|
+
} catch (error) {
|
|
21231
|
+
// failed to get the defined layout
|
|
21232
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
21233
|
+
|
|
21234
|
+
// fallback to the default layout
|
|
21235
|
+
return this.getLayout('default');
|
|
21236
|
+
}
|
|
21237
|
+
}
|
|
21238
|
+
};
|
|
21239
|
+
|
|
20805
21240
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20806
21241
|
// See LICENSE in the project root for license information.
|
|
20807
21242
|
|
|
@@ -20809,9 +21244,6 @@ class AuroFormValidation {
|
|
|
20809
21244
|
/**
|
|
20810
21245
|
* Auro-input provides users a way to enter data into a text field.
|
|
20811
21246
|
*
|
|
20812
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
20813
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
20814
|
-
*
|
|
20815
21247
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
20816
21248
|
* @attr id
|
|
20817
21249
|
*
|
|
@@ -20827,22 +21259,26 @@ class AuroFormValidation {
|
|
|
20827
21259
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
20828
21260
|
*/
|
|
20829
21261
|
|
|
20830
|
-
class BaseInput extends
|
|
21262
|
+
class BaseInput extends AuroElement$1 {
|
|
20831
21263
|
|
|
20832
21264
|
constructor() {
|
|
20833
21265
|
super();
|
|
20834
21266
|
|
|
21267
|
+
this.activeLabel = false;
|
|
20835
21268
|
this.icon = false;
|
|
20836
21269
|
this.disabled = false;
|
|
20837
|
-
this.required = false;
|
|
20838
|
-
this.noValidate = false;
|
|
20839
21270
|
this.max = undefined;
|
|
20840
|
-
this.min = undefined;
|
|
20841
21271
|
this.maxLength = undefined;
|
|
21272
|
+
this.min = undefined;
|
|
20842
21273
|
this.minLength = undefined;
|
|
21274
|
+
this.noValidate = false;
|
|
20843
21275
|
this.onDark = false;
|
|
20844
|
-
this.
|
|
21276
|
+
this.required = false;
|
|
20845
21277
|
this.setCustomValidityForType = undefined;
|
|
21278
|
+
|
|
21279
|
+
this.layout = 'classic';
|
|
21280
|
+
this.shape = 'rounded';
|
|
21281
|
+
this.size = 'lg';
|
|
20846
21282
|
}
|
|
20847
21283
|
|
|
20848
21284
|
/**
|
|
@@ -20859,6 +21295,7 @@ class BaseInput extends LitElement {
|
|
|
20859
21295
|
this.validationCCLength = undefined;
|
|
20860
21296
|
this.hasValue = false;
|
|
20861
21297
|
this.label = 'Input label is undefined';
|
|
21298
|
+
this.placeholderStr = '';
|
|
20862
21299
|
|
|
20863
21300
|
this.allowedInputTypes = [
|
|
20864
21301
|
"text",
|
|
@@ -20905,9 +21342,10 @@ class BaseInput extends LitElement {
|
|
|
20905
21342
|
.substring(idSubstrStart, idSubstrEnd);
|
|
20906
21343
|
}
|
|
20907
21344
|
|
|
20908
|
-
// function to define props used within the scope of this
|
|
21345
|
+
// function to define props used within the scope of this component
|
|
20909
21346
|
static get properties() {
|
|
20910
21347
|
return {
|
|
21348
|
+
...super.properties,
|
|
20911
21349
|
|
|
20912
21350
|
/**
|
|
20913
21351
|
* The value for the role attribute.
|
|
@@ -21239,15 +21677,6 @@ class BaseInput extends LitElement {
|
|
|
21239
21677
|
};
|
|
21240
21678
|
}
|
|
21241
21679
|
|
|
21242
|
-
|
|
21243
|
-
static get styles() {
|
|
21244
|
-
return [
|
|
21245
|
-
css`${colorCss$4}`,
|
|
21246
|
-
css`${styleCss$4}`,
|
|
21247
|
-
css`${tokensCss$4}`
|
|
21248
|
-
];
|
|
21249
|
-
}
|
|
21250
|
-
|
|
21251
21680
|
connectedCallback() {
|
|
21252
21681
|
super.connectedCallback();
|
|
21253
21682
|
|
|
@@ -21262,15 +21691,21 @@ class BaseInput extends LitElement {
|
|
|
21262
21691
|
}
|
|
21263
21692
|
|
|
21264
21693
|
firstUpdated() {
|
|
21694
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helptext or label will not focus the input.
|
|
21695
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
21696
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
21697
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
21698
|
+
|
|
21699
|
+
if (this.wrapperElement) {
|
|
21700
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
21701
|
+
}
|
|
21702
|
+
|
|
21265
21703
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
21266
21704
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
21267
21705
|
this.setAttribute('auro-input', true);
|
|
21268
21706
|
}
|
|
21269
21707
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
21270
21708
|
|
|
21271
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
21272
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
21273
|
-
|
|
21274
21709
|
if (this.format) {
|
|
21275
21710
|
this.format = this.format.toLowerCase();
|
|
21276
21711
|
}
|
|
@@ -21280,6 +21715,7 @@ class BaseInput extends LitElement {
|
|
|
21280
21715
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
21281
21716
|
}
|
|
21282
21717
|
|
|
21718
|
+
this.getPlaceholder();
|
|
21283
21719
|
this.setCustomHelpTextMessage();
|
|
21284
21720
|
this.configureAutoFormatting();
|
|
21285
21721
|
}
|
|
@@ -21316,6 +21752,8 @@ class BaseInput extends LitElement {
|
|
|
21316
21752
|
* @returns {void}
|
|
21317
21753
|
*/
|
|
21318
21754
|
updated(changedProperties) {
|
|
21755
|
+
super.updated(changedProperties);
|
|
21756
|
+
|
|
21319
21757
|
if (changedProperties.has('format')) {
|
|
21320
21758
|
this.configureAutoFormatting();
|
|
21321
21759
|
}
|
|
@@ -21436,15 +21874,6 @@ class BaseInput extends LitElement {
|
|
|
21436
21874
|
return this.pattern;
|
|
21437
21875
|
}
|
|
21438
21876
|
|
|
21439
|
-
/**
|
|
21440
|
-
* Function to set element focus.
|
|
21441
|
-
* @private
|
|
21442
|
-
* @return {void}
|
|
21443
|
-
*/
|
|
21444
|
-
focus() {
|
|
21445
|
-
this.inputElement.focus();
|
|
21446
|
-
}
|
|
21447
|
-
|
|
21448
21877
|
/**
|
|
21449
21878
|
* Required to convert SVG icons from data to HTML string.
|
|
21450
21879
|
* @private
|
|
@@ -21474,6 +21903,25 @@ class BaseInput extends LitElement {
|
|
|
21474
21903
|
this.dispatchEvent(inputEvent);
|
|
21475
21904
|
}
|
|
21476
21905
|
|
|
21906
|
+
|
|
21907
|
+
/**
|
|
21908
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
21909
|
+
* @private
|
|
21910
|
+
* @return {void}
|
|
21911
|
+
*/
|
|
21912
|
+
handleClick() {
|
|
21913
|
+
this.focus();
|
|
21914
|
+
}
|
|
21915
|
+
|
|
21916
|
+
/**
|
|
21917
|
+
* Function to set element focus.
|
|
21918
|
+
* @private
|
|
21919
|
+
* @return {void}
|
|
21920
|
+
*/
|
|
21921
|
+
focus() {
|
|
21922
|
+
this.inputElement.focus();
|
|
21923
|
+
}
|
|
21924
|
+
|
|
21477
21925
|
/**
|
|
21478
21926
|
* Handles event of clearing input content by clicking the X icon.
|
|
21479
21927
|
* @private
|
|
@@ -21521,10 +21969,23 @@ class BaseInput extends LitElement {
|
|
|
21521
21969
|
* @return {void}
|
|
21522
21970
|
*/
|
|
21523
21971
|
handleFocusin() {
|
|
21972
|
+
this.hasFocus = true;
|
|
21973
|
+
|
|
21974
|
+
this.getPlaceholder();
|
|
21524
21975
|
|
|
21525
21976
|
this.touched = true;
|
|
21526
21977
|
}
|
|
21527
21978
|
|
|
21979
|
+
/**
|
|
21980
|
+
* Function to support @focusout event.
|
|
21981
|
+
* @private
|
|
21982
|
+
* @return {void}
|
|
21983
|
+
*/
|
|
21984
|
+
handleFocusout() {
|
|
21985
|
+
this.hasFocus = false;
|
|
21986
|
+
this.getPlaceholder();
|
|
21987
|
+
}
|
|
21988
|
+
|
|
21528
21989
|
/**
|
|
21529
21990
|
* Function to support @blur event.
|
|
21530
21991
|
* @private
|
|
@@ -21649,16 +22110,31 @@ class BaseInput extends LitElement {
|
|
|
21649
22110
|
/**
|
|
21650
22111
|
* Support placeholder text.
|
|
21651
22112
|
* @private
|
|
21652
|
-
* @returns {
|
|
22113
|
+
* @returns {void}
|
|
21653
22114
|
*/
|
|
21654
22115
|
getPlaceholder() {
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21658
|
-
|
|
22116
|
+
const isFocused = this.inputElement === this.getActiveElement();
|
|
22117
|
+
|
|
22118
|
+
// console.warn('isFocused', isFocused);
|
|
22119
|
+
// console.warn(this.inputElement);
|
|
22120
|
+
// console.warn(this.getActiveElement());
|
|
22121
|
+
|
|
22122
|
+
if (!isFocused) {
|
|
22123
|
+
if (this.placeholder) {
|
|
22124
|
+
this.placeholderStr = this.placeholder;
|
|
22125
|
+
// return this.placeholder;
|
|
22126
|
+
} else if (this.type === 'date') {
|
|
22127
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
22128
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
22129
|
+
}
|
|
22130
|
+
} else {
|
|
22131
|
+
this.placeholderStr = '';
|
|
21659
22132
|
}
|
|
21660
22133
|
|
|
21661
|
-
|
|
22134
|
+
this.requestUpdate();
|
|
22135
|
+
|
|
22136
|
+
// console.warn('this.placeholderStr', this.placeholderStr);
|
|
22137
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
21662
22138
|
}
|
|
21663
22139
|
|
|
21664
22140
|
/**
|
|
@@ -22013,7 +22489,7 @@ class BaseIcon extends AuroElement {
|
|
|
22013
22489
|
|
|
22014
22490
|
var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
22015
22491
|
|
|
22016
|
-
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-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)}`;
|
|
22492
|
+
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-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)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
22017
22493
|
|
|
22018
22494
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22019
22495
|
// See LICENSE in the project root for license information.
|
|
@@ -22184,7 +22660,7 @@ class AuroIcon extends BaseIcon {
|
|
|
22184
22660
|
|
|
22185
22661
|
var iconVersion = '8.0.1';
|
|
22186
22662
|
|
|
22187
|
-
var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight,
|
|
22663
|
+
var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);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-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);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, 1.5rem)}.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, 1rem) + var(--ds-size-50, 0.25rem))}.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, 1.5rem)}.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}`;
|
|
22188
22664
|
|
|
22189
22665
|
var colorCss$2 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
22190
22666
|
|
|
@@ -22343,27 +22819,6 @@ var loaderVersion = '5.0.0';
|
|
|
22343
22819
|
|
|
22344
22820
|
|
|
22345
22821
|
/**
|
|
22346
|
-
* @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
|
|
22347
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
22348
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
22349
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
22350
|
-
* @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.
|
|
22351
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
22352
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
22353
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
22354
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
22355
|
-
* @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.
|
|
22356
|
-
* @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.
|
|
22357
|
-
* @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.
|
|
22358
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
22359
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
22360
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
22361
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
22362
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
22363
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
22364
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
22365
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
22366
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
22367
22822
|
* @slot - Default slot for the text of the button.
|
|
22368
22823
|
* @slot icon - Slot to provide auro-icon for the button.
|
|
22369
22824
|
* @csspart button - Apply CSS to HTML5 button.
|
|
@@ -22387,13 +22842,11 @@ class AuroButton extends LitElement {
|
|
|
22387
22842
|
|
|
22388
22843
|
constructor() {
|
|
22389
22844
|
super();
|
|
22390
|
-
|
|
22391
22845
|
this.autofocus = false;
|
|
22392
22846
|
this.disabled = false;
|
|
22393
22847
|
this.iconOnly = false;
|
|
22394
22848
|
this.loading = false;
|
|
22395
22849
|
this.onDark = false;
|
|
22396
|
-
this.ready = false;
|
|
22397
22850
|
this.secondary = false;
|
|
22398
22851
|
this.tertiary = false;
|
|
22399
22852
|
this.rounded = false;
|
|
@@ -22432,73 +22885,169 @@ class AuroButton extends LitElement {
|
|
|
22432
22885
|
|
|
22433
22886
|
static get properties() {
|
|
22434
22887
|
return {
|
|
22888
|
+
|
|
22889
|
+
/**
|
|
22890
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
22891
|
+
*/
|
|
22435
22892
|
autofocus: {
|
|
22436
22893
|
type: Boolean,
|
|
22437
22894
|
reflect: true
|
|
22438
22895
|
},
|
|
22896
|
+
|
|
22897
|
+
/**
|
|
22898
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
22899
|
+
*/
|
|
22439
22900
|
disabled: {
|
|
22440
22901
|
type: Boolean,
|
|
22441
22902
|
reflect: true
|
|
22442
22903
|
},
|
|
22904
|
+
|
|
22905
|
+
/**
|
|
22906
|
+
* DEPRECATED.
|
|
22907
|
+
* @deprecated
|
|
22908
|
+
*/
|
|
22443
22909
|
secondary: {
|
|
22444
22910
|
type: Boolean,
|
|
22445
22911
|
reflect: true
|
|
22446
22912
|
},
|
|
22913
|
+
|
|
22914
|
+
/**
|
|
22915
|
+
* DEPRECATED.
|
|
22916
|
+
* @deprecated
|
|
22917
|
+
*/
|
|
22447
22918
|
tertiary: {
|
|
22448
22919
|
type: Boolean,
|
|
22449
22920
|
reflect: true
|
|
22450
22921
|
},
|
|
22922
|
+
|
|
22923
|
+
/**
|
|
22924
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
22925
|
+
*/
|
|
22451
22926
|
fluid: {
|
|
22452
22927
|
type: Boolean,
|
|
22453
22928
|
reflect: true
|
|
22454
22929
|
},
|
|
22930
|
+
|
|
22931
|
+
/**
|
|
22932
|
+
* If set to true, the button will contain an icon with no additional content.
|
|
22933
|
+
*/
|
|
22455
22934
|
iconOnly: {
|
|
22456
22935
|
type: Boolean,
|
|
22457
22936
|
reflect: true
|
|
22458
22937
|
},
|
|
22938
|
+
|
|
22939
|
+
/**
|
|
22940
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
22941
|
+
*/
|
|
22459
22942
|
loading: {
|
|
22460
22943
|
type: Boolean,
|
|
22461
22944
|
reflect: true
|
|
22462
22945
|
},
|
|
22946
|
+
|
|
22947
|
+
/**
|
|
22948
|
+
* 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.
|
|
22949
|
+
*/
|
|
22463
22950
|
loadingText: {
|
|
22464
22951
|
type: String
|
|
22465
22952
|
},
|
|
22953
|
+
|
|
22954
|
+
/**
|
|
22955
|
+
* Set value for on-dark version of auro-button.
|
|
22956
|
+
*/
|
|
22466
22957
|
onDark: {
|
|
22467
22958
|
type: Boolean,
|
|
22468
22959
|
reflect: true
|
|
22469
22960
|
},
|
|
22961
|
+
|
|
22962
|
+
/**
|
|
22963
|
+
* If set to true, the button will have a rounded shape.
|
|
22964
|
+
*/
|
|
22470
22965
|
rounded: {
|
|
22471
22966
|
type: Boolean,
|
|
22472
22967
|
reflect: true
|
|
22473
22968
|
},
|
|
22969
|
+
|
|
22970
|
+
/**
|
|
22971
|
+
* Set value for slim version of auro-button.
|
|
22972
|
+
*/
|
|
22474
22973
|
slim: {
|
|
22475
22974
|
type: Boolean,
|
|
22476
22975
|
reflect: true
|
|
22477
22976
|
},
|
|
22977
|
+
|
|
22978
|
+
/**
|
|
22979
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
22980
|
+
*/
|
|
22981
|
+
tIndex: {
|
|
22982
|
+
type: String,
|
|
22983
|
+
reflect: true
|
|
22984
|
+
},
|
|
22985
|
+
|
|
22986
|
+
/**
|
|
22987
|
+
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
22988
|
+
*/
|
|
22989
|
+
ariahidden: {
|
|
22990
|
+
type: String,
|
|
22991
|
+
reflect: true,
|
|
22992
|
+
},
|
|
22993
|
+
|
|
22994
|
+
/**
|
|
22995
|
+
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
22996
|
+
* Use it in cases where a text label is not visible on the screen.
|
|
22997
|
+
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
22998
|
+
*/
|
|
22478
22999
|
arialabel: {
|
|
22479
23000
|
type: String,
|
|
22480
23001
|
reflect: true
|
|
22481
23002
|
},
|
|
23003
|
+
|
|
23004
|
+
/**
|
|
23005
|
+
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
23006
|
+
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
23007
|
+
* List multiple element IDs in a space delimited fashion.
|
|
23008
|
+
*/
|
|
22482
23009
|
arialabelledby: {
|
|
22483
23010
|
type: String,
|
|
22484
23011
|
reflect: true
|
|
22485
23012
|
},
|
|
23013
|
+
|
|
23014
|
+
/**
|
|
23015
|
+
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
23016
|
+
* or another grouping element it controls, is currently expanded or collapsed.
|
|
23017
|
+
* This is an optional attribute for buttons.
|
|
23018
|
+
*/
|
|
22486
23019
|
ariaexpanded: {
|
|
22487
23020
|
type: Boolean,
|
|
22488
23021
|
reflect: true
|
|
22489
23022
|
},
|
|
23023
|
+
|
|
23024
|
+
/**
|
|
23025
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
23026
|
+
*/
|
|
22490
23027
|
title: {
|
|
22491
23028
|
type: String,
|
|
22492
23029
|
reflect: true
|
|
22493
23030
|
},
|
|
23031
|
+
|
|
23032
|
+
/**
|
|
23033
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
23034
|
+
*/
|
|
22494
23035
|
type: {
|
|
22495
23036
|
type: String,
|
|
22496
23037
|
reflect: true
|
|
22497
23038
|
},
|
|
23039
|
+
|
|
23040
|
+
/**
|
|
23041
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
23042
|
+
*/
|
|
22498
23043
|
value: {
|
|
22499
23044
|
type: String,
|
|
22500
23045
|
reflect: true
|
|
22501
23046
|
},
|
|
23047
|
+
|
|
23048
|
+
/**
|
|
23049
|
+
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
23050
|
+
*/
|
|
22502
23051
|
variant: {
|
|
22503
23052
|
type: String,
|
|
22504
23053
|
reflect: true
|
|
@@ -22528,21 +23077,6 @@ class AuroButton extends LitElement {
|
|
|
22528
23077
|
this.renderRoot.querySelector('button').focus();
|
|
22529
23078
|
}
|
|
22530
23079
|
|
|
22531
|
-
/**
|
|
22532
|
-
* Marks the component as ready and sends event.
|
|
22533
|
-
* @private
|
|
22534
|
-
* @returns {void}
|
|
22535
|
-
*/
|
|
22536
|
-
notifyReady() {
|
|
22537
|
-
this.ready = true;
|
|
22538
|
-
|
|
22539
|
-
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
22540
|
-
bubbles: true,
|
|
22541
|
-
cancelable: false,
|
|
22542
|
-
composed: true,
|
|
22543
|
-
}));
|
|
22544
|
-
}
|
|
22545
|
-
|
|
22546
23080
|
updated() {
|
|
22547
23081
|
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
22548
23082
|
if (this.secondary) {
|
|
@@ -22554,10 +23088,6 @@ class AuroButton extends LitElement {
|
|
|
22554
23088
|
}
|
|
22555
23089
|
}
|
|
22556
23090
|
|
|
22557
|
-
firstUpdated() {
|
|
22558
|
-
this.notifyReady();
|
|
22559
|
-
}
|
|
22560
|
-
|
|
22561
23091
|
/**
|
|
22562
23092
|
* Submits the form that this button is associated with.
|
|
22563
23093
|
* @private
|
|
@@ -22572,7 +23102,7 @@ class AuroButton extends LitElement {
|
|
|
22572
23102
|
/**
|
|
22573
23103
|
* Returns the form element that this button is associated with.
|
|
22574
23104
|
* @private
|
|
22575
|
-
* @returns {HTMLFormElement|null}
|
|
23105
|
+
* @returns {HTMLFormElement | null}
|
|
22576
23106
|
*/
|
|
22577
23107
|
get form() {
|
|
22578
23108
|
return this.internals ? this.internals.form : null;
|
|
@@ -22593,9 +23123,11 @@ class AuroButton extends LitElement {
|
|
|
22593
23123
|
return html$1`
|
|
22594
23124
|
<button
|
|
22595
23125
|
part="button"
|
|
23126
|
+
aria-hidden="${ifDefined(this.ariahidden || undefined)}"
|
|
22596
23127
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
22597
23128
|
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
22598
23129
|
aria-expanded="${ifDefined(this.ariaexpanded)}"
|
|
23130
|
+
tabIndex="${ifDefined(this.tIndex)}"
|
|
22599
23131
|
?autofocus="${this.autofocus}"
|
|
22600
23132
|
class="${classMap(classes)}"
|
|
22601
23133
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -22851,19 +23383,78 @@ class AuroInput extends BaseInput {
|
|
|
22851
23383
|
/**
|
|
22852
23384
|
* @private
|
|
22853
23385
|
*/
|
|
22854
|
-
this.
|
|
23386
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
22855
23387
|
|
|
22856
23388
|
/**
|
|
22857
23389
|
* @private
|
|
22858
23390
|
*/
|
|
22859
|
-
this.
|
|
23391
|
+
this.hasDisplayValueContent = false;
|
|
22860
23392
|
|
|
22861
23393
|
/**
|
|
22862
23394
|
* @private
|
|
22863
23395
|
*/
|
|
22864
23396
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
23397
|
+
|
|
23398
|
+
/**
|
|
23399
|
+
* @private
|
|
23400
|
+
*/
|
|
23401
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
23402
|
+
}
|
|
23403
|
+
|
|
23404
|
+
static get styles() {
|
|
23405
|
+
return [
|
|
23406
|
+
css`${shapeSizeCss}`,
|
|
23407
|
+
css`${colorBaseCss}`,
|
|
23408
|
+
css`${styleCss$4}`,
|
|
23409
|
+
css`${styleDefaultCss}`,
|
|
23410
|
+
css`${tokensCss$4}`,
|
|
23411
|
+
css`${classicStyleCss}`,
|
|
23412
|
+
css`${classicColorCss}`,
|
|
23413
|
+
css`${emphasizedStyleCss}`,
|
|
23414
|
+
css`${emphasizedColorCss}`,
|
|
23415
|
+
css`${snowflakeStyleCss}`
|
|
23416
|
+
];
|
|
23417
|
+
}
|
|
23418
|
+
|
|
23419
|
+
/**
|
|
23420
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
23421
|
+
* @private
|
|
23422
|
+
* @returns {void}
|
|
23423
|
+
*/
|
|
23424
|
+
get commonLabelClasses() {
|
|
23425
|
+
return {
|
|
23426
|
+
'withValue': this.value && this.value.length > 0,
|
|
23427
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
23428
|
+
};
|
|
22865
23429
|
}
|
|
22866
23430
|
|
|
23431
|
+
/**
|
|
23432
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23433
|
+
* @private
|
|
23434
|
+
* @returns {void}
|
|
23435
|
+
*/
|
|
23436
|
+
get commonInputClasses() {
|
|
23437
|
+
return {
|
|
23438
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
23439
|
+
};
|
|
23440
|
+
}
|
|
23441
|
+
|
|
23442
|
+
get commonWrapperClasses() {
|
|
23443
|
+
return {
|
|
23444
|
+
'wrapper': true,
|
|
23445
|
+
'withValue': this.value && this.value.length > 0,
|
|
23446
|
+
'hasFocus': this.hasFocus
|
|
23447
|
+
};
|
|
23448
|
+
}
|
|
23449
|
+
|
|
23450
|
+
get helpTextClasses() {
|
|
23451
|
+
return {
|
|
23452
|
+
'helpTextWrapper': true,
|
|
23453
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
23454
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
23455
|
+
};
|
|
23456
|
+
};
|
|
23457
|
+
|
|
22867
23458
|
/**
|
|
22868
23459
|
* This will register this element with the browser.
|
|
22869
23460
|
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
@@ -22889,160 +23480,350 @@ class AuroInput extends BaseInput {
|
|
|
22889
23480
|
return false;
|
|
22890
23481
|
}
|
|
22891
23482
|
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
22895
|
-
|
|
22896
|
-
|
|
22897
|
-
|
|
22898
|
-
|
|
23483
|
+
/**
|
|
23484
|
+
* Function to determine if there is any displayValue content to render.
|
|
23485
|
+
* @private
|
|
23486
|
+
* @returns {void}
|
|
23487
|
+
*/
|
|
23488
|
+
checkDisplayValueSlotChange() {
|
|
23489
|
+
const nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
23490
|
+
|
|
23491
|
+
let hasContent = false;
|
|
23492
|
+
|
|
23493
|
+
if (nodes.length > 0) {
|
|
23494
|
+
hasContent = true;
|
|
23495
|
+
}
|
|
23496
|
+
|
|
23497
|
+
this.hasDisplayValueContent = hasContent;
|
|
23498
|
+
}
|
|
23499
|
+
|
|
23500
|
+
/**
|
|
23501
|
+
* Returns HTML for the validation error icon.
|
|
23502
|
+
* @private
|
|
23503
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
23504
|
+
*/
|
|
23505
|
+
renderValidationErrorIconHtml() {
|
|
23506
|
+
return html$1`
|
|
23507
|
+
${this.validity && this.validity !== 'valid' ? html$1`
|
|
23508
|
+
<div class="notification alertNotification">
|
|
23509
|
+
<${this.iconTag}
|
|
23510
|
+
category="alert"
|
|
23511
|
+
name="error-stroke"
|
|
23512
|
+
variant="statusError"
|
|
23513
|
+
?ondark="${this.onDark}">
|
|
23514
|
+
</${this.iconTag}>
|
|
23515
|
+
</div>
|
|
23516
|
+
` : undefined}
|
|
23517
|
+
`;
|
|
23518
|
+
}
|
|
23519
|
+
|
|
23520
|
+
/**
|
|
23521
|
+
* Returns HTML for the HTML5 input element.
|
|
23522
|
+
* @private
|
|
23523
|
+
* @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
23524
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
23525
|
+
*/
|
|
23526
|
+
renderHtmlInput(hideInputWhenBlurred = false) {
|
|
23527
|
+
const displayValueClasses = {
|
|
23528
|
+
'displayValue': true,
|
|
23529
|
+
'hasContent': this.hasDisplayValueContent,
|
|
23530
|
+
'hasFocus': this.hasFocus,
|
|
23531
|
+
'withValue': this.value && this.value.length > 0,
|
|
23532
|
+
};
|
|
23533
|
+
|
|
23534
|
+
const inputClasses = {
|
|
23535
|
+
'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
|
|
22899
23536
|
};
|
|
22900
23537
|
|
|
22901
23538
|
return html$1`
|
|
22902
|
-
<
|
|
22903
|
-
<
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
23539
|
+
<label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
|
|
23540
|
+
<slot name="label">
|
|
23541
|
+
${this.label}
|
|
23542
|
+
</slot>
|
|
23543
|
+
</label>
|
|
23544
|
+
<input
|
|
23545
|
+
@blur="${this.handleBlur}"
|
|
23546
|
+
@focusin="${this.handleFocusin}"
|
|
23547
|
+
@focusout="${this.handleFocusout}"
|
|
23548
|
+
@input="${this.handleInput}"
|
|
23549
|
+
?activeLabel="${this.activeLabel}"
|
|
23550
|
+
?disabled="${this.disabled}"
|
|
23551
|
+
?required="${this.required}"
|
|
23552
|
+
.placeholder=${this.placeholderStr}
|
|
23553
|
+
aria-describedby="${this.uniqueId}"
|
|
23554
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
23555
|
+
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
23556
|
+
autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
|
|
23557
|
+
autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
|
|
23558
|
+
class="${classMap(inputClasses)}"
|
|
23559
|
+
id="${this.inputId}"
|
|
23560
|
+
inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
|
|
23561
|
+
lang="${ifDefined(this.lang)}"
|
|
23562
|
+
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
23563
|
+
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
23564
|
+
name="${ifDefined(this.name)}"
|
|
23565
|
+
part="input"
|
|
23566
|
+
pattern="${ifDefined(this.definePattern())}"
|
|
23567
|
+
spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
|
|
23568
|
+
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}" />
|
|
23569
|
+
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
23570
|
+
<div class="displayValueWrapper">
|
|
23571
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
23572
|
+
</div>
|
|
23573
|
+
</div>
|
|
23574
|
+
`;
|
|
23575
|
+
}
|
|
22921
23576
|
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
|
|
22933
|
-
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
22957
|
-
|
|
22958
|
-
|
|
22959
|
-
|
|
22960
|
-
|
|
22961
|
-
|
|
22962
|
-
|
|
22963
|
-
|
|
22964
|
-
|
|
22965
|
-
|
|
22966
|
-
|
|
22967
|
-
|
|
23577
|
+
/**
|
|
23578
|
+
* Returns HTML for the clear action button.
|
|
23579
|
+
* @private
|
|
23580
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
23581
|
+
*/
|
|
23582
|
+
renderHtmlActionClear() {
|
|
23583
|
+
return html$1`
|
|
23584
|
+
<div class="notification clear">
|
|
23585
|
+
<${this.buttonTag}
|
|
23586
|
+
@click="${this.handleClickClear}"
|
|
23587
|
+
?onDark="${this.onDark}"
|
|
23588
|
+
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
23589
|
+
class="notificationBtn clearBtn"
|
|
23590
|
+
tabindex="-1"
|
|
23591
|
+
variant="flat">
|
|
23592
|
+
<${this.iconTag}
|
|
23593
|
+
category="interface"
|
|
23594
|
+
customColor
|
|
23595
|
+
name="x-lg"
|
|
23596
|
+
>
|
|
23597
|
+
</${this.iconTag}>
|
|
23598
|
+
</${this.buttonTag}>
|
|
23599
|
+
</div>
|
|
23600
|
+
`;
|
|
23601
|
+
}
|
|
23602
|
+
|
|
23603
|
+
/**
|
|
23604
|
+
* Returns HTML for the show password button.
|
|
23605
|
+
* @private
|
|
23606
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
23607
|
+
*/
|
|
23608
|
+
renderHtmlNotificationPassword() {
|
|
23609
|
+
return html$1`
|
|
23610
|
+
<div class="notification">
|
|
23611
|
+
<${this.buttonTag}
|
|
23612
|
+
@click="${this.handleClickShowPassword}
|
|
23613
|
+
?onDark="${this.onDark}"
|
|
23614
|
+
aria-hidden="true"
|
|
23615
|
+
class="notificationBtn passwordBtn"
|
|
23616
|
+
tabindex="-1"
|
|
23617
|
+
variant="flat">
|
|
23618
|
+
<${this.iconTag}
|
|
23619
|
+
?hidden=${!this.showPassword}
|
|
23620
|
+
category="interface"
|
|
23621
|
+
customColor
|
|
23622
|
+
name="hide-password-stroke">
|
|
23623
|
+
</${this.iconTag}>
|
|
23624
|
+
<${this.iconTag}
|
|
23625
|
+
?hidden=${this.showPassword}
|
|
23626
|
+
category="interface"
|
|
23627
|
+
customColor
|
|
23628
|
+
name="view-password-stroke">
|
|
23629
|
+
</${this.iconTag}>
|
|
23630
|
+
</${this.buttonTag}>
|
|
23631
|
+
</div>
|
|
23632
|
+
`;
|
|
23633
|
+
}
|
|
23634
|
+
|
|
23635
|
+
/**
|
|
23636
|
+
* Returns HTML for the input type icon.
|
|
23637
|
+
* @private
|
|
23638
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
23639
|
+
*/
|
|
23640
|
+
renderHtmlTypeIcon() {
|
|
23641
|
+
return html$1`
|
|
23642
|
+
<div class="typeIcon">
|
|
23643
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
23644
|
+
|
|
23645
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
23646
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
23647
|
+
${this.inputIconName
|
|
23648
|
+
? repeat([this.inputIconName], (val) => val, (name) => html$1`
|
|
23649
|
+
<${this.iconTag}
|
|
23650
|
+
?onDark="${this.onDark}"
|
|
23651
|
+
category="payment"
|
|
23652
|
+
class="accentIcon"
|
|
23653
|
+
name="${name}"
|
|
23654
|
+
part="accentIcon"
|
|
23655
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
23656
|
+
</${this.iconTag}>
|
|
23657
|
+
`) : undefined
|
|
23658
|
+
}
|
|
23659
|
+
${this.type === 'date'
|
|
23660
|
+
? html$1`
|
|
23661
|
+
<${this.iconTag}
|
|
23662
|
+
?onDark="${this.onDark}"
|
|
23663
|
+
category="interface"
|
|
23664
|
+
class="accentIcon"
|
|
23665
|
+
name="calendar"
|
|
23666
|
+
part="accentIcon"
|
|
23667
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
23668
|
+
</${this.iconTag}>`
|
|
23669
|
+
: undefined
|
|
23670
|
+
}
|
|
23671
|
+
</div>
|
|
23672
|
+
`;
|
|
23673
|
+
}
|
|
23674
|
+
|
|
23675
|
+
/**
|
|
23676
|
+
* Returns HTML for the help text and error message.
|
|
23677
|
+
* @private
|
|
23678
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
23679
|
+
*/
|
|
23680
|
+
renderHtmlHelpText() {
|
|
23681
|
+
return html$1`
|
|
23682
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
23683
|
+
? html$1`
|
|
23684
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23685
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
23686
|
+
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23687
|
+
</p>
|
|
23688
|
+
</${this.helpTextTag}>
|
|
23689
|
+
`
|
|
23690
|
+
: html$1`
|
|
23691
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
23692
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
23693
|
+
${this.errorMessage}
|
|
23694
|
+
</p>
|
|
23695
|
+
</${this.helpTextTag}>
|
|
23696
|
+
`
|
|
23697
|
+
}
|
|
23698
|
+
`;
|
|
23699
|
+
}
|
|
23700
|
+
|
|
23701
|
+
/**
|
|
23702
|
+
* Returns HTML for the default layout.
|
|
23703
|
+
* @private
|
|
23704
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
|
|
23705
|
+
*/
|
|
23706
|
+
renderLayoutClassic() {
|
|
23707
|
+
return html$1`
|
|
23708
|
+
<div
|
|
23709
|
+
@click="${this.handleClick}"
|
|
23710
|
+
class="${classMap(this.commonWrapperClasses)} thin"
|
|
23711
|
+
part="wrapper">
|
|
23712
|
+
<div class="accents left">
|
|
23713
|
+
${this.renderHtmlTypeIcon()}
|
|
22968
23714
|
</div>
|
|
22969
|
-
<div
|
|
22970
|
-
|
|
22971
|
-
|
|
22972
|
-
|
|
22973
|
-
${this.
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22980
|
-
|
|
23715
|
+
<div class="mainContent">
|
|
23716
|
+
${this.renderHtmlInput(true)}
|
|
23717
|
+
</div>
|
|
23718
|
+
<div class="accents right">
|
|
23719
|
+
${this.renderValidationErrorIconHtml()}
|
|
23720
|
+
${this.hasValue ? html$1`
|
|
23721
|
+
${!this.disabled && !this.readonly ? html$1`
|
|
23722
|
+
${this.renderHtmlActionClear()}
|
|
23723
|
+
` : undefined}
|
|
23724
|
+
` : undefined}
|
|
23725
|
+
</div>
|
|
23726
|
+
</div>
|
|
23727
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
23728
|
+
${this.renderHtmlHelpText()}
|
|
23729
|
+
</div>
|
|
23730
|
+
`;
|
|
23731
|
+
}
|
|
23732
|
+
|
|
23733
|
+
/**
|
|
23734
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
23735
|
+
* @private
|
|
23736
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23737
|
+
*/
|
|
23738
|
+
renderLayoutEmphasized() {
|
|
23739
|
+
return html$1`
|
|
23740
|
+
<div
|
|
23741
|
+
@click="${this.handleClick}"
|
|
23742
|
+
class="${classMap(this.commonWrapperClasses)}"
|
|
23743
|
+
part="wrapper">
|
|
23744
|
+
<div class="accents left">
|
|
23745
|
+
${this.layout.includes('left') ? html$1`
|
|
23746
|
+
${this.renderValidationErrorIconHtml()}
|
|
23747
|
+
` : undefined}
|
|
23748
|
+
</div>
|
|
23749
|
+
<div class="mainContent">
|
|
23750
|
+
${this.renderHtmlInput()}
|
|
23751
|
+
</div>
|
|
23752
|
+
<div class="accents right">
|
|
23753
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? html$1`
|
|
23754
|
+
${this.renderValidationErrorIconHtml()}
|
|
22981
23755
|
` : undefined}
|
|
22982
23756
|
${this.hasValue ? html$1`
|
|
22983
|
-
${this.
|
|
22984
|
-
|
|
22985
|
-
<${this.buttonTag}
|
|
22986
|
-
variant="flat"
|
|
22987
|
-
?onDark="${this.onDark}"
|
|
22988
|
-
aria-hidden="true"
|
|
22989
|
-
tabindex="-1"
|
|
22990
|
-
@click="${this.handleClickShowPassword}"
|
|
22991
|
-
class="notificationBtn passwordBtn">
|
|
22992
|
-
<${this.iconTag}
|
|
22993
|
-
category="interface"
|
|
22994
|
-
name="hide-password-stroke"
|
|
22995
|
-
customColor
|
|
22996
|
-
?hidden=${!this.showPassword}>
|
|
22997
|
-
</${this.iconTag}>
|
|
22998
|
-
<${this.iconTag}
|
|
22999
|
-
category="interface"
|
|
23000
|
-
name="view-password-stroke"
|
|
23001
|
-
customColor
|
|
23002
|
-
?hidden=${this.showPassword}>
|
|
23003
|
-
</${this.iconTag}>
|
|
23004
|
-
</${this.buttonTag}>
|
|
23005
|
-
</div>
|
|
23757
|
+
${!this.disabled && !this.readonly ? html$1`
|
|
23758
|
+
${this.renderHtmlActionClear()}
|
|
23006
23759
|
` : undefined}
|
|
23760
|
+
` : undefined}
|
|
23761
|
+
</div>
|
|
23762
|
+
</div>
|
|
23763
|
+
<div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
|
|
23764
|
+
${this.renderHtmlHelpText()}
|
|
23765
|
+
</div>
|
|
23766
|
+
`;
|
|
23767
|
+
}
|
|
23768
|
+
|
|
23769
|
+
/**
|
|
23770
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
23771
|
+
* @private
|
|
23772
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
23773
|
+
*/
|
|
23774
|
+
renderLayoutSnowflake() {
|
|
23775
|
+
return html$1`
|
|
23776
|
+
<div
|
|
23777
|
+
@click="${this.handleClick}"
|
|
23778
|
+
class="${classMap(this.commonWrapperClasses)}"
|
|
23779
|
+
part="wrapper">
|
|
23780
|
+
<div class="accents left">
|
|
23781
|
+
${this.renderHtmlTypeIcon()}
|
|
23782
|
+
</div>
|
|
23783
|
+
<div class="mainContent">
|
|
23784
|
+
${this.renderHtmlInput()}
|
|
23785
|
+
</div>
|
|
23786
|
+
<div class="accents right">
|
|
23787
|
+
${this.renderValidationErrorIconHtml()}
|
|
23788
|
+
${this.hasValue ? html$1`
|
|
23007
23789
|
${!this.disabled && !this.readonly ? html$1`
|
|
23008
|
-
|
|
23009
|
-
<${this.buttonTag}
|
|
23010
|
-
variant="flat"
|
|
23011
|
-
?onDark="${this.onDark}"
|
|
23012
|
-
class="notificationBtn clearBtn"
|
|
23013
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
23014
|
-
@click="${this.handleClickClear}">
|
|
23015
|
-
<${this.iconTag}
|
|
23016
|
-
customColor
|
|
23017
|
-
category="interface"
|
|
23018
|
-
name="x-lg"
|
|
23019
|
-
>
|
|
23020
|
-
</${this.iconTag}>
|
|
23021
|
-
</${this.buttonTag}>
|
|
23022
|
-
</div>
|
|
23790
|
+
${this.renderHtmlActionClear()}
|
|
23023
23791
|
` : undefined}
|
|
23024
23792
|
` : undefined}
|
|
23025
23793
|
</div>
|
|
23026
23794
|
</div>
|
|
23027
|
-
|
|
23028
|
-
${
|
|
23029
|
-
|
|
23030
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
23031
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
23032
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
23033
|
-
</p>
|
|
23034
|
-
</${this.helpTextTag}>
|
|
23035
|
-
`
|
|
23036
|
-
: html$1`
|
|
23037
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
23038
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
23039
|
-
${this.errorMessage}
|
|
23040
|
-
</p>
|
|
23041
|
-
</${this.helpTextTag}>
|
|
23042
|
-
`
|
|
23043
|
-
}
|
|
23795
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
23796
|
+
${this.renderHtmlHelpText()}
|
|
23797
|
+
</div>
|
|
23044
23798
|
`;
|
|
23045
23799
|
}
|
|
23800
|
+
|
|
23801
|
+
/**
|
|
23802
|
+
* Logic to determine the layout of the component.
|
|
23803
|
+
* @private
|
|
23804
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
23805
|
+
* @returns {void}
|
|
23806
|
+
*/
|
|
23807
|
+
renderLayout(ForcedLayout) {
|
|
23808
|
+
const layout = ForcedLayout || this.layout;
|
|
23809
|
+
|
|
23810
|
+
switch (layout) {
|
|
23811
|
+
case 'emphasized':
|
|
23812
|
+
return this.renderLayoutEmphasized();
|
|
23813
|
+
case 'emphasized-left':
|
|
23814
|
+
return this.renderLayoutEmphasized();
|
|
23815
|
+
case 'emphasized-right':
|
|
23816
|
+
return this.renderLayoutEmphasized();
|
|
23817
|
+
case 'snowflake':
|
|
23818
|
+
return this.renderLayoutSnowflake();
|
|
23819
|
+
case 'snowflake-left':
|
|
23820
|
+
return this.renderLayoutSnowflake();
|
|
23821
|
+
case 'snowflake-right':
|
|
23822
|
+
return this.renderLayoutSnowflake();
|
|
23823
|
+
default:
|
|
23824
|
+
return this.renderLayoutClassic();
|
|
23825
|
+
}
|
|
23826
|
+
}
|
|
23046
23827
|
}
|
|
23047
23828
|
|
|
23048
23829
|
var inputVersion = '4.2.0';
|
|
@@ -23455,7 +24236,7 @@ class AuroDatePicker extends LitElement {
|
|
|
23455
24236
|
static get styles() {
|
|
23456
24237
|
return [
|
|
23457
24238
|
styleCss$d,
|
|
23458
|
-
colorCss$
|
|
24239
|
+
colorCss$c,
|
|
23459
24240
|
tokensCss$a
|
|
23460
24241
|
];
|
|
23461
24242
|
}
|