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

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 (266) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-0389f96b.system.entry.js +5 -0
  3. package/dist/calcite/{p-f95fb85f.entry.js → p-04bf684c.entry.js} +1 -1
  4. package/dist/calcite/p-0a5d059d.js +5 -0
  5. package/dist/calcite/{p-02589ad3.system.entry.js → p-0faf1684.system.entry.js} +1 -1
  6. package/dist/calcite/{p-a348ffb1.system.entry.js → p-10b1b39a.system.entry.js} +1 -1
  7. package/dist/calcite/p-1b06ada3.entry.js +5 -0
  8. package/dist/calcite/p-203e951b.system.entry.js +5 -0
  9. package/dist/calcite/{p-bda51610.entry.js → p-242fdd67.entry.js} +1 -1
  10. package/dist/calcite/p-24b54c99.system.entry.js +5 -0
  11. package/dist/calcite/p-283ff9e8.entry.js +5 -0
  12. package/dist/calcite/{p-897fc280.system.entry.js → p-2d411997.system.entry.js} +1 -1
  13. package/dist/calcite/{p-e2094dff.system.entry.js → p-2e351904.system.entry.js} +1 -1
  14. package/dist/calcite/p-341eef4e.entry.js +5 -0
  15. package/dist/calcite/{p-2b48aa8c.entry.js → p-4641ef1f.entry.js} +1 -1
  16. package/dist/calcite/p-492d644c.system.entry.js +5 -0
  17. package/dist/calcite/{p-7cf09784.system.entry.js → p-4b3160ad.system.entry.js} +1 -1
  18. package/dist/calcite/{p-46b63d75.entry.js → p-4c021c5c.entry.js} +1 -1
  19. package/dist/calcite/p-4c6fe413.system.entry.js +5 -0
  20. package/dist/calcite/{p-e6d14bc5.system.entry.js → p-4dcae709.system.entry.js} +1 -1
  21. package/dist/calcite/p-4ef2119c.entry.js +5 -0
  22. package/dist/calcite/p-57584243.system.entry.js +5 -0
  23. package/dist/calcite/p-57bf81c4.system.entry.js +5 -0
  24. package/dist/calcite/p-590d13bd.entry.js +5 -0
  25. package/dist/calcite/p-5aaa0088.system.entry.js +5 -0
  26. package/dist/calcite/{p-ba000c59.entry.js → p-5b7d5f36.entry.js} +1 -1
  27. package/dist/calcite/{p-436d9f0e.system.entry.js → p-67e13029.system.entry.js} +1 -1
  28. package/dist/calcite/p-6b8dcbb0.entry.js +5 -0
  29. package/dist/calcite/{p-16cfe8e8.entry.js → p-6c4bec59.entry.js} +1 -1
  30. package/dist/calcite/p-6de78659.system.entry.js +5 -0
  31. package/dist/calcite/p-6fa59c8c.entry.js +5 -0
  32. package/dist/calcite/p-7165e37e.entry.js +5 -0
  33. package/dist/calcite/{p-f4614b28.system.entry.js → p-77279f88.system.entry.js} +1 -1
  34. package/dist/calcite/p-7cba1720.system.entry.js +5 -0
  35. package/dist/calcite/p-7db0947c.entry.js +5 -0
  36. package/dist/calcite/p-7f50128c.system.entry.js +5 -0
  37. package/dist/calcite/p-84defe75.system.entry.js +5 -0
  38. package/dist/calcite/p-8f647ab0.system.entry.js +5 -0
  39. package/dist/calcite/p-92de4a81.entry.js +5 -0
  40. package/dist/calcite/p-950b42e3.entry.js +5 -0
  41. package/dist/calcite/p-96808ed2.entry.js +5 -0
  42. package/dist/calcite/p-99d32fc3.system.js +1 -1
  43. package/dist/calcite/p-a25ebce7.entry.js +5 -0
  44. package/dist/calcite/p-a5c73259.entry.js +5 -0
  45. package/dist/calcite/{p-409d0a3f.entry.js → p-a980b2df.entry.js} +1 -1
  46. package/dist/calcite/p-ab14b0a2.system.js +5 -0
  47. package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
  48. package/dist/calcite/p-b052f523.entry.js +5 -0
  49. package/dist/calcite/p-b9a47a94.system.entry.js +5 -0
  50. package/dist/calcite/p-bb20e0fc.system.entry.js +5 -0
  51. package/dist/calcite/{p-209f2049.entry.js → p-bde80af8.entry.js} +1 -1
  52. package/dist/calcite/p-c029ffb1.entry.js +5 -0
  53. package/dist/calcite/p-d908834f.system.entry.js +5 -0
  54. package/dist/calcite/p-de09fc5c.system.entry.js +5 -0
  55. package/dist/calcite/p-ea510477.js +5 -0
  56. package/dist/calcite/p-ee7e311e.system.entry.js +5 -0
  57. package/dist/calcite/{p-d5d91f34.system.entry.js → p-f044fcc5.system.entry.js} +1 -1
  58. package/dist/calcite/p-f385d631.entry.js +5 -0
  59. package/dist/calcite/p-fe94050d.entry.js +5 -0
  60. package/dist/calcite/p-fee6af61.entry.js +5 -0
  61. package/dist/cjs/calcite-action-bar.cjs.entry.js +4 -25
  62. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -0
  63. package/dist/cjs/calcite-action-menu.cjs.entry.js +4 -1
  64. package/dist/cjs/calcite-action-pad.cjs.entry.js +8 -0
  65. package/dist/cjs/calcite-action.cjs.entry.js +2 -2
  66. package/dist/cjs/calcite-block_2.cjs.entry.js +14 -1
  67. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  68. package/dist/cjs/calcite-chip.cjs.entry.js +14 -1
  69. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  70. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
  71. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  72. package/dist/cjs/calcite-graph_2.cjs.entry.js +4 -4
  73. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/calcite-link.cjs.entry.js +13 -2
  75. package/dist/cjs/calcite-list_3.cjs.entry.js +13 -0
  76. package/dist/cjs/calcite-modal.cjs.entry.js +6 -3
  77. package/dist/cjs/calcite-notice.cjs.entry.js +8 -0
  78. package/dist/cjs/calcite-option_3.cjs.entry.js +1 -1
  79. package/dist/cjs/calcite-panel.cjs.entry.js +18 -12
  80. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +24 -1
  81. package/dist/cjs/calcite-shell_3.cjs.entry.js +35 -7
  82. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  83. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  84. package/dist/cjs/calcite-tile.cjs.entry.js +13 -0
  85. package/dist/cjs/calcite-tip_3.cjs.entry.js +14 -2
  86. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -0
  87. package/dist/cjs/calcite-value-list_2.cjs.entry.js +13 -1
  88. package/dist/cjs/calcite.cjs.js +1 -1
  89. package/dist/cjs/conditionalSlot-92505fba.js +43 -0
  90. package/dist/cjs/loader.cjs.js +1 -1
  91. package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
  92. package/dist/collection/components/calcite-action/calcite-action.css +1 -0
  93. package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
  94. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
  95. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
  96. package/dist/collection/components/calcite-block/calcite-block.js +13 -1
  97. package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
  98. package/dist/collection/components/calcite-link/calcite-link.js +31 -2
  99. package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
  100. package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
  101. package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
  102. package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
  103. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
  104. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
  105. package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
  106. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
  107. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
  108. package/dist/collection/components/calcite-slider/calcite-slider.css +3 -0
  109. package/dist/collection/components/calcite-slider/calcite-slider.js +2 -2
  110. package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
  111. package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
  112. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
  113. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
  114. package/dist/collection/utils/conditionalSlot.js +22 -11
  115. package/dist/collection/utils/globalAttributes.js +59 -0
  116. package/dist/collection/utils/observers.js +5 -1
  117. package/dist/components/calcite-action-bar.js +2 -23
  118. package/dist/components/calcite-action-group2.js +12 -0
  119. package/dist/components/calcite-action-menu2.js +3 -0
  120. package/dist/components/calcite-action-pad.js +7 -0
  121. package/dist/components/calcite-action2.js +1 -1
  122. package/dist/components/calcite-block.js +13 -1
  123. package/dist/components/calcite-chip2.js +13 -1
  124. package/dist/components/calcite-link2.js +14 -2
  125. package/dist/components/calcite-list-item.js +12 -0
  126. package/dist/components/calcite-modal.js +5 -2
  127. package/dist/components/calcite-notice.js +7 -0
  128. package/dist/components/calcite-panel.js +17 -12
  129. package/dist/components/calcite-pick-list-group.js +12 -0
  130. package/dist/components/calcite-pick-list-item2.js +12 -0
  131. package/dist/components/calcite-shell-center-row.js +13 -1
  132. package/dist/components/calcite-shell-panel.js +9 -4
  133. package/dist/components/calcite-shell.js +14 -2
  134. package/dist/components/calcite-slider.js +3 -3
  135. package/dist/components/calcite-tile2.js +12 -0
  136. package/dist/components/calcite-tip.js +13 -1
  137. package/dist/components/calcite-tree-item.js +5 -0
  138. package/dist/components/calcite-value-list-item.js +12 -0
  139. package/dist/components/conditionalSlot.js +40 -0
  140. package/dist/components/observers.js +5 -1
  141. package/dist/custom-elements/index.js +217 -43
  142. package/dist/esm/calcite-action-bar.entry.js +3 -24
  143. package/dist/esm/calcite-action-group.entry.js +13 -0
  144. package/dist/esm/calcite-action-menu.entry.js +4 -1
  145. package/dist/esm/calcite-action-pad.entry.js +8 -0
  146. package/dist/esm/calcite-action.entry.js +2 -2
  147. package/dist/esm/calcite-block_2.entry.js +14 -1
  148. package/dist/esm/calcite-button.entry.js +1 -1
  149. package/dist/esm/calcite-chip.entry.js +14 -1
  150. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  151. package/dist/esm/calcite-dropdown_3.entry.js +1 -1
  152. package/dist/esm/calcite-flow.entry.js +1 -1
  153. package/dist/esm/calcite-graph_2.entry.js +4 -4
  154. package/dist/esm/calcite-icon.entry.js +1 -1
  155. package/dist/esm/calcite-link.entry.js +13 -2
  156. package/dist/esm/calcite-list_3.entry.js +13 -0
  157. package/dist/esm/calcite-modal.entry.js +6 -3
  158. package/dist/esm/calcite-notice.entry.js +8 -0
  159. package/dist/esm/calcite-option_3.entry.js +1 -1
  160. package/dist/esm/calcite-panel.entry.js +18 -12
  161. package/dist/esm/calcite-pick-list_3.entry.js +24 -1
  162. package/dist/esm/calcite-shell_3.entry.js +35 -7
  163. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  164. package/dist/esm/calcite-tab_4.entry.js +1 -1
  165. package/dist/esm/calcite-tile.entry.js +13 -0
  166. package/dist/esm/calcite-tip_3.entry.js +14 -2
  167. package/dist/esm/calcite-tree_2.entry.js +6 -0
  168. package/dist/esm/calcite-value-list_2.entry.js +13 -1
  169. package/dist/esm/calcite.js +1 -1
  170. package/dist/esm/conditionalSlot-9e7d8609.js +40 -0
  171. package/dist/esm/loader.js +1 -1
  172. package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
  173. package/dist/esm-es5/calcite-action-bar.entry.js +1 -1
  174. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  175. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  176. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  177. package/dist/esm-es5/calcite-action.entry.js +1 -1
  178. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  179. package/dist/esm-es5/calcite-button.entry.js +1 -1
  180. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  181. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  182. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  183. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  184. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  185. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  186. package/dist/esm-es5/calcite-link.entry.js +2 -2
  187. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  188. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  189. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  190. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  191. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  192. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  193. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  194. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  195. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  196. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  197. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  198. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  199. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  200. package/dist/esm-es5/calcite.js +1 -1
  201. package/dist/esm-es5/conditionalSlot-9e7d8609.js +5 -0
  202. package/dist/esm-es5/loader.js +1 -1
  203. package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
  204. package/dist/extras/docs-json.json +21 -1
  205. package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
  206. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
  207. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
  208. package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
  209. package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
  210. package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
  211. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
  212. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
  213. package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
  214. package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
  215. package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
  216. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
  217. package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
  218. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
  219. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
  220. package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
  221. package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
  222. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
  223. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
  224. package/dist/types/components.d.ts +8 -0
  225. package/dist/types/utils/globalAttributes.d.ts +35 -0
  226. package/hydrate/index.js +213 -42
  227. package/package.json +1 -2
  228. package/readme.md +0 -30
  229. package/dist/calcite/p-02856c5a.system.entry.js +0 -5
  230. package/dist/calcite/p-0af820bf.entry.js +0 -5
  231. package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
  232. package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
  233. package/dist/calcite/p-20d2db84.entry.js +0 -5
  234. package/dist/calcite/p-253efee4.entry.js +0 -5
  235. package/dist/calcite/p-2618de8a.entry.js +0 -5
  236. package/dist/calcite/p-273cd5ab.entry.js +0 -5
  237. package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
  238. package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
  239. package/dist/calcite/p-37bddb73.system.entry.js +0 -5
  240. package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
  241. package/dist/calcite/p-3b73b785.system.entry.js +0 -5
  242. package/dist/calcite/p-4659df78.entry.js +0 -5
  243. package/dist/calcite/p-4d22b788.entry.js +0 -5
  244. package/dist/calcite/p-54e271c9.system.entry.js +0 -5
  245. package/dist/calcite/p-57558d4b.entry.js +0 -5
  246. package/dist/calcite/p-5df1936f.entry.js +0 -5
  247. package/dist/calcite/p-698167ac.entry.js +0 -5
  248. package/dist/calcite/p-7d355abe.system.entry.js +0 -5
  249. package/dist/calcite/p-8d36bc7c.entry.js +0 -5
  250. package/dist/calcite/p-9bfe6679.system.entry.js +0 -5
  251. package/dist/calcite/p-9d81d229.entry.js +0 -5
  252. package/dist/calcite/p-a0043c61.entry.js +0 -5
  253. package/dist/calcite/p-a1f65f6e.entry.js +0 -5
  254. package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
  255. package/dist/calcite/p-a9c50960.system.entry.js +0 -5
  256. package/dist/calcite/p-aaed1677.entry.js +0 -5
  257. package/dist/calcite/p-ac778725.system.entry.js +0 -5
  258. package/dist/calcite/p-ac8cf248.entry.js +0 -5
  259. package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
  260. package/dist/calcite/p-c0ed9eff.entry.js +0 -5
  261. package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
  262. package/dist/calcite/p-d578e568.system.entry.js +0 -5
  263. package/dist/calcite/p-e4acb5a8.js +0 -5
  264. package/dist/calcite/p-e564004a.system.entry.js +0 -5
  265. package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
  266. package/dist/calcite/p-f73124d0.entry.js +0 -5
@@ -2,10 +2,11 @@
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
- import { f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
5
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { t as toggleChildActionText, o as overflowActionsDebounceInMs, q as queryActions, a as overflowActions, C as CalciteExpandToggle, g as getOverflowCount } from './CalciteExpandToggle-48b6e955.js';
7
7
  import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
8
- import { c as createObserver } from './observers-8f0bc419.js';
8
+ import { c as createObserver } from './observers-46118290.js';
9
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
10
  import { d as debounce } from './debounce-79648d42.js';
10
11
  import './resources-584acd9b.js';
11
12
  import './resources-7c6029b6.js';
@@ -23,28 +24,6 @@ const TEXT = {
23
24
  collapse: "Collapse"
24
25
  };
25
26
 
26
- const slotChangedMap = new WeakMap();
27
- function onSlotChange() {
28
- forceUpdate(this);
29
- }
30
- const eventType = "slotchange";
31
- /**
32
- * Helper to set up a conditional slot component on connectedCallback.
33
- */
34
- function connectConditionalSlotComponent(component) {
35
- const boundSlotChange = onSlotChange.bind(component);
36
- component.el.shadowRoot.addEventListener(eventType, boundSlotChange);
37
- slotChangedMap.set(component, boundSlotChange);
38
- }
39
- /**
40
- * Helper to tear down a conditional slot component on disconnectedCallback.
41
- */
42
- function disconnectConditionalSlotComponent(component) {
43
- const boundSlotChange = slotChangedMap.get(component);
44
- component.el.shadowRoot.removeEventListener(eventType, boundSlotChange);
45
- slotChangedMap.delete(component);
46
- }
47
-
48
27
  const calciteActionBarCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{pointer-events:auto;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-align:stretch;align-self:stretch;max-width:15vw}:host([overflow-actions-disabled]){overflow-y:auto}:host([expanded]){max-width:20vw}::slotted(calcite-action-group){border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}::slotted(calcite-action-group:last-child){border-bottom-width:0px}.action-group--bottom{-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:end;justify-content:flex-end;padding-bottom:0px}";
49
28
 
50
29
  let CalciteActionBar = class {
@@ -6,7 +6,9 @@ import { r as registerInstance, h, F as Fragment, g as getElement } from './inde
6
6
  import { S as SLOTS, I as ICONS, T as TEXT } from './resources-7c6029b6.js';
7
7
  import { g as getSlotted } from './dom-037dc374.js';
8
8
  import { S as SLOTS$1 } from './resources-584acd9b.js';
9
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
10
  import './guid-196bd5ea.js';
11
+ import './observers-46118290.js';
10
12
 
11
13
  const calciteActionGroupCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}: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;padding:0px;--calcite-action-group-columns:3}:host([columns=\"1\"]){--calcite-action-group-columns:1}:host([columns=\"2\"]){--calcite-action-group-columns:2}:host([columns=\"3\"]){--calcite-action-group-columns:3}:host([columns=\"4\"]){--calcite-action-group-columns:4}:host([columns=\"5\"]){--calcite-action-group-columns:5}:host([columns=\"6\"]){--calcite-action-group-columns:6}:host(:first-child){padding-top:0px}:host([layout=horizontal]){-ms-flex-direction:row;flex-direction:row}:host([layout=grid]){display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}";
12
14
 
@@ -44,6 +46,17 @@ let CalciteActionGroup = class {
44
46
  }
45
47
  // --------------------------------------------------------------------------
46
48
  //
49
+ // Lifecycle
50
+ //
51
+ // --------------------------------------------------------------------------
52
+ connectedCallback() {
53
+ connectConditionalSlotComponent(this);
54
+ }
55
+ disconnectedCallback() {
56
+ disconnectConditionalSlotComponent(this);
57
+ }
58
+ // --------------------------------------------------------------------------
59
+ //
47
60
  // Component Methods
48
61
  //
49
62
  // --------------------------------------------------------------------------
@@ -7,7 +7,8 @@ import { C as CSS, I as ICONS, S as SLOTS } from './resources-584acd9b.js';
7
7
  import { g as getSlotted, f as focusElement } from './dom-037dc374.js';
8
8
  import { g as getRoundRobinIndex } from './array-91a648e2.js';
9
9
  import { g as guid } from './guid-196bd5ea.js';
10
- import { c as createObserver } from './observers-8f0bc419.js';
10
+ import { c as createObserver } from './observers-46118290.js';
11
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
11
12
 
12
13
  const calciteActionMenuCss = "@-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{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:var(--calcite-ui-foreground-1);font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}.menu ::slotted(calcite-action){margin:0.125rem;display:-ms-flexbox;display:flex;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}::slotted(calcite-action[active]){outline:2px solid var(--calcite-ui-brand);outline-offset:0px}.default-trigger{position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;height:100%;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-item-align:stretch;align-self:stretch}.menu{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}";
13
14
 
@@ -219,11 +220,13 @@ let CalciteActionMenu = class {
219
220
  var _a;
220
221
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
221
222
  this.getActions();
223
+ connectConditionalSlotComponent(this);
222
224
  }
223
225
  disconnectedCallback() {
224
226
  var _a;
225
227
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
226
228
  this.disconnectMenuButtonEl();
229
+ disconnectConditionalSlotComponent(this);
227
230
  }
228
231
  expandedHandler() {
229
232
  this.open = false;
@@ -5,9 +5,11 @@
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { t as toggleChildActionText, C as CalciteExpandToggle } from './CalciteExpandToggle-48b6e955.js';
7
7
  import { f as focusElement, g as getSlotted } from './dom-037dc374.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
8
9
  import './resources-584acd9b.js';
9
10
  import './resources-7c6029b6.js';
10
11
  import './guid-196bd5ea.js';
12
+ import './observers-46118290.js';
11
13
 
12
14
  const CSS = {
13
15
  actionGroupBottom: "action-group--bottom",
@@ -82,6 +84,12 @@ let CalciteActionPad = class {
82
84
  // Lifecycle
83
85
  //
84
86
  // --------------------------------------------------------------------------
87
+ connectedCallback() {
88
+ connectConditionalSlotComponent(this);
89
+ }
90
+ disconnectedCallback() {
91
+ disconnectConditionalSlotComponent(this);
92
+ }
85
93
  componentWillLoad() {
86
94
  const { el, expandDisabled, expanded } = this;
87
95
  if (!expandDisabled) {
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as forceUpdate } from './index-9de00868.js';
6
- import { c as createObserver } from './observers-8f0bc419.js';
6
+ import { c as createObserver } from './observers-46118290.js';
7
7
 
8
8
  const CSS = {
9
9
  button: "button",
@@ -19,7 +19,7 @@ const TEXT = {
19
19
  loading: "Loading"
20
20
  };
21
21
 
22
- const calciteActionCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);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;font-family:inherit;text-align:unset}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
22
+ const calciteActionCss = "@-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}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);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;font-family:inherit;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
23
23
 
24
24
  let CalciteAction = class {
25
25
  constructor(hostRef) {
@@ -5,7 +5,9 @@
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { g as getSlotted, a as getElementDir } from './dom-037dc374.js';
7
7
  import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
8
9
  import './guid-196bd5ea.js';
10
+ import './observers-46118290.js';
9
11
 
10
12
  const CSS$1 = {
11
13
  article: "article",
@@ -96,6 +98,17 @@ let CalciteBlock = class {
96
98
  }
97
99
  // --------------------------------------------------------------------------
98
100
  //
101
+ // Lifecycle
102
+ //
103
+ // --------------------------------------------------------------------------
104
+ connectedCallback() {
105
+ connectConditionalSlotComponent(this);
106
+ }
107
+ disconnectedCallback() {
108
+ disconnectConditionalSlotComponent(this);
109
+ }
110
+ // --------------------------------------------------------------------------
111
+ //
99
112
  // Render Methods
100
113
  //
101
114
  // --------------------------------------------------------------------------
@@ -109,7 +122,7 @@ let CalciteBlock = class {
109
122
  const showingLoadingStatus = this.loading && !this.open;
110
123
  const statusIcon = showingLoadingStatus ? ICONS$1.refresh : ICONS$1[status];
111
124
  const hasIcon = getSlotted(el, SLOTS.icon) || statusIcon;
112
- const iconEl = !statusIcon ? (h("slot", { name: SLOTS.icon })) : (h("calcite-icon", { class: {
125
+ const iconEl = !statusIcon ? (h("slot", { key: "icon-slot", name: SLOTS.icon })) : (h("calcite-icon", { class: {
113
126
  [CSS$1.statusIcon]: true,
114
127
  [CSS$1.valid]: status == "valid",
115
128
  [CSS$1.invalid]: status == "invalid",
@@ -5,7 +5,7 @@
5
5
  import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
6
6
  import { c as closestElementCrossShadowBoundary } from './dom-037dc374.js';
7
7
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
8
- import { c as createObserver } from './observers-8f0bc419.js';
8
+ import { c as createObserver } from './observers-46118290.js';
9
9
  import './guid-196bd5ea.js';
10
10
 
11
11
  (function(prototype) {
@@ -5,6 +5,8 @@
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
6
6
  import { g as getSlotted } from './dom-037dc374.js';
7
7
  import { g as guid } from './guid-196bd5ea.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
+ import './observers-46118290.js';
8
10
 
9
11
  const CSS = {
10
12
  title: "title",
@@ -58,6 +60,17 @@ let CalciteChip = class {
58
60
  };
59
61
  this.guid = guid();
60
62
  }
63
+ // --------------------------------------------------------------------------
64
+ //
65
+ // Lifecycle
66
+ //
67
+ // --------------------------------------------------------------------------
68
+ connectedCallback() {
69
+ connectConditionalSlotComponent(this);
70
+ }
71
+ disconnectedCallback() {
72
+ disconnectConditionalSlotComponent(this);
73
+ }
61
74
  //--------------------------------------------------------------------------
62
75
  //
63
76
  // Public Methods
@@ -76,7 +89,7 @@ let CalciteChip = class {
76
89
  renderChipImage() {
77
90
  const { el } = this;
78
91
  const hasChipImage = getSlotted(el, SLOTS.image);
79
- return hasChipImage ? (h("div", { class: CSS.chipImageContainer }, h("slot", { name: SLOTS.image }))) : null;
92
+ return hasChipImage ? (h("div", { class: CSS.chipImageContainer, key: "image" }, h("slot", { name: SLOTS.image }))) : null;
80
93
  }
81
94
  render() {
82
95
  const iconEl = (h("calcite-icon", { class: CSS.calciteChipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "s" }));
@@ -10,7 +10,7 @@ import { g as guid } from './guid-196bd5ea.js';
10
10
  import { n as nodeListToArray, d as getElementProp } from './dom-037dc374.js';
11
11
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label-712646d2.js';
12
12
  import { c as connectForm, a as afterConnectDefaultValueSet, d as disconnectForm, H as HiddenFormInputSlot } from './form-72369b73.js';
13
- import { c as createObserver } from './observers-8f0bc419.js';
13
+ import { c as createObserver } from './observers-46118290.js';
14
14
 
15
15
  /**
16
16
  * A specialized version of `_.map` for arrays without support for iteratee
@@ -5,7 +5,7 @@
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { f as focusElement, d as getElementProp } from './dom-037dc374.js';
7
7
  import { C as CSS$2, u as updatePopper, c as createPopper } from './popper-7a7fd3b5.js';
8
- import { c as createObserver } from './observers-8f0bc419.js';
8
+ import { c as createObserver } from './observers-46118290.js';
9
9
  import './guid-196bd5ea.js';
10
10
 
11
11
  const DefaultDropdownPlacement = "bottom-leading";
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, h, g as getElement } from './index-9de00868.js';
6
- import { c as createObserver } from './observers-8f0bc419.js';
6
+ import { c as createObserver } from './observers-46118290.js';
7
7
 
8
8
  const CSS = {
9
9
  frame: "frame",
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { r as registerInstance, f as forceUpdate, h, g as getElement, c as createEvent, H as Host } from './index-9de00868.js';
6
6
  import { g as guid } from './guid-196bd5ea.js';
7
- import { c as createObserver } from './observers-8f0bc419.js';
7
+ import { c as createObserver } from './observers-46118290.js';
8
8
  import { j as intersects } from './dom-037dc374.js';
9
9
  import { d as decimalPlaces, c as clamp } from './math-456207f5.js';
10
10
  import { c as connectLabel, d as disconnectLabel } from './label-712646d2.js';
@@ -198,7 +198,7 @@ let CalciteGraph = class {
198
198
  };
199
199
  CalciteGraph.style = calciteGraphCss;
200
200
 
201
- const calciteSliderCss = "@charset \"UTF-8\";@-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}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::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}";
201
+ const calciteSliderCss = "@charset \"UTF-8\";@-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}.scale--s{--calcite-slider-handle-size:10px;--calcite-slider-handle-extension-height:6.5px;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:14px;--calcite-slider-handle-extension-height:8px;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:16px;--calcite-slider-handle-extension-height:10.5px;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;padding:calc(var(--calcite-slider-handle-size) * 0.5);margin:calc(var(--calcite-slider-handle-size) * 0.5) 0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n )}:host([disabled]){pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-6px}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-8px}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-9px}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-width:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;-webkit-transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset));transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;top:0px;bottom:0px;opacity:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle__label.hyphen--wrap{display:-ms-flexbox;display:flex}.thumb .handle{-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-offset:0;outline-color:transparent;height:var(--calcite-slider-handle-size);width:var(--calcite-slider-handle-size);-webkit-box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;-webkit-transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, -webkit-box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease, -webkit-box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{width:0.125rem;height:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand) inset;box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{-webkit-transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset));transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-2px}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-23px}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-30px}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-32px}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{margin-top:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{margin-bottom:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-33px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-44px}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-49px}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);-webkit-box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;height:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);-webkit-transition:all var(--calcite-internal-animation-timing-medium) ease-in;transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;top:0px;height:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;width:100%;content:\"\";top:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);height:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}.tick{position:absolute;height:0.25rem;width:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);top:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;margin-top:0.875rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.tick__label--min{-webkit-transition:opacity var(--calcite-animation-timing);transition:opacity var(--calcite-animation-timing)}.tick__label--max{-webkit-transition:opacity var(--calcite-internal-animation-timing-fast);transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);height:48px}:host([label-ticks][ticks]) .container{padding-bottom:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{padding-bottom:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{padding-bottom:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{padding-top:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{padding-bottom:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{padding-top:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{padding-bottom:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::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}";
202
202
 
203
203
  let CalciteSlider = class {
204
204
  constructor(hostRef) {
@@ -760,7 +760,7 @@ let CalciteSlider = class {
760
760
  const hyphenLabel = leftValueLabel;
761
761
  const labelOffset = labelFontSize / 2;
762
762
  if (labelTransformedOverlap > 0) {
763
- hyphenLabel.classList.add("hyphen");
763
+ hyphenLabel.classList.add("hyphen", "hyphen--wrap");
764
764
  if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
765
765
  // Neither handle overlaps the host boundary
766
766
  let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
@@ -806,7 +806,7 @@ let CalciteSlider = class {
806
806
  }
807
807
  }
808
808
  else {
809
- hyphenLabel.classList.remove("hyphen");
809
+ hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
810
810
  leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
811
811
  leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
812
812
  rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { a as getAssetPath, r as registerInstance, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { a as getElementDir } from './dom-037dc374.js';
7
- import { c as createObserver } from './observers-8f0bc419.js';
7
+ import { c as createObserver } from './observers-46118290.js';
8
8
  import './guid-196bd5ea.js';
9
9
 
10
10
  const CSS = {
@@ -18,6 +18,11 @@ let CalciteLink = class {
18
18
  //--------------------------------------------------------------------------
19
19
  /** is the link disabled */
20
20
  this.disabled = false;
21
+ /** Prompts the user to save the linked URL instead of navigating to it. Can be used with or without a value:
22
+ * Without a value, the browser will suggest a filename/extension
23
+ * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download
24
+ */
25
+ this.download = false;
21
26
  /** the node type of the rendered child element */
22
27
  this.childElType = "span";
23
28
  //--------------------------------------------------------------------------
@@ -41,13 +46,19 @@ let CalciteLink = class {
41
46
  this.childElType = this.href ? "a" : "span";
42
47
  }
43
48
  render() {
44
- const dir = getElementDir(this.el);
49
+ const { download, el } = this;
50
+ const dir = getElementDir(el);
45
51
  const iconStartEl = (h("calcite-icon", { class: "calcite-link--icon icon-start", flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: "s" }));
46
52
  const iconEndEl = (h("calcite-icon", { class: "calcite-link--icon icon-end", flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: "s" }));
47
53
  const Tag = this.childElType;
48
54
  const role = this.childElType === "span" ? "link" : null;
49
55
  const tabIndex = this.disabled ? -1 : this.childElType === "span" ? 0 : null;
50
- return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" }, href: Tag === "a" && this.href, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
56
+ return (h(Host, { role: "presentation" }, h(Tag, { class: { [CSS_UTILITY.rtl]: dir === "rtl" },
57
+ /*
58
+ When the 'download' property of type 'boolean | string' is set to true, the value is "".
59
+ This works around that issue for now.
60
+ */
61
+ download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, ref: this.storeTagRef, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target }, this.iconStart ? iconStartEl : null, h("slot", null), this.iconEnd ? iconEndEl : null)));
51
62
  }
52
63
  //--------------------------------------------------------------------------
53
64
  //
@@ -4,8 +4,10 @@
4
4
  */
5
5
  import { r as registerInstance, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { g as getSlotted } from './dom-037dc374.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
7
8
  import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading-1d6cd311.js';
8
9
  import './guid-196bd5ea.js';
10
+ import './observers-46118290.js';
9
11
 
10
12
  const CSS$2 = {
11
13
  container: "container"
@@ -80,6 +82,17 @@ let CalciteListItem = class {
80
82
  }
81
83
  // --------------------------------------------------------------------------
82
84
  //
85
+ // Lifecycle
86
+ //
87
+ // --------------------------------------------------------------------------
88
+ connectedCallback() {
89
+ connectConditionalSlotComponent(this);
90
+ }
91
+ disconnectedCallback() {
92
+ disconnectConditionalSlotComponent(this);
93
+ }
94
+ // --------------------------------------------------------------------------
95
+ //
83
96
  // Public Methods
84
97
  //
85
98
  // --------------------------------------------------------------------------
@@ -4,7 +4,8 @@
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9de00868.js';
6
6
  import { f as focusElement, g as getSlotted, e as ensureId, i as isCalciteFocusable } from './dom-037dc374.js';
7
- import { c as createObserver } from './observers-8f0bc419.js';
7
+ import { c as createObserver } from './observers-46118290.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
8
9
  import './guid-196bd5ea.js';
9
10
 
10
11
  /**
@@ -240,11 +241,13 @@ let CalciteModal = class {
240
241
  var _a;
241
242
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
242
243
  this.updateFooterVisibility();
244
+ connectConditionalSlotComponent(this);
243
245
  }
244
246
  disconnectedCallback() {
245
247
  var _a;
246
248
  this.removeOverflowHiddenClass();
247
249
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
250
+ disconnectConditionalSlotComponent(this);
248
251
  }
249
252
  render() {
250
253
  return (h(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, h("calcite-scrim", { class: CSS.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), h("div", { class: "modal", onTransitionEnd: this.transitionEnd }, h("div", { "data-focus-fence": true, onFocus: this.focusLastElement, tabindex: "0" }), h("div", { class: CSS.header }, this.renderCloseButton(), h("header", { class: CSS.title }, h("slot", { name: CSS.header }))), h("div", { class: {
@@ -254,10 +257,10 @@ let CalciteModal = class {
254
257
  }, ref: (el) => (this.modalContent = el) }, h("slot", { name: SLOTS.content })), this.renderFooter(), h("div", { "data-focus-fence": true, onFocus: this.focusFirstElement, tabindex: "0" }))));
255
258
  }
256
259
  renderFooter() {
257
- return this.hasFooter ? (h("div", { class: CSS.footer }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
260
+ return this.hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("span", { class: CSS.back }, h("slot", { name: SLOTS.back })), h("span", { class: CSS.secondary }, h("slot", { name: SLOTS.secondary })), h("span", { class: CSS.primary }, h("slot", { name: SLOTS.primary })))) : null;
258
261
  }
259
262
  renderCloseButton() {
260
- return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
263
+ return !this.disableCloseButton ? (h("button", { "aria-label": this.intlClose, class: CSS.close, key: "button", onClick: this.close, ref: (el) => (this.closeButtonEl = el), title: this.intlClose }, h("calcite-icon", { icon: ICONS.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
261
264
  }
262
265
  renderStyle() {
263
266
  const hasCustomWidth = !isNaN(parseInt(`${this.width}`));
@@ -5,7 +5,9 @@
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9de00868.js';
6
6
  import { S as StatusIcons } from './interfaces-51dc4e1b.js';
7
7
  import { s as setRequestedIcon, g as getSlotted } from './dom-037dc374.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
8
9
  import './guid-196bd5ea.js';
10
+ import './observers-46118290.js';
9
11
 
10
12
  const TEXT = {
11
13
  close: "Close"
@@ -68,6 +70,12 @@ let CalciteNotice = class {
68
70
  // Lifecycle
69
71
  //
70
72
  //--------------------------------------------------------------------------
73
+ connectedCallback() {
74
+ connectConditionalSlotComponent(this);
75
+ }
76
+ disconnectedCallback() {
77
+ disconnectConditionalSlotComponent(this);
78
+ }
71
79
  componentWillLoad() {
72
80
  this.requestedIcon = setRequestedIcon(StatusIcons, this.icon, this.color);
73
81
  }
@@ -3,7 +3,7 @@
3
3
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
4
  */
5
5
  import { r as registerInstance, c as createEvent, h, g as getElement, F as Fragment } from './index-9de00868.js';
6
- import { c as createObserver } from './observers-8f0bc419.js';
6
+ import { c as createObserver } from './observers-46118290.js';
7
7
  import { f as focusElement } from './dom-037dc374.js';
8
8
  import { c as connectLabel, d as disconnectLabel } from './label-712646d2.js';
9
9
  import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form-72369b73.js';
@@ -6,7 +6,9 @@ import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElem
6
6
  import { a as getElementDir, g as getSlotted } from './dom-037dc374.js';
7
7
  import { C as CalciteHeading } from './CalciteHeading-1d6cd311.js';
8
8
  import { S as SLOTS$1 } from './resources-584acd9b.js';
9
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot-9e7d8609.js';
9
10
  import './guid-196bd5ea.js';
11
+ import './observers-46118290.js';
10
12
 
11
13
  const CSS = {
12
14
  backButton: "back-button",
@@ -122,6 +124,17 @@ let CalcitePanel = class {
122
124
  }
123
125
  // --------------------------------------------------------------------------
124
126
  //
127
+ // Lifecycle
128
+ //
129
+ // --------------------------------------------------------------------------
130
+ connectedCallback() {
131
+ connectConditionalSlotComponent(this);
132
+ }
133
+ disconnectedCallback() {
134
+ disconnectConditionalSlotComponent(this);
135
+ }
136
+ // --------------------------------------------------------------------------
137
+ //
125
138
  // Methods
126
139
  //
127
140
  // --------------------------------------------------------------------------
@@ -161,7 +174,7 @@ let CalcitePanel = class {
161
174
  * Allows user to override the entire header-content node.
162
175
  */
163
176
  renderHeaderSlottedContent() {
164
- return (h("div", { class: CSS.headerContent, key: "header-content" }, h("slot", { name: SLOTS.headerContent })));
177
+ return (h("div", { class: CSS.headerContent, key: "slotted-header-content" }, h("slot", { name: SLOTS.headerContent })));
165
178
  }
166
179
  renderHeaderStartActions() {
167
180
  const { el } = this;
@@ -179,7 +192,7 @@ let CalcitePanel = class {
179
192
  renderMenu() {
180
193
  const { el, intlOptions, menuOpen } = this;
181
194
  const hasMenuItems = getSlotted(el, SLOTS.headerMenuActions);
182
- return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS.menu, slot: SLOTS$1.trigger, text: intlOptions || TEXT.options }), h("slot", { name: SLOTS.headerMenuActions }))) : null;
195
+ return hasMenuItems ? (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS.menu, slot: SLOTS$1.trigger, text: intlOptions || TEXT.options }), h("slot", { name: SLOTS.headerMenuActions }))) : null;
183
196
  }
184
197
  renderHeaderNode() {
185
198
  const { el, showBackButton } = this;
@@ -197,18 +210,11 @@ let CalcitePanel = class {
197
210
  headerMenuNode ||
198
211
  showBackButton ? (h("header", { class: CSS.header }, backButtonNode, actionsNodeStart, headerContentNode, actionsNodeEnd, headerMenuNode)) : null;
199
212
  }
200
- /**
201
- * Allows user to override the entire footer node.
202
- */
203
- renderFooterSlottedContent() {
213
+ renderFooterNode() {
204
214
  const { el } = this;
205
215
  const hasFooterSlottedContent = getSlotted(el, SLOTS.footer);
206
- return hasFooterSlottedContent ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footer }))) : null;
207
- }
208
- renderFooterActions() {
209
- const { el } = this;
210
216
  const hasFooterActions = getSlotted(el, SLOTS.footerActions);
211
- return hasFooterActions ? (h("footer", { class: CSS.footer }, h("slot", { name: SLOTS.footerActions }))) : null;
217
+ return hasFooterSlottedContent || hasFooterActions ? (h("footer", { class: CSS.footer, key: "footer" }, hasFooterSlottedContent ? h("slot", { key: "footer-slot", name: SLOTS.footer }) : null, hasFooterActions ? h("slot", { key: "footer-actions-slot", name: SLOTS.footerActions }) : null)) : null;
212
218
  }
213
219
  renderContent() {
214
220
  const { el } = this;
@@ -220,7 +226,7 @@ let CalcitePanel = class {
220
226
  }
221
227
  render() {
222
228
  const { dismissed, disabled, dismissible, loading, panelKeyDownHandler } = this;
223
- const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterSlottedContent() || this.renderFooterActions()));
229
+ const panelNode = (h("article", { "aria-busy": loading.toString(), class: CSS.container, hidden: dismissible && dismissed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: dismissible ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
224
230
  return (h(Fragment, null, loading || disabled ? h("calcite-scrim", { loading: loading }) : null, panelNode));
225
231
  }
226
232
  get el() { return getElement(this); }