@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7
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/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +88 -6
- package/components/bibtemplate/dist/registered.js +88 -6
- package/components/checkbox/demo/api.min.js +4 -3
- package/components/checkbox/demo/index.min.js +4 -3
- package/components/checkbox/dist/index.js +4 -3
- package/components/checkbox/dist/registered.js +4 -3
- package/components/combobox/demo/api.min.js +514 -172
- package/components/combobox/demo/index.min.js +514 -172
- package/components/combobox/dist/auro-combobox.d.ts +0 -8
- package/components/combobox/dist/index.js +425 -153
- package/components/combobox/dist/registered.js +425 -153
- package/components/counter/demo/api.min.js +404 -106
- package/components/counter/demo/index.min.js +404 -106
- package/components/counter/dist/index.js +404 -106
- package/components/counter/dist/registered.js +404 -106
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +876 -383
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +876 -383
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +679 -186
- package/components/datepicker/dist/registered.js +679 -186
- package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +226 -81
- package/components/dropdown/demo/index.min.js +226 -81
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +226 -81
- package/components/dropdown/dist/registered.js +226 -81
- package/components/input/demo/api.md +46 -48
- package/components/input/demo/api.min.js +96 -15
- package/components/input/demo/index.min.js +96 -15
- package/components/input/dist/auro-input.d.ts +17 -15
- package/components/input/dist/index.js +96 -15
- package/components/input/dist/registered.js +96 -15
- package/components/menu/demo/api.min.js +76 -6
- package/components/menu/demo/index.min.js +76 -6
- package/components/menu/dist/index.js +76 -6
- package/components/menu/dist/registered.js +76 -6
- package/components/radio/demo/api.min.js +4 -3
- package/components/radio/demo/index.min.js +4 -3
- package/components/radio/dist/index.js +4 -3
- package/components/radio/dist/registered.js +4 -3
- package/components/select/demo/api.md +12 -4
- package/components/select/demo/api.min.js +1178 -200
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1178 -200
- package/components/select/dist/auro-select.d.ts +96 -4
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1106 -198
- package/components/select/dist/registered.js +1106 -198
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +3 -3
- /package/components/{dropdown/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { html, css, LitElement } from 'lit';
|
|
2
1
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
2
|
+
import { html, css, LitElement } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators.js';
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -61,9 +61,10 @@ let DateFormatter$1 = class DateFormatter {
|
|
|
61
61
|
/**
|
|
62
62
|
* Convert a date object to string format.
|
|
63
63
|
* @param {Object} date - Date to convert to string.
|
|
64
|
-
* @
|
|
64
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
65
|
+
* @returns {String} Returns the date as a string.
|
|
65
66
|
*/
|
|
66
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
67
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
67
68
|
year: "numeric",
|
|
68
69
|
month: "2-digit",
|
|
69
70
|
day: "2-digit",
|
|
@@ -255,7 +256,7 @@ let AuroDateUtilities$1 = class AuroDateUtilities extends AuroDateUtilitiesBase$
|
|
|
255
256
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
256
257
|
|
|
257
258
|
// Get the date string of the date object we created from the string date
|
|
258
|
-
const actualDateStr = dateFormatter$1.getDateAsString(dateObj);
|
|
259
|
+
const actualDateStr = dateFormatter$1.getDateAsString(dateObj, "en-US");
|
|
259
260
|
|
|
260
261
|
// Guard Clause: Generated date matches date string input
|
|
261
262
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -420,7 +421,7 @@ const {
|
|
|
420
421
|
|
|
421
422
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
422
423
|
|
|
423
|
-
let AuroLibraryRuntimeUtils$
|
|
424
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
424
425
|
|
|
425
426
|
/* eslint-disable jsdoc/require-param */
|
|
426
427
|
|
|
@@ -490,7 +491,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
490
491
|
let AuroFormValidation$1 = class AuroFormValidation {
|
|
491
492
|
|
|
492
493
|
constructor() {
|
|
493
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
494
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
494
495
|
}
|
|
495
496
|
|
|
496
497
|
/**
|
|
@@ -1244,12 +1245,14 @@ class UtilitiesCalendarRender {
|
|
|
1244
1245
|
}
|
|
1245
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)
|
|
1248
|
+
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}:host([layout=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout=classic]) [auro-input]::part(helpText){display:none}:host([layout=classic]) [auro-input]::part(wrapper):focus-within:before{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem);--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout=classic]) [auro-input]::part(wrapper) [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%)}:host([layout=classic]) [auro-input]::part(wrapper) .outerWrapper{position:relative;container:outerwrapper/inline-size}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent{display:flex;flex-direction:column}:host([layout=classic]) [auro-input]::part(wrapper) .dpTriggerContent [auro-input]{flex:1}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) .dpTriggerContent{flex-direction:row}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:first-of-type{margin-right:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2){margin-left:var(--ds-size-150, 0.75rem)}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(accentIcon){display:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(label){left:0;width:100%}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:nth-child(2)::part(input){padding-left:0}:host([layout=classic]) [auro-input]::part(wrapper):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([layout=classic]) [auro-input]::part(wrapper):not([stacked]) [auro-input]:not(:first-child)::part(wrapper):after{content:none}:host([layout=classic]) [auro-input]::part(wrapper):not([stacked])[range] [auro-input]{max-width:50%}@media screen and (max-width: 576px){:host([layout=classic]) [auro-input]::part(wrapper) ::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}:host([layout=classic]) [auro-input]::part(wrapper) .calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1248
1249
|
|
|
1249
1250
|
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
1251
|
|
|
1251
1252
|
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
1253
|
|
|
1254
|
+
var classicLayoutColor = css`:host [auro-dropdown]::part(wrapper){border:1px solid aqua;outline:2px solid crimson}`;
|
|
1255
|
+
|
|
1253
1256
|
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
1257
|
|
|
1255
1258
|
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)}}`;
|
|
@@ -7242,7 +7245,7 @@ __decorate([property({ type: Array })], RangeDatepickerCell.prototype, "disabled
|
|
|
7242
7245
|
__decorate([property({ type: String })], RangeDatepickerCell.prototype, "hoveredDate", void 0);
|
|
7243
7246
|
__decorate([property({ type: Boolean })], RangeDatepickerCell.prototype, "isCurrentDate", void 0);
|
|
7244
7247
|
__decorate([property({ type: Object })], RangeDatepickerCell.prototype, "locale", null);
|
|
7245
|
-
AuroLibraryRuntimeUtils$
|
|
7248
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-cell', RangeDatepickerCell);
|
|
7246
7249
|
|
|
7247
7250
|
class Day {
|
|
7248
7251
|
constructor(date) {
|
|
@@ -7760,7 +7763,7 @@ __decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "year
|
|
|
7760
7763
|
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "monthsList", void 0);
|
|
7761
7764
|
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "dayNamesOfTheWeek", void 0);
|
|
7762
7765
|
__decorate([property({ type: Array })], RangeDatepickerCalendar.prototype, "daysOfMonth", void 0);
|
|
7763
|
-
AuroLibraryRuntimeUtils$
|
|
7766
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent('wc-range-datepicker-calendar', RangeDatepickerCalendar);
|
|
7764
7767
|
|
|
7765
7768
|
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
7769
|
|
|
@@ -9661,7 +9664,7 @@ class AuroPopover extends LitElement {
|
|
|
9661
9664
|
privateDefaults() {
|
|
9662
9665
|
this.isPopoverVisible = false;
|
|
9663
9666
|
this.id = `popover-${(Math.random() + 1).toString(36).substring(7)}`;
|
|
9664
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9667
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9665
9668
|
}
|
|
9666
9669
|
|
|
9667
9670
|
// function to define props used within the scope of this component
|
|
@@ -9691,7 +9694,7 @@ class AuroPopover extends LitElement {
|
|
|
9691
9694
|
*
|
|
9692
9695
|
*/
|
|
9693
9696
|
static register(name = "auro-popover") {
|
|
9694
|
-
AuroLibraryRuntimeUtils$
|
|
9697
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroPopover);
|
|
9695
9698
|
}
|
|
9696
9699
|
|
|
9697
9700
|
connectedCallback() {
|
|
@@ -9859,7 +9862,7 @@ class AuroCalendarCell extends LitElement {
|
|
|
9859
9862
|
this.dateStr = null;
|
|
9860
9863
|
this.renderForDateSlot = false; // When false, the numerical date will render vertically centered. When true, the date will render off-center to the top and leave room below for the slot content.
|
|
9861
9864
|
|
|
9862
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9865
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
9863
9866
|
|
|
9864
9867
|
/**
|
|
9865
9868
|
* Generate unique names for dependency components.
|
|
@@ -10770,7 +10773,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10770
10773
|
|
|
10771
10774
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10772
10775
|
|
|
10773
|
-
let AuroLibraryRuntimeUtils$
|
|
10776
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
10774
10777
|
|
|
10775
10778
|
/* eslint-disable jsdoc/require-param */
|
|
10776
10779
|
|
|
@@ -10883,7 +10886,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
10883
10886
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10884
10887
|
*/
|
|
10885
10888
|
|
|
10886
|
-
let AuroElement$
|
|
10889
|
+
let AuroElement$4 = class AuroElement extends LitElement {
|
|
10887
10890
|
|
|
10888
10891
|
// function to define props used within the scope of this component
|
|
10889
10892
|
static get properties() {
|
|
@@ -10951,7 +10954,7 @@ var styleCss$1$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
10951
10954
|
*/
|
|
10952
10955
|
|
|
10953
10956
|
// build the component class
|
|
10954
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
10957
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$4 {
|
|
10955
10958
|
constructor() {
|
|
10956
10959
|
super();
|
|
10957
10960
|
this.onDark = false;
|
|
@@ -11027,6 +11030,76 @@ var tokensCss$8 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
11027
11030
|
|
|
11028
11031
|
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
11032
|
|
|
11033
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11034
|
+
// See LICENSE in the project root for license information.
|
|
11035
|
+
|
|
11036
|
+
// ---------------------------------------------------------------------
|
|
11037
|
+
|
|
11038
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11039
|
+
|
|
11040
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
11041
|
+
|
|
11042
|
+
/* eslint-disable jsdoc/require-param */
|
|
11043
|
+
|
|
11044
|
+
/**
|
|
11045
|
+
* This will register a new custom element with the browser.
|
|
11046
|
+
* @param {String} name - The name of the custom element.
|
|
11047
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
11048
|
+
* @returns {void}
|
|
11049
|
+
*/
|
|
11050
|
+
registerComponent(name, componentClass) {
|
|
11051
|
+
if (!customElements.get(name)) {
|
|
11052
|
+
customElements.define(name, class extends componentClass {});
|
|
11053
|
+
}
|
|
11054
|
+
}
|
|
11055
|
+
|
|
11056
|
+
/**
|
|
11057
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
11058
|
+
* @returns {void}
|
|
11059
|
+
*/
|
|
11060
|
+
closestElement(
|
|
11061
|
+
selector, // selector like in .closest()
|
|
11062
|
+
base = this, // extra functionality to skip a parent
|
|
11063
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
11064
|
+
!el || el === document || el === window
|
|
11065
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
11066
|
+
: found
|
|
11067
|
+
? found // found a selector INside this element
|
|
11068
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11069
|
+
) {
|
|
11070
|
+
return __Closest(base);
|
|
11071
|
+
}
|
|
11072
|
+
/* eslint-enable jsdoc/require-param */
|
|
11073
|
+
|
|
11074
|
+
/**
|
|
11075
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
11076
|
+
* @param {Object} elem - The element to check.
|
|
11077
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
11078
|
+
* @returns {void}
|
|
11079
|
+
*/
|
|
11080
|
+
handleComponentTagRename(elem, tagName) {
|
|
11081
|
+
const tag = tagName.toLowerCase();
|
|
11082
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11083
|
+
|
|
11084
|
+
if (elemTag !== tag) {
|
|
11085
|
+
elem.setAttribute(tag, true);
|
|
11086
|
+
}
|
|
11087
|
+
}
|
|
11088
|
+
|
|
11089
|
+
/**
|
|
11090
|
+
* Validates if an element is a specific Auro component.
|
|
11091
|
+
* @param {Object} elem - The element to validate.
|
|
11092
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
11093
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11094
|
+
*/
|
|
11095
|
+
elementMatch(elem, tagName) {
|
|
11096
|
+
const tag = tagName.toLowerCase();
|
|
11097
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
11098
|
+
|
|
11099
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
11100
|
+
}
|
|
11101
|
+
};
|
|
11102
|
+
|
|
11030
11103
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11031
11104
|
// See LICENSE in the project root for license information.
|
|
11032
11105
|
|
|
@@ -11046,7 +11119,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11046
11119
|
*/
|
|
11047
11120
|
privateDefaults() {
|
|
11048
11121
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
11049
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11122
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
11050
11123
|
}
|
|
11051
11124
|
|
|
11052
11125
|
// function to define props used within the scope of this component
|
|
@@ -11128,7 +11201,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11128
11201
|
*
|
|
11129
11202
|
*/
|
|
11130
11203
|
static register(name = "auro-icon") {
|
|
11131
|
-
AuroLibraryRuntimeUtils$
|
|
11204
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
11132
11205
|
}
|
|
11133
11206
|
|
|
11134
11207
|
connectedCallback() {
|
|
@@ -11225,7 +11298,7 @@ class AuroHeader extends LitElement {
|
|
|
11225
11298
|
/**
|
|
11226
11299
|
* @private
|
|
11227
11300
|
*/
|
|
11228
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11301
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
11229
11302
|
}
|
|
11230
11303
|
|
|
11231
11304
|
// function to define props used within the scope of this component
|
|
@@ -11255,7 +11328,7 @@ class AuroHeader extends LitElement {
|
|
|
11255
11328
|
*
|
|
11256
11329
|
*/
|
|
11257
11330
|
static register(name = "auro-header") {
|
|
11258
|
-
AuroLibraryRuntimeUtils$
|
|
11331
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroHeader);
|
|
11259
11332
|
}
|
|
11260
11333
|
|
|
11261
11334
|
firstUpdated() {
|
|
@@ -11351,7 +11424,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
11351
11424
|
|
|
11352
11425
|
this.large = false;
|
|
11353
11426
|
|
|
11354
|
-
AuroLibraryRuntimeUtils$
|
|
11427
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
11355
11428
|
|
|
11356
11429
|
const versioning = new AuroDependencyVersioning$2();
|
|
11357
11430
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$2, AuroIcon$2);
|
|
@@ -11390,7 +11463,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
11390
11463
|
*
|
|
11391
11464
|
*/
|
|
11392
11465
|
static register(name = "auro-bibtemplate") {
|
|
11393
|
-
AuroLibraryRuntimeUtils$
|
|
11466
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
11394
11467
|
}
|
|
11395
11468
|
|
|
11396
11469
|
/**
|
|
@@ -11430,6 +11503,18 @@ class AuroBibtemplate extends LitElement {
|
|
|
11430
11503
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
11431
11504
|
}
|
|
11432
11505
|
|
|
11506
|
+
firstUpdated(changedProperties) {
|
|
11507
|
+
super.firstUpdated(changedProperties);
|
|
11508
|
+
|
|
11509
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
11510
|
+
bubbles: true,
|
|
11511
|
+
composed: true,
|
|
11512
|
+
detail: {
|
|
11513
|
+
element: this
|
|
11514
|
+
}
|
|
11515
|
+
}));
|
|
11516
|
+
}
|
|
11517
|
+
|
|
11433
11518
|
// function that renders the HTML and CSS into the scope of the component
|
|
11434
11519
|
render() {
|
|
11435
11520
|
return html$1`
|
|
@@ -11500,7 +11585,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
11500
11585
|
/**
|
|
11501
11586
|
* @private
|
|
11502
11587
|
*/
|
|
11503
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11588
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
11504
11589
|
|
|
11505
11590
|
this.orbit = false;
|
|
11506
11591
|
this.ringworm = false;
|
|
@@ -11563,7 +11648,7 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
11563
11648
|
*
|
|
11564
11649
|
*/
|
|
11565
11650
|
static register(name = "auro-loader") {
|
|
11566
|
-
AuroLibraryRuntimeUtils$
|
|
11651
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
11567
11652
|
}
|
|
11568
11653
|
|
|
11569
11654
|
firstUpdated() {
|
|
@@ -11867,7 +11952,7 @@ let AuroButton$1 = class AuroButton extends LitElement {
|
|
|
11867
11952
|
*
|
|
11868
11953
|
*/
|
|
11869
11954
|
static register(name = "auro-button") {
|
|
11870
|
-
AuroLibraryRuntimeUtils$
|
|
11955
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
11871
11956
|
}
|
|
11872
11957
|
|
|
11873
11958
|
/**
|
|
@@ -12322,7 +12407,7 @@ if (!customElements.get('auro-formkit-calendar')) {
|
|
|
12322
12407
|
|
|
12323
12408
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12324
12409
|
|
|
12325
|
-
let AuroLibraryRuntimeUtils$
|
|
12410
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
12326
12411
|
|
|
12327
12412
|
/* eslint-disable jsdoc/require-param */
|
|
12328
12413
|
|
|
@@ -12905,10 +12990,11 @@ const flip$1 = function (options) {
|
|
|
12905
12990
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
12906
12991
|
const nextPlacement = placements[nextIndex];
|
|
12907
12992
|
if (nextPlacement) {
|
|
12908
|
-
var _overflowsData$;
|
|
12909
12993
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
12910
|
-
|
|
12911
|
-
if
|
|
12994
|
+
if (!ignoreCrossAxisOverflow ||
|
|
12995
|
+
// We leave the current main axis only if every placement on that axis
|
|
12996
|
+
// overflows the main axis.
|
|
12997
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
12912
12998
|
// Try next placement and re-run the lifecycle.
|
|
12913
12999
|
return {
|
|
12914
13000
|
data: {
|
|
@@ -13929,8 +14015,28 @@ class AuroFloatingUI {
|
|
|
13929
14015
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
13930
14016
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
13931
14017
|
|
|
14018
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
14019
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
14020
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14021
|
+
}
|
|
13932
14022
|
const mouseEventGlobalHandler = (event) => {
|
|
13933
|
-
|
|
14023
|
+
const isPressed = event.type === 'mousedown';
|
|
14024
|
+
if (isPressed) {
|
|
14025
|
+
// Clear any pending timeout to prevent race condition
|
|
14026
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
14027
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
14028
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14029
|
+
}
|
|
14030
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
14031
|
+
AuroFloatingUI.isMousePressed = true;
|
|
14032
|
+
}
|
|
14033
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
14034
|
+
// Schedule reset and track timeout ID
|
|
14035
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
14036
|
+
AuroFloatingUI.isMousePressed = false;
|
|
14037
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
14038
|
+
}, 0);
|
|
14039
|
+
}
|
|
13934
14040
|
};
|
|
13935
14041
|
|
|
13936
14042
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -14057,6 +14163,7 @@ class AuroFloatingUI {
|
|
|
14057
14163
|
|
|
14058
14164
|
// Compute the position of the bib
|
|
14059
14165
|
computePosition(this.element.trigger, this.element.bib, {
|
|
14166
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
14060
14167
|
placement: this.element.floaterConfig?.placement,
|
|
14061
14168
|
middleware: middleware || []
|
|
14062
14169
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -14191,8 +14298,9 @@ class AuroFloatingUI {
|
|
|
14191
14298
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
14192
14299
|
return;
|
|
14193
14300
|
}
|
|
14194
|
-
|
|
14195
|
-
if
|
|
14301
|
+
|
|
14302
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
14303
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
14196
14304
|
return;
|
|
14197
14305
|
}
|
|
14198
14306
|
|
|
@@ -14493,8 +14601,6 @@ class AuroFloatingUI {
|
|
|
14493
14601
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
14494
14602
|
}
|
|
14495
14603
|
|
|
14496
|
-
document.body.append(this.element.bib);
|
|
14497
|
-
|
|
14498
14604
|
this.regenerateBibId();
|
|
14499
14605
|
this.handleTriggerTabIndex();
|
|
14500
14606
|
|
|
@@ -14725,6 +14831,76 @@ var tokensCss$2$1 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon
|
|
|
14725
14831
|
|
|
14726
14832
|
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)}`;
|
|
14727
14833
|
|
|
14834
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
14835
|
+
// See LICENSE in the project root for license information.
|
|
14836
|
+
|
|
14837
|
+
// ---------------------------------------------------------------------
|
|
14838
|
+
|
|
14839
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
14840
|
+
|
|
14841
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
14842
|
+
|
|
14843
|
+
/* eslint-disable jsdoc/require-param */
|
|
14844
|
+
|
|
14845
|
+
/**
|
|
14846
|
+
* This will register a new custom element with the browser.
|
|
14847
|
+
* @param {String} name - The name of the custom element.
|
|
14848
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
14849
|
+
* @returns {void}
|
|
14850
|
+
*/
|
|
14851
|
+
registerComponent(name, componentClass) {
|
|
14852
|
+
if (!customElements.get(name)) {
|
|
14853
|
+
customElements.define(name, class extends componentClass {});
|
|
14854
|
+
}
|
|
14855
|
+
}
|
|
14856
|
+
|
|
14857
|
+
/**
|
|
14858
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
14859
|
+
* @returns {void}
|
|
14860
|
+
*/
|
|
14861
|
+
closestElement(
|
|
14862
|
+
selector, // selector like in .closest()
|
|
14863
|
+
base = this, // extra functionality to skip a parent
|
|
14864
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
14865
|
+
!el || el === document || el === window
|
|
14866
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
14867
|
+
: found
|
|
14868
|
+
? found // found a selector INside this element
|
|
14869
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
14870
|
+
) {
|
|
14871
|
+
return __Closest(base);
|
|
14872
|
+
}
|
|
14873
|
+
/* eslint-enable jsdoc/require-param */
|
|
14874
|
+
|
|
14875
|
+
/**
|
|
14876
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
14877
|
+
* @param {Object} elem - The element to check.
|
|
14878
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14879
|
+
* @returns {void}
|
|
14880
|
+
*/
|
|
14881
|
+
handleComponentTagRename(elem, tagName) {
|
|
14882
|
+
const tag = tagName.toLowerCase();
|
|
14883
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14884
|
+
|
|
14885
|
+
if (elemTag !== tag) {
|
|
14886
|
+
elem.setAttribute(tag, true);
|
|
14887
|
+
}
|
|
14888
|
+
}
|
|
14889
|
+
|
|
14890
|
+
/**
|
|
14891
|
+
* Validates if an element is a specific Auro component.
|
|
14892
|
+
* @param {Object} elem - The element to validate.
|
|
14893
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
14894
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14895
|
+
*/
|
|
14896
|
+
elementMatch(elem, tagName) {
|
|
14897
|
+
const tag = tagName.toLowerCase();
|
|
14898
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
14899
|
+
|
|
14900
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
14901
|
+
}
|
|
14902
|
+
};
|
|
14903
|
+
|
|
14728
14904
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14729
14905
|
// See LICENSE in the project root for license information.
|
|
14730
14906
|
|
|
@@ -14894,7 +15070,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
14894
15070
|
|
|
14895
15071
|
var iconVersion$1 = '6.1.2';
|
|
14896
15072
|
|
|
14897
|
-
var styleCss$1$1 = css`:host{position:
|
|
15073
|
+
var styleCss$1$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
14898
15074
|
|
|
14899
15075
|
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)}`;
|
|
14900
15076
|
|
|
@@ -14904,7 +15080,6 @@ var tokensCss$1$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-colo
|
|
|
14904
15080
|
// See LICENSE in the project root for license information.
|
|
14905
15081
|
|
|
14906
15082
|
|
|
14907
|
-
|
|
14908
15083
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14909
15084
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14910
15085
|
'xl',
|
|
@@ -14929,7 +15104,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
14929
15104
|
*/
|
|
14930
15105
|
this._mobileBreakpointValue = undefined;
|
|
14931
15106
|
|
|
14932
|
-
AuroLibraryRuntimeUtils$
|
|
15107
|
+
AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
14933
15108
|
}
|
|
14934
15109
|
|
|
14935
15110
|
static get styles() {
|
|
@@ -14974,6 +15149,13 @@ class AuroDropdownBib extends LitElement {
|
|
|
14974
15149
|
type: Boolean,
|
|
14975
15150
|
reflect: true
|
|
14976
15151
|
},
|
|
15152
|
+
|
|
15153
|
+
/**
|
|
15154
|
+
* A reference to the associated bib template element.
|
|
15155
|
+
*/
|
|
15156
|
+
bibTemplate: {
|
|
15157
|
+
type: Object
|
|
15158
|
+
}
|
|
14977
15159
|
};
|
|
14978
15160
|
}
|
|
14979
15161
|
|
|
@@ -15006,9 +15188,50 @@ class AuroDropdownBib extends LitElement {
|
|
|
15006
15188
|
}
|
|
15007
15189
|
}
|
|
15008
15190
|
});
|
|
15191
|
+
|
|
15192
|
+
if (this.bibTemplate) {
|
|
15193
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15194
|
+
if (this.isFullscreen) {
|
|
15195
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15196
|
+
} else {
|
|
15197
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
15198
|
+
}
|
|
15199
|
+
}
|
|
15009
15200
|
}
|
|
15010
15201
|
}
|
|
15011
15202
|
|
|
15203
|
+
connectedCallback() {
|
|
15204
|
+
super.connectedCallback();
|
|
15205
|
+
|
|
15206
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
15207
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
15208
|
+
const bibTemplate = event.detail.element;
|
|
15209
|
+
this.bibTemplate = bibTemplate;
|
|
15210
|
+
|
|
15211
|
+
if (bibTemplate) {
|
|
15212
|
+
// If the bib template is found, set the fullscreen attribute
|
|
15213
|
+
if (this.isFullscreen) {
|
|
15214
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
15215
|
+
} else {
|
|
15216
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
15217
|
+
}
|
|
15218
|
+
}
|
|
15219
|
+
});
|
|
15220
|
+
}
|
|
15221
|
+
|
|
15222
|
+
firstUpdated(changedProperties) {
|
|
15223
|
+
super.firstUpdated(changedProperties);
|
|
15224
|
+
|
|
15225
|
+
// Dispatch a custom event when the component is connected
|
|
15226
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
15227
|
+
bubbles: true,
|
|
15228
|
+
composed: true,
|
|
15229
|
+
detail: {
|
|
15230
|
+
element: this
|
|
15231
|
+
}
|
|
15232
|
+
}));
|
|
15233
|
+
}
|
|
15234
|
+
|
|
15012
15235
|
// function that renders the HTML and CSS into the scope of the component
|
|
15013
15236
|
render() {
|
|
15014
15237
|
return html$1`
|
|
@@ -15021,7 +15244,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
15021
15244
|
|
|
15022
15245
|
var dropdownVersion$1 = '3.0.0';
|
|
15023
15246
|
|
|
15024
|
-
var shapeSizeCss$1 = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.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:
|
|
15247
|
+
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;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-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-md.parentBorder{border:0;min-height:44px;max-height:44px}.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-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.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}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
15025
15248
|
|
|
15026
15249
|
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)}`;
|
|
15027
15250
|
|
|
@@ -15029,9 +15252,9 @@ var classicColorCss$1 = css`:host([layout*=classic]) .label{color:var(--ds-auro-
|
|
|
15029
15252
|
|
|
15030
15253
|
var classicLayoutCss = css`:host([layout*=classic]){position:relative;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{display:flex;flex-direction:row}@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)}`;
|
|
15031
15254
|
|
|
15032
|
-
var styleEmphasizedCss = css`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
15255
|
+
var styleEmphasizedCss = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.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:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
|
|
15033
15256
|
|
|
15034
|
-
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
15257
|
+
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.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:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
15035
15258
|
|
|
15036
15259
|
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)}`;
|
|
15037
15260
|
|
|
@@ -15046,7 +15269,7 @@ var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
15046
15269
|
|
|
15047
15270
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
15048
15271
|
|
|
15049
|
-
let AuroLibraryRuntimeUtils$
|
|
15272
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
15050
15273
|
|
|
15051
15274
|
/* eslint-disable jsdoc/require-param */
|
|
15052
15275
|
|
|
@@ -15127,7 +15350,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
15127
15350
|
this.onDark = false;
|
|
15128
15351
|
this.hasTextContent = false;
|
|
15129
15352
|
|
|
15130
|
-
AuroLibraryRuntimeUtils$
|
|
15353
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
15131
15354
|
}
|
|
15132
15355
|
|
|
15133
15356
|
static get styles() {
|
|
@@ -15183,7 +15406,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
15183
15406
|
*
|
|
15184
15407
|
*/
|
|
15185
15408
|
static register(name = "auro-helptext") {
|
|
15186
|
-
AuroLibraryRuntimeUtils$
|
|
15409
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
15187
15410
|
}
|
|
15188
15411
|
|
|
15189
15412
|
updated() {
|
|
@@ -15241,7 +15464,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
15241
15464
|
|
|
15242
15465
|
var helpTextVersion$1 = '1.0.0';
|
|
15243
15466
|
|
|
15244
|
-
let AuroElement$
|
|
15467
|
+
let AuroElement$3 = class AuroElement extends LitElement {
|
|
15245
15468
|
static get properties() {
|
|
15246
15469
|
return {
|
|
15247
15470
|
|
|
@@ -15350,7 +15573,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
15350
15573
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
15351
15574
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15352
15575
|
*/
|
|
15353
|
-
class AuroDropdown extends AuroElement$
|
|
15576
|
+
class AuroDropdown extends AuroElement$3 {
|
|
15354
15577
|
constructor() {
|
|
15355
15578
|
super();
|
|
15356
15579
|
|
|
@@ -15365,6 +15588,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15365
15588
|
this.layout = 'classic';
|
|
15366
15589
|
this.shape = 'rounded';
|
|
15367
15590
|
this.size = 'xl';
|
|
15591
|
+
this.parentBorder = false;
|
|
15368
15592
|
|
|
15369
15593
|
this.privateDefaults();
|
|
15370
15594
|
}
|
|
@@ -15380,7 +15604,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15380
15604
|
'trigger': true,
|
|
15381
15605
|
'wrapper': true,
|
|
15382
15606
|
'hasFocus': this.hasFocus,
|
|
15383
|
-
'simple': this.simple
|
|
15607
|
+
'simple': this.simple,
|
|
15608
|
+
'parentBorder': this.parentBorder
|
|
15384
15609
|
};
|
|
15385
15610
|
}
|
|
15386
15611
|
|
|
@@ -15432,7 +15657,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15432
15657
|
/**
|
|
15433
15658
|
* @private
|
|
15434
15659
|
*/
|
|
15435
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
15660
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
15436
15661
|
|
|
15437
15662
|
/**
|
|
15438
15663
|
* @private
|
|
@@ -15647,6 +15872,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15647
15872
|
reflect: true
|
|
15648
15873
|
},
|
|
15649
15874
|
|
|
15875
|
+
/**
|
|
15876
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
15877
|
+
* @private
|
|
15878
|
+
*/
|
|
15879
|
+
parentBorder: {
|
|
15880
|
+
type: Boolean,
|
|
15881
|
+
reflect: true
|
|
15882
|
+
},
|
|
15883
|
+
|
|
15650
15884
|
/**
|
|
15651
15885
|
* If declared, the popover and trigger will be set to the same width.
|
|
15652
15886
|
*/
|
|
@@ -15774,7 +16008,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
15774
16008
|
*
|
|
15775
16009
|
*/
|
|
15776
16010
|
static register(name = "auro-dropdown") {
|
|
15777
|
-
AuroLibraryRuntimeUtils$
|
|
16011
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
|
|
15778
16012
|
}
|
|
15779
16013
|
|
|
15780
16014
|
/**
|
|
@@ -16110,8 +16344,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16110
16344
|
* @param {Event} event - The event object representing the slot change.
|
|
16111
16345
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
16112
16346
|
*/
|
|
16113
|
-
handleDefaultSlot(
|
|
16114
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
16347
|
+
handleDefaultSlot() {
|
|
16115
16348
|
|
|
16116
16349
|
if (this.onSlotChange) {
|
|
16117
16350
|
this.onSlotChange();
|
|
@@ -16173,6 +16406,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16173
16406
|
${this.chevron || this.common ? html$1`
|
|
16174
16407
|
<div
|
|
16175
16408
|
id="showStateIcon"
|
|
16409
|
+
class="chevron"
|
|
16176
16410
|
part="chevron">
|
|
16177
16411
|
<${this.iconTag}
|
|
16178
16412
|
category="interface"
|
|
@@ -16187,9 +16421,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16187
16421
|
<div class="${classMap(helpTextClasses)}">
|
|
16188
16422
|
<slot name="helpText"></slot>
|
|
16189
16423
|
</div>
|
|
16190
|
-
<div class="slotContent">
|
|
16191
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16192
|
-
</div>
|
|
16193
16424
|
<div id="bibSizer" part="size"></div>
|
|
16194
16425
|
<${this.dropdownBibTag}
|
|
16195
16426
|
id="bib"
|
|
@@ -16198,6 +16429,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16198
16429
|
?common="${this.common}"
|
|
16199
16430
|
?rounded="${this.common || this.rounded}"
|
|
16200
16431
|
?inset="${this.common || this.inset}">
|
|
16432
|
+
<div class="slotContent">
|
|
16433
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16434
|
+
</div>
|
|
16201
16435
|
</${this.dropdownBibTag}>
|
|
16202
16436
|
</div>
|
|
16203
16437
|
`;
|
|
@@ -16209,67 +16443,63 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16209
16443
|
* @returns {html} - Returns HTML for the classic layout.
|
|
16210
16444
|
*/
|
|
16211
16445
|
renderLayoutClassic() {
|
|
16212
|
-
const helpTextClasses = {
|
|
16213
|
-
'helpText': true,
|
|
16214
|
-
'leftIndent': false,
|
|
16215
|
-
'rightIndent': false
|
|
16216
|
-
};
|
|
16217
16446
|
|
|
16218
16447
|
return html$1`
|
|
16219
|
-
|
|
16448
|
+
<div>
|
|
16449
|
+
<div
|
|
16450
|
+
id="trigger"
|
|
16451
|
+
class="trigger"
|
|
16452
|
+
part="trigger"
|
|
16453
|
+
tabindex="${this.tabIndex}"
|
|
16454
|
+
?showBorder="${this.showTriggerBorders}"
|
|
16455
|
+
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16456
|
+
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16457
|
+
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16458
|
+
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16459
|
+
>
|
|
16460
|
+
<div class="triggerContentWrapper">
|
|
16461
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16462
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16463
|
+
</label>
|
|
16464
|
+
<div class="triggerContent">
|
|
16465
|
+
<slot
|
|
16466
|
+
name="trigger"
|
|
16467
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16468
|
+
</div>
|
|
16469
|
+
</div>
|
|
16470
|
+
${this.chevron || this.common ? html$1`
|
|
16471
|
+
<div
|
|
16472
|
+
id="showStateIcon"
|
|
16473
|
+
part="chevron">
|
|
16474
|
+
<${this.iconTag}
|
|
16475
|
+
category="interface"
|
|
16476
|
+
name="chevron-down"
|
|
16477
|
+
?onDark="${this.onDark}"
|
|
16478
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16479
|
+
>
|
|
16480
|
+
</${this.iconTag}>
|
|
16481
|
+
</div>
|
|
16482
|
+
` : undefined }
|
|
16483
|
+
</div>
|
|
16484
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
16485
|
+
<slot name="helpText"></slot>
|
|
16486
|
+
</${this.helpTextTag}>
|
|
16487
|
+
|
|
16488
|
+
<div id="bibSizer" part="size"></div>
|
|
16489
|
+
<${this.dropdownBibTag}
|
|
16490
|
+
id="bib"
|
|
16491
|
+
?data-show="${this.isPopoverVisible}"
|
|
16492
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
16493
|
+
?common="${this.common}"
|
|
16494
|
+
?rounded="${this.common || this.rounded}"
|
|
16495
|
+
?inset="${this.common || this.inset}"
|
|
16496
|
+
>
|
|
16497
|
+
<div class="slotContent">
|
|
16498
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16499
|
+
</div>
|
|
16500
|
+
</${this.dropdownBibTag}>
|
|
16501
|
+
</div>
|
|
16220
16502
|
`;
|
|
16221
|
-
// return html`
|
|
16222
|
-
// <div>
|
|
16223
|
-
// <div
|
|
16224
|
-
// id="trigger"
|
|
16225
|
-
// class="trigger"
|
|
16226
|
-
// part="trigger"
|
|
16227
|
-
// tabindex="${this.tabIndex}"
|
|
16228
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
16229
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
16230
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
16231
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
16232
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
16233
|
-
// >
|
|
16234
|
-
// <div class="triggerContentWrapper">
|
|
16235
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
16236
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
16237
|
-
// </label>
|
|
16238
|
-
// <div class="triggerContent">
|
|
16239
|
-
// <slot
|
|
16240
|
-
// name="trigger"
|
|
16241
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
16242
|
-
// </div>
|
|
16243
|
-
// </div>
|
|
16244
|
-
// ${this.chevron || this.common ? html`
|
|
16245
|
-
// <div
|
|
16246
|
-
// id="showStateIcon"
|
|
16247
|
-
// part="chevron">
|
|
16248
|
-
// <${this.iconTag}
|
|
16249
|
-
// category="interface"
|
|
16250
|
-
// name="chevron-down"
|
|
16251
|
-
// ?onDark="${this.onDark}"
|
|
16252
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
16253
|
-
// >
|
|
16254
|
-
// </${this.iconTag}>
|
|
16255
|
-
// </div>
|
|
16256
|
-
// ` : undefined }
|
|
16257
|
-
// </div>
|
|
16258
|
-
// <div class="slotContent">
|
|
16259
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
16260
|
-
// </div>
|
|
16261
|
-
// <div id="bibSizer" part="size"></div>
|
|
16262
|
-
// <${this.dropdownBibTag}
|
|
16263
|
-
// id="bib"
|
|
16264
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
16265
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
16266
|
-
// ?common="${this.common}"
|
|
16267
|
-
// ?rounded="${this.common || this.rounded}"
|
|
16268
|
-
// ?inset="${this.common || this.inset}"
|
|
16269
|
-
// >
|
|
16270
|
-
// </${this.dropdownBibTag}>
|
|
16271
|
-
// </div>
|
|
16272
|
-
// `;
|
|
16273
16503
|
}
|
|
16274
16504
|
|
|
16275
16505
|
/**
|
|
@@ -16336,7 +16566,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
16336
16566
|
|
|
16337
16567
|
var dropdownVersion = '3.0.0';
|
|
16338
16568
|
|
|
16339
|
-
var shapeSizeCss = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.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:
|
|
16569
|
+
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.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-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;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-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.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-md.parentBorder{border:0;min-height:44px;max-height:44px}.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-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.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}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
16340
16570
|
|
|
16341
16571
|
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}`;
|
|
16342
16572
|
|
|
@@ -20375,9 +20605,10 @@ class DateFormatter {
|
|
|
20375
20605
|
/**
|
|
20376
20606
|
* Convert a date object to string format.
|
|
20377
20607
|
* @param {Object} date - Date to convert to string.
|
|
20378
|
-
* @
|
|
20608
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
20609
|
+
* @returns {String} Returns the date as a string.
|
|
20379
20610
|
*/
|
|
20380
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
20611
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
20381
20612
|
year: "numeric",
|
|
20382
20613
|
month: "2-digit",
|
|
20383
20614
|
day: "2-digit",
|
|
@@ -20569,7 +20800,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
20569
20800
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
20570
20801
|
|
|
20571
20802
|
// Get the date string of the date object we created from the string date
|
|
20572
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
20803
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
20573
20804
|
|
|
20574
20805
|
// Guard Clause: Generated date matches date string input
|
|
20575
20806
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -20734,7 +20965,7 @@ const {
|
|
|
20734
20965
|
|
|
20735
20966
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
20736
20967
|
|
|
20737
|
-
let AuroLibraryRuntimeUtils$
|
|
20968
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
20738
20969
|
|
|
20739
20970
|
/* eslint-disable jsdoc/require-param */
|
|
20740
20971
|
|
|
@@ -20804,7 +21035,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
20804
21035
|
class AuroFormValidation {
|
|
20805
21036
|
|
|
20806
21037
|
constructor() {
|
|
20807
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
21038
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
20808
21039
|
}
|
|
20809
21040
|
|
|
20810
21041
|
/**
|
|
@@ -22365,7 +22596,7 @@ class AuroDependencyVersioning {
|
|
|
22365
22596
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
22366
22597
|
*/
|
|
22367
22598
|
|
|
22368
|
-
class AuroElement extends LitElement {
|
|
22599
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
22369
22600
|
|
|
22370
22601
|
// function to define props used within the scope of this component
|
|
22371
22602
|
static get properties() {
|
|
@@ -22389,7 +22620,7 @@ class AuroElement extends LitElement {
|
|
|
22389
22620
|
|
|
22390
22621
|
return 'false'
|
|
22391
22622
|
}
|
|
22392
|
-
}
|
|
22623
|
+
};
|
|
22393
22624
|
|
|
22394
22625
|
var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
22395
22626
|
|
|
@@ -22433,7 +22664,7 @@ var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
22433
22664
|
*/
|
|
22434
22665
|
|
|
22435
22666
|
// build the component class
|
|
22436
|
-
class BaseIcon extends AuroElement {
|
|
22667
|
+
class BaseIcon extends AuroElement$2 {
|
|
22437
22668
|
constructor() {
|
|
22438
22669
|
super();
|
|
22439
22670
|
this.onDark = false;
|
|
@@ -22509,6 +22740,76 @@ var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
22509
22740
|
|
|
22510
22741
|
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)}`;
|
|
22511
22742
|
|
|
22743
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
22744
|
+
// See LICENSE in the project root for license information.
|
|
22745
|
+
|
|
22746
|
+
// ---------------------------------------------------------------------
|
|
22747
|
+
|
|
22748
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
22749
|
+
|
|
22750
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
22751
|
+
|
|
22752
|
+
/* eslint-disable jsdoc/require-param */
|
|
22753
|
+
|
|
22754
|
+
/**
|
|
22755
|
+
* This will register a new custom element with the browser.
|
|
22756
|
+
* @param {String} name - The name of the custom element.
|
|
22757
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
22758
|
+
* @returns {void}
|
|
22759
|
+
*/
|
|
22760
|
+
registerComponent(name, componentClass) {
|
|
22761
|
+
if (!customElements.get(name)) {
|
|
22762
|
+
customElements.define(name, class extends componentClass {});
|
|
22763
|
+
}
|
|
22764
|
+
}
|
|
22765
|
+
|
|
22766
|
+
/**
|
|
22767
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
22768
|
+
* @returns {void}
|
|
22769
|
+
*/
|
|
22770
|
+
closestElement(
|
|
22771
|
+
selector, // selector like in .closest()
|
|
22772
|
+
base = this, // extra functionality to skip a parent
|
|
22773
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
22774
|
+
!el || el === document || el === window
|
|
22775
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
22776
|
+
: found
|
|
22777
|
+
? found // found a selector INside this element
|
|
22778
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
22779
|
+
) {
|
|
22780
|
+
return __Closest(base);
|
|
22781
|
+
}
|
|
22782
|
+
/* eslint-enable jsdoc/require-param */
|
|
22783
|
+
|
|
22784
|
+
/**
|
|
22785
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
22786
|
+
* @param {Object} elem - The element to check.
|
|
22787
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
22788
|
+
* @returns {void}
|
|
22789
|
+
*/
|
|
22790
|
+
handleComponentTagRename(elem, tagName) {
|
|
22791
|
+
const tag = tagName.toLowerCase();
|
|
22792
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22793
|
+
|
|
22794
|
+
if (elemTag !== tag) {
|
|
22795
|
+
elem.setAttribute(tag, true);
|
|
22796
|
+
}
|
|
22797
|
+
}
|
|
22798
|
+
|
|
22799
|
+
/**
|
|
22800
|
+
* Validates if an element is a specific Auro component.
|
|
22801
|
+
* @param {Object} elem - The element to validate.
|
|
22802
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
22803
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
22804
|
+
*/
|
|
22805
|
+
elementMatch(elem, tagName) {
|
|
22806
|
+
const tag = tagName.toLowerCase();
|
|
22807
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
22808
|
+
|
|
22809
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
22810
|
+
}
|
|
22811
|
+
};
|
|
22812
|
+
|
|
22512
22813
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
22513
22814
|
// See LICENSE in the project root for license information.
|
|
22514
22815
|
|
|
@@ -22716,7 +23017,7 @@ class AuroLoader extends LitElement {
|
|
|
22716
23017
|
/**
|
|
22717
23018
|
* @private
|
|
22718
23019
|
*/
|
|
22719
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
23020
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
22720
23021
|
|
|
22721
23022
|
this.orbit = false;
|
|
22722
23023
|
this.ringworm = false;
|
|
@@ -22779,7 +23080,7 @@ class AuroLoader extends LitElement {
|
|
|
22779
23080
|
*
|
|
22780
23081
|
*/
|
|
22781
23082
|
static register(name = "auro-loader") {
|
|
22782
|
-
AuroLibraryRuntimeUtils$
|
|
23083
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
22783
23084
|
}
|
|
22784
23085
|
|
|
22785
23086
|
firstUpdated() {
|
|
@@ -23083,7 +23384,7 @@ class AuroButton extends LitElement {
|
|
|
23083
23384
|
*
|
|
23084
23385
|
*/
|
|
23085
23386
|
static register(name = "auro-button") {
|
|
23086
|
-
AuroLibraryRuntimeUtils$
|
|
23387
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
23087
23388
|
}
|
|
23088
23389
|
|
|
23089
23390
|
/**
|
|
@@ -23449,7 +23750,7 @@ class AuroInput extends BaseInput {
|
|
|
23449
23750
|
/**
|
|
23450
23751
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
23451
23752
|
* @private
|
|
23452
|
-
* @returns {object} - Returns classmap
|
|
23753
|
+
* @returns {object} - Returns classmap.
|
|
23453
23754
|
*/
|
|
23454
23755
|
get commonInputClasses() {
|
|
23455
23756
|
return {
|
|
@@ -23458,9 +23759,9 @@ class AuroInput extends BaseInput {
|
|
|
23458
23759
|
}
|
|
23459
23760
|
|
|
23460
23761
|
/**
|
|
23461
|
-
* Returns classmap configuration for html5 inputs in
|
|
23762
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
23462
23763
|
* @private
|
|
23463
|
-
* @return {object} - Returns classmap
|
|
23764
|
+
* @return {object} - Returns classmap.
|
|
23464
23765
|
*/
|
|
23465
23766
|
get legacyInputClasses() {
|
|
23466
23767
|
return {
|
|
@@ -23469,6 +23770,11 @@ class AuroInput extends BaseInput {
|
|
|
23469
23770
|
};
|
|
23470
23771
|
}
|
|
23471
23772
|
|
|
23773
|
+
/**
|
|
23774
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
23775
|
+
* @private
|
|
23776
|
+
* @return {object} - Returns classmap.
|
|
23777
|
+
*/
|
|
23472
23778
|
get commonWrapperClasses() {
|
|
23473
23779
|
return {
|
|
23474
23780
|
'wrapper': true,
|
|
@@ -23477,6 +23783,11 @@ class AuroInput extends BaseInput {
|
|
|
23477
23783
|
};
|
|
23478
23784
|
}
|
|
23479
23785
|
|
|
23786
|
+
/**
|
|
23787
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
23788
|
+
* @private
|
|
23789
|
+
* @return {object} - Returns classmap.
|
|
23790
|
+
*/
|
|
23480
23791
|
get helpTextClasses() {
|
|
23481
23792
|
return {
|
|
23482
23793
|
'helpTextWrapper': true,
|
|
@@ -23494,7 +23805,7 @@ class AuroInput extends BaseInput {
|
|
|
23494
23805
|
*
|
|
23495
23806
|
*/
|
|
23496
23807
|
static register(name = "auro-input") {
|
|
23497
|
-
AuroLibraryRuntimeUtils$
|
|
23808
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroInput);
|
|
23498
23809
|
}
|
|
23499
23810
|
|
|
23500
23811
|
/**
|
|
@@ -23730,9 +24041,9 @@ class AuroInput extends BaseInput {
|
|
|
23730
24041
|
}
|
|
23731
24042
|
|
|
23732
24043
|
/**
|
|
23733
|
-
* Returns HTML for the
|
|
24044
|
+
* Returns HTML for the classic layout.
|
|
23734
24045
|
* @private
|
|
23735
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the
|
|
24046
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
23736
24047
|
*/
|
|
23737
24048
|
renderLayoutClassic() {
|
|
23738
24049
|
return html$1`
|
|
@@ -23859,6 +24170,98 @@ class AuroInput extends BaseInput {
|
|
|
23859
24170
|
|
|
23860
24171
|
var inputVersion = '4.2.0';
|
|
23861
24172
|
|
|
24173
|
+
class AuroElement extends LitElement {
|
|
24174
|
+
static get properties() {
|
|
24175
|
+
return {
|
|
24176
|
+
|
|
24177
|
+
/**
|
|
24178
|
+
* Defines the language of an element.
|
|
24179
|
+
* @default {'default'}
|
|
24180
|
+
*/
|
|
24181
|
+
layout: {
|
|
24182
|
+
type: String,
|
|
24183
|
+
attribute: "layout",
|
|
24184
|
+
reflect: true
|
|
24185
|
+
},
|
|
24186
|
+
|
|
24187
|
+
shape: {
|
|
24188
|
+
type: String,
|
|
24189
|
+
attribute: "shape",
|
|
24190
|
+
reflect: true
|
|
24191
|
+
},
|
|
24192
|
+
|
|
24193
|
+
size: {
|
|
24194
|
+
type: String,
|
|
24195
|
+
attribute: "size",
|
|
24196
|
+
reflect: true
|
|
24197
|
+
},
|
|
24198
|
+
|
|
24199
|
+
onDark: {
|
|
24200
|
+
type: Boolean,
|
|
24201
|
+
attribute: "ondark",
|
|
24202
|
+
reflect: true
|
|
24203
|
+
}
|
|
24204
|
+
};
|
|
24205
|
+
}
|
|
24206
|
+
|
|
24207
|
+
resetShapeClasses() {
|
|
24208
|
+
if (this.shape && this.size) {
|
|
24209
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24210
|
+
|
|
24211
|
+
if (wrapper) {
|
|
24212
|
+
wrapper.classList.forEach((className) => {
|
|
24213
|
+
if (className.startsWith('shape-')) {
|
|
24214
|
+
wrapper.classList.remove(className);
|
|
24215
|
+
}
|
|
24216
|
+
});
|
|
24217
|
+
|
|
24218
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
24219
|
+
}
|
|
24220
|
+
}
|
|
24221
|
+
}
|
|
24222
|
+
|
|
24223
|
+
resetLayoutClasses() {
|
|
24224
|
+
if (this.layout) {
|
|
24225
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
24226
|
+
|
|
24227
|
+
if (wrapper) {
|
|
24228
|
+
wrapper.classList.forEach((className) => {
|
|
24229
|
+
if (className.startsWith('layout-')) {
|
|
24230
|
+
wrapper.classList.remove(className);
|
|
24231
|
+
}
|
|
24232
|
+
});
|
|
24233
|
+
|
|
24234
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
24235
|
+
}
|
|
24236
|
+
}
|
|
24237
|
+
}
|
|
24238
|
+
|
|
24239
|
+
updateComponentArchitecture() {
|
|
24240
|
+
this.resetLayoutClasses();
|
|
24241
|
+
this.resetShapeClasses();
|
|
24242
|
+
}
|
|
24243
|
+
|
|
24244
|
+
updated(changedProperties) {
|
|
24245
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
24246
|
+
this.updateComponentArchitecture();
|
|
24247
|
+
}
|
|
24248
|
+
}
|
|
24249
|
+
|
|
24250
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
24251
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
24252
|
+
render() {
|
|
24253
|
+
try {
|
|
24254
|
+
return this.renderLayout();
|
|
24255
|
+
} catch (error) {
|
|
24256
|
+
// failed to get the defined layout
|
|
24257
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
24258
|
+
|
|
24259
|
+
// fallback to the default layout
|
|
24260
|
+
return this.getLayout('default');
|
|
24261
|
+
}
|
|
24262
|
+
}
|
|
24263
|
+
}
|
|
24264
|
+
|
|
23862
24265
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
23863
24266
|
// See LICENSE in the project root for license information.
|
|
23864
24267
|
|
|
@@ -23887,7 +24290,7 @@ var inputVersion = '4.2.0';
|
|
|
23887
24290
|
*/
|
|
23888
24291
|
|
|
23889
24292
|
// build the component class
|
|
23890
|
-
class AuroDatePicker extends
|
|
24293
|
+
class AuroDatePicker extends AuroElement {
|
|
23891
24294
|
constructor() {
|
|
23892
24295
|
super();
|
|
23893
24296
|
|
|
@@ -23962,7 +24365,7 @@ class AuroDatePicker extends LitElement {
|
|
|
23962
24365
|
/**
|
|
23963
24366
|
* @private
|
|
23964
24367
|
*/
|
|
23965
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
24368
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
23966
24369
|
|
|
23967
24370
|
/**
|
|
23968
24371
|
* @private
|
|
@@ -23988,6 +24391,11 @@ class AuroDatePicker extends LitElement {
|
|
|
23988
24391
|
* @private
|
|
23989
24392
|
*/
|
|
23990
24393
|
this.monthFirst = undefined;
|
|
24394
|
+
|
|
24395
|
+
// Layout Config
|
|
24396
|
+
this.layout = 'classic';
|
|
24397
|
+
this.shape = 'classic';
|
|
24398
|
+
this.size = 'lg';
|
|
23991
24399
|
}
|
|
23992
24400
|
|
|
23993
24401
|
// This function is to define props used within the scope of this component
|
|
@@ -24268,7 +24676,10 @@ class AuroDatePicker extends LitElement {
|
|
|
24268
24676
|
return [
|
|
24269
24677
|
styleCss$d,
|
|
24270
24678
|
colorCss$c,
|
|
24271
|
-
tokensCss$a
|
|
24679
|
+
tokensCss$a,
|
|
24680
|
+
|
|
24681
|
+
// layouts
|
|
24682
|
+
classicLayoutColor
|
|
24272
24683
|
];
|
|
24273
24684
|
}
|
|
24274
24685
|
|
|
@@ -24281,7 +24692,7 @@ class AuroDatePicker extends LitElement {
|
|
|
24281
24692
|
*
|
|
24282
24693
|
*/
|
|
24283
24694
|
static register(name = "auro-datepicker") {
|
|
24284
|
-
AuroLibraryRuntimeUtils$
|
|
24695
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroDatePicker);
|
|
24285
24696
|
}
|
|
24286
24697
|
|
|
24287
24698
|
/**
|
|
@@ -24453,7 +24864,7 @@ class AuroDatePicker extends LitElement {
|
|
|
24453
24864
|
* @returns {void}
|
|
24454
24865
|
*/
|
|
24455
24866
|
configureInput() {
|
|
24456
|
-
this.triggerInput = this.dropdown.querySelector('[slot="trigger"');
|
|
24867
|
+
this.triggerInput = this.dropdown.querySelector('[slot="trigger"]');
|
|
24457
24868
|
|
|
24458
24869
|
this.inputList = [...this.dropdown.querySelectorAll(this.inputTag._$litStatic$)];
|
|
24459
24870
|
|
|
@@ -24894,70 +25305,152 @@ class AuroDatePicker extends LitElement {
|
|
|
24894
25305
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
24895
25306
|
}
|
|
24896
25307
|
|
|
25308
|
+
// layout render methods
|
|
25309
|
+
// ------------------------------------
|
|
25310
|
+
|
|
25311
|
+
/**
|
|
25312
|
+
* Base wrapper for the datepicker layout - every layout follows this same structure
|
|
25313
|
+
* with minor variations in DOM structure.
|
|
25314
|
+
* @param {import("lit").TemplateResult} content - The content to be rendered inside the base layout.
|
|
25315
|
+
* @return {import("lit").TemplateResult}
|
|
25316
|
+
* @private
|
|
25317
|
+
*/
|
|
25318
|
+
_renderBaseLayout(content) {
|
|
25319
|
+
return html$1`
|
|
25320
|
+
<div
|
|
25321
|
+
part="wrapper">
|
|
25322
|
+
<div class="accents left">
|
|
25323
|
+
calendar icon
|
|
25324
|
+
</div>
|
|
25325
|
+
<div class="mainContent">
|
|
25326
|
+
${content}
|
|
25327
|
+
</div>
|
|
25328
|
+
<div class="accents right">
|
|
25329
|
+
error and/or close icon here :)
|
|
25330
|
+
</div>
|
|
25331
|
+
</div>
|
|
25332
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25333
|
+
help text here (see combobox for example)
|
|
25334
|
+
</div>
|
|
25335
|
+
`;
|
|
25336
|
+
}
|
|
25337
|
+
|
|
25338
|
+
/**
|
|
25339
|
+
* Renders the emphasized layout for the datepicker.
|
|
25340
|
+
* @private
|
|
25341
|
+
* @return {import("lit").TemplateResult}
|
|
25342
|
+
*/
|
|
25343
|
+
renderEmphasizedLayout() {
|
|
25344
|
+
return html$1`
|
|
25345
|
+
<div
|
|
25346
|
+
part="wrapper">
|
|
25347
|
+
<div class="accents left">
|
|
25348
|
+
calendar icon
|
|
25349
|
+
</div>
|
|
25350
|
+
<div class="mainContent">
|
|
25351
|
+
${this.renderTempInputs()}
|
|
25352
|
+
</div>
|
|
25353
|
+
<div class="accents right">
|
|
25354
|
+
error and/or close icon here :)
|
|
25355
|
+
</div>
|
|
25356
|
+
</div>
|
|
25357
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
25358
|
+
help text here (see combobox for example)
|
|
25359
|
+
</div>
|
|
25360
|
+
`;
|
|
25361
|
+
}
|
|
25362
|
+
|
|
25363
|
+
renderLayoutFromAttributes() {
|
|
25364
|
+
switch (this.layout) {
|
|
25365
|
+
case 'emphasized':
|
|
25366
|
+
return this.renderEmphasizedLayout();
|
|
25367
|
+
default:
|
|
25368
|
+
// TODO: remove when all base layouts are implemented and instead return classic
|
|
25369
|
+
return html$1`
|
|
25370
|
+
<p>Please implement layout "${this.layout}" for datepicker</p>
|
|
25371
|
+
`;
|
|
25372
|
+
}
|
|
25373
|
+
}
|
|
25374
|
+
|
|
25375
|
+
renderTempInputs() {
|
|
25376
|
+
return html$1`
|
|
25377
|
+
<${this.inputTag}
|
|
25378
|
+
id="${this.generateRandomString(12)}"
|
|
25379
|
+
bordered
|
|
25380
|
+
class="dateFrom"
|
|
25381
|
+
?onDark="${this.onDark}"
|
|
25382
|
+
?required="${this.required}"
|
|
25383
|
+
noValidate
|
|
25384
|
+
type="date"
|
|
25385
|
+
.format="${this.format}"
|
|
25386
|
+
.max="${this.maxDate}"
|
|
25387
|
+
.min="${this.minDate}"
|
|
25388
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25389
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25390
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25391
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25392
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25393
|
+
?disabled="${this.disabled}"
|
|
25394
|
+
inputmode="${ifDefined(this.inputmode)}"
|
|
25395
|
+
part="input">
|
|
25396
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
25397
|
+
</${this.inputTag}>
|
|
25398
|
+
${this.range ? html$1`
|
|
25399
|
+
<${this.inputTag}
|
|
25400
|
+
id="${this.generateRandomString(12)}"
|
|
25401
|
+
bordered
|
|
25402
|
+
class="dateTo"
|
|
25403
|
+
?onDark="${this.onDark}"
|
|
25404
|
+
?required="${this.required}"
|
|
25405
|
+
noValidate
|
|
25406
|
+
type="date"
|
|
25407
|
+
.format="${this.format}"
|
|
25408
|
+
.max="${this.maxDate}"
|
|
25409
|
+
.min="${this.minDate}"
|
|
25410
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
25411
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
25412
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
25413
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
25414
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
25415
|
+
?disabled="${this.disabled}"
|
|
25416
|
+
part="input">
|
|
25417
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
25418
|
+
</${this.inputTag}>
|
|
25419
|
+
` : undefined}`;
|
|
25420
|
+
}
|
|
25421
|
+
|
|
25422
|
+
// ------------------------------------
|
|
25423
|
+
// end of layout render methods
|
|
25424
|
+
|
|
24897
25425
|
// function that renders the HTML and CSS into the scope of the component
|
|
24898
25426
|
render() {
|
|
25427
|
+
// Base HTML render() handles dropdown and calendar bib
|
|
24899
25428
|
return html$1`
|
|
24900
|
-
<div
|
|
25429
|
+
<div>
|
|
24901
25430
|
<${this.dropdownTag}
|
|
24902
|
-
|
|
24903
|
-
fluid
|
|
24904
|
-
bordered
|
|
24905
|
-
rounded
|
|
25431
|
+
?autoPlacement="${this.autoPlacement}"
|
|
24906
25432
|
?onDark="${this.onDark}"
|
|
24907
25433
|
?disabled="${this.disabled}"
|
|
24908
25434
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24909
|
-
|
|
25435
|
+
?noFlip="${this.noFlip}"
|
|
24910
25436
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24911
|
-
.
|
|
25437
|
+
.layout="${this.layout}"
|
|
24912
25438
|
.offset="${this.offset}"
|
|
24913
|
-
|
|
24914
|
-
|
|
24915
|
-
|
|
25439
|
+
.placement="${this.placement}"
|
|
25440
|
+
.shape="${this.shape}"
|
|
25441
|
+
.size="${this.size}"
|
|
25442
|
+
bordered
|
|
25443
|
+
disableEventShow
|
|
25444
|
+
fluid
|
|
25445
|
+
for="dropdownMenu"
|
|
25446
|
+
part="dropdown"
|
|
25447
|
+
rounded
|
|
25448
|
+
simple
|
|
25449
|
+
>
|
|
24916
25450
|
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
24917
|
-
|
|
24918
|
-
id="${this.generateRandomString(12)}"
|
|
24919
|
-
bordered
|
|
24920
|
-
class="dateFrom"
|
|
24921
|
-
?onDark="${this.onDark}"
|
|
24922
|
-
?required="${this.required}"
|
|
24923
|
-
noValidate
|
|
24924
|
-
type="date"
|
|
24925
|
-
.format="${this.format}"
|
|
24926
|
-
.max="${this.maxDate}"
|
|
24927
|
-
.min="${this.minDate}"
|
|
24928
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
24929
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
24930
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
24931
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24932
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24933
|
-
?disabled="${this.disabled}"
|
|
24934
|
-
inputmode="${ifDefined(this.inputmode)}"
|
|
24935
|
-
part="input">
|
|
24936
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
24937
|
-
</${this.inputTag}>
|
|
24938
|
-
${this.range ? html$1`
|
|
24939
|
-
<${this.inputTag}
|
|
24940
|
-
id="${this.generateRandomString(12)}"
|
|
24941
|
-
bordered
|
|
24942
|
-
class="dateTo"
|
|
24943
|
-
?onDark="${this.onDark}"
|
|
24944
|
-
?required="${this.required}"
|
|
24945
|
-
noValidate
|
|
24946
|
-
type="date"
|
|
24947
|
-
.format="${this.format}"
|
|
24948
|
-
.max="${this.maxDate}"
|
|
24949
|
-
.min="${this.minDate}"
|
|
24950
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
24951
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
24952
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
24953
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
24954
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
24955
|
-
?disabled="${this.disabled}"
|
|
24956
|
-
part="input">
|
|
24957
|
-
<span slot="label"><slot name="toLabel"></slot></span>
|
|
24958
|
-
</${this.inputTag}>
|
|
24959
|
-
` : undefined}
|
|
25451
|
+
${this.renderLayoutFromAttributes()}
|
|
24960
25452
|
</div>
|
|
25453
|
+
|
|
24961
25454
|
<div class="calendarWrapper" part="calendarWrapper">
|
|
24962
25455
|
<auro-formkit-calendar
|
|
24963
25456
|
?largeFullscreenHeadline="${this.largeFullscreenHeadline}"
|