@esri/calcite-components 1.0.0-next.294 → 1.0.0-next.298

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 (561) hide show
  1. package/dist/calcite/assets/calcite-icon/checkExtent16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  37. package/dist/calcite/calcite.esm.js +1 -1
  38. package/dist/calcite/calcite.js +1 -1
  39. package/dist/calcite/{p-dc99bb00.system.entry.js → p-00716aa8.system.entry.js} +1 -1
  40. package/dist/calcite/{p-413b4857.system.entry.js → p-044d603d.system.entry.js} +1 -1
  41. package/dist/calcite/{p-6621aee1.entry.js → p-05da7439.entry.js} +1 -1
  42. package/dist/calcite/{p-7c37ca39.entry.js → p-08d707c4.entry.js} +1 -1
  43. package/dist/calcite/{p-fba65e4a.system.entry.js → p-10708f87.system.entry.js} +1 -1
  44. package/dist/calcite/p-109049e6.system.entry.js +5 -0
  45. package/dist/calcite/{p-58e98b2d.system.entry.js → p-127e3513.system.entry.js} +1 -1
  46. package/dist/calcite/p-1434e37e.entry.js +5 -0
  47. package/dist/calcite/{p-c8e4117c.system.entry.js → p-15f3a0d7.system.entry.js} +1 -1
  48. package/dist/calcite/{p-de3a04c2.system.entry.js → p-16bb48f6.system.entry.js} +1 -1
  49. package/dist/calcite/{p-c99d8f9e.system.entry.js → p-16f2d814.system.entry.js} +1 -1
  50. package/dist/calcite/p-1942876c.js +5 -0
  51. package/dist/calcite/{p-cca94491.system.entry.js → p-1a1e9057.system.entry.js} +1 -1
  52. package/dist/calcite/p-1a962bdd.js +5 -0
  53. package/dist/calcite/p-1aa89347.system.entry.js +5 -0
  54. package/dist/calcite/{p-a8569c55.system.entry.js → p-1c8fe17f.system.entry.js} +1 -1
  55. package/dist/calcite/{p-6988c6b7.system.entry.js → p-1dd440e6.system.entry.js} +1 -1
  56. package/dist/calcite/{p-7a6c6382.entry.js → p-21c8ac06.entry.js} +1 -1
  57. package/dist/calcite/{p-6c8a562f.system.entry.js → p-243d95ab.system.entry.js} +1 -1
  58. package/dist/calcite/{p-3f1d1bad.entry.js → p-2451da5b.entry.js} +1 -1
  59. package/dist/calcite/p-288bc438.system.js +5 -0
  60. package/dist/calcite/{p-4185db77.entry.js → p-289bc56f.entry.js} +1 -1
  61. package/dist/calcite/{p-9affee61.entry.js → p-29771742.entry.js} +1 -1
  62. package/dist/calcite/{p-8953f712.entry.js → p-2aa3007a.entry.js} +1 -1
  63. package/dist/calcite/p-2d09cc25.js +5 -0
  64. package/dist/calcite/p-2e29554c.js +5 -0
  65. package/dist/calcite/{p-3962cd38.entry.js → p-33802886.entry.js} +1 -1
  66. package/dist/calcite/{p-25a31861.system.js → p-34e5baa7.system.js} +1 -1
  67. package/dist/calcite/p-3a592bf3.system.entry.js +5 -0
  68. package/dist/calcite/p-3dae9da3.js +5 -0
  69. package/dist/calcite/{p-bf8b70a8.entry.js → p-3e6fcede.entry.js} +1 -1
  70. package/dist/calcite/p-3eb1dc0f.entry.js +5 -0
  71. package/dist/calcite/{p-c9ecea64.entry.js → p-48f03121.entry.js} +1 -1
  72. package/dist/calcite/{p-83302e1c.entry.js → p-4acfb654.entry.js} +1 -1
  73. package/dist/calcite/{p-bf25e278.system.entry.js → p-4d11efdb.system.entry.js} +1 -1
  74. package/dist/calcite/{p-b8d040e5.system.entry.js → p-4e16515a.system.entry.js} +1 -1
  75. package/dist/calcite/{p-c60e3a71.entry.js → p-4f1f83d2.entry.js} +1 -1
  76. package/dist/calcite/{p-1e875199.entry.js → p-502ea583.entry.js} +1 -1
  77. package/dist/calcite/p-523bc291.system.js +5 -0
  78. package/dist/calcite/p-54394dfe.system.entry.js +5 -0
  79. package/dist/calcite/p-578509a8.entry.js +5 -0
  80. package/dist/calcite/p-592da79d.system.entry.js +5 -0
  81. package/dist/calcite/p-5c0c29bc.entry.js +5 -0
  82. package/dist/calcite/p-5eee672a.system.entry.js +5 -0
  83. package/dist/calcite/{p-ba1322e6.system.entry.js → p-5f2a9710.system.entry.js} +1 -1
  84. package/dist/calcite/{p-36e5db45.entry.js → p-5f817b79.entry.js} +1 -1
  85. package/dist/calcite/{p-e638ff0e.entry.js → p-6296644b.entry.js} +1 -1
  86. package/dist/calcite/p-63e60894.entry.js +5 -0
  87. package/dist/calcite/{p-daa110fe.system.entry.js → p-6484ffb7.system.entry.js} +1 -1
  88. package/dist/calcite/{p-28261aae.entry.js → p-659898bf.entry.js} +1 -1
  89. package/dist/calcite/{p-d11ad046.system.js → p-6d44b7d9.system.js} +1 -1
  90. package/dist/calcite/p-6f1cca21.system.js +5 -0
  91. package/dist/calcite/{p-e7819705.entry.js → p-714ae4f6.entry.js} +1 -1
  92. package/dist/calcite/{p-3bb30b44.system.entry.js → p-74f390e1.system.entry.js} +1 -1
  93. package/dist/calcite/{p-d4059426.entry.js → p-75264173.entry.js} +1 -1
  94. package/dist/calcite/{p-76ccd204.entry.js → p-765fb8ed.entry.js} +1 -1
  95. package/dist/calcite/p-784e414b.entry.js +5 -0
  96. package/dist/calcite/{p-cacca548.entry.js → p-78d0db7b.entry.js} +1 -1
  97. package/dist/calcite/{p-98789055.system.entry.js → p-7ba971b5.system.entry.js} +1 -1
  98. package/dist/calcite/{p-f281f1e9.entry.js → p-7bb94bfa.entry.js} +1 -1
  99. package/dist/calcite/{p-502736d8.system.entry.js → p-81538774.system.entry.js} +1 -1
  100. package/dist/calcite/p-81ab443c.entry.js +5 -0
  101. package/dist/calcite/p-82139130.entry.js +5 -0
  102. package/dist/calcite/{p-7b869bc5.entry.js → p-82c6cd9a.entry.js} +1 -1
  103. package/dist/calcite/{p-45257edb.js → p-8340b572.js} +1 -1
  104. package/dist/calcite/{p-58716826.system.entry.js → p-840f2937.system.entry.js} +2 -2
  105. package/dist/calcite/p-85032edc.system.entry.js +5 -0
  106. package/dist/calcite/{p-b41deed0.system.entry.js → p-8b2ead09.system.entry.js} +1 -1
  107. package/dist/calcite/p-8baa9ba4.entry.js +5 -0
  108. package/dist/calcite/{p-7ade2294.system.entry.js → p-8fef13ca.system.entry.js} +1 -1
  109. package/dist/calcite/{p-75f714c9.entry.js → p-9338b0bc.entry.js} +1 -1
  110. package/dist/calcite/p-9577dfd9.entry.js +5 -0
  111. package/dist/calcite/{p-c48b4b7e.system.entry.js → p-95b9a0f2.system.entry.js} +1 -1
  112. package/dist/calcite/p-968ea270.entry.js +5 -0
  113. package/dist/calcite/p-99a1c131.entry.js +5 -0
  114. package/dist/calcite/{p-83ccefba.system.entry.js → p-9abbbcbd.system.entry.js} +1 -1
  115. package/dist/calcite/p-9be6633a.entry.js +5 -0
  116. package/dist/calcite/{p-9fc0dc2c.system.entry.js → p-9f240615.system.entry.js} +1 -1
  117. package/dist/calcite/{p-f6f4648e.system.entry.js → p-a5269f14.system.entry.js} +1 -1
  118. package/dist/calcite/{p-684ccd4e.system.entry.js → p-a8dc2982.system.entry.js} +1 -1
  119. package/dist/calcite/{p-0100aeb0.entry.js → p-ace12b8d.entry.js} +1 -1
  120. package/dist/calcite/{p-7dd5c4e4.entry.js → p-aced5f01.entry.js} +1 -1
  121. package/dist/calcite/{p-f32e61bb.system.entry.js → p-aec398f3.system.entry.js} +1 -1
  122. package/dist/calcite/{p-eed43a57.system.entry.js → p-b1351c3e.system.entry.js} +1 -1
  123. package/dist/calcite/p-b1a96c72.system.entry.js +5 -0
  124. package/dist/calcite/{p-8007a0b4.system.entry.js → p-b2bbac37.system.entry.js} +1 -1
  125. package/dist/calcite/{p-3cf93a58.system.entry.js → p-b4b1081f.system.entry.js} +1 -1
  126. package/dist/calcite/p-b94bf8ac.system.entry.js +5 -0
  127. package/dist/calcite/p-c0e35328.entry.js +5 -0
  128. package/dist/calcite/p-c34c4414.system.js +5 -0
  129. package/dist/calcite/{p-a09634e2.entry.js → p-c3ba61ea.entry.js} +1 -1
  130. package/dist/calcite/{p-fe16f05e.system.entry.js → p-c4cb4fab.system.entry.js} +1 -1
  131. package/dist/calcite/p-c87c04a9.entry.js +5 -0
  132. package/dist/calcite/p-ca3bb147.entry.js +5 -0
  133. package/dist/calcite/{p-527146c8.system.entry.js → p-cbe9f1a2.system.entry.js} +1 -1
  134. package/dist/calcite/{p-a7ba0292.system.js → p-cbf6bb04.system.js} +1 -1
  135. package/dist/calcite/p-cc2085c7.system.entry.js +5 -0
  136. package/dist/calcite/{p-507b2cc4.entry.js → p-cc788d2e.entry.js} +1 -1
  137. package/dist/calcite/p-cced5508.system.entry.js +5 -0
  138. package/dist/calcite/{p-dcf30b00.system.entry.js → p-cf03b144.system.entry.js} +1 -1
  139. package/dist/calcite/{p-b018fbbd.entry.js → p-d550ee4d.entry.js} +1 -1
  140. package/dist/calcite/{p-72fa390e.entry.js → p-d6e30c54.entry.js} +1 -1
  141. package/dist/calcite/{p-79cbbf2d.js → p-d6f20229.js} +1 -1
  142. package/dist/calcite/{p-3e438b5b.system.entry.js → p-dabb63b5.system.entry.js} +1 -1
  143. package/dist/calcite/{p-9fa024e6.system.entry.js → p-dd464e44.system.entry.js} +1 -1
  144. package/dist/calcite/{p-38ee7306.system.entry.js → p-deb36fde.system.entry.js} +1 -1
  145. package/dist/calcite/{p-b4e7b593.system.entry.js → p-defcee80.system.entry.js} +1 -1
  146. package/dist/calcite/{p-e35e7216.system.js → p-dff7dc90.system.js} +1 -1
  147. package/dist/calcite/{p-aad45edf.system.js → p-e095517f.system.js} +1 -1
  148. package/dist/calcite/{p-09da1c54.system.entry.js → p-e33fe285.system.entry.js} +1 -1
  149. package/dist/calcite/p-e52495d3.system.entry.js +5 -0
  150. package/dist/calcite/p-e5932886.system.entry.js +5 -0
  151. package/dist/calcite/{p-9fa5e356.entry.js → p-e5e3b591.entry.js} +1 -1
  152. package/dist/calcite/p-e62a9b1d.system.entry.js +5 -0
  153. package/dist/calcite/p-e6c84e63.entry.js +5 -0
  154. package/dist/calcite/{p-a5bfc29d.system.entry.js → p-e6d05ad6.system.entry.js} +1 -1
  155. package/dist/calcite/{p-49d5ee42.system.entry.js → p-e70cb594.system.entry.js} +1 -1
  156. package/dist/calcite/{p-809ddb6a.js → p-e956e279.js} +1 -1
  157. package/dist/calcite/{p-c399cfce.entry.js → p-eada9cef.entry.js} +1 -1
  158. package/dist/calcite/{p-b244a00c.entry.js → p-ecc00ef0.entry.js} +1 -1
  159. package/dist/calcite/p-ed15771f.system.entry.js +5 -0
  160. package/dist/calcite/p-ed453bfb.entry.js +5 -0
  161. package/dist/calcite/{p-f93a7fce.entry.js → p-ef39847e.entry.js} +1 -1
  162. package/dist/calcite/{p-cd41629f.entry.js → p-efb2169a.entry.js} +1 -1
  163. package/dist/calcite/{p-06646eed.system.entry.js → p-f0338acf.system.entry.js} +1 -1
  164. package/dist/calcite/{p-3383d9b4.entry.js → p-f1c5e7cf.entry.js} +1 -1
  165. package/dist/calcite/{p-58eca102.entry.js → p-f278dd53.entry.js} +1 -1
  166. package/dist/calcite/p-f44e01bf.entry.js +5 -0
  167. package/dist/calcite/{p-5efd7297.entry.js → p-f9c46578.entry.js} +1 -1
  168. package/dist/calcite/{p-10de63d7.system.entry.js → p-fc47547f.system.entry.js} +1 -1
  169. package/dist/calcite/p-fc643963.entry.js +5 -0
  170. package/dist/cjs/{CalciteExpandToggle-6a9f9858.js → CalciteExpandToggle-5f60c98b.js} +1 -1
  171. package/dist/cjs/{CalciteHeading-363b0525.js → CalciteHeading-112c19f9.js} +1 -1
  172. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  173. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  174. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  175. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  176. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  177. package/dist/cjs/calcite-action.cjs.entry.js +1 -1
  178. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  179. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  180. package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
  181. package/dist/cjs/calcite-button.cjs.entry.js +3 -3
  182. package/dist/cjs/calcite-card.cjs.entry.js +1 -1
  183. package/dist/cjs/calcite-checkbox.cjs.entry.js +36 -85
  184. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  185. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +26 -27
  186. package/dist/cjs/calcite-combobox_3.cjs.entry.js +81 -22
  187. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +28 -10
  188. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
  189. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  190. package/dist/cjs/calcite-filter.cjs.entry.js +34 -8
  191. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  192. package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -5
  193. package/dist/cjs/calcite-handle.cjs.entry.js +1 -1
  194. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  195. package/dist/cjs/calcite-inline-editable.cjs.entry.js +51 -42
  196. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +68 -15
  197. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  198. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +13 -4
  199. package/dist/cjs/calcite-input.cjs.entry.js +78 -58
  200. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  201. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  202. package/dist/cjs/calcite-list_3.cjs.entry.js +3 -3
  203. package/dist/cjs/calcite-loader.cjs.entry.js +1 -1
  204. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  205. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  206. package/dist/cjs/calcite-option_3.cjs.entry.js +31 -5
  207. package/dist/cjs/calcite-pagination.cjs.entry.js +1 -1
  208. package/dist/cjs/calcite-panel.cjs.entry.js +5 -4
  209. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +3 -3
  210. package/dist/cjs/calcite-popover_2.cjs.entry.js +3 -3
  211. package/dist/cjs/calcite-progress.cjs.entry.js +1 -1
  212. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +1 -1
  213. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +20 -24
  214. package/dist/cjs/calcite-radio_2.cjs.entry.js +81 -75
  215. package/dist/cjs/calcite-rating.cjs.entry.js +13 -4
  216. package/dist/cjs/calcite-scrim.cjs.entry.js +1 -1
  217. package/dist/cjs/calcite-shell_3.cjs.entry.js +5 -4
  218. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  219. package/dist/cjs/calcite-split-button.cjs.entry.js +1 -1
  220. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  221. package/dist/cjs/calcite-switch.cjs.entry.js +25 -49
  222. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  223. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +1 -3
  224. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  225. package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
  226. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +1 -1
  227. package/dist/cjs/calcite-tree_2.cjs.entry.js +16 -9
  228. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  229. package/dist/cjs/calcite.cjs.js +2 -2
  230. package/dist/cjs/form-a5b44a1f.js +179 -0
  231. package/dist/cjs/{index-cee0daa9.js → index-6b5d2de5.js} +8 -365
  232. package/dist/cjs/{label-549c3d9d.js → label-8e3552b2.js} +33 -4
  233. package/dist/cjs/loader.cjs.js +2 -2
  234. package/dist/cjs/math-145c80e2.js +21 -0
  235. package/dist/cjs/{resources-38563593.js → resources-3f7b51c8.js} +1 -1
  236. package/dist/cjs/{resources-f9c141d2.js → resources-cd25dbae.js} +1 -1
  237. package/dist/collection/components/calcite-button/calcite-button.css +20 -14
  238. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +22 -11
  239. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +63 -112
  240. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +13 -10
  241. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +11 -15
  242. package/dist/collection/components/calcite-combobox/calcite-combobox.css +15 -0
  243. package/dist/collection/components/calcite-combobox/calcite-combobox.js +139 -19
  244. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +45 -15
  245. package/dist/collection/components/calcite-filter/calcite-filter.js +79 -8
  246. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
  247. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
  248. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
  249. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
  250. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
  251. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
  252. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
  253. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
  254. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
  255. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  256. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  257. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  258. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
  259. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
  260. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
  261. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
  262. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
  263. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
  264. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
  265. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
  266. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
  267. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
  268. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
  269. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
  270. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
  271. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
  272. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
  273. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
  274. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
  275. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
  276. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
  277. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
  278. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
  279. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  280. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  281. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  282. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +8 -54
  283. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +43 -32
  284. package/dist/collection/components/calcite-inline-editable/resources.js +7 -7
  285. package/dist/collection/components/calcite-input/calcite-input.css +102 -68
  286. package/dist/collection/components/calcite-input/calcite-input.js +107 -56
  287. package/dist/collection/components/calcite-input/resources.js +14 -12
  288. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +15 -0
  289. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +163 -40
  290. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +15 -0
  291. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +34 -3
  292. package/dist/collection/components/calcite-list-item/calcite-list-item.css +7 -0
  293. package/dist/collection/components/calcite-panel/calcite-panel.css +10 -4
  294. package/dist/collection/components/calcite-panel/calcite-panel.js +3 -2
  295. package/dist/collection/components/calcite-panel/resources.js +1 -0
  296. package/dist/collection/components/calcite-popover/calcite-popover.css +1 -0
  297. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +18 -1
  298. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +83 -84
  299. package/dist/collection/components/calcite-radio-button/resources.js +1 -1
  300. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +15 -0
  301. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +58 -22
  302. package/dist/collection/components/calcite-rating/calcite-rating.css +15 -0
  303. package/dist/collection/components/calcite-rating/calcite-rating.js +49 -1
  304. package/dist/collection/components/calcite-select/calcite-select.css +15 -0
  305. package/dist/collection/components/calcite-select/calcite-select.js +89 -3
  306. package/dist/collection/components/calcite-shell/calcite-shell.css +11 -11
  307. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +38 -21
  308. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +2 -2
  309. package/dist/collection/components/calcite-shell-panel/resources.js +1 -0
  310. package/dist/collection/components/calcite-slider/calcite-slider.css +15 -0
  311. package/dist/collection/components/calcite-slider/calcite-slider.js +45 -1
  312. package/dist/collection/components/calcite-switch/calcite-switch.css +15 -0
  313. package/dist/collection/components/calcite-switch/calcite-switch.js +28 -64
  314. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +4 -7
  315. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +15 -8
  316. package/dist/collection/utils/form.js +167 -14
  317. package/dist/collection/utils/label.js +33 -4
  318. package/dist/collection/utils/math.js +11 -0
  319. package/dist/components/calcite-button2.js +1 -1
  320. package/dist/components/calcite-checkbox2.js +37 -87
  321. package/dist/components/calcite-color-picker-hex-input2.js +11 -15
  322. package/dist/components/calcite-color-picker.js +13 -10
  323. package/dist/components/calcite-combobox.js +82 -20
  324. package/dist/components/calcite-date-picker2.js +25 -7
  325. package/dist/components/calcite-filter2.js +35 -7
  326. package/dist/components/calcite-inline-editable.js +52 -42
  327. package/dist/components/calcite-input-date-picker.js +68 -12
  328. package/dist/components/calcite-input-time-picker.js +12 -2
  329. package/dist/components/calcite-input2.js +82 -59
  330. package/dist/components/calcite-list-item.js +1 -1
  331. package/dist/components/calcite-panel.js +3 -2
  332. package/dist/components/calcite-popover2.js +1 -1
  333. package/dist/components/calcite-radio-button.js +83 -76
  334. package/dist/components/calcite-radio-group.js +20 -22
  335. package/dist/components/calcite-rating.js +13 -2
  336. package/dist/components/calcite-select.js +32 -3
  337. package/dist/components/calcite-shell-panel.js +4 -3
  338. package/dist/components/calcite-shell.js +1 -1
  339. package/dist/components/calcite-slider.js +12 -2
  340. package/dist/components/calcite-switch2.js +25 -51
  341. package/dist/components/calcite-tile-select.js +1 -3
  342. package/dist/components/calcite-tree-item.js +15 -8
  343. package/dist/components/form.js +169 -15
  344. package/dist/components/label.js +33 -4
  345. package/dist/components/math.js +12 -1
  346. package/dist/custom-elements/index.js +801 -445
  347. package/dist/esm/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-677f2f8b.js} +1 -1
  348. package/dist/esm/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
  349. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  350. package/dist/esm/calcite-action-bar.entry.js +2 -2
  351. package/dist/esm/calcite-action-group.entry.js +1 -1
  352. package/dist/esm/calcite-action-menu.entry.js +1 -1
  353. package/dist/esm/calcite-action-pad.entry.js +2 -2
  354. package/dist/esm/calcite-action.entry.js +1 -1
  355. package/dist/esm/calcite-alert.entry.js +1 -1
  356. package/dist/esm/calcite-avatar.entry.js +1 -1
  357. package/dist/esm/calcite-block_2.entry.js +2 -2
  358. package/dist/esm/calcite-button.entry.js +3 -3
  359. package/dist/esm/calcite-card.entry.js +1 -1
  360. package/dist/esm/calcite-checkbox.entry.js +36 -85
  361. package/dist/esm/calcite-chip.entry.js +1 -1
  362. package/dist/esm/calcite-color-picker_3.entry.js +26 -27
  363. package/dist/esm/calcite-combobox_3.entry.js +81 -22
  364. package/dist/esm/calcite-date-picker_4.entry.js +28 -10
  365. package/dist/esm/calcite-dropdown_3.entry.js +1 -1
  366. package/dist/esm/calcite-fab.entry.js +1 -1
  367. package/dist/esm/calcite-filter.entry.js +34 -8
  368. package/dist/esm/calcite-flow.entry.js +1 -1
  369. package/dist/esm/calcite-graph_2.entry.js +13 -5
  370. package/dist/esm/calcite-handle.entry.js +1 -1
  371. package/dist/esm/calcite-icon.entry.js +1 -1
  372. package/dist/esm/calcite-inline-editable.entry.js +51 -42
  373. package/dist/esm/calcite-input-date-picker.entry.js +68 -15
  374. package/dist/esm/calcite-input-message.entry.js +1 -1
  375. package/dist/esm/calcite-input-time-picker_2.entry.js +13 -4
  376. package/dist/esm/calcite-input.entry.js +79 -59
  377. package/dist/esm/calcite-label.entry.js +1 -1
  378. package/dist/esm/calcite-link.entry.js +1 -1
  379. package/dist/esm/calcite-list_3.entry.js +3 -3
  380. package/dist/esm/calcite-loader.entry.js +1 -1
  381. package/dist/esm/calcite-modal.entry.js +1 -1
  382. package/dist/esm/calcite-notice.entry.js +1 -1
  383. package/dist/esm/calcite-option_3.entry.js +31 -5
  384. package/dist/esm/calcite-pagination.entry.js +1 -1
  385. package/dist/esm/calcite-panel.entry.js +5 -4
  386. package/dist/esm/calcite-pick-list_3.entry.js +3 -3
  387. package/dist/esm/calcite-popover_2.entry.js +3 -3
  388. package/dist/esm/calcite-progress.entry.js +1 -1
  389. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  390. package/dist/esm/calcite-radio-group_2.entry.js +20 -24
  391. package/dist/esm/calcite-radio_2.entry.js +82 -76
  392. package/dist/esm/calcite-rating.entry.js +13 -4
  393. package/dist/esm/calcite-scrim.entry.js +1 -1
  394. package/dist/esm/calcite-shell_3.entry.js +5 -4
  395. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  396. package/dist/esm/calcite-split-button.entry.js +1 -1
  397. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  398. package/dist/esm/calcite-switch.entry.js +26 -50
  399. package/dist/esm/calcite-tab_4.entry.js +1 -1
  400. package/dist/esm/calcite-tile-select_2.entry.js +1 -3
  401. package/dist/esm/calcite-tile.entry.js +1 -1
  402. package/dist/esm/calcite-tip_3.entry.js +2 -2
  403. package/dist/esm/calcite-tooltip_2.entry.js +1 -1
  404. package/dist/esm/calcite-tree_2.entry.js +16 -9
  405. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  406. package/dist/esm/calcite.js +2 -2
  407. package/dist/esm/form-160b0fb5.js +174 -0
  408. package/dist/esm/{index-66803519.js → index-9de00868.js} +8 -365
  409. package/dist/esm/{label-bb61bdef.js → label-5559055d.js} +33 -4
  410. package/dist/esm/loader.js +2 -2
  411. package/dist/esm/math-456207f5.js +18 -0
  412. package/dist/esm/{resources-8dd80c84.js → resources-16a2a25a.js} +1 -1
  413. package/dist/esm/{resources-c59a1a15.js → resources-bece7a88.js} +1 -1
  414. package/dist/esm-es5/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-677f2f8b.js} +1 -1
  415. package/dist/esm-es5/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
  416. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  417. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  418. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  419. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  420. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  421. package/dist/esm-es5/calcite-action.entry.js +1 -1
  422. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  423. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  424. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  425. package/dist/esm-es5/calcite-button.entry.js +1 -1
  426. package/dist/esm-es5/calcite-card.entry.js +1 -1
  427. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  428. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  429. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  430. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  431. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  432. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  433. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  434. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  435. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  436. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  437. package/dist/esm-es5/calcite-handle.entry.js +1 -1
  438. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  439. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  440. package/dist/esm-es5/calcite-input-date-picker.entry.js +2 -2
  441. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  442. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  443. package/dist/esm-es5/calcite-input.entry.js +2 -2
  444. package/dist/esm-es5/calcite-label.entry.js +1 -1
  445. package/dist/esm-es5/calcite-link.entry.js +1 -1
  446. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  447. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  448. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  449. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  450. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  451. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  452. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  453. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  454. package/dist/esm-es5/calcite-popover_2.entry.js +1 -1
  455. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  456. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  457. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  458. package/dist/esm-es5/calcite-radio_2.entry.js +2 -2
  459. package/dist/esm-es5/calcite-rating.entry.js +1 -1
  460. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  461. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  462. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  463. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  464. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  465. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  466. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  467. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  468. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  469. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  470. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  471. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  472. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  473. package/dist/esm-es5/calcite.js +1 -1
  474. package/dist/esm-es5/form-160b0fb5.js +5 -0
  475. package/dist/esm-es5/index-9de00868.js +5 -0
  476. package/dist/esm-es5/label-5559055d.js +5 -0
  477. package/dist/esm-es5/loader.js +1 -1
  478. package/dist/esm-es5/math-456207f5.js +5 -0
  479. package/dist/esm-es5/{resources-8dd80c84.js → resources-16a2a25a.js} +1 -1
  480. package/dist/esm-es5/{resources-c59a1a15.js → resources-bece7a88.js} +1 -1
  481. package/dist/extras/docs-json.json +320 -59
  482. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +22 -23
  483. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +1 -1
  484. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +21 -3
  485. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +20 -8
  486. package/dist/types/components/calcite-filter/calcite-filter.d.ts +19 -0
  487. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -6
  488. package/dist/types/components/calcite-input/calcite-input.d.ts +14 -8
  489. package/dist/types/components/calcite-input/resources.d.ts +2 -0
  490. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +37 -8
  491. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +11 -2
  492. package/dist/types/components/calcite-panel/resources.d.ts +1 -0
  493. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +14 -15
  494. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +13 -4
  495. package/dist/types/components/calcite-rating/calcite-rating.d.ts +12 -1
  496. package/dist/types/components/calcite-select/calcite-select.d.ts +19 -1
  497. package/dist/types/components/calcite-shell-panel/resources.d.ts +1 -0
  498. package/dist/types/components/calcite-slider/calcite-slider.d.ts +10 -1
  499. package/dist/types/components/calcite-switch/calcite-switch.d.ts +10 -9
  500. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +1 -1
  501. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +2 -0
  502. package/dist/types/components.d.ts +171 -18
  503. package/dist/types/utils/form.d.ts +112 -1
  504. package/dist/types/utils/label.d.ts +5 -0
  505. package/dist/types/utils/math.d.ts +1 -0
  506. package/hydrate/index.js +827 -455
  507. package/package.json +8 -9
  508. package/readme.md +2 -2
  509. package/CHANGELOG.md +0 -1506
  510. package/dist/calcite/p-05107123.entry.js +0 -5
  511. package/dist/calcite/p-05d1dfc6.js +0 -5
  512. package/dist/calcite/p-0d4e82ab.system.entry.js +0 -5
  513. package/dist/calcite/p-10759c71.system.entry.js +0 -5
  514. package/dist/calcite/p-11113310.entry.js +0 -5
  515. package/dist/calcite/p-12e1c83f.system.entry.js +0 -5
  516. package/dist/calcite/p-1421e818.entry.js +0 -5
  517. package/dist/calcite/p-157d05ce.js +0 -5
  518. package/dist/calcite/p-17e666d6.system.entry.js +0 -5
  519. package/dist/calcite/p-22ecf6df.entry.js +0 -5
  520. package/dist/calcite/p-2418cceb.entry.js +0 -5
  521. package/dist/calcite/p-2ba00b89.js +0 -5
  522. package/dist/calcite/p-2ecafa35.system.entry.js +0 -5
  523. package/dist/calcite/p-329e1831.system.entry.js +0 -5
  524. package/dist/calcite/p-3994ac99.system.entry.js +0 -5
  525. package/dist/calcite/p-42128a12.entry.js +0 -5
  526. package/dist/calcite/p-47313747.system.js +0 -5
  527. package/dist/calcite/p-4c7e3915.system.entry.js +0 -5
  528. package/dist/calcite/p-4ecd0331.entry.js +0 -5
  529. package/dist/calcite/p-5322b333.system.entry.js +0 -5
  530. package/dist/calcite/p-5e6d76dc.entry.js +0 -5
  531. package/dist/calcite/p-777c833f.system.entry.js +0 -5
  532. package/dist/calcite/p-8711a0ae.system.entry.js +0 -5
  533. package/dist/calcite/p-89cdfa96.system.js +0 -5
  534. package/dist/calcite/p-8bc3e126.entry.js +0 -5
  535. package/dist/calcite/p-948aca0d.system.entry.js +0 -5
  536. package/dist/calcite/p-99ff3a2f.entry.js +0 -5
  537. package/dist/calcite/p-9fe349b9.entry.js +0 -5
  538. package/dist/calcite/p-a2cc027e.entry.js +0 -5
  539. package/dist/calcite/p-b42d730f.entry.js +0 -5
  540. package/dist/calcite/p-b4960d06.system.js +0 -5
  541. package/dist/calcite/p-bbe2337b.system.entry.js +0 -5
  542. package/dist/calcite/p-bbedf98c.entry.js +0 -5
  543. package/dist/calcite/p-be52c734.entry.js +0 -5
  544. package/dist/calcite/p-cb7b6425.entry.js +0 -5
  545. package/dist/calcite/p-d35e423d.js +0 -5
  546. package/dist/calcite/p-df9b4b76.entry.js +0 -5
  547. package/dist/calcite/p-e24b6c4a.system.entry.js +0 -5
  548. package/dist/calcite/p-e382c4e9.entry.js +0 -5
  549. package/dist/calcite/p-e40dd6fe.system.entry.js +0 -5
  550. package/dist/calcite/p-e5805bf1.entry.js +0 -5
  551. package/dist/calcite/p-eccb140e.entry.js +0 -5
  552. package/dist/calcite/p-f5bb39bb.js +0 -5
  553. package/dist/calcite/p-fb1da0f5.system.js +0 -5
  554. package/dist/cjs/form-00fb301c.js +0 -22
  555. package/dist/cjs/math-9d44163f.js +0 -9
  556. package/dist/esm/form-cee9f632.js +0 -20
  557. package/dist/esm/math-250d4476.js +0 -7
  558. package/dist/esm-es5/form-cee9f632.js +0 -5
  559. package/dist/esm-es5/index-66803519.js +0 -5
  560. package/dist/esm-es5/label-bb61bdef.js +0 -5
  561. package/dist/esm-es5/math-250d4476.js +0 -5
@@ -4,10 +4,13 @@
4
4
  */
5
5
  import { Component, Element, Event, h, Host, Listen, Method, Prop, Watch } from "@stencil/core";
6
6
  import { guid } from "../../utils/guid";
7
- import { closestElementCrossShadowBoundary, focusElement } from "../../utils/dom";
7
+ import { focusElement } from "../../utils/dom";
8
8
  import { connectLabel, disconnectLabel, getLabelText } from "../../utils/label";
9
- import { hiddenInputStyle } from "../../utils/form";
9
+ import { HiddenFormInputSlot, connectForm, disconnectForm } from "../../utils/form";
10
10
  import { CSS } from "./resources";
11
+ import { getKey } from "../../utils/key";
12
+ import { getElementDir } from "../../utils/dom";
13
+ import { getRoundRobinIndex } from "../../utils/array";
11
14
  export class CalciteRadioButton {
12
15
  constructor() {
13
16
  //--------------------------------------------------------------------------
@@ -47,31 +50,77 @@ export class CalciteRadioButton {
47
50
  item.focused = selected;
48
51
  });
49
52
  };
50
- this.toggle = () => {
53
+ this.queryButtons = () => {
54
+ return Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
55
+ };
56
+ this.isDefaultSelectable = () => {
57
+ const radioButtons = this.queryButtons();
58
+ return !radioButtons.some((radioButton) => radioButton.checked) && radioButtons[0] === this.el;
59
+ };
60
+ this.check = () => {
61
+ if (this.disabled) {
62
+ return;
63
+ }
51
64
  this.uncheckAllRadioButtonsInGroup();
52
65
  this.checked = true;
53
66
  this.focused = true;
54
67
  this.calciteRadioButtonChange.emit();
55
68
  };
56
69
  this.clickHandler = () => {
57
- this.toggle();
70
+ this.check();
58
71
  };
59
- this.setInputEl = (el) => {
60
- this.inputEl = el;
72
+ this.setContainerEl = (el) => {
73
+ this.containerEl = el;
61
74
  };
62
- this.formResetHandler = () => {
63
- var _a;
64
- this.checked = this.initialChecked;
65
- this.initialChecked && ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute("checked", ""));
66
- };
67
- this.hideInputEl = () => {
68
- this.inputEl.style.cssText = hiddenInputStyle;
75
+ this.handleKeyDown = (event) => {
76
+ const keys = ["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", " "];
77
+ const key = getKey(event.key);
78
+ const { el } = this;
79
+ if (keys.indexOf(key) === -1) {
80
+ return;
81
+ }
82
+ if (key === " ") {
83
+ this.check();
84
+ return;
85
+ }
86
+ let adjustedKey = key;
87
+ if (getElementDir(el) === "rtl") {
88
+ if (key === "ArrowRight") {
89
+ adjustedKey = "ArrowLeft";
90
+ }
91
+ if (key === "ArrowLeft") {
92
+ adjustedKey = "ArrowRight";
93
+ }
94
+ }
95
+ const radioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button:not([hidden]")).filter((radioButton) => radioButton.name === this.name);
96
+ let currentIndex = 0;
97
+ const radioButtonsLength = radioButtons.length;
98
+ radioButtons.some((item, index) => {
99
+ if (item.checked) {
100
+ currentIndex = index;
101
+ return true;
102
+ }
103
+ });
104
+ switch (adjustedKey) {
105
+ case "ArrowLeft":
106
+ case "ArrowUp":
107
+ event.preventDefault();
108
+ this.selectItem(radioButtons, getRoundRobinIndex(Math.max(currentIndex - 1, -1), radioButtonsLength));
109
+ return;
110
+ case "ArrowRight":
111
+ case "ArrowDown":
112
+ event.preventDefault();
113
+ this.selectItem(radioButtons, getRoundRobinIndex(currentIndex + 1, radioButtonsLength));
114
+ return;
115
+ default:
116
+ return;
117
+ }
69
118
  };
70
- this.onInputBlur = () => {
119
+ this.onContainerBlur = () => {
71
120
  this.focused = false;
72
121
  this.calciteInternalRadioButtonBlur.emit();
73
122
  };
74
- this.onInputFocus = () => {
123
+ this.onContainerFocus = () => {
75
124
  this.focused = true;
76
125
  this.calciteInternalRadioButtonFocus.emit();
77
126
  };
@@ -80,44 +129,15 @@ export class CalciteRadioButton {
80
129
  if (newChecked) {
81
130
  this.uncheckOtherRadioButtonsInGroup();
82
131
  }
83
- if (this.inputEl) {
84
- this.inputEl.checked = newChecked;
85
- }
86
132
  this.calciteInternalRadioButtonCheckedChange.emit(newChecked);
87
133
  }
88
- disabledChanged(disabled) {
89
- this.inputEl.disabled = disabled;
90
- }
91
- focusedChanged(focused) {
92
- if (!this.inputEl) {
93
- return;
94
- }
95
- if (focused && !this.el.hasAttribute("hidden")) {
96
- this.inputEl.focus();
97
- }
98
- else {
99
- this.inputEl.blur();
100
- }
101
- }
102
- hiddenChanged(newHidden) {
103
- this.inputEl.hidden = newHidden;
104
- }
105
- nameChanged(newName) {
106
- if (this.name === newName) {
107
- return;
108
- }
109
- if (this.inputEl) {
110
- this.inputEl.name = newName;
111
- }
134
+ nameChanged() {
112
135
  this.checkLastRadioButton();
113
136
  const currentValue = this.rootNode.querySelector(`input[name="${this.name}"]:checked`);
114
137
  if (!(currentValue === null || currentValue === void 0 ? void 0 : currentValue.value)) {
115
138
  this.uncheckAllRadioButtonsInGroup();
116
139
  }
117
140
  }
118
- requiredChanged(required) {
119
- this.inputEl.required = required;
120
- }
121
141
  //--------------------------------------------------------------------------
122
142
  //
123
143
  // Public Methods
@@ -125,7 +145,7 @@ export class CalciteRadioButton {
125
145
  //--------------------------------------------------------------------------
126
146
  /** Sets focus on the component. */
127
147
  async setFocus() {
128
- focusElement(this.inputEl);
148
+ focusElement(this.containerEl);
129
149
  }
130
150
  onLabelClick(event) {
131
151
  if (!this.disabled && !this.hidden) {
@@ -143,7 +163,7 @@ export class CalciteRadioButton {
143
163
  }
144
164
  }
145
165
  checkLastRadioButton() {
146
- const radioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button")).filter((radioButton) => radioButton.name === this.name);
166
+ const radioButtons = this.queryButtons();
147
167
  const checkedRadioButtons = radioButtons.filter((radioButton) => radioButton.checked);
148
168
  if ((checkedRadioButtons === null || checkedRadioButtons === void 0 ? void 0 : checkedRadioButtons.length) > 1) {
149
169
  const lastCheckedRadioButton = checkedRadioButtons[checkedRadioButtons.length - 1];
@@ -160,16 +180,17 @@ export class CalciteRadioButton {
160
180
  this.calciteInternalRadioButtonCheckedChange.emit();
161
181
  }
162
182
  uncheckAllRadioButtonsInGroup() {
163
- const otherRadioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button")).filter((radioButton) => radioButton.name === this.name);
164
- otherRadioButtons.forEach((otherRadioButton) => {
165
- if (otherRadioButton.checked) {
166
- otherRadioButton.checked = false;
167
- otherRadioButton.focused = false;
183
+ const radioButtons = this.queryButtons();
184
+ radioButtons.forEach((radioButton) => {
185
+ if (radioButton.checked) {
186
+ radioButton.checked = false;
187
+ radioButton.focused = false;
168
188
  }
169
189
  });
170
190
  }
171
191
  uncheckOtherRadioButtonsInGroup() {
172
- const otherRadioButtons = Array.from(this.rootNode.querySelectorAll("calcite-radio-button")).filter((radioButton) => radioButton.name === this.name && radioButton.guid !== this.guid);
192
+ const radioButtons = this.queryButtons();
193
+ const otherRadioButtons = radioButtons.filter((radioButton) => radioButton.guid !== this.guid);
173
194
  otherRadioButtons.forEach((otherRadioButton) => {
174
195
  if (otherRadioButton.checked) {
175
196
  otherRadioButton.checked = false;
@@ -196,28 +217,20 @@ export class CalciteRadioButton {
196
217
  connectedCallback() {
197
218
  this.rootNode = this.el.getRootNode();
198
219
  this.guid = this.el.id || `calcite-radio-button-${guid()}`;
199
- this.initialChecked = this.checked;
200
220
  if (this.name) {
201
221
  this.checkLastRadioButton();
202
222
  }
203
- const form = closestElementCrossShadowBoundary(this.el, "form");
204
- if (form) {
205
- form.addEventListener("reset", this.formResetHandler);
206
- }
207
223
  connectLabel(this);
224
+ connectForm(this);
208
225
  }
209
226
  componentDidLoad() {
210
- this.hideInputEl();
211
227
  if (this.focused) {
212
- this.inputEl.focus();
228
+ this.containerEl.focus();
213
229
  }
214
230
  }
215
231
  disconnectedCallback() {
216
- const form = closestElementCrossShadowBoundary(this.el, "form");
217
- if (form) {
218
- form.removeEventListener("reset", this.formResetHandler);
219
- }
220
232
  disconnectLabel(this);
233
+ disconnectForm(this);
221
234
  }
222
235
  // --------------------------------------------------------------------------
223
236
  //
@@ -225,15 +238,13 @@ export class CalciteRadioButton {
225
238
  //
226
239
  // --------------------------------------------------------------------------
227
240
  render() {
228
- var _a;
229
- const value = (_a = this.value) === null || _a === void 0 ? void 0 : _a.toString();
230
- return (h(Host, { onClick: this.clickHandler },
231
- h("div", { class: CSS.container },
232
- h("input", { "aria-label": getLabelText(this), checked: this.checked, disabled: this.disabled, hidden: this.hidden, id: `${this.guid}-input`, name: this.name, onBlur: this.onInputBlur, onFocus: this.onInputFocus, ref: this.setInputEl, required: this.required, type: "radio", value: value }),
233
- h("calcite-radio", { checked: this.checked, disabled: this.disabled, focused: this.focused, hidden: this.hidden, hovered: this.hovered, scale: this.scale }))));
241
+ return (h(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown },
242
+ h("div", { "aria-checked": this.checked.toString(), "aria-label": getLabelText(this), class: CSS.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, ref: this.setContainerEl, role: "radio", tabIndex: this.checked || this.isDefaultSelectable() ? 0 : -1 },
243
+ h("calcite-radio", { checked: this.checked, disabled: this.disabled, focused: this.focused, hidden: this.hidden, hovered: this.hovered, scale: this.scale })),
244
+ h(HiddenFormInputSlot, { component: this })));
234
245
  }
235
246
  static get is() { return "calcite-radio-button"; }
236
- static get encapsulation() { return "scoped"; }
247
+ static get encapsulation() { return "shadow"; }
237
248
  static get originalStyleUrls() { return {
238
249
  "$": ["calcite-radio-button.scss"]
239
250
  }; }
@@ -434,7 +445,7 @@ export class CalciteRadioButton {
434
445
  },
435
446
  "value": {
436
447
  "type": "any",
437
- "mutable": false,
448
+ "mutable": true,
438
449
  "complexType": {
439
450
  "original": "any",
440
451
  "resolved": "any",
@@ -561,21 +572,9 @@ export class CalciteRadioButton {
561
572
  static get watchers() { return [{
562
573
  "propName": "checked",
563
574
  "methodName": "checkedChanged"
564
- }, {
565
- "propName": "disabled",
566
- "methodName": "disabledChanged"
567
- }, {
568
- "propName": "focused",
569
- "methodName": "focusedChanged"
570
- }, {
571
- "propName": "hidden",
572
- "methodName": "hiddenChanged"
573
575
  }, {
574
576
  "propName": "name",
575
577
  "methodName": "nameChanged"
576
- }, {
577
- "propName": "required",
578
- "methodName": "requiredChanged"
579
578
  }]; }
580
579
  static get listeners() { return [{
581
580
  "name": "mouseenter",
@@ -3,5 +3,5 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  export const CSS = {
6
- container: "calcite-radio-button__container"
6
+ container: "container"
7
7
  };
@@ -121,4 +121,19 @@
121
121
  :host([disabled]) {
122
122
  opacity: var(--calcite-ui-opacity-disabled);
123
123
  pointer-events: none;
124
+ }
125
+
126
+ ::slotted(input[slot=hidden-form-input]) {
127
+ bottom: 0 !important;
128
+ left: 0 !important;
129
+ margin: 0 !important;
130
+ opacity: 0 !important;
131
+ outline: none !important;
132
+ padding: 0 !important;
133
+ position: absolute !important;
134
+ right: 0 !important;
135
+ top: 0 !important;
136
+ transform: none !important;
137
+ -webkit-appearance: none !important;
138
+ z-index: -1 !important;
124
139
  }
@@ -6,6 +6,7 @@ import { Component, Event, h, Listen, Element, Prop, Watch, Host, Build, Method
6
6
  import { getElementDir } from "../../utils/dom";
7
7
  import { getKey } from "../../utils/key";
8
8
  import { connectLabel, disconnectLabel } from "../../utils/label";
9
+ import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
9
10
  /**
10
11
  * @slot - A slot for adding `calcite-radio-group-item`s.
11
12
  */
@@ -20,10 +21,18 @@ export class CalciteRadioGroup {
20
21
  this.appearance = "solid";
21
22
  /** is the radio group disabled */
22
23
  this.disabled = false;
24
+ /**
25
+ * When true, makes the component required for form-submission.
26
+ *
27
+ * @internal
28
+ */
29
+ this.required = false;
23
30
  /** specify the layout of the radio group, defaults to horizontal */
24
31
  this.layout = "horizontal";
25
32
  /** The scale of the radio group */
26
33
  this.scale = "m";
34
+ /** The value of the selectedItem */
35
+ this.value = null;
27
36
  /** specify the width of the group, defaults to auto */
28
37
  this.width = "auto";
29
38
  //--------------------------------------------------------------------------
@@ -36,17 +45,13 @@ export class CalciteRadioGroup {
36
45
  this.selectItem(event.target);
37
46
  }
38
47
  };
39
- this.hiddenInput = (() => {
40
- const input = document.createElement("input");
41
- input.type = "hidden";
42
- this.el.appendChild(input);
43
- return input;
44
- })();
45
48
  }
46
- handleNameChange(value) {
47
- this.hiddenInput.name = value;
49
+ valueHandler(value) {
50
+ const items = this.getItems();
51
+ items.forEach((item) => (item.checked = item.value === value));
48
52
  }
49
53
  handleSelectedItemChange(newItem, oldItem) {
54
+ this.value = newItem === null || newItem === void 0 ? void 0 : newItem.value;
50
55
  if (newItem === oldItem) {
51
56
  return;
52
57
  }
@@ -78,24 +83,20 @@ export class CalciteRadioGroup {
78
83
  else if (items[0]) {
79
84
  items[0].tabIndex = 0;
80
85
  }
81
- const { hiddenInput, name } = this;
82
- if (name) {
83
- hiddenInput.name = name;
84
- }
85
- if (lastChecked) {
86
- hiddenInput.value = lastChecked.value;
87
- }
88
86
  connectLabel(this);
87
+ connectForm(this);
89
88
  }
90
89
  disconnectedCallback() {
91
90
  disconnectLabel(this);
91
+ disconnectForm(this);
92
92
  }
93
93
  componentDidLoad() {
94
94
  this.hasLoaded = true;
95
95
  }
96
96
  render() {
97
97
  return (h(Host, { onClick: this.handleClick, role: "radiogroup", tabIndex: this.disabled ? -1 : null },
98
- h("slot", null)));
98
+ h("slot", null),
99
+ h(HiddenFormInputSlot, { component: this })));
99
100
  }
100
101
  handleSelected(event) {
101
102
  // only fire after initial setup to prevent semi-infinite loops
@@ -187,14 +188,10 @@ export class CalciteRadioGroup {
187
188
  }
188
189
  });
189
190
  this.selectedItem = match;
190
- this.syncWithInputProxy(match);
191
191
  if (Build.isBrowser && match) {
192
192
  match.focus();
193
193
  }
194
194
  }
195
- syncWithInputProxy(item) {
196
- this.hiddenInput.value = item ? item.value : "";
197
- }
198
195
  static get is() { return "calcite-radio-group"; }
199
196
  static get encapsulation() { return "shadow"; }
200
197
  static get originalStyleUrls() { return {
@@ -245,6 +242,27 @@ export class CalciteRadioGroup {
245
242
  "reflect": true,
246
243
  "defaultValue": "false"
247
244
  },
245
+ "required": {
246
+ "type": "boolean",
247
+ "mutable": false,
248
+ "complexType": {
249
+ "original": "boolean",
250
+ "resolved": "boolean",
251
+ "references": {}
252
+ },
253
+ "required": false,
254
+ "optional": false,
255
+ "docs": {
256
+ "tags": [{
257
+ "name": "internal",
258
+ "text": undefined
259
+ }],
260
+ "text": "When true, makes the component required for form-submission."
261
+ },
262
+ "attribute": "required",
263
+ "reflect": true,
264
+ "defaultValue": "false"
265
+ },
248
266
  "layout": {
249
267
  "type": "string",
250
268
  "mutable": false,
@@ -308,6 +326,24 @@ export class CalciteRadioGroup {
308
326
  "reflect": true,
309
327
  "defaultValue": "\"m\""
310
328
  },
329
+ "value": {
330
+ "type": "string",
331
+ "mutable": true,
332
+ "complexType": {
333
+ "original": "string",
334
+ "resolved": "string",
335
+ "references": {}
336
+ },
337
+ "required": false,
338
+ "optional": false,
339
+ "docs": {
340
+ "tags": [],
341
+ "text": "The value of the selectedItem"
342
+ },
343
+ "attribute": "value",
344
+ "reflect": false,
345
+ "defaultValue": "null"
346
+ },
311
347
  "selectedItem": {
312
348
  "type": "unknown",
313
349
  "mutable": true,
@@ -390,8 +426,8 @@ export class CalciteRadioGroup {
390
426
  }; }
391
427
  static get elementRef() { return "el"; }
392
428
  static get watchers() { return [{
393
- "propName": "name",
394
- "methodName": "handleNameChange"
429
+ "propName": "value",
430
+ "methodName": "valueHandler"
395
431
  }, {
396
432
  "propName": "selectedItem",
397
433
  "methodName": "handleSelectedItemChange"
@@ -225,4 +225,19 @@ calcite-chip {
225
225
  clip: rect(0, 0, 0, 0);
226
226
  white-space: nowrap;
227
227
  border-width: 0;
228
+ }
229
+
230
+ ::slotted(input[slot=hidden-form-input]) {
231
+ bottom: 0 !important;
232
+ left: 0 !important;
233
+ margin: 0 !important;
234
+ opacity: 0 !important;
235
+ outline: none !important;
236
+ padding: 0 !important;
237
+ position: absolute !important;
238
+ right: 0 !important;
239
+ top: 0 !important;
240
+ transform: none !important;
241
+ -webkit-appearance: none !important;
242
+ z-index: -1 !important;
228
243
  }
@@ -6,6 +6,7 @@ import { Component, Element, Event, Fragment, h, Listen, Method, Prop, State } f
6
6
  import { getElementDir } from "../../utils/dom";
7
7
  import { guid } from "../../utils/guid";
8
8
  import { connectLabel, disconnectLabel } from "../../utils/label";
9
+ import { connectForm, disconnectForm, HiddenFormInputSlot } from "../../utils/form";
9
10
  import { TEXT } from "./resources";
10
11
  import { CSS_UTILITY } from "../../utils/resources";
11
12
  export class CalciteRating {
@@ -33,6 +34,12 @@ export class CalciteRating {
33
34
  * @default "Stars: ${num}"
34
35
  */
35
36
  this.intlStars = TEXT.stars;
37
+ /**
38
+ * When true, makes the component required for form-submission.
39
+ *
40
+ * @internal
41
+ */
42
+ this.required = false;
36
43
  this.guid = `calcite-ratings-${guid()}`;
37
44
  }
38
45
  //--------------------------------------------------------------------------
@@ -42,9 +49,11 @@ export class CalciteRating {
42
49
  //--------------------------------------------------------------------------
43
50
  connectedCallback() {
44
51
  connectLabel(this);
52
+ connectForm(this);
45
53
  }
46
54
  disconnectedCallback() {
47
55
  disconnectLabel(this);
56
+ disconnectForm(this);
48
57
  }
49
58
  //--------------------------------------------------------------------------
50
59
  //
@@ -93,7 +102,8 @@ export class CalciteRating {
93
102
  !!count && h("span", { class: "number--count" },
94
103
  "(", count === null || count === void 0 ? void 0 :
95
104
  count.toString(),
96
- ")"))) : null));
105
+ ")"))) : null,
106
+ h(HiddenFormInputSlot, { component: this })));
97
107
  }
98
108
  //--------------------------------------------------------------------------
99
109
  //
@@ -254,6 +264,23 @@ export class CalciteRating {
254
264
  "attribute": "average",
255
265
  "reflect": true
256
266
  },
267
+ "name": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "The name of the rating"
280
+ },
281
+ "attribute": "name",
282
+ "reflect": true
283
+ },
257
284
  "intlRating": {
258
285
  "type": "string",
259
286
  "mutable": false,
@@ -295,6 +322,27 @@ export class CalciteRating {
295
322
  "attribute": "intl-stars",
296
323
  "reflect": false,
297
324
  "defaultValue": "TEXT.stars"
325
+ },
326
+ "required": {
327
+ "type": "boolean",
328
+ "mutable": false,
329
+ "complexType": {
330
+ "original": "boolean",
331
+ "resolved": "boolean",
332
+ "references": {}
333
+ },
334
+ "required": false,
335
+ "optional": false,
336
+ "docs": {
337
+ "tags": [{
338
+ "name": "internal",
339
+ "text": undefined
340
+ }],
341
+ "text": "When true, makes the component required for form-submission."
342
+ },
343
+ "attribute": "required",
344
+ "reflect": true,
345
+ "defaultValue": "false"
298
346
  }
299
347
  }; }
300
348
  static get states() { return {
@@ -242,4 +242,19 @@ select:disabled {
242
242
 
243
243
  .select:focus ~ .icon-container {
244
244
  border-color: transparent;
245
+ }
246
+
247
+ ::slotted(input[slot=hidden-form-input]) {
248
+ bottom: 0 !important;
249
+ left: 0 !important;
250
+ margin: 0 !important;
251
+ opacity: 0 !important;
252
+ outline: none !important;
253
+ padding: 0 !important;
254
+ position: absolute !important;
255
+ right: 0 !important;
256
+ top: 0 !important;
257
+ transform: none !important;
258
+ -webkit-appearance: none !important;
259
+ z-index: -1 !important;
245
260
  }