@aurodesignsystem-dev/auro-formkit 0.0.0-pr1531.1 → 0.0.0-pr1532.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.
Files changed (46) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +29 -42
  7. package/components/combobox/demo/getting-started.min.js +29 -42
  8. package/components/combobox/demo/index.min.js +29 -42
  9. package/components/combobox/dist/index.js +29 -42
  10. package/components/combobox/dist/registered.js +29 -42
  11. package/components/counter/demo/customize.min.js +2 -2
  12. package/components/counter/demo/index.min.js +2 -2
  13. package/components/counter/dist/index.js +2 -2
  14. package/components/counter/dist/registered.js +2 -2
  15. package/components/datepicker/demo/customize.min.js +29 -42
  16. package/components/datepicker/demo/index.min.js +29 -42
  17. package/components/datepicker/dist/index.js +29 -42
  18. package/components/datepicker/dist/registered.js +29 -42
  19. package/components/dropdown/demo/customize.min.js +1 -1
  20. package/components/dropdown/demo/getting-started.min.js +1 -1
  21. package/components/dropdown/demo/index.min.js +1 -1
  22. package/components/dropdown/dist/index.js +1 -1
  23. package/components/dropdown/dist/registered.js +1 -1
  24. package/components/form/demo/customize.min.js +151 -144
  25. package/components/form/demo/getting-started.min.js +151 -144
  26. package/components/form/demo/index.min.js +151 -144
  27. package/components/form/demo/registerDemoDeps.min.js +151 -144
  28. package/components/input/demo/customize.min.js +27 -40
  29. package/components/input/demo/getting-started.min.js +27 -40
  30. package/components/input/demo/index.min.js +27 -40
  31. package/components/input/dist/base-input.d.ts +4 -20
  32. package/components/input/dist/index.js +27 -40
  33. package/components/input/dist/registered.js +27 -40
  34. package/components/radio/demo/customize.min.js +1 -1
  35. package/components/radio/demo/getting-started.min.js +1 -1
  36. package/components/radio/demo/index.min.js +1 -1
  37. package/components/radio/dist/index.js +1 -1
  38. package/components/radio/dist/registered.js +1 -1
  39. package/components/select/demo/customize.min.js +62 -16
  40. package/components/select/demo/getting-started.min.js +62 -16
  41. package/components/select/demo/index.min.js +62 -16
  42. package/components/select/dist/auro-select.d.ts +6 -0
  43. package/components/select/dist/index.js +62 -16
  44. package/components/select/dist/registered.js +62 -16
  45. package/custom-elements.json +4655 -4709
  46. package/package.json +1 -1
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
1275
1275
  }
1276
1276
  }
1277
1277
 
1278
- var formkitVersion = '202607022150';
1278
+ var formkitVersion = '202607022050';
1279
1279
 
1280
1280
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1281
1281
  // See LICENSE in the project root for license information.
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
1275
1275
  }
1276
1276
  }
1277
1277
 
1278
- var formkitVersion = '202607022150';
1278
+ var formkitVersion = '202607022050';
1279
1279
 
1280
1280
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1281
1281
  // See LICENSE in the project root for license information.
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
1275
1275
  }
1276
1276
  }
1277
1277
 
1278
- var formkitVersion = '202607022150';
1278
+ var formkitVersion = '202607022050';
1279
1279
 
1280
1280
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1281
1281
  // See LICENSE in the project root for license information.
@@ -1228,7 +1228,7 @@ class AuroHelpText extends LitElement {
1228
1228
  }
1229
1229
  }
1230
1230
 
1231
- var formkitVersion = '202607022150';
1231
+ var formkitVersion = '202607022050';
1232
1232
 
1233
1233
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1234
1234
  // See LICENSE in the project root for license information.
@@ -1228,7 +1228,7 @@ class AuroHelpText extends LitElement {
1228
1228
  }
1229
1229
  }
1230
1230
 
1231
- var formkitVersion = '202607022150';
1231
+ var formkitVersion = '202607022050';
1232
1232
 
1233
1233
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1234
1234
  // See LICENSE in the project root for license information.
@@ -4879,7 +4879,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
4879
4879
  }
4880
4880
  };
4881
4881
 
4882
- var formkitVersion$2 = '202607022150';
4882
+ var formkitVersion$2 = '202607022050';
4883
4883
 
4884
4884
  let AuroElement$2 = class AuroElement extends i$3 {
4885
4885
  static get properties() {
@@ -16894,16 +16894,14 @@ class BaseInput extends AuroElement$1 {
16894
16894
  this.label = 'Input label is undefined';
16895
16895
  this.layout = 'classic';
16896
16896
  this.locale = 'en-US';
16897
- this._format = undefined;
16898
-
16899
- /** @private */
16900
- this._userSetFormat = false;
16901
16897
  this.max = undefined;
16902
16898
  this.maxLength = undefined;
16903
16899
  this.min = undefined;
16904
16900
  this.minLength = undefined;
16905
16901
  this.noValidate = false;
16906
16902
  this.onDark = false;
16903
+ // Raw values returned from the input mask before model normalization.
16904
+ this._rawMaskValue = undefined;
16907
16905
  this.required = false;
16908
16906
  this.setCustomValidityForType = undefined;
16909
16907
  // Credit Card is intentionally excluded — its mask manages the cursor
@@ -17061,8 +17059,7 @@ class BaseInput extends AuroElement$1 {
17061
17059
  */
17062
17060
  format: {
17063
17061
  type: String,
17064
- reflect: true,
17065
- noAccessor: true
17062
+ reflect: true
17066
17063
  },
17067
17064
 
17068
17065
  /**
@@ -17400,34 +17397,6 @@ class BaseInput extends AuroElement$1 {
17400
17397
  return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
17401
17398
  }
17402
17399
 
17403
- get format() {
17404
- return this._format;
17405
- }
17406
-
17407
- /**
17408
- * Overrides LitElement's generated accessor so we can track whether the
17409
- * consumer explicitly set `format`. Locale-derived updates use
17410
- * `_setFormatFromLocale` instead, which skips this flag.
17411
- */
17412
- set format(value) {
17413
- const oldValue = this._format;
17414
- this._format = value ? value.toLowerCase() : value;
17415
- this._userSetFormat = Boolean(value);
17416
- this.requestUpdate('format', oldValue);
17417
- }
17418
-
17419
- /**
17420
- * Sets format without marking it as user-set. Used by locale auto-derive
17421
- * so that a subsequent locale change can still update the format.
17422
- * @private
17423
- * @param {string} value
17424
- */
17425
- _setFormatFromLocale(value) {
17426
- const oldValue = this._format;
17427
- this._format = value ? value.toLowerCase() : value;
17428
- this.requestUpdate('format', oldValue);
17429
- }
17430
-
17431
17400
  connectedCallback() {
17432
17401
  super.connectedCallback();
17433
17402
 
@@ -17475,6 +17444,15 @@ class BaseInput extends AuroElement$1 {
17475
17444
 
17476
17445
  this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
17477
17446
 
17447
+ // Normalize the format token to lowercase so case-mixed values supplied
17448
+ // via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
17449
+ // lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
17450
+ // format silently misses the map and leaves `setCustomValidityForType`
17451
+ // unset.
17452
+ if (this.format) {
17453
+ this.format = this.format.toLowerCase();
17454
+ }
17455
+
17478
17456
  // use validity message override if declared when initializing the component
17479
17457
  if (this.hasAttribute('setCustomValidity')) {
17480
17458
  this.ValidityMessageOverride = this.setCustomValidity;
@@ -17581,10 +17559,12 @@ class BaseInput extends AuroElement$1 {
17581
17559
  updated(changedProperties) {
17582
17560
  super.updated(changedProperties);
17583
17561
 
17584
- // When locale changes, auto-derive format unless the consumer explicitly set one.
17562
+ // When locale changes without an explicit format override, derive format from the new locale.
17563
+ // Only runs if the current format is still the previous locale's default (not user-overridden).
17585
17564
  if (changedProperties.has('locale') && !changedProperties.has('format') && this.type === 'date') {
17586
- if (!this._userSetFormat) {
17587
- this._setFormatFromLocale(getDateFormatFromLocale(this.locale));
17565
+ const previousLocaleFormat = getDateFormatFromLocale(changedProperties.get('locale'));
17566
+ if (!this.format || this.format.toLowerCase() === previousLocaleFormat) {
17567
+ this.format = getDateFormatFromLocale(this.locale);
17588
17568
  }
17589
17569
  }
17590
17570
 
@@ -17755,6 +17735,9 @@ class BaseInput extends AuroElement$1 {
17755
17735
  this.maskInstance.on('accept', () => {
17756
17736
  if (this._configuringMask) return;
17757
17737
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17738
+ if (this.type === "date") {
17739
+ this._rawMaskValue = this.maskInstance.value;
17740
+ }
17758
17741
  });
17759
17742
 
17760
17743
  // Mask fires 'complete' on the restore step below for any value that
@@ -17762,6 +17745,9 @@ class BaseInput extends AuroElement$1 {
17762
17745
  this.maskInstance.on('complete', () => {
17763
17746
  if (this._configuringMask) return;
17764
17747
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17748
+ if (this.type === "date") {
17749
+ this._rawMaskValue = this.maskInstance.value;
17750
+ }
17765
17751
  });
17766
17752
 
17767
17753
  // Write existingValue through the mask (not the input directly) so
@@ -17998,7 +17984,8 @@ class BaseInput extends AuroElement$1 {
17998
17984
 
17999
17985
  // Set default date format if type=date and no format is defined
18000
17986
  if (this.type === "date" && !this.format) {
18001
- this._setFormatFromLocale(this.util.getDateMaskFromLocale().toLowerCase());
17987
+ // Use locale to determine default date format
17988
+ this.format = this.util.getDateMaskFromLocale().toLowerCase();
18002
17989
  this.util.updateFormat(this.format);
18003
17990
  }
18004
17991
  }
@@ -18027,7 +18014,7 @@ class BaseInput extends AuroElement$1 {
18027
18014
  const creditCard = this.matchInputValueToCreditCard();
18028
18015
  const previousFormat = this.format;
18029
18016
 
18030
- this._setFormatFromLocale(creditCard.maskFormat);
18017
+ this.format = creditCard.maskFormat;
18031
18018
 
18032
18019
  this.maxLength = creditCard.formatLength;
18033
18020
  this.minLength = creditCard.formatMinLength;
@@ -18501,7 +18488,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
18501
18488
  }
18502
18489
  };
18503
18490
 
18504
- var formkitVersion$1 = '202607022150';
18491
+ var formkitVersion$1 = '202607022050';
18505
18492
 
18506
18493
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
18507
18494
  // See LICENSE in the project root for license information.
@@ -19627,7 +19614,7 @@ class AuroBibtemplate extends i$3 {
19627
19614
  }
19628
19615
  }
19629
19616
 
19630
- var formkitVersion = '202607022150';
19617
+ var formkitVersion = '202607022050';
19631
19618
 
19632
19619
  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}`;
19633
19620
 
@@ -4879,7 +4879,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
4879
4879
  }
4880
4880
  };
4881
4881
 
4882
- var formkitVersion$2 = '202607022150';
4882
+ var formkitVersion$2 = '202607022050';
4883
4883
 
4884
4884
  let AuroElement$2 = class AuroElement extends i$3 {
4885
4885
  static get properties() {
@@ -16894,16 +16894,14 @@ class BaseInput extends AuroElement$1 {
16894
16894
  this.label = 'Input label is undefined';
16895
16895
  this.layout = 'classic';
16896
16896
  this.locale = 'en-US';
16897
- this._format = undefined;
16898
-
16899
- /** @private */
16900
- this._userSetFormat = false;
16901
16897
  this.max = undefined;
16902
16898
  this.maxLength = undefined;
16903
16899
  this.min = undefined;
16904
16900
  this.minLength = undefined;
16905
16901
  this.noValidate = false;
16906
16902
  this.onDark = false;
16903
+ // Raw values returned from the input mask before model normalization.
16904
+ this._rawMaskValue = undefined;
16907
16905
  this.required = false;
16908
16906
  this.setCustomValidityForType = undefined;
16909
16907
  // Credit Card is intentionally excluded — its mask manages the cursor
@@ -17061,8 +17059,7 @@ class BaseInput extends AuroElement$1 {
17061
17059
  */
17062
17060
  format: {
17063
17061
  type: String,
17064
- reflect: true,
17065
- noAccessor: true
17062
+ reflect: true
17066
17063
  },
17067
17064
 
17068
17065
  /**
@@ -17400,34 +17397,6 @@ class BaseInput extends AuroElement$1 {
17400
17397
  return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
17401
17398
  }
17402
17399
 
17403
- get format() {
17404
- return this._format;
17405
- }
17406
-
17407
- /**
17408
- * Overrides LitElement's generated accessor so we can track whether the
17409
- * consumer explicitly set `format`. Locale-derived updates use
17410
- * `_setFormatFromLocale` instead, which skips this flag.
17411
- */
17412
- set format(value) {
17413
- const oldValue = this._format;
17414
- this._format = value ? value.toLowerCase() : value;
17415
- this._userSetFormat = Boolean(value);
17416
- this.requestUpdate('format', oldValue);
17417
- }
17418
-
17419
- /**
17420
- * Sets format without marking it as user-set. Used by locale auto-derive
17421
- * so that a subsequent locale change can still update the format.
17422
- * @private
17423
- * @param {string} value
17424
- */
17425
- _setFormatFromLocale(value) {
17426
- const oldValue = this._format;
17427
- this._format = value ? value.toLowerCase() : value;
17428
- this.requestUpdate('format', oldValue);
17429
- }
17430
-
17431
17400
  connectedCallback() {
17432
17401
  super.connectedCallback();
17433
17402
 
@@ -17475,6 +17444,15 @@ class BaseInput extends AuroElement$1 {
17475
17444
 
17476
17445
  this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
17477
17446
 
17447
+ // Normalize the format token to lowercase so case-mixed values supplied
17448
+ // via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
17449
+ // lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
17450
+ // format silently misses the map and leaves `setCustomValidityForType`
17451
+ // unset.
17452
+ if (this.format) {
17453
+ this.format = this.format.toLowerCase();
17454
+ }
17455
+
17478
17456
  // use validity message override if declared when initializing the component
17479
17457
  if (this.hasAttribute('setCustomValidity')) {
17480
17458
  this.ValidityMessageOverride = this.setCustomValidity;
@@ -17581,10 +17559,12 @@ class BaseInput extends AuroElement$1 {
17581
17559
  updated(changedProperties) {
17582
17560
  super.updated(changedProperties);
17583
17561
 
17584
- // When locale changes, auto-derive format unless the consumer explicitly set one.
17562
+ // When locale changes without an explicit format override, derive format from the new locale.
17563
+ // Only runs if the current format is still the previous locale's default (not user-overridden).
17585
17564
  if (changedProperties.has('locale') && !changedProperties.has('format') && this.type === 'date') {
17586
- if (!this._userSetFormat) {
17587
- this._setFormatFromLocale(getDateFormatFromLocale(this.locale));
17565
+ const previousLocaleFormat = getDateFormatFromLocale(changedProperties.get('locale'));
17566
+ if (!this.format || this.format.toLowerCase() === previousLocaleFormat) {
17567
+ this.format = getDateFormatFromLocale(this.locale);
17588
17568
  }
17589
17569
  }
17590
17570
 
@@ -17755,6 +17735,9 @@ class BaseInput extends AuroElement$1 {
17755
17735
  this.maskInstance.on('accept', () => {
17756
17736
  if (this._configuringMask) return;
17757
17737
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17738
+ if (this.type === "date") {
17739
+ this._rawMaskValue = this.maskInstance.value;
17740
+ }
17758
17741
  });
17759
17742
 
17760
17743
  // Mask fires 'complete' on the restore step below for any value that
@@ -17762,6 +17745,9 @@ class BaseInput extends AuroElement$1 {
17762
17745
  this.maskInstance.on('complete', () => {
17763
17746
  if (this._configuringMask) return;
17764
17747
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17748
+ if (this.type === "date") {
17749
+ this._rawMaskValue = this.maskInstance.value;
17750
+ }
17765
17751
  });
17766
17752
 
17767
17753
  // Write existingValue through the mask (not the input directly) so
@@ -17998,7 +17984,8 @@ class BaseInput extends AuroElement$1 {
17998
17984
 
17999
17985
  // Set default date format if type=date and no format is defined
18000
17986
  if (this.type === "date" && !this.format) {
18001
- this._setFormatFromLocale(this.util.getDateMaskFromLocale().toLowerCase());
17987
+ // Use locale to determine default date format
17988
+ this.format = this.util.getDateMaskFromLocale().toLowerCase();
18002
17989
  this.util.updateFormat(this.format);
18003
17990
  }
18004
17991
  }
@@ -18027,7 +18014,7 @@ class BaseInput extends AuroElement$1 {
18027
18014
  const creditCard = this.matchInputValueToCreditCard();
18028
18015
  const previousFormat = this.format;
18029
18016
 
18030
- this._setFormatFromLocale(creditCard.maskFormat);
18017
+ this.format = creditCard.maskFormat;
18031
18018
 
18032
18019
  this.maxLength = creditCard.formatLength;
18033
18020
  this.minLength = creditCard.formatMinLength;
@@ -18501,7 +18488,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
18501
18488
  }
18502
18489
  };
18503
18490
 
18504
- var formkitVersion$1 = '202607022150';
18491
+ var formkitVersion$1 = '202607022050';
18505
18492
 
18506
18493
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
18507
18494
  // See LICENSE in the project root for license information.
@@ -19627,7 +19614,7 @@ class AuroBibtemplate extends i$3 {
19627
19614
  }
19628
19615
  }
19629
19616
 
19630
- var formkitVersion = '202607022150';
19617
+ var formkitVersion = '202607022050';
19631
19618
 
19632
19619
  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}`;
19633
19620
 
@@ -4894,7 +4894,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
4894
4894
  }
4895
4895
  };
4896
4896
 
4897
- var formkitVersion$2 = '202607022150';
4897
+ var formkitVersion$2 = '202607022050';
4898
4898
 
4899
4899
  let AuroElement$2 = class AuroElement extends i$3 {
4900
4900
  static get properties() {
@@ -16909,16 +16909,14 @@ class BaseInput extends AuroElement$1 {
16909
16909
  this.label = 'Input label is undefined';
16910
16910
  this.layout = 'classic';
16911
16911
  this.locale = 'en-US';
16912
- this._format = undefined;
16913
-
16914
- /** @private */
16915
- this._userSetFormat = false;
16916
16912
  this.max = undefined;
16917
16913
  this.maxLength = undefined;
16918
16914
  this.min = undefined;
16919
16915
  this.minLength = undefined;
16920
16916
  this.noValidate = false;
16921
16917
  this.onDark = false;
16918
+ // Raw values returned from the input mask before model normalization.
16919
+ this._rawMaskValue = undefined;
16922
16920
  this.required = false;
16923
16921
  this.setCustomValidityForType = undefined;
16924
16922
  // Credit Card is intentionally excluded — its mask manages the cursor
@@ -17076,8 +17074,7 @@ class BaseInput extends AuroElement$1 {
17076
17074
  */
17077
17075
  format: {
17078
17076
  type: String,
17079
- reflect: true,
17080
- noAccessor: true
17077
+ reflect: true
17081
17078
  },
17082
17079
 
17083
17080
  /**
@@ -17415,34 +17412,6 @@ class BaseInput extends AuroElement$1 {
17415
17412
  return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
17416
17413
  }
17417
17414
 
17418
- get format() {
17419
- return this._format;
17420
- }
17421
-
17422
- /**
17423
- * Overrides LitElement's generated accessor so we can track whether the
17424
- * consumer explicitly set `format`. Locale-derived updates use
17425
- * `_setFormatFromLocale` instead, which skips this flag.
17426
- */
17427
- set format(value) {
17428
- const oldValue = this._format;
17429
- this._format = value ? value.toLowerCase() : value;
17430
- this._userSetFormat = Boolean(value);
17431
- this.requestUpdate('format', oldValue);
17432
- }
17433
-
17434
- /**
17435
- * Sets format without marking it as user-set. Used by locale auto-derive
17436
- * so that a subsequent locale change can still update the format.
17437
- * @private
17438
- * @param {string} value
17439
- */
17440
- _setFormatFromLocale(value) {
17441
- const oldValue = this._format;
17442
- this._format = value ? value.toLowerCase() : value;
17443
- this.requestUpdate('format', oldValue);
17444
- }
17445
-
17446
17415
  connectedCallback() {
17447
17416
  super.connectedCallback();
17448
17417
 
@@ -17490,6 +17459,15 @@ class BaseInput extends AuroElement$1 {
17490
17459
 
17491
17460
  this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
17492
17461
 
17462
+ // Normalize the format token to lowercase so case-mixed values supplied
17463
+ // via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
17464
+ // lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
17465
+ // format silently misses the map and leaves `setCustomValidityForType`
17466
+ // unset.
17467
+ if (this.format) {
17468
+ this.format = this.format.toLowerCase();
17469
+ }
17470
+
17493
17471
  // use validity message override if declared when initializing the component
17494
17472
  if (this.hasAttribute('setCustomValidity')) {
17495
17473
  this.ValidityMessageOverride = this.setCustomValidity;
@@ -17596,10 +17574,12 @@ class BaseInput extends AuroElement$1 {
17596
17574
  updated(changedProperties) {
17597
17575
  super.updated(changedProperties);
17598
17576
 
17599
- // When locale changes, auto-derive format unless the consumer explicitly set one.
17577
+ // When locale changes without an explicit format override, derive format from the new locale.
17578
+ // Only runs if the current format is still the previous locale's default (not user-overridden).
17600
17579
  if (changedProperties.has('locale') && !changedProperties.has('format') && this.type === 'date') {
17601
- if (!this._userSetFormat) {
17602
- this._setFormatFromLocale(getDateFormatFromLocale(this.locale));
17580
+ const previousLocaleFormat = getDateFormatFromLocale(changedProperties.get('locale'));
17581
+ if (!this.format || this.format.toLowerCase() === previousLocaleFormat) {
17582
+ this.format = getDateFormatFromLocale(this.locale);
17603
17583
  }
17604
17584
  }
17605
17585
 
@@ -17770,6 +17750,9 @@ class BaseInput extends AuroElement$1 {
17770
17750
  this.maskInstance.on('accept', () => {
17771
17751
  if (this._configuringMask) return;
17772
17752
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17753
+ if (this.type === "date") {
17754
+ this._rawMaskValue = this.maskInstance.value;
17755
+ }
17773
17756
  });
17774
17757
 
17775
17758
  // Mask fires 'complete' on the restore step below for any value that
@@ -17777,6 +17760,9 @@ class BaseInput extends AuroElement$1 {
17777
17760
  this.maskInstance.on('complete', () => {
17778
17761
  if (this._configuringMask) return;
17779
17762
  this.value = this.util.toModelValue(this.maskInstance.value, this.format);
17763
+ if (this.type === "date") {
17764
+ this._rawMaskValue = this.maskInstance.value;
17765
+ }
17780
17766
  });
17781
17767
 
17782
17768
  // Write existingValue through the mask (not the input directly) so
@@ -18013,7 +17999,8 @@ class BaseInput extends AuroElement$1 {
18013
17999
 
18014
18000
  // Set default date format if type=date and no format is defined
18015
18001
  if (this.type === "date" && !this.format) {
18016
- this._setFormatFromLocale(this.util.getDateMaskFromLocale().toLowerCase());
18002
+ // Use locale to determine default date format
18003
+ this.format = this.util.getDateMaskFromLocale().toLowerCase();
18017
18004
  this.util.updateFormat(this.format);
18018
18005
  }
18019
18006
  }
@@ -18042,7 +18029,7 @@ class BaseInput extends AuroElement$1 {
18042
18029
  const creditCard = this.matchInputValueToCreditCard();
18043
18030
  const previousFormat = this.format;
18044
18031
 
18045
- this._setFormatFromLocale(creditCard.maskFormat);
18032
+ this.format = creditCard.maskFormat;
18046
18033
 
18047
18034
  this.maxLength = creditCard.formatLength;
18048
18035
  this.minLength = creditCard.formatMinLength;
@@ -18516,7 +18503,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
18516
18503
  }
18517
18504
  };
18518
18505
 
18519
- var formkitVersion$1 = '202607022150';
18506
+ var formkitVersion$1 = '202607022050';
18520
18507
 
18521
18508
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
18522
18509
  // See LICENSE in the project root for license information.
@@ -19642,7 +19629,7 @@ class AuroBibtemplate extends i$3 {
19642
19629
  }
19643
19630
  }
19644
19631
 
19645
- var formkitVersion = '202607022150';
19632
+ var formkitVersion = '202607022050';
19646
19633
 
19647
19634
  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}`;
19648
19635