@aurodesignsystem-dev/auro-formkit 0.0.0-pr1483.0 → 0.0.0-pr1483.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/customize.min.js +2 -233
- package/components/checkbox/demo/getting-started.min.js +2 -233
- package/components/checkbox/demo/index.min.js +2 -233
- package/components/checkbox/dist/index.js +2 -233
- package/components/checkbox/dist/registered.js +2 -233
- package/components/combobox/demo/customize.min.js +5 -236
- package/components/combobox/demo/getting-started.min.js +5 -236
- package/components/combobox/demo/index.min.js +5 -236
- package/components/combobox/dist/index.js +5 -236
- package/components/combobox/dist/registered.js +5 -236
- package/components/counter/demo/customize.min.js +3 -234
- package/components/counter/demo/index.min.js +3 -234
- package/components/counter/dist/index.js +2 -233
- package/components/counter/dist/registered.js +2 -233
- package/components/datepicker/demo/index.min.js +6 -5
- package/components/datepicker/dist/index.js +6 -5
- package/components/datepicker/dist/registered.js +6 -5
- 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 +168 -1322
- package/components/form/demo/getting-started.min.js +168 -1322
- package/components/form/demo/index.min.js +168 -1322
- package/components/form/demo/registerDemoDeps.min.js +168 -1322
- package/components/input/demo/customize.min.js +2 -2
- package/components/input/demo/getting-started.min.js +2 -2
- package/components/input/demo/index.min.js +2 -2
- package/components/input/dist/index.js +2 -2
- package/components/input/dist/registered.js +2 -2
- package/components/radio/demo/index.min.js +2 -233
- package/components/radio/dist/index.js +2 -233
- package/components/radio/dist/registered.js +2 -233
- package/components/select/demo/customize.min.js +3 -234
- package/components/select/demo/getting-started.min.js +3 -234
- package/components/select/demo/index.min.js +3 -234
- package/components/select/dist/index.js +3 -234
- package/components/select/dist/registered.js +3 -234
- package/custom-elements.json +1444 -1444
- package/package.json +1 -1
|
@@ -3886,7 +3886,7 @@ try {
|
|
|
3886
3886
|
* @param {string} format - Date format to parse.
|
|
3887
3887
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
3888
3888
|
*/
|
|
3889
|
-
function getDateParts$
|
|
3889
|
+
function getDateParts$3(dateStr, format) {
|
|
3890
3890
|
if (!dateStr) {
|
|
3891
3891
|
return undefined;
|
|
3892
3892
|
}
|
|
@@ -3945,7 +3945,7 @@ function getDateParts$7(dateStr, format) {
|
|
|
3945
3945
|
return result;
|
|
3946
3946
|
}
|
|
3947
3947
|
|
|
3948
|
-
function isCalendarDate$
|
|
3948
|
+
function isCalendarDate$3(year, month, day) {
|
|
3949
3949
|
let yearNumber = Number(year);
|
|
3950
3950
|
const monthNumber = Number(month);
|
|
3951
3951
|
const dayNumber = Number(day);
|
|
@@ -3969,7 +3969,7 @@ function isCalendarDate$7(year, month, day) {
|
|
|
3969
3969
|
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
3970
3970
|
|
|
3971
3971
|
return (
|
|
3972
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$
|
|
3972
|
+
!Number.isNaN(date.getTime()) && toISOFormatString$3(date) === stringified
|
|
3973
3973
|
);
|
|
3974
3974
|
}
|
|
3975
3975
|
|
|
@@ -3984,11 +3984,11 @@ function isCalendarDate$7(year, month, day) {
|
|
|
3984
3984
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
3985
3985
|
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
3986
3986
|
*/
|
|
3987
|
-
function parseDate$
|
|
3987
|
+
function parseDate$3(dateStr, format = "mm/dd/yyyy") {
|
|
3988
3988
|
if (!dateStr || !format) {
|
|
3989
3989
|
return undefined;
|
|
3990
3990
|
}
|
|
3991
|
-
const result = getDateParts$
|
|
3991
|
+
const result = getDateParts$3(dateStr.trim(), format);
|
|
3992
3992
|
|
|
3993
3993
|
if (!result) {
|
|
3994
3994
|
return undefined;
|
|
@@ -3999,7 +3999,7 @@ function parseDate$7(dateStr, format = "mm/dd/yyyy") {
|
|
|
3999
3999
|
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
4000
4000
|
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
4001
4001
|
|
|
4002
|
-
if (isCalendarDate$
|
|
4002
|
+
if (isCalendarDate$3(year, month, day)) {
|
|
4003
4003
|
return result;
|
|
4004
4004
|
}
|
|
4005
4005
|
|
|
@@ -4014,7 +4014,7 @@ function parseDate$7(dateStr, format = "mm/dd/yyyy") {
|
|
|
4014
4014
|
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
4015
4015
|
* @returns {String} Returns the date as a string.
|
|
4016
4016
|
*/
|
|
4017
|
-
function getDateAsString$
|
|
4017
|
+
function getDateAsString$3(date, locale = undefined) {
|
|
4018
4018
|
return date.toLocaleDateString(locale, {
|
|
4019
4019
|
year: "numeric",
|
|
4020
4020
|
month: "2-digit",
|
|
@@ -4028,12 +4028,12 @@ function getDateAsString$7(date, locale = undefined) {
|
|
|
4028
4028
|
* @param {String} format - Date format to validate against.
|
|
4029
4029
|
* @returns {String}
|
|
4030
4030
|
*/
|
|
4031
|
-
function toNorthAmericanFormat$
|
|
4031
|
+
function toNorthAmericanFormat$3(dateStr, format) {
|
|
4032
4032
|
if (format === "mm/dd/yyyy") {
|
|
4033
4033
|
return dateStr;
|
|
4034
4034
|
}
|
|
4035
4035
|
|
|
4036
|
-
const parsedDate = parseDate$
|
|
4036
|
+
const parsedDate = parseDate$3(dateStr, format);
|
|
4037
4037
|
|
|
4038
4038
|
if (!parsedDate) {
|
|
4039
4039
|
throw new Error(
|
|
@@ -4053,13 +4053,13 @@ function toNorthAmericanFormat$7(dateStr, format) {
|
|
|
4053
4053
|
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
4054
4054
|
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
4055
4055
|
*/
|
|
4056
|
-
function isValidDate$
|
|
4056
|
+
function isValidDate$3(dateStr, format = "yyyy-mm-dd") {
|
|
4057
4057
|
try {
|
|
4058
4058
|
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
4059
4059
|
return false;
|
|
4060
4060
|
}
|
|
4061
4061
|
|
|
4062
|
-
if (parseDate$
|
|
4062
|
+
if (parseDate$3(dateStr, format)) {
|
|
4063
4063
|
return true;
|
|
4064
4064
|
}
|
|
4065
4065
|
} catch (error) {
|
|
@@ -4075,7 +4075,7 @@ function isValidDate$7(dateStr, format = "yyyy-mm-dd") {
|
|
|
4075
4075
|
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
4076
4076
|
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
4077
4077
|
*/
|
|
4078
|
-
function toISOFormatString$
|
|
4078
|
+
function toISOFormatString$3(date) {
|
|
4079
4079
|
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
4080
4080
|
throw new Error(
|
|
4081
4081
|
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
@@ -4092,23 +4092,23 @@ function toISOFormatString$7(date) {
|
|
|
4092
4092
|
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
4093
4093
|
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
4094
4094
|
*/
|
|
4095
|
-
function stringToDateInstance$
|
|
4095
|
+
function stringToDateInstance$3(dateStr, format = "yyyy-mm-dd") {
|
|
4096
4096
|
if (typeof dateStr !== "string") {
|
|
4097
4097
|
return null;
|
|
4098
4098
|
}
|
|
4099
4099
|
|
|
4100
|
-
const { month, day, year } = parseDate$
|
|
4100
|
+
const { month, day, year } = parseDate$3(dateStr, format);
|
|
4101
4101
|
return new Date(`${year}/${month}/${day}`);
|
|
4102
4102
|
}
|
|
4103
4103
|
|
|
4104
|
-
const dateFormatter$
|
|
4105
|
-
parseDate: parseDate$
|
|
4106
|
-
getDateParts: getDateParts$
|
|
4107
|
-
getDateAsString: getDateAsString$
|
|
4108
|
-
toNorthAmericanFormat: toNorthAmericanFormat$
|
|
4109
|
-
isValidDate: isValidDate$
|
|
4110
|
-
toISOFormatString: toISOFormatString$
|
|
4111
|
-
stringToDateInstance: stringToDateInstance$
|
|
4104
|
+
const dateFormatter$3 = {
|
|
4105
|
+
parseDate: parseDate$3,
|
|
4106
|
+
getDateParts: getDateParts$3,
|
|
4107
|
+
getDateAsString: getDateAsString$3,
|
|
4108
|
+
toNorthAmericanFormat: toNorthAmericanFormat$3,
|
|
4109
|
+
isValidDate: isValidDate$3,
|
|
4110
|
+
toISOFormatString: toISOFormatString$3,
|
|
4111
|
+
stringToDateInstance: stringToDateInstance$3,
|
|
4112
4112
|
};
|
|
4113
4113
|
|
|
4114
4114
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -4415,7 +4415,7 @@ let AuroFormValidation$7 = class AuroFormValidation {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
|
|
4417
4417
|
// Validate that the date passed was the correct format and is a valid date
|
|
4418
|
-
if (elem.value && !
|
|
4418
|
+
if (elem.value && !elem.valueObject) {
|
|
4419
4419
|
elem.validity = 'patternMismatch';
|
|
4420
4420
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
4421
4421
|
return;
|
|
@@ -10440,7 +10440,7 @@ let AuroInputUtilities$2 = class AuroInputUtilities {
|
|
|
10440
10440
|
return inputValue;
|
|
10441
10441
|
}
|
|
10442
10442
|
|
|
10443
|
-
return dateFormatter$
|
|
10443
|
+
return dateFormatter$3.toISOFormatString(parsedDate);
|
|
10444
10444
|
}
|
|
10445
10445
|
|
|
10446
10446
|
/**
|
|
@@ -10457,7 +10457,7 @@ let AuroInputUtilities$2 = class AuroInputUtilities {
|
|
|
10457
10457
|
return value;
|
|
10458
10458
|
}
|
|
10459
10459
|
|
|
10460
|
-
if (!dateFormatter$
|
|
10460
|
+
if (!dateFormatter$3.isValidDate(value)) {
|
|
10461
10461
|
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
10462
10462
|
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
10463
10463
|
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
@@ -11465,7 +11465,7 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
|
|
|
11465
11465
|
|
|
11466
11466
|
// objectProperty wins over valueProperty when both changed
|
|
11467
11467
|
if (objectPropertyChanged && this[objectProperty]) {
|
|
11468
|
-
this[valueProperty] = dateFormatter$
|
|
11468
|
+
this[valueProperty] = dateFormatter$3.toISOFormatString(this[objectProperty]);
|
|
11469
11469
|
return;
|
|
11470
11470
|
}
|
|
11471
11471
|
|
|
@@ -11480,13 +11480,13 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
|
|
|
11480
11480
|
valueProperty === 'value' &&
|
|
11481
11481
|
changedProperties.get('value') === undefined &&
|
|
11482
11482
|
this[objectProperty] instanceof Date &&
|
|
11483
|
-
this[valueProperty] === dateFormatter$
|
|
11483
|
+
this[valueProperty] === dateFormatter$3.toISOFormatString(this[objectProperty])
|
|
11484
11484
|
) {
|
|
11485
11485
|
return;
|
|
11486
11486
|
}
|
|
11487
11487
|
|
|
11488
|
-
if (dateFormatter$
|
|
11489
|
-
this.setDateObjectProperty(objectProperty, dateFormatter$
|
|
11488
|
+
if (dateFormatter$3.isValidDate(this[valueProperty])) {
|
|
11489
|
+
this.setDateObjectProperty(objectProperty, dateFormatter$3.stringToDateInstance(this[valueProperty]));
|
|
11490
11490
|
} else {
|
|
11491
11491
|
this.setDateObjectProperty(objectProperty, undefined);
|
|
11492
11492
|
}
|
|
@@ -11519,7 +11519,7 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
|
|
|
11519
11519
|
if (
|
|
11520
11520
|
this.util.isFullDateFormat(this.type, this.format) &&
|
|
11521
11521
|
this.value &&
|
|
11522
|
-
dateFormatter$
|
|
11522
|
+
dateFormatter$3.isValidDate(this.value) &&
|
|
11523
11523
|
this.valueObject instanceof Date &&
|
|
11524
11524
|
!Number.isNaN(this.valueObject.getTime()) &&
|
|
11525
11525
|
typeof maskOptions.format === 'function'
|
|
@@ -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 = '202605271820';
|
|
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.
|
|
@@ -12995,7 +12995,7 @@ let AuroInput$2 = class AuroInput extends BaseInput$2 {
|
|
|
12995
12995
|
* @param {string} format - Date format to parse.
|
|
12996
12996
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
12997
12997
|
*/
|
|
12998
|
-
function getDateParts$1
|
|
12998
|
+
function getDateParts$1(dateStr, format) {
|
|
12999
12999
|
if (!dateStr) {
|
|
13000
13000
|
return undefined;
|
|
13001
13001
|
}
|
|
@@ -13054,7 +13054,7 @@ function getDateParts$1$1(dateStr, format) {
|
|
|
13054
13054
|
return result;
|
|
13055
13055
|
}
|
|
13056
13056
|
|
|
13057
|
-
function isCalendarDate$1
|
|
13057
|
+
function isCalendarDate$1(year, month, day) {
|
|
13058
13058
|
let yearNumber = Number(year);
|
|
13059
13059
|
const monthNumber = Number(month);
|
|
13060
13060
|
const dayNumber = Number(day);
|
|
@@ -13078,7 +13078,7 @@ function isCalendarDate$1$1(year, month, day) {
|
|
|
13078
13078
|
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
13079
13079
|
|
|
13080
13080
|
return (
|
|
13081
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$1
|
|
13081
|
+
!Number.isNaN(date.getTime()) && toISOFormatString$1(date) === stringified
|
|
13082
13082
|
);
|
|
13083
13083
|
}
|
|
13084
13084
|
|
|
@@ -13093,11 +13093,11 @@ function isCalendarDate$1$1(year, month, day) {
|
|
|
13093
13093
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
13094
13094
|
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
13095
13095
|
*/
|
|
13096
|
-
function parseDate$1
|
|
13096
|
+
function parseDate$1(dateStr, format = "mm/dd/yyyy") {
|
|
13097
13097
|
if (!dateStr || !format) {
|
|
13098
13098
|
return undefined;
|
|
13099
13099
|
}
|
|
13100
|
-
const result = getDateParts$1
|
|
13100
|
+
const result = getDateParts$1(dateStr.trim(), format);
|
|
13101
13101
|
|
|
13102
13102
|
if (!result) {
|
|
13103
13103
|
return undefined;
|
|
@@ -13108,7 +13108,7 @@ function parseDate$1$1(dateStr, format = "mm/dd/yyyy") {
|
|
|
13108
13108
|
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
13109
13109
|
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
13110
13110
|
|
|
13111
|
-
if (isCalendarDate$1
|
|
13111
|
+
if (isCalendarDate$1(year, month, day)) {
|
|
13112
13112
|
return result;
|
|
13113
13113
|
}
|
|
13114
13114
|
|
|
@@ -13123,7 +13123,7 @@ function parseDate$1$1(dateStr, format = "mm/dd/yyyy") {
|
|
|
13123
13123
|
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
13124
13124
|
* @returns {String} Returns the date as a string.
|
|
13125
13125
|
*/
|
|
13126
|
-
function getDateAsString$1
|
|
13126
|
+
function getDateAsString$1(date, locale = undefined) {
|
|
13127
13127
|
return date.toLocaleDateString(locale, {
|
|
13128
13128
|
year: "numeric",
|
|
13129
13129
|
month: "2-digit",
|
|
@@ -13137,12 +13137,12 @@ function getDateAsString$1$1(date, locale = undefined) {
|
|
|
13137
13137
|
* @param {String} format - Date format to validate against.
|
|
13138
13138
|
* @returns {String}
|
|
13139
13139
|
*/
|
|
13140
|
-
function toNorthAmericanFormat$1
|
|
13140
|
+
function toNorthAmericanFormat$1(dateStr, format) {
|
|
13141
13141
|
if (format === "mm/dd/yyyy") {
|
|
13142
13142
|
return dateStr;
|
|
13143
13143
|
}
|
|
13144
13144
|
|
|
13145
|
-
const parsedDate = parseDate$1
|
|
13145
|
+
const parsedDate = parseDate$1(dateStr, format);
|
|
13146
13146
|
|
|
13147
13147
|
if (!parsedDate) {
|
|
13148
13148
|
throw new Error(
|
|
@@ -13162,13 +13162,13 @@ function toNorthAmericanFormat$1$1(dateStr, format) {
|
|
|
13162
13162
|
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
13163
13163
|
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
13164
13164
|
*/
|
|
13165
|
-
function isValidDate$1
|
|
13165
|
+
function isValidDate$1(dateStr, format = "yyyy-mm-dd") {
|
|
13166
13166
|
try {
|
|
13167
13167
|
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
13168
13168
|
return false;
|
|
13169
13169
|
}
|
|
13170
13170
|
|
|
13171
|
-
if (parseDate$1
|
|
13171
|
+
if (parseDate$1(dateStr, format)) {
|
|
13172
13172
|
return true;
|
|
13173
13173
|
}
|
|
13174
13174
|
} catch (error) {
|
|
@@ -13184,7 +13184,7 @@ function isValidDate$1$1(dateStr, format = "yyyy-mm-dd") {
|
|
|
13184
13184
|
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
13185
13185
|
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
13186
13186
|
*/
|
|
13187
|
-
function toISOFormatString$1
|
|
13187
|
+
function toISOFormatString$1(date) {
|
|
13188
13188
|
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
13189
13189
|
throw new Error(
|
|
13190
13190
|
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
@@ -13201,23 +13201,23 @@ function toISOFormatString$1$1(date) {
|
|
|
13201
13201
|
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
13202
13202
|
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
13203
13203
|
*/
|
|
13204
|
-
function stringToDateInstance$1
|
|
13204
|
+
function stringToDateInstance$1(dateStr, format = "yyyy-mm-dd") {
|
|
13205
13205
|
if (typeof dateStr !== "string") {
|
|
13206
13206
|
return null;
|
|
13207
13207
|
}
|
|
13208
13208
|
|
|
13209
|
-
const { month, day, year } = parseDate$1
|
|
13209
|
+
const { month, day, year } = parseDate$1(dateStr, format);
|
|
13210
13210
|
return new Date(`${year}/${month}/${day}`);
|
|
13211
13211
|
}
|
|
13212
13212
|
|
|
13213
|
-
const dateFormatter$1
|
|
13214
|
-
parseDate: parseDate$1
|
|
13215
|
-
getDateParts: getDateParts$1
|
|
13216
|
-
getDateAsString: getDateAsString$1
|
|
13217
|
-
toNorthAmericanFormat: toNorthAmericanFormat$1
|
|
13218
|
-
isValidDate: isValidDate$1
|
|
13219
|
-
toISOFormatString: toISOFormatString$1
|
|
13220
|
-
stringToDateInstance: stringToDateInstance$1
|
|
13213
|
+
const dateFormatter$1 = {
|
|
13214
|
+
parseDate: parseDate$1,
|
|
13215
|
+
getDateParts: getDateParts$1,
|
|
13216
|
+
getDateAsString: getDateAsString$1,
|
|
13217
|
+
toNorthAmericanFormat: toNorthAmericanFormat$1,
|
|
13218
|
+
isValidDate: isValidDate$1,
|
|
13219
|
+
toISOFormatString: toISOFormatString$1,
|
|
13220
|
+
stringToDateInstance: stringToDateInstance$1,
|
|
13221
13221
|
};
|
|
13222
13222
|
|
|
13223
13223
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -13524,7 +13524,7 @@ let AuroFormValidation$1$1 = class AuroFormValidation {
|
|
|
13524
13524
|
}
|
|
13525
13525
|
|
|
13526
13526
|
// Validate that the date passed was the correct format and is a valid date
|
|
13527
|
-
if (elem.value && !
|
|
13527
|
+
if (elem.value && !elem.valueObject) {
|
|
13528
13528
|
elem.validity = 'patternMismatch';
|
|
13529
13529
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
13530
13530
|
return;
|
|
@@ -13806,7 +13806,7 @@ class AuroDatepickerUtilities {
|
|
|
13806
13806
|
toCustomFormat(isoStr, format) {
|
|
13807
13807
|
if (!isoStr || !format) return undefined;
|
|
13808
13808
|
try {
|
|
13809
|
-
const date = dateFormatter$1
|
|
13809
|
+
const date = dateFormatter$1.stringToDateInstance(isoStr);
|
|
13810
13810
|
const year = String(date.getFullYear()).padStart(4, '0');
|
|
13811
13811
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
13812
13812
|
const day = String(date.getDate()).padStart(2, '0');
|
|
@@ -13854,7 +13854,7 @@ class AuroDatepickerUtilities {
|
|
|
13854
13854
|
if (!date) return undefined;
|
|
13855
13855
|
try {
|
|
13856
13856
|
const d = date instanceof Date ? date : new Date(date);
|
|
13857
|
-
return dateFormatter$1
|
|
13857
|
+
return dateFormatter$1.toISOFormatString(d);
|
|
13858
13858
|
} catch {
|
|
13859
13859
|
return undefined;
|
|
13860
13860
|
}
|
|
@@ -13908,13 +13908,13 @@ class UtilitiesCalendarRender {
|
|
|
13908
13908
|
*/
|
|
13909
13909
|
updateCentralDate(elem, date) {
|
|
13910
13910
|
// if date is already iso formatted string, we can skip the conversion and validation step
|
|
13911
|
-
if (typeof date === 'string' && dateFormatter$1
|
|
13911
|
+
if (typeof date === 'string' && dateFormatter$1.isValidDate(date)) {
|
|
13912
13912
|
elem.centralDate = date;
|
|
13913
13913
|
return;
|
|
13914
13914
|
}
|
|
13915
13915
|
|
|
13916
13916
|
// Accept Date objects, Unix timestamps (numbers), and ISO strings
|
|
13917
|
-
const dateObj = date instanceof Date || typeof date === 'number' ? new Date(date) : dateFormatter$1
|
|
13917
|
+
const dateObj = date instanceof Date || typeof date === 'number' ? new Date(date) : dateFormatter$1.stringToDateInstance(date);
|
|
13918
13918
|
|
|
13919
13919
|
if (!dateObj || isNaN(dateObj)) {
|
|
13920
13920
|
return;
|
|
@@ -13922,7 +13922,7 @@ class UtilitiesCalendarRender {
|
|
|
13922
13922
|
|
|
13923
13923
|
dateObj.setDate(1);
|
|
13924
13924
|
dateObj.setHours(0, 0, 0, 0);
|
|
13925
|
-
elem.centralDate = dateFormatter$1
|
|
13925
|
+
elem.centralDate = dateFormatter$1.toISOFormatString(dateObj);
|
|
13926
13926
|
}
|
|
13927
13927
|
|
|
13928
13928
|
/**
|
|
@@ -13934,7 +13934,7 @@ class UtilitiesCalendarRender {
|
|
|
13934
13934
|
determineDefinedCalendarRange(elem) {
|
|
13935
13935
|
if (elem.getAttribute('calendarStartDate') && elem.getAttribute('calendarEndDate')) {
|
|
13936
13936
|
// if we have a defined range of months, use that
|
|
13937
|
-
elem.calendarRangeMonths = elem.util.monthDiff(dateFormatter$1
|
|
13937
|
+
elem.calendarRangeMonths = elem.util.monthDiff(dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarStartDate')), dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarEndDate')));
|
|
13938
13938
|
} else {
|
|
13939
13939
|
// if we don't have a defined range of months, use undefined
|
|
13940
13940
|
elem.calendarRangeMonths = undefined;
|
|
@@ -13994,7 +13994,7 @@ class UtilitiesCalendarRender {
|
|
|
13994
13994
|
|
|
13995
13995
|
// 3. If we didn't get a count early, restrict based on min/max date.
|
|
13996
13996
|
if (!calendarCount && elem.minDate && elem.maxDate) {
|
|
13997
|
-
const monthsInRange = this.util.monthDiff(dateFormatter$1
|
|
13997
|
+
const monthsInRange = this.util.monthDiff(dateFormatter$1.stringToDateInstance(elem.minDate), dateFormatter$1.stringToDateInstance(elem.maxDate));
|
|
13998
13998
|
|
|
13999
13999
|
if (monthsInRange < maxRenderableMonths) {
|
|
14000
14000
|
calendarCount = monthsInRange;
|
|
@@ -14020,9 +14020,9 @@ class UtilitiesCalendarRender {
|
|
|
14020
14020
|
let firstMonthDate = new Date();
|
|
14021
14021
|
|
|
14022
14022
|
if (start) {
|
|
14023
|
-
firstMonthDate = dateFormatter$1
|
|
14023
|
+
firstMonthDate = dateFormatter$1.stringToDateInstance(start);
|
|
14024
14024
|
} else if (min) {
|
|
14025
|
-
firstMonthDate = dateFormatter$1
|
|
14025
|
+
firstMonthDate = dateFormatter$1.stringToDateInstance(min);
|
|
14026
14026
|
}
|
|
14027
14027
|
|
|
14028
14028
|
// sets to the first day of the month
|
|
@@ -21426,8 +21426,8 @@ class CalendarUtilities {
|
|
|
21426
21426
|
scrollMonthIntoView(elem, date) {
|
|
21427
21427
|
const mobileLayout = window.innerWidth < elem.mobileBreakpoint;
|
|
21428
21428
|
|
|
21429
|
-
if (dateFormatter$1
|
|
21430
|
-
const dateObj = dateFormatter$1
|
|
21429
|
+
if (dateFormatter$1.isValidDate(date) && mobileLayout) {
|
|
21430
|
+
const dateObj = dateFormatter$1.stringToDateInstance(date);
|
|
21431
21431
|
const month = dateObj.getMonth() + 1;
|
|
21432
21432
|
const year = dateObj.getFullYear();
|
|
21433
21433
|
const selector = `#month-${month}-${year}`;
|
|
@@ -21478,7 +21478,7 @@ class CalendarUtilities {
|
|
|
21478
21478
|
let lastRenderableMonth = undefined; // eslint-disable-line no-undef-init
|
|
21479
21479
|
|
|
21480
21480
|
if (elem.hasAttribute('calendarEndDate')) {
|
|
21481
|
-
lastRenderableMonth = dateFormatter$1
|
|
21481
|
+
lastRenderableMonth = dateFormatter$1.stringToDateInstance(elem.getAttribute('calendarEndDate'));
|
|
21482
21482
|
} else if (elem.maxDateObject) {
|
|
21483
21483
|
lastRenderableMonth = elem.maxDateObject;
|
|
21484
21484
|
}
|
|
@@ -21554,7 +21554,7 @@ class CalendarUtilities {
|
|
|
21554
21554
|
newCentralDate = new Date(firstRenderedMonth).setMonth(new Date(firstRenderedMonth).getMonth() + increment, 1);
|
|
21555
21555
|
}
|
|
21556
21556
|
|
|
21557
|
-
elem.centralDate = dateFormatter$1
|
|
21557
|
+
elem.centralDate = dateFormatter$1.toISOFormatString(new Date(newCentralDate));
|
|
21558
21558
|
}
|
|
21559
21559
|
}
|
|
21560
21560
|
|
|
@@ -21947,7 +21947,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$3 {
|
|
|
21947
21947
|
}
|
|
21948
21948
|
};
|
|
21949
21949
|
|
|
21950
|
-
var formkitVersion$2$1 = '
|
|
21950
|
+
var formkitVersion$2$1 = '202605271820';
|
|
21951
21951
|
|
|
21952
21952
|
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}
|
|
21953
21953
|
`,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}}
|
|
@@ -22207,17 +22207,17 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
22207
22207
|
|
|
22208
22208
|
/** @returns {Date|undefined} */
|
|
22209
22209
|
get centralDateObject() {
|
|
22210
|
-
return this.centralDate && dateFormatter$1
|
|
22210
|
+
return this.centralDate && dateFormatter$1.isValidDate(this.centralDate) ? dateFormatter$1.stringToDateInstance(this.centralDate) : undefined;
|
|
22211
22211
|
}
|
|
22212
22212
|
|
|
22213
22213
|
/** @returns {Date|undefined} */
|
|
22214
22214
|
get minDateObject() {
|
|
22215
|
-
return this.minDate && dateFormatter$1
|
|
22215
|
+
return this.minDate && dateFormatter$1.isValidDate(this.minDate) ? dateFormatter$1.stringToDateInstance(this.minDate) : undefined;
|
|
22216
22216
|
}
|
|
22217
22217
|
|
|
22218
22218
|
/** @returns {Date|undefined} */
|
|
22219
22219
|
get maxDateObject() {
|
|
22220
|
-
return this.maxDate && dateFormatter$1
|
|
22220
|
+
return this.maxDate && dateFormatter$1.isValidDate(this.maxDate) ? dateFormatter$1.stringToDateInstance(this.maxDate) : undefined;
|
|
22221
22221
|
}
|
|
22222
22222
|
|
|
22223
22223
|
/**
|
|
@@ -22313,7 +22313,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
22313
22313
|
}
|
|
22314
22314
|
|
|
22315
22315
|
const newMonthDateStr = `${String(newMonth).padStart(2, '0')}/01/${newYear}`;
|
|
22316
|
-
newMonthDate = dateFormatter$1
|
|
22316
|
+
newMonthDate = dateFormatter$1.stringToDateInstance(newMonthDateStr, 'mm/dd/yyyy');
|
|
22317
22317
|
|
|
22318
22318
|
renderedHtml = u$d`${renderedHtml}${this.utilCalRender.renderCalendar(this, newMonth, newYear)}`;
|
|
22319
22319
|
}
|
|
@@ -26306,7 +26306,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$3 {
|
|
|
26306
26306
|
}
|
|
26307
26307
|
};
|
|
26308
26308
|
|
|
26309
|
-
var formkitVersion$1$2 = '
|
|
26309
|
+
var formkitVersion$1$2 = '202605271820';
|
|
26310
26310
|
|
|
26311
26311
|
let AuroElement$2$2 = class AuroElement extends i$3 {
|
|
26312
26312
|
static get properties() {
|
|
@@ -31194,7 +31194,7 @@ try {
|
|
|
31194
31194
|
* @param {string} format - Date format to parse.
|
|
31195
31195
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
31196
31196
|
*/
|
|
31197
|
-
function getDateParts$
|
|
31197
|
+
function getDateParts$2(dateStr, format) {
|
|
31198
31198
|
if (!dateStr) {
|
|
31199
31199
|
return undefined;
|
|
31200
31200
|
}
|
|
@@ -31253,7 +31253,7 @@ function getDateParts$6(dateStr, format) {
|
|
|
31253
31253
|
return result;
|
|
31254
31254
|
}
|
|
31255
31255
|
|
|
31256
|
-
function isCalendarDate$
|
|
31256
|
+
function isCalendarDate$2(year, month, day) {
|
|
31257
31257
|
let yearNumber = Number(year);
|
|
31258
31258
|
const monthNumber = Number(month);
|
|
31259
31259
|
const dayNumber = Number(day);
|
|
@@ -31277,7 +31277,7 @@ function isCalendarDate$6(year, month, day) {
|
|
|
31277
31277
|
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
31278
31278
|
|
|
31279
31279
|
return (
|
|
31280
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$
|
|
31280
|
+
!Number.isNaN(date.getTime()) && toISOFormatString$2(date) === stringified
|
|
31281
31281
|
);
|
|
31282
31282
|
}
|
|
31283
31283
|
|
|
@@ -31292,11 +31292,11 @@ function isCalendarDate$6(year, month, day) {
|
|
|
31292
31292
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
31293
31293
|
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
31294
31294
|
*/
|
|
31295
|
-
function parseDate$
|
|
31295
|
+
function parseDate$2(dateStr, format = "mm/dd/yyyy") {
|
|
31296
31296
|
if (!dateStr || !format) {
|
|
31297
31297
|
return undefined;
|
|
31298
31298
|
}
|
|
31299
|
-
const result = getDateParts$
|
|
31299
|
+
const result = getDateParts$2(dateStr.trim(), format);
|
|
31300
31300
|
|
|
31301
31301
|
if (!result) {
|
|
31302
31302
|
return undefined;
|
|
@@ -31307,7 +31307,7 @@ function parseDate$6(dateStr, format = "mm/dd/yyyy") {
|
|
|
31307
31307
|
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
31308
31308
|
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
31309
31309
|
|
|
31310
|
-
if (isCalendarDate$
|
|
31310
|
+
if (isCalendarDate$2(year, month, day)) {
|
|
31311
31311
|
return result;
|
|
31312
31312
|
}
|
|
31313
31313
|
|
|
@@ -31322,7 +31322,7 @@ function parseDate$6(dateStr, format = "mm/dd/yyyy") {
|
|
|
31322
31322
|
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
31323
31323
|
* @returns {String} Returns the date as a string.
|
|
31324
31324
|
*/
|
|
31325
|
-
function getDateAsString$
|
|
31325
|
+
function getDateAsString$2(date, locale = undefined) {
|
|
31326
31326
|
return date.toLocaleDateString(locale, {
|
|
31327
31327
|
year: "numeric",
|
|
31328
31328
|
month: "2-digit",
|
|
@@ -31336,12 +31336,12 @@ function getDateAsString$6(date, locale = undefined) {
|
|
|
31336
31336
|
* @param {String} format - Date format to validate against.
|
|
31337
31337
|
* @returns {String}
|
|
31338
31338
|
*/
|
|
31339
|
-
function toNorthAmericanFormat$
|
|
31339
|
+
function toNorthAmericanFormat$2(dateStr, format) {
|
|
31340
31340
|
if (format === "mm/dd/yyyy") {
|
|
31341
31341
|
return dateStr;
|
|
31342
31342
|
}
|
|
31343
31343
|
|
|
31344
|
-
const parsedDate = parseDate$
|
|
31344
|
+
const parsedDate = parseDate$2(dateStr, format);
|
|
31345
31345
|
|
|
31346
31346
|
if (!parsedDate) {
|
|
31347
31347
|
throw new Error(
|
|
@@ -31361,13 +31361,13 @@ function toNorthAmericanFormat$6(dateStr, format) {
|
|
|
31361
31361
|
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
31362
31362
|
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
31363
31363
|
*/
|
|
31364
|
-
function isValidDate$
|
|
31364
|
+
function isValidDate$2(dateStr, format = "yyyy-mm-dd") {
|
|
31365
31365
|
try {
|
|
31366
31366
|
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
31367
31367
|
return false;
|
|
31368
31368
|
}
|
|
31369
31369
|
|
|
31370
|
-
if (parseDate$
|
|
31370
|
+
if (parseDate$2(dateStr, format)) {
|
|
31371
31371
|
return true;
|
|
31372
31372
|
}
|
|
31373
31373
|
} catch (error) {
|
|
@@ -31383,7 +31383,7 @@ function isValidDate$6(dateStr, format = "yyyy-mm-dd") {
|
|
|
31383
31383
|
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
31384
31384
|
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
31385
31385
|
*/
|
|
31386
|
-
function toISOFormatString$
|
|
31386
|
+
function toISOFormatString$2(date) {
|
|
31387
31387
|
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
31388
31388
|
throw new Error(
|
|
31389
31389
|
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
@@ -31400,23 +31400,23 @@ function toISOFormatString$6(date) {
|
|
|
31400
31400
|
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
31401
31401
|
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
31402
31402
|
*/
|
|
31403
|
-
function stringToDateInstance$
|
|
31403
|
+
function stringToDateInstance$2(dateStr, format = "yyyy-mm-dd") {
|
|
31404
31404
|
if (typeof dateStr !== "string") {
|
|
31405
31405
|
return null;
|
|
31406
31406
|
}
|
|
31407
31407
|
|
|
31408
|
-
const { month, day, year } = parseDate$
|
|
31408
|
+
const { month, day, year } = parseDate$2(dateStr, format);
|
|
31409
31409
|
return new Date(`${year}/${month}/${day}`);
|
|
31410
31410
|
}
|
|
31411
31411
|
|
|
31412
|
-
const dateFormatter$
|
|
31413
|
-
parseDate: parseDate$
|
|
31414
|
-
getDateParts: getDateParts$
|
|
31415
|
-
getDateAsString: getDateAsString$
|
|
31416
|
-
toNorthAmericanFormat: toNorthAmericanFormat$
|
|
31417
|
-
isValidDate: isValidDate$
|
|
31418
|
-
toISOFormatString: toISOFormatString$
|
|
31419
|
-
stringToDateInstance: stringToDateInstance$
|
|
31412
|
+
const dateFormatter$2 = {
|
|
31413
|
+
parseDate: parseDate$2,
|
|
31414
|
+
getDateParts: getDateParts$2,
|
|
31415
|
+
getDateAsString: getDateAsString$2,
|
|
31416
|
+
toNorthAmericanFormat: toNorthAmericanFormat$2,
|
|
31417
|
+
isValidDate: isValidDate$2,
|
|
31418
|
+
toISOFormatString: toISOFormatString$2,
|
|
31419
|
+
stringToDateInstance: stringToDateInstance$2,
|
|
31420
31420
|
};
|
|
31421
31421
|
|
|
31422
31422
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -31723,7 +31723,7 @@ let AuroFormValidation$6 = class AuroFormValidation {
|
|
|
31723
31723
|
}
|
|
31724
31724
|
|
|
31725
31725
|
// Validate that the date passed was the correct format and is a valid date
|
|
31726
|
-
if (elem.value && !
|
|
31726
|
+
if (elem.value && !elem.valueObject) {
|
|
31727
31727
|
elem.validity = 'patternMismatch';
|
|
31728
31728
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
31729
31729
|
return;
|
|
@@ -37748,7 +37748,7 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
|
37748
37748
|
return inputValue;
|
|
37749
37749
|
}
|
|
37750
37750
|
|
|
37751
|
-
return dateFormatter$
|
|
37751
|
+
return dateFormatter$2.toISOFormatString(parsedDate);
|
|
37752
37752
|
}
|
|
37753
37753
|
|
|
37754
37754
|
/**
|
|
@@ -37765,7 +37765,7 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
|
|
|
37765
37765
|
return value;
|
|
37766
37766
|
}
|
|
37767
37767
|
|
|
37768
|
-
if (!dateFormatter$
|
|
37768
|
+
if (!dateFormatter$2.isValidDate(value)) {
|
|
37769
37769
|
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
37770
37770
|
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
37771
37771
|
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
@@ -38773,7 +38773,7 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
|
|
|
38773
38773
|
|
|
38774
38774
|
// objectProperty wins over valueProperty when both changed
|
|
38775
38775
|
if (objectPropertyChanged && this[objectProperty]) {
|
|
38776
|
-
this[valueProperty] = dateFormatter$
|
|
38776
|
+
this[valueProperty] = dateFormatter$2.toISOFormatString(this[objectProperty]);
|
|
38777
38777
|
return;
|
|
38778
38778
|
}
|
|
38779
38779
|
|
|
@@ -38788,13 +38788,13 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
|
|
|
38788
38788
|
valueProperty === 'value' &&
|
|
38789
38789
|
changedProperties.get('value') === undefined &&
|
|
38790
38790
|
this[objectProperty] instanceof Date &&
|
|
38791
|
-
this[valueProperty] === dateFormatter$
|
|
38791
|
+
this[valueProperty] === dateFormatter$2.toISOFormatString(this[objectProperty])
|
|
38792
38792
|
) {
|
|
38793
38793
|
return;
|
|
38794
38794
|
}
|
|
38795
38795
|
|
|
38796
|
-
if (dateFormatter$
|
|
38797
|
-
this.setDateObjectProperty(objectProperty, dateFormatter$
|
|
38796
|
+
if (dateFormatter$2.isValidDate(this[valueProperty])) {
|
|
38797
|
+
this.setDateObjectProperty(objectProperty, dateFormatter$2.stringToDateInstance(this[valueProperty]));
|
|
38798
38798
|
} else {
|
|
38799
38799
|
this.setDateObjectProperty(objectProperty, undefined);
|
|
38800
38800
|
}
|
|
@@ -38827,7 +38827,7 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
|
|
|
38827
38827
|
if (
|
|
38828
38828
|
this.util.isFullDateFormat(this.type, this.format) &&
|
|
38829
38829
|
this.value &&
|
|
38830
|
-
dateFormatter$
|
|
38830
|
+
dateFormatter$2.isValidDate(this.value) &&
|
|
38831
38831
|
this.valueObject instanceof Date &&
|
|
38832
38832
|
!Number.isNaN(this.valueObject.getTime()) &&
|
|
38833
38833
|
typeof maskOptions.format === 'function'
|
|
@@ -39557,7 +39557,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$3 {
|
|
|
39557
39557
|
}
|
|
39558
39558
|
};
|
|
39559
39559
|
|
|
39560
|
-
var formkitVersion$8 = '
|
|
39560
|
+
var formkitVersion$8 = '202605271820';
|
|
39561
39561
|
|
|
39562
39562
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
39563
39563
|
// See LICENSE in the project root for license information.
|
|
@@ -40300,7 +40300,7 @@ function formatISODate(isoStr, format) {
|
|
|
40300
40300
|
}
|
|
40301
40301
|
|
|
40302
40302
|
try {
|
|
40303
|
-
const date = dateFormatter$
|
|
40303
|
+
const date = dateFormatter$2.stringToDateInstance(isoStr);
|
|
40304
40304
|
|
|
40305
40305
|
const year = String(date.getFullYear()).padStart(4, '0');
|
|
40306
40306
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
@@ -40318,7 +40318,7 @@ function formatISODate(isoStr, format) {
|
|
|
40318
40318
|
}
|
|
40319
40319
|
|
|
40320
40320
|
const AuroInputUtil = {
|
|
40321
|
-
toISOFormatString: dateFormatter$
|
|
40321
|
+
toISOFormatString: dateFormatter$2.toISOFormatString,
|
|
40322
40322
|
formatISODate,
|
|
40323
40323
|
toFormattedValue: AuroInputUtilities$1.prototype.toFormattedValue.bind(new AuroInputUtilities$1()),
|
|
40324
40324
|
};
|
|
@@ -41604,7 +41604,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
41604
41604
|
* @returns {void}
|
|
41605
41605
|
*/
|
|
41606
41606
|
handleFocusDateChange() {
|
|
41607
|
-
if (this.calendarFocusDate && dateFormatter$1
|
|
41607
|
+
if (this.calendarFocusDate && dateFormatter$1.isValidDate(this.calendarFocusDate)) {
|
|
41608
41608
|
this.calendarRenderUtil.updateCentralDate(this, this.calendarFocusDateObject);
|
|
41609
41609
|
|
|
41610
41610
|
this.forceScrollOnNextMobileCalendarRender = true;
|
|
@@ -41650,42 +41650,42 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
41650
41650
|
|
|
41651
41651
|
/** @returns {Date|undefined} */
|
|
41652
41652
|
get valueObject() {
|
|
41653
|
-
return this.value && dateFormatter$1
|
|
41653
|
+
return this.value && dateFormatter$1.isValidDate(this.value) ? dateFormatter$1.stringToDateInstance(this.value) : undefined;
|
|
41654
41654
|
}
|
|
41655
41655
|
|
|
41656
41656
|
/** @returns {Date|undefined} */
|
|
41657
41657
|
get valueEndObject() {
|
|
41658
|
-
return this.valueEnd && dateFormatter$1
|
|
41658
|
+
return this.valueEnd && dateFormatter$1.isValidDate(this.valueEnd) ? dateFormatter$1.stringToDateInstance(this.valueEnd) : undefined;
|
|
41659
41659
|
}
|
|
41660
41660
|
|
|
41661
41661
|
/** @returns {Date|undefined} */
|
|
41662
41662
|
get minDateObject() {
|
|
41663
|
-
return this.minDate && dateFormatter$1
|
|
41663
|
+
return this.minDate && dateFormatter$1.isValidDate(this.minDate) ? dateFormatter$1.stringToDateInstance(this.minDate) : undefined;
|
|
41664
41664
|
}
|
|
41665
41665
|
|
|
41666
41666
|
/** @returns {Date|undefined} */
|
|
41667
41667
|
get maxDateObject() {
|
|
41668
|
-
return this.maxDate && dateFormatter$1
|
|
41668
|
+
return this.maxDate && dateFormatter$1.isValidDate(this.maxDate) ? dateFormatter$1.stringToDateInstance(this.maxDate) : undefined;
|
|
41669
41669
|
}
|
|
41670
41670
|
|
|
41671
41671
|
/** @returns {Date|undefined} */
|
|
41672
41672
|
get calendarStartDateObject() {
|
|
41673
|
-
return this.calendarStartDate && dateFormatter$1
|
|
41673
|
+
return this.calendarStartDate && dateFormatter$1.isValidDate(this.calendarStartDate) ? dateFormatter$1.stringToDateInstance(this.calendarStartDate) : undefined;
|
|
41674
41674
|
}
|
|
41675
41675
|
|
|
41676
41676
|
/** @returns {Date|undefined} */
|
|
41677
41677
|
get calendarEndDateObject() {
|
|
41678
|
-
return this.calendarEndDate && dateFormatter$1
|
|
41678
|
+
return this.calendarEndDate && dateFormatter$1.isValidDate(this.calendarEndDate) ? dateFormatter$1.stringToDateInstance(this.calendarEndDate) : undefined;
|
|
41679
41679
|
}
|
|
41680
41680
|
|
|
41681
41681
|
/** @returns {Date|undefined} */
|
|
41682
41682
|
get centralDateObject() {
|
|
41683
|
-
return this.centralDate && dateFormatter$1
|
|
41683
|
+
return this.centralDate && dateFormatter$1.isValidDate(this.centralDate) ? dateFormatter$1.stringToDateInstance(this.centralDate) : undefined;
|
|
41684
41684
|
}
|
|
41685
41685
|
|
|
41686
41686
|
/** @returns {Date|undefined} */
|
|
41687
41687
|
get calendarFocusDateObject() {
|
|
41688
|
-
return this.calendarFocusDate && dateFormatter$1
|
|
41688
|
+
return this.calendarFocusDate && dateFormatter$1.isValidDate(this.calendarFocusDate) ? dateFormatter$1.stringToDateInstance(this.calendarFocusDate) : undefined;
|
|
41689
41689
|
}
|
|
41690
41690
|
|
|
41691
41691
|
// ─── Vendor calendar time conversions ─────────────────────────────────────
|
|
@@ -41697,7 +41697,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
41697
41697
|
* @returns {string} ISO date string (yyyy-mm-dd).
|
|
41698
41698
|
*/
|
|
41699
41699
|
convertWcTimeToDate(time) {
|
|
41700
|
-
return dateFormatter$1
|
|
41700
|
+
return dateFormatter$1.toISOFormatString(new Date(time * 1000));
|
|
41701
41701
|
}
|
|
41702
41702
|
|
|
41703
41703
|
/**
|
|
@@ -42042,16 +42042,17 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42042
42042
|
const newDate = this.convertWcTimeToDate(time);
|
|
42043
42043
|
|
|
42044
42044
|
let onEndValue = false;
|
|
42045
|
-
if (dateFormatter$1
|
|
42045
|
+
if (dateFormatter$1.isValidDate(newDate)) {
|
|
42046
42046
|
|
|
42047
42047
|
if (this.range) {
|
|
42048
42048
|
if (this.valueObject && !this.valueEndObject) {
|
|
42049
42049
|
// verify the date is after this.value to insure we are setting a proper range
|
|
42050
|
-
if (dateFormatter$1
|
|
42050
|
+
if (dateFormatter$1.stringToDateInstance(newDate) >= this.valueObject) {
|
|
42051
42051
|
onEndValue = true;
|
|
42052
42052
|
}
|
|
42053
42053
|
} else if (this.valueObject && this.valueEndObject) {
|
|
42054
42054
|
// both dateTo and dateFrom are valid, then reset dateEnd
|
|
42055
|
+
// set input's value as the callback restores this.valueEnd to the old value
|
|
42055
42056
|
this.inputList[1].value = undefined;
|
|
42056
42057
|
}
|
|
42057
42058
|
}
|
|
@@ -42171,7 +42172,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42171
42172
|
if (changedProperties.has('value')) {
|
|
42172
42173
|
|
|
42173
42174
|
// Change the calendar focus to the first valid date value only the first time the value is set
|
|
42174
|
-
if (!this.calendarFocusDate && dateFormatter$1
|
|
42175
|
+
if (!this.calendarFocusDate && dateFormatter$1.isValidDate(this.value)) {
|
|
42175
42176
|
if (!this.dropdown.isPopoverVisible) {
|
|
42176
42177
|
this.calendarFocusDate = this.value;
|
|
42177
42178
|
|
|
@@ -42184,7 +42185,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42184
42185
|
this.cellClickActive = false;
|
|
42185
42186
|
}
|
|
42186
42187
|
|
|
42187
|
-
if (this.value && dateFormatter$1
|
|
42188
|
+
if (this.value && dateFormatter$1.isValidDate(this.value)) {
|
|
42188
42189
|
this.calendar.dateFrom = this.convertToWcValidTime(this.valueObject);
|
|
42189
42190
|
this.calendarRenderUtil.updateCentralDate(this, this.valueObject);
|
|
42190
42191
|
} else {
|
|
@@ -42285,7 +42286,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42285
42286
|
|
|
42286
42287
|
// When there is no focusDate and no value, set the focusDate to the minDate
|
|
42287
42288
|
const nothingSet = !this.calendarFocusDate && !this.value;
|
|
42288
|
-
const earlierThanMinDate = this.calendarFocusDate && dateFormatter$1
|
|
42289
|
+
const earlierThanMinDate = this.calendarFocusDate && dateFormatter$1.isValidDate(this.calendarFocusDate) && this.calendarFocusDateObject < this.minDateObject;
|
|
42289
42290
|
|
|
42290
42291
|
if (nothingSet || earlierThanMinDate) {
|
|
42291
42292
|
this.calendarFocusDate = this.minDate;
|
|
@@ -42298,7 +42299,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42298
42299
|
// This resets the datepicker when the maxDate is set to a new value that is
|
|
42299
42300
|
// an earlier date than the current value date
|
|
42300
42301
|
if (changedProperties.has('maxDate')) {
|
|
42301
|
-
if (this.maxDate && dateFormatter$1
|
|
42302
|
+
if (this.maxDate && dateFormatter$1.isValidDate(this.maxDate)) {
|
|
42302
42303
|
const maxDateMonth = this.maxDateObject.getMonth() + 1;
|
|
42303
42304
|
const maxDateYear = this.maxDateObject.getFullYear();
|
|
42304
42305
|
|
|
@@ -42544,7 +42545,7 @@ class AuroDatePicker extends AuroElement$6 {
|
|
|
42544
42545
|
return u$d`
|
|
42545
42546
|
<div>
|
|
42546
42547
|
<div class="${e$3(displayTextClasses)}">
|
|
42547
|
-
${dateValue && dateFormatter$1
|
|
42548
|
+
${dateValue && dateFormatter$1.isValidDate(dateValue)
|
|
42548
42549
|
? this.formatShortDate(dateValue)
|
|
42549
42550
|
: undefined
|
|
42550
42551
|
}
|
|
@@ -46711,7 +46712,7 @@ let AuroHelpText$7 = class AuroHelpText extends i$3 {
|
|
|
46711
46712
|
}
|
|
46712
46713
|
};
|
|
46713
46714
|
|
|
46714
|
-
var formkitVersion$7 = '
|
|
46715
|
+
var formkitVersion$7 = '202605271820';
|
|
46715
46716
|
|
|
46716
46717
|
let AuroElement$5 = class AuroElement extends i$3 {
|
|
46717
46718
|
static get properties() {
|
|
@@ -48099,237 +48100,6 @@ let p$2$2 = class p{registerComponent(t,a){customElements.get(t)||customElements
|
|
|
48099
48100
|
|
|
48100
48101
|
var iconVersion$1$2 = '9.1.2';
|
|
48101
48102
|
|
|
48102
|
-
/**
|
|
48103
|
-
* @description Splits a date string into its parts according to the provided format. Does NOT validate that the result is a real calendar date — use `parseDate` when validation is required.
|
|
48104
|
-
* @param {string} dateStr - Date string to parse.
|
|
48105
|
-
* @param {string} format - Date format to parse.
|
|
48106
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
48107
|
-
*/
|
|
48108
|
-
function getDateParts$5(dateStr, format) {
|
|
48109
|
-
if (!dateStr) {
|
|
48110
|
-
return undefined;
|
|
48111
|
-
}
|
|
48112
|
-
|
|
48113
|
-
const formatSeparatorMatch = format.match(/[/.-]/);
|
|
48114
|
-
let valueParts;
|
|
48115
|
-
let formatParts;
|
|
48116
|
-
|
|
48117
|
-
if (formatSeparatorMatch) {
|
|
48118
|
-
const separator = formatSeparatorMatch[0];
|
|
48119
|
-
valueParts = dateStr.split(separator);
|
|
48120
|
-
formatParts = format.split(separator);
|
|
48121
|
-
} else {
|
|
48122
|
-
if (dateStr.match(/[/.-]/)) {
|
|
48123
|
-
throw new Error(
|
|
48124
|
-
"AuroDatepickerUtilities | parseDate: Date string has no separators",
|
|
48125
|
-
);
|
|
48126
|
-
}
|
|
48127
|
-
|
|
48128
|
-
if (dateStr.length !== format.length) {
|
|
48129
|
-
throw new Error(
|
|
48130
|
-
"AuroDatepickerUtilities | parseDate: Date string and format length do not match",
|
|
48131
|
-
);
|
|
48132
|
-
}
|
|
48133
|
-
|
|
48134
|
-
valueParts = [dateStr];
|
|
48135
|
-
formatParts = [format];
|
|
48136
|
-
}
|
|
48137
|
-
|
|
48138
|
-
if (valueParts.length !== formatParts.length) {
|
|
48139
|
-
throw new Error(
|
|
48140
|
-
`AuroDatepickerUtilities | parseDate: Date string and format do not match : ${dateStr} vs ${format}`,
|
|
48141
|
-
);
|
|
48142
|
-
}
|
|
48143
|
-
|
|
48144
|
-
const result = formatParts.reduce((acc, part, index) => {
|
|
48145
|
-
const value = valueParts[index];
|
|
48146
|
-
|
|
48147
|
-
if (/m/iu.test(part) && part.length === value.length) {
|
|
48148
|
-
acc.month = value;
|
|
48149
|
-
} else if (/d/iu.test(part) && part.length === value.length) {
|
|
48150
|
-
acc.day = value;
|
|
48151
|
-
} else if (/y/iu.test(part) && part.length === value.length) {
|
|
48152
|
-
acc.year = value;
|
|
48153
|
-
}
|
|
48154
|
-
|
|
48155
|
-
return acc;
|
|
48156
|
-
}, {});
|
|
48157
|
-
|
|
48158
|
-
if (!result.month && !result.day && !result.year) {
|
|
48159
|
-
throw new Error(
|
|
48160
|
-
"AuroDatepickerUtilities | parseDate: Unable to parse date string",
|
|
48161
|
-
);
|
|
48162
|
-
}
|
|
48163
|
-
|
|
48164
|
-
return result;
|
|
48165
|
-
}
|
|
48166
|
-
|
|
48167
|
-
function isCalendarDate$5(year, month, day) {
|
|
48168
|
-
let yearNumber = Number(year);
|
|
48169
|
-
const monthNumber = Number(month);
|
|
48170
|
-
const dayNumber = Number(day);
|
|
48171
|
-
|
|
48172
|
-
if (
|
|
48173
|
-
!Number.isInteger(yearNumber) ||
|
|
48174
|
-
!Number.isInteger(monthNumber) ||
|
|
48175
|
-
!Number.isInteger(dayNumber)
|
|
48176
|
-
) {
|
|
48177
|
-
return false;
|
|
48178
|
-
}
|
|
48179
|
-
|
|
48180
|
-
// Handle 2-digit years by converting them to 4-digit years based on a cutoff. This allows for parsing of 2-digit year formats while still validating the resulting date.
|
|
48181
|
-
if (yearNumber < 100 && yearNumber >= 50) {
|
|
48182
|
-
yearNumber += 1900;
|
|
48183
|
-
} else if (yearNumber < 50) {
|
|
48184
|
-
yearNumber += 2000;
|
|
48185
|
-
}
|
|
48186
|
-
|
|
48187
|
-
const stringified = `${String(yearNumber).padStart(4, "0")}-${String(monthNumber).padStart(2, "0")}-${String(dayNumber).padStart(2, "0")}`;
|
|
48188
|
-
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
48189
|
-
|
|
48190
|
-
return (
|
|
48191
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$5(date) === stringified
|
|
48192
|
-
);
|
|
48193
|
-
}
|
|
48194
|
-
|
|
48195
|
-
/**
|
|
48196
|
-
* @description Parses a date string into its components and validates that the result is a real calendar date. Use `getDateParts` instead when raw splitting without validation is needed (e.g. for in-progress input).
|
|
48197
|
-
*
|
|
48198
|
-
* Partial formats are supported: components absent from `format` default to `year → "0"`,
|
|
48199
|
-
* `month → "01"`, `day → "01"` for calendar validation only. The returned object contains
|
|
48200
|
-
* only the fields actually present in the format string — missing fields are never injected.
|
|
48201
|
-
* @param {string} dateStr - Date string to parse.
|
|
48202
|
-
* @param {string} format - Date format to parse.
|
|
48203
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
48204
|
-
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
48205
|
-
*/
|
|
48206
|
-
function parseDate$5(dateStr, format = "mm/dd/yyyy") {
|
|
48207
|
-
if (!dateStr || !format) {
|
|
48208
|
-
return undefined;
|
|
48209
|
-
}
|
|
48210
|
-
const result = getDateParts$5(dateStr.trim(), format);
|
|
48211
|
-
|
|
48212
|
-
if (!result) {
|
|
48213
|
-
return undefined;
|
|
48214
|
-
}
|
|
48215
|
-
|
|
48216
|
-
const lowerFormat = format.toLowerCase();
|
|
48217
|
-
const year = lowerFormat.includes("yy") ? result.year : "0";
|
|
48218
|
-
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
48219
|
-
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
48220
|
-
|
|
48221
|
-
if (isCalendarDate$5(year, month, day)) {
|
|
48222
|
-
return result;
|
|
48223
|
-
}
|
|
48224
|
-
|
|
48225
|
-
throw new Error(
|
|
48226
|
-
`AuroDatepickerUtilities | parseDate: Date string is not a valid date ${JSON.stringify(result)} with format ${format}`,
|
|
48227
|
-
);
|
|
48228
|
-
}
|
|
48229
|
-
|
|
48230
|
-
/**
|
|
48231
|
-
* Convert a date object to string format.
|
|
48232
|
-
* @param {Object} date - Date to convert to string.
|
|
48233
|
-
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
48234
|
-
* @returns {String} Returns the date as a string.
|
|
48235
|
-
*/
|
|
48236
|
-
function getDateAsString$5(date, locale = undefined) {
|
|
48237
|
-
return date.toLocaleDateString(locale, {
|
|
48238
|
-
year: "numeric",
|
|
48239
|
-
month: "2-digit",
|
|
48240
|
-
day: "2-digit",
|
|
48241
|
-
});
|
|
48242
|
-
}
|
|
48243
|
-
|
|
48244
|
-
/**
|
|
48245
|
-
* Converts a date string to a North American date format.
|
|
48246
|
-
* @param {String} dateStr - Date to validate.
|
|
48247
|
-
* @param {String} format - Date format to validate against.
|
|
48248
|
-
* @returns {String}
|
|
48249
|
-
*/
|
|
48250
|
-
function toNorthAmericanFormat$5(dateStr, format) {
|
|
48251
|
-
if (format === "mm/dd/yyyy") {
|
|
48252
|
-
return dateStr;
|
|
48253
|
-
}
|
|
48254
|
-
|
|
48255
|
-
const parsedDate = parseDate$5(dateStr, format);
|
|
48256
|
-
|
|
48257
|
-
if (!parsedDate) {
|
|
48258
|
-
throw new Error(
|
|
48259
|
-
"AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string",
|
|
48260
|
-
);
|
|
48261
|
-
}
|
|
48262
|
-
|
|
48263
|
-
const { month, day, year } = parsedDate;
|
|
48264
|
-
|
|
48265
|
-
return [month, day, year].filter(Boolean).join("/");
|
|
48266
|
-
}
|
|
48267
|
-
|
|
48268
|
-
/**
|
|
48269
|
-
* Validates that a date string matches the provided format and represents a real calendar date.
|
|
48270
|
-
*
|
|
48271
|
-
* @param {string} dateStr - Date string to validate.
|
|
48272
|
-
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
48273
|
-
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
48274
|
-
*/
|
|
48275
|
-
function isValidDate$5(dateStr, format = "yyyy-mm-dd") {
|
|
48276
|
-
try {
|
|
48277
|
-
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
48278
|
-
return false;
|
|
48279
|
-
}
|
|
48280
|
-
|
|
48281
|
-
if (parseDate$5(dateStr, format)) {
|
|
48282
|
-
return true;
|
|
48283
|
-
}
|
|
48284
|
-
} catch (error) {
|
|
48285
|
-
return false;
|
|
48286
|
-
}
|
|
48287
|
-
return false;
|
|
48288
|
-
}
|
|
48289
|
-
|
|
48290
|
-
/**
|
|
48291
|
-
* Converts a JavaScript Date instance to a simple ISO-like date string. This returns only the calendar date portion without any time or timezone information.
|
|
48292
|
-
*
|
|
48293
|
-
* @param {Date} date - Date instance to convert to an ISO-like string.
|
|
48294
|
-
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
48295
|
-
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
48296
|
-
*/
|
|
48297
|
-
function toISOFormatString$5(date) {
|
|
48298
|
-
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
48299
|
-
throw new Error(
|
|
48300
|
-
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
48301
|
-
);
|
|
48302
|
-
}
|
|
48303
|
-
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
48304
|
-
}
|
|
48305
|
-
|
|
48306
|
-
/**
|
|
48307
|
-
* Converts a date string into a JavaScript Date instance. This method supports ISO formatted strings and other formats that can be parsed by the formatter.
|
|
48308
|
-
*
|
|
48309
|
-
* @param {String} dateStr - Date string to convert into a Date object.
|
|
48310
|
-
* @param {String} format - Date format used to parse the string when it is not in ISO format.
|
|
48311
|
-
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
48312
|
-
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
48313
|
-
*/
|
|
48314
|
-
function stringToDateInstance$5(dateStr, format = "yyyy-mm-dd") {
|
|
48315
|
-
if (typeof dateStr !== "string") {
|
|
48316
|
-
return null;
|
|
48317
|
-
}
|
|
48318
|
-
|
|
48319
|
-
const { month, day, year } = parseDate$5(dateStr, format);
|
|
48320
|
-
return new Date(`${year}/${month}/${day}`);
|
|
48321
|
-
}
|
|
48322
|
-
|
|
48323
|
-
const dateFormatter$5 = {
|
|
48324
|
-
parseDate: parseDate$5,
|
|
48325
|
-
getDateParts: getDateParts$5,
|
|
48326
|
-
getDateAsString: getDateAsString$5,
|
|
48327
|
-
toNorthAmericanFormat: toNorthAmericanFormat$5,
|
|
48328
|
-
isValidDate: isValidDate$5,
|
|
48329
|
-
toISOFormatString: toISOFormatString$5,
|
|
48330
|
-
stringToDateInstance: stringToDateInstance$5,
|
|
48331
|
-
};
|
|
48332
|
-
|
|
48333
48103
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
48334
48104
|
// See LICENSE in the project root for license information.
|
|
48335
48105
|
|
|
@@ -48551,7 +48321,7 @@ let AuroFormValidation$5 = class AuroFormValidation {
|
|
|
48551
48321
|
}
|
|
48552
48322
|
|
|
48553
48323
|
// Validate that the date passed was the correct format and is a valid date
|
|
48554
|
-
if (elem.value && !
|
|
48324
|
+
if (elem.value && !elem.valueObject) {
|
|
48555
48325
|
elem.validity = 'patternMismatch';
|
|
48556
48326
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
48557
48327
|
return;
|
|
@@ -49121,7 +48891,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$3 {
|
|
|
49121
48891
|
}
|
|
49122
48892
|
};
|
|
49123
48893
|
|
|
49124
|
-
var formkitVersion$6 = '
|
|
48894
|
+
var formkitVersion$6 = '202605271820';
|
|
49125
48895
|
|
|
49126
48896
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
49127
48897
|
// See LICENSE in the project root for license information.
|
|
@@ -51400,237 +51170,6 @@ var styleCss$1$5 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.7
|
|
|
51400
51170
|
|
|
51401
51171
|
var colorCss$1$5 = i$5`:host legend{color:var(--ds-auro-radio-group-label-color)}:host([disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]),:host([appearance=inverse]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-radio-group-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
51402
51172
|
|
|
51403
|
-
/**
|
|
51404
|
-
* @description Splits a date string into its parts according to the provided format. Does NOT validate that the result is a real calendar date — use `parseDate` when validation is required.
|
|
51405
|
-
* @param {string} dateStr - Date string to parse.
|
|
51406
|
-
* @param {string} format - Date format to parse.
|
|
51407
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
51408
|
-
*/
|
|
51409
|
-
function getDateParts$4(dateStr, format) {
|
|
51410
|
-
if (!dateStr) {
|
|
51411
|
-
return undefined;
|
|
51412
|
-
}
|
|
51413
|
-
|
|
51414
|
-
const formatSeparatorMatch = format.match(/[/.-]/);
|
|
51415
|
-
let valueParts;
|
|
51416
|
-
let formatParts;
|
|
51417
|
-
|
|
51418
|
-
if (formatSeparatorMatch) {
|
|
51419
|
-
const separator = formatSeparatorMatch[0];
|
|
51420
|
-
valueParts = dateStr.split(separator);
|
|
51421
|
-
formatParts = format.split(separator);
|
|
51422
|
-
} else {
|
|
51423
|
-
if (dateStr.match(/[/.-]/)) {
|
|
51424
|
-
throw new Error(
|
|
51425
|
-
"AuroDatepickerUtilities | parseDate: Date string has no separators",
|
|
51426
|
-
);
|
|
51427
|
-
}
|
|
51428
|
-
|
|
51429
|
-
if (dateStr.length !== format.length) {
|
|
51430
|
-
throw new Error(
|
|
51431
|
-
"AuroDatepickerUtilities | parseDate: Date string and format length do not match",
|
|
51432
|
-
);
|
|
51433
|
-
}
|
|
51434
|
-
|
|
51435
|
-
valueParts = [dateStr];
|
|
51436
|
-
formatParts = [format];
|
|
51437
|
-
}
|
|
51438
|
-
|
|
51439
|
-
if (valueParts.length !== formatParts.length) {
|
|
51440
|
-
throw new Error(
|
|
51441
|
-
`AuroDatepickerUtilities | parseDate: Date string and format do not match : ${dateStr} vs ${format}`,
|
|
51442
|
-
);
|
|
51443
|
-
}
|
|
51444
|
-
|
|
51445
|
-
const result = formatParts.reduce((acc, part, index) => {
|
|
51446
|
-
const value = valueParts[index];
|
|
51447
|
-
|
|
51448
|
-
if (/m/iu.test(part) && part.length === value.length) {
|
|
51449
|
-
acc.month = value;
|
|
51450
|
-
} else if (/d/iu.test(part) && part.length === value.length) {
|
|
51451
|
-
acc.day = value;
|
|
51452
|
-
} else if (/y/iu.test(part) && part.length === value.length) {
|
|
51453
|
-
acc.year = value;
|
|
51454
|
-
}
|
|
51455
|
-
|
|
51456
|
-
return acc;
|
|
51457
|
-
}, {});
|
|
51458
|
-
|
|
51459
|
-
if (!result.month && !result.day && !result.year) {
|
|
51460
|
-
throw new Error(
|
|
51461
|
-
"AuroDatepickerUtilities | parseDate: Unable to parse date string",
|
|
51462
|
-
);
|
|
51463
|
-
}
|
|
51464
|
-
|
|
51465
|
-
return result;
|
|
51466
|
-
}
|
|
51467
|
-
|
|
51468
|
-
function isCalendarDate$4(year, month, day) {
|
|
51469
|
-
let yearNumber = Number(year);
|
|
51470
|
-
const monthNumber = Number(month);
|
|
51471
|
-
const dayNumber = Number(day);
|
|
51472
|
-
|
|
51473
|
-
if (
|
|
51474
|
-
!Number.isInteger(yearNumber) ||
|
|
51475
|
-
!Number.isInteger(monthNumber) ||
|
|
51476
|
-
!Number.isInteger(dayNumber)
|
|
51477
|
-
) {
|
|
51478
|
-
return false;
|
|
51479
|
-
}
|
|
51480
|
-
|
|
51481
|
-
// Handle 2-digit years by converting them to 4-digit years based on a cutoff. This allows for parsing of 2-digit year formats while still validating the resulting date.
|
|
51482
|
-
if (yearNumber < 100 && yearNumber >= 50) {
|
|
51483
|
-
yearNumber += 1900;
|
|
51484
|
-
} else if (yearNumber < 50) {
|
|
51485
|
-
yearNumber += 2000;
|
|
51486
|
-
}
|
|
51487
|
-
|
|
51488
|
-
const stringified = `${String(yearNumber).padStart(4, "0")}-${String(monthNumber).padStart(2, "0")}-${String(dayNumber).padStart(2, "0")}`;
|
|
51489
|
-
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
51490
|
-
|
|
51491
|
-
return (
|
|
51492
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$4(date) === stringified
|
|
51493
|
-
);
|
|
51494
|
-
}
|
|
51495
|
-
|
|
51496
|
-
/**
|
|
51497
|
-
* @description Parses a date string into its components and validates that the result is a real calendar date. Use `getDateParts` instead when raw splitting without validation is needed (e.g. for in-progress input).
|
|
51498
|
-
*
|
|
51499
|
-
* Partial formats are supported: components absent from `format` default to `year → "0"`,
|
|
51500
|
-
* `month → "01"`, `day → "01"` for calendar validation only. The returned object contains
|
|
51501
|
-
* only the fields actually present in the format string — missing fields are never injected.
|
|
51502
|
-
* @param {string} dateStr - Date string to parse.
|
|
51503
|
-
* @param {string} format - Date format to parse.
|
|
51504
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
51505
|
-
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
51506
|
-
*/
|
|
51507
|
-
function parseDate$4(dateStr, format = "mm/dd/yyyy") {
|
|
51508
|
-
if (!dateStr || !format) {
|
|
51509
|
-
return undefined;
|
|
51510
|
-
}
|
|
51511
|
-
const result = getDateParts$4(dateStr.trim(), format);
|
|
51512
|
-
|
|
51513
|
-
if (!result) {
|
|
51514
|
-
return undefined;
|
|
51515
|
-
}
|
|
51516
|
-
|
|
51517
|
-
const lowerFormat = format.toLowerCase();
|
|
51518
|
-
const year = lowerFormat.includes("yy") ? result.year : "0";
|
|
51519
|
-
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
51520
|
-
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
51521
|
-
|
|
51522
|
-
if (isCalendarDate$4(year, month, day)) {
|
|
51523
|
-
return result;
|
|
51524
|
-
}
|
|
51525
|
-
|
|
51526
|
-
throw new Error(
|
|
51527
|
-
`AuroDatepickerUtilities | parseDate: Date string is not a valid date ${JSON.stringify(result)} with format ${format}`,
|
|
51528
|
-
);
|
|
51529
|
-
}
|
|
51530
|
-
|
|
51531
|
-
/**
|
|
51532
|
-
* Convert a date object to string format.
|
|
51533
|
-
* @param {Object} date - Date to convert to string.
|
|
51534
|
-
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
51535
|
-
* @returns {String} Returns the date as a string.
|
|
51536
|
-
*/
|
|
51537
|
-
function getDateAsString$4(date, locale = undefined) {
|
|
51538
|
-
return date.toLocaleDateString(locale, {
|
|
51539
|
-
year: "numeric",
|
|
51540
|
-
month: "2-digit",
|
|
51541
|
-
day: "2-digit",
|
|
51542
|
-
});
|
|
51543
|
-
}
|
|
51544
|
-
|
|
51545
|
-
/**
|
|
51546
|
-
* Converts a date string to a North American date format.
|
|
51547
|
-
* @param {String} dateStr - Date to validate.
|
|
51548
|
-
* @param {String} format - Date format to validate against.
|
|
51549
|
-
* @returns {String}
|
|
51550
|
-
*/
|
|
51551
|
-
function toNorthAmericanFormat$4(dateStr, format) {
|
|
51552
|
-
if (format === "mm/dd/yyyy") {
|
|
51553
|
-
return dateStr;
|
|
51554
|
-
}
|
|
51555
|
-
|
|
51556
|
-
const parsedDate = parseDate$4(dateStr, format);
|
|
51557
|
-
|
|
51558
|
-
if (!parsedDate) {
|
|
51559
|
-
throw new Error(
|
|
51560
|
-
"AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string",
|
|
51561
|
-
);
|
|
51562
|
-
}
|
|
51563
|
-
|
|
51564
|
-
const { month, day, year } = parsedDate;
|
|
51565
|
-
|
|
51566
|
-
return [month, day, year].filter(Boolean).join("/");
|
|
51567
|
-
}
|
|
51568
|
-
|
|
51569
|
-
/**
|
|
51570
|
-
* Validates that a date string matches the provided format and represents a real calendar date.
|
|
51571
|
-
*
|
|
51572
|
-
* @param {string} dateStr - Date string to validate.
|
|
51573
|
-
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
51574
|
-
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
51575
|
-
*/
|
|
51576
|
-
function isValidDate$4(dateStr, format = "yyyy-mm-dd") {
|
|
51577
|
-
try {
|
|
51578
|
-
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
51579
|
-
return false;
|
|
51580
|
-
}
|
|
51581
|
-
|
|
51582
|
-
if (parseDate$4(dateStr, format)) {
|
|
51583
|
-
return true;
|
|
51584
|
-
}
|
|
51585
|
-
} catch (error) {
|
|
51586
|
-
return false;
|
|
51587
|
-
}
|
|
51588
|
-
return false;
|
|
51589
|
-
}
|
|
51590
|
-
|
|
51591
|
-
/**
|
|
51592
|
-
* Converts a JavaScript Date instance to a simple ISO-like date string. This returns only the calendar date portion without any time or timezone information.
|
|
51593
|
-
*
|
|
51594
|
-
* @param {Date} date - Date instance to convert to an ISO-like string.
|
|
51595
|
-
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
51596
|
-
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
51597
|
-
*/
|
|
51598
|
-
function toISOFormatString$4(date) {
|
|
51599
|
-
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
51600
|
-
throw new Error(
|
|
51601
|
-
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
51602
|
-
);
|
|
51603
|
-
}
|
|
51604
|
-
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
51605
|
-
}
|
|
51606
|
-
|
|
51607
|
-
/**
|
|
51608
|
-
* Converts a date string into a JavaScript Date instance. This method supports ISO formatted strings and other formats that can be parsed by the formatter.
|
|
51609
|
-
*
|
|
51610
|
-
* @param {String} dateStr - Date string to convert into a Date object.
|
|
51611
|
-
* @param {String} format - Date format used to parse the string when it is not in ISO format.
|
|
51612
|
-
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
51613
|
-
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
51614
|
-
*/
|
|
51615
|
-
function stringToDateInstance$4(dateStr, format = "yyyy-mm-dd") {
|
|
51616
|
-
if (typeof dateStr !== "string") {
|
|
51617
|
-
return null;
|
|
51618
|
-
}
|
|
51619
|
-
|
|
51620
|
-
const { month, day, year } = parseDate$4(dateStr, format);
|
|
51621
|
-
return new Date(`${year}/${month}/${day}`);
|
|
51622
|
-
}
|
|
51623
|
-
|
|
51624
|
-
const dateFormatter$4 = {
|
|
51625
|
-
parseDate: parseDate$4,
|
|
51626
|
-
getDateParts: getDateParts$4,
|
|
51627
|
-
getDateAsString: getDateAsString$4,
|
|
51628
|
-
toNorthAmericanFormat: toNorthAmericanFormat$4,
|
|
51629
|
-
isValidDate: isValidDate$4,
|
|
51630
|
-
toISOFormatString: toISOFormatString$4,
|
|
51631
|
-
stringToDateInstance: stringToDateInstance$4,
|
|
51632
|
-
};
|
|
51633
|
-
|
|
51634
51173
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
51635
51174
|
// See LICENSE in the project root for license information.
|
|
51636
51175
|
|
|
@@ -51852,7 +51391,7 @@ let AuroFormValidation$4 = class AuroFormValidation {
|
|
|
51852
51391
|
}
|
|
51853
51392
|
|
|
51854
51393
|
// Validate that the date passed was the correct format and is a valid date
|
|
51855
|
-
if (elem.value && !
|
|
51394
|
+
if (elem.value && !elem.valueObject) {
|
|
51856
51395
|
elem.validity = 'patternMismatch';
|
|
51857
51396
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
51858
51397
|
return;
|
|
@@ -52348,7 +51887,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$3 {
|
|
|
52348
51887
|
}
|
|
52349
51888
|
};
|
|
52350
51889
|
|
|
52351
|
-
var formkitVersion$5 = '
|
|
51890
|
+
var formkitVersion$5 = '202605271820';
|
|
52352
51891
|
|
|
52353
51892
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
52354
51893
|
// See LICENSE in the project root for license information.
|
|
@@ -53377,237 +52916,6 @@ class AuroCheckbox extends i$3 {
|
|
|
53377
52916
|
}
|
|
53378
52917
|
}
|
|
53379
52918
|
|
|
53380
|
-
/**
|
|
53381
|
-
* @description Splits a date string into its parts according to the provided format. Does NOT validate that the result is a real calendar date — use `parseDate` when validation is required.
|
|
53382
|
-
* @param {string} dateStr - Date string to parse.
|
|
53383
|
-
* @param {string} format - Date format to parse.
|
|
53384
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
53385
|
-
*/
|
|
53386
|
-
function getDateParts$3(dateStr, format) {
|
|
53387
|
-
if (!dateStr) {
|
|
53388
|
-
return undefined;
|
|
53389
|
-
}
|
|
53390
|
-
|
|
53391
|
-
const formatSeparatorMatch = format.match(/[/.-]/);
|
|
53392
|
-
let valueParts;
|
|
53393
|
-
let formatParts;
|
|
53394
|
-
|
|
53395
|
-
if (formatSeparatorMatch) {
|
|
53396
|
-
const separator = formatSeparatorMatch[0];
|
|
53397
|
-
valueParts = dateStr.split(separator);
|
|
53398
|
-
formatParts = format.split(separator);
|
|
53399
|
-
} else {
|
|
53400
|
-
if (dateStr.match(/[/.-]/)) {
|
|
53401
|
-
throw new Error(
|
|
53402
|
-
"AuroDatepickerUtilities | parseDate: Date string has no separators",
|
|
53403
|
-
);
|
|
53404
|
-
}
|
|
53405
|
-
|
|
53406
|
-
if (dateStr.length !== format.length) {
|
|
53407
|
-
throw new Error(
|
|
53408
|
-
"AuroDatepickerUtilities | parseDate: Date string and format length do not match",
|
|
53409
|
-
);
|
|
53410
|
-
}
|
|
53411
|
-
|
|
53412
|
-
valueParts = [dateStr];
|
|
53413
|
-
formatParts = [format];
|
|
53414
|
-
}
|
|
53415
|
-
|
|
53416
|
-
if (valueParts.length !== formatParts.length) {
|
|
53417
|
-
throw new Error(
|
|
53418
|
-
`AuroDatepickerUtilities | parseDate: Date string and format do not match : ${dateStr} vs ${format}`,
|
|
53419
|
-
);
|
|
53420
|
-
}
|
|
53421
|
-
|
|
53422
|
-
const result = formatParts.reduce((acc, part, index) => {
|
|
53423
|
-
const value = valueParts[index];
|
|
53424
|
-
|
|
53425
|
-
if (/m/iu.test(part) && part.length === value.length) {
|
|
53426
|
-
acc.month = value;
|
|
53427
|
-
} else if (/d/iu.test(part) && part.length === value.length) {
|
|
53428
|
-
acc.day = value;
|
|
53429
|
-
} else if (/y/iu.test(part) && part.length === value.length) {
|
|
53430
|
-
acc.year = value;
|
|
53431
|
-
}
|
|
53432
|
-
|
|
53433
|
-
return acc;
|
|
53434
|
-
}, {});
|
|
53435
|
-
|
|
53436
|
-
if (!result.month && !result.day && !result.year) {
|
|
53437
|
-
throw new Error(
|
|
53438
|
-
"AuroDatepickerUtilities | parseDate: Unable to parse date string",
|
|
53439
|
-
);
|
|
53440
|
-
}
|
|
53441
|
-
|
|
53442
|
-
return result;
|
|
53443
|
-
}
|
|
53444
|
-
|
|
53445
|
-
function isCalendarDate$3(year, month, day) {
|
|
53446
|
-
let yearNumber = Number(year);
|
|
53447
|
-
const monthNumber = Number(month);
|
|
53448
|
-
const dayNumber = Number(day);
|
|
53449
|
-
|
|
53450
|
-
if (
|
|
53451
|
-
!Number.isInteger(yearNumber) ||
|
|
53452
|
-
!Number.isInteger(monthNumber) ||
|
|
53453
|
-
!Number.isInteger(dayNumber)
|
|
53454
|
-
) {
|
|
53455
|
-
return false;
|
|
53456
|
-
}
|
|
53457
|
-
|
|
53458
|
-
// Handle 2-digit years by converting them to 4-digit years based on a cutoff. This allows for parsing of 2-digit year formats while still validating the resulting date.
|
|
53459
|
-
if (yearNumber < 100 && yearNumber >= 50) {
|
|
53460
|
-
yearNumber += 1900;
|
|
53461
|
-
} else if (yearNumber < 50) {
|
|
53462
|
-
yearNumber += 2000;
|
|
53463
|
-
}
|
|
53464
|
-
|
|
53465
|
-
const stringified = `${String(yearNumber).padStart(4, "0")}-${String(monthNumber).padStart(2, "0")}-${String(dayNumber).padStart(2, "0")}`;
|
|
53466
|
-
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
53467
|
-
|
|
53468
|
-
return (
|
|
53469
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$3(date) === stringified
|
|
53470
|
-
);
|
|
53471
|
-
}
|
|
53472
|
-
|
|
53473
|
-
/**
|
|
53474
|
-
* @description Parses a date string into its components and validates that the result is a real calendar date. Use `getDateParts` instead when raw splitting without validation is needed (e.g. for in-progress input).
|
|
53475
|
-
*
|
|
53476
|
-
* Partial formats are supported: components absent from `format` default to `year → "0"`,
|
|
53477
|
-
* `month → "01"`, `day → "01"` for calendar validation only. The returned object contains
|
|
53478
|
-
* only the fields actually present in the format string — missing fields are never injected.
|
|
53479
|
-
* @param {string} dateStr - Date string to parse.
|
|
53480
|
-
* @param {string} format - Date format to parse.
|
|
53481
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
53482
|
-
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
53483
|
-
*/
|
|
53484
|
-
function parseDate$3(dateStr, format = "mm/dd/yyyy") {
|
|
53485
|
-
if (!dateStr || !format) {
|
|
53486
|
-
return undefined;
|
|
53487
|
-
}
|
|
53488
|
-
const result = getDateParts$3(dateStr.trim(), format);
|
|
53489
|
-
|
|
53490
|
-
if (!result) {
|
|
53491
|
-
return undefined;
|
|
53492
|
-
}
|
|
53493
|
-
|
|
53494
|
-
const lowerFormat = format.toLowerCase();
|
|
53495
|
-
const year = lowerFormat.includes("yy") ? result.year : "0";
|
|
53496
|
-
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
53497
|
-
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
53498
|
-
|
|
53499
|
-
if (isCalendarDate$3(year, month, day)) {
|
|
53500
|
-
return result;
|
|
53501
|
-
}
|
|
53502
|
-
|
|
53503
|
-
throw new Error(
|
|
53504
|
-
`AuroDatepickerUtilities | parseDate: Date string is not a valid date ${JSON.stringify(result)} with format ${format}`,
|
|
53505
|
-
);
|
|
53506
|
-
}
|
|
53507
|
-
|
|
53508
|
-
/**
|
|
53509
|
-
* Convert a date object to string format.
|
|
53510
|
-
* @param {Object} date - Date to convert to string.
|
|
53511
|
-
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
53512
|
-
* @returns {String} Returns the date as a string.
|
|
53513
|
-
*/
|
|
53514
|
-
function getDateAsString$3(date, locale = undefined) {
|
|
53515
|
-
return date.toLocaleDateString(locale, {
|
|
53516
|
-
year: "numeric",
|
|
53517
|
-
month: "2-digit",
|
|
53518
|
-
day: "2-digit",
|
|
53519
|
-
});
|
|
53520
|
-
}
|
|
53521
|
-
|
|
53522
|
-
/**
|
|
53523
|
-
* Converts a date string to a North American date format.
|
|
53524
|
-
* @param {String} dateStr - Date to validate.
|
|
53525
|
-
* @param {String} format - Date format to validate against.
|
|
53526
|
-
* @returns {String}
|
|
53527
|
-
*/
|
|
53528
|
-
function toNorthAmericanFormat$3(dateStr, format) {
|
|
53529
|
-
if (format === "mm/dd/yyyy") {
|
|
53530
|
-
return dateStr;
|
|
53531
|
-
}
|
|
53532
|
-
|
|
53533
|
-
const parsedDate = parseDate$3(dateStr, format);
|
|
53534
|
-
|
|
53535
|
-
if (!parsedDate) {
|
|
53536
|
-
throw new Error(
|
|
53537
|
-
"AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string",
|
|
53538
|
-
);
|
|
53539
|
-
}
|
|
53540
|
-
|
|
53541
|
-
const { month, day, year } = parsedDate;
|
|
53542
|
-
|
|
53543
|
-
return [month, day, year].filter(Boolean).join("/");
|
|
53544
|
-
}
|
|
53545
|
-
|
|
53546
|
-
/**
|
|
53547
|
-
* Validates that a date string matches the provided format and represents a real calendar date.
|
|
53548
|
-
*
|
|
53549
|
-
* @param {string} dateStr - Date string to validate.
|
|
53550
|
-
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
53551
|
-
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
53552
|
-
*/
|
|
53553
|
-
function isValidDate$3(dateStr, format = "yyyy-mm-dd") {
|
|
53554
|
-
try {
|
|
53555
|
-
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
53556
|
-
return false;
|
|
53557
|
-
}
|
|
53558
|
-
|
|
53559
|
-
if (parseDate$3(dateStr, format)) {
|
|
53560
|
-
return true;
|
|
53561
|
-
}
|
|
53562
|
-
} catch (error) {
|
|
53563
|
-
return false;
|
|
53564
|
-
}
|
|
53565
|
-
return false;
|
|
53566
|
-
}
|
|
53567
|
-
|
|
53568
|
-
/**
|
|
53569
|
-
* Converts a JavaScript Date instance to a simple ISO-like date string. This returns only the calendar date portion without any time or timezone information.
|
|
53570
|
-
*
|
|
53571
|
-
* @param {Date} date - Date instance to convert to an ISO-like string.
|
|
53572
|
-
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
53573
|
-
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
53574
|
-
*/
|
|
53575
|
-
function toISOFormatString$3(date) {
|
|
53576
|
-
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
53577
|
-
throw new Error(
|
|
53578
|
-
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
53579
|
-
);
|
|
53580
|
-
}
|
|
53581
|
-
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
53582
|
-
}
|
|
53583
|
-
|
|
53584
|
-
/**
|
|
53585
|
-
* Converts a date string into a JavaScript Date instance. This method supports ISO formatted strings and other formats that can be parsed by the formatter.
|
|
53586
|
-
*
|
|
53587
|
-
* @param {String} dateStr - Date string to convert into a Date object.
|
|
53588
|
-
* @param {String} format - Date format used to parse the string when it is not in ISO format.
|
|
53589
|
-
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
53590
|
-
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
53591
|
-
*/
|
|
53592
|
-
function stringToDateInstance$3(dateStr, format = "yyyy-mm-dd") {
|
|
53593
|
-
if (typeof dateStr !== "string") {
|
|
53594
|
-
return null;
|
|
53595
|
-
}
|
|
53596
|
-
|
|
53597
|
-
const { month, day, year } = parseDate$3(dateStr, format);
|
|
53598
|
-
return new Date(`${year}/${month}/${day}`);
|
|
53599
|
-
}
|
|
53600
|
-
|
|
53601
|
-
const dateFormatter$3 = {
|
|
53602
|
-
parseDate: parseDate$3,
|
|
53603
|
-
getDateParts: getDateParts$3,
|
|
53604
|
-
getDateAsString: getDateAsString$3,
|
|
53605
|
-
toNorthAmericanFormat: toNorthAmericanFormat$3,
|
|
53606
|
-
isValidDate: isValidDate$3,
|
|
53607
|
-
toISOFormatString: toISOFormatString$3,
|
|
53608
|
-
stringToDateInstance: stringToDateInstance$3,
|
|
53609
|
-
};
|
|
53610
|
-
|
|
53611
52919
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
53612
52920
|
// See LICENSE in the project root for license information.
|
|
53613
52921
|
|
|
@@ -53829,7 +53137,7 @@ let AuroFormValidation$3 = class AuroFormValidation {
|
|
|
53829
53137
|
}
|
|
53830
53138
|
|
|
53831
53139
|
// Validate that the date passed was the correct format and is a valid date
|
|
53832
|
-
if (elem.value && !
|
|
53140
|
+
if (elem.value && !elem.valueObject) {
|
|
53833
53141
|
elem.validity = 'patternMismatch';
|
|
53834
53142
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
53835
53143
|
return;
|
|
@@ -54329,7 +53637,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$3 {
|
|
|
54329
53637
|
}
|
|
54330
53638
|
};
|
|
54331
53639
|
|
|
54332
|
-
var formkitVersion$4 = '
|
|
53640
|
+
var formkitVersion$4 = '202605271820';
|
|
54333
53641
|
|
|
54334
53642
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
54335
53643
|
// See LICENSE in the project root for license information.
|
|
@@ -54868,237 +54176,6 @@ let AuroLibraryRuntimeUtils$4$1 = class AuroLibraryRuntimeUtils {
|
|
|
54868
54176
|
}
|
|
54869
54177
|
};
|
|
54870
54178
|
|
|
54871
|
-
/**
|
|
54872
|
-
* @description Splits a date string into its parts according to the provided format. Does NOT validate that the result is a real calendar date — use `parseDate` when validation is required.
|
|
54873
|
-
* @param {string} dateStr - Date string to parse.
|
|
54874
|
-
* @param {string} format - Date format to parse.
|
|
54875
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
54876
|
-
*/
|
|
54877
|
-
function getDateParts$1(dateStr, format) {
|
|
54878
|
-
if (!dateStr) {
|
|
54879
|
-
return undefined;
|
|
54880
|
-
}
|
|
54881
|
-
|
|
54882
|
-
const formatSeparatorMatch = format.match(/[/.-]/);
|
|
54883
|
-
let valueParts;
|
|
54884
|
-
let formatParts;
|
|
54885
|
-
|
|
54886
|
-
if (formatSeparatorMatch) {
|
|
54887
|
-
const separator = formatSeparatorMatch[0];
|
|
54888
|
-
valueParts = dateStr.split(separator);
|
|
54889
|
-
formatParts = format.split(separator);
|
|
54890
|
-
} else {
|
|
54891
|
-
if (dateStr.match(/[/.-]/)) {
|
|
54892
|
-
throw new Error(
|
|
54893
|
-
"AuroDatepickerUtilities | parseDate: Date string has no separators",
|
|
54894
|
-
);
|
|
54895
|
-
}
|
|
54896
|
-
|
|
54897
|
-
if (dateStr.length !== format.length) {
|
|
54898
|
-
throw new Error(
|
|
54899
|
-
"AuroDatepickerUtilities | parseDate: Date string and format length do not match",
|
|
54900
|
-
);
|
|
54901
|
-
}
|
|
54902
|
-
|
|
54903
|
-
valueParts = [dateStr];
|
|
54904
|
-
formatParts = [format];
|
|
54905
|
-
}
|
|
54906
|
-
|
|
54907
|
-
if (valueParts.length !== formatParts.length) {
|
|
54908
|
-
throw new Error(
|
|
54909
|
-
`AuroDatepickerUtilities | parseDate: Date string and format do not match : ${dateStr} vs ${format}`,
|
|
54910
|
-
);
|
|
54911
|
-
}
|
|
54912
|
-
|
|
54913
|
-
const result = formatParts.reduce((acc, part, index) => {
|
|
54914
|
-
const value = valueParts[index];
|
|
54915
|
-
|
|
54916
|
-
if (/m/iu.test(part) && part.length === value.length) {
|
|
54917
|
-
acc.month = value;
|
|
54918
|
-
} else if (/d/iu.test(part) && part.length === value.length) {
|
|
54919
|
-
acc.day = value;
|
|
54920
|
-
} else if (/y/iu.test(part) && part.length === value.length) {
|
|
54921
|
-
acc.year = value;
|
|
54922
|
-
}
|
|
54923
|
-
|
|
54924
|
-
return acc;
|
|
54925
|
-
}, {});
|
|
54926
|
-
|
|
54927
|
-
if (!result.month && !result.day && !result.year) {
|
|
54928
|
-
throw new Error(
|
|
54929
|
-
"AuroDatepickerUtilities | parseDate: Unable to parse date string",
|
|
54930
|
-
);
|
|
54931
|
-
}
|
|
54932
|
-
|
|
54933
|
-
return result;
|
|
54934
|
-
}
|
|
54935
|
-
|
|
54936
|
-
function isCalendarDate$1(year, month, day) {
|
|
54937
|
-
let yearNumber = Number(year);
|
|
54938
|
-
const monthNumber = Number(month);
|
|
54939
|
-
const dayNumber = Number(day);
|
|
54940
|
-
|
|
54941
|
-
if (
|
|
54942
|
-
!Number.isInteger(yearNumber) ||
|
|
54943
|
-
!Number.isInteger(monthNumber) ||
|
|
54944
|
-
!Number.isInteger(dayNumber)
|
|
54945
|
-
) {
|
|
54946
|
-
return false;
|
|
54947
|
-
}
|
|
54948
|
-
|
|
54949
|
-
// Handle 2-digit years by converting them to 4-digit years based on a cutoff. This allows for parsing of 2-digit year formats while still validating the resulting date.
|
|
54950
|
-
if (yearNumber < 100 && yearNumber >= 50) {
|
|
54951
|
-
yearNumber += 1900;
|
|
54952
|
-
} else if (yearNumber < 50) {
|
|
54953
|
-
yearNumber += 2000;
|
|
54954
|
-
}
|
|
54955
|
-
|
|
54956
|
-
const stringified = `${String(yearNumber).padStart(4, "0")}-${String(monthNumber).padStart(2, "0")}-${String(dayNumber).padStart(2, "0")}`;
|
|
54957
|
-
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
54958
|
-
|
|
54959
|
-
return (
|
|
54960
|
-
!Number.isNaN(date.getTime()) && toISOFormatString$1(date) === stringified
|
|
54961
|
-
);
|
|
54962
|
-
}
|
|
54963
|
-
|
|
54964
|
-
/**
|
|
54965
|
-
* @description Parses a date string into its components and validates that the result is a real calendar date. Use `getDateParts` instead when raw splitting without validation is needed (e.g. for in-progress input).
|
|
54966
|
-
*
|
|
54967
|
-
* Partial formats are supported: components absent from `format` default to `year → "0"`,
|
|
54968
|
-
* `month → "01"`, `day → "01"` for calendar validation only. The returned object contains
|
|
54969
|
-
* only the fields actually present in the format string — missing fields are never injected.
|
|
54970
|
-
* @param {string} dateStr - Date string to parse.
|
|
54971
|
-
* @param {string} format - Date format to parse.
|
|
54972
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
54973
|
-
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
54974
|
-
*/
|
|
54975
|
-
function parseDate$1(dateStr, format = "mm/dd/yyyy") {
|
|
54976
|
-
if (!dateStr || !format) {
|
|
54977
|
-
return undefined;
|
|
54978
|
-
}
|
|
54979
|
-
const result = getDateParts$1(dateStr.trim(), format);
|
|
54980
|
-
|
|
54981
|
-
if (!result) {
|
|
54982
|
-
return undefined;
|
|
54983
|
-
}
|
|
54984
|
-
|
|
54985
|
-
const lowerFormat = format.toLowerCase();
|
|
54986
|
-
const year = lowerFormat.includes("yy") ? result.year : "0";
|
|
54987
|
-
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
54988
|
-
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
54989
|
-
|
|
54990
|
-
if (isCalendarDate$1(year, month, day)) {
|
|
54991
|
-
return result;
|
|
54992
|
-
}
|
|
54993
|
-
|
|
54994
|
-
throw new Error(
|
|
54995
|
-
`AuroDatepickerUtilities | parseDate: Date string is not a valid date ${JSON.stringify(result)} with format ${format}`,
|
|
54996
|
-
);
|
|
54997
|
-
}
|
|
54998
|
-
|
|
54999
|
-
/**
|
|
55000
|
-
* Convert a date object to string format.
|
|
55001
|
-
* @param {Object} date - Date to convert to string.
|
|
55002
|
-
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
55003
|
-
* @returns {String} Returns the date as a string.
|
|
55004
|
-
*/
|
|
55005
|
-
function getDateAsString$1(date, locale = undefined) {
|
|
55006
|
-
return date.toLocaleDateString(locale, {
|
|
55007
|
-
year: "numeric",
|
|
55008
|
-
month: "2-digit",
|
|
55009
|
-
day: "2-digit",
|
|
55010
|
-
});
|
|
55011
|
-
}
|
|
55012
|
-
|
|
55013
|
-
/**
|
|
55014
|
-
* Converts a date string to a North American date format.
|
|
55015
|
-
* @param {String} dateStr - Date to validate.
|
|
55016
|
-
* @param {String} format - Date format to validate against.
|
|
55017
|
-
* @returns {String}
|
|
55018
|
-
*/
|
|
55019
|
-
function toNorthAmericanFormat$1(dateStr, format) {
|
|
55020
|
-
if (format === "mm/dd/yyyy") {
|
|
55021
|
-
return dateStr;
|
|
55022
|
-
}
|
|
55023
|
-
|
|
55024
|
-
const parsedDate = parseDate$1(dateStr, format);
|
|
55025
|
-
|
|
55026
|
-
if (!parsedDate) {
|
|
55027
|
-
throw new Error(
|
|
55028
|
-
"AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string",
|
|
55029
|
-
);
|
|
55030
|
-
}
|
|
55031
|
-
|
|
55032
|
-
const { month, day, year } = parsedDate;
|
|
55033
|
-
|
|
55034
|
-
return [month, day, year].filter(Boolean).join("/");
|
|
55035
|
-
}
|
|
55036
|
-
|
|
55037
|
-
/**
|
|
55038
|
-
* Validates that a date string matches the provided format and represents a real calendar date.
|
|
55039
|
-
*
|
|
55040
|
-
* @param {string} dateStr - Date string to validate.
|
|
55041
|
-
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
55042
|
-
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
55043
|
-
*/
|
|
55044
|
-
function isValidDate$1(dateStr, format = "yyyy-mm-dd") {
|
|
55045
|
-
try {
|
|
55046
|
-
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
55047
|
-
return false;
|
|
55048
|
-
}
|
|
55049
|
-
|
|
55050
|
-
if (parseDate$1(dateStr, format)) {
|
|
55051
|
-
return true;
|
|
55052
|
-
}
|
|
55053
|
-
} catch (error) {
|
|
55054
|
-
return false;
|
|
55055
|
-
}
|
|
55056
|
-
return false;
|
|
55057
|
-
}
|
|
55058
|
-
|
|
55059
|
-
/**
|
|
55060
|
-
* Converts a JavaScript Date instance to a simple ISO-like date string. This returns only the calendar date portion without any time or timezone information.
|
|
55061
|
-
*
|
|
55062
|
-
* @param {Date} date - Date instance to convert to an ISO-like string.
|
|
55063
|
-
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
55064
|
-
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
55065
|
-
*/
|
|
55066
|
-
function toISOFormatString$1(date) {
|
|
55067
|
-
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
55068
|
-
throw new Error(
|
|
55069
|
-
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
55070
|
-
);
|
|
55071
|
-
}
|
|
55072
|
-
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
55073
|
-
}
|
|
55074
|
-
|
|
55075
|
-
/**
|
|
55076
|
-
* Converts a date string into a JavaScript Date instance. This method supports ISO formatted strings and other formats that can be parsed by the formatter.
|
|
55077
|
-
*
|
|
55078
|
-
* @param {String} dateStr - Date string to convert into a Date object.
|
|
55079
|
-
* @param {String} format - Date format used to parse the string when it is not in ISO format.
|
|
55080
|
-
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
55081
|
-
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
55082
|
-
*/
|
|
55083
|
-
function stringToDateInstance$1(dateStr, format = "yyyy-mm-dd") {
|
|
55084
|
-
if (typeof dateStr !== "string") {
|
|
55085
|
-
return null;
|
|
55086
|
-
}
|
|
55087
|
-
|
|
55088
|
-
const { month, day, year } = parseDate$1(dateStr, format);
|
|
55089
|
-
return new Date(`${year}/${month}/${day}`);
|
|
55090
|
-
}
|
|
55091
|
-
|
|
55092
|
-
const dateFormatter$1 = {
|
|
55093
|
-
parseDate: parseDate$1,
|
|
55094
|
-
getDateParts: getDateParts$1,
|
|
55095
|
-
getDateAsString: getDateAsString$1,
|
|
55096
|
-
toNorthAmericanFormat: toNorthAmericanFormat$1,
|
|
55097
|
-
isValidDate: isValidDate$1,
|
|
55098
|
-
toISOFormatString: toISOFormatString$1,
|
|
55099
|
-
stringToDateInstance: stringToDateInstance$1,
|
|
55100
|
-
};
|
|
55101
|
-
|
|
55102
54179
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
55103
54180
|
// See LICENSE in the project root for license information.
|
|
55104
54181
|
|
|
@@ -55320,7 +54397,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
55320
54397
|
}
|
|
55321
54398
|
|
|
55322
54399
|
// Validate that the date passed was the correct format and is a valid date
|
|
55323
|
-
if (elem.value && !
|
|
54400
|
+
if (elem.value && !elem.valueObject) {
|
|
55324
54401
|
elem.validity = 'patternMismatch';
|
|
55325
54402
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
55326
54403
|
return;
|
|
@@ -59758,7 +58835,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
59758
58835
|
}
|
|
59759
58836
|
};
|
|
59760
58837
|
|
|
59761
|
-
var formkitVersion$2 = '
|
|
58838
|
+
var formkitVersion$2 = '202605271820';
|
|
59762
58839
|
|
|
59763
58840
|
let AuroElement$2$1 = class AuroElement extends i$3 {
|
|
59764
58841
|
static get properties() {
|
|
@@ -64646,7 +63723,7 @@ try {
|
|
|
64646
63723
|
* @param {string} format - Date format to parse.
|
|
64647
63724
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
64648
63725
|
*/
|
|
64649
|
-
function getDateParts
|
|
63726
|
+
function getDateParts(dateStr, format) {
|
|
64650
63727
|
if (!dateStr) {
|
|
64651
63728
|
return undefined;
|
|
64652
63729
|
}
|
|
@@ -64705,7 +63782,7 @@ function getDateParts$2(dateStr, format) {
|
|
|
64705
63782
|
return result;
|
|
64706
63783
|
}
|
|
64707
63784
|
|
|
64708
|
-
function isCalendarDate
|
|
63785
|
+
function isCalendarDate(year, month, day) {
|
|
64709
63786
|
let yearNumber = Number(year);
|
|
64710
63787
|
const monthNumber = Number(month);
|
|
64711
63788
|
const dayNumber = Number(day);
|
|
@@ -64729,7 +63806,7 @@ function isCalendarDate$2(year, month, day) {
|
|
|
64729
63806
|
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
64730
63807
|
|
|
64731
63808
|
return (
|
|
64732
|
-
!Number.isNaN(date.getTime()) && toISOFormatString
|
|
63809
|
+
!Number.isNaN(date.getTime()) && toISOFormatString(date) === stringified
|
|
64733
63810
|
);
|
|
64734
63811
|
}
|
|
64735
63812
|
|
|
@@ -64744,11 +63821,11 @@ function isCalendarDate$2(year, month, day) {
|
|
|
64744
63821
|
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
64745
63822
|
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
64746
63823
|
*/
|
|
64747
|
-
function parseDate
|
|
63824
|
+
function parseDate(dateStr, format = "mm/dd/yyyy") {
|
|
64748
63825
|
if (!dateStr || !format) {
|
|
64749
63826
|
return undefined;
|
|
64750
63827
|
}
|
|
64751
|
-
const result = getDateParts
|
|
63828
|
+
const result = getDateParts(dateStr.trim(), format);
|
|
64752
63829
|
|
|
64753
63830
|
if (!result) {
|
|
64754
63831
|
return undefined;
|
|
@@ -64759,7 +63836,7 @@ function parseDate$2(dateStr, format = "mm/dd/yyyy") {
|
|
|
64759
63836
|
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
64760
63837
|
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
64761
63838
|
|
|
64762
|
-
if (isCalendarDate
|
|
63839
|
+
if (isCalendarDate(year, month, day)) {
|
|
64763
63840
|
return result;
|
|
64764
63841
|
}
|
|
64765
63842
|
|
|
@@ -64774,7 +63851,7 @@ function parseDate$2(dateStr, format = "mm/dd/yyyy") {
|
|
|
64774
63851
|
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
64775
63852
|
* @returns {String} Returns the date as a string.
|
|
64776
63853
|
*/
|
|
64777
|
-
function getDateAsString
|
|
63854
|
+
function getDateAsString(date, locale = undefined) {
|
|
64778
63855
|
return date.toLocaleDateString(locale, {
|
|
64779
63856
|
year: "numeric",
|
|
64780
63857
|
month: "2-digit",
|
|
@@ -64788,12 +63865,12 @@ function getDateAsString$2(date, locale = undefined) {
|
|
|
64788
63865
|
* @param {String} format - Date format to validate against.
|
|
64789
63866
|
* @returns {String}
|
|
64790
63867
|
*/
|
|
64791
|
-
function toNorthAmericanFormat
|
|
63868
|
+
function toNorthAmericanFormat(dateStr, format) {
|
|
64792
63869
|
if (format === "mm/dd/yyyy") {
|
|
64793
63870
|
return dateStr;
|
|
64794
63871
|
}
|
|
64795
63872
|
|
|
64796
|
-
const parsedDate = parseDate
|
|
63873
|
+
const parsedDate = parseDate(dateStr, format);
|
|
64797
63874
|
|
|
64798
63875
|
if (!parsedDate) {
|
|
64799
63876
|
throw new Error(
|
|
@@ -64813,13 +63890,13 @@ function toNorthAmericanFormat$2(dateStr, format) {
|
|
|
64813
63890
|
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
64814
63891
|
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
64815
63892
|
*/
|
|
64816
|
-
function isValidDate
|
|
63893
|
+
function isValidDate(dateStr, format = "yyyy-mm-dd") {
|
|
64817
63894
|
try {
|
|
64818
63895
|
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
64819
63896
|
return false;
|
|
64820
63897
|
}
|
|
64821
63898
|
|
|
64822
|
-
if (parseDate
|
|
63899
|
+
if (parseDate(dateStr, format)) {
|
|
64823
63900
|
return true;
|
|
64824
63901
|
}
|
|
64825
63902
|
} catch (error) {
|
|
@@ -64835,7 +63912,7 @@ function isValidDate$2(dateStr, format = "yyyy-mm-dd") {
|
|
|
64835
63912
|
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
64836
63913
|
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
64837
63914
|
*/
|
|
64838
|
-
function toISOFormatString
|
|
63915
|
+
function toISOFormatString(date) {
|
|
64839
63916
|
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
64840
63917
|
throw new Error(
|
|
64841
63918
|
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
@@ -64852,23 +63929,23 @@ function toISOFormatString$2(date) {
|
|
|
64852
63929
|
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
64853
63930
|
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
64854
63931
|
*/
|
|
64855
|
-
function stringToDateInstance
|
|
63932
|
+
function stringToDateInstance(dateStr, format = "yyyy-mm-dd") {
|
|
64856
63933
|
if (typeof dateStr !== "string") {
|
|
64857
63934
|
return null;
|
|
64858
63935
|
}
|
|
64859
63936
|
|
|
64860
|
-
const { month, day, year } = parseDate
|
|
63937
|
+
const { month, day, year } = parseDate(dateStr, format);
|
|
64861
63938
|
return new Date(`${year}/${month}/${day}`);
|
|
64862
63939
|
}
|
|
64863
63940
|
|
|
64864
|
-
const dateFormatter
|
|
64865
|
-
parseDate
|
|
64866
|
-
getDateParts
|
|
64867
|
-
getDateAsString
|
|
64868
|
-
toNorthAmericanFormat
|
|
64869
|
-
isValidDate
|
|
64870
|
-
toISOFormatString
|
|
64871
|
-
stringToDateInstance
|
|
63941
|
+
const dateFormatter = {
|
|
63942
|
+
parseDate,
|
|
63943
|
+
getDateParts,
|
|
63944
|
+
getDateAsString,
|
|
63945
|
+
toNorthAmericanFormat,
|
|
63946
|
+
isValidDate,
|
|
63947
|
+
toISOFormatString,
|
|
63948
|
+
stringToDateInstance,
|
|
64872
63949
|
};
|
|
64873
63950
|
|
|
64874
63951
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -65175,7 +64252,7 @@ let AuroFormValidation$2 = class AuroFormValidation {
|
|
|
65175
64252
|
}
|
|
65176
64253
|
|
|
65177
64254
|
// Validate that the date passed was the correct format and is a valid date
|
|
65178
|
-
if (elem.value && !
|
|
64255
|
+
if (elem.value && !elem.valueObject) {
|
|
65179
64256
|
elem.validity = 'patternMismatch';
|
|
65180
64257
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
65181
64258
|
return;
|
|
@@ -71200,7 +70277,7 @@ class AuroInputUtilities {
|
|
|
71200
70277
|
return inputValue;
|
|
71201
70278
|
}
|
|
71202
70279
|
|
|
71203
|
-
return dateFormatter
|
|
70280
|
+
return dateFormatter.toISOFormatString(parsedDate);
|
|
71204
70281
|
}
|
|
71205
70282
|
|
|
71206
70283
|
/**
|
|
@@ -71217,7 +70294,7 @@ class AuroInputUtilities {
|
|
|
71217
70294
|
return value;
|
|
71218
70295
|
}
|
|
71219
70296
|
|
|
71220
|
-
if (!dateFormatter
|
|
70297
|
+
if (!dateFormatter.isValidDate(value)) {
|
|
71221
70298
|
// For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
|
|
71222
70299
|
// return '' so inputElement stays empty and format-based validation is not triggered.
|
|
71223
70300
|
return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
|
|
@@ -72225,7 +71302,7 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
72225
71302
|
|
|
72226
71303
|
// objectProperty wins over valueProperty when both changed
|
|
72227
71304
|
if (objectPropertyChanged && this[objectProperty]) {
|
|
72228
|
-
this[valueProperty] = dateFormatter
|
|
71305
|
+
this[valueProperty] = dateFormatter.toISOFormatString(this[objectProperty]);
|
|
72229
71306
|
return;
|
|
72230
71307
|
}
|
|
72231
71308
|
|
|
@@ -72240,13 +71317,13 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
72240
71317
|
valueProperty === 'value' &&
|
|
72241
71318
|
changedProperties.get('value') === undefined &&
|
|
72242
71319
|
this[objectProperty] instanceof Date &&
|
|
72243
|
-
this[valueProperty] === dateFormatter
|
|
71320
|
+
this[valueProperty] === dateFormatter.toISOFormatString(this[objectProperty])
|
|
72244
71321
|
) {
|
|
72245
71322
|
return;
|
|
72246
71323
|
}
|
|
72247
71324
|
|
|
72248
|
-
if (dateFormatter
|
|
72249
|
-
this.setDateObjectProperty(objectProperty, dateFormatter
|
|
71325
|
+
if (dateFormatter.isValidDate(this[valueProperty])) {
|
|
71326
|
+
this.setDateObjectProperty(objectProperty, dateFormatter.stringToDateInstance(this[valueProperty]));
|
|
72250
71327
|
} else {
|
|
72251
71328
|
this.setDateObjectProperty(objectProperty, undefined);
|
|
72252
71329
|
}
|
|
@@ -72279,7 +71356,7 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
72279
71356
|
if (
|
|
72280
71357
|
this.util.isFullDateFormat(this.type, this.format) &&
|
|
72281
71358
|
this.value &&
|
|
72282
|
-
dateFormatter
|
|
71359
|
+
dateFormatter.isValidDate(this.value) &&
|
|
72283
71360
|
this.valueObject instanceof Date &&
|
|
72284
71361
|
!Number.isNaN(this.valueObject.getTime()) &&
|
|
72285
71362
|
typeof maskOptions.format === 'function'
|
|
@@ -73009,7 +72086,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$3 {
|
|
|
73009
72086
|
}
|
|
73010
72087
|
};
|
|
73011
72088
|
|
|
73012
|
-
var formkitVersion$1$1 = '
|
|
72089
|
+
var formkitVersion$1$1 = '202605271820';
|
|
73013
72090
|
|
|
73014
72091
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
73015
72092
|
// See LICENSE in the project root for license information.
|
|
@@ -74126,7 +73203,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$3 {
|
|
|
74126
73203
|
}
|
|
74127
73204
|
};
|
|
74128
73205
|
|
|
74129
|
-
var formkitVersion$3 = '
|
|
73206
|
+
var formkitVersion$3 = '202605271820';
|
|
74130
73207
|
|
|
74131
73208
|
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}`;
|
|
74132
73209
|
|
|
@@ -78465,237 +77542,6 @@ var shapeSizeCss$1 = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.
|
|
|
78465
77542
|
|
|
78466
77543
|
var tokensCss$3 = i$5`:host(:not([ondark])),:host(:not([appearance=inverse])){--ds-auro-select-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-select-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-select-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: transparent}:host([ondark]),:host([appearance=inverse]){--ds-auro-select-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-select-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-select-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-select-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-select-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: transparent}`;
|
|
78467
77544
|
|
|
78468
|
-
/**
|
|
78469
|
-
* @description Splits a date string into its parts according to the provided format. Does NOT validate that the result is a real calendar date — use `parseDate` when validation is required.
|
|
78470
|
-
* @param {string} dateStr - Date string to parse.
|
|
78471
|
-
* @param {string} format - Date format to parse.
|
|
78472
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
78473
|
-
*/
|
|
78474
|
-
function getDateParts(dateStr, format) {
|
|
78475
|
-
if (!dateStr) {
|
|
78476
|
-
return undefined;
|
|
78477
|
-
}
|
|
78478
|
-
|
|
78479
|
-
const formatSeparatorMatch = format.match(/[/.-]/);
|
|
78480
|
-
let valueParts;
|
|
78481
|
-
let formatParts;
|
|
78482
|
-
|
|
78483
|
-
if (formatSeparatorMatch) {
|
|
78484
|
-
const separator = formatSeparatorMatch[0];
|
|
78485
|
-
valueParts = dateStr.split(separator);
|
|
78486
|
-
formatParts = format.split(separator);
|
|
78487
|
-
} else {
|
|
78488
|
-
if (dateStr.match(/[/.-]/)) {
|
|
78489
|
-
throw new Error(
|
|
78490
|
-
"AuroDatepickerUtilities | parseDate: Date string has no separators",
|
|
78491
|
-
);
|
|
78492
|
-
}
|
|
78493
|
-
|
|
78494
|
-
if (dateStr.length !== format.length) {
|
|
78495
|
-
throw new Error(
|
|
78496
|
-
"AuroDatepickerUtilities | parseDate: Date string and format length do not match",
|
|
78497
|
-
);
|
|
78498
|
-
}
|
|
78499
|
-
|
|
78500
|
-
valueParts = [dateStr];
|
|
78501
|
-
formatParts = [format];
|
|
78502
|
-
}
|
|
78503
|
-
|
|
78504
|
-
if (valueParts.length !== formatParts.length) {
|
|
78505
|
-
throw new Error(
|
|
78506
|
-
`AuroDatepickerUtilities | parseDate: Date string and format do not match : ${dateStr} vs ${format}`,
|
|
78507
|
-
);
|
|
78508
|
-
}
|
|
78509
|
-
|
|
78510
|
-
const result = formatParts.reduce((acc, part, index) => {
|
|
78511
|
-
const value = valueParts[index];
|
|
78512
|
-
|
|
78513
|
-
if (/m/iu.test(part) && part.length === value.length) {
|
|
78514
|
-
acc.month = value;
|
|
78515
|
-
} else if (/d/iu.test(part) && part.length === value.length) {
|
|
78516
|
-
acc.day = value;
|
|
78517
|
-
} else if (/y/iu.test(part) && part.length === value.length) {
|
|
78518
|
-
acc.year = value;
|
|
78519
|
-
}
|
|
78520
|
-
|
|
78521
|
-
return acc;
|
|
78522
|
-
}, {});
|
|
78523
|
-
|
|
78524
|
-
if (!result.month && !result.day && !result.year) {
|
|
78525
|
-
throw new Error(
|
|
78526
|
-
"AuroDatepickerUtilities | parseDate: Unable to parse date string",
|
|
78527
|
-
);
|
|
78528
|
-
}
|
|
78529
|
-
|
|
78530
|
-
return result;
|
|
78531
|
-
}
|
|
78532
|
-
|
|
78533
|
-
function isCalendarDate(year, month, day) {
|
|
78534
|
-
let yearNumber = Number(year);
|
|
78535
|
-
const monthNumber = Number(month);
|
|
78536
|
-
const dayNumber = Number(day);
|
|
78537
|
-
|
|
78538
|
-
if (
|
|
78539
|
-
!Number.isInteger(yearNumber) ||
|
|
78540
|
-
!Number.isInteger(monthNumber) ||
|
|
78541
|
-
!Number.isInteger(dayNumber)
|
|
78542
|
-
) {
|
|
78543
|
-
return false;
|
|
78544
|
-
}
|
|
78545
|
-
|
|
78546
|
-
// Handle 2-digit years by converting them to 4-digit years based on a cutoff. This allows for parsing of 2-digit year formats while still validating the resulting date.
|
|
78547
|
-
if (yearNumber < 100 && yearNumber >= 50) {
|
|
78548
|
-
yearNumber += 1900;
|
|
78549
|
-
} else if (yearNumber < 50) {
|
|
78550
|
-
yearNumber += 2000;
|
|
78551
|
-
}
|
|
78552
|
-
|
|
78553
|
-
const stringified = `${String(yearNumber).padStart(4, "0")}-${String(monthNumber).padStart(2, "0")}-${String(dayNumber).padStart(2, "0")}`;
|
|
78554
|
-
const date = new Date(stringified.replace(/[.-]/g, "/"));
|
|
78555
|
-
|
|
78556
|
-
return (
|
|
78557
|
-
!Number.isNaN(date.getTime()) && toISOFormatString(date) === stringified
|
|
78558
|
-
);
|
|
78559
|
-
}
|
|
78560
|
-
|
|
78561
|
-
/**
|
|
78562
|
-
* @description Parses a date string into its components and validates that the result is a real calendar date. Use `getDateParts` instead when raw splitting without validation is needed (e.g. for in-progress input).
|
|
78563
|
-
*
|
|
78564
|
-
* Partial formats are supported: components absent from `format` default to `year → "0"`,
|
|
78565
|
-
* `month → "01"`, `day → "01"` for calendar validation only. The returned object contains
|
|
78566
|
-
* only the fields actually present in the format string — missing fields are never injected.
|
|
78567
|
-
* @param {string} dateStr - Date string to parse.
|
|
78568
|
-
* @param {string} format - Date format to parse.
|
|
78569
|
-
* @returns {{ month?: string, day?: string, year?: string }|undefined}
|
|
78570
|
-
* @throws {Error} Throws when the parsed result does not represent a valid calendar date.
|
|
78571
|
-
*/
|
|
78572
|
-
function parseDate(dateStr, format = "mm/dd/yyyy") {
|
|
78573
|
-
if (!dateStr || !format) {
|
|
78574
|
-
return undefined;
|
|
78575
|
-
}
|
|
78576
|
-
const result = getDateParts(dateStr.trim(), format);
|
|
78577
|
-
|
|
78578
|
-
if (!result) {
|
|
78579
|
-
return undefined;
|
|
78580
|
-
}
|
|
78581
|
-
|
|
78582
|
-
const lowerFormat = format.toLowerCase();
|
|
78583
|
-
const year = lowerFormat.includes("yy") ? result.year : "0";
|
|
78584
|
-
const month = lowerFormat.includes("mm") ? result.month : "01";
|
|
78585
|
-
const day = lowerFormat.includes("dd") ? result.day : "01";
|
|
78586
|
-
|
|
78587
|
-
if (isCalendarDate(year, month, day)) {
|
|
78588
|
-
return result;
|
|
78589
|
-
}
|
|
78590
|
-
|
|
78591
|
-
throw new Error(
|
|
78592
|
-
`AuroDatepickerUtilities | parseDate: Date string is not a valid date ${JSON.stringify(result)} with format ${format}`,
|
|
78593
|
-
);
|
|
78594
|
-
}
|
|
78595
|
-
|
|
78596
|
-
/**
|
|
78597
|
-
* Convert a date object to string format.
|
|
78598
|
-
* @param {Object} date - Date to convert to string.
|
|
78599
|
-
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
78600
|
-
* @returns {String} Returns the date as a string.
|
|
78601
|
-
*/
|
|
78602
|
-
function getDateAsString(date, locale = undefined) {
|
|
78603
|
-
return date.toLocaleDateString(locale, {
|
|
78604
|
-
year: "numeric",
|
|
78605
|
-
month: "2-digit",
|
|
78606
|
-
day: "2-digit",
|
|
78607
|
-
});
|
|
78608
|
-
}
|
|
78609
|
-
|
|
78610
|
-
/**
|
|
78611
|
-
* Converts a date string to a North American date format.
|
|
78612
|
-
* @param {String} dateStr - Date to validate.
|
|
78613
|
-
* @param {String} format - Date format to validate against.
|
|
78614
|
-
* @returns {String}
|
|
78615
|
-
*/
|
|
78616
|
-
function toNorthAmericanFormat(dateStr, format) {
|
|
78617
|
-
if (format === "mm/dd/yyyy") {
|
|
78618
|
-
return dateStr;
|
|
78619
|
-
}
|
|
78620
|
-
|
|
78621
|
-
const parsedDate = parseDate(dateStr, format);
|
|
78622
|
-
|
|
78623
|
-
if (!parsedDate) {
|
|
78624
|
-
throw new Error(
|
|
78625
|
-
"AuroDatepickerUtilities | toNorthAmericanFormat: Unable to parse date string",
|
|
78626
|
-
);
|
|
78627
|
-
}
|
|
78628
|
-
|
|
78629
|
-
const { month, day, year } = parsedDate;
|
|
78630
|
-
|
|
78631
|
-
return [month, day, year].filter(Boolean).join("/");
|
|
78632
|
-
}
|
|
78633
|
-
|
|
78634
|
-
/**
|
|
78635
|
-
* Validates that a date string matches the provided format and represents a real calendar date.
|
|
78636
|
-
*
|
|
78637
|
-
* @param {string} dateStr - Date string to validate.
|
|
78638
|
-
* @param {string} [format="yyyy-mm-dd"] - Format of the date string.
|
|
78639
|
-
* @returns {boolean} True when the date string is valid for the provided format, otherwise false.
|
|
78640
|
-
*/
|
|
78641
|
-
function isValidDate(dateStr, format = "yyyy-mm-dd") {
|
|
78642
|
-
try {
|
|
78643
|
-
if (typeof dateStr !== "string" || !dateStr || format?.length < 8) {
|
|
78644
|
-
return false;
|
|
78645
|
-
}
|
|
78646
|
-
|
|
78647
|
-
if (parseDate(dateStr, format)) {
|
|
78648
|
-
return true;
|
|
78649
|
-
}
|
|
78650
|
-
} catch (error) {
|
|
78651
|
-
return false;
|
|
78652
|
-
}
|
|
78653
|
-
return false;
|
|
78654
|
-
}
|
|
78655
|
-
|
|
78656
|
-
/**
|
|
78657
|
-
* Converts a JavaScript Date instance to a simple ISO-like date string. This returns only the calendar date portion without any time or timezone information.
|
|
78658
|
-
*
|
|
78659
|
-
* @param {Date} date - Date instance to convert to an ISO-like string.
|
|
78660
|
-
* @returns {string} A string in the format "yyyy-mm-dd" representing the provided date.
|
|
78661
|
-
* @throws {Error} Throws an error when the input is not a valid Date instance.
|
|
78662
|
-
*/
|
|
78663
|
-
function toISOFormatString(date) {
|
|
78664
|
-
if (!(date instanceof Date) || Number.isNaN(date.getTime())) {
|
|
78665
|
-
throw new Error(
|
|
78666
|
-
"AuroDatepickerUtilities | toISOFormatString: Input must be a valid Date instance",
|
|
78667
|
-
);
|
|
78668
|
-
}
|
|
78669
|
-
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
78670
|
-
}
|
|
78671
|
-
|
|
78672
|
-
/**
|
|
78673
|
-
* Converts a date string into a JavaScript Date instance. This method supports ISO formatted strings and other formats that can be parsed by the formatter.
|
|
78674
|
-
*
|
|
78675
|
-
* @param {String} dateStr - Date string to convert into a Date object.
|
|
78676
|
-
* @param {String} format - Date format used to parse the string when it is not in ISO format.
|
|
78677
|
-
* @returns {Date|null} Returns a Date instance for valid input or null for non-string input.
|
|
78678
|
-
* @throws {Error} Throws when parsing fails for non-ISO string input.
|
|
78679
|
-
*/
|
|
78680
|
-
function stringToDateInstance(dateStr, format = "yyyy-mm-dd") {
|
|
78681
|
-
if (typeof dateStr !== "string") {
|
|
78682
|
-
return null;
|
|
78683
|
-
}
|
|
78684
|
-
|
|
78685
|
-
const { month, day, year } = parseDate(dateStr, format);
|
|
78686
|
-
return new Date(`${year}/${month}/${day}`);
|
|
78687
|
-
}
|
|
78688
|
-
|
|
78689
|
-
const dateFormatter = {
|
|
78690
|
-
parseDate,
|
|
78691
|
-
getDateParts,
|
|
78692
|
-
getDateAsString,
|
|
78693
|
-
toNorthAmericanFormat,
|
|
78694
|
-
isValidDate,
|
|
78695
|
-
toISOFormatString,
|
|
78696
|
-
stringToDateInstance,
|
|
78697
|
-
};
|
|
78698
|
-
|
|
78699
77545
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
78700
77546
|
// See LICENSE in the project root for license information.
|
|
78701
77547
|
|
|
@@ -79000,7 +77846,7 @@ class AuroFormValidation {
|
|
|
79000
77846
|
}
|
|
79001
77847
|
|
|
79002
77848
|
// Validate that the date passed was the correct format and is a valid date
|
|
79003
|
-
if (elem.value && !
|
|
77849
|
+
if (elem.value && !elem.valueObject) {
|
|
79004
77850
|
elem.validity = 'patternMismatch';
|
|
79005
77851
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
79006
77852
|
return;
|
|
@@ -83425,7 +82271,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
83425
82271
|
}
|
|
83426
82272
|
};
|
|
83427
82273
|
|
|
83428
|
-
var formkitVersion$1 = '
|
|
82274
|
+
var formkitVersion$1 = '202605271820';
|
|
83429
82275
|
|
|
83430
82276
|
class AuroElement extends i$3 {
|
|
83431
82277
|
static get properties() {
|
|
@@ -85178,7 +84024,7 @@ class AuroHelpText extends i$3 {
|
|
|
85178
84024
|
}
|
|
85179
84025
|
}
|
|
85180
84026
|
|
|
85181
|
-
var formkitVersion = '
|
|
84027
|
+
var formkitVersion = '202605271820';
|
|
85182
84028
|
|
|
85183
84029
|
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}`;
|
|
85184
84030
|
|