@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
|
@@ -10447,27 +10447,17 @@ let AuroInputUtilities$3 = class AuroInputUtilities {
|
|
|
10447
10447
|
* Converts a model value to a display value for the input element.
|
|
10448
10448
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
10449
10449
|
* @private
|
|
10450
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
10451
10450
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
10452
10451
|
* @param {string} format - The date format string.
|
|
10453
|
-
* @returns {string}
|
|
10452
|
+
* @returns {string | undefined}
|
|
10454
10453
|
*/
|
|
10455
|
-
toFormattedValue(
|
|
10456
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
10457
|
-
return value;
|
|
10458
|
-
}
|
|
10459
|
-
|
|
10460
|
-
if (!dateFormatter$3.isValidDate(value)) {
|
|
10461
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
10462
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
10463
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
10464
|
-
}
|
|
10465
|
-
|
|
10454
|
+
toFormattedValue(valueObject, format) {
|
|
10466
10455
|
const normalizedFormat = format.toLowerCase();
|
|
10467
10456
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
10468
10457
|
|
|
10469
10458
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
10470
|
-
|
|
10459
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
10460
|
+
return undefined;
|
|
10471
10461
|
}
|
|
10472
10462
|
|
|
10473
10463
|
return maskOptions.format(valueObject);
|
|
@@ -11385,7 +11375,17 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
|
|
|
11385
11375
|
this.hasValue = false;
|
|
11386
11376
|
}
|
|
11387
11377
|
|
|
11388
|
-
|
|
11378
|
+
let formattedValue = this.value;
|
|
11379
|
+
if (this.type === 'date') {
|
|
11380
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
11381
|
+
if (!formattedDate) {
|
|
11382
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
11383
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
11384
|
+
formattedValue = this.value;
|
|
11385
|
+
} else {
|
|
11386
|
+
formattedValue = formattedDate;
|
|
11387
|
+
}
|
|
11388
|
+
}
|
|
11389
11389
|
|
|
11390
11390
|
if (formattedValue !== this.inputElement.value) {
|
|
11391
11391
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -12249,7 +12249,7 @@ let AuroHelpText$9 = class AuroHelpText extends i$3 {
|
|
|
12249
12249
|
}
|
|
12250
12250
|
};
|
|
12251
12251
|
|
|
12252
|
-
var formkitVersion$9 = '
|
|
12252
|
+
var formkitVersion$9 = '202606081518';
|
|
12253
12253
|
|
|
12254
12254
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12255
12255
|
// See LICENSE in the project root for license information.
|
|
@@ -23479,27 +23479,17 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
|
23479
23479
|
* Converts a model value to a display value for the input element.
|
|
23480
23480
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
23481
23481
|
* @private
|
|
23482
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
23483
23482
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
23484
23483
|
* @param {string} format - The date format string.
|
|
23485
|
-
* @returns {string}
|
|
23484
|
+
* @returns {string | undefined}
|
|
23486
23485
|
*/
|
|
23487
|
-
toFormattedValue(
|
|
23488
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
23489
|
-
return value;
|
|
23490
|
-
}
|
|
23491
|
-
|
|
23492
|
-
if (!dateFormatter$1.isValidDate(value)) {
|
|
23493
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
23494
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
23495
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
23496
|
-
}
|
|
23497
|
-
|
|
23486
|
+
toFormattedValue(valueObject, format) {
|
|
23498
23487
|
const normalizedFormat = format.toLowerCase();
|
|
23499
23488
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
23500
23489
|
|
|
23501
23490
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
23502
|
-
|
|
23491
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
23492
|
+
return undefined;
|
|
23503
23493
|
}
|
|
23504
23494
|
|
|
23505
23495
|
return maskOptions.format(valueObject);
|
|
@@ -23523,29 +23513,6 @@ function getDateFormatFromLocale$1 (locale) {
|
|
|
23523
23513
|
|
|
23524
23514
|
class AuroDatepickerUtilities {
|
|
23525
23515
|
|
|
23526
|
-
/**
|
|
23527
|
-
* Converts an ISO date string (yyyy-mm-dd) to any display format.
|
|
23528
|
-
* @param {string} isoStr - ISO date string.
|
|
23529
|
-
* @param {string} format - Target display format (e.g. "mm/dd/yyyy", "dd/mm/yyyy").
|
|
23530
|
-
* @returns {string|undefined}
|
|
23531
|
-
*/
|
|
23532
|
-
toCustomFormat(isoStr, format) {
|
|
23533
|
-
if (!isoStr || !format) return undefined;
|
|
23534
|
-
try {
|
|
23535
|
-
const date = dateFormatter$1.stringToDateInstance(isoStr);
|
|
23536
|
-
const year = String(date.getFullYear()).padStart(4, '0');
|
|
23537
|
-
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
23538
|
-
const day = String(date.getDate()).padStart(2, '0');
|
|
23539
|
-
return format.toLowerCase()
|
|
23540
|
-
.replace(/yyyy/iu, year)
|
|
23541
|
-
.replace(/yy/iu, year.slice(-2))
|
|
23542
|
-
.replace(/mm/iu, month)
|
|
23543
|
-
.replace(/dd/iu, day);
|
|
23544
|
-
} catch {
|
|
23545
|
-
return undefined;
|
|
23546
|
-
}
|
|
23547
|
-
}
|
|
23548
|
-
|
|
23549
23516
|
/**
|
|
23550
23517
|
* Converts any date object to a date object representing the first day of the month.
|
|
23551
23518
|
* @param {Object} date - Date to convert to the first day of the month.
|
|
@@ -23571,17 +23538,6 @@ class AuroDatepickerUtilities {
|
|
|
23571
23538
|
return months <= 0 ? 0 : months;
|
|
23572
23539
|
}
|
|
23573
23540
|
|
|
23574
|
-
/**
|
|
23575
|
-
* Function to format a number to two digits.
|
|
23576
|
-
* @private
|
|
23577
|
-
* @param {Number} num - Number to format.
|
|
23578
|
-
* @returns {String}
|
|
23579
|
-
*/
|
|
23580
|
-
formatTwoDigits(num) {
|
|
23581
|
-
const singleDigitThreshold = 10;
|
|
23582
|
-
return num < singleDigitThreshold ? `0${num}` : num;
|
|
23583
|
-
}
|
|
23584
|
-
|
|
23585
23541
|
/**
|
|
23586
23542
|
* Function to generate checkmark svg.
|
|
23587
23543
|
* @private
|
|
@@ -23645,6 +23601,7 @@ class UtilitiesCalendarRender {
|
|
|
23645
23601
|
determineDefinedCalendarRange(elem) {
|
|
23646
23602
|
if (elem.getAttribute('calendarStartDate') && elem.getAttribute('calendarEndDate')) {
|
|
23647
23603
|
// if we have a defined range of months, use that
|
|
23604
|
+
// prop is not in sync with attribute yet, use attribute value
|
|
23648
23605
|
elem.calendarRangeMonths = elem.util.monthDiff(dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarStartDate')), dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarEndDate')));
|
|
23649
23606
|
} else {
|
|
23650
23607
|
// if we don't have a defined range of months, use undefined
|
|
@@ -25975,7 +25932,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$3 {
|
|
|
25975
25932
|
}
|
|
25976
25933
|
};
|
|
25977
25934
|
|
|
25978
|
-
var formkitVersion$2$1 = '
|
|
25935
|
+
var formkitVersion$2$1 = '202606081518';
|
|
25979
25936
|
|
|
25980
25937
|
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$6`${s$8(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$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),: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}
|
|
25981
25938
|
`,u$4$1=i$5`.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}}
|
|
@@ -30354,7 +30311,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$3 {
|
|
|
30354
30311
|
}
|
|
30355
30312
|
};
|
|
30356
30313
|
|
|
30357
|
-
var formkitVersion$1$2 = '
|
|
30314
|
+
var formkitVersion$1$2 = '202606081518';
|
|
30358
30315
|
|
|
30359
30316
|
let AuroElement$2$2 = class AuroElement extends i$3 {
|
|
30360
30317
|
static get properties() {
|
|
@@ -41803,27 +41760,17 @@ let AuroInputUtilities$2 = class AuroInputUtilities {
|
|
|
41803
41760
|
* Converts a model value to a display value for the input element.
|
|
41804
41761
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
41805
41762
|
* @private
|
|
41806
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
41807
41763
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
41808
41764
|
* @param {string} format - The date format string.
|
|
41809
|
-
* @returns {string}
|
|
41765
|
+
* @returns {string | undefined}
|
|
41810
41766
|
*/
|
|
41811
|
-
toFormattedValue(
|
|
41812
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
41813
|
-
return value;
|
|
41814
|
-
}
|
|
41815
|
-
|
|
41816
|
-
if (!dateFormatter$2.isValidDate(value)) {
|
|
41817
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
41818
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
41819
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
41820
|
-
}
|
|
41821
|
-
|
|
41767
|
+
toFormattedValue(valueObject, format) {
|
|
41822
41768
|
const normalizedFormat = format.toLowerCase();
|
|
41823
41769
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
41824
41770
|
|
|
41825
41771
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
41826
|
-
|
|
41772
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
41773
|
+
return undefined;
|
|
41827
41774
|
}
|
|
41828
41775
|
|
|
41829
41776
|
return maskOptions.format(valueObject);
|
|
@@ -42741,7 +42688,17 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
|
|
|
42741
42688
|
this.hasValue = false;
|
|
42742
42689
|
}
|
|
42743
42690
|
|
|
42744
|
-
|
|
42691
|
+
let formattedValue = this.value;
|
|
42692
|
+
if (this.type === 'date') {
|
|
42693
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
42694
|
+
if (!formattedDate) {
|
|
42695
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
42696
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
42697
|
+
formattedValue = this.value;
|
|
42698
|
+
} else {
|
|
42699
|
+
formattedValue = formattedDate;
|
|
42700
|
+
}
|
|
42701
|
+
}
|
|
42745
42702
|
|
|
42746
42703
|
if (formattedValue !== this.inputElement.value) {
|
|
42747
42704
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -43605,7 +43562,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$3 {
|
|
|
43605
43562
|
}
|
|
43606
43563
|
};
|
|
43607
43564
|
|
|
43608
|
-
var formkitVersion$8 = '
|
|
43565
|
+
var formkitVersion$8 = '202606081518';
|
|
43609
43566
|
|
|
43610
43567
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
43611
43568
|
// See LICENSE in the project root for license information.
|
|
@@ -45690,42 +45647,66 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
45690
45647
|
*/
|
|
45691
45648
|
// ─── Read-only *Object properties ─────────────────────────────────────────
|
|
45692
45649
|
|
|
45693
|
-
/**
|
|
45650
|
+
/**
|
|
45651
|
+
* Read-only `Date` object derived from `value`. Returns `undefined` when `value` is empty or not a valid date.
|
|
45652
|
+
* @returns {Date|undefined}
|
|
45653
|
+
*/
|
|
45694
45654
|
get valueObject() {
|
|
45695
45655
|
return this.value && dateFormatter$1.isValidDate(this.value) ? dateFormatter$1.stringToDateInstance(this.value) : undefined;
|
|
45696
45656
|
}
|
|
45697
45657
|
|
|
45698
|
-
/**
|
|
45658
|
+
/**
|
|
45659
|
+
* Read-only `Date` object derived from `valueEnd`. Returns `undefined` when `valueEnd` is empty or not a valid date.
|
|
45660
|
+
* @returns {Date|undefined}
|
|
45661
|
+
*/
|
|
45699
45662
|
get valueEndObject() {
|
|
45700
45663
|
return this.valueEnd && dateFormatter$1.isValidDate(this.valueEnd) ? dateFormatter$1.stringToDateInstance(this.valueEnd) : undefined;
|
|
45701
45664
|
}
|
|
45702
45665
|
|
|
45703
|
-
/**
|
|
45666
|
+
/**
|
|
45667
|
+
* Read-only `Date` object derived from `minDate`. Returns `undefined` when `minDate` is empty or not a valid date.
|
|
45668
|
+
* @returns {Date|undefined}
|
|
45669
|
+
*/
|
|
45704
45670
|
get minDateObject() {
|
|
45705
45671
|
return this.minDate && dateFormatter$1.isValidDate(this.minDate) ? dateFormatter$1.stringToDateInstance(this.minDate) : undefined;
|
|
45706
45672
|
}
|
|
45707
45673
|
|
|
45708
|
-
/**
|
|
45674
|
+
/**
|
|
45675
|
+
* Read-only `Date` object derived from `maxDate`. Returns `undefined` when `maxDate` is empty or not a valid date.
|
|
45676
|
+
* @returns {Date|undefined}
|
|
45677
|
+
*/
|
|
45709
45678
|
get maxDateObject() {
|
|
45710
45679
|
return this.maxDate && dateFormatter$1.isValidDate(this.maxDate) ? dateFormatter$1.stringToDateInstance(this.maxDate) : undefined;
|
|
45711
45680
|
}
|
|
45712
45681
|
|
|
45713
|
-
/**
|
|
45682
|
+
/**
|
|
45683
|
+
* Read-only `Date` object derived from `calendarStartDate`. Returns `undefined` when `calendarStartDate` is empty or not a valid date.
|
|
45684
|
+
* @returns {Date|undefined}
|
|
45685
|
+
*/
|
|
45714
45686
|
get calendarStartDateObject() {
|
|
45715
45687
|
return this.calendarStartDate && dateFormatter$1.isValidDate(this.calendarStartDate) ? dateFormatter$1.stringToDateInstance(this.calendarStartDate) : undefined;
|
|
45716
45688
|
}
|
|
45717
45689
|
|
|
45718
|
-
/**
|
|
45690
|
+
/**
|
|
45691
|
+
* Read-only `Date` object derived from `calendarEndDate`. Returns `undefined` when `calendarEndDate` is empty or not a valid date.
|
|
45692
|
+
* @returns {Date|undefined}
|
|
45693
|
+
*/
|
|
45719
45694
|
get calendarEndDateObject() {
|
|
45720
45695
|
return this.calendarEndDate && dateFormatter$1.isValidDate(this.calendarEndDate) ? dateFormatter$1.stringToDateInstance(this.calendarEndDate) : undefined;
|
|
45721
45696
|
}
|
|
45722
45697
|
|
|
45723
|
-
/**
|
|
45698
|
+
/**
|
|
45699
|
+
* Read-only `Date` object derived from `centralDate`. Returns `undefined` when `centralDate` is empty or not a valid date.
|
|
45700
|
+
* @returns {Date|undefined}
|
|
45701
|
+
*/
|
|
45724
45702
|
get centralDateObject() {
|
|
45725
45703
|
return this.centralDate && dateFormatter$1.isValidDate(this.centralDate) ? dateFormatter$1.stringToDateInstance(this.centralDate) : undefined;
|
|
45726
45704
|
}
|
|
45727
45705
|
|
|
45728
|
-
/**
|
|
45706
|
+
/**
|
|
45707
|
+
* Read-only `Date` object derived from `calendarFocusDate`. Returns `undefined` when `calendarFocusDate` is empty or not a valid date.
|
|
45708
|
+
* @returns {Date|undefined}
|
|
45709
|
+
*/
|
|
45729
45710
|
get calendarFocusDateObject() {
|
|
45730
45711
|
return this.calendarFocusDate && dateFormatter$1.isValidDate(this.calendarFocusDate) ? dateFormatter$1.stringToDateInstance(this.calendarFocusDate) : undefined;
|
|
45731
45712
|
}
|
|
@@ -46177,6 +46158,10 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46177
46158
|
this.hasAllValues = (this.value && this.value.length > 0) && (this.valueEnd && this.valueEnd.length > 0); // eslint-disable-line no-extra-parens
|
|
46178
46159
|
}
|
|
46179
46160
|
|
|
46161
|
+
/**
|
|
46162
|
+
* Returns `true` when the datepicker has an active validation error.
|
|
46163
|
+
* @returns {boolean}
|
|
46164
|
+
*/
|
|
46180
46165
|
get hasError() {
|
|
46181
46166
|
return this.validity !== undefined && this.validity !== 'valid';
|
|
46182
46167
|
}
|
|
@@ -46190,10 +46175,10 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46190
46175
|
willUpdate(changedProperties) {
|
|
46191
46176
|
if (changedProperties.has('locale')) {
|
|
46192
46177
|
try {
|
|
46193
|
-
|
|
46194
|
-
|
|
46195
|
-
this._validLocale = this.locale;
|
|
46178
|
+
const supported = Intl.DateTimeFormat.supportedLocalesOf([this.locale], { localeMatcher: 'lookup' });
|
|
46179
|
+
this._validLocale = supported.length > 0 ? this.locale : 'en-US';
|
|
46196
46180
|
} catch {
|
|
46181
|
+
console.debug(`[AuroDatePicker] The locale "${this.locale}" is not valid. Falling back to "en-US".`);
|
|
46197
46182
|
this._validLocale = 'en-US';
|
|
46198
46183
|
}
|
|
46199
46184
|
|
|
@@ -46850,8 +46835,8 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
46850
46835
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
46851
46836
|
<slot slot="bib.fullscreen.toLabel" name="bib.fullscreen.toLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
46852
46837
|
<slot slot="bib.fullscreen.fromLabel" name="bib.fullscreen.fromLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
46853
|
-
<span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.
|
|
46854
|
-
${this.range ? u$d`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.
|
|
46838
|
+
<span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.valueObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>
|
|
46839
|
+
${this.range ? u$d`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.valueEndObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>` : undefined}
|
|
46855
46840
|
</auro-formkit-calendar>
|
|
46856
46841
|
`;
|
|
46857
46842
|
}
|
|
@@ -50769,7 +50754,7 @@ let AuroHelpText$7 = class AuroHelpText extends i$3 {
|
|
|
50769
50754
|
}
|
|
50770
50755
|
};
|
|
50771
50756
|
|
|
50772
|
-
var formkitVersion$7 = '
|
|
50757
|
+
var formkitVersion$7 = '202606081518';
|
|
50773
50758
|
|
|
50774
50759
|
let AuroElement$5 = class AuroElement extends i$3 {
|
|
50775
50760
|
static get properties() {
|
|
@@ -52948,7 +52933,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$3 {
|
|
|
52948
52933
|
}
|
|
52949
52934
|
};
|
|
52950
52935
|
|
|
52951
|
-
var formkitVersion$6 = '
|
|
52936
|
+
var formkitVersion$6 = '202606081518';
|
|
52952
52937
|
|
|
52953
52938
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
52954
52939
|
// See LICENSE in the project root for license information.
|
|
@@ -55944,7 +55929,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$3 {
|
|
|
55944
55929
|
}
|
|
55945
55930
|
};
|
|
55946
55931
|
|
|
55947
|
-
var formkitVersion$5 = '
|
|
55932
|
+
var formkitVersion$5 = '202606081518';
|
|
55948
55933
|
|
|
55949
55934
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
55950
55935
|
// See LICENSE in the project root for license information.
|
|
@@ -57694,7 +57679,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$3 {
|
|
|
57694
57679
|
}
|
|
57695
57680
|
};
|
|
57696
57681
|
|
|
57697
|
-
var formkitVersion$4 = '
|
|
57682
|
+
var formkitVersion$4 = '202606081518';
|
|
57698
57683
|
|
|
57699
57684
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
57700
57685
|
// See LICENSE in the project root for license information.
|
|
@@ -62892,7 +62877,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
62892
62877
|
}
|
|
62893
62878
|
};
|
|
62894
62879
|
|
|
62895
|
-
var formkitVersion$2 = '
|
|
62880
|
+
var formkitVersion$2 = '202606081518';
|
|
62896
62881
|
|
|
62897
62882
|
let AuroElement$2$1 = class AuroElement extends i$3 {
|
|
62898
62883
|
static get properties() {
|
|
@@ -74341,27 +74326,17 @@ class AuroInputUtilities {
|
|
|
74341
74326
|
* Converts a model value to a display value for the input element.
|
|
74342
74327
|
* For full date formats, converts an ISO model value to the configured display format.
|
|
74343
74328
|
* @private
|
|
74344
|
-
* @param {string} value - The model value (ISO string for date types).
|
|
74345
74329
|
* @param {Date|undefined} valueObject - Date object representation of value.
|
|
74346
74330
|
* @param {string} format - The date format string.
|
|
74347
|
-
* @returns {string}
|
|
74331
|
+
* @returns {string | undefined}
|
|
74348
74332
|
*/
|
|
74349
|
-
toFormattedValue(
|
|
74350
|
-
if (!this.isFullDateFormat('date', format) || !value) {
|
|
74351
|
-
return value;
|
|
74352
|
-
}
|
|
74353
|
-
|
|
74354
|
-
if (!dateFormatter.isValidDate(value)) {
|
|
74355
|
-
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
74356
|
-
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
74357
|
-
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
74358
|
-
}
|
|
74359
|
-
|
|
74333
|
+
toFormattedValue(valueObject, format) {
|
|
74360
74334
|
const normalizedFormat = format.toLowerCase();
|
|
74361
74335
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
74362
74336
|
|
|
74363
74337
|
if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
|
|
74364
|
-
|
|
74338
|
+
console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
|
|
74339
|
+
return undefined;
|
|
74365
74340
|
}
|
|
74366
74341
|
|
|
74367
74342
|
return maskOptions.format(valueObject);
|
|
@@ -75279,7 +75254,17 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
75279
75254
|
this.hasValue = false;
|
|
75280
75255
|
}
|
|
75281
75256
|
|
|
75282
|
-
|
|
75257
|
+
let formattedValue = this.value;
|
|
75258
|
+
if (this.type === 'date') {
|
|
75259
|
+
const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
|
|
75260
|
+
if (!formattedDate) {
|
|
75261
|
+
// if user entered unrecognized date format that cannot be parsed into a Date object,
|
|
75262
|
+
// keep the raw value in the input so they can edit it instead of overwriting with an empty string
|
|
75263
|
+
formattedValue = this.value;
|
|
75264
|
+
} else {
|
|
75265
|
+
formattedValue = formattedDate;
|
|
75266
|
+
}
|
|
75267
|
+
}
|
|
75283
75268
|
|
|
75284
75269
|
if (formattedValue !== this.inputElement.value) {
|
|
75285
75270
|
this.skipNextProgrammaticInputEvent = true;
|
|
@@ -76143,7 +76128,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$3 {
|
|
|
76143
76128
|
}
|
|
76144
76129
|
};
|
|
76145
76130
|
|
|
76146
|
-
var formkitVersion$1$1 = '
|
|
76131
|
+
var formkitVersion$1$1 = '202606081518';
|
|
76147
76132
|
|
|
76148
76133
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
76149
76134
|
// See LICENSE in the project root for license information.
|
|
@@ -77260,7 +77245,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$3 {
|
|
|
77260
77245
|
}
|
|
77261
77246
|
};
|
|
77262
77247
|
|
|
77263
|
-
var formkitVersion$3 = '
|
|
77248
|
+
var formkitVersion$3 = '202606081518';
|
|
77264
77249
|
|
|
77265
77250
|
var styleCss$1$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}: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}`;
|
|
77266
77251
|
|
|
@@ -86330,7 +86315,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
86330
86315
|
}
|
|
86331
86316
|
};
|
|
86332
86317
|
|
|
86333
|
-
var formkitVersion$1 = '
|
|
86318
|
+
var formkitVersion$1 = '202606081518';
|
|
86334
86319
|
|
|
86335
86320
|
class AuroElement extends i$3 {
|
|
86336
86321
|
static get properties() {
|
|
@@ -88083,7 +88068,7 @@ class AuroHelpText extends i$3 {
|
|
|
88083
88068
|
}
|
|
88084
88069
|
}
|
|
88085
88070
|
|
|
88086
|
-
var formkitVersion = '
|
|
88071
|
+
var formkitVersion = '202606081518';
|
|
88087
88072
|
|
|
88088
88073
|
var styleCss = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.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}`;
|
|
88089
88074
|
|