@aurodesignsystem/auro-formkit 2.0.0-beta.20 → 2.0.0-beta.22

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 (205) hide show
  1. package/.turbo/cache/05eabe821b57523d-meta.json +1 -0
  2. package/.turbo/cache/05eabe821b57523d.tar.zst +0 -0
  3. package/.turbo/cache/09d2311fd6562076-meta.json +1 -0
  4. package/.turbo/cache/0ada3342350716d5-meta.json +1 -0
  5. package/.turbo/cache/1d08dfa3fdaee182-meta.json +1 -0
  6. package/.turbo/cache/1d08dfa3fdaee182.tar.zst +0 -0
  7. package/.turbo/cache/223d1e0787a23385-meta.json +1 -0
  8. package/.turbo/cache/223d1e0787a23385.tar.zst +0 -0
  9. package/.turbo/cache/226476fa9e61cc81-meta.json +1 -0
  10. package/.turbo/cache/226476fa9e61cc81.tar.zst +0 -0
  11. package/.turbo/cache/26b534ba7ee176e5-meta.json +1 -0
  12. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  13. package/.turbo/cache/2d21d0e971f28291-meta.json +1 -0
  14. package/.turbo/cache/2d21d0e971f28291.tar.zst +0 -0
  15. package/.turbo/cache/3a60640aa3aedd8a-meta.json +1 -0
  16. package/.turbo/cache/3a60640aa3aedd8a.tar.zst +0 -0
  17. package/.turbo/cache/45cd32cd38eacbcb-meta.json +1 -1
  18. package/.turbo/cache/45fbe2fe40c2302a-meta.json +1 -0
  19. package/.turbo/cache/{341f87099beb533e.tar.zst → 45fbe2fe40c2302a.tar.zst} +0 -0
  20. package/.turbo/cache/4699bc5f16a9eb63-meta.json +1 -0
  21. package/.turbo/cache/4d9d8b6a169d8272-meta.json +1 -0
  22. package/.turbo/cache/4f1f59ef262afdb7-meta.json +1 -0
  23. package/.turbo/cache/{c1312c6f8c051461.tar.zst → 4f1f59ef262afdb7.tar.zst} +0 -0
  24. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -1
  25. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  26. package/.turbo/cache/5b3e6d7fcbed91d7-meta.json +1 -0
  27. package/.turbo/cache/5b57cc0e26e1fd5d-meta.json +1 -1
  28. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  29. package/.turbo/cache/631d441eebe7e4ac-meta.json +1 -1
  30. package/.turbo/cache/6af0cfb35a4d9b50-meta.json +1 -0
  31. package/.turbo/cache/6af0cfb35a4d9b50.tar.zst +0 -0
  32. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  33. package/.turbo/cache/783a19e6c1e36dc4-meta.json +1 -0
  34. package/.turbo/cache/78418f9089673a21-meta.json +1 -1
  35. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -1
  36. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  37. package/.turbo/cache/80ebd4b1fa5c1e3a-meta.json +1 -1
  38. package/.turbo/cache/81b950588f7d83f6-meta.json +1 -0
  39. package/.turbo/cache/{cae7586c45bed13e.tar.zst → 81b950588f7d83f6.tar.zst} +0 -0
  40. package/.turbo/cache/81e86c62df3233f1-meta.json +1 -0
  41. package/.turbo/cache/81e86c62df3233f1.tar.zst +0 -0
  42. package/.turbo/cache/82400c31013ddb91-meta.json +1 -0
  43. package/.turbo/cache/8e77ba4f3c844ad4-meta.json +1 -0
  44. package/.turbo/cache/{493e064c221aa745.tar.zst → 8e77ba4f3c844ad4.tar.zst} +0 -0
  45. package/.turbo/cache/949113644726bb55-meta.json +1 -0
  46. package/.turbo/cache/9b6f6cd2350f80bc-meta.json +1 -0
  47. package/.turbo/cache/{23b3a2fea223679d.tar.zst → 9b6f6cd2350f80bc.tar.zst} +0 -0
  48. package/.turbo/cache/9d99fa3ab31d272f-meta.json +1 -1
  49. package/.turbo/cache/a779ea8b78ce9d59-meta.json +1 -1
  50. package/.turbo/cache/a9c36a3534c5496b-meta.json +1 -1
  51. package/.turbo/cache/b0a6287f373e6400-meta.json +1 -0
  52. package/.turbo/cache/b0a6287f373e6400.tar.zst +0 -0
  53. package/.turbo/cache/b289ab794336616f-meta.json +1 -0
  54. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  55. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  56. package/.turbo/cache/b6fd9dd7003776ae-meta.json +1 -0
  57. package/.turbo/cache/b6fd9dd7003776ae.tar.zst +0 -0
  58. package/.turbo/cache/b89dab696f5a8270-meta.json +1 -0
  59. package/.turbo/cache/b8a40e55bb47f55f-meta.json +1 -0
  60. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  61. package/.turbo/cache/c03a12ff38ba1e02-meta.json +1 -1
  62. package/.turbo/cache/c0ac4be01e1e8afd-meta.json +1 -0
  63. package/.turbo/cache/c0ac4be01e1e8afd.tar.zst +0 -0
  64. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  65. package/.turbo/cache/c7a029745c0280b7-meta.json +1 -0
  66. package/.turbo/cache/{56ee89ef1c48963e.tar.zst → c7a029745c0280b7.tar.zst} +0 -0
  67. package/.turbo/cache/cacc097c013aa1ff-meta.json +1 -0
  68. package/.turbo/cache/cacc097c013aa1ff.tar.zst +0 -0
  69. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  70. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  71. package/.turbo/cache/db6efe0245a870a5-meta.json +1 -0
  72. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -1
  73. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  74. package/.turbo/cache/e84d01ebc415199c-meta.json +1 -0
  75. package/.turbo/cache/{19eb9b69e5625309.tar.zst → e84d01ebc415199c.tar.zst} +0 -0
  76. package/.turbo/cache/f6808644dc687b2c-meta.json +1 -0
  77. package/.turbo/cache/fcde8f0acf4465ca-meta.json +1 -0
  78. package/.turbo/cache/fcde8f0acf4465ca.tar.zst +0 -0
  79. package/.turbo/cache/ffdabdf92e6ad537-meta.json +1 -0
  80. package/CHANGELOG.md +16 -0
  81. package/components/checkbox/.turbo/turbo-build.log +3 -3
  82. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  83. package/components/checkbox/README.md +1 -1
  84. package/components/checkbox/demo/api.md +1 -0
  85. package/components/checkbox/demo/api.min.js +8 -4
  86. package/components/checkbox/demo/index.min.js +8 -4
  87. package/components/checkbox/dist/auro-checkbox.d.ts +8 -4
  88. package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
  89. package/components/checkbox/dist/index.js +8 -4
  90. package/components/checkbox/package.json +1 -1
  91. package/components/checkbox/src/auro-checkbox.js +8 -4
  92. package/components/combobox/.turbo/turbo-build.log +3 -3
  93. package/components/combobox/README.md +6 -6
  94. package/components/combobox/demo/api.min.js +3 -6
  95. package/components/combobox/demo/index.min.js +3 -6
  96. package/components/combobox/dist/auro-combobox.d.ts +1 -1
  97. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  98. package/components/combobox/dist/index.js +3 -6
  99. package/components/combobox/package.json +3 -4
  100. package/components/combobox/src/auro-combobox.js +3 -6
  101. package/components/counter/.turbo/turbo-build.log +3 -3
  102. package/components/counter/.turbo/turbo-bundler.log +3 -6
  103. package/components/counter/README.md +1 -1
  104. package/components/datepicker/.turbo/turbo-build.log +2 -2
  105. package/components/datepicker/README.md +4 -4
  106. package/components/datepicker/demo/api.md +23 -22
  107. package/components/datepicker/demo/api.min.js +25 -3
  108. package/components/datepicker/demo/index.min.js +25 -3
  109. package/components/datepicker/dist/auro-calendar.d.ts +1 -1
  110. package/components/datepicker/dist/auro-datepicker.d.ts +5 -0
  111. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  112. package/components/datepicker/dist/index.js +25 -3
  113. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +2 -2
  114. package/components/datepicker/src/auro-calendar.js +1 -1
  115. package/components/datepicker/src/auro-datepicker.js +23 -1
  116. package/components/datepicker/src/utilitiesCalendarRender.js +2 -2
  117. package/components/dropdown/.turbo/turbo-build.log +2 -2
  118. package/components/dropdown/.turbo/turbo-bundler.log +3 -3
  119. package/components/dropdown/README.md +1 -1
  120. package/components/form/.turbo/turbo-build.log +2 -2
  121. package/components/form/.turbo/turbo-bundler.log +3 -3
  122. package/components/form/README.md +1 -1
  123. package/components/form/demo/api.min.js +23 -4
  124. package/components/form/demo/index.min.js +23 -4
  125. package/components/form/demo/working.html +9 -0
  126. package/components/form/dist/auro-form.d.ts +9 -1
  127. package/components/form/dist/auro-form.d.ts.map +1 -1
  128. package/components/form/dist/index.js +23 -4
  129. package/components/form/src/auro-form.js +23 -4
  130. package/components/input/.turbo/turbo-build.log +3 -3
  131. package/components/input/.turbo/turbo-bundler.log +2 -2
  132. package/components/input/README.md +1 -1
  133. package/components/menu/.turbo/turbo-build.log +3 -3
  134. package/components/menu/.turbo/turbo-bundler.log +3 -3
  135. package/components/menu/README.md +1 -1
  136. package/components/radio/.turbo/turbo-build.log +3 -3
  137. package/components/radio/.turbo/turbo-bundler.log +3 -3
  138. package/components/radio/README.md +1 -1
  139. package/components/select/.turbo/turbo-build.log +3 -3
  140. package/components/select/README.md +3 -3
  141. package/package.json +1 -1
  142. package/turbo.json +5 -0
  143. package/.turbo/cache/0185585abae43d38-meta.json +0 -1
  144. package/.turbo/cache/0185585abae43d38.tar.zst +0 -0
  145. package/.turbo/cache/092e1fe054c68113-meta.json +0 -1
  146. package/.turbo/cache/092e1fe054c68113.tar.zst +0 -0
  147. package/.turbo/cache/19eb9b69e5625309-meta.json +0 -1
  148. package/.turbo/cache/2059bc724ac24519-meta.json +0 -1
  149. package/.turbo/cache/2059bc724ac24519.tar.zst +0 -0
  150. package/.turbo/cache/23b3a2fea223679d-meta.json +0 -1
  151. package/.turbo/cache/2e79b1c1455468a1-meta.json +0 -1
  152. package/.turbo/cache/341f87099beb533e-meta.json +0 -1
  153. package/.turbo/cache/363aa008d976f81d-meta.json +0 -1
  154. package/.turbo/cache/363aa008d976f81d.tar.zst +0 -0
  155. package/.turbo/cache/4006a206400d5c7b-meta.json +0 -1
  156. package/.turbo/cache/43ab6002bc2cd191-meta.json +0 -1
  157. package/.turbo/cache/43ab6002bc2cd191.tar.zst +0 -0
  158. package/.turbo/cache/492dda333b8d15f1-meta.json +0 -1
  159. package/.turbo/cache/493e064c221aa745-meta.json +0 -1
  160. package/.turbo/cache/56ee89ef1c48963e-meta.json +0 -1
  161. package/.turbo/cache/61e218aba69cff58-meta.json +0 -1
  162. package/.turbo/cache/6c582e957afdd75f-meta.json +0 -1
  163. package/.turbo/cache/6c582e957afdd75f.tar.zst +0 -0
  164. package/.turbo/cache/7c9ca6163e61285c-meta.json +0 -1
  165. package/.turbo/cache/8bb856bd31b5b479-meta.json +0 -1
  166. package/.turbo/cache/8c5b86ca67d33b17-meta.json +0 -1
  167. package/.turbo/cache/8c5b86ca67d33b17.tar.zst +0 -0
  168. package/.turbo/cache/8f5fef3e04a6fcfa-meta.json +0 -1
  169. package/.turbo/cache/ac1b55ad6757fd54-meta.json +0 -1
  170. package/.turbo/cache/b1cd3922508c11c0-meta.json +0 -1
  171. package/.turbo/cache/b1cd3922508c11c0.tar.zst +0 -0
  172. package/.turbo/cache/b3c5c13bb1c28c92-meta.json +0 -1
  173. package/.turbo/cache/b3c5c13bb1c28c92.tar.zst +0 -0
  174. package/.turbo/cache/ba270a0ef147f2e5-meta.json +0 -1
  175. package/.turbo/cache/bb5213773d5d3b04-meta.json +0 -1
  176. package/.turbo/cache/bbefd8d9606f1e87-meta.json +0 -1
  177. package/.turbo/cache/c1312c6f8c051461-meta.json +0 -1
  178. package/.turbo/cache/c289a5a9a6b897a9-meta.json +0 -1
  179. package/.turbo/cache/c289a5a9a6b897a9.tar.zst +0 -0
  180. package/.turbo/cache/c376d692c092d4d1-meta.json +0 -1
  181. package/.turbo/cache/c6dbc49c3038946d-meta.json +0 -1
  182. package/.turbo/cache/cae7586c45bed13e-meta.json +0 -1
  183. package/.turbo/cache/d775555355d6b8fc-meta.json +0 -1
  184. package/.turbo/cache/db5e65d819bfe66b-meta.json +0 -1
  185. package/.turbo/cache/dbe6a08c64601aec-meta.json +0 -1
  186. package/.turbo/cache/dbe6a08c64601aec.tar.zst +0 -0
  187. package/.turbo/cache/df5f651693145406-meta.json +0 -1
  188. package/.turbo/cache/df5f651693145406.tar.zst +0 -0
  189. package/.turbo/cache/ee40cab15d5b1fad-meta.json +0 -1
  190. package/.turbo/cache/ee40cab15d5b1fad.tar.zst +0 -0
  191. /package/.turbo/cache/{ac1b55ad6757fd54.tar.zst → 09d2311fd6562076.tar.zst} +0 -0
  192. /package/.turbo/cache/{8f5fef3e04a6fcfa.tar.zst → 0ada3342350716d5.tar.zst} +0 -0
  193. /package/.turbo/cache/{61e218aba69cff58.tar.zst → 26b534ba7ee176e5.tar.zst} +0 -0
  194. /package/.turbo/cache/{2e79b1c1455468a1.tar.zst → 4699bc5f16a9eb63.tar.zst} +0 -0
  195. /package/.turbo/cache/{ba270a0ef147f2e5.tar.zst → 4d9d8b6a169d8272.tar.zst} +0 -0
  196. /package/.turbo/cache/{bbefd8d9606f1e87.tar.zst → 5b3e6d7fcbed91d7.tar.zst} +0 -0
  197. /package/.turbo/cache/{d775555355d6b8fc.tar.zst → 783a19e6c1e36dc4.tar.zst} +0 -0
  198. /package/.turbo/cache/{c6dbc49c3038946d.tar.zst → 82400c31013ddb91.tar.zst} +0 -0
  199. /package/.turbo/cache/{7c9ca6163e61285c.tar.zst → 949113644726bb55.tar.zst} +0 -0
  200. /package/.turbo/cache/{c376d692c092d4d1.tar.zst → b289ab794336616f.tar.zst} +0 -0
  201. /package/.turbo/cache/{db5e65d819bfe66b.tar.zst → b89dab696f5a8270.tar.zst} +0 -0
  202. /package/.turbo/cache/{bb5213773d5d3b04.tar.zst → b8a40e55bb47f55f.tar.zst} +0 -0
  203. /package/.turbo/cache/{8bb856bd31b5b479.tar.zst → db6efe0245a870a5.tar.zst} +0 -0
  204. /package/.turbo/cache/{492dda333b8d15f1.tar.zst → f6808644dc687b2c.tar.zst} +0 -0
  205. /package/.turbo/cache/{4006a206400d5c7b.tar.zst → ffdabdf92e6ad537.tar.zst} +0 -0
@@ -168,15 +168,26 @@ class AuroForm extends r {
168
168
  ];
169
169
  }
170
170
 
171
+ /**
172
+ * Compare tag name with element to identify it (for API purposes).
173
+ * @param {string} elementTag - The HTML tag name like `auro-datepicker`.
174
+ * @param {HTMLElement} element - The actual HTML element to compare.
175
+ * @returns {boolean}
176
+ * @private
177
+ */
178
+ _isElementTag(elementTag, element) {
179
+ return element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase());
180
+ }
181
+
171
182
  /**
172
183
  * Shared code for determining if an element is something we care about (submit, form element, etc.).
173
184
  * @param {string[]} collection - The array to use for tag name search.
174
185
  * @param {HTMLElement} element - The element to compare against the master list.
175
- * @returns boolean
186
+ * @returns {boolean}
176
187
  * @private
177
188
  */
178
189
  _isInElementCollection(collection, element) {
179
- return collection.some((elementTag) => element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase()));
190
+ return collection.some((elementTag) => this._isElementTag(elementTag, element));
180
191
  }
181
192
 
182
193
  /**
@@ -426,8 +437,16 @@ class AuroForm extends r {
426
437
  return;
427
438
  }
428
439
 
429
- this.formState[targetName].value = event.target.value;
430
- this.requestUpdate('formState');
440
+ // Check special input types and handle their edge cases
441
+ if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
+ this.formState[targetName].value = event.target.values;
443
+
444
+ this.requestUpdate('formState');
445
+ } else {
446
+ // "Normal" input value handling, just assign the value
447
+ this.formState[targetName].value = event.target.value;
448
+ this.requestUpdate('formState');
449
+ }
431
450
  });
432
451
 
433
452
  slot.addEventListener('auroFormElement-validated', (event) => {
@@ -168,15 +168,26 @@ class AuroForm extends r {
168
168
  ];
169
169
  }
170
170
 
171
+ /**
172
+ * Compare tag name with element to identify it (for API purposes).
173
+ * @param {string} elementTag - The HTML tag name like `auro-datepicker`.
174
+ * @param {HTMLElement} element - The actual HTML element to compare.
175
+ * @returns {boolean}
176
+ * @private
177
+ */
178
+ _isElementTag(elementTag, element) {
179
+ return element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase());
180
+ }
181
+
171
182
  /**
172
183
  * Shared code for determining if an element is something we care about (submit, form element, etc.).
173
184
  * @param {string[]} collection - The array to use for tag name search.
174
185
  * @param {HTMLElement} element - The element to compare against the master list.
175
- * @returns boolean
186
+ * @returns {boolean}
176
187
  * @private
177
188
  */
178
189
  _isInElementCollection(collection, element) {
179
- return collection.some((elementTag) => element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase()));
190
+ return collection.some((elementTag) => this._isElementTag(elementTag, element));
180
191
  }
181
192
 
182
193
  /**
@@ -426,8 +437,16 @@ class AuroForm extends r {
426
437
  return;
427
438
  }
428
439
 
429
- this.formState[targetName].value = event.target.value;
430
- this.requestUpdate('formState');
440
+ // Check special input types and handle their edge cases
441
+ if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
+ this.formState[targetName].value = event.target.values;
443
+
444
+ this.requestUpdate('formState');
445
+ } else {
446
+ // "Normal" input value handling, just assign the value
447
+ this.formState[targetName].value = event.target.value;
448
+ this.requestUpdate('formState');
449
+ }
431
450
  });
432
451
 
433
452
  slot.addEventListener('auroFormElement-validated', (event) => {
@@ -80,6 +80,15 @@
80
80
  </auro-datepicker>
81
81
  </div>
82
82
 
83
+ <div class="datepickerBlock">
84
+ <h4>Pick a date range</h4>
85
+ <auro-datepicker id="date-range" name="dateRange" required range>
86
+ <span slot="fromLabel">Start</span>
87
+ <span slot="toLabel">End</span>
88
+ <span slot="mobileDateLabel">Choose a range</span>
89
+ </auro-datepicker>
90
+ </div>
91
+
83
92
  <div class="submitBlock">
84
93
  <auro-button type="reset">Reset</auro-button>
85
94
  <auro-button type="submit">Submit</auro-button>
@@ -69,11 +69,19 @@ export class AuroForm extends LitElement {
69
69
  * ```
70
70
  */
71
71
  submit(): void;
72
+ /**
73
+ * Compare tag name with element to identify it (for API purposes).
74
+ * @param {string} elementTag - The HTML tag name like `auro-datepicker`.
75
+ * @param {HTMLElement} element - The actual HTML element to compare.
76
+ * @returns {boolean}
77
+ * @private
78
+ */
79
+ private _isElementTag;
72
80
  /**
73
81
  * Shared code for determining if an element is something we care about (submit, form element, etc.).
74
82
  * @param {string[]} collection - The array to use for tag name search.
75
83
  * @param {HTMLElement} element - The element to compare against the master list.
76
- * @returns boolean
84
+ * @returns {boolean}
77
85
  * @private
78
86
  */
79
87
  private _isInElementCollection;
@@ -1 +1 @@
1
- {"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAsBD,yCAKC;IAWD,+CAEC;IAoMD;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IApRC,wBAAwB;IACxB,WADW,SAAS,CACD;IAEnB,yCAAyC;IACzC,WADW,OAAO,GAAG,SAAS,GAAG,IAAI,CAChB;IACrB,yBAA2B;IAE3B,oDAAoD;IACpD,WADW,CAAC,WAAW,GAAG;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC,EAAE,CAC7B;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACL;IAEzB,kCAAkC;IAClC,gBADW,iBAAiB,EAAE,CACN;IAgN1B,cAcC;IAED;;;;;;OAMG;IACH,eAmBC;IAxOD;;;;;;OAMG;IACH,+BAEC;IAED;;;;OAIG;IACH,uBAHW,WAAW,GACT,OAAO,CAInB;IASD;;;;OAIG;IACH,yBAHW,WAAW,GACT,OAAO,CAInB;IAMD;;;;;;;;OAQG;IACH,aAFa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAOvE;IAED;;;OAGG;IACH,2BAcC;IAED;;;OAGG;IACH,gBAFa,OAAO,GAAG,SAAS,CAI/B;IAED,yBAUC;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED,kCAgBC;IAED;;;OAGG;IACH,qBAFa,QAAQ,CAsBpB;IAED;;OAEG;IACH,wBAqCC;IA0DD,4CAyBC;IAED,uCAaC;IAED,qBAEC;IAGD,+CAMC;CACF;;;;;;;;WA/Wa,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI;;;;cAC3C,aAAa;;;;cACb,OAAO;;;;aACP,WAAW;;;;;;;;2BAXQ,KAAK"}
1
+ {"version":3,"file":"auro-form.d.ts","sourceRoot":"","sources":["../src/auro-form.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;GAEG;AAIH;;;;;GAKG;AAGH;IACE;;;;;;;;;;;;;;;;;;;MASC;IA4BD,uCAOC;IAiCD,yCAKC;IAWD,+CAEC;IAoMD;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IA/RC,wBAAwB;IACxB,WADW,SAAS,CACD;IAEnB,yCAAyC;IACzC,WADW,OAAO,GAAG,SAAS,GAAG,IAAI,CAChB;IACrB,yBAA2B;IAE3B,oDAAoD;IACpD,WADW,CAAC,WAAW,GAAG;QAAC,KAAK,EAAE,MAAM,IAAI,CAAA;KAAC,CAAC,EAAE,CAC7B;IAEnB,kCAAkC;IAClC,iBADW,iBAAiB,EAAE,CACL;IAEzB,kCAAkC;IAClC,gBADW,iBAAiB,EAAE,CACN;IA2N1B,cAcC;IAED;;;;;;OAMG;IACH,eAmBC;IAnPD;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;OAMG;IACH,+BAEC;IAED;;;;OAIG;IACH,uBAHW,WAAW,GACT,OAAO,CAInB;IASD;;;;OAIG;IACH,yBAHW,WAAW,GACT,OAAO,CAInB;IAMD;;;;;;;;OAQG;IACH,aAFa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC,CAOvE;IAED;;;OAGG;IACH,2BAcC;IAED;;;OAGG;IACH,gBAFa,OAAO,GAAG,SAAS,CAI/B;IAED,yBAUC;IAED;;;OAGG;IACH,sBAFa,OAAO,CAInB;IAED,kCAgBC;IAED;;;OAGG;IACH,qBAFa,QAAQ,CAsBpB;IAED;;OAEG;IACH,wBAqCC;IA0DD,4CAiCC;IAED,uCAaC;IAED,qBAEC;IAGD,+CAMC;CACF;;;;;;;;WAlYa,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,IAAI;;;;cAC3C,aAAa;;;;cACb,OAAO;;;;aACP,WAAW;;;;;;;;2BAXQ,KAAK"}
@@ -168,15 +168,26 @@ class AuroForm extends r {
168
168
  ];
169
169
  }
170
170
 
171
+ /**
172
+ * Compare tag name with element to identify it (for API purposes).
173
+ * @param {string} elementTag - The HTML tag name like `auro-datepicker`.
174
+ * @param {HTMLElement} element - The actual HTML element to compare.
175
+ * @returns {boolean}
176
+ * @private
177
+ */
178
+ _isElementTag(elementTag, element) {
179
+ return element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase());
180
+ }
181
+
171
182
  /**
172
183
  * Shared code for determining if an element is something we care about (submit, form element, etc.).
173
184
  * @param {string[]} collection - The array to use for tag name search.
174
185
  * @param {HTMLElement} element - The element to compare against the master list.
175
- * @returns boolean
186
+ * @returns {boolean}
176
187
  * @private
177
188
  */
178
189
  _isInElementCollection(collection, element) {
179
- return collection.some((elementTag) => element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase()));
190
+ return collection.some((elementTag) => this._isElementTag(elementTag, element));
180
191
  }
181
192
 
182
193
  /**
@@ -426,8 +437,16 @@ class AuroForm extends r {
426
437
  return;
427
438
  }
428
439
 
429
- this.formState[targetName].value = event.target.value;
430
- this.requestUpdate('formState');
440
+ // Check special input types and handle their edge cases
441
+ if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
442
+ this.formState[targetName].value = event.target.values;
443
+
444
+ this.requestUpdate('formState');
445
+ } else {
446
+ // "Normal" input value handling, just assign the value
447
+ this.formState[targetName].value = event.target.value;
448
+ this.requestUpdate('formState');
449
+ }
431
450
  });
432
451
 
433
452
  slot.addEventListener('auroFormElement-validated', (event) => {
@@ -81,15 +81,26 @@ export class AuroForm extends LitElement {
81
81
  ];
82
82
  }
83
83
 
84
+ /**
85
+ * Compare tag name with element to identify it (for API purposes).
86
+ * @param {string} elementTag - The HTML tag name like `auro-datepicker`.
87
+ * @param {HTMLElement} element - The actual HTML element to compare.
88
+ * @returns {boolean}
89
+ * @private
90
+ */
91
+ _isElementTag(elementTag, element) {
92
+ return element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase());
93
+ }
94
+
84
95
  /**
85
96
  * Shared code for determining if an element is something we care about (submit, form element, etc.).
86
97
  * @param {string[]} collection - The array to use for tag name search.
87
98
  * @param {HTMLElement} element - The element to compare against the master list.
88
- * @returns boolean
99
+ * @returns {boolean}
89
100
  * @private
90
101
  */
91
102
  _isInElementCollection(collection, element) {
92
- return collection.some((elementTag) => element.tagName.toLowerCase() === elementTag || element.hasAttribute(elementTag.toLowerCase()));
103
+ return collection.some((elementTag) => this._isElementTag(elementTag, element));
93
104
  }
94
105
 
95
106
  /**
@@ -339,8 +350,16 @@ export class AuroForm extends LitElement {
339
350
  return;
340
351
  }
341
352
 
342
- this.formState[targetName].value = event.target.value;
343
- this.requestUpdate('formState');
353
+ // Check special input types and handle their edge cases
354
+ if (this._isElementTag('auro-datepicker', event.target) && event.target.hasAttribute('range')) {
355
+ this.formState[targetName].value = event.target.values;
356
+
357
+ this.requestUpdate('formState');
358
+ } else {
359
+ // "Normal" input value handling, just assign the value
360
+ this.formState[targetName].value = event.target.value;
361
+ this.requestUpdate('formState');
362
+ }
344
363
  });
345
364
 
346
365
  slot.addEventListener('auroFormElement-validated', (event) => {
@@ -216,13 +216,13 @@ More info and automated migrator: https://sass-lang.com/d/import
216
216
 
217
217
  
218
218
  ./src/index.js → dist...
219
- created dist in 1.4s
219
+ created dist in 1.1s
220
220
  
221
221
  ./demo/index.js → ./demo/...
222
- created ./demo/ in 1.2s
222
+ created ./demo/ in 1.1s
223
223
  
224
224
  ./demo/api.js → ./demo/...
225
- created ./demo/ in 1.1s
225
+ created ./demo/ in 1s
226
226
 
227
227
  > @aurodesignsystem/auro-input@4.2.0 build:docs
228
228
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
@@ -7,7 +7,7 @@
7
7
  created dist in 1.4s
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 732ms
10
+ created ./demo/ in 828ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 710ms
13
+ created ./demo/ in 878ms
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
89
89
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
90
90
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
92
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.19/dist/auro-input__bundled.js" type="module"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.21/dist/auro-input__bundled.js" type="module"></script>
93
93
  <!-- AURO-GENERATED-CONTENT:END -->
94
94
 
95
95
  ## auro-input use cases
@@ -101,13 +101,13 @@ More info and automated migrator: https://sass-lang.com/d/import
101
101
 
102
102
  
103
103
  ./src/index.js → dist...
104
- created dist in 816ms
104
+ created dist in 781ms
105
105
  
106
106
  ./demo/index.js → ./demo/...
107
- created ./demo/ in 711ms
107
+ created ./demo/ in 538ms
108
108
  
109
109
  ./demo/api.js → ./demo/...
110
- created ./demo/ in 428ms
110
+ created ./demo/ in 692ms
111
111
 
112
112
  > @aurodesignsystem/auro-menu@4.1.4 build:docs
113
113
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component menu
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 828ms
7
+ created dist in 857ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 560ms
10
+ created ./demo/ in 666ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 584ms
13
+ created ./demo/ in 433ms
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
100
100
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
102
102
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.19/dist/auro-menu__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.21/dist/auro-menu__bundled.js" type="module"></script>
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
106
106
  ## auro-menu use cases
@@ -138,13 +138,13 @@ Run in verbose mode to see all warnings.
138
138
 
139
139
  
140
140
  ./src/index.js → dist...
141
- created dist in 624ms
141
+ created dist in 445ms
142
142
  
143
143
  ./demo/index.js → ./demo/...
144
- created ./demo/ in 528ms
144
+ created ./demo/ in 411ms
145
145
  
146
146
  ./demo/api.js → ./demo/...
147
- created ./demo/ in 531ms
147
+ created ./demo/ in 530ms
148
148
 
149
149
  > @aurodesignsystem/auro-radio@4.1.1 build:docs
150
150
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component radio
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 758ms
7
+ created dist in 698ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 481ms
10
+ created ./demo/ in 655ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 357ms
13
+ created ./demo/ in 551ms
@@ -90,7 +90,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
90
90
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
92
92
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
93
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.19/dist/auro-radio__bundled.js" type="module"></script>
93
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.21/dist/auro-radio__bundled.js" type="module"></script>
94
94
  <!-- AURO-GENERATED-CONTENT:END -->
95
95
 
96
96
  ## auro-radio use cases
@@ -137,13 +137,13 @@ More info and automated migrator: https://sass-lang.com/d/import
137
137
 
138
138
  
139
139
  ./src/index.js → dist...
140
- created dist in 829ms
140
+ created dist in 905ms
141
141
  
142
142
  ./demo/index.js → ./demo/...
143
- created ./demo/ in 640ms
143
+ created ./demo/ in 624ms
144
144
  
145
145
  ./demo/api.js → ./demo/...
146
- created ./demo/ in 466ms
146
+ created ./demo/ in 654ms
147
147
 
148
148
  > @aurodesignsystem/auro-select@3.3.0 build:docs
149
149
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component select
@@ -99,9 +99,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
99
99
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.12.1/dist/tokens/CSSCustomProperties.css" />
101
101
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
102
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.19/dist/auro-dropdown__bundled.js" type="module"></script>
103
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.19/dist/auro-menu__bundled.js" type="module"></script>
104
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.19/dist/auro-select__bundled.js" type="module"></script>
102
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.21/dist/auro-dropdown__bundled.js" type="module"></script>
103
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.21/dist/auro-menu__bundled.js" type="module"></script>
104
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.21/dist/auro-select__bundled.js" type="module"></script>
105
105
  <!-- AURO-GENERATED-CONTENT:END -->
106
106
 
107
107
  ## auro-select use cases
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "2.0.0-beta.20",
3
+ "version": "2.0.0-beta.22",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/turbo.json CHANGED
@@ -19,6 +19,11 @@
19
19
  "*-css.js"
20
20
  ]
21
21
  },
22
+ "test:watch": {
23
+ "dependsOn": ["build"],
24
+ "persistent": true,
25
+ "cache": false
26
+ },
22
27
  "@aurodesignsystem/auro-combobox#build": {
23
28
  "dependsOn": [
24
29
  "@aurodesignsystem/auro-input#build",
@@ -1 +0,0 @@
1
- {"hash":"0185585abae43d38","duration":6571}
@@ -1 +0,0 @@
1
- {"hash":"092e1fe054c68113","duration":869}
@@ -1 +0,0 @@
1
- {"hash":"19eb9b69e5625309","duration":2536}
@@ -1 +0,0 @@
1
- {"hash":"2059bc724ac24519","duration":3542}
@@ -1 +0,0 @@
1
- {"hash":"23b3a2fea223679d","duration":18145}
@@ -1 +0,0 @@
1
- {"hash":"2e79b1c1455468a1","duration":7181}
@@ -1 +0,0 @@
1
- {"hash":"341f87099beb533e","duration":18274}
@@ -1 +0,0 @@
1
- {"hash":"363aa008d976f81d","duration":17839}
@@ -1 +0,0 @@
1
- {"hash":"4006a206400d5c7b","duration":1658}
@@ -1 +0,0 @@
1
- {"hash":"43ab6002bc2cd191","duration":2169}
@@ -1 +0,0 @@
1
- {"hash":"492dda333b8d15f1","duration":3997}
@@ -1 +0,0 @@
1
- {"hash":"493e064c221aa745","duration":20739}
@@ -1 +0,0 @@
1
- {"hash":"56ee89ef1c48963e","duration":3957}
@@ -1 +0,0 @@
1
- {"hash":"61e218aba69cff58","duration":2305}
@@ -1 +0,0 @@
1
- {"hash":"6c582e957afdd75f","duration":4810}
@@ -1 +0,0 @@
1
- {"hash":"7c9ca6163e61285c","duration":3321}
@@ -1 +0,0 @@
1
- {"hash":"8bb856bd31b5b479","duration":1912}
@@ -1 +0,0 @@
1
- {"hash":"8c5b86ca67d33b17","duration":9997}
@@ -1 +0,0 @@
1
- {"hash":"8f5fef3e04a6fcfa","duration":6504}
@@ -1 +0,0 @@
1
- {"hash":"ac1b55ad6757fd54","duration":1214}
@@ -1 +0,0 @@
1
- {"hash":"b1cd3922508c11c0","duration":2433}
@@ -1 +0,0 @@
1
- {"hash":"b3c5c13bb1c28c92","duration":18531}
@@ -1 +0,0 @@
1
- {"hash":"ba270a0ef147f2e5","duration":1366}
@@ -1 +0,0 @@
1
- {"hash":"bb5213773d5d3b04","duration":5957}
@@ -1 +0,0 @@
1
- {"hash":"bbefd8d9606f1e87","duration":5924}
@@ -1 +0,0 @@
1
- {"hash":"c1312c6f8c051461","duration":2971}
@@ -1 +0,0 @@
1
- {"hash":"c289a5a9a6b897a9","duration":6397}
@@ -1 +0,0 @@
1
- {"hash":"c376d692c092d4d1","duration":1482}
@@ -1 +0,0 @@
1
- {"hash":"c6dbc49c3038946d","duration":790}
@@ -1 +0,0 @@
1
- {"hash":"cae7586c45bed13e","duration":18596}
@@ -1 +0,0 @@
1
- {"hash":"d775555355d6b8fc","duration":1713}
@@ -1 +0,0 @@
1
- {"hash":"db5e65d819bfe66b","duration":6542}
@@ -1 +0,0 @@
1
- {"hash":"dbe6a08c64601aec","duration":3900}
@@ -1 +0,0 @@
1
- {"hash":"df5f651693145406","duration":9970}
@@ -1 +0,0 @@
1
- {"hash":"ee40cab15d5b1fad","duration":19882}