@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
@@ -2,4 +2,4 @@ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e ins
2
2
  /*!
3
3
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
4
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
- */import{f as focusElement,g as getSlotted}from"./dom-037dc374.js";import{g as getRoundRobinIndex}from"./array-91a648e2.js";import{d as debounce}from"./debounce-79648d42.js";import{h,H as Host}from"./index-9de00868.js";function mutationObserverCallback(){this.setUpItems();this.setUpFilter();this.deselectRemovedItems()}var SUPPORTED_ARROW_KEYS=["ArrowUp","ArrowDown"];function initialize(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=debounce(internalCalciteListChangeEvent.bind(this),0)}function initializeObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true})}function cleanUpObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect()}function calciteListItemChangeHandler(e){var t=this.selectedValues;var i=e.detail,n=i.item,a=i.value,r=i.selected,l=i.shiftPressed;if(r){if(this.multiple&&l){this.selectSiblings(n)}if(!this.multiple){this.deselectSiblingItems(n)}t.set(a,n)}else{t.delete(a);if(this.multiple&&l){this.selectSiblings(n,true)}}if(!this.multiple){toggleSingleSelectItemTabbing(n,r);if(r){focusElement(n)}}this.lastSelectedItem=n;this.emitCalciteListChange()}function calciteListItemValueChangeHandler(e){e.stopPropagation();var t=e.detail.oldValue;var i=this.selectedValues;if(i.has(t)){var n=i.get(t);i.delete(t);i.set(e.detail.newValue,n)}}function isValidNavigationKey(e){return!!SUPPORTED_ARROW_KEYS.find((function(t){return t===e}))}function calciteListFocusOutHandler(e){var t=this,i=t.el,n=t.items,a=t.multiple,r=t.selectedValues;if(a){return}var l=!!i.contains(e.relatedTarget);if(l){toggleSingleSelectItemTabbing(e.target,false);return}n.forEach((function(t){return toggleSingleSelectItemTabbing(t,r.size===0?e.target===t:t.selected)}))}function keyDownHandler(e){var t=e.key,i=e.target;if(!isValidNavigationKey(t)){return}var n=this,a=n.items,r=n.multiple,l=n.selectionFollowsFocus;var s=a.length;var o=a.indexOf(i);if(!s||o===-1){return}e.preventDefault();var c=getRoundRobinIndex(o+(t==="ArrowUp"?-1:1),s);var u=a[c];a.forEach((function(e){return toggleSingleSelectItemTabbing(e,e===u)}));if(!r&&l){u.selected=true}focusElement(u)}function internalCalciteListChangeEvent(){this.calciteListChange.emit(this.selectedValues)}function removeItem(e){if(e.defaultPrevented){return}var t=e.target;var i=this.selectedValues;if(t.parentElement.tagName==="CALCITE-PICK-LIST-GROUP"){t.parentElement.remove();Array.from(t.parentElement.children).forEach((function(e){return i.delete(e.value)}))}else{t.remove();i.delete(t.value)}this.emitCalciteListChange()}function toggleSingleSelectItemTabbing(e,t){if(t){e.removeAttribute("tabindex")}else{e.setAttribute("tabindex","-1")}}function setFocus(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,a,r;return __generator(this,(function(l){switch(l.label){case 0:if(!(this.filterEnabled&&e==="filter"))return[3,2];return[4,focusElement(this.filterEl)];case 1:l.sent();return[2];case 2:t=this,i=t.items,n=t.multiple,a=t.selectionFollowsFocus;if(i.length===0){return[2]}if(n){return[2,i[0].setFocus()]}r=i.find((function(e){return e.selected}))||i[0];if(a){r.selected=true}return[2,r.setFocus()]}}))}))}function setUpItems(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));var i=false;var n=this.items;n.forEach((function(e){e.icon=t.getIconType();if(!t.multiple){e.disableDeselect=true;toggleSingleSelectItemTabbing(e,false)}if(e.selected){i=true;toggleSingleSelectItemTabbing(e,true);t.selectedValues.set(e.value,e)}}));var a=n[0];if(!i&&a){toggleSingleSelectItemTabbing(a,true)}}function deselectRemovedItems(){var e=this;var t=this.selectedValues;var i=this.items.map((function(e){var t=e.value;return t}));t.forEach((function(t){if(!i.includes(t.value)){e.selectedValues.delete(t.value)}}))}function deselectSiblingItems(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))}function selectSiblings(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var n=this.items;var a=n.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var r=n.findIndex((function(t){return t.value===e.value}));n.slice(Math.min(a,r),Math.max(a,r)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))}var groups;function handleFilter(e){var t=e.currentTarget.filteredItems;var i=t.map((function(e){return e.value}));var n=false;if(!groups){groups=new Set}var a=this.items.filter((function(e){var t=e.parentElement;var a=t.matches("calcite-pick-list-group");if(a){groups.add(t)}var r=i.includes(e.value);e.hidden=!r;if(!n){n=r&&e.selected}return r}));groups.forEach((function(e){var t=a.some((function(t){return e.contains(t)}));e.hidden=!t;if(!t){return}var i=getSlotted(e,"parent-item");if(i){i.hidden=false;if(a.includes(i)){Array.from(e.children).forEach((function(e){return e.hidden=false}))}}}));groups.clear();if(a.length>0&&!n&&!this.multiple){toggleSingleSelectItemTabbing(a[0],true)}}function getItemData(){return this.items.map((function(e){return{label:e.label,description:e.description,metadata:e.metadata,value:e.value}}))}var CSS$1={sticky:"sticky-pos"};var ICON_TYPES;(function(e){e["circle"]="circle";e["square"]="square";e["grip"]="grip"})(ICON_TYPES||(ICON_TYPES={}));var SLOTS$1={menuActions:"menu-actions"};var __rest=undefined&&undefined.__rest||function(e,t){var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)i[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++){if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))i[n[a]]=e[n[a]]}return i};var List=function(e){var t;var i=e.props,n=i.disabled,a=i.loading,r=i.filterEnabled,l=i.dataForFilter,s=i.handleFilter,o=i.filterPlaceholder,c=i.setFilterEl,u=__rest(e,["props"]);var f=h("slot",null);return h(Host,Object.assign({"aria-busy":a.toString(),"aria-disabled":n.toString(),role:"menu"},u),h("section",null,h("header",{class:(t={},t[CSS$1.sticky]=true,t)},r?h("calcite-filter",{"aria-label":o,disabled:a||n,items:l,onCalciteFilterChange:s,placeholder:o,ref:c}):null,h("slot",{name:SLOTS$1.menuActions})),a||n?h("calcite-scrim",{loading:a}):null,f))};var CSS={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"};var ICONS={checked:"check",remove:"x"};var SLOTS={actionsEnd:"actions-end",actionsStart:"actions-start"};var TEXT={remove:"Remove"};export{CSS as C,ICON_TYPES as I,List as L,SLOTS as S,TEXT as T,deselectSiblingItems as a,initializeObserver as b,cleanUpObserver as c,deselectRemovedItems as d,calciteListItemChangeHandler as e,calciteListItemValueChangeHandler as f,getItemData as g,handleFilter as h,initialize as i,setUpItems as j,keyDownHandler as k,setFocus as l,mutationObserverCallback as m,calciteListFocusOutHandler as n,ICONS as o,removeItem as r,selectSiblings as s};
5
+ */import{f as focusElement,g as getSlotted}from"./dom-e7fa77b9.js";import{g as getRoundRobinIndex}from"./array-91a648e2.js";import{d as debounce}from"./debounce-79648d42.js";import{h,H as Host}from"./index-9de00868.js";function mutationObserverCallback(){this.setUpItems();this.setUpFilter();this.deselectRemovedItems()}var SUPPORTED_ARROW_KEYS=["ArrowUp","ArrowDown"];function initialize(){this.setUpItems();this.setUpFilter();this.emitCalciteListChange=debounce(internalCalciteListChangeEvent.bind(this),0)}function initializeObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.observe(this.el,{childList:true,subtree:true})}function cleanUpObserver(){var e;(e=this.mutationObserver)===null||e===void 0?void 0:e.disconnect()}function calciteListItemChangeHandler(e){var t=this.selectedValues;var i=e.detail,n=i.item,a=i.value,r=i.selected,l=i.shiftPressed;if(r){if(this.multiple&&l){this.selectSiblings(n)}if(!this.multiple){this.deselectSiblingItems(n)}t.set(a,n)}else{t.delete(a);if(this.multiple&&l){this.selectSiblings(n,true)}}if(!this.multiple){toggleSingleSelectItemTabbing(n,r);if(r){focusElement(n)}}this.lastSelectedItem=n;this.emitCalciteListChange()}function calciteListItemValueChangeHandler(e){e.stopPropagation();var t=e.detail.oldValue;var i=this.selectedValues;if(i.has(t)){var n=i.get(t);i.delete(t);i.set(e.detail.newValue,n)}}function isValidNavigationKey(e){return!!SUPPORTED_ARROW_KEYS.find((function(t){return t===e}))}function calciteListFocusOutHandler(e){var t=this,i=t.el,n=t.items,a=t.multiple,r=t.selectedValues;if(a){return}var l=!!i.contains(e.relatedTarget);if(l){toggleSingleSelectItemTabbing(e.target,false);return}n.forEach((function(t){return toggleSingleSelectItemTabbing(t,r.size===0?e.target===t:t.selected)}))}function keyDownHandler(e){var t=e.key,i=e.target;if(!isValidNavigationKey(t)){return}var n=this,a=n.items,r=n.multiple,l=n.selectionFollowsFocus;var s=a.length;var o=a.indexOf(i);if(!s||o===-1){return}e.preventDefault();var c=getRoundRobinIndex(o+(t==="ArrowUp"?-1:1),s);var u=a[c];a.forEach((function(e){return toggleSingleSelectItemTabbing(e,e===u)}));if(!r&&l){u.selected=true}focusElement(u)}function internalCalciteListChangeEvent(){this.calciteListChange.emit(this.selectedValues)}function removeItem(e){if(e.defaultPrevented){return}var t=e.target;var i=this.selectedValues;if(t.parentElement.tagName==="CALCITE-PICK-LIST-GROUP"){t.parentElement.remove();Array.from(t.parentElement.children).forEach((function(e){return i.delete(e.value)}))}else{t.remove();i.delete(t.value)}this.emitCalciteListChange()}function toggleSingleSelectItemTabbing(e,t){if(t){e.removeAttribute("tabindex")}else{e.setAttribute("tabindex","-1")}}function setFocus(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,a,r;return __generator(this,(function(l){switch(l.label){case 0:if(!(this.filterEnabled&&e==="filter"))return[3,2];return[4,focusElement(this.filterEl)];case 1:l.sent();return[2];case 2:t=this,i=t.items,n=t.multiple,a=t.selectionFollowsFocus;if(i.length===0){return[2]}if(n){return[2,i[0].setFocus()]}r=i.find((function(e){return e.selected}))||i[0];if(a){r.selected=true}return[2,r.setFocus()]}}))}))}function setUpItems(e){var t=this;this.items=Array.from(this.el.querySelectorAll(e));var i=false;var n=this.items;n.forEach((function(e){e.icon=t.getIconType();if(!t.multiple){e.disableDeselect=true;toggleSingleSelectItemTabbing(e,false)}if(e.selected){i=true;toggleSingleSelectItemTabbing(e,true);t.selectedValues.set(e.value,e)}}));var a=n[0];if(!i&&a){toggleSingleSelectItemTabbing(a,true)}}function deselectRemovedItems(){var e=this;var t=this.selectedValues;var i=this.items.map((function(e){var t=e.value;return t}));t.forEach((function(t){if(!i.includes(t.value)){e.selectedValues.delete(t.value)}}))}function deselectSiblingItems(e){var t=this;this.items.forEach((function(i){if(i.value!==e.value){i.toggleSelected(false);if(t.selectedValues.has(i.value)){t.selectedValues.delete(i.value)}}}))}function selectSiblings(e,t){var i=this;if(t===void 0){t=false}if(!this.lastSelectedItem){return}var n=this.items;var a=n.findIndex((function(e){return e.value===i.lastSelectedItem.value}));var r=n.findIndex((function(t){return t.value===e.value}));n.slice(Math.min(a,r),Math.max(a,r)).forEach((function(e){e.toggleSelected(!t);if(!t){i.selectedValues.set(e.value,e)}else{i.selectedValues.delete(e.value)}}))}var groups;function handleFilter(e){var t=e.currentTarget.filteredItems;var i=t.map((function(e){return e.value}));var n=false;if(!groups){groups=new Set}var a=this.items.filter((function(e){var t=e.parentElement;var a=t.matches("calcite-pick-list-group");if(a){groups.add(t)}var r=i.includes(e.value);e.hidden=!r;if(!n){n=r&&e.selected}return r}));groups.forEach((function(e){var t=a.some((function(t){return e.contains(t)}));e.hidden=!t;if(!t){return}var i=getSlotted(e,"parent-item");if(i){i.hidden=false;if(a.includes(i)){Array.from(e.children).forEach((function(e){return e.hidden=false}))}}}));groups.clear();if(a.length>0&&!n&&!this.multiple){toggleSingleSelectItemTabbing(a[0],true)}}function getItemData(){return this.items.map((function(e){return{label:e.label,description:e.description,metadata:e.metadata,value:e.value}}))}var CSS$1={sticky:"sticky-pos"};var ICON_TYPES;(function(e){e["circle"]="circle";e["square"]="square";e["grip"]="grip"})(ICON_TYPES||(ICON_TYPES={}));var SLOTS$1={menuActions:"menu-actions"};var __rest=undefined&&undefined.__rest||function(e,t){var i={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)i[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++){if(t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a]))i[n[a]]=e[n[a]]}return i};var List=function(e){var t;var i=e.props,n=i.disabled,a=i.loading,r=i.filterEnabled,l=i.dataForFilter,s=i.handleFilter,o=i.filterPlaceholder,c=i.setFilterEl,u=__rest(e,["props"]);var f=h("slot",null);return h(Host,Object.assign({"aria-busy":a.toString(),"aria-disabled":n.toString(),role:"menu"},u),h("section",null,h("header",{class:(t={},t[CSS$1.sticky]=true,t)},r?h("calcite-filter",{"aria-label":o,disabled:a||n,items:l,onCalciteFilterChange:s,placeholder:o,ref:c}):null,h("slot",{name:SLOTS$1.menuActions})),a||n?h("calcite-scrim",{loading:a}):null,f))};var CSS={actions:"actions",actionsEnd:"actions--end",actionsStart:"actions--start",description:"description",handle:"handle",handleActivated:"handle--activated",highlight:"highlight",icon:"icon",iconDot:"icon-dot",label:"label",remove:"remove",title:"title",textContainer:"text-container"};var ICONS={checked:"check",remove:"x"};var SLOTS={actionsEnd:"actions-end",actionsStart:"actions-start"};var TEXT={remove:"Remove"};export{CSS as C,ICON_TYPES as I,List as L,SLOTS as S,TEXT as T,deselectSiblingItems as a,initializeObserver as b,cleanUpObserver as c,deselectRemovedItems as d,calciteListItemChangeHandler as e,calciteListItemValueChangeHandler as f,getItemData as g,handleFilter as h,initialize as i,setUpItems as j,keyDownHandler as k,setFocus as l,mutationObserverCallback as m,calciteListFocusOutHandler as n,ICONS as o,removeItem as r,selectSiblings as s};
@@ -0,0 +1,5 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(o,u)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,a&&(i=o[0]&2?a["return"]:o[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;if(a=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(o[0]===6&&n.label<i[1]){n.label=i[1];i=o;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(o);break}if(i[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{r=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
+ /*!
3
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
4
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
5
+ */import{a as getAssetPath}from"./index-9de00868.js";import{a as locales}from"./locale-fc850b7c.js";function getSupportedLocale(e){if(e===void 0){e=""}if(locales.indexOf(e)>-1){return e}e=e.toLowerCase();if(e.includes("-")){e=e.replace(/(\w+)-(\w+)/,(function(e,t,n){return t+"-"+n.toUpperCase()}))}return locales.includes(e)?e:"en"}var translationCache={};var requestCache={};function getLocaleData(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:t=getSupportedLocale(e);if(translationCache[t]){return[2,translationCache[t]]}if(!requestCache[t]){requestCache[t]=fetch(getAssetPath("./assets/calcite-date-picker/nls/"+t+".json")).then((function(e){return e.json()})).catch((function(){console.error('Translations for "'+t+'" not found or invalid, falling back to english');return getLocaleData("en")}))}return[4,requestCache[t]];case 1:n=r.sent();translationCache[t]=n;return[2,n]}}))}))}function inRange(e,t,n){var r=e.getTime();var a=!(t instanceof Date)||r>=t.getTime();var i=!(n instanceof Date)||r<=n.getTime();return a&&i}function dateFromRange(e,t,n){if(!(e instanceof Date)){return null}var r=e.getTime();var a=t instanceof Date&&r<t.getTime();var i=n instanceof Date&&r>n.getTime();if(a){return t}if(i){return n}return e}function dateFromISO(e){if(e instanceof Date){return e}if(!e||typeof e!=="string"){return null}var t=e.split(/[: T-]/).map(parseFloat);var n=new Date(t[0],(t[1]||1)-1,t[2]||1);n.setFullYear(t[0]);if(isNaN(n.getTime())){throw new Error('Invalid ISO 8601 date: "'+e+'"')}return n}function dateToISO(e){if(typeof e==="string"){return e}if(e instanceof Date){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().split("T")[0]}return""}function sameDate(e,t){return e instanceof Date&&t instanceof Date&&e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function prevMonth(e){var t=e.getMonth();var n=new Date(e);n.setMonth(t-1);if(t===n.getMonth()){return new Date(e.getFullYear(),t,0)}return n}function nextMonth(e){var t=e.getMonth();var n=new Date(e);n.setMonth(t+1);if((t+2)%7===n.getMonth()%7){return new Date(e.getFullYear(),t+2,0)}return n}function localizeNumber(e,t){return String(e).split("").map((function(e){return t.numerals[e]})).join("")}function parseNumber(e,t){var n="0123456789";return parseInt(e.split("").map((function(e){return n[t.numerals.indexOf(e)]})).filter((function(e){return e})).join(""))}function parseDateString(e,t){var n=t.separator,r=t.unitOrder;var a=getOrder(r);var i=replaceArabicNumerals(e).split(n);return{day:parseInt(i[a.indexOf("d")]),month:parseInt(i[a.indexOf("m")])-1,year:parseInt(i[a.indexOf("y")])}}function replaceArabicNumerals(e){if(e===void 0){e=""}return e.replace(/[\u0660-\u0669]/g,(function(e){return e.charCodeAt(0)-1632})).replace(/[\u06f0-\u06f9]/g,(function(e){return e.charCodeAt(0)-1776}))}function getOrder(e){var t=["d","m","y"];var n=e.toLowerCase();return t.sort((function(e,t){return n.indexOf(e)-n.indexOf(t)}))}function getDaysDiff(e,t){var n=e.getTime();var r=t.getTime();return(n-r)/(1e3*3600*24)}var HEADING_LEVEL=2;var TEXT={nextMonth:"Next month",prevMonth:"Previous month",year:"Year"};export{HEADING_LEVEL as H,TEXT as T,dateFromISO as a,dateFromRange as b,getDaysDiff as c,dateToISO as d,getOrder as e,prevMonth as f,getLocaleData as g,parseNumber as h,inRange as i,localizeNumber as l,nextMonth as n,parseDateString as p,sameDate as s};
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2022-01-19T01:14:14",
2
+ "timestamp": "2022-01-20T01:47:27",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.12.1",
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
2
3
  /** Cards do not include a grid or bounding container
3
4
  * - cards will expand to fit the width of their container
4
5
  */
@@ -10,7 +11,7 @@ import { EventEmitter, VNode } from "../../stencil-public-runtime";
10
11
  * @slot footer-leading - A slot for adding a leading footer.
11
12
  * @slot footer-trailing - A slot for adding a trailing footer.
12
13
  */
13
- export declare class CalciteCard {
14
+ export declare class CalciteCard implements ConditionalSlotComponent {
14
15
  el: HTMLCalciteCardElement;
15
16
  /** When true, the cards content is waiting to be loaded. This state shows a busy indicator.*/
16
17
  loading: boolean;
@@ -32,6 +33,8 @@ export declare class CalciteCard {
32
33
  intlDeselect: string;
33
34
  /** Fired when a selectable card is selected */
34
35
  calciteCardSelect: EventEmitter;
36
+ connectedCallback(): void;
37
+ disonnectedCallback(): void;
35
38
  render(): VNode;
36
39
  private cardSelectClick;
37
40
  private cardSelectKeyDown;
@@ -1,10 +1,11 @@
1
1
  import { EventEmitter, VNode } from "../../stencil-public-runtime";
2
2
  import { ComboboxChildElement } from "../calcite-combobox/interfaces";
3
3
  import { Scale } from "../interfaces";
4
+ import { ConditionalSlotComponent } from "../../utils/conditionalSlot";
4
5
  /**
5
6
  * @slot - A slot for adding nested `calcite-combobox-item`s.
6
7
  */
7
- export declare class CalciteComboboxItem {
8
+ export declare class CalciteComboboxItem implements ConditionalSlotComponent {
8
9
  /** When true, the item cannot be clicked and is visually muted. */
9
10
  disabled: boolean;
10
11
  /** Set this to true to pre-select an item. Toggles when an item is checked/unchecked. */
@@ -26,10 +27,9 @@ export declare class CalciteComboboxItem {
26
27
  constant: boolean;
27
28
  el: HTMLCalciteComboboxItemElement;
28
29
  isNested: boolean;
29
- hasDefaultSlot: boolean;
30
30
  scale: Scale;
31
31
  connectedCallback(): void;
32
- componentWillLoad(): void;
32
+ disconnectedCallback(): void;
33
33
  /**
34
34
  * Emitted whenever the item is selected or unselected.
35
35
  */
@@ -106,11 +106,14 @@ export declare class CalciteInput implements LabelableComponent, FormComponent {
106
106
  private childElType?;
107
107
  /** number text input element for locale */
108
108
  private childNumberEl?;
109
+ /** whether the value of the input was changed as a result of user typing or not */
110
+ private internalValueChange;
109
111
  get isClearable(): boolean;
110
112
  get isTextarea(): boolean;
111
113
  private minString?;
112
114
  private maxString?;
113
115
  private preFocusValue;
116
+ private previousValue;
114
117
  /** the computed icon to render */
115
118
  private requestedIcon?;
116
119
  /** determine if there is a slotted action for styling purposes */
@@ -158,9 +161,11 @@ export declare class CalciteInput implements LabelableComponent, FormComponent {
158
161
  private setChildElRef;
159
162
  private setChildNumberElRef;
160
163
  private setDisabledAction;
161
- private setLocalizedValue;
164
+ private setInputValue;
165
+ private setPreviousValue;
162
166
  private setValue;
163
167
  private inputKeyUpHandler;
168
+ private warnAboutInvalidNumberValue;
164
169
  render(): VNode;
165
170
  }
166
171
  export {};
@@ -39,6 +39,7 @@ export declare function focusElement(el: CalciteFocusableElement): Promise<void>
39
39
  interface GetSlottedOptions {
40
40
  all?: boolean;
41
41
  direct?: boolean;
42
+ matches?: string;
42
43
  selector?: string;
43
44
  }
44
45
  export declare function getSlotted<T extends Element = Element>(element: Element, slotName: string | string[] | (GetSlottedOptions & {
package/hydrate/index.js CHANGED
@@ -5798,9 +5798,9 @@ async function focusElement(el) {
5798
5798
  }
5799
5799
  return isCalciteFocusable(el) ? el.setFocus() : el.focus();
5800
5800
  }
5801
- const defaultSlotSelector = "> :not([slot])";
5801
+ const defaultSlotSelector = ":not([slot])";
5802
5802
  function getSlotted(element, slotName, options) {
5803
- if (!Array.isArray(slotName) && typeof slotName !== "string") {
5803
+ if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
5804
5804
  options = slotName;
5805
5805
  slotName = null;
5806
5806
  }
@@ -5814,12 +5814,15 @@ function getSlotted(element, slotName, options) {
5814
5814
  }
5815
5815
  return querySingle(element, slotSelector, options);
5816
5816
  }
5817
+ function getDirectChildren(el, selector) {
5818
+ return el ? Array.from(el.children || []).filter((child) => child === null || child === void 0 ? void 0 : child.matches(selector)) : [];
5819
+ }
5817
5820
  function queryMultiple(element, slotSelector, options) {
5818
- let matches = Array.from(element.querySelectorAll(slotSelector));
5821
+ let matches = slotSelector === defaultSlotSelector
5822
+ ? getDirectChildren(element, defaultSlotSelector)
5823
+ : Array.from(element.querySelectorAll(slotSelector));
5819
5824
  matches = options && options.direct === false ? matches : matches.filter((el) => el.parentElement === element);
5820
- if (slotSelector === defaultSlotSelector) {
5821
- matches = matches.filter((match) => match === null || match === void 0 ? void 0 : match.assignedSlot);
5822
- }
5825
+ 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;
5823
5826
  const selector = options === null || options === void 0 ? void 0 : options.selector;
5824
5827
  return selector
5825
5828
  ? matches
@@ -5829,11 +5832,11 @@ function queryMultiple(element, slotSelector, options) {
5829
5832
  : matches;
5830
5833
  }
5831
5834
  function querySingle(element, slotSelector, options) {
5832
- let match = element.querySelector(slotSelector);
5833
- if (slotSelector === defaultSlotSelector) {
5834
- match = (match === null || match === void 0 ? void 0 : match.assignedSlot) ? match : null;
5835
- }
5835
+ let match = slotSelector === defaultSlotSelector
5836
+ ? getDirectChildren(element, defaultSlotSelector)[0] || null
5837
+ : element.querySelector(slotSelector);
5836
5838
  match = options && options.direct === false ? match : (match === null || match === void 0 ? void 0 : match.parentElement) === element ? match : null;
5839
+ match = (options === null || options === void 0 ? void 0 : options.matches) ? ((match === null || match === void 0 ? void 0 : match.matches(options.matches)) ? match : null) : match;
5837
5840
  const selector = options === null || options === void 0 ? void 0 : options.selector;
5838
5841
  return selector ? match === null || match === void 0 ? void 0 : match.querySelector(selector) : match;
5839
5842
  }
@@ -9472,6 +9475,12 @@ class CalciteCard {
9472
9475
  // Lifecycle
9473
9476
  //
9474
9477
  // --------------------------------------------------------------------------
9478
+ connectedCallback() {
9479
+ connectConditionalSlotComponent(this);
9480
+ }
9481
+ disonnectedCallback() {
9482
+ disconnectConditionalSlotComponent(this);
9483
+ }
9475
9484
  render() {
9476
9485
  return (hAsync("div", { class: "calcite-card-container" }, this.loading ? (hAsync("div", { class: "calcite-card-loader-container" }, hAsync("calcite-loader", { active: true, label: this.intlLoading }))) : null, hAsync("section", { "aria-busy": this.loading.toString(), class: { [CSS$I.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderThumbnail(), this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter())));
9477
9486
  }
@@ -9480,22 +9489,23 @@ class CalciteCard {
9480
9489
  this.calciteCardSelect.emit();
9481
9490
  }
9482
9491
  renderThumbnail() {
9483
- const hasThumbnail = this.el.querySelector(`[slot=${SLOTS$j.thumbnail}]`);
9484
- return hasThumbnail ? (hAsync("div", { class: CSS$I.thumbnailWrapper }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
9492
+ return getSlotted(this.el, SLOTS$j.thumbnail) ? (hAsync("div", { class: CSS$I.thumbnailWrapper, key: "thumbnail-wrapper" }, hAsync("slot", { name: SLOTS$j.thumbnail }))) : null;
9485
9493
  }
9486
9494
  renderCheckbox() {
9487
9495
  const checkboxLabel = this.selected ? this.intlDeselect : this.intlSelect;
9488
9496
  return (hAsync("calcite-label", { class: CSS$I.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: checkboxLabel })));
9489
9497
  }
9490
9498
  renderHeader() {
9491
- const title = this.el.querySelector(`[slot=${SLOTS$j.title}]`);
9492
- const subtitle = this.el.querySelector(`[slot=${SLOTS$j.subtitle}]`);
9499
+ const { el } = this;
9500
+ const title = getSlotted(el, SLOTS$j.title);
9501
+ const subtitle = getSlotted(el, SLOTS$j.subtitle);
9493
9502
  const hasHeader = title || subtitle;
9494
9503
  return hasHeader ? (hAsync("header", { class: CSS$I.header }, hAsync("slot", { name: SLOTS$j.title }), hAsync("slot", { name: SLOTS$j.subtitle }))) : null;
9495
9504
  }
9496
9505
  renderFooter() {
9497
- const leadingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerLeading}]`);
9498
- const trailingFooter = this.el.querySelector(`[slot=${SLOTS$j.footerTrailing}]`);
9506
+ const { el } = this;
9507
+ const leadingFooter = getSlotted(el, SLOTS$j.footerLeading);
9508
+ const trailingFooter = getSlotted(el, SLOTS$j.footerTrailing);
9499
9509
  const hasFooter = leadingFooter || trailingFooter;
9500
9510
  return hasFooter ? (hAsync("footer", { class: CSS$I.footer }, hAsync("slot", { name: SLOTS$j.footerLeading }), hAsync("slot", { name: SLOTS$j.footerTrailing }))) : null;
9501
9511
  }
@@ -15704,7 +15714,6 @@ class CalciteCombobox {
15704
15714
  const item = document.createElement(ComboboxItem);
15705
15715
  item.value = value;
15706
15716
  item.textLabel = value;
15707
- item.guid = `${chipUidPrefix}${guid()}`;
15708
15717
  item.selected = true;
15709
15718
  this.el.appendChild(item);
15710
15719
  this.resetText();
@@ -15754,7 +15763,9 @@ class CalciteCombobox {
15754
15763
  focusChip() {
15755
15764
  var _a;
15756
15765
  const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
15757
- const chip = this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`);
15766
+ const chip = guid
15767
+ ? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
15768
+ : null;
15758
15769
  chip === null || chip === void 0 ? void 0 : chip.setFocus();
15759
15770
  }
15760
15771
  shiftActiveItemIndex(delta) {
@@ -15809,7 +15820,7 @@ class CalciteCombobox {
15809
15820
  const ancestors = [...getItemAncestors(item)].reverse();
15810
15821
  const pathLabel = [...ancestors, item].map((el) => el.textLabel);
15811
15822
  const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
15812
- return (hAsync("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));
15823
+ return (hAsync("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));
15813
15824
  });
15814
15825
  }
15815
15826
  renderInput() {
@@ -15832,7 +15843,7 @@ class CalciteCombobox {
15832
15843
  }, 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" })));
15833
15844
  }
15834
15845
  renderListBoxOptions() {
15835
- return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: `${itemUidPrefix}${item.guid}`, role: "option", tabindex: "-1" }, item.textLabel)));
15846
+ return this.visibleItems.map((item) => (hAsync("li", { "aria-selected": (!!item.selected).toString(), id: item.guid ? `${itemUidPrefix}${item.guid}` : null, role: "option", tabindex: "-1" }, item.textLabel)));
15836
15847
  }
15837
15848
  renderPopperContainer() {
15838
15849
  const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
@@ -15971,9 +15982,10 @@ class CalciteComboboxItem {
15971
15982
  connectedCallback() {
15972
15983
  this.ancestors = getAncestors(this.el);
15973
15984
  this.scale = getElementProp(this.el, "scale", this.scale);
15985
+ connectConditionalSlotComponent(this);
15974
15986
  }
15975
- componentWillLoad() {
15976
- this.hasDefaultSlot = this.el.querySelector(":not([slot])") !== null;
15987
+ disconnectedCallback() {
15988
+ disconnectConditionalSlotComponent(this);
15977
15989
  }
15978
15990
  // --------------------------------------------------------------------------
15979
15991
  //
@@ -16013,10 +16025,10 @@ class CalciteComboboxItem {
16013
16025
  }, icon: icon || iconPath, scale: "s" }));
16014
16026
  }
16015
16027
  renderChildren() {
16016
- if (!this.hasDefaultSlot) {
16017
- return null;
16028
+ if (getSlotted(this.el)) {
16029
+ return (hAsync("ul", { key: "default-slot-container" }, hAsync("slot", null)));
16018
16030
  }
16019
- return (hAsync("ul", null, hAsync("slot", null)));
16031
+ return null;
16020
16032
  }
16021
16033
  render() {
16022
16034
  const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
@@ -19046,6 +19058,8 @@ class CalciteInput {
19046
19058
  this.value = "";
19047
19059
  /** keep track of the rendered child type */
19048
19060
  this.childElType = "input";
19061
+ /** whether the value of the input was changed as a result of user typing or not */
19062
+ this.internalValueChange = false;
19049
19063
  //--------------------------------------------------------------------------
19050
19064
  //
19051
19065
  // Private Methods
@@ -19065,11 +19079,15 @@ class CalciteInput {
19065
19079
  }
19066
19080
  };
19067
19081
  this.clearInputValue = (nativeEvent) => {
19068
- this.setValue("", nativeEvent, true);
19082
+ this.setValue({
19083
+ committing: true,
19084
+ nativeEvent,
19085
+ value: ""
19086
+ });
19069
19087
  };
19070
19088
  this.inputBlurHandler = () => {
19071
19089
  if (this.type === "number") {
19072
- this.setLocalizedValue(this.value);
19090
+ this.setValue({ value: this.value });
19073
19091
  }
19074
19092
  this.calciteInputBlur.emit({
19075
19093
  element: this.childEl,
@@ -19093,7 +19111,10 @@ class CalciteInput {
19093
19111
  if (this.disabled || this.readOnly) {
19094
19112
  return;
19095
19113
  }
19096
- this.setValue(nativeEvent.target.value, nativeEvent);
19114
+ this.setValue({
19115
+ nativeEvent,
19116
+ value: nativeEvent.target.value
19117
+ });
19097
19118
  };
19098
19119
  this.inputKeyDownHandler = (event) => {
19099
19120
  if (this.disabled || this.readOnly) {
@@ -19113,11 +19134,17 @@ class CalciteInput {
19113
19134
  if (!isValidNumber(delocalizedValue)) {
19114
19135
  nativeEvent.preventDefault();
19115
19136
  }
19116
- this.setValue(parseNumberString(delocalizedValue), nativeEvent);
19137
+ this.setValue({
19138
+ nativeEvent,
19139
+ value: parseNumberString(delocalizedValue)
19140
+ });
19117
19141
  this.childNumberEl.value = this.localizedValue;
19118
19142
  }
19119
19143
  else {
19120
- this.setValue(delocalizeNumberString(value, this.locale), nativeEvent);
19144
+ this.setValue({
19145
+ nativeEvent,
19146
+ value: delocalizeNumberString(value, this.locale)
19147
+ });
19121
19148
  }
19122
19149
  };
19123
19150
  this.inputNumberKeyDownHandler = (event) => {
@@ -19213,18 +19240,44 @@ class CalciteInput {
19213
19240
  this.setChildNumberElRef = (el) => {
19214
19241
  this.childNumberEl = el;
19215
19242
  };
19216
- this.setLocalizedValue = (value) => {
19217
- this.localizedValue = localizeNumberString(value, this.locale, this.groupSeparator);
19218
- };
19219
- this.setValue = (value, nativeEvent, committing = false) => {
19220
- const previousValue = this.value;
19243
+ this.setInputValue = (newInputValue) => {
19244
+ if (this.type === "text" && !this.childEl) {
19245
+ return;
19246
+ }
19247
+ if (this.type === "number" && !this.childNumberEl) {
19248
+ return;
19249
+ }
19250
+ this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
19251
+ };
19252
+ this.setPreviousValue = (newPreviousValue) => {
19253
+ this.previousValue =
19254
+ this.type === "number"
19255
+ ? isValidNumber(newPreviousValue)
19256
+ ? newPreviousValue
19257
+ : ""
19258
+ : newPreviousValue;
19259
+ };
19260
+ this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
19261
+ const previousLocalizedValue = this.type === "number"
19262
+ ? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
19263
+ : "";
19264
+ const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
19265
+ const newValue = this.type === "number" && value && !sanitizedValue
19266
+ ? isValidNumber(this.previousValue)
19267
+ ? this.previousValue
19268
+ : ""
19269
+ : sanitizedValue;
19270
+ const newLocalizedValue = this.type === "number"
19271
+ ? localizeNumberString(newValue, this.locale, this.groupSeparator)
19272
+ : "";
19273
+ this.internalValueChange = origin === "internal";
19274
+ this.setPreviousValue(this.value);
19275
+ this.value = newValue;
19221
19276
  if (this.type === "number") {
19222
- const sanitizedValue = sanitizeNumberString(value);
19223
- this.value = sanitizedValue;
19224
- this.setLocalizedValue(sanitizedValue);
19277
+ this.localizedValue = newLocalizedValue;
19225
19278
  }
19226
- else {
19227
- this.value = value;
19279
+ if (origin === "external") {
19280
+ this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
19228
19281
  }
19229
19282
  if (nativeEvent) {
19230
19283
  const calciteInputInputEvent = this.calciteInputInput.emit({
@@ -19233,8 +19286,8 @@ class CalciteInput {
19233
19286
  value: this.value
19234
19287
  });
19235
19288
  if (calciteInputInputEvent.defaultPrevented) {
19236
- this.value = previousValue;
19237
- this.setLocalizedValue(previousValue);
19289
+ this.value = this.previousValue;
19290
+ this.localizedValue = previousLocalizedValue;
19238
19291
  }
19239
19292
  else if (committing) {
19240
19293
  this.calciteInputChange.emit();
@@ -19259,17 +19312,20 @@ class CalciteInput {
19259
19312
  this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
19260
19313
  }
19261
19314
  valueWatcher(newValue) {
19262
- if (newValue == null) {
19263
- this.value = "";
19264
- return;
19265
- }
19266
- if (this.type === "number" &&
19267
- this.localizedValue !== localizeNumberString(newValue, this.locale)) {
19268
- this.setLocalizedValue(newValue);
19269
- }
19270
- else if (this.childEl && this.childEl.value !== newValue) {
19271
- this.childEl.value = newValue;
19315
+ if (!this.internalValueChange) {
19316
+ this.setValue({
19317
+ origin: "external",
19318
+ value: newValue == null
19319
+ ? ""
19320
+ : this.type === "number"
19321
+ ? isValidNumber(newValue)
19322
+ ? newValue
19323
+ : this.previousValue || ""
19324
+ : newValue
19325
+ });
19326
+ this.warnAboutInvalidNumberValue(newValue);
19272
19327
  }
19328
+ this.internalValueChange = false;
19273
19329
  }
19274
19330
  updateRequestedIcon() {
19275
19331
  this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
@@ -19292,13 +19348,13 @@ class CalciteInput {
19292
19348
  if (this.inlineEditableEl) {
19293
19349
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
19294
19350
  }
19295
- if (this.type === "number" && this.value) {
19296
- if (isValidNumber(this.value)) {
19297
- this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
19298
- }
19299
- else {
19300
- this.value = "";
19301
- }
19351
+ this.setPreviousValue(this.value);
19352
+ if (this.type === "number") {
19353
+ this.warnAboutInvalidNumberValue(this.value);
19354
+ this.setValue({
19355
+ origin: "loading",
19356
+ value: isValidNumber(this.value) ? this.value : ""
19357
+ });
19302
19358
  }
19303
19359
  connectLabel(this);
19304
19360
  connectForm(this);
@@ -19320,7 +19376,9 @@ class CalciteInput {
19320
19376
  }
19321
19377
  componentShouldUpdate(newValue, oldValue, property) {
19322
19378
  if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
19323
- this.value = oldValue;
19379
+ this.setValue({
19380
+ value: oldValue
19381
+ });
19324
19382
  return false;
19325
19383
  }
19326
19384
  return true;
@@ -19355,10 +19413,16 @@ class CalciteInput {
19355
19413
  : nudgedValue;
19356
19414
  const inputValPlaces = decimalPlaces(inputVal);
19357
19415
  const inputStepPlaces = decimalPlaces(inputStep);
19358
- this.setValue(finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces)), nativeEvent, true);
19416
+ this.setValue({
19417
+ committing: true,
19418
+ nativeEvent,
19419
+ value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
19420
+ });
19359
19421
  }
19360
19422
  onFormReset() {
19361
- this.setValue(this.defaultValue);
19423
+ this.setValue({
19424
+ value: this.defaultValue
19425
+ });
19362
19426
  }
19363
19427
  syncHiddenFormInput(input) {
19364
19428
  var _a, _b, _c, _d;
@@ -19389,6 +19453,11 @@ class CalciteInput {
19389
19453
  ? slottedActionEl.setAttribute("disabled", "")
19390
19454
  : slottedActionEl.removeAttribute("disabled");
19391
19455
  }
19456
+ warnAboutInvalidNumberValue(value) {
19457
+ if (this.type === "number" && value && !isValidNumber(value)) {
19458
+ console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
19459
+ }
19460
+ }
19392
19461
  // --------------------------------------------------------------------------
19393
19462
  //
19394
19463
  // Render Methods
@@ -31673,7 +31742,8 @@ class CalciteTree {
31673
31742
  onFocusIn(event) {
31674
31743
  const focusedFromRootOrOutsideTree = event.relatedTarget === this.el || !this.el.contains(event.relatedTarget);
31675
31744
  if (focusedFromRootOrOutsideTree) {
31676
- this.el.tabIndex = -1;
31745
+ // gives user the ability to tab into external elements (modifying tabindex property will not work in firefox)
31746
+ this.el.removeAttribute("tabindex");
31677
31747
  }
31678
31748
  }
31679
31749
  onFocusOut(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/calcite-components",
3
- "version": "1.0.0-next.369",
3
+ "version": "1.0.0-next.372",
4
4
  "description": "Web Components for Esri's Calcite Design System.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{a as t,r as a,h as i,H as n,g as e}from"./p-2e29554c.js";import{a as r}from"./p-9b05c3fd.js";import{c as s}from"./p-0a5d059d.js";import"./p-8a63221d.js";const o={},c={},l={s:16,m:24,l:32};let m=class{constructor(t){a(this,t),this.icon=null,this.flipRtl=!1,this.scale="m",this.visible=!1}connectedCallback(){this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=null}async componentWillLoad(){this.loadIconPathData()}render(){const{el:t,flipRtl:a,pathData:e,scale:s,textLabel:o}=this,c=r(t),m=l[s],h=!!o,f=[].concat(e||"");return i(n,{"aria-hidden":(!h).toString(),"aria-label":h?o:null,role:h?"img":null},i("svg",{class:{"flip-rtl":"rtl"===c&&a,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${m} ${m}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},f.map((t=>i("path","string"==typeof t?{d:t}:{d:t.d,opacity:"opacity"in t?t.opacity:1})))))}async loadIconPathData(){const{icon:a,scale:i,visible:n}=this;a&&n&&(this.pathData=await async function({icon:a,scale:i}){const n=l[i],e=function(t){const a=!isNaN(Number(t.charAt(0))),i=t.split("-");return 1===i.length?a?`i${t}`:t:i.map(((t,i)=>0===i?a?`i${t.toUpperCase()}`:t:t.charAt(0).toUpperCase()+t.slice(1))).join("")}(a),r="F"===e.charAt(e.length-1),s=`${r?e.substring(0,e.length-1):e}${n}${r?"F":""}`;if(o[s])return o[s];c[s]||(c[s]=fetch(t(`./assets/calcite-icon/${s}.json`)).then((t=>t.json())).catch((()=>(console.error(`"${s}" is not a valid calcite-ui-icon name`),""))));const m=await c[s];return o[s]=m,m}({icon:a,scale:i}))}waitUntilVisible(t){this.intersectionObserver=s("intersection",(a=>{a.forEach((a=>{a.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}};m.style="@-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{display:-ms-inline-flexbox;display:inline-flex;color:var(--calcite-ui-icon-color)}:host([scale=s]){height:1rem;width:1rem;min-width:1rem;min-height:1rem}:host([scale=m]){height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}:host([scale=l]){height:2rem;width:2rem;min-width:2rem;min-height:2rem}.flip-rtl{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.svg{display:block}";export{m as calcite_icon}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{a as n}from"./p-2e29554c.js";import{a as t}from"./p-ef6b4184.js";const e={},a={};async function r(o){const s=function(n=""){if(t.indexOf(n)>-1)return n;{const e=n.split("-")[0];return t.indexOf(e)>-1?e:"en"}}(o);if(e[s])return e[s];a[s]||(a[s]=fetch(n(`./assets/calcite-date-picker/nls/${s}.json`)).then((n=>n.json())).catch((()=>(console.error(`Translations for "${s}" not found or invalid, falling back to english`),r("en")))));const i=await a[s];return e[s]=i,i}function o(n,t,e){const a=n.getTime(),r=!(t instanceof Date)||a>=t.getTime(),o=!(e instanceof Date)||a<=e.getTime();return r&&o}function s(n,t,e){if(!(n instanceof Date))return null;const a=n.getTime(),r=t instanceof Date&&a<t.getTime(),o=e instanceof Date&&a>e.getTime();return r?t:o?e:n}function i(n){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const t=n.split(/[: T-]/).map(parseFloat),e=new Date(t[0],(t[1]||1)-1,t[2]||1);if(e.setFullYear(t[0]),isNaN(e.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return e}function c(n){return"string"==typeof n?n:n instanceof Date?new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]:""}function u(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function f(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t-1),t===e.getMonth()?new Date(n.getFullYear(),t,0):e}function p(n){const t=n.getMonth(),e=new Date(n);return e.setMonth(t+1),(t+2)%7==e.getMonth()%7?new Date(n.getFullYear(),t+2,0):e}function l(n,t){return String(n).split("").map((n=>t.numerals[n])).join("")}function D(n,t){return parseInt(n.split("").map((n=>"0123456789"[t.numerals.indexOf(n)])).filter((n=>n)).join(""))}function d(n,t){const{separator:e,unitOrder:a}=t,r=h(a),o=function(n=""){return n.replace(/[\u0660-\u0669]/g,(n=>n.charCodeAt(0)-1632)).replace(/[\u06f0-\u06f9]/g,(n=>n.charCodeAt(0)-1776))}(n).split(e);return{day:parseInt(o[r.indexOf("d")]),month:parseInt(o[r.indexOf("m")])-1,year:parseInt(o[r.indexOf("y")])}}function h(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,e)=>t.indexOf(n)-t.indexOf(e)))}function m(n,t){return(n.getTime()-t.getTime())/864e5}const w=2,g={nextMonth:"Next month",prevMonth:"Previous month",year:"Year"};export{w as H,g as T,i as a,s as b,m as c,c as d,h as e,f,r as g,D as h,o as i,l,p as n,d as p,u as s}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{r as t,h as a,H as i,g as n}from"./p-2e29554c.js";import{g as e}from"./p-9b05c3fd.js";import{c as o,d as r}from"./p-ea510477.js";import{C as s,c}from"./p-8340b572.js";import"./p-8a63221d.js";import"./p-0a5d059d.js";let l=class{constructor(a){t(this,a)}async setFocus(){const t=this.el.querySelector("calcite-list-item:not([non-interactive])");null==t||t.setFocus()}render(){return a(i,{role:"list"},a("div",{class:"container"},a("slot",null)))}get el(){return n(this)}};l.style="@-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{display:block}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;background-color:transparent}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-list-item){margin-bottom:1px;--tw-shadow:0 1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 1px 0 var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}::slotted(calcite-list-item:last-child){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}";let m=class{constructor(a){t(this,a),this.nonInteractive=!1,this.disabled=!1}connectedCallback(){o(this)}disconnectedCallback(){r(this)}async setFocus(){var t;null===(t=this.focusEl)||void 0===t||t.focus()}renderActionsStart(){const{el:t}=this;return e(t,"actions-start")?a("div",{class:"actions-start"},a("slot",{name:"actions-start"})):null}renderActionsEnd(){const{el:t}=this;return e(t,"actions-end")?a("div",{class:"actions-end"},a("slot",{name:"actions-end"})):null}renderContentStart(){const{el:t}=this;return e(t,"content-start")?a("div",{class:"content-start"},a("slot",{name:"content-start"})):null}renderContentEnd(){const{el:t}=this;return e(t,"content-end")?a("div",{class:"content-end"},a("slot",{name:"content-end"})):null}renderContent(){const{label:t,description:i}=this;return t||i?a("div",{class:"content"},t?a("div",{class:"label"},t):null,i?a("div",{class:"description"},i):null):null}renderContentContainer(){const{disabled:t,nonInteractive:i}=this,n=[this.renderContentStart(),this.renderContent(),this.renderContentEnd()];return i?a("div",{class:"content-container",ref:()=>this.focusEl=null},n):a("button",{class:{"content-container":!0,"content-container--button":!0},disabled:t,ref:t=>this.focusEl=t},n)}render(){return a(i,{role:"listitem"},a("div",{class:"container"},this.renderActionsStart(),this.renderContentContainer(),this.renderActionsEnd()),a("div",{class:"nested-container"},a("slot",null)))}get el(){return n(this)}};m.style="@-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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([disabled]){pointer-events:none;cursor:default}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}.nested-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}.content-container{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);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}.content-container--button{cursor:pointer;border-style:none;background-color:var(--calcite-ui-foreground-1);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;text-align:initial}.content-container--button:hover{background-color:var(--calcite-ui-foreground-2)}.content-container--button:hover .label,.content-container--button:hover .description{color:var(--calcite-ui-text-1)}.content-container--button:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.5rem;padding-bottom:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}.label,.description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}.label:only-child,.description:only-child{margin:0px;padding-top:0.25rem;padding-bottom:0.25rem}.label{color:var(--calcite-ui-text-1)}.description{margin-top:0.125rem;color:var(--calcite-ui-text-3)}.content-start,.content-end{pointer-events:none;-ms-flex:0 1 auto;flex:0 1 auto}.actions-start,.actions-end,.content-start,.content-end{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){-ms-flex-item-align:center;align-self:center;padding-left:0.75rem;padding-right:0.75rem}.actions-start ::slotted(calcite-action),.actions-end ::slotted(calcite-action){-ms-flex-item-align:stretch;align-self:stretch;color:inherit}::slotted(calcite-list-item-group),::slotted(calcite-list-item){padding-left:0.5rem}";let d=class{constructor(a){t(this,a)}render(){var t;const{el:n,heading:e,headingLevel:o}=this,r=null===(t=n.closest("calcite-list, calcite-list-item-group"))||void 0===t?void 0:t.headingLevel,l=r?c(r+1):null;return a(i,null,e?a(s,{class:"heading",level:o||l||3},e):null,a("div",{class:"container",role:"group"},a("slot",null)))}get el(){return n(this)}};d.style="@-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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.heading{margin:0px;display:-ms-flexbox;display:flex;-ms-flex:1 1 0%;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}.container{display:-ms-flexbox;display:flex;width:100%;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}::slotted(calcite-list-item-group){padding-left:0.5rem}";export{l as calcite_list,m as calcite_list_item,d as calcite_list_item_group}
@@ -1,5 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
- */
5
- import{q as n,c as t}from"./p-9b05c3fd.js";const c=new WeakMap;function e(e){const o=(c=>{const{id:e}=c,o=e&&n(c,{selector:`calcite-label[for="${e}"]`});if(o)return o;const l=t(c,"calcite-label");return!l||function(n,t){let c;const e="custom-element-ancestor-check",o=e=>{e.stopImmediatePropagation();const o=e.composedPath();c=o.slice(o.indexOf(t),o.indexOf(n))};return n.addEventListener(e,o,{once:!0}),t.dispatchEvent(new CustomEvent(e,{composed:!0,bubbles:!0})),n.removeEventListener(e,o),c.filter((c=>c!==t&&c!==n)).filter((n=>{var t;return null===(t=n.tagName)||void 0===t?void 0:t.includes("-")})).length>0}(l,c)?null:l})(e.el);if(!o||c.has(o))return;e.labelEl=o;const l=i.bind(e);c.set(e.labelEl,l),e.labelEl.addEventListener("calciteInternalLabelClick",l)}function o(n){if(!n.labelEl)return;const t=c.get(n.labelEl);n.labelEl.removeEventListener("calciteInternalLabelClick",t),c.delete(n.labelEl)}function l(n){var t,c;return n.label||(null===(c=null===(t=n.labelEl)||void 0===t?void 0:t.textContent)||void 0===c?void 0:c.trim())||""}function i(n){this.disabled||this.el.contains(n.detail.sourceEvent.target)||this.onLabelClick(n)}export{e as c,o as d,l as g}