@esri/calcite-components 1.0.0-next.369 → 1.0.0-next.372

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 (299) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/{p-8f647ab0.system.entry.js → p-0164361f.system.entry.js} +1 -1
  3. package/dist/calcite/{p-e1944963.js → p-01b7adb5.js} +1 -1
  4. package/dist/calcite/{p-8a237191.system.entry.js → p-06dbe76a.system.entry.js} +1 -1
  5. package/dist/calcite/{p-4b3160ad.system.entry.js → p-06fbc0f2.system.entry.js} +1 -1
  6. package/dist/calcite/{p-cf2be87e.entry.js → p-08be120f.entry.js} +1 -1
  7. package/dist/calcite/{p-d908834f.system.entry.js → p-0a85cd8c.system.entry.js} +1 -1
  8. package/dist/calcite/{p-f94619be.system.entry.js → p-0b552c00.system.entry.js} +1 -1
  9. package/dist/calcite/{p-e690993e.system.entry.js → p-0cb38659.system.entry.js} +1 -1
  10. package/dist/calcite/{p-99d29b5c.system.entry.js → p-12142a2c.system.entry.js} +1 -1
  11. package/dist/calcite/{p-40bb088d.entry.js → p-146d8510.entry.js} +1 -1
  12. package/dist/calcite/{p-f044fcc5.system.entry.js → p-14ca5cdf.system.entry.js} +1 -1
  13. package/dist/calcite/{p-3d4c34e5.js → p-14e47d1b.js} +1 -1
  14. package/dist/calcite/{p-21f26f77.entry.js → p-1668089f.entry.js} +1 -1
  15. package/dist/calcite/{p-8ebed170.system.entry.js → p-1804c868.system.entry.js} +1 -1
  16. package/dist/calcite/{p-fbcaa23c.system.js → p-1a3a366d.system.js} +1 -1
  17. package/dist/calcite/{p-6515e0a5.entry.js → p-20e3fc50.entry.js} +1 -1
  18. package/dist/calcite/{p-4c021c5c.entry.js → p-2218fef5.entry.js} +1 -1
  19. package/dist/calcite/{p-38e64c6b.entry.js → p-2297db38.entry.js} +1 -1
  20. package/dist/calcite/{p-84defe75.system.entry.js → p-243985d8.system.entry.js} +1 -1
  21. package/dist/calcite/{p-0389f96b.system.entry.js → p-2e324a56.system.entry.js} +1 -1
  22. package/dist/calcite/{p-1894562d.system.entry.js → p-32d61433.system.entry.js} +1 -1
  23. package/dist/calcite/{p-6de78659.system.entry.js → p-39d4d1b1.system.entry.js} +1 -1
  24. package/dist/calcite/{p-492d644c.system.entry.js → p-3cdf0ad5.system.entry.js} +1 -1
  25. package/dist/calcite/{p-2d411997.system.entry.js → p-40c3d7a6.system.entry.js} +1 -1
  26. package/dist/calcite/{p-52871e84.system.js → p-44aa1db4.system.js} +1 -1
  27. package/dist/calcite/{p-6c4bec59.entry.js → p-49782820.entry.js} +1 -1
  28. package/dist/calcite/{p-b052f523.entry.js → p-500300b5.entry.js} +1 -1
  29. package/dist/calcite/{p-e0fa3b13.system.entry.js → p-54bb21f5.system.entry.js} +1 -1
  30. package/dist/calcite/p-54edaa0d.entry.js +5 -0
  31. package/dist/calcite/{p-51a85436.entry.js → p-58eb8460.entry.js} +1 -1
  32. package/dist/calcite/{p-96808ed2.entry.js → p-5a77fd17.entry.js} +1 -1
  33. package/dist/calcite/{p-b80ab9ba.entry.js → p-5b8404de.entry.js} +1 -1
  34. package/dist/calcite/{p-f09810e7.entry.js → p-5d12a140.entry.js} +1 -1
  35. package/dist/calcite/{p-f5469b62.system.entry.js → p-5d7da300.system.entry.js} +1 -1
  36. package/dist/calcite/{p-950b42e3.entry.js → p-5f5bfaa5.entry.js} +1 -1
  37. package/dist/calcite/{p-24b54c99.system.entry.js → p-617c3f30.system.entry.js} +1 -1
  38. package/dist/calcite/{p-fe94050d.entry.js → p-63f8783a.entry.js} +1 -1
  39. package/dist/calcite/p-647d22ef.js +5 -0
  40. package/dist/calcite/{p-26fd946c.entry.js → p-64a5e88c.entry.js} +1 -1
  41. package/dist/calcite/{p-f90b2e7f.entry.js → p-6969dabb.entry.js} +1 -1
  42. package/dist/calcite/{p-4c6fe413.system.entry.js → p-6afd69dc.system.entry.js} +1 -1
  43. package/dist/calcite/{p-6fa59c8c.entry.js → p-6fb9fef5.entry.js} +1 -1
  44. package/dist/calcite/{p-14ff4cbd.system.js → p-70dd483b.system.js} +1 -1
  45. package/dist/calcite/p-754809de.entry.js +5 -0
  46. package/dist/calcite/{p-0faf1684.system.entry.js → p-7743a8d0.system.entry.js} +1 -1
  47. package/dist/calcite/{p-799f0655.entry.js → p-786b8250.entry.js} +1 -1
  48. package/dist/calcite/{p-590d13bd.entry.js → p-78725919.entry.js} +1 -1
  49. package/dist/calcite/p-7a6c932d.system.entry.js +5 -0
  50. package/dist/calcite/p-7bdeb3ba.system.entry.js +5 -0
  51. package/dist/calcite/{p-4dcae709.system.entry.js → p-7d4316a1.system.entry.js} +1 -1
  52. package/dist/calcite/{p-d1794edd.entry.js → p-82491929.entry.js} +1 -1
  53. package/dist/calcite/{p-7cba1720.system.entry.js → p-8604c625.system.entry.js} +1 -1
  54. package/dist/calcite/{p-67e13029.system.entry.js → p-86b63ebb.system.entry.js} +1 -1
  55. package/dist/calcite/{p-10f1a096.system.entry.js → p-8709d314.system.entry.js} +1 -1
  56. package/dist/calcite/p-8ba8a357.system.js +5 -0
  57. package/dist/calcite/{p-242fdd67.entry.js → p-8e4aa7f7.entry.js} +1 -1
  58. package/dist/calcite/{p-ee7e311e.system.entry.js → p-8f2c68f4.system.entry.js} +1 -1
  59. package/dist/calcite/p-8f3a3e4e.js +5 -0
  60. package/dist/calcite/{p-7f5bd070.system.entry.js → p-900e18a5.system.entry.js} +1 -1
  61. package/dist/calcite/{p-e606e9ae.system.entry.js → p-92d9b81d.system.entry.js} +1 -1
  62. package/dist/calcite/p-9716c57c.entry.js +5 -0
  63. package/dist/calcite/p-97375cc0.entry.js +5 -0
  64. package/dist/calcite/{p-7ed5b78e.system.entry.js → p-99422223.system.entry.js} +1 -1
  65. package/dist/calcite/p-99d32fc3.system.js +1 -1
  66. package/dist/calcite/p-9a7c4812.js +5 -0
  67. package/dist/calcite/{p-45bfe5bf.system.entry.js → p-9ca6c750.system.entry.js} +1 -1
  68. package/dist/calcite/{p-6b8dcbb0.entry.js → p-9d7102c0.entry.js} +1 -1
  69. package/dist/calcite/p-9e2c9752.entry.js +5 -0
  70. package/dist/calcite/p-9f49c4fe.system.entry.js +5 -0
  71. package/dist/calcite/{p-a980b2df.entry.js → p-a50e52f1.entry.js} +1 -1
  72. package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
  73. package/dist/calcite/{p-92de4a81.entry.js → p-abe7730b.entry.js} +1 -1
  74. package/dist/calcite/{p-132d55c2.entry.js → p-af669f43.entry.js} +1 -1
  75. package/dist/calcite/{p-8f4ea148.system.entry.js → p-af84fa29.system.entry.js} +1 -1
  76. package/dist/calcite/p-b002b038.entry.js +5 -0
  77. package/dist/calcite/{p-5aaa0088.system.entry.js → p-b86f0930.system.entry.js} +1 -1
  78. package/dist/calcite/{p-57584243.system.entry.js → p-b9adf89d.system.entry.js} +1 -1
  79. package/dist/calcite/{p-eea18662.entry.js → p-baca86e3.entry.js} +1 -1
  80. package/dist/calcite/{p-203e951b.system.entry.js → p-bd576ae0.system.entry.js} +1 -1
  81. package/dist/calcite/{p-a25ebce7.entry.js → p-be231b84.entry.js} +1 -1
  82. package/dist/calcite/{p-51550014.entry.js → p-c1c37da9.entry.js} +1 -1
  83. package/dist/calcite/{p-de09fc5c.system.entry.js → p-c5463268.system.entry.js} +1 -1
  84. package/dist/calcite/{p-4641ef1f.entry.js → p-c5b3d90c.entry.js} +1 -1
  85. package/dist/calcite/{p-a5c73259.entry.js → p-c6cb0aa2.entry.js} +1 -1
  86. package/dist/calcite/{p-3280f0ac.system.entry.js → p-cd9d106b.system.entry.js} +1 -1
  87. package/dist/calcite/{p-3e9e4992.entry.js → p-d14265f3.entry.js} +1 -1
  88. package/dist/calcite/{p-7db0947c.entry.js → p-da470de7.entry.js} +1 -1
  89. package/dist/calcite/{p-7f32a681.system.entry.js → p-e1491358.system.entry.js} +1 -1
  90. package/dist/calcite/{p-781ebed0.system.js → p-e2047621.system.js} +1 -1
  91. package/dist/calcite/{p-fee6af61.entry.js → p-e4862fff.entry.js} +1 -1
  92. package/dist/calcite/{p-05dc6806.entry.js → p-e5420c67.entry.js} +1 -1
  93. package/dist/calcite/{p-4ef2119c.entry.js → p-e5526c34.entry.js} +1 -1
  94. package/dist/calcite/{p-c029ffb1.entry.js → p-e5c2a6eb.entry.js} +1 -1
  95. package/dist/calcite/{p-bb9fb183.system.entry.js → p-e83a5fe4.system.entry.js} +1 -1
  96. package/dist/calcite/{p-fcd62e97.js → p-e8e0f3b7.js} +1 -1
  97. package/dist/calcite/{p-3a20f93d.system.js → p-ec9bab33.system.js} +1 -1
  98. package/dist/calcite/{p-32f6f7df.entry.js → p-ee14736a.entry.js} +1 -1
  99. package/dist/calcite/{p-41894582.js → p-eeb91710.js} +1 -1
  100. package/dist/calcite/{p-57bf81c4.system.entry.js → p-f12c35de.system.entry.js} +1 -1
  101. package/dist/calcite/{p-283ff9e8.entry.js → p-f1dc4798.entry.js} +1 -1
  102. package/dist/calcite/{p-5c256f31.system.entry.js → p-f24ddc56.system.entry.js} +1 -1
  103. package/dist/calcite/{p-088a096d.system.entry.js → p-f4d9c369.system.entry.js} +1 -1
  104. package/dist/calcite/{p-59133b9b.entry.js → p-f7572da7.entry.js} +1 -1
  105. package/dist/calcite/{p-8468ddb0.system.entry.js → p-fbd68dbf.system.entry.js} +1 -1
  106. package/dist/calcite/{p-bb20e0fc.system.entry.js → p-ff04cfb1.system.entry.js} +1 -1
  107. package/dist/cjs/{CalciteExpandToggle-65468585.js → CalciteExpandToggle-d24fed0e.js} +1 -1
  108. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  109. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  110. package/dist/cjs/calcite-action-group.cjs.entry.js +1 -1
  111. package/dist/cjs/calcite-action-menu.cjs.entry.js +1 -1
  112. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  113. package/dist/cjs/calcite-alert.cjs.entry.js +1 -1
  114. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  115. package/dist/cjs/calcite-block_2.cjs.entry.js +1 -1
  116. package/dist/cjs/calcite-button.cjs.entry.js +2 -2
  117. package/dist/cjs/calcite-card.cjs.entry.js +17 -6
  118. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  119. package/dist/cjs/calcite-chip.cjs.entry.js +1 -1
  120. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +1 -1
  121. package/dist/cjs/calcite-combobox_3.cjs.entry.js +16 -13
  122. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +2 -2
  123. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +2 -2
  124. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  125. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  126. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  127. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  128. package/dist/cjs/calcite-inline-editable.cjs.entry.js +2 -2
  129. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +5 -5
  130. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  131. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
  132. package/dist/cjs/calcite-input.cjs.entry.js +96 -39
  133. package/dist/cjs/calcite-link.cjs.entry.js +1 -1
  134. package/dist/cjs/calcite-list_3.cjs.entry.js +1 -1
  135. package/dist/cjs/calcite-modal.cjs.entry.js +1 -1
  136. package/dist/cjs/calcite-notice.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-option_3.cjs.entry.js +3 -3
  138. package/dist/cjs/calcite-panel.cjs.entry.js +1 -1
  139. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  140. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  141. package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
  142. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
  143. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  144. package/dist/cjs/calcite-shell_3.cjs.entry.js +1 -1
  145. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  146. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  147. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  148. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  149. package/dist/cjs/calcite-tip_3.cjs.entry.js +1 -1
  150. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
  151. package/dist/cjs/calcite-tree_2.cjs.entry.js +3 -2
  152. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  153. package/dist/cjs/{dom-0de9fb18.js → dom-f3df220d.js} +13 -10
  154. package/dist/cjs/{form-4b7c317e.js → form-237cf392.js} +1 -1
  155. package/dist/cjs/{label-1bca211b.js → label-6b18ca08.js} +1 -1
  156. package/dist/cjs/{popper-09105f6f.js → popper-13a2bb46.js} +1 -1
  157. package/dist/cjs/{resources-9f0994fb.js → resources-11763017.js} +4 -3
  158. package/dist/cjs/{resources-405cc2c4.js → resources-95073e41.js} +1 -1
  159. package/dist/collection/components/calcite-card/calcite-card.js +15 -6
  160. package/dist/collection/components/calcite-combobox/calcite-combobox.js +5 -4
  161. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +9 -7
  162. package/dist/collection/components/calcite-date-picker/utils.js +4 -3
  163. package/dist/collection/components/calcite-input/calcite-input.js +93 -36
  164. package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
  165. package/dist/collection/utils/dom.js +13 -10
  166. package/dist/components/calcite-card.js +15 -6
  167. package/dist/components/calcite-combobox-item.js +8 -6
  168. package/dist/components/calcite-combobox.js +5 -4
  169. package/dist/components/calcite-date-picker2.js +4 -3
  170. package/dist/components/calcite-input2.js +93 -36
  171. package/dist/components/calcite-tree.js +2 -1
  172. package/dist/components/dom.js +13 -10
  173. package/dist/custom-elements/index.js +137 -66
  174. package/dist/esm/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
  175. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  176. package/dist/esm/calcite-action-bar.entry.js +2 -2
  177. package/dist/esm/calcite-action-group.entry.js +1 -1
  178. package/dist/esm/calcite-action-menu.entry.js +1 -1
  179. package/dist/esm/calcite-action-pad.entry.js +2 -2
  180. package/dist/esm/calcite-alert.entry.js +1 -1
  181. package/dist/esm/calcite-avatar.entry.js +1 -1
  182. package/dist/esm/calcite-block_2.entry.js +1 -1
  183. package/dist/esm/calcite-button.entry.js +2 -2
  184. package/dist/esm/calcite-card.entry.js +17 -6
  185. package/dist/esm/calcite-checkbox.entry.js +3 -3
  186. package/dist/esm/calcite-chip.entry.js +1 -1
  187. package/dist/esm/calcite-color-picker_3.entry.js +1 -1
  188. package/dist/esm/calcite-combobox_3.entry.js +16 -13
  189. package/dist/esm/calcite-date-picker_4.entry.js +2 -2
  190. package/dist/esm/calcite-dropdown_3.entry.js +2 -2
  191. package/dist/esm/calcite-fab.entry.js +1 -1
  192. package/dist/esm/calcite-filter.entry.js +1 -1
  193. package/dist/esm/calcite-graph_2.entry.js +3 -3
  194. package/dist/esm/calcite-icon.entry.js +1 -1
  195. package/dist/esm/calcite-inline-editable.entry.js +2 -2
  196. package/dist/esm/calcite-input-date-picker.entry.js +5 -5
  197. package/dist/esm/calcite-input-message.entry.js +1 -1
  198. package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
  199. package/dist/esm/calcite-input.entry.js +96 -39
  200. package/dist/esm/calcite-link.entry.js +1 -1
  201. package/dist/esm/calcite-list_3.entry.js +1 -1
  202. package/dist/esm/calcite-modal.entry.js +1 -1
  203. package/dist/esm/calcite-notice.entry.js +1 -1
  204. package/dist/esm/calcite-option_3.entry.js +3 -3
  205. package/dist/esm/calcite-panel.entry.js +1 -1
  206. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  207. package/dist/esm/calcite-popover_2.entry.js +2 -2
  208. package/dist/esm/calcite-radio-button.entry.js +3 -3
  209. package/dist/esm/calcite-radio-group_2.entry.js +3 -3
  210. package/dist/esm/calcite-rating.entry.js +3 -3
  211. package/dist/esm/calcite-shell_3.entry.js +1 -1
  212. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  213. package/dist/esm/calcite-switch.entry.js +3 -3
  214. package/dist/esm/calcite-tab_4.entry.js +1 -1
  215. package/dist/esm/calcite-tile.entry.js +1 -1
  216. package/dist/esm/calcite-tip_3.entry.js +1 -1
  217. package/dist/esm/calcite-tooltip_2.entry.js +2 -2
  218. package/dist/esm/calcite-tree_2.entry.js +3 -2
  219. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  220. package/dist/esm/{dom-037dc374.js → dom-e7fa77b9.js} +13 -10
  221. package/dist/esm/{form-72369b73.js → form-f90706b4.js} +1 -1
  222. package/dist/esm/{label-712646d2.js → label-2bffc9f4.js} +1 -1
  223. package/dist/esm/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
  224. package/dist/esm/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
  225. package/dist/esm/{resources-90193940.js → resources-c768953c.js} +4 -3
  226. package/dist/esm-es5/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
  227. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  228. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  229. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  230. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  231. package/dist/esm-es5/calcite-action-pad.entry.js +1 -1
  232. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  233. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  234. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  235. package/dist/esm-es5/calcite-button.entry.js +1 -1
  236. package/dist/esm-es5/calcite-card.entry.js +1 -1
  237. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  238. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  239. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  240. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  241. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  242. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  243. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  244. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  245. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  246. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  247. package/dist/esm-es5/calcite-inline-editable.entry.js +1 -1
  248. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  249. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  250. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  251. package/dist/esm-es5/calcite-input.entry.js +1 -1
  252. package/dist/esm-es5/calcite-link.entry.js +1 -1
  253. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  254. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  255. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  256. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  257. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  258. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  259. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  260. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  261. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  262. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  263. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  264. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  265. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  266. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  267. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  268. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  269. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  270. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  271. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  272. package/dist/esm-es5/dom-e7fa77b9.js +5 -0
  273. package/dist/esm-es5/{form-72369b73.js → form-f90706b4.js} +1 -1
  274. package/dist/esm-es5/{label-712646d2.js → label-2bffc9f4.js} +1 -1
  275. package/dist/esm-es5/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
  276. package/dist/esm-es5/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
  277. package/dist/esm-es5/resources-c768953c.js +5 -0
  278. package/dist/extras/docs-json.json +1 -1
  279. package/dist/types/components/calcite-card/calcite-card.d.ts +4 -1
  280. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -3
  281. package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
  282. package/dist/types/utils/dom.d.ts +1 -0
  283. package/hydrate/index.js +133 -63
  284. package/package.json +1 -1
  285. package/dist/calcite/p-1b06ada3.entry.js +0 -5
  286. package/dist/calcite/p-32f7eb32.js +0 -5
  287. package/dist/calcite/p-341eef4e.entry.js +0 -5
  288. package/dist/calcite/p-41e2198b.js +0 -5
  289. package/dist/calcite/p-5b7d5f36.entry.js +0 -5
  290. package/dist/calcite/p-77279f88.system.entry.js +0 -5
  291. package/dist/calcite/p-7a28e833.system.entry.js +0 -5
  292. package/dist/calcite/p-7f50128c.system.entry.js +0 -5
  293. package/dist/calcite/p-9b05c3fd.js +0 -5
  294. package/dist/calcite/p-9f349c92.entry.js +0 -5
  295. package/dist/calcite/p-c56f495f.system.js +0 -5
  296. package/dist/calcite/p-c7b8a068.entry.js +0 -5
  297. package/dist/calcite/p-f385d631.entry.js +0 -5
  298. package/dist/esm-es5/dom-037dc374.js +0 -5
  299. package/dist/esm-es5/resources-90193940.js +0 -5
@@ -274,9 +274,9 @@ async function focusElement(el) {
274
274
  }
275
275
  return isCalciteFocusable(el) ? el.setFocus() : el.focus();
276
276
  }
277
- const defaultSlotSelector = "> :not([slot])";
277
+ const defaultSlotSelector = ":not([slot])";
278
278
  function getSlotted(element, slotName, options) {
279
- if (!Array.isArray(slotName) && typeof slotName !== "string") {
279
+ if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
280
280
  options = slotName;
281
281
  slotName = null;
282
282
  }
@@ -290,12 +290,15 @@ function getSlotted(element, slotName, options) {
290
290
  }
291
291
  return querySingle(element, slotSelector, options);
292
292
  }
293
+ function getDirectChildren(el, selector) {
294
+ return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
295
+ }
293
296
  function queryMultiple(element, slotSelector, options) {
294
- let matches = Array.from(element.querySelectorAll(slotSelector));
297
+ let matches = slotSelector === defaultSlotSelector
298
+ ? getDirectChildren(element, defaultSlotSelector)
299
+ : Array.from(element.querySelectorAll(slotSelector));
295
300
  matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
296
- if (slotSelector === defaultSlotSelector) {
297
- matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
298
- }
301
+ matches = (options === null || options === void 0 ? void 0 : options.matches) ? matches.filter((el) => el === null || el === void 0 ? void 0 : el.matches(options.matches)) : matches;
299
302
  const selector = options === null || options === void 0 ? void 0 : options.selector;
300
303
  return selector
301
304
  ? matches
@@ -305,11 +308,11 @@ function queryMultiple(element, slotSelector, options) {
305
308
  : matches;
306
309
  }
307
310
  function querySingle(element, slotSelector, options) {
308
- let match = element.querySelector(slotSelector);
309
- if (slotSelector === defaultSlotSelector) {
310
- match = (match === null || match === void 0 ? void 0 : match.assignedSlot) ? match : null;
311
- }
311
+ let match = slotSelector === defaultSlotSelector
312
+ ? getDirectChildren(element, defaultSlotSelector)[0] || null
313
+ : element.querySelector(slotSelector);
312
314
  match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
315
+ match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
313
316
  const selector = options === null || options === void 0 ? void 0 : options.selector;
314
317
  return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
315
318
  }
@@ -3722,6 +3725,12 @@ let CalciteCard$1 = class extends HTMLElement$1 {
3722
3725
  // Lifecycle
3723
3726
  //
3724
3727
  // --------------------------------------------------------------------------
3728
+ connectedCallback() {
3729
+ connectConditionalSlotComponent(this);
3730
+ }
3731
+ disonnectedCallback() {
3732
+ disconnectConditionalSlotComponent(this);
3733
+ }
3725
3734
  render() {
3726
3735
  return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
3727
3736
  }
@@ -3730,22 +3739,23 @@ let CalciteCard$1 = class extends HTMLElement$1 {
3730
3739
  this.calciteCardSelect.emit();
3731
3740
  }
3732
3741
  renderThumbnail() {
3733
- const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
3734
- return hasThumbnail ? (h("div", { class: CSS$I.thumbnailWrapper }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
3742
+ return getSlotted(this.el, SLOTS$j.thumbnail) ? (h("div", { class: CSS$I.thumbnailWrapper, key: "thumbnail-wrapper" }, h("slot", { name: SLOTS$j.thumbnail }))) : null;
3735
3743
  }
3736
3744
  renderCheckbox() {
3737
3745
  const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
3738
3746
  return (h("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
3739
3747
  }
3740
3748
  renderHeader() {
3741
- const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
3742
- const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
3749
+ const { el } = this;
3750
+ const title = getSlotted(el, SLOTS$j.title);
3751
+ const subtitle = getSlotted(el, SLOTS$j.subtitle);
3743
3752
  const hasHeader = title || subtitle;
3744
3753
  return hasHeader ? (h("header", { class: CSS$I.header }, h("slot", { name: SLOTS$j.title }), h("slot", { name: SLOTS$j.subtitle }))) : null;
3745
3754
  }
3746
3755
  renderFooter() {
3747
- const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
3748
- const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
3756
+ const { el } = this;
3757
+ const leadingFooter = getSlotted(el, SLOTS$j.footerLeading);
3758
+ const trailingFooter = getSlotted(el, SLOTS$j.footerTrailing);
3749
3759
  const hasFooter = leadingFooter || trailingFooter;
3750
3760
  return hasFooter ? (h("footer", { class: CSS$I.footer }, h("slot", { name: SLOTS$j.footerLeading }), h("slot", { name: SLOTS$j.footerTrailing }))) : null;
3751
3761
  }
@@ -9831,7 +9841,6 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
9831
9841
  const item = document.createElement(ComboboxItem);
9832
9842
  item.value = value;
9833
9843
  item.textLabel = value;
9834
- item.guid = `${chipUidPrefix}${guid()}`;
9835
9844
  item.selected = true;
9836
9845
  this.el.appendChild(item);
9837
9846
  this.resetText();
@@ -9881,7 +9890,9 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
9881
9890
  focusChip() {
9882
9891
  var _a;
9883
9892
  const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
9884
- const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
9893
+ const chip = guid
9894
+ ? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
9895
+ : null;
9885
9896
  chip === null || chip === void 0 ? void 0 : chip.setFocus();
9886
9897
  }
9887
9898
  shiftActiveItemIndex(delta) {
@@ -9936,7 +9947,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
9936
9947
  const ancestors = [...getItemAncestors(item)].reverse();
9937
9948
  const pathLabel = [...ancestors, item].map((el) => el.textLabel);
9938
9949
  const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
9939
- return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: `${chipUidPrefix}${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
9950
+ return (h("calcite-chip", { class: chipClasses, dismissLabel: intlRemoveTag, dismissible: true, icon: item.icon, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
9940
9951
  });
9941
9952
  }
9942
9953
  renderInput() {
@@ -9959,7 +9970,7 @@ let CalciteCombobox$1 = class extends HTMLElement$1 {
9959
9970
  }, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: "text" })));
9960
9971
  }
9961
9972
  renderListBoxOptions() {
9962
- return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}`, role: "option", tabindex: "-1" }, item.textLabel)));
9973
+ return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
9963
9974
  }
9964
9975
  renderPopperContainer() {
9965
9976
  const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
@@ -10061,9 +10072,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
10061
10072
  connectedCallback() {
10062
10073
  this.ancestors = getAncestors(this.el);
10063
10074
  this.scale = getElementProp(this.el, "scale", this.scale);
10075
+ connectConditionalSlotComponent(this);
10064
10076
  }
10065
- componentWillLoad() {
10066
- this.hasDefaultSlot = this.el.querySelector(":not([slot])") !== null;
10077
+ disconnectedCallback() {
10078
+ disconnectConditionalSlotComponent(this);
10067
10079
  }
10068
10080
  // --------------------------------------------------------------------------
10069
10081
  //
@@ -10103,10 +10115,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement$1 {
10103
10115
  }, icon: icon || iconPath, scale: "s" }));
10104
10116
  }
10105
10117
  renderChildren() {
10106
- if (!this.hasDefaultSlot) {
10107
- return null;
10118
+ if (getSlotted(this.el)) {
10119
+ return (h("ul", { key: "default-slot-container" }, h("slot", null)));
10108
10120
  }
10109
- return (h("ul", null, h("slot", null)));
10121
+ return null;
10110
10122
  }
10111
10123
  render() {
10112
10124
  const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
@@ -10361,10 +10373,11 @@ function getSupportedLocale(lang = "") {
10361
10373
  if (locales.indexOf(lang) > -1) {
10362
10374
  return lang;
10363
10375
  }
10364
- else {
10365
- const base = lang.split("-")[0];
10366
- return locales.indexOf(base) > -1 ? base : "en";
10376
+ lang = lang.toLowerCase();
10377
+ if (lang.includes("-")) {
10378
+ lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
10367
10379
  }
10380
+ return locales.includes(lang) ? lang : "en";
10368
10381
  }
10369
10382
  /**
10370
10383
  * CLDR cache.
@@ -13025,6 +13038,8 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13025
13038
  this.value = "";
13026
13039
  /** keep track of the rendered child type */
13027
13040
  this.childElType = "input";
13041
+ /** whether the value of the input was changed as a result of user typing or not */
13042
+ this.internalValueChange = false;
13028
13043
  //--------------------------------------------------------------------------
13029
13044
  //
13030
13045
  // Private Methods
@@ -13044,11 +13059,15 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13044
13059
  }
13045
13060
  };
13046
13061
  this.clearInputValue = (nativeEvent) => {
13047
- this.setValue("", nativeEvent, true);
13062
+ this.setValue({
13063
+ committing: true,
13064
+ nativeEvent,
13065
+ value: ""
13066
+ });
13048
13067
  };
13049
13068
  this.inputBlurHandler = () => {
13050
13069
  if (this.type === "number") {
13051
- this.setLocalizedValue(this.value);
13070
+ this.setValue({ value: this.value });
13052
13071
  }
13053
13072
  this.calciteInputBlur.emit({
13054
13073
  element: this.childEl,
@@ -13072,7 +13091,10 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13072
13091
  if (this.disabled || this.readOnly) {
13073
13092
  return;
13074
13093
  }
13075
- this.setValue(nativeEvent.target.value, nativeEvent);
13094
+ this.setValue({
13095
+ nativeEvent,
13096
+ value: nativeEvent.target.value
13097
+ });
13076
13098
  };
13077
13099
  this.inputKeyDownHandler = (event) => {
13078
13100
  if (this.disabled || this.readOnly) {
@@ -13092,11 +13114,17 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13092
13114
  if (!isValidNumber(delocalizedValue)) {
13093
13115
  nativeEvent.preventDefault();
13094
13116
  }
13095
- this.setValue(parseNumberString(delocalizedValue), nativeEvent);
13117
+ this.setValue({
13118
+ nativeEvent,
13119
+ value: parseNumberString(delocalizedValue)
13120
+ });
13096
13121
  this.childNumberEl.value = this.localizedValue;
13097
13122
  }
13098
13123
  else {
13099
- this.setValue(delocalizeNumberString(value, this.locale), nativeEvent);
13124
+ this.setValue({
13125
+ nativeEvent,
13126
+ value: delocalizeNumberString(value, this.locale)
13127
+ });
13100
13128
  }
13101
13129
  };
13102
13130
  this.inputNumberKeyDownHandler = (event) => {
@@ -13192,18 +13220,44 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13192
13220
  this.setChildNumberElRef = (el) => {
13193
13221
  this.childNumberEl = el;
13194
13222
  };
13195
- this.setLocalizedValue = (value) => {
13196
- this.localizedValue = localizeNumberString(value, this.locale, this.groupSeparator);
13197
- };
13198
- this.setValue = (value, nativeEvent, committing = false) => {
13199
- const previousValue = this.value;
13223
+ this.setInputValue = (newInputValue) => {
13224
+ if (this.type === "text" && !this.childEl) {
13225
+ return;
13226
+ }
13227
+ if (this.type === "number" && !this.childNumberEl) {
13228
+ return;
13229
+ }
13230
+ this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
13231
+ };
13232
+ this.setPreviousValue = (newPreviousValue) => {
13233
+ this.previousValue =
13234
+ this.type === "number"
13235
+ ? isValidNumber(newPreviousValue)
13236
+ ? newPreviousValue
13237
+ : ""
13238
+ : newPreviousValue;
13239
+ };
13240
+ this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
13241
+ const previousLocalizedValue = this.type === "number"
13242
+ ? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
13243
+ : "";
13244
+ const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
13245
+ const newValue = this.type === "number" && value && !sanitizedValue
13246
+ ? isValidNumber(this.previousValue)
13247
+ ? this.previousValue
13248
+ : ""
13249
+ : sanitizedValue;
13250
+ const newLocalizedValue = this.type === "number"
13251
+ ? localizeNumberString(newValue, this.locale, this.groupSeparator)
13252
+ : "";
13253
+ this.internalValueChange = origin === "internal";
13254
+ this.setPreviousValue(this.value);
13255
+ this.value = newValue;
13200
13256
  if (this.type === "number") {
13201
- const sanitizedValue = sanitizeNumberString(value);
13202
- this.value = sanitizedValue;
13203
- this.setLocalizedValue(sanitizedValue);
13257
+ this.localizedValue = newLocalizedValue;
13204
13258
  }
13205
- else {
13206
- this.value = value;
13259
+ if (origin === "external") {
13260
+ this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
13207
13261
  }
13208
13262
  if (nativeEvent) {
13209
13263
  const calciteInputInputEvent = this.calciteInputInput.emit({
@@ -13212,8 +13266,8 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13212
13266
  value: this.value
13213
13267
  });
13214
13268
  if (calciteInputInputEvent.defaultPrevented) {
13215
- this.value = previousValue;
13216
- this.setLocalizedValue(previousValue);
13269
+ this.value = this.previousValue;
13270
+ this.localizedValue = previousLocalizedValue;
13217
13271
  }
13218
13272
  else if (committing) {
13219
13273
  this.calciteInputChange.emit();
@@ -13238,17 +13292,20 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13238
13292
  this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
13239
13293
  }
13240
13294
  valueWatcher(newValue) {
13241
- if (newValue == null) {
13242
- this.value = "";
13243
- return;
13244
- }
13245
- if (this.type === "number" &&
13246
- this.localizedValue !== localizeNumberString(newValue, this.locale)) {
13247
- this.setLocalizedValue(newValue);
13248
- }
13249
- else if (this.childEl && this.childEl.value !== newValue) {
13250
- this.childEl.value = newValue;
13295
+ if (!this.internalValueChange) {
13296
+ this.setValue({
13297
+ origin: "external",
13298
+ value: newValue == null
13299
+ ? ""
13300
+ : this.type === "number"
13301
+ ? isValidNumber(newValue)
13302
+ ? newValue
13303
+ : this.previousValue || ""
13304
+ : newValue
13305
+ });
13306
+ this.warnAboutInvalidNumberValue(newValue);
13251
13307
  }
13308
+ this.internalValueChange = false;
13252
13309
  }
13253
13310
  updateRequestedIcon() {
13254
13311
  this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
@@ -13271,13 +13328,13 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13271
13328
  if (this.inlineEditableEl) {
13272
13329
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
13273
13330
  }
13274
- if (this.type === "number" && this.value) {
13275
- if (isValidNumber(this.value)) {
13276
- this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
13277
- }
13278
- else {
13279
- this.value = "";
13280
- }
13331
+ this.setPreviousValue(this.value);
13332
+ if (this.type === "number") {
13333
+ this.warnAboutInvalidNumberValue(this.value);
13334
+ this.setValue({
13335
+ origin: "loading",
13336
+ value: isValidNumber(this.value) ? this.value : ""
13337
+ });
13281
13338
  }
13282
13339
  connectLabel(this);
13283
13340
  connectForm(this);
@@ -13299,7 +13356,9 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13299
13356
  }
13300
13357
  componentShouldUpdate(newValue, oldValue, property) {
13301
13358
  if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
13302
- this.value = oldValue;
13359
+ this.setValue({
13360
+ value: oldValue
13361
+ });
13303
13362
  return false;
13304
13363
  }
13305
13364
  return true;
@@ -13334,10 +13393,16 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13334
13393
  : nudgedValue;
13335
13394
  const inputValPlaces = decimalPlaces(inputVal);
13336
13395
  const inputStepPlaces = decimalPlaces(inputStep);
13337
- this.setValue(finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces)), nativeEvent, true);
13396
+ this.setValue({
13397
+ committing: true,
13398
+ nativeEvent,
13399
+ value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
13400
+ });
13338
13401
  }
13339
13402
  onFormReset() {
13340
- this.setValue(this.defaultValue);
13403
+ this.setValue({
13404
+ value: this.defaultValue
13405
+ });
13341
13406
  }
13342
13407
  syncHiddenFormInput(input) {
13343
13408
  var _a, _b, _c, _d;
@@ -13368,6 +13433,11 @@ let CalciteInput$1 = class extends HTMLElement$1 {
13368
13433
  ? slottedActionEl.setAttribute("disabled", "")
13369
13434
  : slottedActionEl.removeAttribute("disabled");
13370
13435
  }
13436
+ warnAboutInvalidNumberValue(value) {
13437
+ if (this.type === "number" && value && !isValidNumber(value)) {
13438
+ console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
13439
+ }
13440
+ }
13371
13441
  // --------------------------------------------------------------------------
13372
13442
  //
13373
13443
  // Render Methods
@@ -24653,7 +24723,8 @@ let CalciteTree$1 = class extends HTMLElement$1 {
24653
24723
  onFocusIn(event) {
24654
24724
  const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
24655
24725
  if (focusedFromRootOrOutsideTree) {
24656
- this.el.tabIndex = -1;
24726
+ // gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
24727
+ this.el.removeAttribute("tabindex");
24657
24728
  }
24658
24729
  }
24659
24730
  onFocusOut(event) {
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { f as forceUpdate, h } from './index-9de00868.js';
6
- import { a as getElementDir } from './dom-037dc374.js';
6
+ import { a as getElementDir } from './dom-e7fa77b9.js';
7
7
  import { S as SLOTS } from './resources-584acd9b.js';
8
8
  import { S as SLOTS$1 } from './resources-7c6029b6.js';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-9de00868.js';
6
- import { d as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom-037dc374.js';
6
+ import { d as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom-e7fa77b9.js';
7
7
  import './guid-196bd5ea.js';
8
8
 
9
9
  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:var(--calcite-animation-timing)}: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{position:relative;display:block;max-width:100%;border-width:1px;border-bottom-width:0px;border-style:solid;border-color:var(--calcite-ui-border-2);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}";
@@ -3,8 +3,8 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
- import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-48b6e955.js';
7
- import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
6
+ import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-cff030be.js';
7
+ import { f as focusElement, g as getSlotted } from './dom-e7fa77b9.js';
8
8
  import { c as createObserver } from './observers-46118290.js';
9
9
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
10
10
  import { d as debounce } from './debounce-79648d42.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, h, F as Fragment, g as getElement } from './index-9de00868.js';
6
6
  import { S as SLOTS, I as ICONS, T as TEXT } from './resources-7c6029b6.js';
7
- import { g as getSlotted } from './dom-037dc374.js';
7
+ import { g as getSlotted } from './dom-e7fa77b9.js';
8
8
  import { S as SLOTS$1 } from './resources-584acd9b.js';
9
9
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
10
10
  import './guid-196bd5ea.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-9de00868.js';
6
6
  import { C as CSS, I as ICONS, S as SLOTS } from './resources-584acd9b.js';
7
- import { g as getSlotted, f as focusElement } from './dom-037dc374.js';
7
+ import { g as getSlotted, f as focusElement } from './dom-e7fa77b9.js';
8
8
  import { g as getRoundRobinIndex } from './array-91a648e2.js';
9
9
  import { g as guid } from './guid-196bd5ea.js';
10
10
  import { c as createObserver } from './observers-46118290.js';
@@ -3,8 +3,8 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
- import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-48b6e955.js';
7
- import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
6
+ import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-cff030be.js';
7
+ import { f as focusElement, g as getSlotted } from './dom-e7fa77b9.js';
8
8
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
9
  import './resources-584acd9b.js';
10
10
  import './resources-7c6029b6.js';
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
- import { s as setRequestedIcon } from './dom-037dc374.js';
6
+ import { s as setRequestedIcon } from './dom-e7fa77b9.js';
7
7
  import { S as StatusIcons } from './interfaces-51dc4e1b.js';
8
8
  import './guid-196bd5ea.js';
9
9
 
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
6
6
  import { h as hexToRGB, i as isValidHex } from './utils-6beb0662.js';
7
- import { b as getThemeName } from './dom-037dc374.js';
7
+ import { b as getThemeName } from './dom-e7fa77b9.js';
8
8
  import './guid-196bd5ea.js';
9
9
 
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
- import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
6
+ import { g as getSlotted, a as getElementDir } from './dom-e7fa77b9.js';
7
7
  import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
8
8
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
9
  import './guid-196bd5ea.js';
@@ -3,8 +3,8 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
6
- import { c as closestElementCrossShadowBoundary } from './dom-037dc374.js';
7
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
6
+ import { c as closestElementCrossShadowBoundary } from './dom-e7fa77b9.js';
7
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-2bffc9f4.js';
8
8
  import { c as createObserver } from './observers-46118290.js';
9
9
  import './guid-196bd5ea.js';
10
10
 
@@ -3,6 +3,10 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
6
+ import { g as getSlotted } from './dom-e7fa77b9.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
8
+ import './guid-196bd5ea.js';
9
+ import './observers-46118290.js';
6
10
 
7
11
  const CSS = {
8
12
  container: "container",
@@ -83,6 +87,12 @@ let CalciteCard = class {
83
87
  // Lifecycle
84
88
  //
85
89
  // --------------------------------------------------------------------------
90
+ connectedCallback() {
91
+ connectConditionalSlotComponent(this);
92
+ }
93
+ disonnectedCallback() {
94
+ disconnectConditionalSlotComponent(this);
95
+ }
86
96
  render() {
87
97
  return (h("div", { class: "calcite-card-container" }, this.loading ? (h("div", { class: "calcite-card-loader-container" }, h("calcite-loader", { active: true, label: this.intlLoading }))) : null, h("section", { "aria-busy": this.loading.toString(), class: { [CSS.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), h("div", { class: "card-content" }, h("slot", null)), this.renderFooter())));
88
98
  }
@@ -91,22 +101,23 @@ let CalciteCard = class {
91
101
  this.calciteCardSelect.emit();
92
102
  }
93
103
  renderThumbnail() {
94
- const hasThumbnail = this.el.querySelector(`[slot=${SLOTS.thumbnail}]`);
95
- return hasThumbnail ? (h("div", { class: CSS.thumbnailWrapper }, h("slot", { name: SLOTS.thumbnail }))) : null;
104
+ return getSlotted(this.el, SLOTS.thumbnail) ? (h("div", { class: CSS.thumbnailWrapper, key: "thumbnail-wrapper" }, h("slot", { name: SLOTS.thumbnail }))) : null;
96
105
  }
97
106
  renderCheckbox() {
98
107
  const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
99
108
  return (h("calcite-label", { class: CSS.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, h("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
100
109
  }
101
110
  renderHeader() {
102
- const title = this.el.querySelector(`[slot=${SLOTS.title}]`);
103
- const subtitle = this.el.querySelector(`[slot=${SLOTS.subtitle}]`);
111
+ const { el } = this;
112
+ const title = getSlotted(el, SLOTS.title);
113
+ const subtitle = getSlotted(el, SLOTS.subtitle);
104
114
  const hasHeader = title || subtitle;
105
115
  return hasHeader ? (h("header", { class: CSS.header }, h("slot", { name: SLOTS.title }), h("slot", { name: SLOTS.subtitle }))) : null;
106
116
  }
107
117
  renderFooter() {
108
- const leadingFooter = this.el.querySelector(`[slot=${SLOTS.footerLeading}]`);
109
- const trailingFooter = this.el.querySelector(`[slot=${SLOTS.footerTrailing}]`);
118
+ const { el } = this;
119
+ const leadingFooter = getSlotted(el, SLOTS.footerLeading);
120
+ const trailingFooter = getSlotted(el, SLOTS.footerTrailing);
110
121
  const hasFooter = leadingFooter || trailingFooter;
111
122
  return hasFooter ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footerLeading }), h("slot", { name: SLOTS.footerTrailing }))) : null;
112
123
  }
@@ -4,9 +4,9 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { g as guid } from './guid-196bd5ea.js';
7
- import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-72369b73.js';
8
- import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
9
- import './dom-037dc374.js';
7
+ import { c as connectForm, d as disconnectForm, H as HiddenFormInputSlot } from './form-f90706b4.js';
8
+ import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-2bffc9f4.js';
9
+ import './dom-e7fa77b9.js';
10
10
 
11
11
  const calciteCheckboxCss = "@-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:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([scale=s]){--calcite-checkbox-size:0.75rem}:host([scale=m]){--calcite-checkbox-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-checkbox-size:1rem}:host{position:relative;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;background-color:var(--calcite-ui-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;-webkit-transition-property:all;transition-property:all;-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);overflow:hidden;width:var(--calcite-checkbox-size);height:var(--calcite-checkbox-size);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);box-shadow:inset 0 0 0 1px var(--calcite-ui-border-input);color:var(--calcite-ui-background)}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-ui-brand);-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand)}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{-webkit-box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}:host .toggle:focus .check-svg,:host .toggle:active .check-svg{-webkit-box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand), 0 0 0 2px var(--calcite-ui-foreground-1), 0 0 0 4px var(--calcite-ui-brand);-webkit-transition:var(--calcite-animation-timing);transition:var(--calcite-animation-timing)}:host([disabled]){pointer-events:none;cursor:default;opacity:var(--calcite-ui-opacity-disabled)}::slotted(input[slot=hidden-form-input]){bottom:0 !important;left:0 !important;margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;right:0 !important;top:0 !important;-webkit-transform:none !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
12
12
 
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
6
- import { g as getSlotted } from './dom-037dc374.js';
6
+ import { g as getSlotted } from './dom-e7fa77b9.js';
7
7
  import { g as guid } from './guid-196bd5ea.js';
8
8
  import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
9
  import './observers-46118290.js';
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
6
- import { f as focusElement, b as getThemeName } from './dom-037dc374.js';
6
+ import { f as focusElement, b as getThemeName } from './dom-e7fa77b9.js';
7
7
  import { n as normalizeHex, C as CSSColorMode, p as parseMode, c as colorEqual, i as isValidHex, a as isLonghandHex, r as rgbToHex, h as hexToRGB, b as hexChar } from './utils-6beb0662.js';
8
8
  import { c as clamp } from './math-456207f5.js';
9
9
  import { d as debounce, i as isObject } from './debounce-79648d42.js';