@esri/calcite-components 1.0.0-next.364 → 1.0.0-next.368

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 (224) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/p-0282fd8b.system.entry.js +5 -0
  3. package/dist/calcite/p-050ff462.entry.js +5 -0
  4. package/dist/calcite/p-05b03971.system.entry.js +5 -0
  5. package/dist/calcite/p-08847812.entry.js +5 -0
  6. package/dist/calcite/p-0aa85495.system.entry.js +5 -0
  7. package/dist/calcite/{p-409d0a3f.entry.js → p-1855547f.entry.js} +1 -1
  8. package/dist/calcite/p-1bcce6c9.entry.js +5 -0
  9. package/dist/calcite/p-1ef9235e.system.entry.js +5 -0
  10. package/dist/calcite/p-25ed6059.entry.js +5 -0
  11. package/dist/calcite/p-40cbbd20.entry.js +5 -0
  12. package/dist/calcite/p-4347fde9.system.entry.js +5 -0
  13. package/dist/calcite/p-43cd4b9b.entry.js +5 -0
  14. package/dist/calcite/{p-e6d14bc5.system.entry.js → p-4dcae709.system.entry.js} +1 -1
  15. package/dist/calcite/p-55e2658e.entry.js +5 -0
  16. package/dist/calcite/p-5682a918.entry.js +5 -0
  17. package/dist/calcite/p-597b782e.system.entry.js +5 -0
  18. package/dist/calcite/p-60e4f404.entry.js +5 -0
  19. package/dist/calcite/p-660c8077.js +5 -0
  20. package/dist/calcite/p-7279ccf9.entry.js +5 -0
  21. package/dist/calcite/p-832d7f68.system.entry.js +5 -0
  22. package/dist/calcite/p-888a152c.system.entry.js +5 -0
  23. package/dist/calcite/p-946c3bed.system.entry.js +5 -0
  24. package/dist/calcite/p-94717214.entry.js +5 -0
  25. package/dist/calcite/p-953259af.entry.js +5 -0
  26. package/dist/calcite/p-96808ed2.entry.js +5 -0
  27. package/dist/calcite/p-99d32fc3.system.js +1 -1
  28. package/dist/calcite/p-9b723fdd.system.entry.js +5 -0
  29. package/dist/calcite/p-9fe77a88.system.entry.js +5 -0
  30. package/dist/calcite/p-a52288cd.system.entry.js +5 -0
  31. package/dist/calcite/p-a71d17b4.entry.js +5 -0
  32. package/dist/calcite/p-aea7c650.system.entry.js +5 -0
  33. package/dist/calcite/p-af7ed41f.system.entry.js +5 -0
  34. package/dist/calcite/p-b14e0be5.system.entry.js +5 -0
  35. package/dist/calcite/p-b53b28e3.system.js +5 -0
  36. package/dist/calcite/p-b88d7391.entry.js +5 -0
  37. package/dist/calcite/p-ba000c59.entry.js +5 -0
  38. package/dist/calcite/p-ba915998.entry.js +5 -0
  39. package/dist/calcite/p-cf2be87e.entry.js +5 -0
  40. package/dist/calcite/p-dd4457cd.entry.js +5 -0
  41. package/dist/calcite/p-eff2fb8c.system.entry.js +5 -0
  42. package/dist/calcite/p-f4614b28.system.entry.js +5 -0
  43. package/dist/calcite/{p-8b145872.system.entry.js → p-f94619be.system.entry.js} +1 -1
  44. package/dist/calcite/p-fd57beb5.system.entry.js +5 -0
  45. package/dist/cjs/calcite-action-bar.cjs.entry.js +3 -24
  46. package/dist/cjs/calcite-action-group.cjs.entry.js +13 -0
  47. package/dist/cjs/calcite-action-menu.cjs.entry.js +3 -0
  48. package/dist/cjs/calcite-action-pad.cjs.entry.js +8 -0
  49. package/dist/cjs/calcite-alert.cjs.entry.js +15 -9
  50. package/dist/cjs/calcite-block_2.cjs.entry.js +14 -1
  51. package/dist/cjs/calcite-chip.cjs.entry.js +14 -1
  52. package/dist/cjs/calcite-combobox_3.cjs.entry.js +14 -10
  53. package/dist/cjs/calcite-graph_2.cjs.entry.js +3 -3
  54. package/dist/cjs/calcite-link.cjs.entry.js +13 -2
  55. package/dist/cjs/calcite-list_3.cjs.entry.js +13 -0
  56. package/dist/cjs/calcite-modal.cjs.entry.js +5 -2
  57. package/dist/cjs/calcite-notice.cjs.entry.js +8 -0
  58. package/dist/cjs/calcite-panel.cjs.entry.js +18 -12
  59. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +23 -0
  60. package/dist/cjs/calcite-shell_3.cjs.entry.js +35 -7
  61. package/dist/cjs/calcite-tile.cjs.entry.js +13 -0
  62. package/dist/cjs/calcite-tip_3.cjs.entry.js +13 -1
  63. package/dist/cjs/calcite-tree_2.cjs.entry.js +6 -0
  64. package/dist/cjs/calcite-value-list_2.cjs.entry.js +12 -0
  65. package/dist/cjs/calcite.cjs.js +1 -1
  66. package/dist/cjs/conditionalSlot-e874fbb0.js +43 -0
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/collection/components/calcite-action-group/calcite-action-group.js +12 -0
  69. package/dist/collection/components/calcite-action-menu/calcite-action-menu.js +3 -0
  70. package/dist/collection/components/calcite-action-pad/calcite-action-pad.js +7 -0
  71. package/dist/collection/components/calcite-alert/calcite-alert.js +15 -9
  72. package/dist/collection/components/calcite-block/calcite-block.js +13 -1
  73. package/dist/collection/components/calcite-chip/calcite-chip.js +13 -1
  74. package/dist/collection/components/calcite-combobox/calcite-combobox.js +15 -11
  75. package/dist/collection/components/calcite-link/calcite-link.js +31 -2
  76. package/dist/collection/components/calcite-list-item/calcite-list-item.js +12 -0
  77. package/dist/collection/components/calcite-modal/calcite-modal.js +5 -2
  78. package/dist/collection/components/calcite-notice/calcite-notice.js +7 -0
  79. package/dist/collection/components/calcite-panel/calcite-panel.js +19 -14
  80. package/dist/collection/components/calcite-pick-list-group/calcite-pick-list-group.js +12 -0
  81. package/dist/collection/components/calcite-pick-list-item/calcite-pick-list-item.js +12 -0
  82. package/dist/collection/components/calcite-shell/calcite-shell.js +14 -2
  83. package/dist/collection/components/calcite-shell-center-row/calcite-shell-center-row.js +13 -1
  84. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +9 -4
  85. package/dist/collection/components/calcite-slider/calcite-slider.css +3 -0
  86. package/dist/collection/components/calcite-slider/calcite-slider.js +2 -2
  87. package/dist/collection/components/calcite-tile/calcite-tile.js +12 -0
  88. package/dist/collection/components/calcite-tip/calcite-tip.js +13 -1
  89. package/dist/collection/components/calcite-tree-item/calcite-tree-item.js +5 -0
  90. package/dist/collection/components/calcite-value-list-item/calcite-value-list-item.js +12 -0
  91. package/dist/collection/utils/conditionalSlot.js +22 -11
  92. package/dist/components/calcite-action-bar.js +2 -23
  93. package/dist/components/calcite-action-group2.js +12 -0
  94. package/dist/components/calcite-action-menu2.js +3 -0
  95. package/dist/components/calcite-action-pad.js +7 -0
  96. package/dist/components/calcite-alert.js +15 -9
  97. package/dist/components/calcite-block.js +13 -1
  98. package/dist/components/calcite-chip2.js +13 -1
  99. package/dist/components/calcite-combobox.js +14 -10
  100. package/dist/components/calcite-link2.js +14 -2
  101. package/dist/components/calcite-list-item.js +12 -0
  102. package/dist/components/calcite-modal.js +5 -2
  103. package/dist/components/calcite-notice.js +7 -0
  104. package/dist/components/calcite-panel.js +17 -12
  105. package/dist/components/calcite-pick-list-group.js +12 -0
  106. package/dist/components/calcite-pick-list-item2.js +12 -0
  107. package/dist/components/calcite-shell-center-row.js +13 -1
  108. package/dist/components/calcite-shell-panel.js +9 -4
  109. package/dist/components/calcite-shell.js +14 -2
  110. package/dist/components/calcite-slider.js +3 -3
  111. package/dist/components/calcite-tile2.js +12 -0
  112. package/dist/components/calcite-tip.js +13 -1
  113. package/dist/components/calcite-tree-item.js +5 -0
  114. package/dist/components/calcite-value-list-item.js +12 -0
  115. package/dist/components/conditionalSlot.js +40 -0
  116. package/dist/custom-elements/index.js +240 -60
  117. package/dist/esm/calcite-action-bar.entry.js +2 -23
  118. package/dist/esm/calcite-action-group.entry.js +13 -0
  119. package/dist/esm/calcite-action-menu.entry.js +3 -0
  120. package/dist/esm/calcite-action-pad.entry.js +8 -0
  121. package/dist/esm/calcite-alert.entry.js +15 -9
  122. package/dist/esm/calcite-block_2.entry.js +14 -1
  123. package/dist/esm/calcite-chip.entry.js +14 -1
  124. package/dist/esm/calcite-combobox_3.entry.js +14 -10
  125. package/dist/esm/calcite-graph_2.entry.js +3 -3
  126. package/dist/esm/calcite-link.entry.js +13 -2
  127. package/dist/esm/calcite-list_3.entry.js +13 -0
  128. package/dist/esm/calcite-modal.entry.js +5 -2
  129. package/dist/esm/calcite-notice.entry.js +8 -0
  130. package/dist/esm/calcite-panel.entry.js +18 -12
  131. package/dist/esm/calcite-pick-list_3.entry.js +23 -0
  132. package/dist/esm/calcite-shell_3.entry.js +35 -7
  133. package/dist/esm/calcite-tile.entry.js +13 -0
  134. package/dist/esm/calcite-tip_3.entry.js +13 -1
  135. package/dist/esm/calcite-tree_2.entry.js +6 -0
  136. package/dist/esm/calcite-value-list_2.entry.js +12 -0
  137. package/dist/esm/calcite.js +1 -1
  138. package/dist/esm/conditionalSlot-0c4ea23a.js +40 -0
  139. package/dist/esm/loader.js +1 -1
  140. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  141. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  142. package/dist/esm-es5/calcite-action-menu.entry.js +2 -2
  143. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  144. package/dist/esm-es5/calcite-alert.entry.js +1 -1
  145. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  146. package/dist/esm-es5/calcite-chip.entry.js +2 -2
  147. package/dist/esm-es5/calcite-combobox_3.entry.js +2 -2
  148. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  149. package/dist/esm-es5/calcite-link.entry.js +2 -2
  150. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  151. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  152. package/dist/esm-es5/calcite-notice.entry.js +2 -2
  153. package/dist/esm-es5/calcite-panel.entry.js +2 -2
  154. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  155. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  156. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  157. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  158. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  159. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  160. package/dist/esm-es5/calcite.js +1 -1
  161. package/dist/esm-es5/conditionalSlot-0c4ea23a.js +5 -0
  162. package/dist/esm-es5/loader.js +1 -1
  163. package/dist/extras/docs-json.json +21 -1
  164. package/dist/types/components/calcite-action-group/calcite-action-group.d.ts +4 -1
  165. package/dist/types/components/calcite-action-menu/calcite-action-menu.d.ts +2 -1
  166. package/dist/types/components/calcite-action-pad/calcite-action-pad.d.ts +4 -1
  167. package/dist/types/components/calcite-alert/calcite-alert.d.ts +2 -0
  168. package/dist/types/components/calcite-block/calcite-block.d.ts +4 -1
  169. package/dist/types/components/calcite-chip/calcite-chip.d.ts +4 -1
  170. package/dist/types/components/calcite-link/calcite-link.d.ts +5 -0
  171. package/dist/types/components/calcite-list-item/calcite-list-item.d.ts +4 -1
  172. package/dist/types/components/calcite-modal/calcite-modal.d.ts +2 -1
  173. package/dist/types/components/calcite-notice/calcite-notice.d.ts +4 -1
  174. package/dist/types/components/calcite-panel/calcite-panel.d.ts +5 -6
  175. package/dist/types/components/calcite-pick-list-group/calcite-pick-list-group.d.ts +4 -1
  176. package/dist/types/components/calcite-pick-list-item/calcite-pick-list-item.d.ts +4 -1
  177. package/dist/types/components/calcite-shell/calcite-shell.d.ts +4 -1
  178. package/dist/types/components/calcite-shell-center-row/calcite-shell-center-row.d.ts +4 -1
  179. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +3 -1
  180. package/dist/types/components/calcite-tile/calcite-tile.d.ts +4 -1
  181. package/dist/types/components/calcite-tip/calcite-tip.d.ts +4 -1
  182. package/dist/types/components/calcite-tree-item/calcite-tree-item.d.ts +3 -1
  183. package/dist/types/components/calcite-value-list-item/calcite-value-list-item.d.ts +4 -1
  184. package/dist/types/components.d.ts +8 -0
  185. package/hydrate/index.js +241 -60
  186. package/package.json +1 -2
  187. package/readme.md +0 -30
  188. package/dist/calcite/p-0af820bf.entry.js +0 -5
  189. package/dist/calcite/p-0cf878ed.system.entry.js +0 -5
  190. package/dist/calcite/p-1a5dae4a.entry.js +0 -5
  191. package/dist/calcite/p-1d7a9909.system.entry.js +0 -5
  192. package/dist/calcite/p-253efee4.entry.js +0 -5
  193. package/dist/calcite/p-2618de8a.entry.js +0 -5
  194. package/dist/calcite/p-273cd5ab.entry.js +0 -5
  195. package/dist/calcite/p-2a8938c7.system.entry.js +0 -5
  196. package/dist/calcite/p-2c954eaa.system.entry.js +0 -5
  197. package/dist/calcite/p-320ef3e6.system.entry.js +0 -5
  198. package/dist/calcite/p-37bddb73.system.entry.js +0 -5
  199. package/dist/calcite/p-3ab992ff.system.entry.js +0 -5
  200. package/dist/calcite/p-3b73b785.system.entry.js +0 -5
  201. package/dist/calcite/p-4659df78.entry.js +0 -5
  202. package/dist/calcite/p-54e271c9.system.entry.js +0 -5
  203. package/dist/calcite/p-57558d4b.entry.js +0 -5
  204. package/dist/calcite/p-5df1936f.entry.js +0 -5
  205. package/dist/calcite/p-698167ac.entry.js +0 -5
  206. package/dist/calcite/p-7d355abe.system.entry.js +0 -5
  207. package/dist/calcite/p-8d36bc7c.entry.js +0 -5
  208. package/dist/calcite/p-9bfe6679.system.entry.js +0 -5
  209. package/dist/calcite/p-9d81d229.entry.js +0 -5
  210. package/dist/calcite/p-a0043c61.entry.js +0 -5
  211. package/dist/calcite/p-a1f65f6e.entry.js +0 -5
  212. package/dist/calcite/p-a4dec1f6.system.entry.js +0 -5
  213. package/dist/calcite/p-a9c50960.system.entry.js +0 -5
  214. package/dist/calcite/p-aaed1677.entry.js +0 -5
  215. package/dist/calcite/p-ac778725.system.entry.js +0 -5
  216. package/dist/calcite/p-ac8cf248.entry.js +0 -5
  217. package/dist/calcite/p-b4d3f1c1.entry.js +0 -5
  218. package/dist/calcite/p-c0ed9eff.entry.js +0 -5
  219. package/dist/calcite/p-cb9cd28c.system.entry.js +0 -5
  220. package/dist/calcite/p-d578e568.system.entry.js +0 -5
  221. package/dist/calcite/p-e564004a.system.entry.js +0 -5
  222. package/dist/calcite/p-f6559122.entry.js +0 -5
  223. package/dist/calcite/p-f6fc151d.system.entry.js +0 -5
  224. package/dist/calcite/p-f73124d0.entry.js +0 -5
@@ -5,6 +5,7 @@
5
5
  import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
7
  import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
8
9
 
9
10
  const CSS = {
10
11
  heading: "heading",
@@ -26,6 +27,17 @@ let CalcitePickListGroup$1 = class extends HTMLElement {
26
27
  }
27
28
  // --------------------------------------------------------------------------
28
29
  //
30
+ // Lifecycle
31
+ //
32
+ // --------------------------------------------------------------------------
33
+ connectedCallback() {
34
+ connectConditionalSlotComponent(this);
35
+ }
36
+ disconnectedCallback() {
37
+ disconnectConditionalSlotComponent(this);
38
+ }
39
+ // --------------------------------------------------------------------------
40
+ //
29
41
  // Render Methods
30
42
  //
31
43
  // --------------------------------------------------------------------------
@@ -5,6 +5,7 @@
5
5
  import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { I as ICON_TYPES } from './resources3.js';
7
7
  import { b as getSlotted } from './dom.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
8
9
  import { d as defineCustomElement$3 } from './calcite-action2.js';
9
10
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
10
11
  import { d as defineCustomElement$1 } from './calcite-loader2.js';
@@ -125,6 +126,17 @@ let CalcitePickListItem = class extends HTMLElement {
125
126
  }
126
127
  // --------------------------------------------------------------------------
127
128
  //
129
+ // Lifecycle
130
+ //
131
+ // --------------------------------------------------------------------------
132
+ connectedCallback() {
133
+ connectConditionalSlotComponent(this);
134
+ }
135
+ disconnectedCallback() {
136
+ disconnectConditionalSlotComponent(this);
137
+ }
138
+ // --------------------------------------------------------------------------
139
+ //
128
140
  // Public Methods
129
141
  //
130
142
  // --------------------------------------------------------------------------
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
7
8
 
8
9
  const CSS = {
9
10
  actionBarContainer: "action-bar-container",
@@ -40,6 +41,17 @@ let CalciteShellCenterRow$1 = class extends HTMLElement {
40
41
  }
41
42
  // --------------------------------------------------------------------------
42
43
  //
44
+ // Lifecycle
45
+ //
46
+ // --------------------------------------------------------------------------
47
+ connectedCallback() {
48
+ connectConditionalSlotComponent(this);
49
+ }
50
+ disconnectedCallback() {
51
+ disconnectConditionalSlotComponent(this);
52
+ }
53
+ // --------------------------------------------------------------------------
54
+ //
43
55
  // Render Methods
44
56
  //
45
57
  // --------------------------------------------------------------------------
@@ -47,7 +59,7 @@ let CalciteShellCenterRow$1 = class extends HTMLElement {
47
59
  const { el } = this;
48
60
  const contentNode = (h("div", { class: CSS.content }, h("slot", null)));
49
61
  const actionBar = getSlotted(el, SLOTS.actionBar);
50
- const actionBarNode = actionBar ? (h("div", { class: CSS.actionBarContainer }, h("slot", { name: SLOTS.actionBar }))) : null;
62
+ const actionBarNode = actionBar ? (h("div", { class: CSS.actionBarContainer, key: "action-bar" }, h("slot", { name: SLOTS.actionBar }))) : null;
51
63
  const children = [actionBarNode, contentNode];
52
64
  if ((actionBar === null || actionBar === void 0 ? void 0 : actionBar.position) === "end") {
53
65
  children.reverse();
@@ -5,6 +5,7 @@
5
5
  import { HTMLElement, createEvent, h, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir, b as getSlotted } from './dom.js';
7
7
  import { c as clamp } from './math.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
8
9
 
9
10
  const CSS = {
10
11
  container: "container",
@@ -169,7 +170,11 @@ let CalciteShellPanel$1 = class extends HTMLElement {
169
170
  // Lifecycle
170
171
  //
171
172
  //--------------------------------------------------------------------------
173
+ connectedCallback() {
174
+ connectConditionalSlotComponent(this);
175
+ }
172
176
  disconnectedCallback() {
177
+ disconnectConditionalSlotComponent(this);
173
178
  this.disconnectSeparator();
174
179
  }
175
180
  componentDidLoad() {
@@ -183,14 +188,14 @@ let CalciteShellPanel$1 = class extends HTMLElement {
183
188
  renderHeader() {
184
189
  const { el } = this;
185
190
  const hasHeader = getSlotted(el, SLOTS.header);
186
- return hasHeader ? (h("div", { class: CSS.contentHeader }, h("slot", { name: SLOTS.header }))) : null;
191
+ return hasHeader ? (h("div", { class: CSS.contentHeader, key: "header" }, h("slot", { name: SLOTS.header }))) : null;
187
192
  }
188
193
  render() {
189
194
  const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
190
195
  const allowResizing = !detached && resizable;
191
- const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS.contentBody }, h("slot", null))));
192
- const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS.separator, onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
193
- const actionBarNode = h("slot", { name: SLOTS.actionBar });
196
+ const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed, key: "content", ref: this.storeContentEl, style: allowResizing && contentWidth ? { width: `${contentWidth}px` } : null }, this.renderHeader(), h("div", { class: CSS.contentBody }, h("slot", null))));
197
+ const separatorNode = allowResizing ? (h("div", { "aria-label": intlResize, "aria-orientation": "horizontal", "aria-valuemax": contentWidthMax, "aria-valuemin": contentWidthMin, "aria-valuenow": contentWidth !== null && contentWidth !== void 0 ? contentWidth : initialContentWidth, class: CSS.separator, key: "separator", onKeyDown: this.separatorKeyDown, ref: this.connectSeparator, role: "separator", tabIndex: 0, "touch-action": "none" })) : null;
198
+ const actionBarNode = h("slot", { key: "action-bar", name: SLOTS.actionBar });
194
199
  const mainNodes = [actionBarNode, contentNode, separatorNode];
195
200
  if (position === "end") {
196
201
  mainNodes.reverse();
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
7
8
 
8
9
  const CSS = {
9
10
  main: "main",
@@ -39,12 +40,23 @@ let CalciteShell$1 = class extends HTMLElement {
39
40
  }
40
41
  // --------------------------------------------------------------------------
41
42
  //
43
+ // Lifecycle
44
+ //
45
+ // --------------------------------------------------------------------------
46
+ connectedCallback() {
47
+ connectConditionalSlotComponent(this);
48
+ }
49
+ disconnectedCallback() {
50
+ disconnectConditionalSlotComponent(this);
51
+ }
52
+ // --------------------------------------------------------------------------
53
+ //
42
54
  // Render Methods
43
55
  //
44
56
  // --------------------------------------------------------------------------
45
57
  renderHeader() {
46
58
  const hasHeader = !!getSlotted(this.el, SLOTS.header);
47
- return hasHeader ? h("slot", { name: SLOTS.header }) : null;
59
+ return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
48
60
  }
49
61
  renderContent() {
50
62
  const content = !!this.contentBehind
@@ -62,7 +74,7 @@ let CalciteShell$1 = class extends HTMLElement {
62
74
  }
63
75
  renderFooter() {
64
76
  const hasFooter = !!getSlotted(this.el, SLOTS.footer);
65
- return hasFooter ? (h("div", { class: CSS.footer }, h("slot", { name: SLOTS.footer }))) : null;
77
+ return hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("slot", { name: SLOTS.footer }))) : null;
66
78
  }
67
79
  renderMain() {
68
80
  const primaryPanel = getSlotted(this.el, SLOTS.primaryPanel);
@@ -10,7 +10,7 @@ import { c as connectLabel, d as disconnectLabel } from './label.js';
10
10
  import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form.js';
11
11
  import { d as defineCustomElement$2 } from './calcite-graph2.js';
12
12
 
13
- 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}";
13
+ 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}";
14
14
 
15
15
  let CalciteSlider$1 = class extends HTMLElement {
16
16
  constructor() {
@@ -574,7 +574,7 @@ let CalciteSlider$1 = class extends HTMLElement {
574
574
  const hyphenLabel = leftValueLabel;
575
575
  const labelOffset = labelFontSize / 2;
576
576
  if (labelTransformedOverlap > 0) {
577
- hyphenLabel.classList.add("hyphen");
577
+ hyphenLabel.classList.add("hyphen", "hyphen--wrap");
578
578
  if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
579
579
  // Neither handle overlaps the host boundary
580
580
  let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
@@ -620,7 +620,7 @@ let CalciteSlider$1 = class extends HTMLElement {
620
620
  }
621
621
  }
622
622
  else {
623
- hyphenLabel.classList.remove("hyphen");
623
+ hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
624
624
  leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
625
625
  leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
626
626
  rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
7
8
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
8
9
  import { d as defineCustomElement$1 } from './calcite-link2.js';
9
10
 
@@ -42,6 +43,17 @@ let CalciteTile = class extends HTMLElement {
42
43
  }
43
44
  // --------------------------------------------------------------------------
44
45
  //
46
+ // Lifecycle
47
+ //
48
+ // --------------------------------------------------------------------------
49
+ connectedCallback() {
50
+ connectConditionalSlotComponent(this);
51
+ }
52
+ disconnectedCallback() {
53
+ disconnectConditionalSlotComponent(this);
54
+ }
55
+ // --------------------------------------------------------------------------
56
+ //
45
57
  // Render Methods
46
58
  //
47
59
  // --------------------------------------------------------------------------
@@ -6,6 +6,7 @@ import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@sten
6
6
  import { H as HEADING_LEVEL$1 } from './resources4.js';
7
7
  import { b as getSlotted } from './dom.js';
8
8
  import { C as CalciteHeading, c as constrainHeadingLevel } from './CalciteHeading.js';
9
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
9
10
  import { d as defineCustomElement$4 } from './calcite-action2.js';
10
11
  import { d as defineCustomElement$3 } from './calcite-icon2.js';
11
12
  import { d as defineCustomElement$2 } from './calcite-loader2.js';
@@ -67,6 +68,17 @@ let CalciteTip$1 = class extends HTMLElement {
67
68
  }
68
69
  // --------------------------------------------------------------------------
69
70
  //
71
+ // Lifecycle
72
+ //
73
+ // --------------------------------------------------------------------------
74
+ connectedCallback() {
75
+ connectConditionalSlotComponent(this);
76
+ }
77
+ disconnectedCallback() {
78
+ disconnectConditionalSlotComponent(this);
79
+ }
80
+ // --------------------------------------------------------------------------
81
+ //
70
82
  // Render Methods
71
83
  //
72
84
  // --------------------------------------------------------------------------
@@ -85,7 +97,7 @@ let CalciteTip$1 = class extends HTMLElement {
85
97
  }
86
98
  renderImageFrame() {
87
99
  const { el } = this;
88
- return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame }, h("slot", { name: SLOTS.thumbnail }))) : null;
100
+ return getSlotted(el, SLOTS.thumbnail) ? (h("div", { class: CSS.imageFrame, key: "thumbnail" }, h("slot", { name: SLOTS.thumbnail }))) : null;
89
101
  }
90
102
  renderInfoNode() {
91
103
  return (h("div", { class: CSS.info }, h("slot", null)));
@@ -5,6 +5,7 @@
5
5
  import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { T as TreeSelectionMode } from './interfaces2.js';
7
7
  import { b as getSlotted, a as getElementDir, C as CSS_UTILITY, e as filterDirectChildren, n as nodeListToArray } from './dom.js';
8
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
8
9
  import { d as defineCustomElement$3 } from './calcite-checkbox2.js';
9
10
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
10
11
 
@@ -99,6 +100,10 @@ let CalciteTreeItem$1 = class extends HTMLElement {
99
100
  const { expanded } = this.parentTreeItem;
100
101
  this.updateParentIsExpanded(this.parentTreeItem, expanded);
101
102
  }
103
+ connectConditionalSlotComponent(this);
104
+ }
105
+ disconnectedCallback() {
106
+ disconnectConditionalSlotComponent(this);
102
107
  }
103
108
  componentWillRender() {
104
109
  this.hasChildren = !!this.el.querySelector("calcite-tree");
@@ -7,6 +7,7 @@ import { I as ICON_TYPES } from './resources3.js';
7
7
  import { g as guid } from './guid.js';
8
8
  import { S as SLOTS$1, a as CSS, d as defineCustomElement$2 } from './calcite-pick-list-item2.js';
9
9
  import { b as getSlotted } from './dom.js';
10
+ import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './conditionalSlot.js';
10
11
  import { d as defineCustomElement$5 } from './calcite-action2.js';
11
12
  import { d as defineCustomElement$4 } from './calcite-icon2.js';
12
13
  import { d as defineCustomElement$3 } from './calcite-loader2.js';
@@ -78,6 +79,17 @@ let CalciteValueListItem$1 = class extends HTMLElement {
78
79
  }
79
80
  // --------------------------------------------------------------------------
80
81
  //
82
+ // Lifecycle
83
+ //
84
+ // --------------------------------------------------------------------------
85
+ connectedCallback() {
86
+ connectConditionalSlotComponent(this);
87
+ }
88
+ disconnectedCallback() {
89
+ disconnectConditionalSlotComponent(this);
90
+ }
91
+ // --------------------------------------------------------------------------
92
+ //
81
93
  // Public Methods
82
94
  //
83
95
  // --------------------------------------------------------------------------
@@ -0,0 +1,40 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
4
+ */
5
+ import { forceUpdate } from '@stencil/core/internal/client';
6
+ import { c as createObserver } from './observers.js';
7
+
8
+ const observed = new Set();
9
+ let mutationObserver;
10
+ const observerOptions = { childList: true };
11
+ /**
12
+ * Helper to set up a conditional slot component on connectedCallback.
13
+ */
14
+ function connectConditionalSlotComponent(component) {
15
+ if (!mutationObserver) {
16
+ mutationObserver = createObserver("mutation", processMutations);
17
+ }
18
+ mutationObserver.observe(component.el, observerOptions);
19
+ }
20
+ /**
21
+ * Helper to tear down a conditional slot component on disconnectedCallback.
22
+ */
23
+ function disconnectConditionalSlotComponent(component) {
24
+ observed.delete(component.el);
25
+ // we explicitly process queued mutations and disconnect and reconnect
26
+ // the observer until MutationObserver gets an `unobserve` method
27
+ // see https://github.com/whatwg/dom/issues/126
28
+ processMutations(mutationObserver.takeRecords());
29
+ mutationObserver.disconnect();
30
+ for (const [element] of observed.entries()) {
31
+ mutationObserver.observe(element, observerOptions);
32
+ }
33
+ }
34
+ function processMutations(mutations) {
35
+ mutations.forEach(({ target }) => {
36
+ forceUpdate(target);
37
+ });
38
+ }
39
+
40
+ export { connectConditionalSlotComponent as c, disconnectConditionalSlotComponent as d };