@aurodesignsystem-dev/auro-formkit 0.0.0-pr1516.0 → 0.0.0-pr1519.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.
Files changed (54) hide show
  1. package/components/checkbox/demo/customize.min.js +18 -10
  2. package/components/checkbox/demo/getting-started.min.js +18 -10
  3. package/components/checkbox/demo/index.min.js +18 -10
  4. package/components/checkbox/dist/index.js +18 -10
  5. package/components/checkbox/dist/registered.js +18 -10
  6. package/components/combobox/README.md +1 -1
  7. package/components/combobox/demo/customize.md +2 -10
  8. package/components/combobox/demo/customize.min.js +454 -467
  9. package/components/combobox/demo/getting-started.min.js +454 -463
  10. package/components/combobox/demo/index.md +1 -1
  11. package/components/combobox/demo/index.min.js +454 -463
  12. package/components/combobox/demo/keyboard-behavior.md +2 -142
  13. package/components/combobox/demo/readme.md +1 -1
  14. package/components/combobox/demo/why-combobox.md +2 -2
  15. package/components/combobox/dist/auro-combobox.d.ts +30 -14
  16. package/components/combobox/dist/index.js +454 -463
  17. package/components/combobox/dist/registered.js +454 -463
  18. package/components/counter/demo/customize.min.js +32 -12
  19. package/components/counter/demo/index.min.js +32 -12
  20. package/components/counter/dist/index.js +32 -12
  21. package/components/counter/dist/registered.js +32 -12
  22. package/components/datepicker/demo/customize.min.js +183 -167
  23. package/components/datepicker/demo/index.min.js +183 -167
  24. package/components/datepicker/dist/index.js +183 -167
  25. package/components/datepicker/dist/registered.js +183 -167
  26. package/components/dropdown/demo/customize.min.js +14 -2
  27. package/components/dropdown/demo/getting-started.min.js +14 -2
  28. package/components/dropdown/demo/index.min.js +14 -2
  29. package/components/dropdown/dist/index.js +14 -2
  30. package/components/dropdown/dist/registered.js +14 -2
  31. package/components/form/demo/customize.min.js +851 -829
  32. package/components/form/demo/getting-started.min.js +851 -829
  33. package/components/form/demo/index.min.js +851 -829
  34. package/components/form/demo/registerDemoDeps.min.js +851 -829
  35. package/components/input/demo/api.md +58 -57
  36. package/components/input/demo/customize.min.js +114 -155
  37. package/components/input/demo/getting-started.min.js +114 -155
  38. package/components/input/demo/index.min.js +114 -155
  39. package/components/input/dist/base-input.d.ts +9 -51
  40. package/components/input/dist/index.js +114 -155
  41. package/components/input/dist/registered.js +114 -155
  42. package/components/input/dist/utilities.d.ts +9 -0
  43. package/components/radio/demo/customize.min.js +18 -10
  44. package/components/radio/demo/getting-started.min.js +18 -10
  45. package/components/radio/demo/index.min.js +18 -10
  46. package/components/radio/dist/index.js +18 -10
  47. package/components/radio/dist/registered.js +18 -10
  48. package/components/select/demo/customize.min.js +32 -12
  49. package/components/select/demo/getting-started.min.js +32 -12
  50. package/components/select/demo/index.min.js +32 -12
  51. package/components/select/dist/index.js +32 -12
  52. package/components/select/dist/registered.js +32 -12
  53. package/custom-elements.json +142 -278
  54. package/package.json +1 -1
@@ -759,11 +759,17 @@ class AuroFormValidation {
759
759
  return;
760
760
  }
761
761
 
762
- // Validate that the date passed was the correct format and is a valid date
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.
763
764
  if (elem.value && !elem.valueObject) {
764
- elem.validity = 'patternMismatch';
765
- elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
766
- return;
765
+ const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
766
+ const isValidPartial = isPartialDateFormat && elem.util.isValidPartialDate(elem.value, elem.format);
767
+
768
+ if (!isValidPartial) {
769
+ elem.validity = 'patternMismatch';
770
+ elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
771
+ return;
772
+ }
767
773
  }
768
774
 
769
775
  // Perform the rest of the validation
@@ -857,15 +863,17 @@ class AuroFormValidation {
857
863
  );
858
864
  }
859
865
 
860
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
861
- if (this.auroInputElements?.length === 2) {
862
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
866
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
867
+
868
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false.
869
+ // Skip for combobox: its second auro-input is the fullscreen-bib mirror of the same value, not an independent
870
+ // field (datepicker is the intended consumer — start/end are independently required).
871
+ if (this.auroInputElements?.length === 2 && !isCombobox) {
872
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].value.length === 0) {
863
873
  hasValue = false;
864
874
  }
865
875
  }
866
876
 
867
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
868
-
869
877
  if (isCombobox) {
870
878
 
871
879
  if (!elem.persistInput || elem.behavior === "filter") {
@@ -1260,7 +1268,7 @@ class AuroHelpText extends i$2 {
1260
1268
  }
1261
1269
  }
1262
1270
 
1263
- var formkitVersion = '202606292156';
1271
+ var formkitVersion = '202607011722';
1264
1272
 
1265
1273
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1266
1274
  // See LICENSE in the project root for license information.
@@ -759,11 +759,17 @@ class AuroFormValidation {
759
759
  return;
760
760
  }
761
761
 
762
- // Validate that the date passed was the correct format and is a valid date
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.
763
764
  if (elem.value && !elem.valueObject) {
764
- elem.validity = 'patternMismatch';
765
- elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
766
- return;
765
+ const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
766
+ const isValidPartial = isPartialDateFormat && elem.util.isValidPartialDate(elem.value, elem.format);
767
+
768
+ if (!isValidPartial) {
769
+ elem.validity = 'patternMismatch';
770
+ elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
771
+ return;
772
+ }
767
773
  }
768
774
 
769
775
  // Perform the rest of the validation
@@ -857,15 +863,17 @@ class AuroFormValidation {
857
863
  );
858
864
  }
859
865
 
860
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
861
- if (this.auroInputElements?.length === 2) {
862
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
866
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
867
+
868
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false.
869
+ // Skip for combobox: its second auro-input is the fullscreen-bib mirror of the same value, not an independent
870
+ // field (datepicker is the intended consumer — start/end are independently required).
871
+ if (this.auroInputElements?.length === 2 && !isCombobox) {
872
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].value.length === 0) {
863
873
  hasValue = false;
864
874
  }
865
875
  }
866
876
 
867
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
868
-
869
877
  if (isCombobox) {
870
878
 
871
879
  if (!elem.persistInput || elem.behavior === "filter") {
@@ -1260,7 +1268,7 @@ class AuroHelpText extends i$2 {
1260
1268
  }
1261
1269
  }
1262
1270
 
1263
- var formkitVersion = '202606292156';
1271
+ var formkitVersion = '202607011722';
1264
1272
 
1265
1273
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1266
1274
  // See LICENSE in the project root for license information.
@@ -759,11 +759,17 @@ class AuroFormValidation {
759
759
  return;
760
760
  }
761
761
 
762
- // Validate that the date passed was the correct format and is a valid date
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.
763
764
  if (elem.value && !elem.valueObject) {
764
- elem.validity = 'patternMismatch';
765
- elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
766
- return;
765
+ const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
766
+ const isValidPartial = isPartialDateFormat && elem.util.isValidPartialDate(elem.value, elem.format);
767
+
768
+ if (!isValidPartial) {
769
+ elem.validity = 'patternMismatch';
770
+ elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
771
+ return;
772
+ }
767
773
  }
768
774
 
769
775
  // Perform the rest of the validation
@@ -857,15 +863,17 @@ class AuroFormValidation {
857
863
  );
858
864
  }
859
865
 
860
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
861
- if (this.auroInputElements?.length === 2) {
862
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
866
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
867
+
868
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false.
869
+ // Skip for combobox: its second auro-input is the fullscreen-bib mirror of the same value, not an independent
870
+ // field (datepicker is the intended consumer — start/end are independently required).
871
+ if (this.auroInputElements?.length === 2 && !isCombobox) {
872
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].value.length === 0) {
863
873
  hasValue = false;
864
874
  }
865
875
  }
866
876
 
867
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
868
-
869
877
  if (isCombobox) {
870
878
 
871
879
  if (!elem.persistInput || elem.behavior === "filter") {
@@ -1260,7 +1268,7 @@ class AuroHelpText extends i$2 {
1260
1268
  }
1261
1269
  }
1262
1270
 
1263
- var formkitVersion = '202606292156';
1271
+ var formkitVersion = '202607011722';
1264
1272
 
1265
1273
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1266
1274
  // See LICENSE in the project root for license information.
@@ -712,11 +712,17 @@ class AuroFormValidation {
712
712
  return;
713
713
  }
714
714
 
715
- // Validate that the date passed was the correct format and is a valid date
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.
716
717
  if (elem.value && !elem.valueObject) {
717
- elem.validity = 'patternMismatch';
718
- elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
719
- return;
718
+ const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
719
+ const isValidPartial = isPartialDateFormat && elem.util.isValidPartialDate(elem.value, elem.format);
720
+
721
+ if (!isValidPartial) {
722
+ elem.validity = 'patternMismatch';
723
+ elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
724
+ return;
725
+ }
720
726
  }
721
727
 
722
728
  // Perform the rest of the validation
@@ -810,15 +816,17 @@ class AuroFormValidation {
810
816
  );
811
817
  }
812
818
 
813
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
814
- if (this.auroInputElements?.length === 2) {
815
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
819
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
820
+
821
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false.
822
+ // Skip for combobox: its second auro-input is the fullscreen-bib mirror of the same value, not an independent
823
+ // field (datepicker is the intended consumer — start/end are independently required).
824
+ if (this.auroInputElements?.length === 2 && !isCombobox) {
825
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].value.length === 0) {
816
826
  hasValue = false;
817
827
  }
818
828
  }
819
829
 
820
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
821
-
822
830
  if (isCombobox) {
823
831
 
824
832
  if (!elem.persistInput || elem.behavior === "filter") {
@@ -1213,7 +1221,7 @@ class AuroHelpText extends LitElement {
1213
1221
  }
1214
1222
  }
1215
1223
 
1216
- var formkitVersion = '202606292156';
1224
+ var formkitVersion = '202607011722';
1217
1225
 
1218
1226
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1219
1227
  // See LICENSE in the project root for license information.
@@ -712,11 +712,17 @@ class AuroFormValidation {
712
712
  return;
713
713
  }
714
714
 
715
- // Validate that the date passed was the correct format and is a valid date
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.
716
717
  if (elem.value && !elem.valueObject) {
717
- elem.validity = 'patternMismatch';
718
- elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
719
- return;
718
+ const isPartialDateFormat = elem.util && !elem.util.isFullDateFormat(elem.type, elem.format);
719
+ const isValidPartial = isPartialDateFormat && elem.util.isValidPartialDate(elem.value, elem.format);
720
+
721
+ if (!isValidPartial) {
722
+ elem.validity = 'patternMismatch';
723
+ elem.errorMessage = elem.setCustomValidityPatternMismatch || elem.setCustomValidity || 'Invalid Date Format Entered';
724
+ return;
725
+ }
720
726
  }
721
727
 
722
728
  // Perform the rest of the validation
@@ -810,15 +816,17 @@ class AuroFormValidation {
810
816
  );
811
817
  }
812
818
 
813
- // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false;
814
- if (this.auroInputElements?.length === 2) {
815
- if (!this.auroInputElements[1].value || this.auroInputElements[1].length === 0) {
819
+ const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
820
+
821
+ // If there is a second input in the elem and that value is undefined or an empty string set hasValue to false.
822
+ // Skip for combobox: its second auro-input is the fullscreen-bib mirror of the same value, not an independent
823
+ // field (datepicker is the intended consumer — start/end are independently required).
824
+ if (this.auroInputElements?.length === 2 && !isCombobox) {
825
+ if (!this.auroInputElements[1].value || this.auroInputElements[1].value.length === 0) {
816
826
  hasValue = false;
817
827
  }
818
828
  }
819
829
 
820
- const isCombobox = this.runtimeUtils.elementMatch(elem, 'auro-combobox');
821
-
822
830
  if (isCombobox) {
823
831
 
824
832
  if (!elem.persistInput || elem.behavior === "filter") {
@@ -1213,7 +1221,7 @@ class AuroHelpText extends LitElement {
1213
1221
  }
1214
1222
  }
1215
1223
 
1216
- var formkitVersion = '202606292156';
1224
+ var formkitVersion = '202607011722';
1217
1225
 
1218
1226
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1219
1227
  // See LICENSE in the project root for license information.
@@ -24,7 +24,7 @@ The following sections are editable by making changes to the following files:
24
24
  <p>The component supports two modes:</p>
25
25
  <ul>
26
26
  <li><strong>Suggestion (default)</strong> — The user may type any value. The menu provides suggestions but does not restrict input.</li>
27
- <li><strong>Filter</strong> — The user must select from the menu. Typing filters the available options but does not set the component's value. The value is only set when a menu option is selected.</li>
27
+ <li><strong>Filter</strong> — Typing filters the available options and sets the component's <code>value</code> to the typed text, but the input is not considered valid until a menu option is selected. Validation surfaces <code>valueMissing</code> until the typed value matches a chosen option.</li>
28
28
  </ul>
29
29
  <p>Common use cases:</p>
30
30
  <ul>
@@ -679,7 +679,7 @@
679
679
  <auro-menu>
680
680
  <auro-menuoption value="4500000000000000" id="option-cc-0">
681
681
  <auro-icon category="payment" customcolor name="cc-visa"></auro-icon>
682
- 4000 0000 0000 0000
682
+ 4500 0000 0000 0000
683
683
  </auro-menuoption>
684
684
  <auro-menuoption value="340000000000000" id="option-cc-1">
685
685
  <auro-icon category="payment" customcolor name="cc-amex"></auro-icon>
@@ -712,7 +712,7 @@
712
712
  &lt;auro-menu&gt;
713
713
  &lt;auro-menuoption value="4500000000000000" id="option-cc-0"&gt;
714
714
  &lt;auro-icon category="payment" customcolor name="cc-visa"&gt;&lt;/auro-icon&gt;
715
- 4000 0000 0000 0000
715
+ 4500 0000 0000 0000
716
716
  &lt;/auro-menuoption&gt;
717
717
  &lt;auro-menuoption value="340000000000000" id="option-cc-1"&gt;
718
718
  &lt;auro-icon category="payment" customcolor name="cc-amex"&gt;&lt;/auro-icon&gt;
@@ -1137,8 +1137,6 @@
1137
1137
  id="dynamicMenuExample"
1138
1138
  value="TAN"
1139
1139
  noFilter
1140
- persistInput
1141
- dvInputOnly
1142
1140
  setCustomValidityValueMissing="Please select an option from the list."
1143
1141
  required>
1144
1142
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
@@ -1154,8 +1152,6 @@
1154
1152
  id="dynamicMenuExampleTwo"
1155
1153
  value="GER"
1156
1154
  noFilter
1157
- persistInput
1158
- dvInputOnly
1159
1155
  setCustomValidityValueMissing="Please select an option from the list."
1160
1156
  required>
1161
1157
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
@@ -1185,8 +1181,6 @@
1185
1181
  id="dynamicMenuExample"
1186
1182
  value="TAN"
1187
1183
  noFilter
1188
- persistInput
1189
- dvInputOnly
1190
1184
  setCustomValidityValueMissing="Please select an option from the list."
1191
1185
  required&gt;
1192
1186
  &lt;span slot="bib.fullscreen.headline"&gt;Dynamic Combobox Header&lt;/span&gt;
@@ -1202,8 +1196,6 @@
1202
1196
  id="dynamicMenuExampleTwo"
1203
1197
  value="GER"
1204
1198
  noFilter
1205
- persistInput
1206
- dvInputOnly
1207
1199
  setCustomValidityValueMissing="Please select an option from the list."
1208
1200
  required&gt;
1209
1201
  &lt;span slot="bib.fullscreen.headline"&gt;Dynamic Combobox Header&lt;/span&gt;