@esri/calcite-components 1.0.0-beta.69 → 1.0.0-beta.72

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 (1096) hide show
  1. package/dist/calcite/assets/calcite-icon/centerAlign16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/centerAlign24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/centerAlign32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/checkExtent16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/checkExtent24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/checkExtent32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/cloudy16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/cloudy24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/cloudy32.json +1 -0
  10. package/dist/calcite/assets/calcite-icon/convert16.json +1 -0
  11. package/dist/calcite/assets/calcite-icon/convert24.json +1 -0
  12. package/dist/calcite/assets/calcite-icon/convert32.json +1 -0
  13. package/dist/calcite/assets/calcite-icon/displaySelectionLock16.json +1 -0
  14. package/dist/calcite/assets/calcite-icon/displaySelectionLock24.json +1 -0
  15. package/dist/calcite/assets/calcite-icon/displaySelectionLock32.json +1 -0
  16. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
  17. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
  18. package/dist/calcite/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
  19. package/dist/calcite/assets/calcite-icon/driveTime16.json +1 -0
  20. package/dist/calcite/assets/calcite-icon/driveTime24.json +1 -0
  21. package/dist/calcite/assets/calcite-icon/driveTime32.json +1 -0
  22. package/dist/calcite/assets/calcite-icon/driveTimeLargest16.json +1 -0
  23. package/dist/calcite/assets/calcite-icon/driveTimeLargest24.json +1 -0
  24. package/dist/calcite/assets/calcite-icon/driveTimeLargest32.json +1 -0
  25. package/dist/calcite/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  26. package/dist/calcite/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  27. package/dist/calcite/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  28. package/dist/calcite/assets/calcite-icon/driveTimeThreshold16.json +1 -0
  29. package/dist/calcite/assets/calcite-icon/driveTimeThreshold24.json +1 -0
  30. package/dist/calcite/assets/calcite-icon/driveTimeThreshold32.json +1 -0
  31. package/dist/calcite/assets/calcite-icon/driveTimeXBar16.json +1 -0
  32. package/dist/calcite/assets/calcite-icon/driveTimeXBar24.json +1 -0
  33. package/dist/calcite/assets/calcite-icon/driveTimeXBar32.json +1 -0
  34. package/dist/calcite/assets/calcite-icon/fog16.json +1 -0
  35. package/dist/calcite/assets/calcite-icon/fog24.json +1 -0
  36. package/dist/calcite/assets/calcite-icon/fog32.json +1 -0
  37. package/dist/calcite/assets/calcite-icon/formDropdown16.json +1 -0
  38. package/dist/calcite/assets/calcite-icon/formDropdown24.json +1 -0
  39. package/dist/calcite/assets/calcite-icon/formDropdown32.json +1 -0
  40. package/dist/calcite/assets/calcite-icon/groupItems16.json +1 -0
  41. package/dist/calcite/assets/calcite-icon/groupItems24.json +1 -0
  42. package/dist/calcite/assets/calcite-icon/groupItems32.json +1 -0
  43. package/dist/calcite/assets/calcite-icon/groupLayoutElements16.json +1 -0
  44. package/dist/calcite/assets/calcite-icon/groupLayoutElements24.json +1 -0
  45. package/dist/calcite/assets/calcite-icon/groupLayoutElements32.json +1 -0
  46. package/dist/calcite/assets/calcite-icon/heavyRain16.json +1 -0
  47. package/dist/calcite/assets/calcite-icon/heavyRain24.json +1 -0
  48. package/dist/calcite/assets/calcite-icon/heavyRain32.json +1 -0
  49. package/dist/calcite/assets/calcite-icon/heavySnow16.json +1 -0
  50. package/dist/calcite/assets/calcite-icon/heavySnow24.json +1 -0
  51. package/dist/calcite/assets/calcite-icon/heavySnow32.json +1 -0
  52. package/dist/calcite/assets/calcite-icon/language16.json +1 -0
  53. package/dist/calcite/assets/calcite-icon/language24.json +1 -0
  54. package/dist/calcite/assets/calcite-icon/language32.json +1 -0
  55. package/dist/calcite/assets/calcite-icon/languageTranslate16.json +1 -0
  56. package/dist/calcite/assets/calcite-icon/languageTranslate24.json +1 -0
  57. package/dist/calcite/assets/calcite-icon/languageTranslate32.json +1 -0
  58. package/dist/calcite/assets/calcite-icon/leftAlign16.json +1 -0
  59. package/dist/calcite/assets/calcite-icon/leftAlign24.json +1 -0
  60. package/dist/calcite/assets/calcite-icon/leftAlign32.json +1 -0
  61. package/dist/calcite/assets/calcite-icon/lightRain16.json +1 -0
  62. package/dist/calcite/assets/calcite-icon/lightRain24.json +1 -0
  63. package/dist/calcite/assets/calcite-icon/lightRain32.json +1 -0
  64. package/dist/calcite/assets/calcite-icon/lightSnow16.json +1 -0
  65. package/dist/calcite/assets/calcite-icon/lightSnow24.json +1 -0
  66. package/dist/calcite/assets/calcite-icon/lightSnow32.json +1 -0
  67. package/dist/calcite/assets/calcite-icon/partlyCloud16.json +1 -0
  68. package/dist/calcite/assets/calcite-icon/partlyCloud24.json +1 -0
  69. package/dist/calcite/assets/calcite-icon/partlyCloud32.json +1 -0
  70. package/dist/calcite/assets/calcite-icon/rain16.json +1 -0
  71. package/dist/calcite/assets/calcite-icon/rain24.json +1 -0
  72. package/dist/calcite/assets/calcite-icon/rain32.json +1 -0
  73. package/dist/calcite/assets/calcite-icon/rainSnow16.json +1 -0
  74. package/dist/calcite/assets/calcite-icon/rainSnow24.json +1 -0
  75. package/dist/calcite/assets/calcite-icon/rainSnow32.json +1 -0
  76. package/dist/calcite/assets/calcite-icon/rainThunder16.json +1 -0
  77. package/dist/calcite/assets/calcite-icon/rainThunder24.json +1 -0
  78. package/dist/calcite/assets/calcite-icon/rainThunder32.json +1 -0
  79. package/dist/calcite/assets/calcite-icon/ringsLargest16.json +1 -0
  80. package/dist/calcite/assets/calcite-icon/ringsLargest24.json +1 -0
  81. package/dist/calcite/assets/calcite-icon/ringsLargest32.json +1 -0
  82. package/dist/calcite/assets/calcite-icon/ringsSmallest16.json +1 -0
  83. package/dist/calcite/assets/calcite-icon/ringsSmallest24.json +1 -0
  84. package/dist/calcite/assets/calcite-icon/ringsSmallest32.json +1 -0
  85. package/dist/calcite/assets/calcite-icon/ringsThreshold16.json +1 -0
  86. package/dist/calcite/assets/calcite-icon/ringsThreshold24.json +1 -0
  87. package/dist/calcite/assets/calcite-icon/ringsThreshold32.json +1 -0
  88. package/dist/calcite/assets/calcite-icon/ringsXBar16.json +1 -0
  89. package/dist/calcite/assets/calcite-icon/ringsXBar24.json +1 -0
  90. package/dist/calcite/assets/calcite-icon/ringsXBar32.json +1 -0
  91. package/dist/calcite/assets/calcite-icon/selectVisible16.json +1 -0
  92. package/dist/calcite/assets/calcite-icon/selectVisible24.json +1 -0
  93. package/dist/calcite/assets/calcite-icon/selectVisible32.json +1 -0
  94. package/dist/calcite/assets/calcite-icon/snow16.json +1 -0
  95. package/dist/calcite/assets/calcite-icon/snow24.json +1 -0
  96. package/dist/calcite/assets/calcite-icon/snow32.json +1 -0
  97. package/dist/calcite/assets/calcite-icon/snowThunder16.json +1 -0
  98. package/dist/calcite/assets/calcite-icon/snowThunder24.json +1 -0
  99. package/dist/calcite/assets/calcite-icon/snowThunder32.json +1 -0
  100. package/dist/calcite/assets/calcite-icon/terminal16.json +1 -0
  101. package/dist/calcite/assets/calcite-icon/terminal24.json +1 -0
  102. package/dist/calcite/assets/calcite-icon/terminal32.json +1 -0
  103. package/dist/calcite/assets/calcite-icon/touch16.json +1 -0
  104. package/dist/calcite/assets/calcite-icon/touch24.json +1 -0
  105. package/dist/calcite/assets/calcite-icon/touch32.json +1 -0
  106. package/dist/calcite/assets/calcite-icon/ungroupItems16.json +1 -0
  107. package/dist/calcite/assets/calcite-icon/ungroupItems24.json +1 -0
  108. package/dist/calcite/assets/calcite-icon/ungroupItems32.json +1 -0
  109. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  110. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  111. package/dist/calcite/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  112. package/dist/calcite/calcite.css +1 -1
  113. package/dist/calcite/calcite.esm.js +1 -1
  114. package/dist/calcite/calcite.js +1 -1
  115. package/dist/calcite/p-0229a408.js +5 -0
  116. package/dist/calcite/p-04cc8259.entry.js +5 -0
  117. package/dist/calcite/p-057197f8.entry.js +5 -0
  118. package/dist/calcite/p-05c10c53.entry.js +5 -0
  119. package/dist/calcite/p-05edaadf.system.entry.js +5 -0
  120. package/dist/calcite/p-06ddf228.entry.js +5 -0
  121. package/dist/calcite/p-0b45733b.entry.js +5 -0
  122. package/dist/calcite/{p-d11ad046.system.js → p-0f2b51bf.system.js} +1 -1
  123. package/dist/calcite/p-112f20e6.system.entry.js +5 -0
  124. package/dist/calcite/p-11f01c0a.entry.js +5 -0
  125. package/dist/calcite/p-18d9a261.system.js +5 -0
  126. package/dist/calcite/p-1942876c.js +5 -0
  127. package/dist/calcite/{p-3f1d1bad.entry.js → p-2151c991.entry.js} +1 -1
  128. package/dist/calcite/{p-f281f1e9.entry.js → p-27d9be53.entry.js} +1 -1
  129. package/dist/calcite/p-288899b9.entry.js +5 -0
  130. package/dist/calcite/p-288bc438.system.js +5 -0
  131. package/dist/calcite/p-2b294f8e.system.entry.js +5 -0
  132. package/dist/calcite/{p-c60e3a71.entry.js → p-2be1e8ee.entry.js} +1 -1
  133. package/dist/calcite/p-2d09cc25.js +5 -0
  134. package/dist/calcite/p-2d939f9e.system.entry.js +5 -0
  135. package/dist/calcite/p-2e29554c.js +5 -0
  136. package/dist/calcite/p-2fbd50f3.system.entry.js +5 -0
  137. package/dist/calcite/p-30036f23.system.entry.js +5 -0
  138. package/dist/calcite/{p-25a31861.system.js → p-34e5baa7.system.js} +1 -1
  139. package/dist/calcite/p-35a5c74c.system.js +5 -0
  140. package/dist/calcite/p-3739338a.system.entry.js +5 -0
  141. package/dist/calcite/p-3c25cb72.system.entry.js +5 -0
  142. package/dist/calcite/p-3d8ee39d.system.entry.js +5 -0
  143. package/dist/calcite/p-3e9c6068.entry.js +5 -0
  144. package/dist/calcite/p-3f8527a3.entry.js +5 -0
  145. package/dist/calcite/p-40991717.entry.js +5 -0
  146. package/dist/calcite/p-40e16f41.entry.js +5 -0
  147. package/dist/calcite/p-4278fb57.entry.js +5 -0
  148. package/dist/calcite/p-444ecda9.entry.js +5 -0
  149. package/dist/calcite/p-44cce7a3.system.entry.js +5 -0
  150. package/dist/calcite/p-4d02c6c0.system.entry.js +5 -0
  151. package/dist/calcite/{p-4035444d.system.js → p-4e9d072a.system.js} +1 -1
  152. package/dist/calcite/p-4f1f716a.system.entry.js +5 -0
  153. package/dist/calcite/p-4f7ebefc.system.js +5 -0
  154. package/dist/calcite/p-523bc291.system.js +5 -0
  155. package/dist/calcite/p-55f68e28.entry.js +5 -0
  156. package/dist/calcite/p-57169a74.entry.js +5 -0
  157. package/dist/calcite/p-5c9d89ce.system.entry.js +5 -0
  158. package/dist/calcite/p-62f3d4df.system.js +5 -0
  159. package/dist/calcite/p-63b9f804.entry.js +5 -0
  160. package/dist/calcite/p-66fda99e.entry.js +5 -0
  161. package/dist/calcite/p-689790cb.system.entry.js +5 -0
  162. package/dist/calcite/p-69bd1f5f.system.entry.js +5 -0
  163. package/dist/calcite/p-6a87d7b2.entry.js +5 -0
  164. package/dist/calcite/p-6faaa8af.system.entry.js +5 -0
  165. package/dist/calcite/p-6fb63fc1.entry.js +5 -0
  166. package/dist/calcite/p-72a60528.system.entry.js +5 -0
  167. package/dist/calcite/p-763479d6.system.entry.js +5 -0
  168. package/dist/calcite/p-768018df.entry.js +5 -0
  169. package/dist/calcite/p-76eda40b.entry.js +5 -0
  170. package/dist/calcite/p-7ac9f860.entry.js +5 -0
  171. package/dist/calcite/p-7ff5e336.entry.js +5 -0
  172. package/dist/calcite/{p-45257edb.js → p-8340b572.js} +1 -1
  173. package/dist/calcite/p-83744979.system.js +5 -0
  174. package/dist/calcite/p-87327c2f.system.entry.js +5 -0
  175. package/dist/calcite/p-88296be9.system.entry.js +5 -0
  176. package/dist/calcite/p-88b31760.system.entry.js +5 -0
  177. package/dist/calcite/p-8a8982ab.system.entry.js +5 -0
  178. package/dist/calcite/p-8c4b6059.system.entry.js +5 -0
  179. package/dist/calcite/p-8ebc2d51.entry.js +5 -0
  180. package/dist/calcite/p-9180be05.system.entry.js +5 -0
  181. package/dist/calcite/p-93a189be.entry.js +5 -0
  182. package/dist/calcite/p-97117a5d.entry.js +5 -0
  183. package/dist/calcite/p-97efd284.system.entry.js +5 -0
  184. package/dist/calcite/p-998829cb.system.entry.js +5 -0
  185. package/dist/calcite/p-9a1ffbad.system.entry.js +5 -0
  186. package/dist/calcite/p-9a8f3883.entry.js +5 -0
  187. package/dist/calcite/p-9b979692.entry.js +5 -0
  188. package/dist/calcite/p-9fc14d49.entry.js +5 -0
  189. package/dist/calcite/p-9feb0f5a.system.entry.js +5 -0
  190. package/dist/calcite/p-a2a22cbc.entry.js +5 -0
  191. package/dist/calcite/p-a3c498de.entry.js +5 -0
  192. package/dist/calcite/p-a4784cf3.system.entry.js +5 -0
  193. package/dist/calcite/p-a4a12ffb.system.entry.js +5 -0
  194. package/dist/calcite/p-a6f99f79.entry.js +5 -0
  195. package/dist/calcite/p-a98344e2.system.entry.js +5 -0
  196. package/dist/calcite/p-a9f596be.system.entry.js +5 -0
  197. package/dist/calcite/p-adf4699d.system.entry.js +5 -0
  198. package/dist/calcite/p-b180d943.system.entry.js +5 -0
  199. package/dist/calcite/p-b2f0596f.entry.js +5 -0
  200. package/dist/calcite/p-b437a8eb.system.entry.js +5 -0
  201. package/dist/calcite/p-b43e699c.system.entry.js +5 -0
  202. package/dist/calcite/p-ba7c0f01.system.entry.js +5 -0
  203. package/dist/calcite/p-bca0b34f.entry.js +5 -0
  204. package/dist/calcite/p-bd091b49.system.entry.js +5 -0
  205. package/dist/calcite/p-bdca5372.entry.js +5 -0
  206. package/dist/calcite/p-bfa6bd72.entry.js +5 -0
  207. package/dist/calcite/p-c00b1d26.js +5 -0
  208. package/dist/calcite/p-c2bfd7f9.system.entry.js +5 -0
  209. package/dist/calcite/p-c2fcf603.system.entry.js +5 -0
  210. package/dist/calcite/p-c70bacc8.system.entry.js +5 -0
  211. package/dist/calcite/p-c8c6323c.entry.js +5 -0
  212. package/dist/calcite/p-cb660e54.entry.js +5 -0
  213. package/dist/calcite/p-cd5d5756.system.entry.js +5 -0
  214. package/dist/calcite/p-ce704ece.js +5 -0
  215. package/dist/calcite/p-cf499949.entry.js +5 -0
  216. package/dist/calcite/p-d17cfab3.entry.js +5 -0
  217. package/dist/calcite/{p-809ddb6a.js → p-d3bd900e.js} +1 -1
  218. package/dist/calcite/p-d3db2b58.system.entry.js +5 -0
  219. package/dist/calcite/p-d4d5665a.system.entry.js +5 -0
  220. package/dist/calcite/p-d8039e8a.system.entry.js +5 -0
  221. package/dist/calcite/p-d9414082.system.entry.js +5 -0
  222. package/dist/calcite/p-dc7124e9.entry.js +5 -0
  223. package/dist/calcite/p-dc777403.system.entry.js +5 -0
  224. package/dist/calcite/p-dda22c7e.system.entry.js +5 -0
  225. package/dist/calcite/p-de67ba93.system.entry.js +5 -0
  226. package/dist/calcite/{p-aad45edf.system.js → p-e095517f.system.js} +1 -1
  227. package/dist/calcite/p-e09bac0d.system.entry.js +5 -0
  228. package/dist/calcite/p-e0b1e90c.entry.js +5 -0
  229. package/dist/calcite/p-e35b29f5.system.entry.js +5 -0
  230. package/dist/calcite/p-e54784a8.system.entry.js +5 -0
  231. package/dist/calcite/p-e63c6a55.system.entry.js +5 -0
  232. package/dist/calcite/p-e697ab57.system.entry.js +5 -0
  233. package/dist/calcite/{p-5efd7297.entry.js → p-e7801f1d.entry.js} +1 -1
  234. package/dist/calcite/{p-f07d3627.js → p-e7f7b0f8.js} +1 -1
  235. package/dist/calcite/p-eebd2bb0.entry.js +5 -0
  236. package/dist/calcite/p-f1f65708.entry.js +5 -0
  237. package/dist/calcite/p-f2340d02.system.entry.js +5 -0
  238. package/dist/calcite/p-f25f139a.entry.js +5 -0
  239. package/dist/calcite/p-f28d8e9e.system.entry.js +5 -0
  240. package/dist/calcite/p-f2f2ad57.entry.js +5 -0
  241. package/dist/calcite/p-f39dc5fd.entry.js +5 -0
  242. package/dist/calcite/p-f4a7fa43.entry.js +5 -0
  243. package/dist/calcite/p-f595d924.js +5 -0
  244. package/dist/calcite/{p-e7819705.entry.js → p-f72c037c.entry.js} +1 -1
  245. package/dist/calcite/p-f9e7371d.entry.js +5 -0
  246. package/dist/calcite/p-fc265aaf.entry.js +5 -0
  247. package/dist/calcite/p-fc9025a2.entry.js +5 -0
  248. package/dist/calcite/p-fd255a24.entry.js +5 -0
  249. package/dist/calcite/p-fd94e88d.system.entry.js +5 -0
  250. package/dist/cjs/{CalciteExpandToggle-6a9f9858.js → CalciteExpandToggle-d654421a.js} +2 -2
  251. package/dist/cjs/{CalciteHeading-363b0525.js → CalciteHeading-112c19f9.js} +1 -1
  252. package/dist/cjs/calcite-accordion_2.cjs.entry.js +9 -7
  253. package/dist/cjs/calcite-action-bar.cjs.entry.js +27 -3
  254. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
  255. package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
  256. package/dist/cjs/calcite-action-pad.cjs.entry.js +4 -9
  257. package/dist/cjs/calcite-action.cjs.entry.js +2 -2
  258. package/dist/cjs/calcite-alert.cjs.entry.js +21 -11
  259. package/dist/cjs/calcite-avatar.cjs.entry.js +5 -6
  260. package/dist/cjs/calcite-block_2.cjs.entry.js +12 -10
  261. package/dist/cjs/calcite-button.cjs.entry.js +11 -6
  262. package/dist/cjs/calcite-card.cjs.entry.js +4 -8
  263. package/dist/cjs/calcite-checkbox.cjs.entry.js +35 -84
  264. package/dist/cjs/calcite-chip.cjs.entry.js +4 -5
  265. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +62 -64
  266. package/dist/cjs/calcite-combobox_3.cjs.entry.js +89 -35
  267. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +70 -42
  268. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -20
  269. package/dist/cjs/calcite-fab.cjs.entry.js +4 -5
  270. package/dist/cjs/calcite-filter.cjs.entry.js +4 -19
  271. package/dist/cjs/calcite-flow.cjs.entry.js +2 -2
  272. package/dist/cjs/calcite-graph_2.cjs.entry.js +63 -35
  273. package/dist/cjs/calcite-handle.cjs.entry.js +2 -2
  274. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  275. package/dist/cjs/calcite-inline-editable.cjs.entry.js +50 -41
  276. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +87 -22
  277. package/dist/cjs/calcite-input-message.cjs.entry.js +3 -4
  278. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +384 -250
  279. package/dist/cjs/calcite-input.cjs.entry.js +109 -77
  280. package/dist/cjs/calcite-label.cjs.entry.js +3 -6
  281. package/dist/cjs/calcite-link.cjs.entry.js +3 -3
  282. package/dist/cjs/calcite-list_3.cjs.entry.js +5 -5
  283. package/dist/cjs/calcite-loader.cjs.entry.js +2 -2
  284. package/dist/cjs/calcite-modal.cjs.entry.js +5 -7
  285. package/dist/cjs/calcite-notice.cjs.entry.js +3 -4
  286. package/dist/cjs/calcite-option_3.cjs.entry.js +39 -11
  287. package/dist/cjs/calcite-pagination.cjs.entry.js +4 -7
  288. package/dist/cjs/calcite-panel.cjs.entry.js +12 -14
  289. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +7 -9
  290. package/dist/cjs/calcite-popover_2.cjs.entry.js +6 -8
  291. package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
  292. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +2 -2
  293. package/dist/cjs/calcite-radio-button.cjs.entry.js +260 -0
  294. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +42 -56
  295. package/dist/cjs/calcite-rating.cjs.entry.js +14 -6
  296. package/dist/cjs/calcite-scrim.cjs.entry.js +2 -2
  297. package/dist/cjs/calcite-shell_3.cjs.entry.js +172 -12
  298. package/dist/cjs/calcite-sortable-list.cjs.entry.js +2 -2
  299. package/dist/cjs/calcite-split-button.cjs.entry.js +5 -6
  300. package/dist/cjs/calcite-stepper_2.cjs.entry.js +6 -8
  301. package/dist/cjs/calcite-switch.cjs.entry.js +24 -50
  302. package/dist/cjs/calcite-tab_4.cjs.entry.js +9 -12
  303. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -10
  304. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  305. package/dist/cjs/calcite-tip_3.cjs.entry.js +5 -5
  306. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +5 -6
  307. package/dist/cjs/calcite-tree_2.cjs.entry.js +4 -5
  308. package/dist/cjs/calcite-value-list_2.cjs.entry.js +4 -4
  309. package/dist/cjs/calcite.cjs.js +3 -3
  310. package/dist/cjs/form-a5b44a1f.js +179 -0
  311. package/dist/cjs/{index-cee0daa9.js → index-6b5d2de5.js} +8 -365
  312. package/dist/cjs/loader.cjs.js +3 -3
  313. package/dist/cjs/{locale-69dc9583.js → locale-33c458dc.js} +1 -1
  314. package/dist/cjs/math-145c80e2.js +21 -0
  315. package/dist/cjs/{number-e6448e15.js → number-73f7b474.js} +17 -4
  316. package/dist/cjs/{popper-87bf13e6.js → popper-a7580aca.js} +90 -64
  317. package/dist/cjs/{resources-38563593.js → resources-16974e48.js} +4 -3
  318. package/dist/cjs/{resources-f9c141d2.js → resources-6c4b32ef.js} +5 -5
  319. package/dist/collection/collection-manifest.json +9 -11
  320. package/dist/collection/components/calcite-accordion/calcite-accordion.css +5 -1
  321. package/dist/collection/components/calcite-accordion/calcite-accordion.js +1 -2
  322. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.css +10 -23
  323. package/dist/collection/components/calcite-accordion-item/calcite-accordion-item.js +4 -2
  324. package/dist/collection/components/calcite-action/calcite-action.css +5 -1
  325. package/dist/collection/components/calcite-action-bar/calcite-action-bar.css +5 -1
  326. package/dist/collection/components/calcite-action-bar/calcite-action-bar.js +3 -0
  327. package/dist/collection/components/calcite-action-group/calcite-action-group.css +5 -1
  328. package/dist/collection/components/calcite-action-menu/calcite-action-menu.css +5 -1
  329. package/dist/collection/components/calcite-action-pad/calcite-action-pad.css +7 -8
  330. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +2 -8
  331. package/dist/collection/components/calcite-alert/calcite-alert.css +29 -40
  332. package/dist/collection/components/calcite-alert/calcite-alert.js +21 -10
  333. package/dist/collection/components/calcite-avatar/calcite-avatar.css +5 -1
  334. package/dist/collection/components/calcite-avatar/calcite-avatar.js +2 -4
  335. package/dist/collection/components/calcite-block/calcite-block.css +17 -35
  336. package/dist/collection/components/calcite-block/calcite-block.js +10 -9
  337. package/dist/collection/components/calcite-block-section/calcite-block-section.css +7 -13
  338. package/dist/collection/components/calcite-block-section/calcite-block-section.js +1 -2
  339. package/dist/collection/components/calcite-button/calcite-button.css +44 -72
  340. package/dist/collection/components/calcite-button/calcite-button.js +9 -6
  341. package/dist/collection/components/calcite-button/resources.js +3 -1
  342. package/dist/collection/components/calcite-card/calcite-card.css +6 -7
  343. package/dist/collection/components/calcite-card/calcite-card.js +2 -6
  344. package/dist/collection/components/calcite-checkbox/calcite-checkbox.css +27 -12
  345. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +63 -112
  346. package/dist/collection/components/calcite-chip/calcite-chip.css +18 -39
  347. package/dist/collection/components/calcite-chip/calcite-chip.js +3 -5
  348. package/dist/collection/components/calcite-color-picker/calcite-color-picker.css +7 -8
  349. package/dist/collection/components/calcite-color-picker/calcite-color-picker.js +12 -18
  350. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.css +5 -1
  351. package/dist/collection/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.js +14 -20
  352. package/dist/collection/components/calcite-color-picker-swatch/calcite-color-picker-swatch.css +5 -1
  353. package/dist/collection/components/calcite-combobox/calcite-combobox.css +24 -13
  354. package/dist/collection/components/calcite-combobox/calcite-combobox.js +145 -28
  355. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.css +7 -14
  356. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +2 -5
  357. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.css +7 -19
  358. package/dist/collection/components/calcite-combobox-item-group/calcite-combobox-item-group.js +3 -5
  359. package/dist/collection/components/calcite-date-picker/calcite-date-picker.css +5 -1
  360. package/dist/collection/components/calcite-date-picker/calcite-date-picker.js +91 -25
  361. package/dist/collection/components/calcite-date-picker/resources.js +2 -1
  362. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.css +27 -9
  363. package/dist/collection/components/calcite-date-picker-day/calcite-date-picker-day.js +1 -2
  364. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.css +5 -1
  365. package/dist/collection/components/calcite-date-picker-month/calcite-date-picker-month.js +6 -9
  366. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.css +5 -1
  367. package/dist/collection/components/calcite-date-picker-month-header/calcite-date-picker-month-header.js +25 -11
  368. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +5 -28
  369. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +6 -9
  370. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.css +5 -1
  371. package/dist/collection/components/calcite-dropdown-group/calcite-dropdown-group.js +2 -3
  372. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.css +41 -124
  373. package/dist/collection/components/calcite-dropdown-item/calcite-dropdown-item.js +4 -8
  374. package/dist/collection/components/calcite-fab/calcite-fab.css +5 -1
  375. package/dist/collection/components/calcite-fab/calcite-fab.js +3 -4
  376. package/dist/collection/components/calcite-filter/calcite-filter.css +8 -22
  377. package/dist/collection/components/calcite-filter/calcite-filter.js +7 -43
  378. package/dist/collection/components/calcite-flow/calcite-flow.css +5 -1
  379. package/dist/collection/components/calcite-flow/calcite-flow.js +1 -1
  380. package/dist/collection/components/calcite-graph/calcite-graph.css +5 -1
  381. package/dist/collection/components/calcite-graph/calcite-graph.js +2 -2
  382. package/dist/collection/components/calcite-handle/calcite-handle.css +5 -1
  383. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign16.json +1 -0
  384. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign24.json +1 -0
  385. package/dist/collection/components/calcite-icon/assets/calcite-icon/centerAlign32.json +1 -0
  386. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent16.json +1 -0
  387. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent24.json +1 -0
  388. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkExtent32.json +1 -0
  389. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy16.json +1 -0
  390. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy24.json +1 -0
  391. package/dist/collection/components/calcite-icon/assets/calcite-icon/cloudy32.json +1 -0
  392. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert16.json +1 -0
  393. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert24.json +1 -0
  394. package/dist/collection/components/calcite-icon/assets/calcite-icon/convert32.json +1 -0
  395. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock16.json +1 -0
  396. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock24.json +1 -0
  397. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionLock32.json +1 -0
  398. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock16.json +1 -0
  399. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock24.json +1 -0
  400. package/dist/collection/components/calcite-icon/assets/calcite-icon/displaySelectionUnlock32.json +1 -0
  401. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime16.json +1 -0
  402. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime24.json +1 -0
  403. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTime32.json +1 -0
  404. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest16.json +1 -0
  405. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest24.json +1 -0
  406. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeLargest32.json +1 -0
  407. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest16.json +1 -0
  408. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest24.json +1 -0
  409. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeSmallest32.json +1 -0
  410. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold16.json +1 -0
  411. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold24.json +1 -0
  412. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeThreshold32.json +1 -0
  413. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar16.json +1 -0
  414. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar24.json +1 -0
  415. package/dist/collection/components/calcite-icon/assets/calcite-icon/driveTimeXBar32.json +1 -0
  416. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog16.json +1 -0
  417. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog24.json +1 -0
  418. package/dist/collection/components/calcite-icon/assets/calcite-icon/fog32.json +1 -0
  419. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown16.json +1 -0
  420. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown24.json +1 -0
  421. package/dist/collection/components/calcite-icon/assets/calcite-icon/formDropdown32.json +1 -0
  422. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems16.json +1 -0
  423. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems24.json +1 -0
  424. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupItems32.json +1 -0
  425. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements16.json +1 -0
  426. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements24.json +1 -0
  427. package/dist/collection/components/calcite-icon/assets/calcite-icon/groupLayoutElements32.json +1 -0
  428. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain16.json +1 -0
  429. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain24.json +1 -0
  430. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavyRain32.json +1 -0
  431. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow16.json +1 -0
  432. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow24.json +1 -0
  433. package/dist/collection/components/calcite-icon/assets/calcite-icon/heavySnow32.json +1 -0
  434. package/dist/collection/components/calcite-icon/assets/calcite-icon/language16.json +1 -0
  435. package/dist/collection/components/calcite-icon/assets/calcite-icon/language24.json +1 -0
  436. package/dist/collection/components/calcite-icon/assets/calcite-icon/language32.json +1 -0
  437. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate16.json +1 -0
  438. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate24.json +1 -0
  439. package/dist/collection/components/calcite-icon/assets/calcite-icon/languageTranslate32.json +1 -0
  440. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign16.json +1 -0
  441. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign24.json +1 -0
  442. package/dist/collection/components/calcite-icon/assets/calcite-icon/leftAlign32.json +1 -0
  443. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain16.json +1 -0
  444. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain24.json +1 -0
  445. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightRain32.json +1 -0
  446. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow16.json +1 -0
  447. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow24.json +1 -0
  448. package/dist/collection/components/calcite-icon/assets/calcite-icon/lightSnow32.json +1 -0
  449. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud16.json +1 -0
  450. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud24.json +1 -0
  451. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloud32.json +1 -0
  452. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain16.json +1 -0
  453. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain24.json +1 -0
  454. package/dist/collection/components/calcite-icon/assets/calcite-icon/rain32.json +1 -0
  455. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow16.json +1 -0
  456. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow24.json +1 -0
  457. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainSnow32.json +1 -0
  458. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder16.json +1 -0
  459. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder24.json +1 -0
  460. package/dist/collection/components/calcite-icon/assets/calcite-icon/rainThunder32.json +1 -0
  461. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest16.json +1 -0
  462. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest24.json +1 -0
  463. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsLargest32.json +1 -0
  464. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest16.json +1 -0
  465. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest24.json +1 -0
  466. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsSmallest32.json +1 -0
  467. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold16.json +1 -0
  468. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold24.json +1 -0
  469. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsThreshold32.json +1 -0
  470. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar16.json +1 -0
  471. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar24.json +1 -0
  472. package/dist/collection/components/calcite-icon/assets/calcite-icon/ringsXBar32.json +1 -0
  473. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible16.json +1 -0
  474. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible24.json +1 -0
  475. package/dist/collection/components/calcite-icon/assets/calcite-icon/selectVisible32.json +1 -0
  476. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow16.json +1 -0
  477. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow24.json +1 -0
  478. package/dist/collection/components/calcite-icon/assets/calcite-icon/snow32.json +1 -0
  479. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder16.json +1 -0
  480. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder24.json +1 -0
  481. package/dist/collection/components/calcite-icon/assets/calcite-icon/snowThunder32.json +1 -0
  482. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal16.json +1 -0
  483. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal24.json +1 -0
  484. package/dist/collection/components/calcite-icon/assets/calcite-icon/terminal32.json +1 -0
  485. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch16.json +1 -0
  486. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch24.json +1 -0
  487. package/dist/collection/components/calcite-icon/assets/calcite-icon/touch32.json +1 -0
  488. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems16.json +1 -0
  489. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems24.json +1 -0
  490. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupItems32.json +1 -0
  491. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements16.json +1 -0
  492. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements24.json +1 -0
  493. package/dist/collection/components/calcite-icon/assets/calcite-icon/ungroupLayoutElements32.json +1 -0
  494. package/dist/collection/components/calcite-icon/calcite-icon.css +5 -1
  495. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.css +14 -56
  496. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +43 -32
  497. package/dist/collection/components/calcite-inline-editable/resources.js +7 -7
  498. package/dist/collection/components/calcite-input/calcite-input.css +119 -171
  499. package/dist/collection/components/calcite-input/calcite-input.js +143 -82
  500. package/dist/collection/components/calcite-input/resources.js +14 -12
  501. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.css +20 -1
  502. package/dist/collection/components/calcite-input-date-picker/calcite-input-date-picker.js +205 -46
  503. package/dist/collection/components/calcite-input-message/calcite-input-message.css +9 -10
  504. package/dist/collection/components/calcite-input-message/calcite-input-message.js +2 -4
  505. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.css +20 -1
  506. package/dist/collection/components/calcite-input-time-picker/calcite-input-time-picker.js +117 -82
  507. package/dist/collection/components/calcite-label/calcite-label.css +9 -8
  508. package/dist/collection/components/calcite-label/calcite-label.js +1 -4
  509. package/dist/collection/components/calcite-link/calcite-link.css +15 -18
  510. package/dist/collection/components/calcite-link/calcite-link.js +1 -1
  511. package/dist/collection/components/calcite-list/calcite-list.css +5 -1
  512. package/dist/collection/components/calcite-list-item/calcite-list-item.css +12 -1
  513. package/dist/collection/components/calcite-list-item-group/calcite-list-item-group.css +5 -1
  514. package/dist/collection/components/calcite-loader/calcite-loader.css +10 -11
  515. package/dist/collection/components/calcite-modal/calcite-modal.css +16 -26
  516. package/dist/collection/components/calcite-modal/calcite-modal.js +4 -7
  517. package/dist/collection/components/calcite-notice/calcite-notice.css +23 -33
  518. package/dist/collection/components/calcite-notice/calcite-notice.js +2 -4
  519. package/dist/collection/components/calcite-option/calcite-option.css +5 -1
  520. package/dist/collection/components/calcite-option/calcite-option.js +3 -1
  521. package/dist/collection/components/calcite-option-group/calcite-option-group.css +5 -1
  522. package/dist/collection/components/calcite-pagination/calcite-pagination.css +6 -2
  523. package/dist/collection/components/calcite-pagination/calcite-pagination.js +2 -4
  524. package/dist/collection/components/calcite-panel/calcite-panel.css +24 -36
  525. package/dist/collection/components/calcite-panel/calcite-panel.js +12 -15
  526. package/dist/collection/components/calcite-panel/resources.js +2 -0
  527. package/dist/collection/components/calcite-pick-list/calcite-pick-list.css +5 -1
  528. package/dist/collection/components/calcite-pick-list/calcite-pick-list.js +1 -1
  529. package/dist/collection/components/calcite-pick-list/shared-list-logic.js +2 -2
  530. package/dist/collection/components/calcite-pick-list/shared-list-render.js +2 -3
  531. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.css +6 -7
  532. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +2 -5
  533. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.css +6 -7
  534. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +1 -1
  535. package/dist/collection/components/calcite-popover/calcite-popover.css +7 -5
  536. package/dist/collection/components/calcite-popover/calcite-popover.js +2 -5
  537. package/dist/collection/components/calcite-popover-manager/calcite-popover-manager.css +5 -1
  538. package/dist/collection/components/calcite-progress/calcite-progress.css +5 -1
  539. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +92 -2
  540. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +83 -90
  541. package/dist/collection/components/calcite-radio-button/resources.js +1 -1
  542. package/dist/collection/components/calcite-radio-button-group/calcite-radio-button-group.css +5 -1
  543. package/dist/collection/components/calcite-radio-group/calcite-radio-group.css +20 -1
  544. package/dist/collection/components/calcite-radio-group/calcite-radio-group.js +78 -43
  545. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.css +7 -3
  546. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +5 -15
  547. package/dist/collection/components/calcite-rating/calcite-rating.css +23 -19
  548. package/dist/collection/components/calcite-rating/calcite-rating.js +51 -6
  549. package/dist/collection/components/calcite-scrim/calcite-scrim.css +6 -2
  550. package/dist/collection/components/calcite-select/calcite-select.css +27 -25
  551. package/dist/collection/components/calcite-select/calcite-select.js +100 -13
  552. package/dist/collection/components/calcite-shell/calcite-shell.css +17 -13
  553. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.css +8 -25
  554. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +3 -5
  555. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +87 -22
  556. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +205 -7
  557. package/dist/collection/components/calcite-shell-panel/resources.js +6 -1
  558. package/dist/collection/components/calcite-slider/calcite-slider.css +164 -165
  559. package/dist/collection/components/calcite-slider/calcite-slider.js +134 -41
  560. package/dist/collection/components/calcite-sortable-list/calcite-sortable-list.css +5 -1
  561. package/dist/collection/components/calcite-split-button/calcite-split-button.css +9 -2
  562. package/dist/collection/components/calcite-split-button/calcite-split-button.js +29 -6
  563. package/dist/collection/components/calcite-stepper/calcite-stepper.css +5 -1
  564. package/dist/collection/components/calcite-stepper/calcite-stepper.js +1 -2
  565. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.css +19 -73
  566. package/dist/collection/components/calcite-stepper-item/calcite-stepper-item.js +3 -6
  567. package/dist/collection/components/calcite-switch/calcite-switch.css +22 -21
  568. package/dist/collection/components/calcite-switch/calcite-switch.js +28 -67
  569. package/dist/collection/components/calcite-tab/calcite-tab.css +10 -2
  570. package/dist/collection/components/calcite-tab-nav/calcite-tab-nav.css +5 -3
  571. package/dist/collection/components/calcite-tab-title/calcite-tab-title.css +16 -23
  572. package/dist/collection/components/calcite-tab-title/calcite-tab-title.js +5 -9
  573. package/dist/collection/components/calcite-tabs/calcite-tabs.css +5 -1
  574. package/dist/collection/components/calcite-tile/calcite-tile.css +5 -1
  575. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +7 -15
  576. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -15
  577. package/dist/collection/components/calcite-tile-select-group/calcite-tile-select-group.css +5 -1
  578. package/dist/collection/components/calcite-time-picker/calcite-time-picker.css +61 -92
  579. package/dist/collection/components/calcite-time-picker/calcite-time-picker.js +261 -296
  580. package/dist/collection/components/calcite-time-picker/resources.js +15 -9
  581. package/dist/collection/components/calcite-tip/calcite-tip.css +5 -1
  582. package/dist/collection/components/calcite-tip-group/calcite-tip-group.css +5 -1
  583. package/dist/collection/components/calcite-tip-manager/calcite-tip-manager.css +8 -13
  584. package/dist/collection/components/calcite-tooltip/calcite-tooltip.css +5 -1
  585. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.css +5 -1
  586. package/dist/collection/components/calcite-tooltip-manager/calcite-tooltip-manager.js +1 -2
  587. package/dist/collection/components/calcite-tree/calcite-tree.css +5 -1
  588. package/dist/collection/components/calcite-tree-item/calcite-tree-item.css +55 -73
  589. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +1 -2
  590. package/dist/collection/components/calcite-value-list/calcite-value-list.css +5 -1
  591. package/dist/collection/components/calcite-value-list/calcite-value-list.js +1 -1
  592. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.css +5 -1
  593. package/dist/collection/components/functional/CalciteExpandToggle.js +1 -1
  594. package/dist/collection/utils/conditionalSlot.js +26 -0
  595. package/dist/collection/utils/form.js +167 -14
  596. package/dist/collection/utils/key.js +0 -23
  597. package/dist/collection/utils/math.js +11 -0
  598. package/dist/collection/utils/number.js +9 -1
  599. package/dist/collection/utils/time.js +144 -36
  600. package/dist/components/CalciteExpandToggle.js +1 -1
  601. package/dist/components/calcite-accordion-item.js +9 -4
  602. package/dist/components/calcite-accordion.js +6 -4
  603. package/dist/components/calcite-action-bar.js +29 -2
  604. package/dist/components/calcite-action-group2.js +5 -2
  605. package/dist/components/calcite-action-menu2.js +5 -2
  606. package/dist/components/calcite-action-pad.js +7 -9
  607. package/dist/components/calcite-action2.js +5 -2
  608. package/dist/components/calcite-alert.js +25 -12
  609. package/dist/components/calcite-avatar.js +8 -6
  610. package/dist/components/calcite-block-section.js +7 -4
  611. package/dist/components/calcite-block.js +13 -8
  612. package/dist/components/calcite-button2.js +16 -8
  613. package/dist/components/calcite-card.js +7 -7
  614. package/dist/components/calcite-checkbox2.js +41 -88
  615. package/dist/components/calcite-chip2.js +8 -6
  616. package/dist/components/calcite-color-picker-hex-input2.js +19 -22
  617. package/dist/components/calcite-color-picker-swatch2.js +26 -15
  618. package/dist/components/calcite-color-picker.js +17 -19
  619. package/dist/components/calcite-combobox-item-group.js +7 -5
  620. package/dist/components/calcite-combobox-item.js +6 -5
  621. package/dist/components/calcite-combobox.js +89 -27
  622. package/dist/components/calcite-date-picker-day2.js +6 -4
  623. package/dist/components/calcite-date-picker-month-header2.js +13 -12
  624. package/dist/components/calcite-date-picker-month2.js +11 -11
  625. package/dist/components/calcite-date-picker2.js +54 -20
  626. package/dist/components/calcite-dropdown-group.js +7 -5
  627. package/dist/components/calcite-dropdown-item.js +9 -9
  628. package/dist/components/calcite-dropdown2.js +10 -9
  629. package/dist/components/calcite-fab.js +8 -6
  630. package/dist/components/calcite-filter2.js +8 -21
  631. package/dist/components/calcite-flow.js +5 -2
  632. package/dist/components/calcite-graph2.js +7 -4
  633. package/dist/components/calcite-handle2.js +5 -2
  634. package/dist/components/calcite-icon2.js +5 -2
  635. package/dist/components/calcite-inline-editable.js +56 -43
  636. package/dist/components/calcite-input-date-picker.js +91 -20
  637. package/dist/components/calcite-input-message.js +7 -5
  638. package/dist/components/calcite-input-time-picker.js +68 -53
  639. package/dist/components/calcite-input2.js +116 -78
  640. package/dist/components/calcite-label2.js +6 -5
  641. package/dist/components/calcite-link2.js +6 -3
  642. package/dist/components/calcite-list-item-group.js +5 -2
  643. package/dist/components/calcite-list-item.js +5 -2
  644. package/dist/components/calcite-list.js +5 -2
  645. package/dist/components/calcite-loader2.js +5 -2
  646. package/dist/components/calcite-modal.js +9 -8
  647. package/dist/components/calcite-notice.js +7 -5
  648. package/dist/components/calcite-option-group.js +5 -2
  649. package/dist/components/calcite-option.js +8 -3
  650. package/dist/components/calcite-pagination.js +7 -6
  651. package/dist/components/calcite-panel.js +15 -14
  652. package/dist/components/calcite-pick-list-group.js +7 -6
  653. package/dist/components/calcite-pick-list-item2.js +5 -2
  654. package/dist/components/calcite-pick-list.js +5 -2
  655. package/dist/components/calcite-popover-manager.js +5 -2
  656. package/dist/components/calcite-popover2.js +7 -6
  657. package/dist/components/calcite-progress2.js +5 -2
  658. package/dist/components/calcite-radio-button-group.js +5 -2
  659. package/dist/components/calcite-radio-button.js +89 -90
  660. package/dist/components/calcite-radio-group-item.js +10 -15
  661. package/dist/components/calcite-radio-group.js +40 -42
  662. package/dist/components/calcite-rating.js +18 -6
  663. package/dist/components/calcite-scrim2.js +5 -2
  664. package/dist/components/calcite-select.js +42 -10
  665. package/dist/components/calcite-shell-center-row.js +8 -6
  666. package/dist/components/calcite-shell-panel.js +176 -9
  667. package/dist/components/calcite-shell.js +5 -2
  668. package/dist/components/calcite-slider.js +57 -23
  669. package/dist/components/calcite-sortable-list.js +5 -2
  670. package/dist/components/calcite-split-button.js +9 -5
  671. package/dist/components/calcite-stepper-item.js +8 -7
  672. package/dist/components/calcite-stepper.js +6 -4
  673. package/dist/components/calcite-switch2.js +29 -54
  674. package/dist/components/calcite-tab-nav2.js +5 -2
  675. package/dist/components/calcite-tab-title2.js +10 -10
  676. package/dist/components/calcite-tab2.js +5 -2
  677. package/dist/components/calcite-tabs2.js +5 -2
  678. package/dist/components/calcite-tile-select-group.js +5 -2
  679. package/dist/components/calcite-tile-select.js +10 -11
  680. package/dist/components/calcite-tile2.js +5 -2
  681. package/dist/components/calcite-time-picker2.js +330 -195
  682. package/dist/components/calcite-tip-group.js +5 -2
  683. package/dist/components/calcite-tip-manager.js +5 -2
  684. package/dist/components/calcite-tip.js +5 -2
  685. package/dist/components/calcite-tooltip-manager2.js +6 -4
  686. package/dist/components/calcite-tooltip.js +5 -2
  687. package/dist/components/calcite-tree-item.js +6 -4
  688. package/dist/components/calcite-tree.js +5 -2
  689. package/dist/components/calcite-value-list-item.js +5 -2
  690. package/dist/components/calcite-value-list.js +5 -2
  691. package/dist/components/form.js +169 -15
  692. package/dist/components/math.js +12 -1
  693. package/dist/components/number.js +14 -3
  694. package/dist/components/popper.js +90 -64
  695. package/dist/components/shared-list-render.js +5 -5
  696. package/dist/custom-elements/index.d.ts +0 -6
  697. package/dist/custom-elements/index.js +1904 -1316
  698. package/dist/esm/{CalciteExpandToggle-235a6bfd.js → CalciteExpandToggle-c33bd6fd.js} +2 -2
  699. package/dist/esm/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
  700. package/dist/esm/calcite-accordion_2.entry.js +8 -6
  701. package/dist/esm/calcite-action-bar.entry.js +27 -3
  702. package/dist/esm/calcite-action-group.entry.js +2 -2
  703. package/dist/esm/calcite-action-menu.entry.js +2 -2
  704. package/dist/esm/calcite-action-pad.entry.js +5 -10
  705. package/dist/esm/calcite-action.entry.js +2 -2
  706. package/dist/esm/calcite-alert.entry.js +22 -12
  707. package/dist/esm/calcite-avatar.entry.js +5 -6
  708. package/dist/esm/calcite-block_2.entry.js +13 -11
  709. package/dist/esm/calcite-button.entry.js +12 -7
  710. package/dist/esm/calcite-card.entry.js +4 -8
  711. package/dist/esm/calcite-checkbox.entry.js +36 -85
  712. package/dist/esm/calcite-chip.entry.js +5 -6
  713. package/dist/esm/calcite-color-picker_3.entry.js +51 -53
  714. package/dist/esm/calcite-combobox_3.entry.js +88 -34
  715. package/dist/esm/calcite-date-picker_4.entry.js +67 -39
  716. package/dist/esm/calcite-dropdown_3.entry.js +14 -19
  717. package/dist/esm/calcite-fab.entry.js +5 -6
  718. package/dist/esm/calcite-filter.entry.js +5 -20
  719. package/dist/esm/calcite-flow.entry.js +2 -2
  720. package/dist/esm/calcite-graph_2.entry.js +54 -26
  721. package/dist/esm/calcite-handle.entry.js +2 -2
  722. package/dist/esm/calcite-icon.entry.js +2 -2
  723. package/dist/esm/calcite-inline-editable.entry.js +51 -42
  724. package/dist/esm/calcite-input-date-picker.entry.js +87 -22
  725. package/dist/esm/calcite-input-message.entry.js +4 -5
  726. package/dist/esm/calcite-input-time-picker_2.entry.js +369 -235
  727. package/dist/esm/calcite-input.entry.js +109 -77
  728. package/dist/esm/calcite-label.entry.js +3 -6
  729. package/dist/esm/calcite-link.entry.js +3 -3
  730. package/dist/esm/calcite-list_3.entry.js +5 -5
  731. package/dist/esm/calcite-loader.entry.js +2 -2
  732. package/dist/esm/calcite-modal.entry.js +6 -8
  733. package/dist/esm/calcite-notice.entry.js +4 -5
  734. package/dist/esm/calcite-option_3.entry.js +40 -12
  735. package/dist/esm/calcite-pagination.entry.js +4 -7
  736. package/dist/esm/calcite-panel.entry.js +13 -15
  737. package/dist/esm/calcite-pick-list_3.entry.js +8 -10
  738. package/dist/esm/calcite-popover_2.entry.js +7 -9
  739. package/dist/esm/calcite-progress.entry.js +2 -2
  740. package/dist/esm/calcite-radio-button-group.entry.js +2 -2
  741. package/dist/esm/calcite-radio-button.entry.js +256 -0
  742. package/dist/esm/calcite-radio-group_2.entry.js +38 -52
  743. package/dist/esm/calcite-rating.entry.js +14 -6
  744. package/dist/esm/calcite-scrim.entry.js +2 -2
  745. package/dist/esm/calcite-shell_3.entry.js +173 -13
  746. package/dist/esm/calcite-sortable-list.entry.js +2 -2
  747. package/dist/esm/calcite-split-button.entry.js +5 -6
  748. package/dist/esm/calcite-stepper_2.entry.js +7 -9
  749. package/dist/esm/calcite-switch.entry.js +25 -51
  750. package/dist/esm/calcite-tab_4.entry.js +10 -13
  751. package/dist/esm/calcite-tile-select_2.entry.js +6 -10
  752. package/dist/esm/calcite-tile.entry.js +2 -2
  753. package/dist/esm/calcite-tip_3.entry.js +5 -5
  754. package/dist/esm/calcite-tooltip_2.entry.js +5 -6
  755. package/dist/esm/calcite-tree_2.entry.js +4 -5
  756. package/dist/esm/calcite-value-list_2.entry.js +4 -4
  757. package/dist/esm/calcite.js +3 -3
  758. package/dist/esm/form-160b0fb5.js +174 -0
  759. package/dist/esm/{index-66803519.js → index-9de00868.js} +8 -365
  760. package/dist/esm/loader.js +3 -3
  761. package/dist/esm/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
  762. package/dist/esm/math-456207f5.js +18 -0
  763. package/dist/esm/{number-e7393766.js → number-06e8500e.js} +14 -3
  764. package/dist/esm/{popper-dc4b45cf.js → popper-f5caedc4.js} +90 -64
  765. package/dist/esm/{resources-8dd80c84.js → resources-35c1823f.js} +6 -6
  766. package/dist/esm/{resources-c59a1a15.js → resources-b4eee1d4.js} +4 -3
  767. package/dist/esm-es5/CalciteExpandToggle-c33bd6fd.js +5 -0
  768. package/dist/esm-es5/{CalciteHeading-dea3bd05.js → CalciteHeading-1d6cd311.js} +1 -1
  769. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  770. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  771. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  772. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  773. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  774. package/dist/esm-es5/calcite-action.entry.js +2 -2
  775. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  776. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  777. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  778. package/dist/esm-es5/calcite-button.entry.js +1 -1
  779. package/dist/esm-es5/calcite-card.entry.js +1 -1
  780. package/dist/esm-es5/calcite-checkbox.entry.js +2 -2
  781. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  782. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  783. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  784. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  785. package/dist/esm-es5/calcite-dropdown_3.entry.js +2 -2
  786. package/dist/esm-es5/calcite-fab.entry.js +2 -2
  787. package/dist/esm-es5/calcite-filter.entry.js +2 -2
  788. package/dist/esm-es5/calcite-flow.entry.js +2 -2
  789. package/dist/esm-es5/calcite-graph_2.entry.js +2 -2
  790. package/dist/esm-es5/calcite-handle.entry.js +2 -2
  791. package/dist/esm-es5/calcite-icon.entry.js +2 -2
  792. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  793. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  794. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  795. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +2 -2
  796. package/dist/esm-es5/calcite-input.entry.js +2 -2
  797. package/dist/esm-es5/calcite-label.entry.js +1 -1
  798. package/dist/esm-es5/calcite-link.entry.js +2 -2
  799. package/dist/esm-es5/calcite-list_3.entry.js +2 -2
  800. package/dist/esm-es5/calcite-loader.entry.js +1 -1
  801. package/dist/esm-es5/calcite-modal.entry.js +2 -2
  802. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  803. package/dist/esm-es5/calcite-option_3.entry.js +2 -2
  804. package/dist/esm-es5/calcite-pagination.entry.js +1 -1
  805. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  806. package/dist/esm-es5/calcite-pick-list_3.entry.js +2 -2
  807. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  808. package/dist/esm-es5/calcite-progress.entry.js +1 -1
  809. package/dist/esm-es5/calcite-radio-button-group.entry.js +1 -1
  810. package/dist/esm-es5/calcite-radio-button.entry.js +5 -0
  811. package/dist/esm-es5/calcite-radio-group_2.entry.js +2 -2
  812. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  813. package/dist/esm-es5/calcite-scrim.entry.js +1 -1
  814. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  815. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  816. package/dist/esm-es5/calcite-split-button.entry.js +1 -1
  817. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  818. package/dist/esm-es5/calcite-switch.entry.js +2 -2
  819. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  820. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  821. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  822. package/dist/esm-es5/calcite-tip_3.entry.js +2 -2
  823. package/dist/esm-es5/calcite-tooltip_2.entry.js +2 -2
  824. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  825. package/dist/esm-es5/calcite-value-list_2.entry.js +2 -2
  826. package/dist/esm-es5/calcite.js +1 -1
  827. package/dist/esm-es5/form-160b0fb5.js +5 -0
  828. package/dist/esm-es5/index-9de00868.js +5 -0
  829. package/dist/esm-es5/loader.js +1 -1
  830. package/dist/esm-es5/{locale-6c1b85c7.js → locale-4c38cf6d.js} +1 -1
  831. package/dist/esm-es5/math-456207f5.js +5 -0
  832. package/dist/esm-es5/number-06e8500e.js +5 -0
  833. package/dist/esm-es5/popper-f5caedc4.js +5 -0
  834. package/dist/esm-es5/resources-35c1823f.js +5 -0
  835. package/dist/esm-es5/{resources-c59a1a15.js → resources-b4eee1d4.js} +1 -1
  836. package/dist/extras/docs-json.json +503 -317
  837. package/dist/types/components/calcite-button/resources.d.ts +2 -0
  838. package/dist/types/components/calcite-date-picker/resources.d.ts +1 -0
  839. package/dist/types/components/calcite-input/resources.d.ts +2 -0
  840. package/dist/types/components/calcite-panel/resources.d.ts +2 -0
  841. package/dist/types/components/calcite-shell-panel/resources.d.ts +5 -0
  842. package/dist/types/components/calcite-time-picker/resources.d.ts +14 -8
  843. package/dist/types/components.d.ts +241 -127
  844. package/dist/types/preact.d.ts +0 -2
  845. package/dist/types/utils/conditionalSlot.d.ts +17 -0
  846. package/dist/types/utils/form.d.ts +112 -1
  847. package/dist/types/utils/key.d.ts +0 -4
  848. package/dist/types/utils/math.d.ts +1 -0
  849. package/dist/types/utils/number.d.ts +2 -0
  850. package/dist/types/utils/time.d.ts +18 -5
  851. package/hydrate/index.js +1877 -1268
  852. package/package.json +35 -34
  853. package/readme.md +2 -2
  854. package/CHANGELOG.md +0 -1509
  855. package/dist/calcite/p-0100aeb0.entry.js +0 -5
  856. package/dist/calcite/p-03706508.system.entry.js +0 -5
  857. package/dist/calcite/p-05d1dfc6.js +0 -5
  858. package/dist/calcite/p-06646eed.system.entry.js +0 -5
  859. package/dist/calcite/p-0797f73c.system.entry.js +0 -5
  860. package/dist/calcite/p-09e3fcfc.system.entry.js +0 -5
  861. package/dist/calcite/p-0ba6ede9.entry.js +0 -5
  862. package/dist/calcite/p-0ecd0204.system.entry.js +0 -5
  863. package/dist/calcite/p-0f3d73e3.system.entry.js +0 -5
  864. package/dist/calcite/p-10759c71.system.entry.js +0 -5
  865. package/dist/calcite/p-10de63d7.system.entry.js +0 -5
  866. package/dist/calcite/p-157d05ce.js +0 -5
  867. package/dist/calcite/p-15a45778.system.entry.js +0 -5
  868. package/dist/calcite/p-1e875199.entry.js +0 -5
  869. package/dist/calcite/p-1f7130a9.entry.js +0 -5
  870. package/dist/calcite/p-2418cceb.entry.js +0 -5
  871. package/dist/calcite/p-28261aae.entry.js +0 -5
  872. package/dist/calcite/p-3383d9b4.entry.js +0 -5
  873. package/dist/calcite/p-36e5db45.entry.js +0 -5
  874. package/dist/calcite/p-37859236.entry.js +0 -5
  875. package/dist/calcite/p-38ee7306.system.entry.js +0 -5
  876. package/dist/calcite/p-38f09842.entry.js +0 -5
  877. package/dist/calcite/p-3962cd38.entry.js +0 -5
  878. package/dist/calcite/p-3bb30b44.system.entry.js +0 -5
  879. package/dist/calcite/p-3cf93a58.system.entry.js +0 -5
  880. package/dist/calcite/p-3e438b5b.system.entry.js +0 -5
  881. package/dist/calcite/p-413b4857.system.entry.js +0 -5
  882. package/dist/calcite/p-4185db77.entry.js +0 -5
  883. package/dist/calcite/p-47313747.system.js +0 -5
  884. package/dist/calcite/p-49d5ee42.system.entry.js +0 -5
  885. package/dist/calcite/p-4c7e3915.system.entry.js +0 -5
  886. package/dist/calcite/p-502736d8.system.entry.js +0 -5
  887. package/dist/calcite/p-507b2cc4.entry.js +0 -5
  888. package/dist/calcite/p-51bc5466.entry.js +0 -5
  889. package/dist/calcite/p-527146c8.system.entry.js +0 -5
  890. package/dist/calcite/p-530b28e1.system.entry.js +0 -5
  891. package/dist/calcite/p-5322b333.system.entry.js +0 -5
  892. package/dist/calcite/p-56b352bf.system.js +0 -5
  893. package/dist/calcite/p-58e98b2d.system.entry.js +0 -5
  894. package/dist/calcite/p-58eca102.entry.js +0 -5
  895. package/dist/calcite/p-5ce47e9f.entry.js +0 -5
  896. package/dist/calcite/p-6621aee1.entry.js +0 -5
  897. package/dist/calcite/p-684ccd4e.system.entry.js +0 -5
  898. package/dist/calcite/p-6988c6b7.system.entry.js +0 -5
  899. package/dist/calcite/p-6c8a562f.system.entry.js +0 -5
  900. package/dist/calcite/p-70cd1387.system.entry.js +0 -5
  901. package/dist/calcite/p-71ea4a6f.system.entry.js +0 -5
  902. package/dist/calcite/p-72563742.js +0 -5
  903. package/dist/calcite/p-72fa390e.entry.js +0 -5
  904. package/dist/calcite/p-75f714c9.entry.js +0 -5
  905. package/dist/calcite/p-76ccd204.entry.js +0 -5
  906. package/dist/calcite/p-79cbbf2d.js +0 -5
  907. package/dist/calcite/p-7a6c6382.entry.js +0 -5
  908. package/dist/calcite/p-7ade2294.system.entry.js +0 -5
  909. package/dist/calcite/p-7b869bc5.entry.js +0 -5
  910. package/dist/calcite/p-7b89726e.system.entry.js +0 -5
  911. package/dist/calcite/p-7c161518.system.entry.js +0 -5
  912. package/dist/calcite/p-7c37ca39.entry.js +0 -5
  913. package/dist/calcite/p-7dd5c4e4.entry.js +0 -5
  914. package/dist/calcite/p-83302e1c.entry.js +0 -5
  915. package/dist/calcite/p-83ccefba.system.entry.js +0 -5
  916. package/dist/calcite/p-86af9de1.entry.js +0 -5
  917. package/dist/calcite/p-8953f712.entry.js +0 -5
  918. package/dist/calcite/p-89cdfa96.system.js +0 -5
  919. package/dist/calcite/p-8bc3e126.entry.js +0 -5
  920. package/dist/calcite/p-91645bf7.system.js +0 -5
  921. package/dist/calcite/p-91f046a2.entry.js +0 -5
  922. package/dist/calcite/p-98789055.system.entry.js +0 -5
  923. package/dist/calcite/p-98a632a4.system.entry.js +0 -5
  924. package/dist/calcite/p-9affee61.entry.js +0 -5
  925. package/dist/calcite/p-9f92ae58.system.entry.js +0 -5
  926. package/dist/calcite/p-9fa024e6.system.entry.js +0 -5
  927. package/dist/calcite/p-9fa5e356.entry.js +0 -5
  928. package/dist/calcite/p-9fa67508.entry.js +0 -5
  929. package/dist/calcite/p-9fc0dc2c.system.entry.js +0 -5
  930. package/dist/calcite/p-a09634e2.entry.js +0 -5
  931. package/dist/calcite/p-a5bfc29d.system.entry.js +0 -5
  932. package/dist/calcite/p-a677e52e.entry.js +0 -5
  933. package/dist/calcite/p-a7ba0292.system.js +0 -5
  934. package/dist/calcite/p-a8569c55.system.entry.js +0 -5
  935. package/dist/calcite/p-ac6b615b.entry.js +0 -5
  936. package/dist/calcite/p-b018fbbd.entry.js +0 -5
  937. package/dist/calcite/p-b1f88d45.system.js +0 -5
  938. package/dist/calcite/p-b244a00c.entry.js +0 -5
  939. package/dist/calcite/p-b2ab0485.js +0 -5
  940. package/dist/calcite/p-b3d6ab12.system.entry.js +0 -5
  941. package/dist/calcite/p-b41deed0.system.entry.js +0 -5
  942. package/dist/calcite/p-b42d730f.entry.js +0 -5
  943. package/dist/calcite/p-b4960d06.system.js +0 -5
  944. package/dist/calcite/p-b4e7b593.system.entry.js +0 -5
  945. package/dist/calcite/p-b8d040e5.system.entry.js +0 -5
  946. package/dist/calcite/p-ba1322e6.system.entry.js +0 -5
  947. package/dist/calcite/p-bf25e278.system.entry.js +0 -5
  948. package/dist/calcite/p-bf8b70a8.entry.js +0 -5
  949. package/dist/calcite/p-c399cfce.entry.js +0 -5
  950. package/dist/calcite/p-c4294f70.entry.js +0 -5
  951. package/dist/calcite/p-c48b4b7e.system.entry.js +0 -5
  952. package/dist/calcite/p-c8e4117c.system.entry.js +0 -5
  953. package/dist/calcite/p-c99d8f9e.system.entry.js +0 -5
  954. package/dist/calcite/p-c9ecea64.entry.js +0 -5
  955. package/dist/calcite/p-ca79fabf.system.entry.js +0 -5
  956. package/dist/calcite/p-cacca548.entry.js +0 -5
  957. package/dist/calcite/p-cc4aeb6f.entry.js +0 -5
  958. package/dist/calcite/p-cca94491.system.entry.js +0 -5
  959. package/dist/calcite/p-cd41629f.entry.js +0 -5
  960. package/dist/calcite/p-d35e423d.js +0 -5
  961. package/dist/calcite/p-d4059426.entry.js +0 -5
  962. package/dist/calcite/p-d53cc958.js +0 -5
  963. package/dist/calcite/p-d6048152.system.entry.js +0 -5
  964. package/dist/calcite/p-daa110fe.system.entry.js +0 -5
  965. package/dist/calcite/p-dc6aef8b.entry.js +0 -5
  966. package/dist/calcite/p-dcf30b00.system.entry.js +0 -5
  967. package/dist/calcite/p-de3a04c2.system.entry.js +0 -5
  968. package/dist/calcite/p-e35e7216.system.js +0 -5
  969. package/dist/calcite/p-e40dd6fe.system.entry.js +0 -5
  970. package/dist/calcite/p-e638ff0e.entry.js +0 -5
  971. package/dist/calcite/p-eccb140e.entry.js +0 -5
  972. package/dist/calcite/p-edf0f4f8.entry.js +0 -5
  973. package/dist/calcite/p-eed43a57.system.entry.js +0 -5
  974. package/dist/calcite/p-f0228763.entry.js +0 -5
  975. package/dist/calcite/p-f32e61bb.system.entry.js +0 -5
  976. package/dist/calcite/p-f5bb39bb.js +0 -5
  977. package/dist/calcite/p-f6f4648e.system.entry.js +0 -5
  978. package/dist/calcite/p-f93a7fce.entry.js +0 -5
  979. package/dist/calcite/p-fba65e4a.system.entry.js +0 -5
  980. package/dist/cjs/calcite-radio_2.cjs.entry.js +0 -300
  981. package/dist/cjs/form-00fb301c.js +0 -22
  982. package/dist/cjs/key-8bfb93ec.js +0 -37
  983. package/dist/cjs/math-9d44163f.js +0 -9
  984. package/dist/collection/components/calcite-radio/calcite-radio.css +0 -162
  985. package/dist/collection/components/calcite-radio/calcite-radio.js +0 -169
  986. package/dist/components/calcite-radio.d.ts +0 -11
  987. package/dist/components/calcite-radio.js +0 -10
  988. package/dist/components/calcite-radio2.js +0 -68
  989. package/dist/components/key.js +0 -33
  990. package/dist/esm/calcite-radio_2.entry.js +0 -295
  991. package/dist/esm/form-cee9f632.js +0 -20
  992. package/dist/esm/key-69001a68.js +0 -33
  993. package/dist/esm/math-250d4476.js +0 -7
  994. package/dist/esm-es5/CalciteExpandToggle-235a6bfd.js +0 -5
  995. package/dist/esm-es5/calcite-radio_2.entry.js +0 -5
  996. package/dist/esm-es5/form-cee9f632.js +0 -5
  997. package/dist/esm-es5/index-66803519.js +0 -5
  998. package/dist/esm-es5/key-69001a68.js +0 -5
  999. package/dist/esm-es5/math-250d4476.js +0 -5
  1000. package/dist/esm-es5/number-e7393766.js +0 -5
  1001. package/dist/esm-es5/popper-dc4b45cf.js +0 -5
  1002. package/dist/esm-es5/resources-8dd80c84.js +0 -5
  1003. package/dist/types/components/calcite-accordion/calcite-accordion.d.ts +0 -42
  1004. package/dist/types/components/calcite-accordion-item/calcite-accordion-item.d.ts +0 -53
  1005. package/dist/types/components/calcite-action/calcite-action.d.ts +0 -73
  1006. package/dist/types/components/calcite-action-bar/calcite-action-bar.d.ts +0 -68
  1007. package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +0 -39
  1008. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +0 -82
  1009. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +0 -52
  1010. package/dist/types/components/calcite-alert/calcite-alert.d.ts +0 -79
  1011. package/dist/types/components/calcite-avatar/calcite-avatar.d.ts +0 -26
  1012. package/dist/types/components/calcite-block/calcite-block.d.ts +0 -72
  1013. package/dist/types/components/calcite-block-section/calcite-block-section.d.ts +0 -43
  1014. package/dist/types/components/calcite-button/calcite-button.d.ts +0 -81
  1015. package/dist/types/components/calcite-card/calcite-card.d.ts +0 -43
  1016. package/dist/types/components/calcite-checkbox/calcite-checkbox.d.ts +0 -74
  1017. package/dist/types/components/calcite-chip/calcite-chip.d.ts +0 -37
  1018. package/dist/types/components/calcite-color-picker/calcite-color-picker.d.ts +0 -225
  1019. package/dist/types/components/calcite-color-picker-hex-input/calcite-color-picker-hex-input.d.ts +0 -51
  1020. package/dist/types/components/calcite-color-picker-swatch/calcite-color-picker-swatch.d.ts +0 -23
  1021. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +0 -159
  1022. package/dist/types/components/calcite-combobox/interfaces.d.ts +0 -6
  1023. package/dist/types/components/calcite-combobox/utils.d.ts +0 -6
  1024. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +0 -46
  1025. package/dist/types/components/calcite-combobox-item-group/calcite-combobox-item-group.d.ts +0 -17
  1026. package/dist/types/components/calcite-date-picker/calcite-date-picker.d.ts +0 -114
  1027. package/dist/types/components/calcite-date-picker-day/calcite-date-picker-day.d.ts +0 -45
  1028. package/dist/types/components/calcite-date-picker-month/calcite-date-picker-month.d.ts +0 -97
  1029. package/dist/types/components/calcite-date-picker-month-header/calcite-date-picker-month-header.d.ts +0 -55
  1030. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +0 -98
  1031. package/dist/types/components/calcite-dropdown-group/calcite-dropdown-group.d.ts +0 -32
  1032. package/dist/types/components/calcite-dropdown-item/calcite-dropdown-item.d.ts +0 -52
  1033. package/dist/types/components/calcite-fab/calcite-fab.d.ts +0 -47
  1034. package/dist/types/components/calcite-filter/calcite-filter.d.ts +0 -62
  1035. package/dist/types/components/calcite-flow/calcite-flow.d.ts +0 -22
  1036. package/dist/types/components/calcite-graph/calcite-graph.d.ts +0 -29
  1037. package/dist/types/components/calcite-handle/calcite-handle.d.ts +0 -22
  1038. package/dist/types/components/calcite-icon/calcite-icon.d.ts +0 -32
  1039. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +0 -70
  1040. package/dist/types/components/calcite-input/calcite-input.d.ts +0 -161
  1041. package/dist/types/components/calcite-input-date-picker/calcite-input-date-picker.d.ts +0 -135
  1042. package/dist/types/components/calcite-input-message/calcite-input-message.d.ts +0 -27
  1043. package/dist/types/components/calcite-input-time-picker/calcite-input-time-picker.d.ts +0 -73
  1044. package/dist/types/components/calcite-label/calcite-label.d.ts +0 -30
  1045. package/dist/types/components/calcite-link/calcite-link.d.ts +0 -33
  1046. package/dist/types/components/calcite-list/calcite-list.d.ts +0 -16
  1047. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +0 -37
  1048. package/dist/types/components/calcite-list-item-group/calcite-list-item-group.d.ts +0 -18
  1049. package/dist/types/components/calcite-loader/calcite-loader.d.ts +0 -27
  1050. package/dist/types/components/calcite-modal/calcite-modal.d.ts +0 -88
  1051. package/dist/types/components/calcite-notice/calcite-notice.d.ts +0 -51
  1052. package/dist/types/components/calcite-pagination/calcite-pagination.d.ts +0 -51
  1053. package/dist/types/components/calcite-panel/calcite-panel.d.ts +0 -119
  1054. package/dist/types/components/calcite-pick-list/calcite-pick-list.d.ts +0 -74
  1055. package/dist/types/components/calcite-pick-list/shared-list-logic.d.ts +0 -30
  1056. package/dist/types/components/calcite-pick-list/shared-list-render.d.ts +0 -18
  1057. package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +0 -18
  1058. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +0 -103
  1059. package/dist/types/components/calcite-popover/calcite-popover.d.ts +0 -107
  1060. package/dist/types/components/calcite-popover-manager/calcite-popover-manager.d.ts +0 -19
  1061. package/dist/types/components/calcite-progress/calcite-progress.d.ts +0 -15
  1062. package/dist/types/components/calcite-radio/calcite-radio.d.ts +0 -22
  1063. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +0 -92
  1064. package/dist/types/components/calcite-radio-button-group/calcite-radio-button-group.d.ts +0 -32
  1065. package/dist/types/components/calcite-radio-group/calcite-radio-group.d.ts +0 -48
  1066. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -32
  1067. package/dist/types/components/calcite-rating/calcite-rating.d.ts +0 -49
  1068. package/dist/types/components/calcite-scrim/calcite-scrim.d.ts +0 -17
  1069. package/dist/types/components/calcite-select/calcite-select.d.ts +0 -58
  1070. package/dist/types/components/calcite-shell/calcite-shell.d.ts +0 -21
  1071. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +0 -22
  1072. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +0 -36
  1073. package/dist/types/components/calcite-slider/calcite-slider.d.ts +0 -173
  1074. package/dist/types/components/calcite-sortable-list/calcite-sortable-list.d.ts +0 -50
  1075. package/dist/types/components/calcite-split-button/calcite-split-button.d.ts +0 -49
  1076. package/dist/types/components/calcite-stepper/calcite-stepper.d.ts +0 -58
  1077. package/dist/types/components/calcite-stepper-item/calcite-stepper-item.d.ts +0 -65
  1078. package/dist/types/components/calcite-switch/calcite-switch.d.ts +0 -45
  1079. package/dist/types/components/calcite-tab/calcite-tab.d.ts +0 -42
  1080. package/dist/types/components/calcite-tab-nav/calcite-tab-nav.d.ts +0 -74
  1081. package/dist/types/components/calcite-tab-title/calcite-tab-title.d.ts +0 -92
  1082. package/dist/types/components/calcite-tabs/calcite-tabs.d.ts +0 -65
  1083. package/dist/types/components/calcite-tile/calcite-tile.d.ts +0 -33
  1084. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +0 -57
  1085. package/dist/types/components/calcite-time-picker/calcite-time-picker.d.ts +0 -123
  1086. package/dist/types/components/calcite-tip/calcite-tip.d.ts +0 -44
  1087. package/dist/types/components/calcite-tip-manager/calcite-tip-manager.d.ts +0 -65
  1088. package/dist/types/components/calcite-tooltip/calcite-tooltip.d.ts +0 -60
  1089. package/dist/types/components/calcite-tooltip-manager/calcite-tooltip-manager.d.ts +0 -41
  1090. package/dist/types/components/calcite-tree/calcite-tree.d.ts +0 -38
  1091. package/dist/types/components/calcite-tree/interfaces.d.ts +0 -10
  1092. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +0 -56
  1093. package/dist/types/components/calcite-value-list/calcite-value-list.d.ts +0 -87
  1094. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +0 -76
  1095. package/dist/types/components/functional/CalciteExpandToggle.d.ts +0 -19
  1096. package/dist/types/utils/label.d.ts +0 -35
@@ -2,17 +2,170 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- export const hiddenInputStyle = `
6
- bottom: 0 !important;
7
- left: 0 !important;
8
- margin: 0 !important;
9
- opacity: 0 !important;
10
- outline: none !important;
11
- padding: 0 !important;
12
- position: absolute !important;
13
- right: 0 !important;
14
- top: 0 !important;
15
- transform: none !important;
16
- -webkit-appearance: none !important;
17
- z-index: -1 !important;
18
- `;
5
+ import { closestElementCrossShadowBoundary } from "./dom";
6
+ import { h } from "@stencil/core";
7
+ /**
8
+ * Exported for testing purposes.
9
+ */
10
+ export const hiddenFormInputSlotName = "hidden-form-input";
11
+ function isCheckable(component) {
12
+ return "checked" in component;
13
+ }
14
+ const onFormResetMap = new WeakMap();
15
+ const formComponentSet = new WeakSet();
16
+ function hasRegisteredFormComponentParent(form, formComponentEl) {
17
+ // we use events as a way to test for nested form-associated components across shadow bounds
18
+ const formComponentRegisterEventName = "calciteInternalFormComponentRegister";
19
+ let hasRegisteredFormComponentParent = false;
20
+ form.addEventListener(formComponentRegisterEventName, (event) => {
21
+ hasRegisteredFormComponentParent = event
22
+ .composedPath()
23
+ .some((element) => formComponentSet.has(element));
24
+ event.stopPropagation();
25
+ }, { once: true });
26
+ formComponentEl.dispatchEvent(new CustomEvent(formComponentRegisterEventName, {
27
+ bubbles: true,
28
+ composed: true
29
+ }));
30
+ return hasRegisteredFormComponentParent;
31
+ }
32
+ /**
33
+ * Helper to set up form interactions on connectedCallback.
34
+ */
35
+ export function connectForm(component) {
36
+ const { el, value } = component;
37
+ const form = closestElementCrossShadowBoundary(el, "form");
38
+ if (!form || hasRegisteredFormComponentParent(form, el)) {
39
+ return;
40
+ }
41
+ component.formEl = form;
42
+ component.defaultValue = value;
43
+ if (isCheckable(component)) {
44
+ component.defaultChecked = component.checked;
45
+ }
46
+ const boundOnFormReset = (component.onFormReset || onFormReset).bind(component);
47
+ form.addEventListener("reset", boundOnFormReset);
48
+ formComponentSet.add(el);
49
+ }
50
+ function onFormReset() {
51
+ if (isCheckable(this)) {
52
+ this.checked = this.defaultChecked;
53
+ return;
54
+ }
55
+ this.value = this.defaultValue;
56
+ }
57
+ /**
58
+ * Helper to tear down form interactions on disconnectedCallback.
59
+ */
60
+ export function disconnectForm(component) {
61
+ const { el, formEl } = component;
62
+ if (!formEl) {
63
+ return;
64
+ }
65
+ const boundOnFormReset = onFormResetMap.get(el);
66
+ formEl.removeEventListener("reset", boundOnFormReset);
67
+ onFormResetMap.delete(el);
68
+ component.formEl = null;
69
+ formComponentSet.delete(el);
70
+ }
71
+ /**
72
+ * Helper for setting the default value on initialization after connectedCallback.
73
+ *
74
+ * Note that this is only needed if the default value cannot be determined on connectedCallback.
75
+ */
76
+ export function afterConnectDefaultValueSet(component, value) {
77
+ component.defaultValue = value;
78
+ }
79
+ /**
80
+ * Helper for maintaining a form-associated's hidden input in sync with the component.
81
+ *
82
+ * Based on Ionic's approach: https://github.com/ionic-team/ionic-framework/blob/e4bf052794af9aac07f887013b9250d2a045eba3/core/src/utils/helpers.ts#L198
83
+ */
84
+ function syncHiddenFormInput(component) {
85
+ const { el, formEl, name, value } = component;
86
+ const { ownerDocument } = el;
87
+ const inputs = el.querySelectorAll(`input[slot="${hiddenFormInputSlotName}"]`);
88
+ if (!formEl || !name) {
89
+ inputs.forEach((input) => input.remove());
90
+ return;
91
+ }
92
+ const values = Array.isArray(value) ? value : [value];
93
+ const extra = [];
94
+ const seen = new Set();
95
+ inputs.forEach((input) => {
96
+ const valueMatch = values.find((val) =>
97
+ /* intentional non-strict equality check */
98
+ val == input.value);
99
+ if (valueMatch != null) {
100
+ seen.add(valueMatch);
101
+ defaultSyncHiddenFormInput(component, input, valueMatch);
102
+ }
103
+ else {
104
+ extra.push(input);
105
+ }
106
+ });
107
+ let docFrag;
108
+ values.forEach((value) => {
109
+ if (seen.has(value)) {
110
+ return;
111
+ }
112
+ let input = extra.pop();
113
+ if (!input) {
114
+ input = ownerDocument.createElement("input");
115
+ input.slot = hiddenFormInputSlotName;
116
+ }
117
+ if (!docFrag) {
118
+ docFrag = ownerDocument.createDocumentFragment();
119
+ }
120
+ docFrag.append(input);
121
+ defaultSyncHiddenFormInput(component, input, value);
122
+ });
123
+ if (docFrag) {
124
+ el.append(docFrag);
125
+ }
126
+ extra.forEach((input) => input.remove());
127
+ }
128
+ function defaultSyncHiddenFormInput(component, input, value) {
129
+ var _a;
130
+ const { defaultValue, disabled, name, required } = component;
131
+ // keep in sync to prevent losing reset value
132
+ input.defaultValue = defaultValue;
133
+ input.disabled = disabled;
134
+ input.name = name;
135
+ input.required = required;
136
+ input.tabIndex = -1;
137
+ if (isCheckable(component)) {
138
+ // keep in sync to prevent losing reset value
139
+ input.defaultChecked = component.defaultChecked;
140
+ // heuristic to support default/on mode from https://html.spec.whatwg.org/multipage/input.html#dom-input-value-default-on
141
+ input.value = component.checked ? value || "on" : "";
142
+ // we disable the component when not checked to avoid having its value submitted
143
+ if (!disabled && !component.checked) {
144
+ input.disabled = true;
145
+ }
146
+ }
147
+ else {
148
+ input.value = value || "";
149
+ }
150
+ (_a = component.syncHiddenFormInput) === null || _a === void 0 ? void 0 : _a.call(component, input);
151
+ }
152
+ /**
153
+ * Helper to render the slot for form-associated component's hidden input.
154
+ *
155
+ * If the component has a default slot, this must be placed at the bottom of the component's root container to ensure it is the last child.
156
+ *
157
+ * render(): VNode {
158
+ * <Host>
159
+ * <div class={CSS.container}>
160
+ * // ...
161
+ * <HiddenFormInputSlot component={this} />
162
+ * </div>
163
+ * </Host>
164
+ * }
165
+ *
166
+ * Note that the hidden-form-input Sass mixin must be added to the component's style to apply specific styles.
167
+ */
168
+ export const HiddenFormInputSlot = ({ component }) => {
169
+ syncHiddenFormInput(component);
170
+ return h("slot", { name: hiddenFormInputSlotName });
171
+ };
@@ -2,30 +2,7 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- /**
6
- * Standardize key property of keyboard event (mostly for ie11)
7
- */
8
- export function getKey(key, dir) {
9
- const lookup = {
10
- Up: "ArrowUp",
11
- Down: "ArrowDown",
12
- Left: "ArrowLeft",
13
- Right: "ArrowRight",
14
- Spacebar: " ",
15
- Esc: "Escape"
16
- };
17
- const adjustedKey = lookup[key] || key;
18
- const isRTL = dir === "rtl";
19
- if (isRTL && adjustedKey === "ArrowLeft") {
20
- return "ArrowRight";
21
- }
22
- if (isRTL && adjustedKey === "ArrowRight") {
23
- return "ArrowLeft";
24
- }
25
- return adjustedKey;
26
- }
27
5
  export function isActivationKey(key) {
28
- key = getKey(key);
29
6
  return key === "Enter" || key === " ";
30
7
  }
31
8
  export const numberKeys = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
@@ -3,3 +3,14 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  export const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
6
+ export const decimalPlaces = (value) => {
7
+ const match = ("" + value).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
8
+ if (!match) {
9
+ return 0;
10
+ }
11
+ return Math.max(0,
12
+ // Number of digits right of decimal point.
13
+ (match[1] ? match[1].length : 0) -
14
+ // Adjust for scientific notation.
15
+ (match[2] ? +match[2] : 0));
16
+ };
@@ -29,8 +29,16 @@ export function parseNumberString(numberString) {
29
29
  export function sanitizeDecimalString(decimalString) {
30
30
  return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
31
31
  }
32
+ export function sanitizeNegativeString(negativeString) {
33
+ return negativeString.charAt(0) + negativeString.substring(1).replace(/-/g, "");
34
+ }
35
+ export function sanitizeLeadingZeroString(zeroString) {
36
+ return zeroString.replace(/^0+$/, "0");
37
+ }
32
38
  export function sanitizeNumberString(value) {
33
- return value ? Number(sanitizeDecimalString(value)).toString() : value;
39
+ return value
40
+ ? Number(sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)))).toString()
41
+ : value;
34
42
  }
35
43
  function stringContainsNumbers(string) {
36
44
  return numberKeys.some((number) => string.includes(number));
@@ -4,6 +4,72 @@
4
4
  */
5
5
  import { isValidNumber } from "./number";
6
6
  export const maxTenthForMinuteAndSecond = 5;
7
+ function createLocaleDateTimeFormatter(locale, includeSeconds = true) {
8
+ try {
9
+ const options = {
10
+ hour: "2-digit",
11
+ minute: "2-digit",
12
+ timeZone: "UTC"
13
+ };
14
+ if (includeSeconds) {
15
+ options.second = "2-digit";
16
+ }
17
+ return new Intl.DateTimeFormat(locale, options);
18
+ }
19
+ catch (e) {
20
+ throw new Error(`Invalid locale supplied while attempting to create a DateTime formatter: ${locale}`);
21
+ }
22
+ }
23
+ export function formatTimePart(number) {
24
+ const numberAsString = number.toString();
25
+ return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
26
+ }
27
+ export function formatTimeString(value) {
28
+ if (!isValidTime(value)) {
29
+ return null;
30
+ }
31
+ const [hourString, minuteString, secondString] = value.split(":");
32
+ const hour = formatTimePart(parseInt(hourString));
33
+ const minute = formatTimePart(parseInt(minuteString));
34
+ if (secondString) {
35
+ const second = formatTimePart(parseInt(secondString));
36
+ return `${hour}:${minute}:${second}`;
37
+ }
38
+ return `${hour}:${minute}`;
39
+ }
40
+ export function getLocaleHourCycle(locale) {
41
+ const formatter = createLocaleDateTimeFormatter(locale);
42
+ const parts = formatter.formatToParts(new Date(Date.UTC(0, 0, 0, 0, 0, 0)));
43
+ return getLocalizedTimePart("meridiem", parts) ? "12" : "24";
44
+ }
45
+ function getLocalizedTimePart(part, parts) {
46
+ var _a, _b, _c, _d;
47
+ if (!part || !parts) {
48
+ return null;
49
+ }
50
+ if (part === "hourSuffix") {
51
+ const hourIndex = parts.indexOf(parts.find(({ type }) => type === "hour"));
52
+ const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
53
+ const hourSuffix = parts[hourIndex + 1];
54
+ return hourSuffix && hourSuffix.type === "literal" && minuteIndex - hourIndex === 2
55
+ ? ((_a = hourSuffix.value) === null || _a === void 0 ? void 0 : _a.trim()) || null
56
+ : null;
57
+ }
58
+ if (part === "minuteSuffix") {
59
+ const minuteIndex = parts.indexOf(parts.find(({ type }) => type === "minute"));
60
+ const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
61
+ const minuteSuffix = parts[minuteIndex + 1];
62
+ return minuteSuffix && minuteSuffix.type === "literal" && secondIndex - minuteIndex === 2
63
+ ? ((_b = minuteSuffix.value) === null || _b === void 0 ? void 0 : _b.trim()) || null
64
+ : null;
65
+ }
66
+ if (part === "secondSuffix") {
67
+ const secondIndex = parts.indexOf(parts.find(({ type }) => type === "second"));
68
+ const secondSuffix = parts[secondIndex + 1];
69
+ return secondSuffix && secondSuffix.type === "literal" ? ((_c = secondSuffix.value) === null || _c === void 0 ? void 0 : _c.trim()) || null : null;
70
+ }
71
+ return ((_d = parts.find(({ type }) => (part == "meridiem" ? type === "dayPeriod" : type === part))) === null || _d === void 0 ? void 0 : _d.value) || null;
72
+ }
7
73
  export function getMeridiem(hour) {
8
74
  if (!isValidNumber(hour)) {
9
75
  return null;
@@ -11,49 +77,91 @@ export function getMeridiem(hour) {
11
77
  const hourAsNumber = parseInt(hour);
12
78
  return hourAsNumber >= 0 && hourAsNumber <= 11 ? "AM" : "PM";
13
79
  }
14
- export function getMeridiemHour(hour) {
15
- if (!isValidNumber(hour)) {
16
- return null;
80
+ export function isValidTime(value) {
81
+ if (!value || value.startsWith(":") || value.endsWith(":")) {
82
+ return false;
17
83
  }
18
- const hourAsNumber = parseInt(hour);
19
- if (hourAsNumber === 0) {
20
- return "12";
84
+ const splitValue = value.split(":");
85
+ const validLength = splitValue.length > 1 && splitValue.length < 4;
86
+ if (!validLength) {
87
+ return false;
88
+ }
89
+ const [hour, minute, second] = splitValue;
90
+ const hourAsNumber = parseInt(splitValue[0]);
91
+ const minuteAsNumber = parseInt(splitValue[1]);
92
+ const secondAsNumber = parseInt(splitValue[2]);
93
+ const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
94
+ const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
95
+ const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
96
+ if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
97
+ return true;
21
98
  }
22
- return hourAsNumber > 12 ? formatTimePart(hourAsNumber - 12) : hour;
23
99
  }
24
- export function parseTimeString(value) {
25
- const timeString = formatTimeString(value);
26
- const [hour, minute, second] = timeString ? timeString.split(":") : [null, null, null];
27
- return {
28
- hour,
29
- minute,
30
- second: second || (hour && minute ? "00" : null)
31
- };
100
+ function isValidTimePart(value, part) {
101
+ if (part === "meridiem") {
102
+ return value === "AM" || value === "PM";
103
+ }
104
+ if (!isValidNumber(value)) {
105
+ return false;
106
+ }
107
+ const valueAsNumber = Number(value);
108
+ return part === "hour" ? valueAsNumber >= 0 && valueAsNumber < 24 : valueAsNumber >= 0 && valueAsNumber < 60;
32
109
  }
33
- export function formatTimeString(value) {
34
- if (!value || value.endsWith(":") || value.startsWith(":")) {
110
+ export function localizeTimePart(value, part, locale) {
111
+ if (!isValidTimePart(value, part)) {
112
+ return;
113
+ }
114
+ const valueAsNumber = parseInt(value);
115
+ const date = new Date(Date.UTC(0, 0, 0, part === "hour" ? valueAsNumber : part === "meridiem" ? (value === "AM" ? 0 : 12) : 0, part === "minute" ? valueAsNumber : 0, part === "second" ? valueAsNumber : 0));
116
+ if (!date) {
117
+ return;
118
+ }
119
+ const formatter = createLocaleDateTimeFormatter(locale);
120
+ const parts = formatter.formatToParts(date);
121
+ return getLocalizedTimePart(part, parts);
122
+ }
123
+ export function localizeTimeString(value, locale = "en", includeSeconds = true) {
124
+ if (!isValidTime(value)) {
35
125
  return null;
36
126
  }
37
- const splitValue = value.split(":");
38
- if (splitValue.length > 1) {
39
- const [hour, minute, second] = splitValue;
40
- const hourAsNumber = parseInt(splitValue[0]);
41
- const minuteAsNumber = parseInt(splitValue[1]);
42
- const secondAsNumber = parseInt(splitValue[2]);
43
- const hourValid = isValidNumber(hour) && hourAsNumber >= 0 && hourAsNumber < 24;
44
- const minuteValid = isValidNumber(minute) && minuteAsNumber >= 0 && minuteAsNumber < 60;
45
- const secondValid = isValidNumber(second) && secondAsNumber >= 0 && secondAsNumber < 60;
46
- if ((hourValid && minuteValid && !second) || (hourValid && minuteValid && secondValid)) {
47
- let newValue = `${formatTimePart(hourAsNumber)}:${formatTimePart(minuteAsNumber)}`;
48
- if (secondValid) {
49
- newValue = `${newValue}:${formatTimePart(secondAsNumber)}`;
50
- }
51
- return newValue;
52
- }
127
+ const { hour, minute, second = "0" } = parseTimeString(value);
128
+ const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
129
+ const formatter = createLocaleDateTimeFormatter(locale, includeSeconds);
130
+ return (formatter === null || formatter === void 0 ? void 0 : formatter.format(dateFromTimeString)) || null;
131
+ }
132
+ export function localizeTimeStringToParts(value, locale = "en") {
133
+ if (!isValidTime(value)) {
134
+ return null;
135
+ }
136
+ const { hour, minute, second = "0" } = parseTimeString(value);
137
+ const dateFromTimeString = new Date(Date.UTC(0, 0, 0, parseInt(hour), parseInt(minute), parseInt(second)));
138
+ if (dateFromTimeString) {
139
+ const formatter = createLocaleDateTimeFormatter(locale);
140
+ const parts = formatter.formatToParts(dateFromTimeString);
141
+ return {
142
+ localizedHour: getLocalizedTimePart("hour", parts),
143
+ localizedHourSuffix: getLocalizedTimePart("hourSuffix", parts),
144
+ localizedMinute: getLocalizedTimePart("minute", parts),
145
+ localizedMinuteSuffix: getLocalizedTimePart("minuteSuffix", parts),
146
+ localizedSecond: getLocalizedTimePart("second", parts),
147
+ localizedSecondSuffix: getLocalizedTimePart("secondSuffix", parts),
148
+ localizedMeridiem: getLocalizedTimePart("meridiem", parts)
149
+ };
53
150
  }
54
151
  return null;
55
152
  }
56
- export function formatTimePart(number) {
57
- const numberAsString = number.toString();
58
- return number >= 0 && number <= 9 ? numberAsString.padStart(2, "0") : numberAsString;
153
+ export function parseTimeString(value) {
154
+ if (isValidTime(value)) {
155
+ const [hour, minute, second] = value.split(":");
156
+ return {
157
+ hour,
158
+ minute,
159
+ second
160
+ };
161
+ }
162
+ return {
163
+ hour: null,
164
+ minute: null,
165
+ second: null
166
+ };
59
167
  }
@@ -80,7 +80,7 @@ const CalciteExpandToggle = ({ expanded, intlExpand, intlCollapse, toggle, el, p
80
80
  const end = getCalcitePosition(position, el) === "end";
81
81
  const expandIcon = end ? icons[1] : icons[0];
82
82
  const collapseIcon = end ? icons[0] : icons[1];
83
- const actionNode = (h("calcite-action", { dir: rtl ? "rtl" : "ltr", icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
83
+ const actionNode = (h("calcite-action", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }), scale: scale, text: expandText, textEnabled: expanded }));
84
84
  return tooltip ? h("calcite-tooltip-manager", null, actionNode) : actionNode;
85
85
  };
86
86
 
@@ -2,12 +2,11 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- import { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
- import { g as getKey } from './key.js';
8
7
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
9
8
 
10
- const calciteAccordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:-90deg;--calcite-accordion-item-active-icon-rotation:0;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0;--calcite-accordion-item-active-icon-rotation-rtl:-180deg}:host{--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host-context([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}:host-context([appearance=transparent]){--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;color:var(--calcite-ui-text-3);background-color:var(--calcite-accordion-item-background);--calcite-accordion-item-border:var(--calcite-ui-border-2)}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-right:var(--calcite-accordion-item-icon-spacing-start);margin-left:var(--calcite-accordion-item-icon-spacing-end)}.calcite--rtl .accordion-item-icon{margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border)}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;color:var(--calcite-ui-text-3);padding-top:0;text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);margin-left:var(--calcite-accordion-item-icon-spacing-start);margin-right:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{margin-left:var(--calcite-accordion-item-icon-spacing-end);margin-right:var(--calcite-accordion-item-icon-spacing-start);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;margin-right:auto;text-align:initial}.calcite--rtl .accordion-item-header-text{margin-right:0;margin-left:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium)}:host .accordion-item-subtitle{color:var(--calcite-ui-text-3);margin-top:0.25rem}.calcite--rtl .accordion-item-title{margin-right:0;margin-left:auto}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
9
+ const calciteAccordionItemCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.icon-position--end,.icon-position--start{--calcite-accordion-item-icon-rotation:-90deg;--calcite-accordion-item-active-icon-rotation:0;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0}.icon-position--start{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}.icon-position--end{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0;--calcite-accordion-item-active-icon-rotation-rtl:-180deg}:host{--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host-context([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0}:host-context([appearance=transparent]){--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-decoration:none;outline:2px solid transparent;outline-offset:2px;position:relative;color:var(--calcite-ui-text-3);background-color:var(--calcite-accordion-item-background);--calcite-accordion-item-border:var(--calcite-ui-border-2)}:host .accordion-item-header{outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host(:focus) .accordion-item-header{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}:host([active]){color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-content{display:block;color:var(--calcite-ui-text-1)}:host([active]) .accordion-item-header{border-bottom-color:transparent}:host .accordion-item-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;-ms-flex-direction:var(--calcite-accordion-item-flex-direction);flex-direction:var(--calcite-accordion-item-flex-direction)}:host .accordion-item-icon{display:-ms-inline-flexbox;display:inline-flex;position:relative;margin:0;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-end);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}:host .accordion-item-content,:host .accordion-item-header{padding:var(--calcite-accordion-item-padding);border-bottom:1px solid var(--calcite-accordion-item-border)}:host .accordion-item-header *{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .accordion-item-content{display:none;color:var(--calcite-ui-text-3);padding-top:0;text-align:initial}:host .accordion-item-expand-icon{color:var(--calcite-ui-text-3);-webkit-margin-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);-webkit-margin-end:var(--calcite-accordion-item-icon-spacing-end);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation));transform:rotate(var(--calcite-accordion-item-icon-rotation))}.calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1);-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation));transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}:host([active]) .calcite--rtl .accordion-item-expand-icon{-webkit-transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl));transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}:host .accordion-item-header-text{-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;text-align:initial;-webkit-margin-end:auto;margin-inline-end:auto}:host .accordion-item-title,:host .accordion-item-subtitle{display:-ms-flexbox;display:flex;width:100%}:host .accordion-item-title{color:var(--calcite-ui-text-2);font-weight:var(--calcite-font-weight-medium)}:host .accordion-item-subtitle{color:var(--calcite-ui-text-3);margin-top:0.25rem}:host(:focus) .accordion-item-title,:host(:hover) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:hover) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:hover) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:hover) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}:host(:focus) .accordion-item-title,:host(:active) .accordion-item-title,:host([active]) .accordion-item-title{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-icon,:host(:active) .accordion-item-icon,:host([active]) .accordion-item-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-expand-icon,:host(:active) .accordion-item-expand-icon,:host([active]) .accordion-item-expand-icon{color:var(--calcite-ui-text-1)}:host(:focus) .accordion-item-subtitle,:host(:active) .accordion-item-subtitle,:host([active]) .accordion-item-subtitle{color:var(--calcite-ui-text-2)}";
11
10
 
12
11
  let CalciteAccordionItem$1 = class extends HTMLElement {
13
12
  constructor() {
@@ -69,7 +68,7 @@ let CalciteAccordionItem$1 = class extends HTMLElement {
69
68
  //--------------------------------------------------------------------------
70
69
  keyDownHandler(e) {
71
70
  if (e.target === this.el) {
72
- switch (getKey(e.key)) {
71
+ switch (e.key) {
73
72
  case " ":
74
73
  case "Enter":
75
74
  this.emitRequestedItem();
@@ -91,6 +90,9 @@ let CalciteAccordionItem$1 = class extends HTMLElement {
91
90
  updateActiveItemOnChange(event) {
92
91
  this.requestedAccordionItem = event.detail
93
92
  .requestedAccordionItem;
93
+ if (this.el.parentNode !== this.requestedAccordionItem.parentNode) {
94
+ return;
95
+ }
94
96
  this.determineActiveItem();
95
97
  }
96
98
  //--------------------------------------------------------------------------
@@ -131,6 +133,9 @@ CalciteAccordionItem$1 = /*@__PURE__*/ proxyCustomElement(CalciteAccordionItem$1
131
133
  "icon": [513]
132
134
  }, [[0, "keydown", "keyDownHandler"], [16, "calciteAccordionChange", "updateActiveItemOnChange"]]]);
133
135
  function defineCustomElement$1() {
136
+ if (typeof customElements === "undefined") {
137
+ return;
138
+ }
134
139
  const components = ["calcite-accordion-item", "calcite-icon"];
135
140
  components.forEach(tagName => { switch (tagName) {
136
141
  case "calcite-accordion-item":
@@ -2,10 +2,9 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- import { createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { g as getKey } from './key.js';
5
+ import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
7
6
 
8
- const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:300ms}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
7
+ const calciteAccordionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host([scale=s]){--calcite-accordion-item-spacing-unit:0.25rem;--calcite-accordion-icon-margin:0.5rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-accordion-item-spacing-unit:0.5rem;--calcite-accordion-icon-margin:0.75rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-accordion-item-spacing-unit:0.75rem;--calcite-accordion-icon-margin:1rem;--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;position:relative;max-width:100%;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-2);border-bottom-width:0;line-height:1.5rem;--calcite-accordion-item-border:var(--calcite-ui-border-2);--calcite-accordion-item-background:var(--calcite-ui-foreground-1)}:host([appearance=minimal]){--calcite-accordion-item-padding:var(--calcite-accordion-item-spacing-unit) 0;border-color:transparent}:host([appearance=transparent]){border-color:transparent;--calcite-accordion-item-border:transparent;--calcite-accordion-item-background:transparent}";
9
8
 
10
9
  let CalciteAccordion$1 = class extends HTMLElement {
11
10
  constructor() {
@@ -63,7 +62,7 @@ let CalciteAccordion$1 = class extends HTMLElement {
63
62
  const item = e.detail.item;
64
63
  const parent = e.detail.parent;
65
64
  if (this.el === parent) {
66
- const key = getKey(item.key);
65
+ const key = item.key;
67
66
  const itemToFocus = e.target;
68
67
  const isFirstItem = this.itemIndex(itemToFocus) === 0;
69
68
  const isLastItem = this.itemIndex(itemToFocus) === this.items.length - 1;
@@ -150,6 +149,9 @@ CalciteAccordion$1 = /*@__PURE__*/ proxyCustomElement(CalciteAccordion$1, [1, "c
150
149
  "selectionMode": [513, "selection-mode"]
151
150
  }, [[0, "calciteAccordionItemKeyEvent", "calciteAccordionItemKeyEvent"], [0, "calciteAccordionItemRegister", "registerCalciteAccordionItem"], [0, "calciteAccordionItemSelect", "updateActiveItemOnChange"]]]);
152
151
  function defineCustomElement$1() {
152
+ if (typeof customElements === "undefined") {
153
+ return;
154
+ }
153
155
  const components = ["calcite-accordion"];
154
156
  components.forEach(tagName => { switch (tagName) {
155
157
  case "calcite-accordion":