@aurodesignsystem-dev/auro-formkit 0.0.0-pr1483.11 → 0.0.0-pr1483.12

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 +18 -18
  7. package/components/combobox/demo/getting-started.min.js +18 -18
  8. package/components/combobox/demo/index.min.js +18 -18
  9. package/components/combobox/dist/index.js +18 -18
  10. package/components/combobox/dist/registered.js +18 -18
  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 +1 -1
  14. package/components/counter/dist/registered.js +1 -1
  15. package/components/datepicker/demo/customize.md +37 -19
  16. package/components/datepicker/demo/index.min.js +24 -34
  17. package/components/datepicker/dist/index.js +24 -34
  18. package/components/datepicker/dist/registered.js +24 -34
  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 +64 -74
  25. package/components/form/demo/getting-started.min.js +64 -74
  26. package/components/form/demo/index.min.js +64 -74
  27. package/components/form/demo/registerDemoDeps.min.js +64 -74
  28. package/components/input/demo/customize.md +28 -107
  29. package/components/input/demo/customize.min.js +16 -16
  30. package/components/input/demo/getting-started.md +12 -11
  31. package/components/input/demo/getting-started.min.js +16 -16
  32. package/components/input/demo/index.min.js +16 -16
  33. package/components/input/dist/auro-input-util.d.ts +1 -1
  34. package/components/input/dist/index.js +16 -16
  35. package/components/input/dist/registered.js +16 -16
  36. package/components/input/dist/utilities.d.ts +1 -2
  37. package/components/radio/demo/index.min.js +1 -1
  38. package/components/radio/dist/index.js +1 -1
  39. package/components/radio/dist/registered.js +1 -1
  40. package/components/select/demo/customize.min.js +2 -2
  41. package/components/select/demo/getting-started.min.js +2 -2
  42. package/components/select/demo/index.min.js +2 -2
  43. package/components/select/dist/index.js +2 -2
  44. package/components/select/dist/registered.js +2 -2
  45. package/custom-elements.json +1486 -1493
  46. package/package.json +1 -1
@@ -10447,27 +10447,17 @@ let AuroInputUtilities$3 = class AuroInputUtilities {
10447
10447
  * Converts a model value to a display value for the input element.
10448
10448
  * For full date formats, converts an ISO model value to the configured display format.
10449
10449
  * @private
10450
- * @param {string} value - The model value (ISO string for date types).
10451
10450
  * @param {Date|undefined} valueObject - Date object representation of value.
10452
10451
  * @param {string} format - The date format string.
10453
- * @returns {string}
10452
+ * @returns {string | undefined}
10454
10453
  */
10455
- toFormattedValue(value, valueObject, format) {
10456
- if (!this.isFullDateFormat('date', format) || !value) {
10457
- return value;
10458
- }
10459
-
10460
- if (!dateFormatter$3.isValidDate(value)) {
10461
- // For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
10462
- // return '' so inputElement stays empty and format-based validation is not triggered.
10463
- return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
10464
- }
10465
-
10454
+ toFormattedValue(valueObject, format) {
10466
10455
  const normalizedFormat = format.toLowerCase();
10467
10456
  const maskOptions = this.getMaskOptions('date', normalizedFormat);
10468
10457
 
10469
10458
  if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
10470
- return value;
10459
+ console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
10460
+ return undefined;
10471
10461
  }
10472
10462
 
10473
10463
  return maskOptions.format(valueObject);
@@ -11385,7 +11375,17 @@ let BaseInput$2 = class BaseInput extends AuroElement$7 {
11385
11375
  this.hasValue = false;
11386
11376
  }
11387
11377
 
11388
- const formattedValue = this.type === 'date' ? this.util.toFormattedValue(this.value, this.valueObject, this.format) : this.value;
11378
+ let formattedValue = this.value;
11379
+ if (this.type === 'date') {
11380
+ const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
11381
+ if (!formattedDate) {
11382
+ // if user entered unrecognized date format that cannot be parsed into a Date object,
11383
+ // keep the raw value in the input so they can edit it instead of overwriting with an empty string
11384
+ formattedValue = this.value;
11385
+ } else {
11386
+ formattedValue = formattedDate;
11387
+ }
11388
+ }
11389
11389
 
11390
11390
  if (formattedValue !== this.inputElement.value) {
11391
11391
  this.skipNextProgrammaticInputEvent = true;
@@ -12249,7 +12249,7 @@ let AuroHelpText$9 = class AuroHelpText extends i$3 {
12249
12249
  }
12250
12250
  };
12251
12251
 
12252
- var formkitVersion$9 = '202606051831';
12252
+ var formkitVersion$9 = '202606051947';
12253
12253
 
12254
12254
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12255
12255
  // See LICENSE in the project root for license information.
@@ -23479,27 +23479,17 @@ let AuroInputUtilities$1 = class AuroInputUtilities {
23479
23479
  * Converts a model value to a display value for the input element.
23480
23480
  * For full date formats, converts an ISO model value to the configured display format.
23481
23481
  * @private
23482
- * @param {string} value - The model value (ISO string for date types).
23483
23482
  * @param {Date|undefined} valueObject - Date object representation of value.
23484
23483
  * @param {string} format - The date format string.
23485
- * @returns {string}
23484
+ * @returns {string | undefined}
23486
23485
  */
23487
- toFormattedValue(value, valueObject, format) {
23488
- if (!this.isFullDateFormat('date', format) || !value) {
23489
- return value;
23490
- }
23491
-
23492
- if (!dateFormatter$1.isValidDate(value)) {
23493
- // For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
23494
- // return '' so inputElement stays empty and format-based validation is not triggered.
23495
- return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
23496
- }
23497
-
23486
+ toFormattedValue(valueObject, format) {
23498
23487
  const normalizedFormat = format.toLowerCase();
23499
23488
  const maskOptions = this.getMaskOptions('date', normalizedFormat);
23500
23489
 
23501
23490
  if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
23502
- return value;
23491
+ console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
23492
+ return undefined;
23503
23493
  }
23504
23494
 
23505
23495
  return maskOptions.format(valueObject);
@@ -25942,7 +25932,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$3 {
25942
25932
  }
25943
25933
  };
25944
25934
 
25945
- var formkitVersion$2$1 = '202606051831';
25935
+ var formkitVersion$2$1 = '202606051947';
25946
25936
 
25947
25937
  let l$1$2 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$6`${s$8(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1$2 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$1$2 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1$3=i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
25948
25938
  `,u$4$1=i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
@@ -30321,7 +30311,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$3 {
30321
30311
  }
30322
30312
  };
30323
30313
 
30324
- var formkitVersion$1$2 = '202606051831';
30314
+ var formkitVersion$1$2 = '202606051947';
30325
30315
 
30326
30316
  let AuroElement$2$2 = class AuroElement extends i$3 {
30327
30317
  static get properties() {
@@ -41770,27 +41760,17 @@ let AuroInputUtilities$2 = class AuroInputUtilities {
41770
41760
  * Converts a model value to a display value for the input element.
41771
41761
  * For full date formats, converts an ISO model value to the configured display format.
41772
41762
  * @private
41773
- * @param {string} value - The model value (ISO string for date types).
41774
41763
  * @param {Date|undefined} valueObject - Date object representation of value.
41775
41764
  * @param {string} format - The date format string.
41776
- * @returns {string}
41765
+ * @returns {string | undefined}
41777
41766
  */
41778
- toFormattedValue(value, valueObject, format) {
41779
- if (!this.isFullDateFormat('date', format) || !value) {
41780
- return value;
41781
- }
41782
-
41783
- if (!dateFormatter$2.isValidDate(value)) {
41784
- // For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
41785
- // return '' so inputElement stays empty and format-based validation is not triggered.
41786
- return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
41787
- }
41788
-
41767
+ toFormattedValue(valueObject, format) {
41789
41768
  const normalizedFormat = format.toLowerCase();
41790
41769
  const maskOptions = this.getMaskOptions('date', normalizedFormat);
41791
41770
 
41792
41771
  if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
41793
- return value;
41772
+ console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
41773
+ return undefined;
41794
41774
  }
41795
41775
 
41796
41776
  return maskOptions.format(valueObject);
@@ -42708,7 +42688,17 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$2 {
42708
42688
  this.hasValue = false;
42709
42689
  }
42710
42690
 
42711
- const formattedValue = this.type === 'date' ? this.util.toFormattedValue(this.value, this.valueObject, this.format) : this.value;
42691
+ let formattedValue = this.value;
42692
+ if (this.type === 'date') {
42693
+ const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
42694
+ if (!formattedDate) {
42695
+ // if user entered unrecognized date format that cannot be parsed into a Date object,
42696
+ // keep the raw value in the input so they can edit it instead of overwriting with an empty string
42697
+ formattedValue = this.value;
42698
+ } else {
42699
+ formattedValue = formattedDate;
42700
+ }
42701
+ }
42712
42702
 
42713
42703
  if (formattedValue !== this.inputElement.value) {
42714
42704
  this.skipNextProgrammaticInputEvent = true;
@@ -43572,7 +43562,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$3 {
43572
43562
  }
43573
43563
  };
43574
43564
 
43575
- var formkitVersion$8 = '202606051831';
43565
+ var formkitVersion$8 = '202606051947';
43576
43566
 
43577
43567
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
43578
43568
  // See LICENSE in the project root for license information.
@@ -46845,8 +46835,8 @@ class AuroDatePicker extends AuroElement$6 {
46845
46835
  <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
46846
46836
  <slot slot="bib.fullscreen.toLabel" name="bib.fullscreen.toLabel" @slotchange="${this.handleSlotToSlot}"></slot>
46847
46837
  <slot slot="bib.fullscreen.fromLabel" name="bib.fullscreen.fromLabel" @slotchange="${this.handleSlotToSlot}"></slot>
46848
- <span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.value, this.valueObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>
46849
- ${this.range ? u$d`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.valueEnd, this.valueEndObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>` : undefined}
46838
+ <span slot="bib.fullscreen.fromStr">${AuroInputUtil.toFormattedValue(this.valueObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>
46839
+ ${this.range ? u$d`<span slot="bib.fullscreen.toStr">${AuroInputUtil.toFormattedValue(this.valueEndObject, this.format) || u$d`<span class="placeholderDate">${(this.format || 'mm/dd/yyyy').toUpperCase()}</span>`}</span>` : undefined}
46850
46840
  </auro-formkit-calendar>
46851
46841
  `;
46852
46842
  }
@@ -50764,7 +50754,7 @@ let AuroHelpText$7 = class AuroHelpText extends i$3 {
50764
50754
  }
50765
50755
  };
50766
50756
 
50767
- var formkitVersion$7 = '202606051831';
50757
+ var formkitVersion$7 = '202606051947';
50768
50758
 
50769
50759
  let AuroElement$5 = class AuroElement extends i$3 {
50770
50760
  static get properties() {
@@ -52943,7 +52933,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$3 {
52943
52933
  }
52944
52934
  };
52945
52935
 
52946
- var formkitVersion$6 = '202606051831';
52936
+ var formkitVersion$6 = '202606051947';
52947
52937
 
52948
52938
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
52949
52939
  // See LICENSE in the project root for license information.
@@ -55939,7 +55929,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$3 {
55939
55929
  }
55940
55930
  };
55941
55931
 
55942
- var formkitVersion$5 = '202606051831';
55932
+ var formkitVersion$5 = '202606051947';
55943
55933
 
55944
55934
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
55945
55935
  // See LICENSE in the project root for license information.
@@ -57689,7 +57679,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$3 {
57689
57679
  }
57690
57680
  };
57691
57681
 
57692
- var formkitVersion$4 = '202606051831';
57682
+ var formkitVersion$4 = '202606051947';
57693
57683
 
57694
57684
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
57695
57685
  // See LICENSE in the project root for license information.
@@ -62887,7 +62877,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
62887
62877
  }
62888
62878
  };
62889
62879
 
62890
- var formkitVersion$2 = '202606051831';
62880
+ var formkitVersion$2 = '202606051947';
62891
62881
 
62892
62882
  let AuroElement$2$1 = class AuroElement extends i$3 {
62893
62883
  static get properties() {
@@ -74336,27 +74326,17 @@ class AuroInputUtilities {
74336
74326
  * Converts a model value to a display value for the input element.
74337
74327
  * For full date formats, converts an ISO model value to the configured display format.
74338
74328
  * @private
74339
- * @param {string} value - The model value (ISO string for date types).
74340
74329
  * @param {Date|undefined} valueObject - Date object representation of value.
74341
74330
  * @param {string} format - The date format string.
74342
- * @returns {string}
74331
+ * @returns {string | undefined}
74343
74332
  */
74344
- toFormattedValue(value, valueObject, format) {
74345
- if (!this.isFullDateFormat('date', format) || !value) {
74346
- return value;
74347
- }
74348
-
74349
- if (!dateFormatter.isValidDate(value)) {
74350
- // For ISO-pattern strings that fail range validation (e.g. '2024-99-99'),
74351
- // return '' so inputElement stays empty and format-based validation is not triggered.
74352
- return (/^\d{4}-\d{2}-\d{2}$/u).test(value) ? '' : value;
74353
- }
74354
-
74333
+ toFormattedValue(valueObject, format) {
74355
74334
  const normalizedFormat = format.toLowerCase();
74356
74335
  const maskOptions = this.getMaskOptions('date', normalizedFormat);
74357
74336
 
74358
74337
  if (!(valueObject instanceof Date) || Number.isNaN(valueObject.getTime()) || !maskOptions || typeof maskOptions.format !== 'function') {
74359
- return value;
74338
+ console.debug('Invalid date object or mask options for formatting', { valueObject, maskOptions }); // eslint-disable-line no-console
74339
+ return undefined;
74360
74340
  }
74361
74341
 
74362
74342
  return maskOptions.format(valueObject);
@@ -75274,7 +75254,17 @@ class BaseInput extends AuroElement$1$1 {
75274
75254
  this.hasValue = false;
75275
75255
  }
75276
75256
 
75277
- const formattedValue = this.type === 'date' ? this.util.toFormattedValue(this.value, this.valueObject, this.format) : this.value;
75257
+ let formattedValue = this.value;
75258
+ if (this.type === 'date') {
75259
+ const formattedDate = this.util.toFormattedValue(this.valueObject, this.format);
75260
+ if (!formattedDate) {
75261
+ // if user entered unrecognized date format that cannot be parsed into a Date object,
75262
+ // keep the raw value in the input so they can edit it instead of overwriting with an empty string
75263
+ formattedValue = this.value;
75264
+ } else {
75265
+ formattedValue = formattedDate;
75266
+ }
75267
+ }
75278
75268
 
75279
75269
  if (formattedValue !== this.inputElement.value) {
75280
75270
  this.skipNextProgrammaticInputEvent = true;
@@ -76138,7 +76128,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$3 {
76138
76128
  }
76139
76129
  };
76140
76130
 
76141
- var formkitVersion$1$1 = '202606051831';
76131
+ var formkitVersion$1$1 = '202606051947';
76142
76132
 
76143
76133
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
76144
76134
  // See LICENSE in the project root for license information.
@@ -77255,7 +77245,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$3 {
77255
77245
  }
77256
77246
  };
77257
77247
 
77258
- var formkitVersion$3 = '202606051831';
77248
+ var formkitVersion$3 = '202606051947';
77259
77249
 
77260
77250
  var styleCss$1$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
77261
77251
 
@@ -86325,7 +86315,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
86325
86315
  }
86326
86316
  };
86327
86317
 
86328
- var formkitVersion$1 = '202606051831';
86318
+ var formkitVersion$1 = '202606051947';
86329
86319
 
86330
86320
  class AuroElement extends i$3 {
86331
86321
  static get properties() {
@@ -88078,7 +88068,7 @@ class AuroHelpText extends i$3 {
88078
88068
  }
88079
88069
  }
88080
88070
 
88081
- var formkitVersion = '202606051831';
88071
+ var formkitVersion = '202606051947';
88082
88072
 
88083
88073
  var styleCss = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
88084
88074
 
@@ -22,8 +22,8 @@
22
22
  <auro-anchorlink fluid href="#disabled" class="level2 body-xs">Disabled</auro-anchorlink>
23
23
  <auro-anchorlink fluid href="#error" class="level2 body-xs">Error</auro-anchorlink>
24
24
  <auro-anchorlink fluid href="#format" class="level2 body-xs">Format</auro-anchorlink>
25
- <auro-anchorlink fluid href="#regionalDateFormat" class="level2 body-xs">Regional Date</auro-anchorlink>
26
25
  <auro-anchorlink fluid href="#inputMode" class="level2 body-xs">Input Mode</auro-anchorlink>
26
+ <auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
27
27
  <auro-anchorlink fluid href="#max" class="level2 body-xs">Max</auro-anchorlink>
28
28
  <auro-anchorlink fluid href="#maxLength" class="level2 body-xs">Max Length</auro-anchorlink>
29
29
  <auro-anchorlink fluid href="#min" class="level2 body-xs">Min</auro-anchorlink>
@@ -37,9 +37,6 @@
37
37
  <auro-anchorlink fluid href="#type" class="level2 body-xs">Type</auro-anchorlink>
38
38
  <auro-anchorlink fluid href="#validateOnInput" class="level2 body-xs">Validate on Input</auro-anchorlink>
39
39
  <auro-anchorlink fluid href="#value" class="level2 body-xs">Value</auro-anchorlink>
40
- <auro-anchorlink fluid href="#auroInputUtil">AuroInputUtil</auro-anchorlink>
41
- <auro-anchorlink fluid href="#auroInputUtilFormatIso" class="level2 body-xs">Format ISO value</auro-anchorlink>
42
- <auro-anchorlink fluid href="#auroInputUtilToIso" class="level2 body-xs">Date to ISO</auro-anchorlink>
43
40
  </auro-nav>
44
41
  </nav>
45
42
  <div class="mainContent">
@@ -531,33 +528,40 @@
531
528
  &lt;/auro-input&gt;</code></pre>
532
529
  <!-- AURO-GENERATED-CONTENT:END -->
533
530
  </auro-accordion>
534
- <auro-header level="3" id="regionalDateFormat">Regional Date Format Support</auro-header>
531
+ <auro-header level="3" id="localization">Localization</auro-header>
535
532
  <p>When <code>type="date"</code> is used with the <code>locale</code> attribute, the component automatically derives the correct date format for that region — no need to set <code>format</code> manually. For example, <code>locale="en-US"</code> produces <code>mm/dd/yyyy</code>, <code>locale="de-DE"</code> produces <code>dd.mm.yyyy</code>, and <code>locale="ja-JP"</code> produces <code>yyyy/mm/dd</code>.</p>
536
533
  <p>If <code>format</code> is explicitly set alongside <code>locale</code>, <code>format</code> always wins. Use this when a specific format is required regardless of region.</p>
537
534
  <div class="exampleWrapper">
538
535
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/locale.html) -->
539
536
  <!-- The below content is automatically added from ../apiExamples/locale.html -->
540
537
  <div data-locale="de-DE">
538
+ <auro-header level="4">en-GB Example</auro-header>
541
539
  <auro-input type="date" locale="en-GB">
542
540
  <span slot="ariaLabel.clear">Clear All</span>
543
541
  <span slot="label">en-GB Date</span>
544
542
  <span slot="helpText">Help Text</span>
545
543
  </auro-input>
544
+ <auro-header level="4">en-US Example</auro-header>
546
545
  <auro-input type="date" locale="en-US">
547
546
  <span slot="ariaLabel.clear">Clear All</span>
548
547
  <span slot="label">en-US Date</span>
549
548
  <span slot="helpText">Help Text</span>
550
549
  </auro-input>
550
+ <auro-header level="4">zh-CN Example</auro-header>
551
551
  <auro-input type="date" locale="zh-CN">
552
- <span slot="ariaLabel.clear">Clear All</span>
553
- <span slot="label">zh-CN Date</span>
554
- <span slot="helpText">Help Text</span>
552
+ <span slot="ariaLabel.clear">全部清除</span>
553
+ <span slot="label">中文日期</span>
554
+ <span slot="helpText">帮助文本</span>
555
+ <span slot="optionalLabel">(可选)</span>
555
556
  </auro-input>
557
+ <auro-header level="4">Inherited de-DE date-locale Example</auro-header>
556
558
  <auro-input type="date">
557
- <span slot="ariaLabel.clear">Clear All</span>
558
- <span slot="label">Nearest `data-locale` attribute format (`de-DE` in this case)</span>
559
- <span slot="helpText">Help Text</span>
559
+ <span slot="ariaLabel.clear">Alles löschen</span>
560
+ <span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
561
+ <span slot="helpText">Hilfetext</span>
562
+ <span slot="optionalLabel">(freiwillig)</span>
560
563
  </auro-input>
564
+ <auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
561
565
  <auro-input type="date" locale="en-US" format="yyyy.mm.dd">
562
566
  <span slot="ariaLabel.clear">Clear All</span>
563
567
  <span slot="label">en-US with yyyy.mm.dd format</span>
@@ -570,26 +574,33 @@
570
574
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/locale.html) -->
571
575
  <!-- The below code snippet is automatically added from ../apiExamples/locale.html -->
572
576
  <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
577
+ &lt;auro-header level="4"&gt;en-GB Example&lt;/auro-header&gt;
573
578
  &lt;auro-input type="date" locale="en-GB"&gt;
574
579
  &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
575
580
  &lt;span slot="label"&gt;en-GB Date&lt;/span&gt;
576
581
  &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
577
582
  &lt;/auro-input&gt;
583
+ &lt;auro-header level="4"&gt;en-US Example&lt;/auro-header&gt;
578
584
  &lt;auro-input type="date" locale="en-US"&gt;
579
585
  &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
580
586
  &lt;span slot="label"&gt;en-US Date&lt;/span&gt;
581
587
  &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
582
588
  &lt;/auro-input&gt;
589
+ &lt;auro-header level="4"&gt;zh-CN Example&lt;/auro-header&gt;
583
590
  &lt;auro-input type="date" locale="zh-CN"&gt;
584
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
585
- &lt;span slot="label"&gt;zh-CN Date&lt;/span&gt;
586
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
591
+ &lt;span slot="ariaLabel.clear"&gt;全部清除&lt;/span&gt;
592
+ &lt;span slot="label"&gt;中文日期&lt;/span&gt;
593
+ &lt;span slot="helpText"&gt;帮助文本&lt;/span&gt;
594
+ &lt;span slot="optionalLabel"&gt;(可选)&lt;/span&gt;
587
595
  &lt;/auro-input&gt;
596
+ &lt;auro-header level="4"&gt;Inherited de-DE date-locale Example&lt;/auro-header&gt;
588
597
  &lt;auro-input type="date"&gt;
589
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
590
- &lt;span slot="label"&gt;Nearest `data-locale` attribute format (`de-DE` in this case)&lt;/span&gt;
591
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
598
+ &lt;span slot="ariaLabel.clear"&gt;Alles löschen&lt;/span&gt;
599
+ &lt;span slot="label"&gt;Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)&lt;/span&gt;
600
+ &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
601
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
592
602
  &lt;/auro-input&gt;
603
+ &lt;auro-header level="4"&gt;en-US with `yyyy.mm.dd` format Example&lt;/auro-header&gt;
593
604
  &lt;auro-input type="date" locale="en-US" format="yyyy.mm.dd"&gt;
594
605
  &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
595
606
  &lt;span slot="label"&gt;en-US with yyyy.mm.dd format&lt;/span&gt;
@@ -1438,96 +1449,6 @@
1438
1449
  <!-- AURO-GENERATED-CONTENT:END -->
1439
1450
  </auro-accordion>
1440
1451
  </section>
1441
- <section>
1442
- <auro-header level="2" id="auroInputUtil">AuroInputUtil</auro-header>
1443
- <p>When <code>type="date"</code> is used, the <code>.value</code> property always stores and returns the date in ISO format (<code>YYYY-MM-DD</code>) regardless of the displayed locale or <code>format</code> attribute. Use the <code>AuroInputUtil</code> helper to convert between ISO and any display format in your application code.</p>
1444
- <auro-header level="3" id="auroInputUtilFormatIso">formatISODate — ISO to display format</auro-header>
1445
- <p>Use <code>AuroInputUtil.formatISODate(isoStr, format)</code> to convert the ISO value read from the input into any display string. The format argument uses the same tokens as the <code>format</code> attribute (<code>mm</code>, <code>dd</code>, <code>yyyy</code>, <code>yy</code>).</p>
1446
- <p>Returns <code>undefined</code> when either argument is empty or the ISO string is not a valid date.</p>
1447
- <div class="exampleWrapper">
1448
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format-iso-value.html) -->
1449
- <!-- The below content is automatically added from ../apiExamples/format-iso-value.html -->
1450
- <auro-input id="formatIsoExample" type="date" locale="en-US" value="2024-01-15">
1451
- <span slot="label">Date</span>
1452
- <span slot="helpText">The <code>.value</code> property always stores the date as ISO (YYYY-MM-DD)</span>
1453
- </auro-input>
1454
- <br />
1455
- <table>
1456
- <thead>
1457
- <tr><th>Property / Method</th><th>Result</th></tr>
1458
- </thead>
1459
- <tbody>
1460
- <tr><td><code>.value</code> (ISO)</td><td><code id="isoVal">2024-01-15</code></td></tr>
1461
- <tr><td><code>formatISODate(value, 'mm/dd/yyyy')</code></td><td><code id="fmtUs">01/15/2024</code></td></tr>
1462
- <tr><td><code>formatISODate(value, 'dd/mm/yyyy')</code></td><td><code id="fmtGb">15/01/2024</code></td></tr>
1463
- <tr><td><code>formatISODate(value, 'yyyy/mm/dd')</code></td><td><code id="fmtIso">2024/01/15</code></td></tr>
1464
- </tbody>
1465
- </table>
1466
- <!-- AURO-GENERATED-CONTENT:END -->
1467
- </div>
1468
- <auro-accordion alignRight>
1469
- <span slot="trigger">See code</span>
1470
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/format-iso-value.html) -->
1471
- <!-- The below code snippet is automatically added from ../apiExamples/format-iso-value.html -->
1472
- <pre class="language-html"><code class="language-html">&lt;auro-input id="formatIsoExample" type="date" locale="en-US" value="2024-01-15"&gt;
1473
- &lt;span slot="label"&gt;Date&lt;/span&gt;
1474
- &lt;span slot="helpText"&gt;The &lt;code&gt;.value&lt;/code&gt; property always stores the date as ISO (YYYY-MM-DD)&lt;/span&gt;
1475
- &lt;/auro-input&gt;
1476
- &lt;br /&gt;
1477
- &lt;table&gt;
1478
- &lt;thead&gt;
1479
- &lt;tr&gt;&lt;th&gt;Property / Method&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;
1480
- &lt;/thead&gt;
1481
- &lt;tbody&gt;
1482
- &lt;tr&gt;&lt;td&gt;&lt;code&gt;.value&lt;/code&gt; (ISO)&lt;/td&gt;&lt;td&gt;&lt;code id="isoVal"&gt;2024-01-15&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
1483
- &lt;tr&gt;&lt;td&gt;&lt;code&gt;formatISODate(value, 'mm/dd/yyyy')&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code id="fmtUs"&gt;01/15/2024&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
1484
- &lt;tr&gt;&lt;td&gt;&lt;code&gt;formatISODate(value, 'dd/mm/yyyy')&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code id="fmtGb"&gt;15/01/2024&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
1485
- &lt;tr&gt;&lt;td&gt;&lt;code&gt;formatISODate(value, 'yyyy/mm/dd')&lt;/code&gt;&lt;/td&gt;&lt;td&gt;&lt;code id="fmtIso"&gt;2024/01/15&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
1486
- &lt;/tbody&gt;
1487
- &lt;/table&gt;</code></pre>
1488
- <!-- AURO-GENERATED-CONTENT:END -->
1489
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/auro-input-util-format-iso.js) -->
1490
- <!-- The below code snippet is automatically added from ../apiExamples/auro-input-util-format-iso.js -->
1491
- <pre class="language-js"><code class="language-js">import { AuroInputUtil } from '@aurodesignsystem/auro-formkit/input';
1492
-
1493
- const input = document.querySelector('auro-input');
1494
-
1495
- // .value is always ISO, regardless of locale or format attribute
1496
- const iso = input.value; // e.g. '2024-01-15'
1497
-
1498
- // Date string that's converted to user's locale and format.
1499
- AuroInputUtil.formatISODate(iso, input.format);
1500
-
1501
- // Examples with explicit format:
1502
- AuroInputUtil.formatISODate(iso, 'mm/dd/yyyy'); // → '01/15/2024'
1503
- AuroInputUtil.formatISODate(iso, 'dd/mm/yyyy'); // → '15/01/2024'
1504
- AuroInputUtil.formatISODate(iso, 'yyyy/mm/dd'); // → '2024/01/15'
1505
- AuroInputUtil.formatISODate(iso, 'dd.mm.yyyy'); // → '15.01.2024'
1506
-
1507
- // Returns undefined for empty or invalid input
1508
- AuroInputUtil.formatISODate(undefined, 'mm/dd/yyyy'); // → undefined
1509
- AuroInputUtil.formatISODate('not-a-date', 'mm/dd/yyyy'); // → undefined</code></pre>
1510
- <!-- AURO-GENERATED-CONTENT:END -->
1511
- </auro-accordion>
1512
- </section>
1513
- <section>
1514
- <auro-header level="3" id="auroInputUtilToIso">toISOFormatString — Date instance to ISO</auro-header>
1515
- <p>Use <code>AuroInputUtil.toISOFormatString(date)</code> to convert a JavaScript <code>Date</code> instance into an ISO string suitable for setting <code>input.value</code>.</p>
1516
- <p>Throws when the argument is not a valid <code>Date</code> instance.</p>
1517
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/auro-input-util-to-iso.js) -->
1518
- <!-- The below code snippet is automatically added from ../apiExamples/auro-input-util-to-iso.js -->
1519
- <pre class="language-js"><code class="language-js">import { AuroInputUtil } from '@aurodesignsystem/auro-formkit/input';
1520
-
1521
- const input = document.querySelector('auro-input');
1522
-
1523
- // Convert a Date to ISO, then set it on the input
1524
- const today = new Date();
1525
- input.value = AuroInputUtil.toISOFormatString(today); // e.g. '2024-01-15'
1526
-
1527
- // Convert a specific date
1528
- AuroInputUtil.toISOFormatString(new Date(2024, 0, 15)); // → '2024-01-15'</code></pre>
1529
- <!-- AURO-GENERATED-CONTENT:END -->
1530
- </section>
1531
1452
  </div>
1532
1453
  </div>
1533
1454
  </div>