@esri/calcite-components 1.0.0-next.305 → 1.0.0-next.309

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 (161) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/calcite.js +1 -1
  3. package/dist/calcite/p-2a714a22.entry.js +5 -0
  4. package/dist/calcite/p-362cb320.entry.js +5 -0
  5. package/dist/calcite/{p-e62a9b1d.system.entry.js → p-4778c5cf.system.entry.js} +1 -1
  6. package/dist/calcite/{p-9f240615.system.entry.js → p-59a285d8.system.entry.js} +1 -1
  7. package/dist/calcite/p-688f06b9.entry.js +5 -0
  8. package/dist/calcite/p-8c02f97a.entry.js +5 -0
  9. package/dist/calcite/p-8e252799.system.js +5 -0
  10. package/dist/calcite/{p-243d95ab.system.entry.js → p-a5e8f022.system.entry.js} +2 -2
  11. package/dist/calcite/{p-88b875d3.system.entry.js → p-b0e21c19.system.entry.js} +1 -1
  12. package/dist/calcite/p-c61ebee9.entry.js +5 -0
  13. package/dist/calcite/p-ca6025ab.system.entry.js +5 -0
  14. package/dist/calcite/p-dbe899c6.system.entry.js +5 -0
  15. package/dist/calcite/p-e616f9b5.entry.js +5 -0
  16. package/dist/cjs/calcite-alert.cjs.entry.js +22 -5
  17. package/dist/cjs/calcite-graph_2.cjs.entry.js +18 -10
  18. package/dist/cjs/calcite-input.cjs.entry.js +16 -14
  19. package/dist/cjs/calcite-radio_2.cjs.entry.js +3 -7
  20. package/dist/cjs/calcite-shell_3.cjs.entry.js +156 -5
  21. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +2 -2
  22. package/dist/cjs/calcite.cjs.js +2 -2
  23. package/dist/cjs/loader.cjs.js +2 -2
  24. package/dist/collection/collection-manifest.json +1 -1
  25. package/dist/collection/components/calcite-alert/calcite-alert.js +23 -4
  26. package/dist/collection/components/calcite-input/calcite-input.js +16 -14
  27. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +3 -7
  28. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.css +43 -0
  29. package/dist/collection/components/calcite-shell-panel/calcite-shell-panel.js +194 -5
  30. package/dist/collection/components/calcite-shell-panel/resources.js +5 -1
  31. package/dist/collection/components/calcite-slider/calcite-slider.css +1 -0
  32. package/dist/collection/components/calcite-slider/calcite-slider.js +19 -9
  33. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +16 -4
  34. package/dist/components/calcite-accordion-item.js +4 -1
  35. package/dist/components/calcite-accordion.js +4 -1
  36. package/dist/components/calcite-action-bar.js +4 -1
  37. package/dist/components/calcite-action-group2.js +4 -1
  38. package/dist/components/calcite-action-menu2.js +4 -1
  39. package/dist/components/calcite-action-pad.js +4 -1
  40. package/dist/components/calcite-action2.js +4 -1
  41. package/dist/components/calcite-alert.js +26 -6
  42. package/dist/components/calcite-avatar.js +4 -1
  43. package/dist/components/calcite-block-section.js +4 -1
  44. package/dist/components/calcite-block.js +4 -1
  45. package/dist/components/calcite-button2.js +5 -2
  46. package/dist/components/calcite-card.js +4 -1
  47. package/dist/components/calcite-checkbox2.js +4 -1
  48. package/dist/components/calcite-chip2.js +4 -1
  49. package/dist/components/calcite-color-picker-hex-input2.js +4 -1
  50. package/dist/components/calcite-color-picker-swatch2.js +4 -1
  51. package/dist/components/calcite-color-picker.js +4 -1
  52. package/dist/components/calcite-combobox-item-group.js +4 -1
  53. package/dist/components/calcite-combobox-item.js +4 -1
  54. package/dist/components/calcite-combobox.js +4 -1
  55. package/dist/components/calcite-date-picker-day2.js +4 -1
  56. package/dist/components/calcite-date-picker-month-header2.js +4 -1
  57. package/dist/components/calcite-date-picker-month2.js +4 -1
  58. package/dist/components/calcite-date-picker2.js +4 -1
  59. package/dist/components/calcite-dropdown-group.js +4 -1
  60. package/dist/components/calcite-dropdown-item.js +4 -1
  61. package/dist/components/calcite-dropdown2.js +4 -1
  62. package/dist/components/calcite-fab.js +4 -1
  63. package/dist/components/calcite-filter2.js +4 -1
  64. package/dist/components/calcite-flow.js +4 -1
  65. package/dist/components/calcite-graph2.js +4 -1
  66. package/dist/components/calcite-handle2.js +4 -1
  67. package/dist/components/calcite-icon2.js +4 -1
  68. package/dist/components/calcite-inline-editable.js +4 -1
  69. package/dist/components/calcite-input-date-picker.js +4 -1
  70. package/dist/components/calcite-input-message.js +4 -1
  71. package/dist/components/calcite-input-time-picker.js +4 -1
  72. package/dist/components/calcite-input2.js +20 -15
  73. package/dist/components/calcite-label2.js +4 -1
  74. package/dist/components/calcite-link2.js +4 -1
  75. package/dist/components/calcite-list-item-group.js +4 -1
  76. package/dist/components/calcite-list-item.js +4 -1
  77. package/dist/components/calcite-list.js +4 -1
  78. package/dist/components/calcite-loader2.js +4 -1
  79. package/dist/components/calcite-modal.js +4 -1
  80. package/dist/components/calcite-notice.js +4 -1
  81. package/dist/components/calcite-option-group.js +4 -1
  82. package/dist/components/calcite-option.js +4 -1
  83. package/dist/components/calcite-pagination.js +4 -1
  84. package/dist/components/calcite-panel.js +4 -1
  85. package/dist/components/calcite-pick-list-group.js +4 -1
  86. package/dist/components/calcite-pick-list-item2.js +4 -1
  87. package/dist/components/calcite-pick-list.js +4 -1
  88. package/dist/components/calcite-popover-manager.js +4 -1
  89. package/dist/components/calcite-popover2.js +4 -1
  90. package/dist/components/calcite-progress2.js +4 -1
  91. package/dist/components/calcite-radio-button-group.js +4 -1
  92. package/dist/components/calcite-radio-button.js +7 -8
  93. package/dist/components/calcite-radio-group-item.js +4 -1
  94. package/dist/components/calcite-radio-group.js +4 -1
  95. package/dist/components/calcite-radio2.js +4 -1
  96. package/dist/components/calcite-rating.js +4 -1
  97. package/dist/components/calcite-scrim2.js +4 -1
  98. package/dist/components/calcite-select.js +4 -1
  99. package/dist/components/calcite-shell-center-row.js +4 -1
  100. package/dist/components/calcite-shell-panel.js +164 -7
  101. package/dist/components/calcite-shell.js +4 -1
  102. package/dist/components/calcite-slider.js +22 -11
  103. package/dist/components/calcite-sortable-list.js +4 -1
  104. package/dist/components/calcite-split-button.js +4 -1
  105. package/dist/components/calcite-stepper-item.js +4 -1
  106. package/dist/components/calcite-stepper.js +4 -1
  107. package/dist/components/calcite-switch2.js +4 -1
  108. package/dist/components/calcite-tab-nav2.js +4 -1
  109. package/dist/components/calcite-tab-title2.js +4 -1
  110. package/dist/components/calcite-tab2.js +4 -1
  111. package/dist/components/calcite-tabs2.js +4 -1
  112. package/dist/components/calcite-tile-select-group.js +4 -1
  113. package/dist/components/calcite-tile-select.js +7 -4
  114. package/dist/components/calcite-tile2.js +4 -1
  115. package/dist/components/calcite-time-picker2.js +4 -1
  116. package/dist/components/calcite-tip-group.js +4 -1
  117. package/dist/components/calcite-tip-manager.js +4 -1
  118. package/dist/components/calcite-tip.js +4 -1
  119. package/dist/components/calcite-tooltip-manager2.js +4 -1
  120. package/dist/components/calcite-tooltip.js +4 -1
  121. package/dist/components/calcite-tree-item.js +4 -1
  122. package/dist/components/calcite-tree.js +4 -1
  123. package/dist/components/calcite-value-list-item.js +4 -1
  124. package/dist/components/calcite-value-list.js +4 -1
  125. package/dist/custom-elements/index.js +403 -230
  126. package/dist/esm/calcite-alert.entry.js +22 -5
  127. package/dist/esm/calcite-graph_2.entry.js +18 -10
  128. package/dist/esm/calcite-input.entry.js +16 -14
  129. package/dist/esm/calcite-radio_2.entry.js +3 -7
  130. package/dist/esm/calcite-shell_3.entry.js +157 -6
  131. package/dist/esm/calcite-tile-select_2.entry.js +2 -2
  132. package/dist/esm/calcite.js +2 -2
  133. package/dist/esm/loader.js +2 -2
  134. package/dist/esm-es5/calcite-alert.entry.js +2 -2
  135. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  136. package/dist/esm-es5/calcite-input.entry.js +1 -1
  137. package/dist/esm-es5/calcite-radio_2.entry.js +1 -1
  138. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  139. package/dist/esm-es5/calcite-tile-select_2.entry.js +1 -1
  140. package/dist/esm-es5/calcite.js +1 -1
  141. package/dist/esm-es5/loader.js +1 -1
  142. package/dist/extras/docs-json.json +51 -2
  143. package/dist/types/components/calcite-alert/calcite-alert.d.ts +3 -0
  144. package/dist/types/components/calcite-input/calcite-input.d.ts +1 -1
  145. package/dist/types/components/calcite-shell-panel/calcite-shell-panel.d.ts +31 -0
  146. package/dist/types/components/calcite-shell-panel/resources.d.ts +4 -0
  147. package/dist/types/components/calcite-slider/calcite-slider.d.ts +3 -1
  148. package/dist/types/components/calcite-tile-select/calcite-tile-select.d.ts +2 -2
  149. package/dist/types/components.d.ts +18 -0
  150. package/hydrate/index.js +316 -140
  151. package/package.json +10 -10
  152. package/readme.md +2 -2
  153. package/dist/calcite/p-3eb1dc0f.entry.js +0 -5
  154. package/dist/calcite/p-42696c81.system.entry.js +0 -5
  155. package/dist/calcite/p-56e28cef.entry.js +0 -5
  156. package/dist/calcite/p-5c0c29bc.entry.js +0 -5
  157. package/dist/calcite/p-5f817b79.entry.js +0 -5
  158. package/dist/calcite/p-6f1cca21.system.js +0 -5
  159. package/dist/calcite/p-737fb960.entry.js +0 -5
  160. package/dist/calcite/p-82139130.entry.js +0 -5
  161. package/dist/calcite/p-b1a96c72.system.entry.js +0 -5
@@ -2,7 +2,7 @@
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 { createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
7
  import { g as guid } from './guid.js';
8
8
  import { c as connectLabel, d as disconnectLabel } from './label.js';
@@ -144,6 +144,9 @@ CalciteRating$1 = /*@__PURE__*/ proxyCustomElement(CalciteRating$1, [1, "calcite
144
144
  "setFocus": [64]
145
145
  }, [[0, "blur", "blurHandler"]]]);
146
146
  function defineCustomElement$1() {
147
+ if (typeof customElements === "undefined") {
148
+ return;
149
+ }
147
150
  const components = ["calcite-rating", "calcite-chip", "calcite-icon"];
148
151
  components.forEach(tagName => { switch (tagName) {
149
152
  case "calcite-rating":
@@ -2,7 +2,7 @@
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 { h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { d as defineCustomElement$1 } from './calcite-loader2.js';
7
7
 
8
8
  const CSS = {
@@ -55,6 +55,9 @@ CalciteScrim = /*@__PURE__*/ proxyCustomElement(CalciteScrim, [1, "calcite-scrim
55
55
  "loading": [516]
56
56
  }]);
57
57
  function defineCustomElement() {
58
+ if (typeof customElements === "undefined") {
59
+ return;
60
+ }
58
61
  const components = ["calcite-scrim", "calcite-loader"];
59
62
  components.forEach(tagName => { switch (tagName) {
60
63
  case "calcite-scrim":
@@ -2,7 +2,7 @@
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 { createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { f as focusElement, C as CSS_UTILITY, a as getElementDir } from './dom.js';
7
7
  import { c as connectLabel, d as disconnectLabel } from './label.js';
8
8
  import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form.js';
@@ -228,6 +228,9 @@ CalciteSelect$1 = /*@__PURE__*/ proxyCustomElement(CalciteSelect$1, [1, "calcite
228
228
  "setFocus": [64]
229
229
  }, [[0, "calciteOptionChange", "handleOptionOrGroupChange"], [0, "calciteOptionGroupChange", "handleOptionOrGroupChange"]]]);
230
230
  function defineCustomElement$1() {
231
+ if (typeof customElements === "undefined") {
232
+ return;
233
+ }
231
234
  const components = ["calcite-select", "calcite-icon"];
232
235
  components.forEach(tagName => { switch (tagName) {
233
236
  case "calcite-select":
@@ -2,7 +2,7 @@
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 { h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir, C as CSS_UTILITY, b as getSlotted } from './dom.js';
7
7
 
8
8
  const CSS = {
@@ -64,6 +64,9 @@ CalciteShellCenterRow$1 = /*@__PURE__*/ proxyCustomElement(CalciteShellCenterRow
64
64
  "position": [513]
65
65
  }]);
66
66
  function defineCustomElement$1() {
67
+ if (typeof customElements === "undefined") {
68
+ return;
69
+ }
67
70
  const components = ["calcite-shell-center-row"];
68
71
  components.forEach(tagName => { switch (tagName) {
69
72
  case "calcite-shell-center-row":
@@ -2,22 +2,27 @@
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 { createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
+ import { c as clamp } from './math.js';
7
8
 
8
9
  const CSS = {
9
10
  container: "container",
10
11
  content: "content",
11
12
  contentHeader: "content__header",
12
13
  contentBody: "content__body",
13
- contentDetached: "content--detached"
14
+ contentDetached: "content--detached",
15
+ separator: "separator"
14
16
  };
15
17
  const SLOTS = {
16
18
  actionBar: "action-bar",
17
19
  header: "header"
18
20
  };
21
+ const TEXT = {
22
+ resize: "Resize"
23
+ };
19
24
 
20
- const calciteShellPanelCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
25
+ const calciteShellPanelCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;-ms-flex:0 1 auto;flex:0 1 auto;--calcite-shell-panel-detached-max-height:unset}.container{-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;-ms-flex:1 1 auto;flex:1 1 auto;pointer-events:none;color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}.container *{-webkit-box-sizing:border-box;box-sizing:border-box}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-ui-border-3)}.separator{position:absolute;background-color:transparent;bottom:0;display:-ms-flexbox;display:flex;height:100%;opacity:0;pointer-events:auto;top:0;-webkit-transition-property:all;transition-property:all;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;-webkit-transition-delay:0s;transition-delay:0s;width:0.125rem;z-index:10;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-ui-border-2)}.separator:focus{background-color:var(--calcite-ui-brand);opacity:1}:host([position=start]) .separator{inset-inline-end:-2px}:host([position=end]) .separator{inset-inline-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){-ms-flex:1 1 auto;flex:1 1 auto;height:100%;width:100%;max-height:unset;max-width:unset}::slotted(.calcite-match-height){display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;overflow:hidden}.content{-ms-flex-align:stretch;align-items:stretch;-ms-flex-item-align:stretch;align-self:stretch;background-color:var(--calcite-ui-background);display:-ms-flexbox;display:flex;padding:0;pointer-events:auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:var(--calcite-shell-panel-width);max-width:var(--calcite-shell-panel-max-width);min-width:var(--calcite-shell-panel-min-width);-webkit-transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out;transition:max-height 150ms ease-in-out, max-width 150ms ease-in-out}.content__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 1 auto;flex:0 1 auto;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:stretch;align-items:stretch}.content__body{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host([width-scale=s]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]) .content{--calcite-shell-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-shell-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-shell-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}:host([detached-height-scale=s]) .content--detached{--calcite-shell-panel-detached-max-height:40vh}:host([detached-height-scale=m]) .content--detached{--calcite-shell-panel-detached-max-height:60vh}:host([detached-height-scale=l]) .content--detached{--calcite-shell-panel-detached-max-height:80vh}.content--detached{border-radius:0.25rem;-webkit-box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);box-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);height:auto;overflow:hidden;margin-top:0.5rem;margin-bottom:auto;margin-left:0.5rem;margin-right:0.5rem;max-height:var(--calcite-shell-panel-detached-max-height)}.content--detached ::slotted(calcite-panel),.content--detached ::slotted(calcite-flow){max-height:unset}:host([position=start]) .content--detached ::slotted(calcite-panel),:host([position=start]) .content--detached ::slotted(calcite-flow),:host([position=end]) .content--detached ::slotted(calcite-panel),:host([position=end]) .content--detached ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel){border-width:1px;border-color:var(--calcite-ui-border-3);border-style:solid}:host([position=start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]) .content ::slotted(calcite-flow),:host([position=start]) .content ::slotted(calcite-panel){-webkit-border-start:none;border-inline-start:none}:host([position=end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]) .content ::slotted(calcite-flow),:host([position=end]) .content ::slotted(calcite-panel){-webkit-border-end:none;border-inline-end:none}";
21
26
 
22
27
  let CalciteShellPanel$1 = class extends HTMLElement {
23
28
  constructor() {
@@ -46,10 +51,121 @@ let CalciteShellPanel$1 = class extends HTMLElement {
46
51
  * This sets width of the content area.
47
52
  */
48
53
  this.widthScale = "m";
54
+ /**
55
+ * Accessible label for resize separator.
56
+ * @default "Resize"
57
+ */
58
+ this.intlResize = TEXT.resize;
59
+ /**
60
+ * This property makes the content area resizable if the calcite-shell-panel is not 'detached'.
61
+ */
62
+ this.resizable = false;
63
+ this.contentWidth = null;
64
+ this.initialContentWidth = null;
65
+ this.initialClientX = null;
66
+ this.contentWidthMax = null;
67
+ this.contentWidthMin = null;
68
+ this.step = 1;
69
+ this.stepMultiplier = 10;
70
+ this.storeContentEl = (contentEl) => {
71
+ this.contentEl = contentEl;
72
+ };
73
+ this.getKeyAdjustedWidth = (event) => {
74
+ const { key } = event;
75
+ const { step, stepMultiplier, contentWidthMin, contentWidthMax, initialContentWidth, position } = this;
76
+ const multipliedStep = step * stepMultiplier;
77
+ const MOVEMENT_KEYS = [
78
+ "ArrowUp",
79
+ "ArrowDown",
80
+ "ArrowLeft",
81
+ "ArrowRight",
82
+ "Home",
83
+ "End",
84
+ "PageUp",
85
+ "PageDown"
86
+ ];
87
+ if (MOVEMENT_KEYS.indexOf(key) > -1) {
88
+ event.preventDefault();
89
+ }
90
+ const increaseKeys = key === "ArrowUp" || (position === "end" ? key === "ArrowLeft" : key === "ArrowRight");
91
+ if (increaseKeys) {
92
+ const stepValue = event.shiftKey ? multipliedStep : step;
93
+ return initialContentWidth + stepValue;
94
+ }
95
+ const decreaseKeys = key === "ArrowDown" || (position === "end" ? key === "ArrowRight" : key === "ArrowLeft");
96
+ if (decreaseKeys) {
97
+ const stepValue = event.shiftKey ? multipliedStep : step;
98
+ return initialContentWidth - stepValue;
99
+ }
100
+ if (typeof contentWidthMin === "number" && key === "Home") {
101
+ return contentWidthMin;
102
+ }
103
+ if (typeof contentWidthMax === "number" && key === "End") {
104
+ return contentWidthMax;
105
+ }
106
+ if (key === "PageDown") {
107
+ return initialContentWidth - multipliedStep;
108
+ }
109
+ if (key === "PageUp") {
110
+ return initialContentWidth + multipliedStep;
111
+ }
112
+ return null;
113
+ };
114
+ this.separatorKeyDown = (event) => {
115
+ this.setInitialContentWidth();
116
+ const width = this.getKeyAdjustedWidth(event);
117
+ if (typeof width === "number") {
118
+ this.setContentWidth(width);
119
+ }
120
+ };
121
+ this.separatorPointerMove = (event) => {
122
+ event.preventDefault();
123
+ const { initialContentWidth, position, initialClientX } = this;
124
+ const offset = event.clientX - initialClientX;
125
+ this.setContentWidth(position === "end" ? initialContentWidth - offset : initialContentWidth + offset);
126
+ };
127
+ this.separatorPointerUp = (event) => {
128
+ event.preventDefault();
129
+ document.removeEventListener("pointerup", this.separatorPointerUp);
130
+ document.removeEventListener("pointermove", this.separatorPointerMove);
131
+ };
132
+ this.setInitialContentWidth = () => {
133
+ var _a;
134
+ this.initialContentWidth = (_a = this.contentEl) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width;
135
+ };
136
+ this.separatorPointerDown = (event) => {
137
+ event.preventDefault();
138
+ const { separatorEl } = this;
139
+ separatorEl && document.activeElement !== separatorEl && separatorEl.focus();
140
+ this.setInitialContentWidth();
141
+ this.initialClientX = event.clientX;
142
+ document.addEventListener("pointerup", this.separatorPointerUp);
143
+ document.addEventListener("pointermove", this.separatorPointerMove);
144
+ };
145
+ this.connectSeparator = (separatorEl) => {
146
+ this.disconnectSeparator();
147
+ this.separatorEl = separatorEl;
148
+ separatorEl.addEventListener("pointerdown", this.separatorPointerDown);
149
+ };
150
+ this.disconnectSeparator = () => {
151
+ var _a;
152
+ (_a = this.separatorEl) === null || _a === void 0 ? void 0 : _a.removeEventListener("pointerdown", this.separatorPointerDown);
153
+ };
49
154
  }
50
155
  watchHandler() {
51
156
  this.calciteShellPanelToggle.emit();
52
157
  }
158
+ //--------------------------------------------------------------------------
159
+ //
160
+ // Lifecycle
161
+ //
162
+ //--------------------------------------------------------------------------
163
+ disconnectedCallback() {
164
+ this.disconnectSeparator();
165
+ }
166
+ componentDidLoad() {
167
+ this.updateAriaValues();
168
+ }
53
169
  // --------------------------------------------------------------------------
54
170
  //
55
171
  // Render Methods
@@ -61,15 +177,50 @@ let CalciteShellPanel$1 = class extends HTMLElement {
61
177
  return hasHeader ? (h("div", { class: CSS.contentHeader }, h("slot", { name: SLOTS.header }))) : null;
62
178
  }
63
179
  render() {
64
- const { collapsed, detached, position } = this;
65
- const contentNode = (h("div", { class: { [CSS.content]: true, [CSS.contentDetached]: detached }, hidden: collapsed }, this.renderHeader(), h("div", { class: CSS.contentBody }, h("slot", null))));
180
+ const { collapsed, detached, position, initialContentWidth, contentWidth, contentWidthMax, contentWidthMin, intlResize, resizable } = this;
181
+ const allowResizing = !detached && resizable;
182
+ 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))));
183
+ 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;
66
184
  const actionBarNode = h("slot", { name: SLOTS.actionBar });
67
- const mainNodes = [actionBarNode, contentNode];
185
+ const mainNodes = [actionBarNode, contentNode, separatorNode];
68
186
  if (position === "end") {
69
187
  mainNodes.reverse();
70
188
  }
71
189
  return h("div", { class: { [CSS.container]: true } }, mainNodes);
72
190
  }
191
+ // --------------------------------------------------------------------------
192
+ //
193
+ // private Methods
194
+ //
195
+ // --------------------------------------------------------------------------
196
+ setContentWidth(width) {
197
+ const { contentWidthMax, contentWidthMin } = this;
198
+ const roundedWidth = Math.round(width);
199
+ this.contentWidth =
200
+ typeof contentWidthMax === "number" && typeof contentWidthMin === "number"
201
+ ? clamp(roundedWidth, contentWidthMin, contentWidthMax)
202
+ : roundedWidth;
203
+ }
204
+ updateAriaValues() {
205
+ const { contentEl } = this;
206
+ const computedStyle = contentEl && getComputedStyle(contentEl);
207
+ if (!computedStyle) {
208
+ return;
209
+ }
210
+ const max = parseInt(computedStyle.getPropertyValue("max-width"), 10);
211
+ const min = parseInt(computedStyle.getPropertyValue("min-width"), 10);
212
+ const valueNow = parseInt(computedStyle.getPropertyValue("width"), 10);
213
+ if (typeof valueNow === "number" && !isNaN(valueNow)) {
214
+ this.initialContentWidth = valueNow;
215
+ }
216
+ if (typeof max === "number" && !isNaN(max)) {
217
+ this.contentWidthMax = max;
218
+ }
219
+ if (typeof min === "number" && !isNaN(min)) {
220
+ this.contentWidthMin = min;
221
+ }
222
+ forceUpdate(this);
223
+ }
73
224
  get el() { return this; }
74
225
  static get watchers() { return {
75
226
  "collapsed": ["watchHandler"]
@@ -81,9 +232,15 @@ CalciteShellPanel$1 = /*@__PURE__*/ proxyCustomElement(CalciteShellPanel$1, [1,
81
232
  "detached": [516],
82
233
  "detachedHeightScale": [513, "detached-height-scale"],
83
234
  "widthScale": [513, "width-scale"],
84
- "position": [513]
235
+ "position": [513],
236
+ "intlResize": [1, "intl-resize"],
237
+ "resizable": [516],
238
+ "contentWidth": [32]
85
239
  }]);
86
240
  function defineCustomElement$1() {
241
+ if (typeof customElements === "undefined") {
242
+ return;
243
+ }
87
244
  const components = ["calcite-shell-panel"];
88
245
  components.forEach(tagName => { switch (tagName) {
89
246
  case "calcite-shell-panel":
@@ -2,7 +2,7 @@
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 { h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, h, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { b as getSlotted } from './dom.js';
7
7
 
8
8
  const CSS = {
@@ -82,6 +82,9 @@ CalciteShell$1 = /*@__PURE__*/ proxyCustomElement(CalciteShell$1, [1, "calcite-s
82
82
  "contentBehind": [516, "content-behind"]
83
83
  }]);
84
84
  function defineCustomElement$1() {
85
+ if (typeof customElements === "undefined") {
86
+ return;
87
+ }
85
88
  const components = ["calcite-shell"];
86
89
  components.forEach(tagName => { switch (tagName) {
87
90
  case "calcite-shell":
@@ -2,7 +2,7 @@
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 { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as guid } from './guid.js';
7
7
  import { g as getKey } from './key.js';
8
8
  import { k as intersects } from './dom.js';
@@ -11,7 +11,7 @@ import { c as connectLabel, d as disconnectLabel } from './label.js';
11
11
  import { c as connectForm, d as disconnectForm, a as afterConnectDefaultValueSet, H as HiddenFormInputSlot } from './form.js';
12
12
  import { d as defineCustomElement$2 } from './calcite-graph2.js';
13
13
 
14
- 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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) .graph .graph-path--highlight{fill:var(--calcite-ui-text-3)}:host([label-handles]) .container,:host([precise]:not([precise=false])) .container{margin-top:21px}:host([label-ticks]),:host([precise]:not([precise=false])) .container--range{margin-bottom:21px}:host([precise]:not([precise=false])[label-handles]) .container{margin-top:35px}:host([precise]:not([precise=false])[label-handles]) .container--range{margin-bottom:35px}.thumb{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}.thumb .handle__label{font-size:var(--calcite-font-size--2);font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-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 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}.thumb .handle-extension{width:2px;height:7px;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;outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb--minValue{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}:host([label-handles]) .thumb{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}:host([label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}:host([has-histogram][label-handles]) .thumb{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}:host([has-histogram][label-handles]) .thumb .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}:host([precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}:host([precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}:host([precise]:not([precise=false])) .thumb--minValue .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}:host([has-histogram][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}:host([ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}:host([label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}.thumb:focus,.thumb--active{z-index:3}.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{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}.track__range{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}.tick{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{position:absolute;font-size:var(--calcite-font-size--2);font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}.tick__label--min{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}.tick__label--max{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}:host([has-histogram][precise]:not([precise=false])) .tick__label--min,:host([has-histogram][precise]:not([precise=false])) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([mirrored]:not([has-histogram])) .tick__label--min{right:0;left:unset;text-align:right}:host([mirrored]:not([has-histogram])) .tick__label--max{right:unset;left:0;text-align:left}::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
+ 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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}.container{display:block;position:relative;padding:7px 0;margin:7px 0.5rem}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) .graph .graph-path--highlight{fill:var(--calcite-ui-text-3)}:host([label-handles]) .container,:host([precise]:not([precise=false])) .container{margin-top:21px}:host([label-ticks]),:host([precise]:not([precise=false])) .container--range{margin-bottom:21px}:host([precise]:not([precise=false])[label-handles]) .container{margin-top:35px}:host([precise]:not([precise=false])[label-handles]) .container--range{margin-bottom:35px}.thumb{position:absolute;border-style:none;background-color:transparent;cursor:pointer;outline:2px solid transparent;outline-offset:2px;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;font-family:inherit;z-index:2;-webkit-transform:translate(7px, -8px);transform:translate(7px, -8px)}.thumb .handle__label{font-size:var(--calcite-font-size--2);font-weight:500;line-height:1;color:var(--calcite-ui-text-2);margin-bottom:5px}.thumb .handle__label.static,.thumb .handle__label.transformed{opacity:0;position:absolute;top:0;bottom:0}.thumb .handle__label.hyphen::after{content:\"—\";display:inline-block;width:1em}.thumb .handle{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;height:14px;width:14px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:100%;background-color:var(--calcite-ui-foreground-1);-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 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, -webkit-box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;transition:border 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease}.thumb .handle-extension{width:2px;height:7px;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;outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb--minValue{-webkit-transform:translate(-7px, -8px);transform:translate(-7px, -8px)}:host([label-handles]) .thumb{-webkit-transform:translate(50%, -25px);transform:translate(50%, -25px)}:host([label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -25px);transform:translate(-50%, -25px)}:host([has-histogram][label-handles]) .thumb{-webkit-transform:translate(50%, -8px);transform:translate(50%, -8px)}:host([has-histogram][label-handles]) .thumb .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][label-handles]) .thumb--minValue{-webkit-transform:translate(-50%, -8px);transform:translate(-50%, -8px)}:host([precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -21px);transform:translate(7px, -21px)}:host([precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -2px);transform:translate(-7px, -2px)}:host([precise]:not([precise=false])) .thumb--minValue .handle__label{margin-bottom:unset;margin-top:5px}:host([has-histogram][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -2px);transform:translate(7px, -2px)}:host([has-histogram][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -20px);transform:translate(7px, -20px)}:host([ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-7px, -3px);transform:translate(-7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb{-webkit-transform:translate(7px, -3px);transform:translate(7px, -3px)}:host([has-histogram][ticks][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -38px);transform:translate(50%, -38px)}:host([label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -2px);transform:translate(50%, -2px)}:host([has-histogram][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -2px);transform:translate(-50%, -2px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -37px);transform:translate(50%, -37px)}:host([ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb{-webkit-transform:translate(50%, -3px);transform:translate(50%, -3px)}:host([has-histogram][ticks][label-handles][precise]:not([precise=false])) .thumb--minValue{-webkit-transform:translate(-50%, -3px);transform:translate(-50%, -3px)}.thumb:focus,.thumb--active{z-index:3}.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{height:2px;border-radius:0;z-index:1;background-color:var(--calcite-ui-border-2);-webkit-transition:all 250ms ease-in;transition:all 250ms ease-in;position:relative}.track__range{position:absolute;top:0;height:2px;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{content:\"\";position:absolute;top:-5px;width:100%;height:14px}.tick{position:absolute;top:-2px;width:2px;height:4px;left:var(--calcite-ui-border-1-offset);margin-left:-2px;border:1px solid var(--calcite-ui-foreground-1);background-color:var(--calcite-ui-border-1);pointer-events:none}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{position:absolute;font-size:var(--calcite-font-size--2);font-weight:500;color:var(--calcite-ui-text-2);width:4em;margin:14px -2em;text-align:center;display:block;pointer-events:none}.tick__label--min{left:0;margin:14px -3px;text-align:left;-webkit-transition:opacity 150ms;transition:opacity 150ms}.tick__label--max{left:unset;right:0;margin:14px -3px;text-align:right;-webkit-transition:opacity 50ms;transition:opacity 50ms}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}:host([has-histogram][precise]:not([precise=false])) .tick__label--min,:host([has-histogram][precise]:not([precise=false])) .tick__label--max{margin:6px -3px;font-weight:300;color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3)}:host([mirrored]:not([has-histogram])) .tick__label--min{right:0;left:unset;text-align:right}:host([mirrored]:not([has-histogram])) .tick__label--max{right:unset;left:0;text-align:left}::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}";
15
15
 
16
16
  let CalciteSlider$1 = class extends HTMLElement {
17
17
  constructor() {
@@ -89,11 +89,11 @@ let CalciteSlider$1 = class extends HTMLElement {
89
89
  }
90
90
  }
91
91
  };
92
- this.dragEnd = () => {
92
+ this.dragEnd = (event) => {
93
93
  document.removeEventListener("pointermove", this.dragUpdate);
94
94
  document.removeEventListener("pointerup", this.dragEnd);
95
95
  document.removeEventListener("pointercancel", this.dragEnd);
96
- this.focusActiveHandle();
96
+ this.focusActiveHandle(event.clientX);
97
97
  if (this.lastDragPropValue != this[this.dragProp]) {
98
98
  this.emitChange();
99
99
  }
@@ -362,8 +362,8 @@ let CalciteSlider$1 = class extends HTMLElement {
362
362
  event.preventDefault();
363
363
  this.setValue(activeProp, this.clamp(adjustment, activeProp));
364
364
  }
365
- clickHandler() {
366
- this.focusActiveHandle();
365
+ clickHandler(event) {
366
+ this.focusActiveHandle(event.clientX);
367
367
  }
368
368
  pointerDownHandler(event) {
369
369
  const x = event.clientX || event.pageX;
@@ -434,16 +434,16 @@ let CalciteSlider$1 = class extends HTMLElement {
434
434
  document.addEventListener("pointerup", this.dragEnd);
435
435
  document.addEventListener("pointercancel", this.dragEnd);
436
436
  }
437
- focusActiveHandle() {
437
+ focusActiveHandle(valueX) {
438
438
  switch (this.dragProp) {
439
- default:
440
- case "maxValue":
441
- this.maxHandle.focus();
442
- break;
443
439
  case "minValue":
444
440
  this.minHandle.focus();
445
441
  break;
442
+ case "maxValue":
443
+ this.maxHandle.focus();
444
+ break;
446
445
  case "minMaxValue":
446
+ this.getClosestHandle(valueX).focus();
447
447
  break;
448
448
  }
449
449
  }
@@ -514,6 +514,14 @@ let CalciteSlider$1 = class extends HTMLElement {
514
514
  }
515
515
  return num;
516
516
  }
517
+ getClosestHandle(valueX) {
518
+ return this.getDistanceX(this.maxHandle, valueX) > this.getDistanceX(this.minHandle, valueX)
519
+ ? this.minHandle
520
+ : this.maxHandle;
521
+ }
522
+ getDistanceX(el, valueX) {
523
+ return Math.abs(el.getBoundingClientRect().left - valueX);
524
+ }
517
525
  getFontSizeForElement(element) {
518
526
  return Number(window.getComputedStyle(element).getPropertyValue("font-size").match(/\d+/)[0]);
519
527
  }
@@ -734,6 +742,9 @@ CalciteSlider$1 = /*@__PURE__*/ proxyCustomElement(CalciteSlider$1, [1, "calcite
734
742
  "setFocus": [64]
735
743
  }, [[0, "keydown", "keyDownHandler"], [0, "click", "clickHandler"], [1, "pointerdown", "pointerDownHandler"]]]);
736
744
  function defineCustomElement$1() {
745
+ if (typeof customElements === "undefined") {
746
+ return;
747
+ }
737
748
  const components = ["calcite-slider", "calcite-graph"];
738
749
  components.forEach(tagName => { switch (tagName) {
739
750
  case "calcite-slider":
@@ -2,7 +2,7 @@
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 { createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { S as Sortable } from './sortable.esm.js';
7
7
  import { c as createObserver } from './observers.js';
8
8
 
@@ -173,6 +173,9 @@ CalciteSortableList$1 = /*@__PURE__*/ proxyCustomElement(CalciteSortableList$1,
173
173
  "handleActivated": [32]
174
174
  }, [[0, "calciteHandleNudge", "calciteHandleNudgeHandler"]]]);
175
175
  function defineCustomElement$1() {
176
+ if (typeof customElements === "undefined") {
177
+ return;
178
+ }
176
179
  const components = ["calcite-sortable-list"];
177
180
  components.forEach(tagName => { switch (tagName) {
178
181
  case "calcite-sortable-list":
@@ -2,7 +2,7 @@
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 { createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir } from './dom.js';
7
7
  import { d as defineCustomElement$5 } from './calcite-button2.js';
8
8
  import { d as defineCustomElement$4 } from './calcite-dropdown2.js';
@@ -90,6 +90,9 @@ CalciteSplitButton$1 = /*@__PURE__*/ proxyCustomElement(CalciteSplitButton$1, [1
90
90
  "width": [513]
91
91
  }]);
92
92
  function defineCustomElement$1() {
93
+ if (typeof customElements === "undefined") {
94
+ return;
95
+ }
93
96
  const components = ["calcite-split-button", "calcite-button", "calcite-dropdown", "calcite-icon", "calcite-loader"];
94
97
  components.forEach(tagName => { switch (tagName) {
95
98
  case "calcite-split-button":
@@ -2,7 +2,7 @@
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 { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
7
  import { g as getKey } from './key.js';
8
8
  import { d as defineCustomElement$2 } from './calcite-icon2.js';
@@ -167,6 +167,9 @@ CalciteStepperItem$1 = /*@__PURE__*/ proxyCustomElement(CalciteStepperItem$1, [1
167
167
  "scale": [1537]
168
168
  }, [[0, "keydown", "keyDownHandler"], [16, "calciteStepperItemChange", "updateActiveItemOnChange"]]]);
169
169
  function defineCustomElement$1() {
170
+ if (typeof customElements === "undefined") {
171
+ return;
172
+ }
170
173
  const components = ["calcite-stepper-item", "calcite-icon"];
171
174
  components.forEach(tagName => { switch (tagName) {
172
175
  case "calcite-stepper-item":
@@ -2,7 +2,7 @@
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 { createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as getKey } from './key.js';
7
7
 
8
8
  const calciteStepperCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:stretch;align-items:stretch;width:100%;min-width:100%}:host([layout=vertical]){-ms-flex-direction:column;flex-direction:column;-ms-flex:1 1 auto;flex:1 1 auto}:host ::slotted(.calcite-stepper-content){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%;min-width:100%}";
@@ -230,6 +230,9 @@ CalciteStepper$1 = /*@__PURE__*/ proxyCustomElement(CalciteStepper$1, [1, "calci
230
230
  "endStep": [64]
231
231
  }, [[0, "calciteStepperItemKeyEvent", "calciteStepperItemKeyEvent"], [0, "calciteStepperItemRegister", "registerItem"], [0, "calciteStepperItemSelect", "updateItem"]]]);
232
232
  function defineCustomElement$1() {
233
+ if (typeof customElements === "undefined") {
234
+ return;
235
+ }
233
236
  const components = ["calcite-stepper"];
234
237
  components.forEach(tagName => { switch (tagName) {
235
238
  case "calcite-stepper":
@@ -2,7 +2,7 @@
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 { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { f as focusElement, a as getElementDir, C as CSS_UTILITY } from './dom.js';
7
7
  import { g as getKey } from './key.js';
8
8
  import { c as connectLabel, d as disconnectLabel, g as getLabelText } from './label.js';
@@ -127,6 +127,9 @@ CalciteSwitch = /*@__PURE__*/ proxyCustomElement(CalciteSwitch, [1, "calcite-swi
127
127
  "setFocus": [64]
128
128
  }]);
129
129
  function defineCustomElement() {
130
+ if (typeof customElements === "undefined") {
131
+ return;
132
+ }
130
133
  const components = ["calcite-switch"];
131
134
  components.forEach(tagName => { switch (tagName) {
132
135
  case "calcite-switch":
@@ -2,7 +2,7 @@
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 { createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { a as getElementDir, e as filterDirectChildren } from './dom.js';
7
7
 
8
8
  const calciteTabNavCss = "@-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:300ms}.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:150ms ease-in-out}:host([hidden]){display:none}:host{position:relative;display:-ms-flexbox;display:flex}:host([scale=s]){min-height:1.5rem}:host([scale=m]){min-height:2rem}:host([scale=l]){min-height:2.75rem}.tab-nav{display:-ms-flexbox;display:flex;width:100%;overflow:auto;-ms-flex-pack:start;justify-content:flex-start;-webkit-overflow-scrolling:touch;padding:0.25rem;margin:-0.25rem}:host([layout=center]) .tab-nav{-ms-flex-pack:center;justify-content:center}.tab-nav-active-indicator-container{width:100%;right:0;left:0;bottom:0;position:absolute;overflow:hidden;height:0.125rem}.tab-nav-active-indicator{position:absolute;bottom:0;display:block;-webkit-transition-property:all;transition-property:all;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);background-color:var(--calcite-ui-brand);height:0.125rem}:host([position=below]) .tab-nav-active-indicator{bottom:unset;top:0}:host([position=below]) .tab-nav-active-indicator-container{bottom:unset;top:0}:host([bordered]) .tab-nav-active-indicator-container{bottom:unset}:host([bordered][position=below]) .tab-nav-active-indicator-container{bottom:0;top:unset}";
@@ -195,6 +195,9 @@ CalciteTabNav = /*@__PURE__*/ proxyCustomElement(CalciteTabNav, [1, "calcite-tab
195
195
  "selectedTabEl": [32]
196
196
  }, [[9, "resize", "resizeHandler"], [0, "calciteTabsFocusPrevious", "focusPreviousTabHandler"], [0, "calciteTabsFocusNext", "focusNextTabHandler"], [0, "calciteTabsActivate", "activateTabHandler"], [0, "calciteTabTitleRegister", "updateTabTitles"], [16, "calciteTabChange", "globalTabChangeHandler"]]]);
197
197
  function defineCustomElement() {
198
+ if (typeof customElements === "undefined") {
199
+ return;
200
+ }
198
201
  const components = ["calcite-tab-nav"];
199
202
  components.forEach(tagName => { switch (tagName) {
200
203
  case "calcite-tab-nav":
@@ -2,7 +2,7 @@
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 { createEvent, Build, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
5
+ import { HTMLElement, createEvent, Build, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
6
6
  import { g as guid } from './guid.js';
7
7
  import { g as getElementProp, a as getElementDir, C as CSS_UTILITY } from './dom.js';
8
8
  import { g as getKey } from './key.js';
@@ -211,6 +211,9 @@ CalciteTabTitle = /*@__PURE__*/ proxyCustomElement(CalciteTabTitle, [1, "calcite
211
211
  "updateAriaInfo": [64]
212
212
  }, [[16, "calciteTabChange", "tabChangeHandler"], [0, "click", "onClick"], [0, "keydown", "keyDownHandler"]]]);
213
213
  function defineCustomElement() {
214
+ if (typeof customElements === "undefined") {
215
+ return;
216
+ }
214
217
  const components = ["calcite-tab-title", "calcite-icon"];
215
218
  components.forEach(tagName => { switch (tagName) {
216
219
  case "calcite-tab-title":