@aurodesignsystem-dev/auro-formkit 0.0.0-pr1494.5 → 0.0.0-pr1497.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +18 -18
- package/components/combobox/demo/getting-started.min.js +18 -18
- package/components/combobox/demo/index.min.js +18 -18
- package/components/combobox/dist/index.js +18 -18
- package/components/combobox/dist/registered.js +18 -18
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/api.md +9 -9
- package/components/datepicker/demo/customize.md +46 -19
- package/components/datepicker/demo/index.min.js +64 -79
- package/components/datepicker/dist/index.js +64 -79
- package/components/datepicker/dist/registered.js +64 -79
- package/components/datepicker/dist/src/auro-datepicker.d.ts +36 -8
- package/components/datepicker/dist/src/utilities.d.ts +0 -14
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +104 -119
- package/components/form/demo/getting-started.min.js +104 -119
- package/components/form/demo/index.min.js +104 -119
- package/components/form/demo/registerDemoDeps.min.js +104 -119
- package/components/input/demo/customize.md +29 -107
- package/components/input/demo/customize.min.js +16 -16
- package/components/input/demo/getting-started.md +16 -6
- package/components/input/demo/getting-started.min.js +16 -16
- package/components/input/demo/index.min.js +16 -16
- package/components/input/dist/auro-input-util.d.ts +1 -1
- package/components/input/dist/index.js +16 -16
- package/components/input/dist/registered.js +16 -16
- package/components/input/dist/utilities.d.ts +1 -2
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +15 -55
- package/package.json +1 -1
|
@@ -11162,27 +11162,17 @@ let AuroInputUtilities$3 = class AuroInputUtilities {
|
|
|
11162
11162
|
* Converts a model value to a display value for the input element.
|
|
11163
11163
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
11164
11164
|
* @private
|
|
11165
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
11166
11165
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
11167
11166
|
* @param {string} format - The date format string.
|
|
11168
|
-
* @returns {string}
|
|
11167
|
+
* @returns {string | undefined}
|
|
11169
11168
|
*/
|
|
11170
|
-
toFormattedValue(
|
|
11171
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
11172
|
-
return value;
|
|
11173
|
-
}
|
|
11174
|
-
|
|
11175
|
-
if (!dateFormatter$3.isValidDate(value)) {
|
|
11176
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
11177
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
11178
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
11179
|
-
}
|
|
11180
|
-
|
|
11169
|
+
toFormattedValue(valueObject, format) {
|
|
11181
11170
|
const normalizedFormat = format.toLowerCase();
|
|
11182
11171
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
11183
11172
|
|
|
11184
11173
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
11185
|
-
|
|
11174
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
11175
|
+
return undefined;
|
|
11186
11176
|
}
|
|
11187
11177
|
|
|
11188
11178
|
return maskOptions.format(valueObject);
|
|
@@ -12100,7 +12090,17 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
|
|
|
12100
12090
|
this.hasValue = false;
|
|
12101
12091
|
}
|
|
12102
12092
|
|
|
12103
|
-
|
|
12093
|
+
let formattedValue = this.value;
|
|
12094
|
+
if (this.type === 'date') {
|
|
12095
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
12096
|
+
if (!formattedDate) {
|
|
12097
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
12098
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
12099
|
+
formattedValue = this.value;
|
|
12100
|
+
} else {
|
|
12101
|
+
formattedValue = formattedDate;
|
|
12102
|
+
}
|
|
12103
|
+
}
|
|
12104
12104
|
|
|
12105
12105
|
if (formattedValue !== this.inputElement.value) {
|
|
12106
12106
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -12964,7 +12964,7 @@ let AuroHelpText$9 = class AuroHelpText extends i$4 {
|
|
|
12964
12964
|
}
|
|
12965
12965
|
};
|
|
12966
12966
|
|
|
12967
|
-
var formkitVersion$9 = '
|
|
12967
|
+
var formkitVersion$9 = '202606081518';
|
|
12968
12968
|
|
|
12969
12969
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12970
12970
|
// See LICENSE in the project root for license information.
|
|
@@ -24194,27 +24194,17 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
|
24194
24194
|
* Converts a model value to a display value for the input element.
|
|
24195
24195
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
24196
24196
|
* @private
|
|
24197
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
24198
24197
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
24199
24198
|
* @param {string} format - The date format string.
|
|
24200
|
-
* @returns {string}
|
|
24199
|
+
* @returns {string | undefined}
|
|
24201
24200
|
*/
|
|
24202
|
-
toFormattedValue(
|
|
24203
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
24204
|
-
return value;
|
|
24205
|
-
}
|
|
24206
|
-
|
|
24207
|
-
if (!dateFormatter$1.isValidDate(value)) {
|
|
24208
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
24209
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
24210
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
24211
|
-
}
|
|
24212
|
-
|
|
24201
|
+
toFormattedValue(valueObject, format) {
|
|
24213
24202
|
const normalizedFormat = format.toLowerCase();
|
|
24214
24203
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
24215
24204
|
|
|
24216
24205
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
24217
|
-
|
|
24206
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
24207
|
+
return undefined;
|
|
24218
24208
|
}
|
|
24219
24209
|
|
|
24220
24210
|
return maskOptions.format(valueObject);
|
|
@@ -24238,29 +24228,6 @@ function getDateFormatFromLocale$1 (locale) {
|
|
|
24238
24228
|
|
|
24239
24229
|
class AuroDatepickerUtilities {
|
|
24240
24230
|
|
|
24241
|
-
/**
|
|
24242
|
-
* Converts an ISO date string (yyyy-mm-dd) to any display format.
|
|
24243
|
-
* @param {string} isoStr - ISO date string.
|
|
24244
|
-
* @param {string} format - Target display format (e.g. "mm/dd/yyyy", "dd/mm/yyyy").
|
|
24245
|
-
* @returns {string|undefined}
|
|
24246
|
-
*/
|
|
24247
|
-
toCustomFormat(isoStr, format) {
|
|
24248
|
-
if (!isoStr || !format) return undefined;
|
|
24249
|
-
try {
|
|
24250
|
-
const date = dateFormatter$1.stringToDateInstance(isoStr);
|
|
24251
|
-
const year = String(date.getFullYear()).padStart(4, '0');
|
|
24252
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
24253
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
24254
|
-
return format.toLowerCase()
|
|
24255
|
-
.replace(/yyyy/iu, year)
|
|
24256
|
-
.replace(/yy/iu, year.slice(-2))
|
|
24257
|
-
.replace(/mm/iu, month)
|
|
24258
|
-
.replace(/dd/iu, day);
|
|
24259
|
-
} catch {
|
|
24260
|
-
return undefined;
|
|
24261
|
-
}
|
|
24262
|
-
}
|
|
24263
|
-
|
|
24264
24231
|
/**
|
|
24265
24232
|
* Converts any date object to a date object representing the first day of the month.
|
|
24266
24233
|
* @param {Object} date - Date to convert to the first day of the month.
|
|
@@ -24286,17 +24253,6 @@ class AuroDatepickerUtilities {
|
|
|
24286
24253
|
return months <= 0 ? 0 : months;
|
|
24287
24254
|
}
|
|
24288
24255
|
|
|
24289
|
-
/**
|
|
24290
|
-
* Function to format a number to two digits.
|
|
24291
|
-
* @private
|
|
24292
|
-
* @param {Number} num - Number to format.
|
|
24293
|
-
* @returns {String}
|
|
24294
|
-
*/
|
|
24295
|
-
formatTwoDigits(num) {
|
|
24296
|
-
const singleDigitThreshold = 10;
|
|
24297
|
-
return num < singleDigitThreshold ? `0${num}` : num;
|
|
24298
|
-
}
|
|
24299
|
-
|
|
24300
24256
|
/**
|
|
24301
24257
|
* Function to generate checkmark svg.
|
|
24302
24258
|
* @private
|
|
@@ -24360,6 +24316,7 @@ class UtilitiesCalendarRender {
|
|
|
24360
24316
|
determineDefinedCalendarRange(elem) {
|
|
24361
24317
|
if (elem.getAttribute('calendarStartDate') && elem.getAttribute('calendarEndDate')) {
|
|
24362
24318
|
// if we have a defined range of months, use that
|
|
24319
|
+
// prop is not in sync with attribute yet, use attribute value
|
|
24363
24320
|
elem.calendarRangeMonths = elem.util.monthDiff(dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarStartDate')), dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarEndDate')));
|
|
24364
24321
|
} else {
|
|
24365
24322
|
// if we don't have a defined range of months, use undefined
|
|
@@ -26690,7 +26647,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$4 {
|
|
|
26690
26647
|
}
|
|
26691
26648
|
};
|
|
26692
26649
|
|
|
26693
|
-
var formkitVersion$2$1 = '
|
|
26650
|
+
var formkitVersion$2$1 = '202606081518';
|
|
26694
26651
|
|
|
26695
26652
|
let l$1$2 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$3`${s$6(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1$2 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$1$2 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1$3=i$7`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
26696
26653
|
`,u$4$1=i$7`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -31069,7 +31026,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$4 {
|
|
|
31069
31026
|
}
|
|
31070
31027
|
};
|
|
31071
31028
|
|
|
31072
|
-
var formkitVersion$1$2 = '
|
|
31029
|
+
var formkitVersion$1$2 = '202606081518';
|
|
31073
31030
|
|
|
31074
31031
|
let AuroElement$2$2 = class AuroElement extends i$4 {
|
|
31075
31032
|
static get properties() {
|
|
@@ -42518,27 +42475,17 @@ let AuroInputUtilities$2 = class AuroInputUtilities {
|
|
|
42518
42475
|
* Converts a model value to a display value for the input element.
|
|
42519
42476
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
42520
42477
|
* @private
|
|
42521
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
42522
42478
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
42523
42479
|
* @param {string} format - The date format string.
|
|
42524
|
-
* @returns {string}
|
|
42480
|
+
* @returns {string | undefined}
|
|
42525
42481
|
*/
|
|
42526
|
-
toFormattedValue(
|
|
42527
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
42528
|
-
return value;
|
|
42529
|
-
}
|
|
42530
|
-
|
|
42531
|
-
if (!dateFormatter$2.isValidDate(value)) {
|
|
42532
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
42533
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
42534
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
42535
|
-
}
|
|
42536
|
-
|
|
42482
|
+
toFormattedValue(valueObject, format) {
|
|
42537
42483
|
const normalizedFormat = format.toLowerCase();
|
|
42538
42484
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
42539
42485
|
|
|
42540
42486
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
42541
|
-
|
|
42487
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
42488
|
+
return undefined;
|
|
42542
42489
|
}
|
|
42543
42490
|
|
|
42544
42491
|
return maskOptions.format(valueObject);
|
|
@@ -43456,7 +43403,17 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
|
|
|
43456
43403
|
this.hasValue = false;
|
|
43457
43404
|
}
|
|
43458
43405
|
|
|
43459
|
-
|
|
43406
|
+
let formattedValue = this.value;
|
|
43407
|
+
if (this.type === 'date') {
|
|
43408
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
43409
|
+
if (!formattedDate) {
|
|
43410
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
43411
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
43412
|
+
formattedValue = this.value;
|
|
43413
|
+
} else {
|
|
43414
|
+
formattedValue = formattedDate;
|
|
43415
|
+
}
|
|
43416
|
+
}
|
|
43460
43417
|
|
|
43461
43418
|
if (formattedValue !== this.inputElement.value) {
|
|
43462
43419
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -44320,7 +44277,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$4 {
|
|
|
44320
44277
|
}
|
|
44321
44278
|
};
|
|
44322
44279
|
|
|
44323
|
-
var formkitVersion$8 = '
|
|
44280
|
+
var formkitVersion$8 = '202606081518';
|
|
44324
44281
|
|
|
44325
44282
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
44326
44283
|
// See LICENSE in the project root for license information.
|
|
@@ -46405,42 +46362,66 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46405
46362
|
*/
|
|
46406
46363
|
// ─── Read-only *Object properties ─────────────────────────────────────────
|
|
46407
46364
|
|
|
46408
|
-
/**
|
|
46365
|
+
/**
|
|
46366
|
+
* Read-only `Date` object derived from `value`. Returns `undefined` when `value` is empty or not a valid date.
|
|
46367
|
+
* @returns {Date|undefined}
|
|
46368
|
+
*/
|
|
46409
46369
|
get valueObject() {
|
|
46410
46370
|
return this.value && dateFormatter$1.isValidDate(this.value) ? dateFormatter$1.stringToDateInstance(this.value) : undefined;
|
|
46411
46371
|
}
|
|
46412
46372
|
|
|
46413
|
-
/**
|
|
46373
|
+
/**
|
|
46374
|
+
* Read-only `Date` object derived from `valueEnd`. Returns `undefined` when `valueEnd` is empty or not a valid date.
|
|
46375
|
+
* @returns {Date|undefined}
|
|
46376
|
+
*/
|
|
46414
46377
|
get valueEndObject() {
|
|
46415
46378
|
return this.valueEnd && dateFormatter$1.isValidDate(this.valueEnd) ? dateFormatter$1.stringToDateInstance(this.valueEnd) : undefined;
|
|
46416
46379
|
}
|
|
46417
46380
|
|
|
46418
|
-
/**
|
|
46381
|
+
/**
|
|
46382
|
+
* Read-only `Date` object derived from `minDate`. Returns `undefined` when `minDate` is empty or not a valid date.
|
|
46383
|
+
* @returns {Date|undefined}
|
|
46384
|
+
*/
|
|
46419
46385
|
get minDateObject() {
|
|
46420
46386
|
return this.minDate && dateFormatter$1.isValidDate(this.minDate) ? dateFormatter$1.stringToDateInstance(this.minDate) : undefined;
|
|
46421
46387
|
}
|
|
46422
46388
|
|
|
46423
|
-
/**
|
|
46389
|
+
/**
|
|
46390
|
+
* Read-only `Date` object derived from `maxDate`. Returns `undefined` when `maxDate` is empty or not a valid date.
|
|
46391
|
+
* @returns {Date|undefined}
|
|
46392
|
+
*/
|
|
46424
46393
|
get maxDateObject() {
|
|
46425
46394
|
return this.maxDate && dateFormatter$1.isValidDate(this.maxDate) ? dateFormatter$1.stringToDateInstance(this.maxDate) : undefined;
|
|
46426
46395
|
}
|
|
46427
46396
|
|
|
46428
|
-
/**
|
|
46397
|
+
/**
|
|
46398
|
+
* Read-only `Date` object derived from `calendarStartDate`. Returns `undefined` when `calendarStartDate` is empty or not a valid date.
|
|
46399
|
+
* @returns {Date|undefined}
|
|
46400
|
+
*/
|
|
46429
46401
|
get calendarStartDateObject() {
|
|
46430
46402
|
return this.calendarStartDate && dateFormatter$1.isValidDate(this.calendarStartDate) ? dateFormatter$1.stringToDateInstance(this.calendarStartDate) : undefined;
|
|
46431
46403
|
}
|
|
46432
46404
|
|
|
46433
|
-
/**
|
|
46405
|
+
/**
|
|
46406
|
+
* Read-only `Date` object derived from `calendarEndDate`. Returns `undefined` when `calendarEndDate` is empty or not a valid date.
|
|
46407
|
+
* @returns {Date|undefined}
|
|
46408
|
+
*/
|
|
46434
46409
|
get calendarEndDateObject() {
|
|
46435
46410
|
return this.calendarEndDate && dateFormatter$1.isValidDate(this.calendarEndDate) ? dateFormatter$1.stringToDateInstance(this.calendarEndDate) : undefined;
|
|
46436
46411
|
}
|
|
46437
46412
|
|
|
46438
|
-
/**
|
|
46413
|
+
/**
|
|
46414
|
+
* Read-only `Date` object derived from `centralDate`. Returns `undefined` when `centralDate` is empty or not a valid date.
|
|
46415
|
+
* @returns {Date|undefined}
|
|
46416
|
+
*/
|
|
46439
46417
|
get centralDateObject() {
|
|
46440
46418
|
return this.centralDate && dateFormatter$1.isValidDate(this.centralDate) ? dateFormatter$1.stringToDateInstance(this.centralDate) : undefined;
|
|
46441
46419
|
}
|
|
46442
46420
|
|
|
46443
|
-
/**
|
|
46421
|
+
/**
|
|
46422
|
+
* Read-only `Date` object derived from `calendarFocusDate`. Returns `undefined` when `calendarFocusDate` is empty or not a valid date.
|
|
46423
|
+
* @returns {Date|undefined}
|
|
46424
|
+
*/
|
|
46444
46425
|
get calendarFocusDateObject() {
|
|
46445
46426
|
return this.calendarFocusDate && dateFormatter$1.isValidDate(this.calendarFocusDate) ? dateFormatter$1.stringToDateInstance(this.calendarFocusDate) : undefined;
|
|
46446
46427
|
}
|
|
@@ -46892,6 +46873,10 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46892
46873
|
this.hasAllValues = (this.value && this.value.length > 0) && (this.valueEnd && this.valueEnd.length > 0); // eslint-disable-line no-extra-parens
|
|
46893
46874
|
}
|
|
46894
46875
|
|
|
46876
|
+
/**
|
|
46877
|
+
* Returns `true` when the datepicker has an active validation error.
|
|
46878
|
+
* @returns {boolean}
|
|
46879
|
+
*/
|
|
46895
46880
|
get hasError() {
|
|
46896
46881
|
return this.validity !== undefined && this.validity !== 'valid';
|
|
46897
46882
|
}
|
|
@@ -46905,10 +46890,10 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46905
46890
|
willUpdate(changedProperties) {
|
|
46906
46891
|
if (changedProperties.has('locale')) {
|
|
46907
46892
|
try {
|
|
46908
|
-
|
|
46909
|
-
|
|
46910
|
-
this._validLocale = this.locale;
|
|
46893
|
+
const supported = Intl.DateTimeFormat.supportedLocalesOf([this.locale], { localeMatcher: 'lookup' });
|
|
46894
|
+
this._validLocale = supported.length > 0 ? this.locale : 'en-US';
|
|
46911
46895
|
} catch {
|
|
46896
|
+
console.debug(`[AuroDatePicker] The locale "${this.locale}" is not valid. Falling back to "en-US".`);
|
|
46912
46897
|
this._validLocale = 'en-US';
|
|
46913
46898
|
}
|
|
46914
46899
|
|
|
@@ -47565,8 +47550,8 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
47565
47550
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
47566
47551
|
<slot slot="bib.fullscreen.toLabel" name="bib.fullscreen.toLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
47567
47552
|
<slot slot="bib.fullscreen.fromLabel" name="bib.fullscreen.fromLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
47568
|
-
<span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.
|
|
47569
|
-
${this.range ? u$c`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.
|
|
47553
|
+
<span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.valueObject, this.format) || u$c`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>
|
|
47554
|
+
${this.range ? u$c`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.valueEndObject, this.format) || u$c`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>` : undefined}
|
|
47570
47555
|
</auro-formkit-calendar>
|
|
47571
47556
|
`;
|
|
47572
47557
|
}
|
|
@@ -51484,7 +51469,7 @@ let AuroHelpText$7 = class AuroHelpText extends i$4 {
|
|
|
51484
51469
|
}
|
|
51485
51470
|
};
|
|
51486
51471
|
|
|
51487
|
-
var formkitVersion$7 = '
|
|
51472
|
+
var formkitVersion$7 = '202606081518';
|
|
51488
51473
|
|
|
51489
51474
|
let AuroElement$5 = class AuroElement extends i$4 {
|
|
51490
51475
|
static get properties() {
|
|
@@ -53663,7 +53648,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$4 {
|
|
|
53663
53648
|
}
|
|
53664
53649
|
};
|
|
53665
53650
|
|
|
53666
|
-
var formkitVersion$6 = '
|
|
53651
|
+
var formkitVersion$6 = '202606081518';
|
|
53667
53652
|
|
|
53668
53653
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
53669
53654
|
// See LICENSE in the project root for license information.
|
|
@@ -56659,7 +56644,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$4 {
|
|
|
56659
56644
|
}
|
|
56660
56645
|
};
|
|
56661
56646
|
|
|
56662
|
-
var formkitVersion$5 = '
|
|
56647
|
+
var formkitVersion$5 = '202606081518';
|
|
56663
56648
|
|
|
56664
56649
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
56665
56650
|
// See LICENSE in the project root for license information.
|
|
@@ -58409,7 +58394,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$4 {
|
|
|
58409
58394
|
}
|
|
58410
58395
|
};
|
|
58411
58396
|
|
|
58412
|
-
var formkitVersion$4 = '
|
|
58397
|
+
var formkitVersion$4 = '202606081518';
|
|
58413
58398
|
|
|
58414
58399
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
58415
58400
|
// See LICENSE in the project root for license information.
|
|
@@ -63607,7 +63592,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
63607
63592
|
}
|
|
63608
63593
|
};
|
|
63609
63594
|
|
|
63610
|
-
var formkitVersion$2 = '
|
|
63595
|
+
var formkitVersion$2 = '202606081518';
|
|
63611
63596
|
|
|
63612
63597
|
let AuroElement$2$1 = class AuroElement extends i$4 {
|
|
63613
63598
|
static get properties() {
|
|
@@ -75056,27 +75041,17 @@ class AuroInputUtilities {
|
|
|
75056
75041
|
* Converts a model value to a display value for the input element.
|
|
75057
75042
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
75058
75043
|
* @private
|
|
75059
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
75060
75044
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
75061
75045
|
* @param {string} format - The date format string.
|
|
75062
|
-
* @returns {string}
|
|
75046
|
+
* @returns {string | undefined}
|
|
75063
75047
|
*/
|
|
75064
|
-
toFormattedValue(
|
|
75065
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
75066
|
-
return value;
|
|
75067
|
-
}
|
|
75068
|
-
|
|
75069
|
-
if (!dateFormatter.isValidDate(value)) {
|
|
75070
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
75071
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
75072
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
75073
|
-
}
|
|
75074
|
-
|
|
75048
|
+
toFormattedValue(valueObject, format) {
|
|
75075
75049
|
const normalizedFormat = format.toLowerCase();
|
|
75076
75050
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
75077
75051
|
|
|
75078
75052
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
75079
|
-
|
|
75053
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
75054
|
+
return undefined;
|
|
75080
75055
|
}
|
|
75081
75056
|
|
|
75082
75057
|
return maskOptions.format(valueObject);
|
|
@@ -75994,7 +75969,17 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
75994
75969
|
this.hasValue = false;
|
|
75995
75970
|
}
|
|
75996
75971
|
|
|
75997
|
-
|
|
75972
|
+
let formattedValue = this.value;
|
|
75973
|
+
if (this.type === 'date') {
|
|
75974
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
75975
|
+
if (!formattedDate) {
|
|
75976
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
75977
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
75978
|
+
formattedValue = this.value;
|
|
75979
|
+
} else {
|
|
75980
|
+
formattedValue = formattedDate;
|
|
75981
|
+
}
|
|
75982
|
+
}
|
|
75998
75983
|
|
|
75999
75984
|
if (formattedValue !== this.inputElement.value) {
|
|
76000
75985
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -76858,7 +76843,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$4 {
|
|
|
76858
76843
|
}
|
|
76859
76844
|
};
|
|
76860
76845
|
|
|
76861
|
-
var formkitVersion$1$1 = '
|
|
76846
|
+
var formkitVersion$1$1 = '202606081518';
|
|
76862
76847
|
|
|
76863
76848
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
76864
76849
|
// See LICENSE in the project root for license information.
|
|
@@ -77975,7 +77960,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$4 {
|
|
|
77975
77960
|
}
|
|
77976
77961
|
};
|
|
77977
77962
|
|
|
77978
|
-
var formkitVersion$3 = '
|
|
77963
|
+
var formkitVersion$3 = '202606081518';
|
|
77979
77964
|
|
|
77980
77965
|
var styleCss$1$3 = i$7`.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{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
77981
77966
|
|
|
@@ -87045,7 +87030,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
87045
87030
|
}
|
|
87046
87031
|
};
|
|
87047
87032
|
|
|
87048
|
-
var formkitVersion$1 = '
|
|
87033
|
+
var formkitVersion$1 = '202606081518';
|
|
87049
87034
|
|
|
87050
87035
|
class AuroElement extends i$4 {
|
|
87051
87036
|
static get properties() {
|
|
@@ -88798,7 +88783,7 @@ class AuroHelpText extends i$4 {
|
|
|
88798
88783
|
}
|
|
88799
88784
|
}
|
|
88800
88785
|
|
|
88801
|
-
var formkitVersion = '
|
|
88786
|
+
var formkitVersion = '202606081518';
|
|
88802
88787
|
|
|
88803
88788
|
var styleCss = i$7`.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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
88804
88789
|
|