@aurodesignsystem-dev/auro-formkit 0.0.0-pr1346.0 → 0.0.0-pr1347.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 (56) hide show
  1. package/components/checkbox/demo/api.min.js +6 -4
  2. package/components/checkbox/demo/index.min.js +6 -4
  3. package/components/checkbox/dist/index.js +6 -4
  4. package/components/checkbox/dist/registered.js +6 -4
  5. package/components/combobox/demo/api.min.js +56 -410
  6. package/components/combobox/demo/index.min.js +56 -410
  7. package/components/combobox/dist/auro-combobox.d.ts +0 -27
  8. package/components/combobox/dist/index.js +54 -398
  9. package/components/combobox/dist/registered.js +54 -398
  10. package/components/counter/demo/api.min.js +33 -155
  11. package/components/counter/demo/index.min.js +33 -155
  12. package/components/counter/dist/buttonVersion.d.ts +1 -1
  13. package/components/counter/dist/iconVersion.d.ts +1 -1
  14. package/components/counter/dist/index.js +33 -155
  15. package/components/counter/dist/registered.js +33 -155
  16. package/components/datepicker/demo/api.min.js +38 -190
  17. package/components/datepicker/demo/index.min.js +38 -190
  18. package/components/datepicker/dist/index.js +38 -190
  19. package/components/datepicker/dist/registered.js +38 -190
  20. package/components/dropdown/demo/api.md +5 -5
  21. package/components/dropdown/demo/api.min.js +26 -150
  22. package/components/dropdown/demo/index.min.js +26 -150
  23. package/components/dropdown/dist/auro-dropdown.d.ts +1 -19
  24. package/components/dropdown/dist/auro-dropdownBib.d.ts +0 -19
  25. package/components/dropdown/dist/index.js +26 -150
  26. package/components/dropdown/dist/registered.js +26 -150
  27. package/components/form/demo/api.min.js +38 -16
  28. package/components/form/demo/index.html +0 -1
  29. package/components/form/demo/index.js +1 -0
  30. package/components/form/demo/index.min.js +66641 -27
  31. package/components/form/demo/working.html +82 -6
  32. package/components/form/dist/auro-form.d.ts +8 -1
  33. package/components/form/dist/index.js +38 -16
  34. package/components/form/dist/registered.js +38 -16
  35. package/components/input/demo/api.md +0 -1
  36. package/components/input/demo/api.min.js +6 -36
  37. package/components/input/demo/index.min.js +6 -36
  38. package/components/input/dist/base-input.d.ts +0 -17
  39. package/components/input/dist/index.js +6 -36
  40. package/components/input/dist/registered.js +6 -36
  41. package/components/menu/demo/api.min.js +2 -12
  42. package/components/menu/demo/index.min.js +2 -12
  43. package/components/menu/dist/iconVersion.d.ts +1 -1
  44. package/components/menu/dist/index.js +2 -12
  45. package/components/menu/dist/registered.js +2 -12
  46. package/components/radio/demo/api.min.js +6 -4
  47. package/components/radio/demo/index.min.js +6 -4
  48. package/components/radio/dist/index.js +6 -4
  49. package/components/radio/dist/registered.js +6 -4
  50. package/components/select/demo/api.min.js +96 -350
  51. package/components/select/demo/index.min.js +96 -350
  52. package/components/select/dist/auro-select.d.ts +0 -15
  53. package/components/select/dist/index.js +94 -338
  54. package/components/select/dist/registered.js +94 -338
  55. package/custom-elements.json +21 -227
  56. package/package.json +5 -5
@@ -1249,7 +1249,9 @@ class AuroFormValidation {
1249
1249
  if (elem.hasAttribute('error')) {
1250
1250
  elem.validity = 'customError';
1251
1251
  elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1252
- validationShouldRun = false;
1252
+ if (!force) {
1253
+ validationShouldRun = false;
1254
+ }
1253
1255
  } else if (validationShouldRun) {
1254
1256
  elem.validity = 'valid';
1255
1257
  elem.errorMessage = '';
@@ -1300,7 +1302,7 @@ class AuroFormValidation {
1300
1302
  }
1301
1303
  }
1302
1304
 
1303
- if (!hasValue && elem.required && elem.touched) {
1305
+ if (!hasValue && elem.required && (force || elem.touched)) {
1304
1306
  elem.validity = 'valueMissing';
1305
1307
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1306
1308
  } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
@@ -1324,7 +1326,7 @@ class AuroFormValidation {
1324
1326
  if (!isCombobox || isCombobox && !elem.persistInput) {
1325
1327
 
1326
1328
  // run validation on all inputs since we're going to use them to set the validity of this component
1327
- this.auroInputElements.forEach(input => input.validate());
1329
+ this.auroInputElements.forEach(input => input.validate(force));
1328
1330
 
1329
1331
  // Reset element validity to the validity of the input
1330
1332
  elem.validity = this.auroInputElements[0].validity;
@@ -1687,7 +1689,7 @@ class AuroHelpText extends i$2 {
1687
1689
  }
1688
1690
  }
1689
1691
 
1690
- var formkitVersion = '202602182132';
1692
+ var formkitVersion = '202602192132';
1691
1693
 
1692
1694
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1693
1695
  // See LICENSE in the project root for license information.
@@ -1241,7 +1241,9 @@ class AuroFormValidation {
1241
1241
  if (elem.hasAttribute('error')) {
1242
1242
  elem.validity = 'customError';
1243
1243
  elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1244
- validationShouldRun = false;
1244
+ if (!force) {
1245
+ validationShouldRun = false;
1246
+ }
1245
1247
  } else if (validationShouldRun) {
1246
1248
  elem.validity = 'valid';
1247
1249
  elem.errorMessage = '';
@@ -1292,7 +1294,7 @@ class AuroFormValidation {
1292
1294
  }
1293
1295
  }
1294
1296
 
1295
- if (!hasValue && elem.required && elem.touched) {
1297
+ if (!hasValue && elem.required && (force || elem.touched)) {
1296
1298
  elem.validity = 'valueMissing';
1297
1299
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1298
1300
  } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
@@ -1316,7 +1318,7 @@ class AuroFormValidation {
1316
1318
  if (!isCombobox || isCombobox && !elem.persistInput) {
1317
1319
 
1318
1320
  // run validation on all inputs since we're going to use them to set the validity of this component
1319
- this.auroInputElements.forEach(input => input.validate());
1321
+ this.auroInputElements.forEach(input => input.validate(force));
1320
1322
 
1321
1323
  // Reset element validity to the validity of the input
1322
1324
  elem.validity = this.auroInputElements[0].validity;
@@ -1679,7 +1681,7 @@ class AuroHelpText extends i$2 {
1679
1681
  }
1680
1682
  }
1681
1683
 
1682
- var formkitVersion = '202602182132';
1684
+ var formkitVersion = '202602192132';
1683
1685
 
1684
1686
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1685
1687
  // See LICENSE in the project root for license information.
@@ -1194,7 +1194,9 @@ class AuroFormValidation {
1194
1194
  if (elem.hasAttribute('error')) {
1195
1195
  elem.validity = 'customError';
1196
1196
  elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1197
- validationShouldRun = false;
1197
+ if (!force) {
1198
+ validationShouldRun = false;
1199
+ }
1198
1200
  } else if (validationShouldRun) {
1199
1201
  elem.validity = 'valid';
1200
1202
  elem.errorMessage = '';
@@ -1245,7 +1247,7 @@ class AuroFormValidation {
1245
1247
  }
1246
1248
  }
1247
1249
 
1248
- if (!hasValue && elem.required && elem.touched) {
1250
+ if (!hasValue && elem.required && (force || elem.touched)) {
1249
1251
  elem.validity = 'valueMissing';
1250
1252
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1251
1253
  } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
@@ -1269,7 +1271,7 @@ class AuroFormValidation {
1269
1271
  if (!isCombobox || isCombobox && !elem.persistInput) {
1270
1272
 
1271
1273
  // run validation on all inputs since we're going to use them to set the validity of this component
1272
- this.auroInputElements.forEach(input => input.validate());
1274
+ this.auroInputElements.forEach(input => input.validate(force));
1273
1275
 
1274
1276
  // Reset element validity to the validity of the input
1275
1277
  elem.validity = this.auroInputElements[0].validity;
@@ -1632,7 +1634,7 @@ class AuroHelpText extends LitElement {
1632
1634
  }
1633
1635
  }
1634
1636
 
1635
- var formkitVersion = '202602182132';
1637
+ var formkitVersion = '202602192132';
1636
1638
 
1637
1639
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1638
1640
  // See LICENSE in the project root for license information.
@@ -1194,7 +1194,9 @@ class AuroFormValidation {
1194
1194
  if (elem.hasAttribute('error')) {
1195
1195
  elem.validity = 'customError';
1196
1196
  elem.errorMessage = elem.setCustomValidityCustomError || elem.error || elem.setCustomValidity || '';
1197
- validationShouldRun = false;
1197
+ if (!force) {
1198
+ validationShouldRun = false;
1199
+ }
1198
1200
  } else if (validationShouldRun) {
1199
1201
  elem.validity = 'valid';
1200
1202
  elem.errorMessage = '';
@@ -1245,7 +1247,7 @@ class AuroFormValidation {
1245
1247
  }
1246
1248
  }
1247
1249
 
1248
- if (!hasValue && elem.required && elem.touched) {
1250
+ if (!hasValue && elem.required && (force || elem.touched)) {
1249
1251
  elem.validity = 'valueMissing';
1250
1252
  elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
1251
1253
  } else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
@@ -1269,7 +1271,7 @@ class AuroFormValidation {
1269
1271
  if (!isCombobox || isCombobox && !elem.persistInput) {
1270
1272
 
1271
1273
  // run validation on all inputs since we're going to use them to set the validity of this component
1272
- this.auroInputElements.forEach(input => input.validate());
1274
+ this.auroInputElements.forEach(input => input.validate(force));
1273
1275
 
1274
1276
  // Reset element validity to the validity of the input
1275
1277
  elem.validity = this.auroInputElements[0].validity;
@@ -1632,7 +1634,7 @@ class AuroHelpText extends LitElement {
1632
1634
  }
1633
1635
  }
1634
1636
 
1635
- var formkitVersion = '202602182132';
1637
+ var formkitVersion = '202602192132';
1636
1638
 
1637
1639
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1638
1640
  // See LICENSE in the project root for license information.