@esri/calcite-components 1.0.0-beta.74 → 1.0.0-beta.75

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 (501) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-0164361f.system.entry.js +5 -0
  3. package/dist/calcite/{p-e1944963.js → p-01b7adb5.js} +1 -1
  4. package/dist/calcite/{p-f95fb85f.entry.js → p-04bf684c.entry.js} +1 -1
  5. package/dist/calcite/p-06dbe76a.system.entry.js +5 -0
  6. package/dist/calcite/p-06fbc0f2.system.entry.js +5 -0
  7. package/dist/calcite/p-08be120f.entry.js +5 -0
  8. package/dist/calcite/p-0a5d059d.js +5 -0
  9. package/dist/calcite/p-0a85cd8c.system.entry.js +5 -0
  10. package/dist/calcite/{p-8b145872.system.entry.js → p-0b552c00.system.entry.js} +1 -1
  11. package/dist/calcite/{p-e690993e.system.entry.js → p-0cb38659.system.entry.js} +1 -1
  12. package/dist/calcite/{p-a348ffb1.system.entry.js → p-10b1b39a.system.entry.js} +1 -1
  13. package/dist/calcite/{p-99d29b5c.system.entry.js → p-12142a2c.system.entry.js} +1 -1
  14. package/dist/calcite/p-146d8510.entry.js +5 -0
  15. package/dist/calcite/{p-d5d91f34.system.entry.js → p-14ca5cdf.system.entry.js} +1 -1
  16. package/dist/calcite/{p-3d4c34e5.js → p-14e47d1b.js} +1 -1
  17. package/dist/calcite/{p-21f26f77.entry.js → p-1668089f.entry.js} +1 -1
  18. package/dist/calcite/{p-8ebed170.system.entry.js → p-1804c868.system.entry.js} +1 -1
  19. package/dist/calcite/{p-fbcaa23c.system.js → p-1a3a366d.system.js} +1 -1
  20. package/dist/calcite/{p-6515e0a5.entry.js → p-20e3fc50.entry.js} +1 -1
  21. package/dist/calcite/{p-46b63d75.entry.js → p-2218fef5.entry.js} +1 -1
  22. package/dist/calcite/{p-38e64c6b.entry.js → p-2297db38.entry.js} +1 -1
  23. package/dist/calcite/p-243985d8.system.entry.js +5 -0
  24. package/dist/calcite/p-2e324a56.system.entry.js +5 -0
  25. package/dist/calcite/{p-e2094dff.system.entry.js → p-2e351904.system.entry.js} +1 -1
  26. package/dist/calcite/{p-1894562d.system.entry.js → p-32d61433.system.entry.js} +1 -1
  27. package/dist/calcite/p-39d4d1b1.system.entry.js +5 -0
  28. package/dist/calcite/p-3cdf0ad5.system.entry.js +5 -0
  29. package/dist/calcite/{p-897fc280.system.entry.js → p-40c3d7a6.system.entry.js} +1 -1
  30. package/dist/calcite/{p-52871e84.system.js → p-44aa1db4.system.js} +1 -1
  31. package/dist/calcite/{p-16cfe8e8.entry.js → p-49782820.entry.js} +1 -1
  32. package/dist/calcite/p-500300b5.entry.js +5 -0
  33. package/dist/calcite/{p-e0fa3b13.system.entry.js → p-54bb21f5.system.entry.js} +1 -1
  34. package/dist/calcite/{p-4d22b788.entry.js → p-54edaa0d.entry.js} +1 -1
  35. package/dist/calcite/{p-51a85436.entry.js → p-58eb8460.entry.js} +1 -1
  36. package/dist/calcite/p-5a77fd17.entry.js +5 -0
  37. package/dist/calcite/{p-b80ab9ba.entry.js → p-5b8404de.entry.js} +1 -1
  38. package/dist/calcite/{p-f09810e7.entry.js → p-5d12a140.entry.js} +1 -1
  39. package/dist/calcite/{p-f5469b62.system.entry.js → p-5d7da300.system.entry.js} +1 -1
  40. package/dist/calcite/p-5f5bfaa5.entry.js +5 -0
  41. package/dist/calcite/p-617c3f30.system.entry.js +5 -0
  42. package/dist/calcite/p-63f8783a.entry.js +5 -0
  43. package/dist/calcite/p-647d22ef.js +5 -0
  44. package/dist/calcite/p-64a5e88c.entry.js +5 -0
  45. package/dist/calcite/{p-f90b2e7f.entry.js → p-6969dabb.entry.js} +1 -1
  46. package/dist/calcite/p-6afd69dc.system.entry.js +5 -0
  47. package/dist/calcite/p-6fb9fef5.entry.js +5 -0
  48. package/dist/calcite/{p-14ff4cbd.system.js → p-70dd483b.system.js} +1 -1
  49. package/dist/calcite/p-7165e37e.entry.js +5 -0
  50. package/dist/calcite/p-754809de.entry.js +5 -0
  51. package/dist/calcite/{p-02589ad3.system.entry.js → p-7743a8d0.system.entry.js} +1 -1
  52. package/dist/calcite/{p-799f0655.entry.js → p-786b8250.entry.js} +1 -1
  53. package/dist/calcite/p-78725919.entry.js +5 -0
  54. package/dist/calcite/p-7a6c932d.system.entry.js +5 -0
  55. package/dist/calcite/p-7bdeb3ba.system.entry.js +5 -0
  56. package/dist/calcite/{p-e6d14bc5.system.entry.js → p-7d4316a1.system.entry.js} +1 -1
  57. package/dist/calcite/{p-d1794edd.entry.js → p-82491929.entry.js} +1 -1
  58. package/dist/calcite/p-8604c625.system.entry.js +5 -0
  59. package/dist/calcite/{p-436d9f0e.system.entry.js → p-86b63ebb.system.entry.js} +1 -1
  60. package/dist/calcite/{p-10f1a096.system.entry.js → p-8709d314.system.entry.js} +1 -1
  61. package/dist/calcite/p-8ba8a357.system.js +5 -0
  62. package/dist/calcite/{p-bda51610.entry.js → p-8e4aa7f7.entry.js} +1 -1
  63. package/dist/calcite/p-8f2c68f4.system.entry.js +5 -0
  64. package/dist/calcite/p-8f3a3e4e.js +5 -0
  65. package/dist/calcite/{p-7f5bd070.system.entry.js → p-900e18a5.system.entry.js} +1 -1
  66. package/dist/calcite/{p-e606e9ae.system.entry.js → p-92d9b81d.system.entry.js} +1 -1
  67. package/dist/calcite/p-9716c57c.entry.js +5 -0
  68. package/dist/calcite/p-97375cc0.entry.js +5 -0
  69. package/dist/calcite/p-99422223.system.entry.js +5 -0
  70. package/dist/calcite/p-99d32fc3.system.js +1 -1
  71. package/dist/calcite/p-9a7c4812.js +5 -0
  72. package/dist/calcite/{p-45bfe5bf.system.entry.js → p-9ca6c750.system.entry.js} +1 -1
  73. package/dist/calcite/p-9d7102c0.entry.js +5 -0
  74. package/dist/calcite/p-9e2c9752.entry.js +5 -0
  75. package/dist/calcite/p-9f49c4fe.system.entry.js +5 -0
  76. package/dist/calcite/p-a50e52f1.entry.js +5 -0
  77. package/dist/calcite/{p-28dea60a.system.js → p-a99c8ebf.system.js} +1 -1
  78. package/dist/calcite/p-ab14b0a2.system.js +5 -0
  79. package/dist/calcite/p-abe7730b.entry.js +5 -0
  80. package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
  81. package/dist/calcite/{p-132d55c2.entry.js → p-af669f43.entry.js} +1 -1
  82. package/dist/calcite/{p-8f4ea148.system.entry.js → p-af84fa29.system.entry.js} +1 -1
  83. package/dist/calcite/p-b002b038.entry.js +5 -0
  84. package/dist/calcite/p-b86f0930.system.entry.js +5 -0
  85. package/dist/calcite/p-b9a47a94.system.entry.js +5 -0
  86. package/dist/calcite/p-b9adf89d.system.entry.js +5 -0
  87. package/dist/calcite/{p-eea18662.entry.js → p-baca86e3.entry.js} +1 -1
  88. package/dist/calcite/p-bd576ae0.system.entry.js +5 -0
  89. package/dist/calcite/{p-209f2049.entry.js → p-bde80af8.entry.js} +1 -1
  90. package/dist/calcite/p-be231b84.entry.js +5 -0
  91. package/dist/calcite/{p-51550014.entry.js → p-c1c37da9.entry.js} +1 -1
  92. package/dist/calcite/p-c5463268.system.entry.js +5 -0
  93. package/dist/calcite/p-c5b3d90c.entry.js +5 -0
  94. package/dist/calcite/p-c6cb0aa2.entry.js +5 -0
  95. package/dist/calcite/{p-0b0ce9b2.system.entry.js → p-cd9d106b.system.entry.js} +1 -1
  96. package/dist/calcite/{p-3e9e4992.entry.js → p-d14265f3.entry.js} +1 -1
  97. package/dist/calcite/p-da470de7.entry.js +5 -0
  98. package/dist/calcite/{p-7f32a681.system.entry.js → p-e1491358.system.entry.js} +1 -1
  99. package/dist/calcite/{p-781ebed0.system.js → p-e2047621.system.js} +1 -1
  100. package/dist/calcite/p-e4862fff.entry.js +5 -0
  101. package/dist/calcite/{p-05dc6806.entry.js → p-e5420c67.entry.js} +1 -1
  102. package/dist/calcite/p-e5526c34.entry.js +5 -0
  103. package/dist/calcite/p-e5c2a6eb.entry.js +5 -0
  104. package/dist/calcite/{p-bb9fb183.system.entry.js → p-e83a5fe4.system.entry.js} +1 -1
  105. package/dist/calcite/{p-fcd62e97.js → p-e8e0f3b7.js} +1 -1
  106. package/dist/calcite/p-ea510477.js +5 -0
  107. package/dist/calcite/{p-3a20f93d.system.js → p-ec9bab33.system.js} +1 -1
  108. package/dist/calcite/{p-32f6f7df.entry.js → p-ee14736a.entry.js} +1 -1
  109. package/dist/calcite/{p-41894582.js → p-eeb91710.js} +1 -1
  110. package/dist/calcite/p-f12c35de.system.entry.js +5 -0
  111. package/dist/calcite/p-f1dc4798.entry.js +5 -0
  112. package/dist/calcite/{p-5c256f31.system.entry.js → p-f24ddc56.system.entry.js} +1 -1
  113. package/dist/calcite/{p-088a096d.system.entry.js → p-f4d9c369.system.entry.js} +1 -1
  114. package/dist/calcite/{p-59133b9b.entry.js → p-f7572da7.entry.js} +1 -1
  115. package/dist/calcite/{p-8468ddb0.system.entry.js → p-fbd68dbf.system.entry.js} +1 -1
  116. package/dist/calcite/p-ff04cfb1.system.entry.js +5 -0
  117. package/dist/cjs/{CalciteExpandToggle-65468585.js → CalciteExpandToggle-d24fed0e.js} +1 -1
  118. package/dist/cjs/calcite-accordion_2.cjs.entry.js +1 -1
  119. package/dist/cjs/calcite-action-bar.cjs.entry.js +6 -27
  120. package/dist/cjs/calcite-action-group.cjs.entry.js +14 -1
  121. package/dist/cjs/calcite-action-menu.cjs.entry.js +5 -2
  122. package/dist/cjs/calcite-action-pad.cjs.entry.js +10 -2
  123. package/dist/cjs/calcite-action.cjs.entry.js +2 -2
  124. package/dist/cjs/calcite-alert.cjs.entry.js +16 -10
  125. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  126. package/dist/cjs/calcite-block_2.cjs.entry.js +15 -2
  127. package/dist/cjs/calcite-button.cjs.entry.js +3 -3
  128. package/dist/cjs/calcite-card.cjs.entry.js +17 -6
  129. package/dist/cjs/calcite-checkbox.cjs.entry.js +3 -3
  130. package/dist/cjs/calcite-chip.cjs.entry.js +15 -2
  131. package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -1
  132. package/dist/cjs/calcite-combobox_3.cjs.entry.js +35 -21
  133. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +2 -2
  134. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +15 -11
  135. package/dist/cjs/calcite-fab.cjs.entry.js +1 -1
  136. package/dist/cjs/calcite-filter.cjs.entry.js +1 -1
  137. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  138. package/dist/cjs/calcite-graph_2.cjs.entry.js +20 -13
  139. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  140. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  141. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +5 -5
  142. package/dist/cjs/calcite-input-message.cjs.entry.js +1 -1
  143. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +3 -3
  144. package/dist/cjs/calcite-input.cjs.entry.js +99 -39
  145. package/dist/cjs/calcite-link.cjs.entry.js +14 -3
  146. package/dist/cjs/calcite-list_3.cjs.entry.js +14 -1
  147. package/dist/cjs/calcite-modal.cjs.entry.js +7 -4
  148. package/dist/cjs/calcite-notice.cjs.entry.js +9 -1
  149. package/dist/cjs/calcite-option_3.cjs.entry.js +4 -4
  150. package/dist/cjs/calcite-panel.cjs.entry.js +19 -13
  151. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +26 -3
  152. package/dist/cjs/calcite-popover_2.cjs.entry.js +2 -2
  153. package/dist/cjs/calcite-radio-button.cjs.entry.js +3 -3
  154. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +3 -3
  155. package/dist/cjs/calcite-rating.cjs.entry.js +3 -3
  156. package/dist/cjs/calcite-shell_3.cjs.entry.js +36 -8
  157. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  158. package/dist/cjs/calcite-stepper_2.cjs.entry.js +1 -1
  159. package/dist/cjs/calcite-switch.cjs.entry.js +3 -3
  160. package/dist/cjs/calcite-tab_4.cjs.entry.js +2 -2
  161. package/dist/cjs/calcite-tile.cjs.entry.js +14 -1
  162. package/dist/cjs/calcite-tip_3.cjs.entry.js +15 -3
  163. package/dist/cjs/calcite-tooltip_2.cjs.entry.js +2 -2
  164. package/dist/cjs/calcite-tree_2.cjs.entry.js +9 -2
  165. package/dist/cjs/calcite-value-list_2.cjs.entry.js +15 -3
  166. package/dist/cjs/calcite.cjs.js +1 -1
  167. package/dist/cjs/conditionalSlot-92505fba.js +43 -0
  168. package/dist/cjs/{dom-0de9fb18.js → dom-f3df220d.js} +13 -10
  169. package/dist/cjs/{form-4b7c317e.js → form-237cf392.js} +1 -1
  170. package/dist/cjs/{label-1bca211b.js → label-6b18ca08.js} +1 -1
  171. package/dist/cjs/loader.cjs.js +1 -1
  172. package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
  173. package/dist/cjs/{popper-09105f6f.js → popper-13a2bb46.js} +1 -1
  174. package/dist/cjs/{resources-9f0994fb.js → resources-11763017.js} +4 -3
  175. package/dist/cjs/{resources-405cc2c4.js → resources-95073e41.js} +1 -1
  176. package/dist/collection/components/calcite-action/calcite-action.css +1 -0
  177. package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
  178. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
  179. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
  180. package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
  181. package/dist/collection/components/calcite-block/calcite-block.js +13 -1
  182. package/dist/collection/components/calcite-card/calcite-card.js +15 -6
  183. package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
  184. package/dist/collection/components/calcite-combobox/calcite-combobox.js +43 -13
  185. package/dist/collection/components/calcite-combobox/resources.js +3 -0
  186. package/dist/collection/components/calcite-combobox-item/calcite-combobox-item.js +9 -7
  187. package/dist/collection/components/calcite-date-picker/utils.js +4 -3
  188. package/dist/collection/components/calcite-dropdown/calcite-dropdown.css +1 -1
  189. package/dist/collection/components/calcite-dropdown/calcite-dropdown.js +12 -7
  190. package/dist/collection/components/calcite-graph/calcite-graph.css +3 -5
  191. package/dist/collection/components/calcite-graph/calcite-graph.js +13 -42
  192. package/dist/collection/components/calcite-inline-editable/calcite-inline-editable.js +15 -21
  193. package/dist/collection/components/calcite-input/calcite-input.js +96 -36
  194. package/dist/collection/components/calcite-link/calcite-link.js +31 -2
  195. package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
  196. package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
  197. package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
  198. package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
  199. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
  200. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
  201. package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
  202. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
  203. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
  204. package/dist/collection/components/calcite-slider/calcite-slider.css +4 -0
  205. package/dist/collection/components/calcite-slider/calcite-slider.js +3 -4
  206. package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
  207. package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
  208. package/dist/collection/components/calcite-tree/calcite-tree.js +2 -1
  209. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
  210. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
  211. package/dist/collection/utils/conditionalSlot.js +22 -11
  212. package/dist/collection/utils/dom.js +13 -10
  213. package/dist/collection/utils/globalAttributes.js +59 -0
  214. package/dist/collection/utils/observers.js +5 -1
  215. package/dist/components/calcite-action-bar.js +2 -23
  216. package/dist/components/calcite-action-group2.js +12 -0
  217. package/dist/components/calcite-action-menu2.js +3 -0
  218. package/dist/components/calcite-action-pad.js +7 -0
  219. package/dist/components/calcite-action2.js +1 -1
  220. package/dist/components/calcite-alert.js +15 -9
  221. package/dist/components/calcite-block.js +13 -1
  222. package/dist/components/calcite-card.js +15 -6
  223. package/dist/components/calcite-chip2.js +13 -1
  224. package/dist/components/calcite-color-picker-swatch2.js +15 -0
  225. package/dist/components/calcite-combobox-item.js +8 -6
  226. package/dist/components/calcite-combobox.js +22 -12
  227. package/dist/components/calcite-date-picker2.js +4 -3
  228. package/dist/components/calcite-dropdown2.js +12 -8
  229. package/dist/components/calcite-graph2.js +14 -9
  230. package/dist/components/calcite-inline-editable.js +5 -5
  231. package/dist/components/calcite-input2.js +96 -36
  232. package/dist/components/calcite-link2.js +14 -2
  233. package/dist/components/calcite-list-item.js +12 -0
  234. package/dist/components/calcite-modal.js +5 -2
  235. package/dist/components/calcite-notice.js +7 -0
  236. package/dist/components/calcite-panel.js +17 -12
  237. package/dist/components/calcite-pick-list-group.js +12 -0
  238. package/dist/components/calcite-pick-list-item2.js +12 -0
  239. package/dist/components/calcite-shell-center-row.js +13 -1
  240. package/dist/components/calcite-shell-panel.js +9 -4
  241. package/dist/components/calcite-shell.js +14 -2
  242. package/dist/components/calcite-slider.js +4 -4
  243. package/dist/components/calcite-tile2.js +12 -0
  244. package/dist/components/calcite-tip.js +13 -1
  245. package/dist/components/calcite-tree-item.js +5 -0
  246. package/dist/components/calcite-tree.js +2 -1
  247. package/dist/components/calcite-value-list-item.js +12 -0
  248. package/dist/components/conditionalSlot.js +40 -0
  249. package/dist/components/dom.js +13 -10
  250. package/dist/components/observers.js +5 -1
  251. package/dist/components/utils2.js +4 -1
  252. package/dist/custom-elements/index.js +488 -198
  253. package/dist/esm/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
  254. package/dist/esm/calcite-accordion_2.entry.js +1 -1
  255. package/dist/esm/calcite-action-bar.entry.js +5 -26
  256. package/dist/esm/calcite-action-group.entry.js +14 -1
  257. package/dist/esm/calcite-action-menu.entry.js +5 -2
  258. package/dist/esm/calcite-action-pad.entry.js +10 -2
  259. package/dist/esm/calcite-action.entry.js +2 -2
  260. package/dist/esm/calcite-alert.entry.js +16 -10
  261. package/dist/esm/calcite-avatar.entry.js +1 -1
  262. package/dist/esm/calcite-block_2.entry.js +15 -2
  263. package/dist/esm/calcite-button.entry.js +3 -3
  264. package/dist/esm/calcite-card.entry.js +17 -6
  265. package/dist/esm/calcite-checkbox.entry.js +3 -3
  266. package/dist/esm/calcite-chip.entry.js +15 -2
  267. package/dist/esm/calcite-color-picker_3.entry.js +16 -1
  268. package/dist/esm/calcite-combobox_3.entry.js +35 -21
  269. package/dist/esm/calcite-date-picker_4.entry.js +2 -2
  270. package/dist/esm/calcite-dropdown_3.entry.js +15 -11
  271. package/dist/esm/calcite-fab.entry.js +1 -1
  272. package/dist/esm/calcite-filter.entry.js +1 -1
  273. package/dist/esm/calcite-flow.entry.js +1 -1
  274. package/dist/esm/calcite-graph_2.entry.js +21 -14
  275. package/dist/esm/calcite-icon.entry.js +2 -2
  276. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  277. package/dist/esm/calcite-input-date-picker.entry.js +5 -5
  278. package/dist/esm/calcite-input-message.entry.js +1 -1
  279. package/dist/esm/calcite-input-time-picker_2.entry.js +3 -3
  280. package/dist/esm/calcite-input.entry.js +99 -39
  281. package/dist/esm/calcite-link.entry.js +14 -3
  282. package/dist/esm/calcite-list_3.entry.js +14 -1
  283. package/dist/esm/calcite-modal.entry.js +7 -4
  284. package/dist/esm/calcite-notice.entry.js +9 -1
  285. package/dist/esm/calcite-option_3.entry.js +4 -4
  286. package/dist/esm/calcite-panel.entry.js +19 -13
  287. package/dist/esm/calcite-pick-list_3.entry.js +26 -3
  288. package/dist/esm/calcite-popover_2.entry.js +2 -2
  289. package/dist/esm/calcite-radio-button.entry.js +3 -3
  290. package/dist/esm/calcite-radio-group_2.entry.js +3 -3
  291. package/dist/esm/calcite-rating.entry.js +3 -3
  292. package/dist/esm/calcite-shell_3.entry.js +36 -8
  293. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  294. package/dist/esm/calcite-stepper_2.entry.js +1 -1
  295. package/dist/esm/calcite-switch.entry.js +3 -3
  296. package/dist/esm/calcite-tab_4.entry.js +2 -2
  297. package/dist/esm/calcite-tile.entry.js +14 -1
  298. package/dist/esm/calcite-tip_3.entry.js +15 -3
  299. package/dist/esm/calcite-tooltip_2.entry.js +2 -2
  300. package/dist/esm/calcite-tree_2.entry.js +9 -2
  301. package/dist/esm/calcite-value-list_2.entry.js +15 -3
  302. package/dist/esm/calcite.js +1 -1
  303. package/dist/esm/conditionalSlot-9e7d8609.js +40 -0
  304. package/dist/esm/{dom-037dc374.js → dom-e7fa77b9.js} +13 -10
  305. package/dist/esm/{form-72369b73.js → form-f90706b4.js} +1 -1
  306. package/dist/esm/{label-712646d2.js → label-2bffc9f4.js} +1 -1
  307. package/dist/esm/loader.js +1 -1
  308. package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
  309. package/dist/esm/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
  310. package/dist/esm/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
  311. package/dist/esm/{resources-90193940.js → resources-c768953c.js} +4 -3
  312. package/dist/esm-es5/{CalciteExpandToggle-48b6e955.js → CalciteExpandToggle-cff030be.js} +1 -1
  313. package/dist/esm-es5/calcite-accordion_2.entry.js +1 -1
  314. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  315. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  316. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  317. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  318. package/dist/esm-es5/calcite-action.entry.js +1 -1
  319. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  320. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  321. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  322. package/dist/esm-es5/calcite-button.entry.js +1 -1
  323. package/dist/esm-es5/calcite-card.entry.js +1 -1
  324. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  325. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  326. package/dist/esm-es5/calcite-color-picker_3.entry.js +1 -1
  327. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  328. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  329. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  330. package/dist/esm-es5/calcite-fab.entry.js +1 -1
  331. package/dist/esm-es5/calcite-filter.entry.js +1 -1
  332. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  333. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  334. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  335. package/dist/esm-es5/calcite-inline-editable.entry.js +2 -2
  336. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  337. package/dist/esm-es5/calcite-input-message.entry.js +1 -1
  338. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  339. package/dist/esm-es5/calcite-input.entry.js +1 -1
  340. package/dist/esm-es5/calcite-link.entry.js +2 -2
  341. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  342. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  343. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  344. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  345. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  346. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  347. package/dist/esm-es5/calcite-popover_2.entry.js +2 -2
  348. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  349. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  350. package/dist/esm-es5/calcite-rating.entry.js +2 -2
  351. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  352. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  353. package/dist/esm-es5/calcite-stepper_2.entry.js +1 -1
  354. package/dist/esm-es5/calcite-switch.entry.js +1 -1
  355. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  356. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  357. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  358. package/dist/esm-es5/calcite-tooltip_2.entry.js +1 -1
  359. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  360. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  361. package/dist/esm-es5/calcite.js +1 -1
  362. package/dist/esm-es5/conditionalSlot-9e7d8609.js +5 -0
  363. package/dist/esm-es5/dom-e7fa77b9.js +5 -0
  364. package/dist/esm-es5/{form-72369b73.js → form-f90706b4.js} +1 -1
  365. package/dist/esm-es5/{label-712646d2.js → label-2bffc9f4.js} +1 -1
  366. package/dist/esm-es5/loader.js +1 -1
  367. package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
  368. package/dist/esm-es5/{popper-7a7fd3b5.js → popper-ae231554.js} +1 -1
  369. package/dist/esm-es5/{resources-03c0a433.js → resources-95c5e8a6.js} +1 -1
  370. package/dist/esm-es5/resources-c768953c.js +5 -0
  371. package/dist/extras/docs-json.json +63 -36
  372. package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
  373. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
  374. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
  375. package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
  376. package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
  377. package/dist/types/components/calcite-card/calcite-card.d.ts +4 -1
  378. package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
  379. package/dist/types/components/calcite-combobox/calcite-combobox.d.ts +4 -0
  380. package/dist/types/components/calcite-combobox/resources.d.ts +3 -0
  381. package/dist/types/components/calcite-combobox-item/calcite-combobox-item.d.ts +3 -3
  382. package/dist/types/components/calcite-dropdown/calcite-dropdown.d.ts +1 -0
  383. package/dist/types/components/calcite-graph/calcite-graph.d.ts +3 -4
  384. package/dist/types/components/calcite-inline-editable/calcite-inline-editable.d.ts +5 -5
  385. package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
  386. package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
  387. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
  388. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
  389. package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
  390. package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
  391. package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
  392. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
  393. package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
  394. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
  395. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
  396. package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
  397. package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
  398. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
  399. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
  400. package/dist/types/components.d.ts +26 -16
  401. package/dist/types/preact.d.ts +3 -3
  402. package/dist/types/utils/dom.d.ts +1 -0
  403. package/dist/types/utils/globalAttributes.d.ts +35 -0
  404. package/hydrate/index.js +479 -194
  405. package/package.json +12 -13
  406. package/readme.md +2 -32
  407. package/dist/calcite/assets/calcite-icon/checkSquareF16.json +0 -1
  408. package/dist/calcite/assets/calcite-icon/checkSquareF24.json +0 -1
  409. package/dist/calcite/assets/calcite-icon/checkSquareF32.json +0 -1
  410. package/dist/calcite/assets/calcite-icon/lineSolid4.json +0 -1
  411. package/dist/calcite/assets/calcite-icon/squareF16.json +0 -1
  412. package/dist/calcite/assets/calcite-icon/squareF24.json +0 -1
  413. package/dist/calcite/assets/calcite-icon/squareF32.json +0 -1
  414. package/dist/calcite/assets/calcite-icon/xHexagon16.json +0 -1
  415. package/dist/calcite/assets/calcite-icon/xHexagon24.json +0 -1
  416. package/dist/calcite/assets/calcite-icon/xHexagon32.json +0 -1
  417. package/dist/calcite/assets/calcite-icon/xHexagonF16.json +0 -1
  418. package/dist/calcite/assets/calcite-icon/xHexagonF24.json +0 -1
  419. package/dist/calcite/assets/calcite-icon/xHexagonF32.json +0 -1
  420. package/dist/calcite/assets/calcite-icon/xOctagonF16.json +0 -1
  421. package/dist/calcite/assets/calcite-icon/xOctagonF24.json +0 -1
  422. package/dist/calcite/assets/calcite-icon/xOctagonF32.json +0 -1
  423. package/dist/calcite/p-02856c5a.system.entry.js +0 -5
  424. package/dist/calcite/p-0af820bf.entry.js +0 -5
  425. package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
  426. package/dist/calcite/p-1a5dae4a.entry.js +0 -5
  427. package/dist/calcite/p-1b3a66ec.system.entry.js +0 -5
  428. package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
  429. package/dist/calcite/p-20d2db84.entry.js +0 -5
  430. package/dist/calcite/p-244e0b95.entry.js +0 -5
  431. package/dist/calcite/p-253efee4.entry.js +0 -5
  432. package/dist/calcite/p-2618de8a.entry.js +0 -5
  433. package/dist/calcite/p-273cd5ab.entry.js +0 -5
  434. package/dist/calcite/p-28adfebc.entry.js +0 -5
  435. package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
  436. package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
  437. package/dist/calcite/p-325fcd0d.entry.js +0 -5
  438. package/dist/calcite/p-32f7eb32.js +0 -5
  439. package/dist/calcite/p-37bddb73.system.entry.js +0 -5
  440. package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
  441. package/dist/calcite/p-3b73b785.system.entry.js +0 -5
  442. package/dist/calcite/p-3b8f5ab8.system.entry.js +0 -5
  443. package/dist/calcite/p-41e2198b.js +0 -5
  444. package/dist/calcite/p-4659df78.entry.js +0 -5
  445. package/dist/calcite/p-54e271c9.system.entry.js +0 -5
  446. package/dist/calcite/p-57558d4b.entry.js +0 -5
  447. package/dist/calcite/p-5c3b9524.system.entry.js +0 -5
  448. package/dist/calcite/p-5df1936f.entry.js +0 -5
  449. package/dist/calcite/p-698167ac.entry.js +0 -5
  450. package/dist/calcite/p-7a28e833.system.entry.js +0 -5
  451. package/dist/calcite/p-7d355abe.system.entry.js +0 -5
  452. package/dist/calcite/p-85fb7bc0.entry.js +0 -5
  453. package/dist/calcite/p-8d36bc7c.entry.js +0 -5
  454. package/dist/calcite/p-8eafaf3f.entry.js +0 -5
  455. package/dist/calcite/p-9b05c3fd.js +0 -5
  456. package/dist/calcite/p-9d81d229.entry.js +0 -5
  457. package/dist/calcite/p-a0043c61.entry.js +0 -5
  458. package/dist/calcite/p-a1f65f6e.entry.js +0 -5
  459. package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
  460. package/dist/calcite/p-a9c50960.system.entry.js +0 -5
  461. package/dist/calcite/p-aaed1677.entry.js +0 -5
  462. package/dist/calcite/p-ac778725.system.entry.js +0 -5
  463. package/dist/calcite/p-ac8cf248.entry.js +0 -5
  464. package/dist/calcite/p-b4990fa4.system.entry.js +0 -5
  465. package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
  466. package/dist/calcite/p-c0ed9eff.entry.js +0 -5
  467. package/dist/calcite/p-c56f495f.system.js +0 -5
  468. package/dist/calcite/p-c7b8a068.entry.js +0 -5
  469. package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
  470. package/dist/calcite/p-d578e568.system.entry.js +0 -5
  471. package/dist/calcite/p-e2ebc089.system.entry.js +0 -5
  472. package/dist/calcite/p-e4acb5a8.js +0 -5
  473. package/dist/calcite/p-e564004a.system.entry.js +0 -5
  474. package/dist/calcite/p-e87980ac.entry.js +0 -5
  475. package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
  476. package/dist/calcite/p-f73124d0.entry.js +0 -5
  477. package/dist/collection/components/calcite-combobox/interfaces.d.js +0 -1
  478. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF16.json +0 -1
  479. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF24.json +0 -1
  480. package/dist/collection/components/calcite-icon/assets/calcite-icon/checkSquareF32.json +0 -1
  481. package/dist/collection/components/calcite-icon/assets/calcite-icon/lineSolid4.json +0 -1
  482. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF16.json +0 -1
  483. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF24.json +0 -1
  484. package/dist/collection/components/calcite-icon/assets/calcite-icon/squareF32.json +0 -1
  485. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon16.json +0 -1
  486. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon24.json +0 -1
  487. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagon32.json +0 -1
  488. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF16.json +0 -1
  489. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF24.json +0 -1
  490. package/dist/collection/components/calcite-icon/assets/calcite-icon/xHexagonF32.json +0 -1
  491. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF16.json +0 -1
  492. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF24.json +0 -1
  493. package/dist/collection/components/calcite-icon/assets/calcite-icon/xOctagonF32.json +0 -1
  494. package/dist/collection/components/calcite-label/interfaces.js +0 -1
  495. package/dist/collection/demos/_assets/demo-form.js +0 -23
  496. package/dist/collection/demos/_assets/demo-template.js +0 -13
  497. package/dist/collection/demos/_assets/head.js +0 -45
  498. package/dist/collection/demos/_assets/locales.js +0 -223
  499. package/dist/collection/utils/interactive.js +0 -20
  500. package/dist/esm-es5/dom-037dc374.js +0 -5
  501. package/dist/esm-es5/resources-90193940.js +0 -5
@@ -5,6 +5,7 @@
5
5
  import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
7
  import { g as guid } from './guid.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
8
9
  import { d as defineCustomElement$1 } from './calcite-icon2.js';
9
10
 
10
11
  const CSS = {
@@ -61,6 +62,17 @@ let CalciteChip = class extends HTMLElement {
61
62
  };
62
63
  this.guid = guid();
63
64
  }
65
+ // --------------------------------------------------------------------------
66
+ //
67
+ // Lifecycle
68
+ //
69
+ // --------------------------------------------------------------------------
70
+ connectedCallback() {
71
+ connectConditionalSlotComponent(this);
72
+ }
73
+ disconnectedCallback() {
74
+ disconnectConditionalSlotComponent(this);
75
+ }
64
76
  //--------------------------------------------------------------------------
65
77
  //
66
78
  // Public Methods
@@ -79,7 +91,7 @@ let CalciteChip = class extends HTMLElement {
79
91
  renderChipImage() {
80
92
  const { el } = this;
81
93
  const hasChipImage = getSlotted(el, SLOTS.image);
82
- return hasChipImage ? (h("div", { class: CSS.chipImageContainer }, h("slot", { name: SLOTS.image }))) : null;
94
+ return hasChipImage ? (h("div", { class: CSS.chipImageContainer, key: "image" }, h("slot", { name: SLOTS.image }))) : null;
83
95
  }
84
96
  render() {
85
97
  const iconEl = (h("calcite-icon", { class: CSS.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
@@ -1876,6 +1876,21 @@ Color.prototype = {
1876
1876
  return colorString.to.hex(this.rgb().round().color);
1877
1877
  },
1878
1878
 
1879
+ hexa(value) {
1880
+ if (arguments.length > 0) {
1881
+ return new Color(value);
1882
+ }
1883
+
1884
+ const rgbArray = this.rgb().round().color;
1885
+ let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
1886
+
1887
+ if (alphaHex.length === 1) {
1888
+ alphaHex = '0' + alphaHex;
1889
+ }
1890
+
1891
+ return colorString.to.hex(rgbArray) + alphaHex;
1892
+ },
1893
+
1879
1894
  rgbNumber() {
1880
1895
  const rgb = this.rgb().color;
1881
1896
  return (rgb[0] & 0xFF) << 16 | (rgb[1] & 0xFF) << 8 | rgb[2] & 0xFF;
@@ -3,9 +3,10 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
- import { g as getElementProp } from './dom.js';
6
+ import { g as getElementProp, b as getSlotted } from './dom.js';
7
7
  import { g as guid } from './guid.js';
8
8
  import { e as getAncestors, f as getDepth } from './utils2.js';
9
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
9
10
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
10
11
 
11
12
  const CSS = {
@@ -67,9 +68,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement {
67
68
  connectedCallback() {
68
69
  this.ancestors = getAncestors(this.el);
69
70
  this.scale = getElementProp(this.el, "scale", this.scale);
71
+ connectConditionalSlotComponent(this);
70
72
  }
71
- componentWillLoad() {
72
- this.hasDefaultSlot = this.el.querySelector(":not([slot])") !== null;
73
+ disconnectedCallback() {
74
+ disconnectConditionalSlotComponent(this);
73
75
  }
74
76
  // --------------------------------------------------------------------------
75
77
  //
@@ -109,10 +111,10 @@ let CalciteComboboxItem$1 = class extends HTMLElement {
109
111
  }, icon: icon || iconPath, scale: "s" }));
110
112
  }
111
113
  renderChildren() {
112
- if (!this.hasDefaultSlot) {
113
- return null;
114
+ if (getSlotted(this.el)) {
115
+ return (h("ul", { key: "default-slot-container" }, h("slot", null)));
114
116
  }
115
- return (h("ul", null, h("slot", null)));
117
+ return null;
116
118
  }
117
119
  render() {
118
120
  const isSingleSelect = getElementProp(this.el, "selection-mode", "multi") === "single";
@@ -7,7 +7,7 @@ import { a as isSymbol, S as Symbol, d as debounce } from './debounce.js';
7
7
  import { i as isArray, f as forIn } from './forIn.js';
8
8
  import { u as updatePopper, c as createPopper, C as CSS } from './popper.js';
9
9
  import { g as guid } from './guid.js';
10
- import { C as ComboboxChildSelector, g as getItemAncestors, a as getItemChildren, h as hasActiveChildren, b as ComboboxItem, c as ComboboxItemGroup, d as ComboboxDefaultPlacement } from './utils2.js';
10
+ import { T as TEXT, C as ComboboxChildSelector, g as getItemAncestors, a as getItemChildren, h as hasActiveChildren, b as ComboboxItem, c as ComboboxItemGroup, d as ComboboxDefaultPlacement } from './utils2.js';
11
11
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
12
12
  import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form.js';
13
13
  import { c as createObserver } from './observers.js';
@@ -156,6 +156,11 @@ const filter = (data, value) => {
156
156
  const calciteComboboxCss = "@-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{position:relative;display:block}:host([disabled]){pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0.5}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:2rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:2.75rem}.wrapper{display:-ms-flexbox;display:flex;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-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;-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);padding:0 var(--calcite-combobox-item-spacing-unit-l) 0 var(--calcite-combobox-item-spacing-unit-l)}:host(:focus-within) .wrapper,.wrapper--active{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.wrapper--single{padding:0 var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.grid-input{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}.input{-ms-flex-positive:1;flex-grow:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);min-width:120px;margin-bottom:var(--calcite-combobox-item-spacing-unit-s)}.input:focus{outline:2px solid transparent;outline-offset:2px}.input--transparent{opacity:0}.input--single{margin-bottom:0px;margin-top:0px;padding:0px}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding:0 var(--calcite-combobox-item-spacing-unit-l)}.input-wrap{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1}.input-wrap--single{-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.label{pointer-events:none;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);height:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--spaced{padding-top:0px;padding-bottom:0px;padding-left:var(--calcite-combobox-item-spacing-unit-l);padding-right:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:-ms-flexbox;display:flex;width:1rem;cursor:pointer;-ms-flex-align:center;align-items:center}.icon-end{-ms-flex:none;flex:none}.popper-container{width:100%;display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.popper-container .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.popper-container[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.popper-container[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.popper-container[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.popper-container[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.popper-container[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}.popper-container--active{pointer-events:initial;visibility:visible}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.list-container{max-height:100vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);width:var(--calcite-dropdown-width)}.list{margin:0px;display:block;padding:0px}.list--hide{height:0px;overflow:hidden}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 2) 0;margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-width:100%}.chip--active{background-color:var(--calcite-ui-foreground-3)}.chip:last-of-type{-webkit-margin-end:0;margin-inline-end:0}.item{display:block}::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}";
157
157
 
158
158
  const isGroup = (el) => el.tagName === ComboboxItemGroup;
159
+ const itemUidPrefix = "combobox-item-";
160
+ const chipUidPrefix = "combobox-chip-";
161
+ const labelUidPrefix = "combobox-label-";
162
+ const listboxUidPrefix = "combobox-listbox-";
163
+ const inputUidPrefix = "combobox-input-";
159
164
  let CalciteCombobox$1 = class extends HTMLElement {
160
165
  constructor() {
161
166
  super();
@@ -196,6 +201,10 @@ let CalciteCombobox$1 = class extends HTMLElement {
196
201
  this.scale = "m";
197
202
  /** The value(s) of the selectedItem(s) */
198
203
  this.value = null;
204
+ /** string to override the English "Remove tag" text for when an item is selected.
205
+ * @default "Remove tag"
206
+ */
207
+ this.intlRemoveTag = TEXT.removeTag;
199
208
  //--------------------------------------------------------------------------
200
209
  //
201
210
  // Private State/Props
@@ -705,7 +714,6 @@ let CalciteCombobox$1 = class extends HTMLElement {
705
714
  const item = document.createElement(ComboboxItem);
706
715
  item.value = value;
707
716
  item.textLabel = value;
708
- item.guid = guid();
709
717
  item.selected = true;
710
718
  this.el.appendChild(item);
711
719
  this.resetText();
@@ -755,7 +763,9 @@ let CalciteCombobox$1 = class extends HTMLElement {
755
763
  focusChip() {
756
764
  var _a;
757
765
  const guid = (_a = this.selectedItems[this.activeChipIndex]) === null || _a === void 0 ? void 0 : _a.guid;
758
- const chip = this.referenceEl.querySelector(`#chip-${guid}`);
766
+ const chip = guid
767
+ ? this.referenceEl.querySelector(`#${chipUidPrefix}${guid}`)
768
+ : null;
759
769
  chip === null || chip === void 0 ? void 0 : chip.setFocus();
760
770
  }
761
771
  shiftActiveItemIndex(delta) {
@@ -801,7 +811,7 @@ let CalciteCombobox$1 = class extends HTMLElement {
801
811
  //
802
812
  //--------------------------------------------------------------------------
803
813
  renderChips() {
804
- const { activeChipIndex, scale, selectionMode } = this;
814
+ const { activeChipIndex, scale, selectionMode, intlRemoveTag } = this;
805
815
  return this.selectedItems.map((item, i) => {
806
816
  const chipClasses = {
807
817
  chip: true,
@@ -810,11 +820,11 @@ let CalciteCombobox$1 = class extends HTMLElement {
810
820
  const ancestors = [...getItemAncestors(item)].reverse();
811
821
  const pathLabel = [...ancestors, item].map((el) => el.textLabel);
812
822
  const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
813
- return (h("calcite-chip", { "aria-label": label, class: chipClasses, dismissLabel: "remove tag", dismissible: true, icon: item.icon, id: `chip-${item.guid}`, key: item.textLabel, onCalciteChipDismiss: (event) => this.calciteChipDismissHandler(event, item), scale: scale, title: label, value: item.value }, label));
823
+ 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));
814
824
  });
815
825
  }
816
826
  renderInput() {
817
- const { active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
827
+ const { guid, active, disabled, placeholder, selectionMode, needsIcon, selectedItems } = this;
818
828
  const single = selectionMode === "single";
819
829
  const selectedItem = selectedItems[0];
820
830
  const showLabel = !active && single && !!selectedItem;
@@ -824,16 +834,16 @@ let CalciteCombobox$1 = class extends HTMLElement {
824
834
  } }, showLabel && (h("span", { class: {
825
835
  label: true,
826
836
  "label--spaced": needsIcon
827
- }, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": guid, "aria-label": getLabelText(this), class: {
837
+ }, key: "label", onFocus: this.comboboxFocusHandler, tabindex: "0" }, selectedItem.textLabel)), h("input", { "aria-activedescendant": this.activeDescendant, "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-label": getLabelText(this), class: {
828
838
  input: true,
829
839
  "input--single": true,
830
840
  "input--transparent": this.activeChipIndex > -1,
831
841
  "input--hidden": showLabel,
832
842
  "input--icon": single && needsIcon
833
- }, disabled: disabled, id: `${guid}-input`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, ref: (el) => (this.textInput = el), type: "text" })));
843
+ }, 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" })));
834
844
  }
835
845
  renderListBoxOptions() {
836
- return this.visibleItems.map((item) => (h("li", { "aria-selected": (!!item.selected).toString(), id: item.guid, role: "option", tabindex: "-1" }, item.textLabel)));
846
+ 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)));
837
847
  }
838
848
  renderPopperContainer() {
839
849
  const { active, maxScrollerHeight, setMenuEl, setListContainerEl, hideList, open } = this;
@@ -859,12 +869,11 @@ let CalciteCombobox$1 = class extends HTMLElement {
859
869
  render() {
860
870
  const { guid, open, label } = this;
861
871
  const single = this.selectionMode === "single";
862
- const labelId = `${guid}-label`;
863
- return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": labelId, "aria-owns": guid, class: {
872
+ return (h(Host, { onKeyDown: this.keydownHandler }, h("div", { "aria-autocomplete": "list", "aria-expanded": open.toString(), "aria-haspopup": "listbox", "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-owns": `${listboxUidPrefix}${guid}`, class: {
864
873
  wrapper: true,
865
874
  "wrapper--single": single || !this.selectedItems.length,
866
875
  "wrapper--active": open
867
- }, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${guid}-input`, id: labelId }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": labelId, "aria-multiselectable": "true", class: "screen-readers-only", id: guid, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
876
+ }, onClick: this.setFocusClick, ref: this.setReferenceEl, role: "combobox" }, h("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), h("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), this.renderIconEnd()), h("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderPopperContainer(), h(HiddenFormInputSlot, { component: this })));
868
877
  }
869
878
  get el() { return this; }
870
879
  static get watchers() { return {
@@ -889,6 +898,7 @@ CalciteCombobox$1 = /*@__PURE__*/ proxyCustomElement(CalciteCombobox$1, [1, "cal
889
898
  "selectionMode": [513, "selection-mode"],
890
899
  "scale": [513],
891
900
  "value": [1025],
901
+ "intlRemoveTag": [1, "intl-remove-tag"],
892
902
  "items": [32],
893
903
  "groupItems": [32],
894
904
  "selectedItems": [32],
@@ -19,10 +19,11 @@ function getSupportedLocale(lang = "") {
19
19
  if (locales.indexOf(lang) > -1) {
20
20
  return lang;
21
21
  }
22
- else {
23
- const base = lang.split("-")[0];
24
- return locales.indexOf(base) > -1 ? base : "en";
22
+ lang = lang.toLowerCase();
23
+ if (lang.includes("-")) {
24
+ lang = lang.replace(/(\w+)-(\w+)/, (_match, language, region) => `${language}-${region.toUpperCase()}`);
25
25
  }
26
+ return locales.includes(lang) ? lang : "en";
26
27
  }
27
28
  /**
28
29
  * CLDR cache.
@@ -12,7 +12,7 @@ const SLOTS = {
12
12
  dropdownTrigger: "dropdown-trigger"
13
13
  };
14
14
 
15
- const calciteDropdownCss = "@-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;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;background-color:var(--calcite-ui-foreground-1);overflow:hidden;max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
15
+ const calciteDropdownCss = "@-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;-ms-flex:0 1 auto;flex:0 1 auto}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host .calcite-dropdown-wrapper{display:block;position:absolute;z-index:900;-webkit-transform:scale(0);transform:scale(0);visibility:hidden;pointer-events:none}.calcite-dropdown-wrapper .calcite-popper-anim{position:relative;z-index:1;-webkit-transition:var(--calcite-popper-transition);transition:var(--calcite-popper-transition);visibility:hidden;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform;opacity:0;-webkit-box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);border-radius:0.25rem}.calcite-dropdown-wrapper[data-popper-placement^=bottom] .calcite-popper-anim{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.calcite-dropdown-wrapper[data-popper-placement^=top] .calcite-popper-anim{-webkit-transform:translateY(5px);transform:translateY(5px)}.calcite-dropdown-wrapper[data-popper-placement^=left] .calcite-popper-anim{-webkit-transform:translateX(5px);transform:translateX(5px)}.calcite-dropdown-wrapper[data-popper-placement^=right] .calcite-popper-anim{-webkit-transform:translateX(-5px);transform:translateX(-5px)}.calcite-dropdown-wrapper[data-popper-placement] .calcite-popper-anim--active{opacity:1;visibility:visible;-webkit-transform:translate(0);transform:translate(0)}:host([active]) .calcite-dropdown-wrapper{pointer-events:initial;visibility:visible}:host .calcite-dropdown-content{overflow-y:auto;overflow-x:hidden;background-color:var(--calcite-ui-foreground-1);max-height:90vh;width:var(--calcite-dropdown-width)}.calcite-dropdown-trigger-container{position:relative;display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto}:host([width=s]){--calcite-dropdown-width:12rem}:host([width=m]){--calcite-dropdown-width:14rem}:host([width=l]){--calcite-dropdown-width:16rem}";
16
16
 
17
17
  let CalciteDropdown = class extends HTMLElement {
18
18
  constructor() {
@@ -68,6 +68,7 @@ let CalciteDropdown = class extends HTMLElement {
68
68
  this.items = [];
69
69
  this.activeTransitionProp = "visibility";
70
70
  this.mutationObserver = createObserver("mutation", () => this.updateItems());
71
+ this.resizeObserver = createObserver("resize", () => this.setMaxScrollerHeight());
71
72
  //--------------------------------------------------------------------------
72
73
  //
73
74
  // Private Methods
@@ -80,13 +81,15 @@ let CalciteDropdown = class extends HTMLElement {
80
81
  this.reposition();
81
82
  };
82
83
  this.setMaxScrollerHeight = () => {
83
- const { scrollerEl } = this;
84
- if (scrollerEl) {
85
- const maxScrollerHeight = this.getMaxScrollerHeight();
86
- scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
84
+ const { active, scrollerEl } = this;
85
+ if (!scrollerEl || !active) {
86
+ return;
87
87
  }
88
+ const maxScrollerHeight = this.getMaxScrollerHeight();
89
+ scrollerEl.style.maxHeight = maxScrollerHeight > 0 ? `${maxScrollerHeight}px` : "";
88
90
  };
89
91
  this.setScrollerEl = (scrollerEl) => {
92
+ this.resizeObserver.observe(scrollerEl);
90
93
  this.scrollerEl = scrollerEl;
91
94
  };
92
95
  this.transitionEnd = (event) => {
@@ -142,6 +145,7 @@ let CalciteDropdown = class extends HTMLElement {
142
145
  }
143
146
  maxItemsHandler() {
144
147
  this.reposition();
148
+ this.setMaxScrollerHeight();
145
149
  }
146
150
  placementHandler() {
147
151
  this.reposition();
@@ -161,8 +165,9 @@ let CalciteDropdown = class extends HTMLElement {
161
165
  this.reposition();
162
166
  }
163
167
  disconnectedCallback() {
164
- var _a;
168
+ var _a, _b;
165
169
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
170
+ (_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
166
171
  this.destroyPopper();
167
172
  }
168
173
  render() {
@@ -171,7 +176,7 @@ let CalciteDropdown = class extends HTMLElement {
171
176
  ["calcite-dropdown-content"]: true,
172
177
  [CSS.animation]: true,
173
178
  [CSS.animationActive]: active
174
- }, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("slot", null)))));
179
+ }, onTransitionEnd: this.transitionEnd, ref: this.setScrollerEl }, h("div", { hidden: !this.active }, h("slot", null))))));
175
180
  }
176
181
  //--------------------------------------------------------------------------
177
182
  //
@@ -181,7 +186,6 @@ let CalciteDropdown = class extends HTMLElement {
181
186
  /** Updates the position of the component. */
182
187
  async reposition() {
183
188
  const { popper, menuEl, placement } = this;
184
- this.setMaxScrollerHeight();
185
189
  const modifiers = this.getModifiers();
186
190
  popper
187
191
  ? await updatePopper({
@@ -2,8 +2,9 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, forceUpdate, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as guid } from './guid.js';
7
+ import { c as createObserver } from './observers.js';
7
8
 
8
9
  /**
9
10
  * Calculate slope of the tangents
@@ -104,7 +105,7 @@ function area({ data, min, max, t }) {
104
105
  return `${commands} ${end} L ${maxX},${minY} Z`;
105
106
  }
106
107
 
107
- const calciteGraphCss = "@-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}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;padding:0px}:host([data-style=slider-histogram]) svg{width:100%}:host([data-style=slider-histogram]) svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";
108
+ const calciteGraphCss = "@-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}.svg{fill:currentColor;stroke:transparent;margin:0px;display:block;height:100%;width:100%;padding:0px}.svg .graph-path--highlight{fill:var(--calcite-ui-brand);opacity:0.5}";
108
109
 
109
110
  let CalciteGraph = class extends HTMLElement {
110
111
  constructor() {
@@ -121,25 +122,31 @@ let CalciteGraph = class extends HTMLElement {
121
122
  * These data points should be sorted by x-axis value
122
123
  */
123
124
  this.data = [];
124
- /** Width of graph in pixels*/
125
- this.width = 300;
126
- /** Width of graph in pixels*/
127
- this.height = 100;
128
125
  //--------------------------------------------------------------------------
129
126
  //
130
127
  // Private State/Props
131
128
  //
132
129
  //--------------------------------------------------------------------------
133
130
  this.graphId = `calcite-graph-${guid()}`;
131
+ this.resizeObserver = createObserver("resize", () => forceUpdate(this));
134
132
  }
135
133
  //--------------------------------------------------------------------------
136
134
  //
137
135
  // Lifecycle
138
136
  //
139
137
  //--------------------------------------------------------------------------
138
+ connectedCallback() {
139
+ var _a;
140
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el);
141
+ }
142
+ disconnectedCallback() {
143
+ var _a;
144
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
145
+ }
140
146
  render() {
141
- const { data, colorStops, width, height, highlightMax, highlightMin, min, max } = this;
147
+ const { data, colorStops, el, highlightMax, highlightMin, min, max } = this;
142
148
  const id = this.graphId;
149
+ const { clientHeight: height, clientWidth: width } = el;
143
150
  // if we have no data, return empty svg
144
151
  if (!data || data.length === 0) {
145
152
  return (h("svg", { class: "svg", height: height, preserveAspectRatio: "none", viewBox: `0 0 ${width} ${height}`, width: width }));
@@ -191,8 +198,6 @@ let CalciteGraph = class extends HTMLElement {
191
198
  CalciteGraph = /*@__PURE__*/ proxyCustomElement(CalciteGraph, [1, "calcite-graph", {
192
199
  "data": [16],
193
200
  "colorStops": [16],
194
- "width": [2],
195
- "height": [2],
196
201
  "highlightMin": [2, "highlight-min"],
197
202
  "highlightMax": [2, "highlight-max"],
198
203
  "min": [2],
@@ -31,8 +31,8 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
31
31
  super();
32
32
  this.__registerHost();
33
33
  this.__attachShadow();
34
- this.calciteInlineEditableEditingCancel = createEvent(this, "calciteInlineEditableEditingCancel", 7);
35
- this.calciteInlineEditableChangesConfirm = createEvent(this, "calciteInlineEditableChangesConfirm", 7);
34
+ this.calciteInlineEditableEditCancel = createEvent(this, "calciteInlineEditableEditCancel", 7);
35
+ this.calciteInlineEditableEditConfirm = createEvent(this, "calciteInlineEditableEditConfirm", 7);
36
36
  this.calciteInlineEditableEnableEditingChange = createEvent(this, "calciteInlineEditableEnableEditingChange", 7);
37
37
  //--------------------------------------------------------------------------
38
38
  //
@@ -59,9 +59,9 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
59
59
  * @default "Save"
60
60
  */
61
61
  this.intlConfirmChanges = TEXT.intlConfirmChanges;
62
- this.transitionEnd = (event) => {
62
+ this.transitionEnd = () => {
63
63
  if (!this.editingEnabled && !!this.shouldEmitCancel) {
64
- this.calciteInlineEditableEditingCancel.emit(event);
64
+ this.calciteInlineEditableEditCancel.emit();
65
65
  }
66
66
  };
67
67
  this.enableEditing = () => {
@@ -113,7 +113,7 @@ let CalciteInlineEditable$1 = class extends HTMLElement {
113
113
  this.confirmChangesHandler = async (e) => {
114
114
  e.preventDefault();
115
115
  e.stopPropagation();
116
- this.calciteInlineEditableChangesConfirm.emit();
116
+ this.calciteInlineEditableEditConfirm.emit();
117
117
  try {
118
118
  if (this.afterConfirm) {
119
119
  this.loading = true;