@aurodesignsystem-dev/auro-formkit 0.0.0-pr1519.1 → 0.0.0-pr1520.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/customize.min.js +2 -15
- package/components/checkbox/demo/getting-started.min.js +2 -15
- package/components/checkbox/demo/index.min.js +2 -15
- package/components/checkbox/dist/index.js +2 -15
- package/components/checkbox/dist/registered.js +2 -15
- package/components/combobox/demo/customize.min.js +10 -105
- package/components/combobox/demo/getting-started.min.js +10 -105
- package/components/combobox/demo/index.min.js +10 -105
- package/components/combobox/dist/index.js +10 -105
- package/components/combobox/dist/registered.js +10 -105
- package/components/counter/demo/customize.min.js +3 -33
- package/components/counter/demo/index.min.js +3 -33
- package/components/counter/dist/index.js +3 -33
- package/components/counter/dist/registered.js +3 -33
- package/components/datepicker/demo/customize.min.js +13 -153
- package/components/datepicker/demo/index.min.js +13 -153
- package/components/datepicker/dist/index.js +13 -153
- package/components/datepicker/dist/registered.js +13 -153
- package/components/dropdown/demo/customize.min.js +1 -18
- package/components/dropdown/demo/getting-started.min.js +1 -18
- package/components/dropdown/demo/index.min.js +1 -18
- package/components/dropdown/dist/index.js +1 -18
- package/components/dropdown/dist/registered.js +1 -18
- package/components/form/demo/customize.min.js +40 -426
- package/components/form/demo/getting-started.min.js +40 -426
- package/components/form/demo/index.min.js +40 -426
- package/components/form/demo/registerDemoDeps.min.js +40 -426
- package/components/input/demo/api.md +57 -58
- package/components/input/demo/customize.min.js +7 -72
- package/components/input/demo/getting-started.min.js +7 -72
- package/components/input/demo/index.min.js +7 -72
- package/components/input/dist/base-input.d.ts +3 -9
- package/components/input/dist/index.js +7 -72
- package/components/input/dist/registered.js +7 -72
- package/components/input/dist/utilities.d.ts +0 -9
- package/components/radio/demo/customize.min.js +2 -15
- package/components/radio/demo/getting-started.min.js +2 -15
- package/components/radio/demo/index.min.js +2 -15
- package/components/radio/dist/index.js +2 -15
- package/components/radio/dist/registered.js +2 -15
- package/components/select/demo/customize.min.js +3 -33
- package/components/select/demo/getting-started.min.js +3 -33
- package/components/select/demo/index.min.js +3 -33
- package/components/select/dist/index.js +3 -33
- package/components/select/dist/registered.js +3 -33
- package/custom-elements.json +8 -78
- package/package.json +1 -1
|
@@ -759,21 +759,8 @@ class AuroFormValidation {
|
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
763
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
762
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
764
763
|
if (elem.value && !elem.valueObject) {
|
|
765
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
766
|
-
|
|
767
|
-
if (isPartialDateFormat) {
|
|
768
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
769
|
-
elem.validity = 'patternMismatch';
|
|
770
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
771
|
-
}
|
|
772
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
777
764
|
elem.validity = 'patternMismatch';
|
|
778
765
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
779
766
|
return;
|
|
@@ -1275,7 +1262,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1262
|
}
|
|
1276
1263
|
}
|
|
1277
1264
|
|
|
1278
|
-
var formkitVersion = '
|
|
1265
|
+
var formkitVersion = '202607011727';
|
|
1279
1266
|
|
|
1280
1267
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1268
|
// See LICENSE in the project root for license information.
|
|
@@ -759,21 +759,8 @@ class AuroFormValidation {
|
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
763
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
762
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
764
763
|
if (elem.value && !elem.valueObject) {
|
|
765
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
766
|
-
|
|
767
|
-
if (isPartialDateFormat) {
|
|
768
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
769
|
-
elem.validity = 'patternMismatch';
|
|
770
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
771
|
-
}
|
|
772
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
777
764
|
elem.validity = 'patternMismatch';
|
|
778
765
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
779
766
|
return;
|
|
@@ -1275,7 +1262,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1262
|
}
|
|
1276
1263
|
}
|
|
1277
1264
|
|
|
1278
|
-
var formkitVersion = '
|
|
1265
|
+
var formkitVersion = '202607011727';
|
|
1279
1266
|
|
|
1280
1267
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1268
|
// See LICENSE in the project root for license information.
|
|
@@ -759,21 +759,8 @@ class AuroFormValidation {
|
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
763
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
762
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
764
763
|
if (elem.value && !elem.valueObject) {
|
|
765
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
766
|
-
|
|
767
|
-
if (isPartialDateFormat) {
|
|
768
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
769
|
-
elem.validity = 'patternMismatch';
|
|
770
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
771
|
-
}
|
|
772
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
777
764
|
elem.validity = 'patternMismatch';
|
|
778
765
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
779
766
|
return;
|
|
@@ -1275,7 +1262,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1262
|
}
|
|
1276
1263
|
}
|
|
1277
1264
|
|
|
1278
|
-
var formkitVersion = '
|
|
1265
|
+
var formkitVersion = '202607011727';
|
|
1279
1266
|
|
|
1280
1267
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1268
|
// See LICENSE in the project root for license information.
|
|
@@ -712,21 +712,8 @@ class AuroFormValidation {
|
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
716
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
715
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
717
716
|
if (elem.value && !elem.valueObject) {
|
|
718
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
719
|
-
|
|
720
|
-
if (isPartialDateFormat) {
|
|
721
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
722
|
-
elem.validity = 'patternMismatch';
|
|
723
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
724
|
-
}
|
|
725
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
730
717
|
elem.validity = 'patternMismatch';
|
|
731
718
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
732
719
|
return;
|
|
@@ -1228,7 +1215,7 @@ class AuroHelpText extends LitElement {
|
|
|
1228
1215
|
}
|
|
1229
1216
|
}
|
|
1230
1217
|
|
|
1231
|
-
var formkitVersion = '
|
|
1218
|
+
var formkitVersion = '202607011727';
|
|
1232
1219
|
|
|
1233
1220
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1234
1221
|
// See LICENSE in the project root for license information.
|
|
@@ -712,21 +712,8 @@ class AuroFormValidation {
|
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
716
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
715
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
717
716
|
if (elem.value && !elem.valueObject) {
|
|
718
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
719
|
-
|
|
720
|
-
if (isPartialDateFormat) {
|
|
721
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
722
|
-
elem.validity = 'patternMismatch';
|
|
723
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
724
|
-
}
|
|
725
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
726
|
-
return;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
730
717
|
elem.validity = 'patternMismatch';
|
|
731
718
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
732
719
|
return;
|
|
@@ -1228,7 +1215,7 @@ class AuroHelpText extends LitElement {
|
|
|
1228
1215
|
}
|
|
1229
1216
|
}
|
|
1230
1217
|
|
|
1231
|
-
var formkitVersion = '
|
|
1218
|
+
var formkitVersion = '202607011727';
|
|
1232
1219
|
|
|
1233
1220
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1234
1221
|
// See LICENSE in the project root for license information.
|
|
@@ -387,21 +387,8 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
391
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
390
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
392
391
|
if (elem.value && !elem.valueObject) {
|
|
393
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
394
|
-
|
|
395
|
-
if (isPartialDateFormat) {
|
|
396
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
397
|
-
elem.validity = 'patternMismatch';
|
|
398
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
399
|
-
}
|
|
400
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
405
392
|
elem.validity = 'patternMismatch';
|
|
406
393
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
407
394
|
return;
|
|
@@ -4879,7 +4866,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4879
4866
|
}
|
|
4880
4867
|
};
|
|
4881
4868
|
|
|
4882
|
-
var formkitVersion$2 = '
|
|
4869
|
+
var formkitVersion$2 = '202607011727';
|
|
4883
4870
|
|
|
4884
4871
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4885
4872
|
static get properties() {
|
|
@@ -5631,23 +5618,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5631
5618
|
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
5632
5619
|
this.trigger.focus();
|
|
5633
5620
|
}
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
if (!this.isPopoverVisible) {
|
|
5637
|
-
// wait til the bib gets fully closed and rendered
|
|
5638
|
-
setTimeout(() => {
|
|
5639
|
-
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
5640
|
-
// Restore focus to trigger when focus is still inside the bib (:focus-within) or fell to body.
|
|
5641
|
-
if (this.isPopoverVisible ||
|
|
5642
|
-
// eslint-disable-next-line no-extra-parens
|
|
5643
|
-
(!this.bibContent?.matches(':focus-within') &&
|
|
5644
|
-
document.activeElement !== document.body)) {
|
|
5645
|
-
return;
|
|
5646
|
-
}
|
|
5647
|
-
// Restore focus to the trigger.
|
|
5648
|
-
this.trigger.focus();
|
|
5649
|
-
});
|
|
5650
|
-
}
|
|
5651
5621
|
}
|
|
5652
5622
|
|
|
5653
5623
|
firstUpdated() {
|
|
@@ -10580,21 +10550,8 @@ class AuroFormValidation {
|
|
|
10580
10550
|
return;
|
|
10581
10551
|
}
|
|
10582
10552
|
|
|
10583
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
10584
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
10553
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
10585
10554
|
if (elem.value && !elem.valueObject) {
|
|
10586
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
10587
|
-
|
|
10588
|
-
if (isPartialDateFormat) {
|
|
10589
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
10590
|
-
elem.validity = 'patternMismatch';
|
|
10591
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
10592
|
-
}
|
|
10593
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
10594
|
-
return;
|
|
10595
|
-
}
|
|
10596
|
-
|
|
10597
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
10598
10555
|
elem.validity = 'patternMismatch';
|
|
10599
10556
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
10600
10557
|
return;
|
|
@@ -16524,11 +16481,10 @@ class AuroInputUtilities {
|
|
|
16524
16481
|
const dateFormat = format$1 || this.overrideFormat || pattern || 'mm/dd/yyyy';
|
|
16525
16482
|
|
|
16526
16483
|
if (dateFormat === 'dd' || dateFormat === 'yy' || dateFormat === 'yyyy') {
|
|
16527
|
-
const
|
|
16528
|
-
const maxValue = dateFormat === 'dd' ? 31 : (dateFormat === 'yy' ? 99 : 2100);
|
|
16484
|
+
const maxValue = dateFormat === 'dd' ? 31 : (dateFormat === 'yy' ? 99 : 9999);
|
|
16529
16485
|
return {
|
|
16530
16486
|
mask: IMask.MaskedRange,
|
|
16531
|
-
from:
|
|
16487
|
+
from: 1,
|
|
16532
16488
|
to: maxValue,
|
|
16533
16489
|
lazy: true,
|
|
16534
16490
|
placeholderChar: '',
|
|
@@ -16536,8 +16492,7 @@ class AuroInputUtilities {
|
|
|
16536
16492
|
return value.toString().padStart(dateFormat.length, '0');
|
|
16537
16493
|
},
|
|
16538
16494
|
parse(str) {
|
|
16539
|
-
|
|
16540
|
-
return isNaN(num) ? null : num;
|
|
16495
|
+
return parseInt(str) || null;
|
|
16541
16496
|
}
|
|
16542
16497
|
};
|
|
16543
16498
|
}
|
|
@@ -16601,49 +16556,6 @@ class AuroInputUtilities {
|
|
|
16601
16556
|
return type === 'date' && normalizedFormat.includes('yy') && normalizedFormat.includes('mm') && normalizedFormat.includes('dd');
|
|
16602
16557
|
}
|
|
16603
16558
|
|
|
16604
|
-
/**
|
|
16605
|
-
* Validates a value against a partial date format (one that lacks yy/mm/dd all three).
|
|
16606
|
-
* Day- and year-only formats (dd/yy/yyyy) are checked as integer ranges; other partial formats use
|
|
16607
|
-
* a date-fns parse + round-trip to confirm both validity and exact formatting.
|
|
16608
|
-
* @param {string} value - The user-facing display value.
|
|
16609
|
-
* @param {string} format - The partial date format string (e.g. "mm/yyyy", "yyyy", "dd").
|
|
16610
|
-
* @returns {boolean}
|
|
16611
|
-
*/
|
|
16612
|
-
isValidPartialDate(value, format$1) {
|
|
16613
|
-
if (!value || !format$1) {
|
|
16614
|
-
return false;
|
|
16615
|
-
}
|
|
16616
|
-
const normalizedFormat = format$1.toLowerCase();
|
|
16617
|
-
|
|
16618
|
-
if (normalizedFormat === 'dd') {
|
|
16619
|
-
const num = Number(value);
|
|
16620
|
-
return (/^\d{2}$/u).test(value) && num >= 1 && num <= 31;
|
|
16621
|
-
}
|
|
16622
|
-
if (normalizedFormat === 'yy') {
|
|
16623
|
-
const num = Number(value);
|
|
16624
|
-
return (/^\d{2}$/u).test(value) && num >= 0 && num <= 99;
|
|
16625
|
-
}
|
|
16626
|
-
if (normalizedFormat === 'yyyy') {
|
|
16627
|
-
const num = Number(value);
|
|
16628
|
-
return (/^\d{4}$/u).test(value) && num >= 1900 && num <= 2100;
|
|
16629
|
-
}
|
|
16630
|
-
|
|
16631
|
-
const dateFnsMask = this.toDateFnsMask(normalizedFormat);
|
|
16632
|
-
// Use the 1st of the current month as the reference so that formats
|
|
16633
|
-
// omitting a day (e.g. MM/yyyy) never roll over on days 29–31.
|
|
16634
|
-
const referenceDate = new Date();
|
|
16635
|
-
referenceDate.setDate(1);
|
|
16636
|
-
const parsed = parse(value, dateFnsMask, referenceDate);
|
|
16637
|
-
if (!isValid(parsed) || format(parsed, dateFnsMask) !== value) {
|
|
16638
|
-
return false;
|
|
16639
|
-
}
|
|
16640
|
-
if (normalizedFormat.includes('yyyy')) {
|
|
16641
|
-
const year = parsed.getFullYear();
|
|
16642
|
-
return year >= 1900 && year <= 2100;
|
|
16643
|
-
}
|
|
16644
|
-
return true;
|
|
16645
|
-
}
|
|
16646
|
-
|
|
16647
16559
|
/**
|
|
16648
16560
|
* Converts a display string to its model value.
|
|
16649
16561
|
* For full date formats, converts the display string to an ISO date string.
|
|
@@ -17263,13 +17175,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17263
17175
|
type: String
|
|
17264
17176
|
},
|
|
17265
17177
|
|
|
17266
|
-
/**
|
|
17267
|
-
* Custom help text message to display when validity = `patternMismatch`.
|
|
17268
|
-
*/
|
|
17269
|
-
setCustomValidityPatternMismatch: {
|
|
17270
|
-
type: String
|
|
17271
|
-
},
|
|
17272
|
-
|
|
17273
17178
|
/**
|
|
17274
17179
|
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17275
17180
|
*/
|
|
@@ -17340,7 +17245,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17340
17245
|
|
|
17341
17246
|
/**
|
|
17342
17247
|
* Populates the `type` attribute on the input.
|
|
17343
|
-
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'
|
|
17248
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
17344
17249
|
* @default 'text'
|
|
17345
17250
|
*/
|
|
17346
17251
|
type: {
|
|
@@ -17365,7 +17270,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17365
17270
|
|
|
17366
17271
|
/**
|
|
17367
17272
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
17368
|
-
*
|
|
17273
|
+
* The format for this property should be ISO for `date` type inputs.
|
|
17369
17274
|
*/
|
|
17370
17275
|
value: {
|
|
17371
17276
|
type: String
|
|
@@ -18488,7 +18393,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18488
18393
|
}
|
|
18489
18394
|
};
|
|
18490
18395
|
|
|
18491
|
-
var formkitVersion$1 = '
|
|
18396
|
+
var formkitVersion$1 = '202607011727';
|
|
18492
18397
|
|
|
18493
18398
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18494
18399
|
// See LICENSE in the project root for license information.
|
|
@@ -19614,7 +19519,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19614
19519
|
}
|
|
19615
19520
|
}
|
|
19616
19521
|
|
|
19617
|
-
var formkitVersion = '
|
|
19522
|
+
var formkitVersion = '202607011727';
|
|
19618
19523
|
|
|
19619
19524
|
var styleCss$3 = i$6`.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}`;
|
|
19620
19525
|
|
|
@@ -387,21 +387,8 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
391
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
390
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
392
391
|
if (elem.value && !elem.valueObject) {
|
|
393
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
394
|
-
|
|
395
|
-
if (isPartialDateFormat) {
|
|
396
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
397
|
-
elem.validity = 'patternMismatch';
|
|
398
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
399
|
-
}
|
|
400
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
405
392
|
elem.validity = 'patternMismatch';
|
|
406
393
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
407
394
|
return;
|
|
@@ -4879,7 +4866,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4879
4866
|
}
|
|
4880
4867
|
};
|
|
4881
4868
|
|
|
4882
|
-
var formkitVersion$2 = '
|
|
4869
|
+
var formkitVersion$2 = '202607011727';
|
|
4883
4870
|
|
|
4884
4871
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4885
4872
|
static get properties() {
|
|
@@ -5631,23 +5618,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5631
5618
|
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
5632
5619
|
this.trigger.focus();
|
|
5633
5620
|
}
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
if (!this.isPopoverVisible) {
|
|
5637
|
-
// wait til the bib gets fully closed and rendered
|
|
5638
|
-
setTimeout(() => {
|
|
5639
|
-
// Skip if the bib re-opened, or if focus moved intentionally outside the dropdown (not to body).
|
|
5640
|
-
// Restore focus to trigger when focus is still inside the bib (:focus-within) or fell to body.
|
|
5641
|
-
if (this.isPopoverVisible ||
|
|
5642
|
-
// eslint-disable-next-line no-extra-parens
|
|
5643
|
-
(!this.bibContent?.matches(':focus-within') &&
|
|
5644
|
-
document.activeElement !== document.body)) {
|
|
5645
|
-
return;
|
|
5646
|
-
}
|
|
5647
|
-
// Restore focus to the trigger.
|
|
5648
|
-
this.trigger.focus();
|
|
5649
|
-
});
|
|
5650
|
-
}
|
|
5651
5621
|
}
|
|
5652
5622
|
|
|
5653
5623
|
firstUpdated() {
|
|
@@ -10580,21 +10550,8 @@ class AuroFormValidation {
|
|
|
10580
10550
|
return;
|
|
10581
10551
|
}
|
|
10582
10552
|
|
|
10583
|
-
// Validate that the date passed was the correct format and is a valid date
|
|
10584
|
-
// For partial date formats, valueObject is never populated; validate them directly.
|
|
10553
|
+
// Validate that the date passed was the correct format and is a valid date
|
|
10585
10554
|
if (elem.value && !elem.valueObject) {
|
|
10586
|
-
const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
|
|
10587
|
-
|
|
10588
|
-
if (isPartialDateFormat) {
|
|
10589
|
-
if (!elem.util.isValidPartialDate(elem.value, elem.format)) {
|
|
10590
|
-
elem.validity = 'patternMismatch';
|
|
10591
|
-
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
10592
|
-
}
|
|
10593
|
-
// Partial date format — validate directly and skip max/min checks since valueObject is undefined.
|
|
10594
|
-
return;
|
|
10595
|
-
}
|
|
10596
|
-
|
|
10597
|
-
// Full date format with no valueObject means the value is not a valid calendar date.
|
|
10598
10555
|
elem.validity = 'patternMismatch';
|
|
10599
10556
|
elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
|
|
10600
10557
|
return;
|
|
@@ -16524,11 +16481,10 @@ class AuroInputUtilities {
|
|
|
16524
16481
|
const dateFormat = format$1 || this.overrideFormat || pattern || 'mm/dd/yyyy';
|
|
16525
16482
|
|
|
16526
16483
|
if (dateFormat === 'dd' || dateFormat === 'yy' || dateFormat === 'yyyy') {
|
|
16527
|
-
const
|
|
16528
|
-
const maxValue = dateFormat === 'dd' ? 31 : (dateFormat === 'yy' ? 99 : 2100);
|
|
16484
|
+
const maxValue = dateFormat === 'dd' ? 31 : (dateFormat === 'yy' ? 99 : 9999);
|
|
16529
16485
|
return {
|
|
16530
16486
|
mask: IMask.MaskedRange,
|
|
16531
|
-
from:
|
|
16487
|
+
from: 1,
|
|
16532
16488
|
to: maxValue,
|
|
16533
16489
|
lazy: true,
|
|
16534
16490
|
placeholderChar: '',
|
|
@@ -16536,8 +16492,7 @@ class AuroInputUtilities {
|
|
|
16536
16492
|
return value.toString().padStart(dateFormat.length, '0');
|
|
16537
16493
|
},
|
|
16538
16494
|
parse(str) {
|
|
16539
|
-
|
|
16540
|
-
return isNaN(num) ? null : num;
|
|
16495
|
+
return parseInt(str) || null;
|
|
16541
16496
|
}
|
|
16542
16497
|
};
|
|
16543
16498
|
}
|
|
@@ -16601,49 +16556,6 @@ class AuroInputUtilities {
|
|
|
16601
16556
|
return type === 'date' && normalizedFormat.includes('yy') && normalizedFormat.includes('mm') && normalizedFormat.includes('dd');
|
|
16602
16557
|
}
|
|
16603
16558
|
|
|
16604
|
-
/**
|
|
16605
|
-
* Validates a value against a partial date format (one that lacks yy/mm/dd all three).
|
|
16606
|
-
* Day- and year-only formats (dd/yy/yyyy) are checked as integer ranges; other partial formats use
|
|
16607
|
-
* a date-fns parse + round-trip to confirm both validity and exact formatting.
|
|
16608
|
-
* @param {string} value - The user-facing display value.
|
|
16609
|
-
* @param {string} format - The partial date format string (e.g. "mm/yyyy", "yyyy", "dd").
|
|
16610
|
-
* @returns {boolean}
|
|
16611
|
-
*/
|
|
16612
|
-
isValidPartialDate(value, format$1) {
|
|
16613
|
-
if (!value || !format$1) {
|
|
16614
|
-
return false;
|
|
16615
|
-
}
|
|
16616
|
-
const normalizedFormat = format$1.toLowerCase();
|
|
16617
|
-
|
|
16618
|
-
if (normalizedFormat === 'dd') {
|
|
16619
|
-
const num = Number(value);
|
|
16620
|
-
return (/^\d{2}$/u).test(value) && num >= 1 && num <= 31;
|
|
16621
|
-
}
|
|
16622
|
-
if (normalizedFormat === 'yy') {
|
|
16623
|
-
const num = Number(value);
|
|
16624
|
-
return (/^\d{2}$/u).test(value) && num >= 0 && num <= 99;
|
|
16625
|
-
}
|
|
16626
|
-
if (normalizedFormat === 'yyyy') {
|
|
16627
|
-
const num = Number(value);
|
|
16628
|
-
return (/^\d{4}$/u).test(value) && num >= 1900 && num <= 2100;
|
|
16629
|
-
}
|
|
16630
|
-
|
|
16631
|
-
const dateFnsMask = this.toDateFnsMask(normalizedFormat);
|
|
16632
|
-
// Use the 1st of the current month as the reference so that formats
|
|
16633
|
-
// omitting a day (e.g. MM/yyyy) never roll over on days 29–31.
|
|
16634
|
-
const referenceDate = new Date();
|
|
16635
|
-
referenceDate.setDate(1);
|
|
16636
|
-
const parsed = parse(value, dateFnsMask, referenceDate);
|
|
16637
|
-
if (!isValid(parsed) || format(parsed, dateFnsMask) !== value) {
|
|
16638
|
-
return false;
|
|
16639
|
-
}
|
|
16640
|
-
if (normalizedFormat.includes('yyyy')) {
|
|
16641
|
-
const year = parsed.getFullYear();
|
|
16642
|
-
return year >= 1900 && year <= 2100;
|
|
16643
|
-
}
|
|
16644
|
-
return true;
|
|
16645
|
-
}
|
|
16646
|
-
|
|
16647
16559
|
/**
|
|
16648
16560
|
* Converts a display string to its model value.
|
|
16649
16561
|
* For full date formats, converts the display string to an ISO date string.
|
|
@@ -17263,13 +17175,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17263
17175
|
type: String
|
|
17264
17176
|
},
|
|
17265
17177
|
|
|
17266
|
-
/**
|
|
17267
|
-
* Custom help text message to display when validity = `patternMismatch`.
|
|
17268
|
-
*/
|
|
17269
|
-
setCustomValidityPatternMismatch: {
|
|
17270
|
-
type: String
|
|
17271
|
-
},
|
|
17272
|
-
|
|
17273
17178
|
/**
|
|
17274
17179
|
* Custom help text message to display when validity = `rangeOverflow`.
|
|
17275
17180
|
*/
|
|
@@ -17340,7 +17245,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17340
17245
|
|
|
17341
17246
|
/**
|
|
17342
17247
|
* Populates the `type` attribute on the input.
|
|
17343
|
-
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'
|
|
17248
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
17344
17249
|
* @default 'text'
|
|
17345
17250
|
*/
|
|
17346
17251
|
type: {
|
|
@@ -17365,7 +17270,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17365
17270
|
|
|
17366
17271
|
/**
|
|
17367
17272
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
17368
|
-
*
|
|
17273
|
+
* The format for this property should be ISO for `date` type inputs.
|
|
17369
17274
|
*/
|
|
17370
17275
|
value: {
|
|
17371
17276
|
type: String
|
|
@@ -18488,7 +18393,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18488
18393
|
}
|
|
18489
18394
|
};
|
|
18490
18395
|
|
|
18491
|
-
var formkitVersion$1 = '
|
|
18396
|
+
var formkitVersion$1 = '202607011727';
|
|
18492
18397
|
|
|
18493
18398
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18494
18399
|
// See LICENSE in the project root for license information.
|
|
@@ -19614,7 +19519,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19614
19519
|
}
|
|
19615
19520
|
}
|
|
19616
19521
|
|
|
19617
|
-
var formkitVersion = '
|
|
19522
|
+
var formkitVersion = '202607011727';
|
|
19618
19523
|
|
|
19619
19524
|
var styleCss$3 = i$6`.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}`;
|
|
19620
19525
|
|