@esri/calcite-components 1.0.0-next.367 → 1.0.0-next.370

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 (172) hide show
  1. package/dist/calcite/calcite.esm.js +1 -1
  2. package/dist/calcite/{p-946c3bed.system.entry.js → p-0389f96b.system.entry.js} +1 -1
  3. package/dist/calcite/{p-f95fb85f.entry.js → p-04bf684c.entry.js} +1 -1
  4. package/dist/calcite/p-0a5d059d.js +5 -0
  5. package/dist/calcite/{p-02589ad3.system.entry.js → p-0faf1684.system.entry.js} +1 -1
  6. package/dist/calcite/{p-a348ffb1.system.entry.js → p-10b1b39a.system.entry.js} +1 -1
  7. package/dist/calcite/p-1b06ada3.entry.js +5 -0
  8. package/dist/calcite/{p-b14e0be5.system.entry.js → p-203e951b.system.entry.js} +1 -1
  9. package/dist/calcite/{p-bda51610.entry.js → p-242fdd67.entry.js} +1 -1
  10. package/dist/calcite/{p-832d7f68.system.entry.js → p-24b54c99.system.entry.js} +1 -1
  11. package/dist/calcite/{p-94717214.entry.js → p-283ff9e8.entry.js} +1 -1
  12. package/dist/calcite/{p-897fc280.system.entry.js → p-2d411997.system.entry.js} +1 -1
  13. package/dist/calcite/{p-e2094dff.system.entry.js → p-2e351904.system.entry.js} +1 -1
  14. package/dist/calcite/{p-55e2658e.entry.js → p-341eef4e.entry.js} +1 -1
  15. package/dist/calcite/{p-2b48aa8c.entry.js → p-4641ef1f.entry.js} +1 -1
  16. package/dist/calcite/{p-1ef9235e.system.entry.js → p-492d644c.system.entry.js} +1 -1
  17. package/dist/calcite/{p-7cf09784.system.entry.js → p-4b3160ad.system.entry.js} +1 -1
  18. package/dist/calcite/{p-46b63d75.entry.js → p-4c021c5c.entry.js} +1 -1
  19. package/dist/calcite/{p-af7ed41f.system.entry.js → p-4c6fe413.system.entry.js} +1 -1
  20. package/dist/calcite/{p-dd4457cd.entry.js → p-4ef2119c.entry.js} +1 -1
  21. package/dist/calcite/p-500b9fa0.entry.js +5 -0
  22. package/dist/calcite/{p-0282fd8b.system.entry.js → p-57584243.system.entry.js} +1 -1
  23. package/dist/calcite/{p-05b03971.system.entry.js → p-57bf81c4.system.entry.js} +2 -2
  24. package/dist/calcite/{p-1bcce6c9.entry.js → p-590d13bd.entry.js} +1 -1
  25. package/dist/calcite/{p-4347fde9.system.entry.js → p-5aaa0088.system.entry.js} +1 -1
  26. package/dist/calcite/{p-ba000c59.entry.js → p-5b7d5f36.entry.js} +1 -1
  27. package/dist/calcite/{p-436d9f0e.system.entry.js → p-67e13029.system.entry.js} +1 -1
  28. package/dist/calcite/{p-ba915998.entry.js → p-6b8dcbb0.entry.js} +1 -1
  29. package/dist/calcite/{p-16cfe8e8.entry.js → p-6c4bec59.entry.js} +1 -1
  30. package/dist/calcite/p-6de78659.system.entry.js +5 -0
  31. package/dist/calcite/{p-40cbbd20.entry.js → p-6fa59c8c.entry.js} +1 -1
  32. package/dist/calcite/p-7165e37e.entry.js +5 -0
  33. package/dist/calcite/{p-f4614b28.system.entry.js → p-77279f88.system.entry.js} +1 -1
  34. package/dist/calcite/{p-9fe77a88.system.entry.js → p-7cba1720.system.entry.js} +1 -1
  35. package/dist/calcite/{p-60e4f404.entry.js → p-7db0947c.entry.js} +1 -1
  36. package/dist/calcite/{p-a52288cd.system.entry.js → p-7f50128c.system.entry.js} +1 -1
  37. package/dist/calcite/{p-9b723fdd.system.entry.js → p-84defe75.system.entry.js} +1 -1
  38. package/dist/calcite/{p-597b782e.system.entry.js → p-8f647ab0.system.entry.js} +1 -1
  39. package/dist/calcite/{p-08847812.entry.js → p-92de4a81.entry.js} +1 -1
  40. package/dist/calcite/{p-5682a918.entry.js → p-950b42e3.entry.js} +1 -1
  41. package/dist/calcite/p-99d32fc3.system.js +1 -1
  42. package/dist/calcite/{p-050ff462.entry.js → p-a25ebce7.entry.js} +1 -1
  43. package/dist/calcite/{p-953259af.entry.js → p-a5c73259.entry.js} +1 -1
  44. package/dist/calcite/{p-409d0a3f.entry.js → p-a980b2df.entry.js} +1 -1
  45. package/dist/calcite/{p-b53b28e3.system.js → p-ab14b0a2.system.js} +1 -1
  46. package/dist/calcite/{p-db10485b.system.js → p-ac4aec20.system.js} +1 -1
  47. package/dist/calcite/{p-25ed6059.entry.js → p-b052f523.entry.js} +1 -1
  48. package/dist/calcite/p-b9a47a94.system.entry.js +5 -0
  49. package/dist/calcite/{p-eff2fb8c.system.entry.js → p-bb20e0fc.system.entry.js} +1 -1
  50. package/dist/calcite/{p-209f2049.entry.js → p-bde80af8.entry.js} +1 -1
  51. package/dist/calcite/p-c029ffb1.entry.js +5 -0
  52. package/dist/calcite/{p-888a152c.system.entry.js → p-d908834f.system.entry.js} +1 -1
  53. package/dist/calcite/{p-fd57beb5.system.entry.js → p-de09fc5c.system.entry.js} +1 -1
  54. package/dist/calcite/{p-3280f0ac.system.entry.js → p-de8496be.system.entry.js} +1 -1
  55. package/dist/calcite/p-ea510477.js +5 -0
  56. package/dist/calcite/{p-aea7c650.system.entry.js → p-ee7e311e.system.entry.js} +1 -1
  57. package/dist/calcite/{p-d5d91f34.system.entry.js → p-f044fcc5.system.entry.js} +1 -1
  58. package/dist/calcite/{p-43cd4b9b.entry.js → p-f385d631.entry.js} +1 -1
  59. package/dist/calcite/{p-7279ccf9.entry.js → p-fe94050d.entry.js} +1 -1
  60. package/dist/calcite/{p-b88d7391.entry.js → p-fee6af61.entry.js} +1 -1
  61. package/dist/cjs/calcite-action-bar.cjs.entry.js +2 -2
  62. package/dist/cjs/calcite-action-group.cjs.entry.js +2 -2
  63. package/dist/cjs/calcite-action-menu.cjs.entry.js +2 -2
  64. package/dist/cjs/calcite-action-pad.cjs.entry.js +2 -2
  65. package/dist/cjs/calcite-action.cjs.entry.js +2 -2
  66. package/dist/cjs/calcite-block_2.cjs.entry.js +2 -2
  67. package/dist/cjs/calcite-button.cjs.entry.js +1 -1
  68. package/dist/cjs/calcite-chip.cjs.entry.js +2 -2
  69. package/dist/cjs/calcite-combobox_3.cjs.entry.js +1 -1
  70. package/dist/cjs/calcite-dropdown_3.cjs.entry.js +1 -1
  71. package/dist/cjs/calcite-flow.cjs.entry.js +1 -1
  72. package/dist/cjs/calcite-graph_2.cjs.entry.js +4 -4
  73. package/dist/cjs/calcite-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/calcite-input.cjs.entry.js +93 -36
  75. package/dist/cjs/calcite-list_3.cjs.entry.js +2 -2
  76. package/dist/cjs/calcite-modal.cjs.entry.js +2 -2
  77. package/dist/cjs/calcite-notice.cjs.entry.js +2 -2
  78. package/dist/cjs/calcite-option_3.cjs.entry.js +1 -1
  79. package/dist/cjs/calcite-panel.cjs.entry.js +2 -2
  80. package/dist/cjs/calcite-pick-list_3.cjs.entry.js +2 -2
  81. package/dist/cjs/calcite-shell_3.cjs.entry.js +2 -2
  82. package/dist/cjs/calcite-sortable-list.cjs.entry.js +1 -1
  83. package/dist/cjs/calcite-tab_4.cjs.entry.js +1 -1
  84. package/dist/cjs/calcite-tile.cjs.entry.js +2 -2
  85. package/dist/cjs/calcite-tip_3.cjs.entry.js +2 -2
  86. package/dist/cjs/calcite-tree_2.cjs.entry.js +2 -2
  87. package/dist/cjs/calcite-value-list_2.cjs.entry.js +2 -2
  88. package/dist/cjs/{conditionalSlot-e874fbb0.js → conditionalSlot-92505fba.js} +1 -1
  89. package/dist/cjs/{observers-41837607.js → observers-79bfb8bc.js} +5 -1
  90. package/dist/collection/components/calcite-action/calcite-action.css +1 -0
  91. package/dist/collection/components/calcite-input/calcite-input.js +93 -36
  92. package/dist/collection/components/calcite-slider/calcite-slider.css +3 -0
  93. package/dist/collection/components/calcite-slider/calcite-slider.js +2 -2
  94. package/dist/collection/utils/globalAttributes.js +59 -0
  95. package/dist/collection/utils/observers.js +5 -1
  96. package/dist/components/calcite-action2.js +1 -1
  97. package/dist/components/calcite-input2.js +93 -36
  98. package/dist/components/calcite-slider.js +3 -3
  99. package/dist/components/observers.js +5 -1
  100. package/dist/custom-elements/index.js +103 -42
  101. package/dist/esm/calcite-action-bar.entry.js +2 -2
  102. package/dist/esm/calcite-action-group.entry.js +2 -2
  103. package/dist/esm/calcite-action-menu.entry.js +2 -2
  104. package/dist/esm/calcite-action-pad.entry.js +2 -2
  105. package/dist/esm/calcite-action.entry.js +2 -2
  106. package/dist/esm/calcite-block_2.entry.js +2 -2
  107. package/dist/esm/calcite-button.entry.js +1 -1
  108. package/dist/esm/calcite-chip.entry.js +2 -2
  109. package/dist/esm/calcite-combobox_3.entry.js +1 -1
  110. package/dist/esm/calcite-dropdown_3.entry.js +1 -1
  111. package/dist/esm/calcite-flow.entry.js +1 -1
  112. package/dist/esm/calcite-graph_2.entry.js +4 -4
  113. package/dist/esm/calcite-icon.entry.js +1 -1
  114. package/dist/esm/calcite-input.entry.js +93 -36
  115. package/dist/esm/calcite-list_3.entry.js +2 -2
  116. package/dist/esm/calcite-modal.entry.js +2 -2
  117. package/dist/esm/calcite-notice.entry.js +2 -2
  118. package/dist/esm/calcite-option_3.entry.js +1 -1
  119. package/dist/esm/calcite-panel.entry.js +2 -2
  120. package/dist/esm/calcite-pick-list_3.entry.js +2 -2
  121. package/dist/esm/calcite-shell_3.entry.js +2 -2
  122. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  123. package/dist/esm/calcite-tab_4.entry.js +1 -1
  124. package/dist/esm/calcite-tile.entry.js +2 -2
  125. package/dist/esm/calcite-tip_3.entry.js +2 -2
  126. package/dist/esm/calcite-tree_2.entry.js +2 -2
  127. package/dist/esm/calcite-value-list_2.entry.js +2 -2
  128. package/dist/esm/{conditionalSlot-0c4ea23a.js → conditionalSlot-9e7d8609.js} +1 -1
  129. package/dist/esm/{observers-8f0bc419.js → observers-46118290.js} +5 -1
  130. package/dist/esm-es5/calcite-action-bar.entry.js +2 -2
  131. package/dist/esm-es5/calcite-action-group.entry.js +1 -1
  132. package/dist/esm-es5/calcite-action-menu.entry.js +1 -1
  133. package/dist/esm-es5/calcite-action-pad.entry.js +2 -2
  134. package/dist/esm-es5/calcite-action.entry.js +1 -1
  135. package/dist/esm-es5/calcite-block_2.entry.js +1 -1
  136. package/dist/esm-es5/calcite-button.entry.js +1 -1
  137. package/dist/esm-es5/calcite-chip.entry.js +1 -1
  138. package/dist/esm-es5/calcite-combobox_3.entry.js +1 -1
  139. package/dist/esm-es5/calcite-dropdown_3.entry.js +1 -1
  140. package/dist/esm-es5/calcite-flow.entry.js +1 -1
  141. package/dist/esm-es5/calcite-graph_2.entry.js +1 -1
  142. package/dist/esm-es5/calcite-icon.entry.js +1 -1
  143. package/dist/esm-es5/calcite-input.entry.js +1 -1
  144. package/dist/esm-es5/calcite-list_3.entry.js +1 -1
  145. package/dist/esm-es5/calcite-modal.entry.js +1 -1
  146. package/dist/esm-es5/calcite-notice.entry.js +1 -1
  147. package/dist/esm-es5/calcite-option_3.entry.js +1 -1
  148. package/dist/esm-es5/calcite-panel.entry.js +1 -1
  149. package/dist/esm-es5/calcite-pick-list_3.entry.js +1 -1
  150. package/dist/esm-es5/calcite-shell_3.entry.js +1 -1
  151. package/dist/esm-es5/calcite-sortable-list.entry.js +1 -1
  152. package/dist/esm-es5/calcite-tab_4.entry.js +1 -1
  153. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  154. package/dist/esm-es5/calcite-tip_3.entry.js +1 -1
  155. package/dist/esm-es5/calcite-tree_2.entry.js +1 -1
  156. package/dist/esm-es5/calcite-value-list_2.entry.js +1 -1
  157. package/dist/esm-es5/{conditionalSlot-0c4ea23a.js → conditionalSlot-9e7d8609.js} +1 -1
  158. package/dist/esm-es5/{observers-8f0bc419.js → observers-46118290.js} +1 -1
  159. package/dist/extras/docs-json.json +1 -1
  160. package/dist/types/components/calcite-input/calcite-input.d.ts +6 -1
  161. package/dist/types/utils/globalAttributes.d.ts +35 -0
  162. package/hydrate/index.js +98 -41
  163. package/package.json +1 -1
  164. package/readme.md +0 -30
  165. package/dist/calcite/p-02856c5a.system.entry.js +0 -5
  166. package/dist/calcite/p-20d2db84.entry.js +0 -5
  167. package/dist/calcite/p-4d22b788.entry.js +0 -5
  168. package/dist/calcite/p-660c8077.js +0 -5
  169. package/dist/calcite/p-9bfe6679.system.entry.js +0 -5
  170. package/dist/calcite/p-9f349c92.entry.js +0 -5
  171. package/dist/calcite/p-a71d17b4.entry.js +0 -5
  172. package/dist/calcite/p-e4acb5a8.js +0 -5
@@ -624,7 +624,7 @@ export class CalciteSlider {
624
624
  const hyphenLabel = leftValueLabel;
625
625
  const labelOffset = labelFontSize / 2;
626
626
  if (labelTransformedOverlap > 0) {
627
- hyphenLabel.classList.add("hyphen");
627
+ hyphenLabel.classList.add("hyphen", "hyphen--wrap");
628
628
  if (rightValueLabelStaticHostOffset === 0 && leftValueLabelStaticHostOffset === 0) {
629
629
  // Neither handle overlaps the host boundary
630
630
  let leftValueLabelTranslate = labelTransformedOverlap / 2 - labelOffset;
@@ -670,7 +670,7 @@ export class CalciteSlider {
670
670
  }
671
671
  }
672
672
  else {
673
- hyphenLabel.classList.remove("hyphen");
673
+ hyphenLabel.classList.remove("hyphen", "hyphen--wrap");
674
674
  leftValueLabel.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
675
675
  leftValueLabelTransformed.style.transform = `translateX(${leftValueLabelStaticHostOffset}px)`;
676
676
  rightValueLabel.style.transform = `translateX(${rightValueLabelStaticHostOffset}px)`;
@@ -0,0 +1,59 @@
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 { createObserver } from "./observers";
6
+ const allowedGlobalAttributes = ["lang"];
7
+ const elementToComponentAndObserverOptionsMap = new Map();
8
+ let mutationObserver;
9
+ function updateGlobalAttributes(component, attributeFilter) {
10
+ const { el } = component;
11
+ const updatedAttributes = {};
12
+ attributeFilter
13
+ .filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
14
+ .forEach((attr) => {
15
+ const value = el.getAttribute(attr);
16
+ if (value !== null) {
17
+ updatedAttributes[attr] = value;
18
+ }
19
+ });
20
+ component.globalAttributes = updatedAttributes;
21
+ }
22
+ function processMutations(mutations) {
23
+ mutations.forEach(({ target }) => {
24
+ const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
25
+ updateGlobalAttributes(component, options.attributeFilter);
26
+ });
27
+ }
28
+ /**
29
+ * Helper to set up listening for changes to global attributes.
30
+ *
31
+ * render(): VNode {
32
+ * const lang = this.inheritedAttributes['lang'] ?? 'en';
33
+ * return <div>My lang is {lang}</div>;
34
+ * }
35
+ */
36
+ export function watchGlobalAttributes(component, attributeFilter) {
37
+ const { el } = component;
38
+ const observerOptions = { attributeFilter };
39
+ elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
40
+ updateGlobalAttributes(component, attributeFilter);
41
+ if (!mutationObserver) {
42
+ mutationObserver = createObserver("mutation", processMutations);
43
+ }
44
+ mutationObserver.observe(el, observerOptions);
45
+ }
46
+ /**
47
+ * Helper remove listening for changes to inherited attributes.
48
+ */
49
+ export function unwatchGlobalAttributes(component) {
50
+ elementToComponentAndObserverOptionsMap.delete(component.el);
51
+ // we explicitly process queued mutations and disconnect and reconnect
52
+ // the observer until MutationObserver gets an `unobserve` method
53
+ // see https://github.com/whatwg/dom/issues/126
54
+ processMutations(mutationObserver.takeRecords());
55
+ mutationObserver.disconnect();
56
+ for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
57
+ mutationObserver.observe(element, observerOptions);
58
+ }
59
+ }
@@ -15,5 +15,9 @@ export function createObserver(type, callback, options) {
15
15
  return Build.isBrowser ? new Observer(callback, options) : undefined;
16
16
  }
17
17
  function getObserver(type) {
18
- return (type === "intersection" ? IntersectionObserver : type === "mutation" ? MutationObserver : ResizeObserver);
18
+ return (type === "intersection"
19
+ ? window.IntersectionObserver
20
+ : type === "mutation"
21
+ ? window.MutationObserver
22
+ : window.ResizeObserver);
19
23
  }
@@ -21,7 +21,7 @@ const TEXT = {
21
21
  loading: "Loading"
22
22
  };
23
23
 
24
- const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-family:inherit;text-align:unset}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
24
+ const calciteActionCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:host{-webkit-box-sizing:border-box;box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--calcite-popper-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{display:-ms-flexbox;display:flex;background-color:transparent}:host([disabled]){pointer-events:none}.button{position:relative;margin:0px;display:-ms-flexbox;display:flex;width:auto;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;font-family:inherit;text-align:unset;-ms-flex:1 0 auto;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:1rem;min-height:1rem}.button .text-container{margin:0px;width:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1rem;opacity:0;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-property:width;transition-property:width}.button .text-container--visible{width:auto;-ms-flex:1 1 auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{-ms-flex-pack:center;justify-content:center}:host([alignment=end]) .button{-ms-flex-pack:end;justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{-ms-flex:0 1 auto;flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-left:0px;padding-right:0px}.slot-container{display:-ms-flexbox;display:flex}.slot-container--hidden{display:none}.button--text-visible{width:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button{background-color:transparent;-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow, -webkit-box-shadow;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus{background-color:transparent;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-right:0px;color:var(--calcite-ui-text-3)}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;z-index:10;height:0.5rem;width:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-ui-brand);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
25
25
 
26
26
  let CalciteAction = class extends HTMLElement {
27
27
  constructor() {
@@ -108,6 +108,8 @@ let CalciteInput = class extends HTMLElement {
108
108
  this.value = "";
109
109
  /** keep track of the rendered child type */
110
110
  this.childElType = "input";
111
+ /** whether the value of the input was changed as a result of user typing or not */
112
+ this.internalValueChange = false;
111
113
  //--------------------------------------------------------------------------
112
114
  //
113
115
  // Private Methods
@@ -127,11 +129,15 @@ let CalciteInput = class extends HTMLElement {
127
129
  }
128
130
  };
129
131
  this.clearInputValue = (nativeEvent) => {
130
- this.setValue("", nativeEvent, true);
132
+ this.setValue({
133
+ committing: true,
134
+ nativeEvent,
135
+ value: ""
136
+ });
131
137
  };
132
138
  this.inputBlurHandler = () => {
133
139
  if (this.type === "number") {
134
- this.setLocalizedValue(this.value);
140
+ this.setValue({ value: this.value });
135
141
  }
136
142
  this.calciteInputBlur.emit({
137
143
  element: this.childEl,
@@ -155,7 +161,10 @@ let CalciteInput = class extends HTMLElement {
155
161
  if (this.disabled || this.readOnly) {
156
162
  return;
157
163
  }
158
- this.setValue(nativeEvent.target.value, nativeEvent);
164
+ this.setValue({
165
+ nativeEvent,
166
+ value: nativeEvent.target.value
167
+ });
159
168
  };
160
169
  this.inputKeyDownHandler = (event) => {
161
170
  if (this.disabled || this.readOnly) {
@@ -175,11 +184,17 @@ let CalciteInput = class extends HTMLElement {
175
184
  if (!isValidNumber(delocalizedValue)) {
176
185
  nativeEvent.preventDefault();
177
186
  }
178
- this.setValue(parseNumberString(delocalizedValue), nativeEvent);
187
+ this.setValue({
188
+ nativeEvent,
189
+ value: parseNumberString(delocalizedValue)
190
+ });
179
191
  this.childNumberEl.value = this.localizedValue;
180
192
  }
181
193
  else {
182
- this.setValue(delocalizeNumberString(value, this.locale), nativeEvent);
194
+ this.setValue({
195
+ nativeEvent,
196
+ value: delocalizeNumberString(value, this.locale)
197
+ });
183
198
  }
184
199
  };
185
200
  this.inputNumberKeyDownHandler = (event) => {
@@ -275,18 +290,44 @@ let CalciteInput = class extends HTMLElement {
275
290
  this.setChildNumberElRef = (el) => {
276
291
  this.childNumberEl = el;
277
292
  };
278
- this.setLocalizedValue = (value) => {
279
- this.localizedValue = localizeNumberString(value, this.locale, this.groupSeparator);
293
+ this.setInputValue = (newInputValue) => {
294
+ if (this.type === "text" && !this.childEl) {
295
+ return;
296
+ }
297
+ if (this.type === "number" && !this.childNumberEl) {
298
+ return;
299
+ }
300
+ this[`child${this.type === "number" ? "Number" : ""}El`].value = newInputValue;
301
+ };
302
+ this.setPreviousValue = (newPreviousValue) => {
303
+ this.previousValue =
304
+ this.type === "number"
305
+ ? isValidNumber(newPreviousValue)
306
+ ? newPreviousValue
307
+ : ""
308
+ : newPreviousValue;
280
309
  };
281
- this.setValue = (value, nativeEvent, committing = false) => {
282
- const previousValue = this.value;
310
+ this.setValue = ({ committing = false, nativeEvent, origin = "internal", value }) => {
311
+ const previousLocalizedValue = this.type === "number"
312
+ ? localizeNumberString(this.previousValue, this.locale, this.groupSeparator)
313
+ : "";
314
+ const sanitizedValue = this.type === "number" ? sanitizeNumberString(value) : value;
315
+ const newValue = this.type === "number" && value && !sanitizedValue
316
+ ? isValidNumber(this.previousValue)
317
+ ? this.previousValue
318
+ : ""
319
+ : sanitizedValue;
320
+ const newLocalizedValue = this.type === "number"
321
+ ? localizeNumberString(newValue, this.locale, this.groupSeparator)
322
+ : "";
323
+ this.internalValueChange = origin === "internal";
324
+ this.setPreviousValue(this.value);
325
+ this.value = newValue;
283
326
  if (this.type === "number") {
284
- const sanitizedValue = sanitizeNumberString(value);
285
- this.value = sanitizedValue;
286
- this.setLocalizedValue(sanitizedValue);
327
+ this.localizedValue = newLocalizedValue;
287
328
  }
288
- else {
289
- this.value = value;
329
+ if (origin === "external") {
330
+ this.setInputValue(this.type === "number" ? newLocalizedValue : newValue);
290
331
  }
291
332
  if (nativeEvent) {
292
333
  const calciteInputInputEvent = this.calciteInputInput.emit({
@@ -295,8 +336,8 @@ let CalciteInput = class extends HTMLElement {
295
336
  value: this.value
296
337
  });
297
338
  if (calciteInputInputEvent.defaultPrevented) {
298
- this.value = previousValue;
299
- this.setLocalizedValue(previousValue);
339
+ this.value = this.previousValue;
340
+ this.localizedValue = previousLocalizedValue;
300
341
  }
301
342
  else if (committing) {
302
343
  this.calciteInputChange.emit();
@@ -321,17 +362,20 @@ let CalciteInput = class extends HTMLElement {
321
362
  this.minString = ((_a = this.min) === null || _a === void 0 ? void 0 : _a.toString()) || null;
322
363
  }
323
364
  valueWatcher(newValue) {
324
- if (newValue == null) {
325
- this.value = "";
326
- return;
327
- }
328
- if (this.type === "number" &&
329
- this.localizedValue !== localizeNumberString(newValue, this.locale)) {
330
- this.setLocalizedValue(newValue);
331
- }
332
- else if (this.childEl && this.childEl.value !== newValue) {
333
- this.childEl.value = newValue;
365
+ if (!this.internalValueChange) {
366
+ this.setValue({
367
+ origin: "external",
368
+ value: newValue == null
369
+ ? ""
370
+ : this.type === "number"
371
+ ? isValidNumber(newValue)
372
+ ? newValue
373
+ : this.previousValue || ""
374
+ : newValue
375
+ });
376
+ this.warnAboutInvalidNumberValue(newValue);
334
377
  }
378
+ this.internalValueChange = false;
335
379
  }
336
380
  updateRequestedIcon() {
337
381
  this.requestedIcon = setRequestedIcon(INPUT_TYPE_ICONS, this.icon, this.type);
@@ -354,13 +398,13 @@ let CalciteInput = class extends HTMLElement {
354
398
  if (this.inlineEditableEl) {
355
399
  this.editingEnabled = this.inlineEditableEl.editingEnabled || false;
356
400
  }
357
- if (this.type === "number" && this.value) {
358
- if (isValidNumber(this.value)) {
359
- this.localizedValue = localizeNumberString(this.value, this.locale, this.groupSeparator);
360
- }
361
- else {
362
- this.value = "";
363
- }
401
+ this.setPreviousValue(this.value);
402
+ if (this.type === "number") {
403
+ this.warnAboutInvalidNumberValue(this.value);
404
+ this.setValue({
405
+ origin: "loading",
406
+ value: isValidNumber(this.value) ? this.value : ""
407
+ });
364
408
  }
365
409
  connectLabel(this);
366
410
  connectForm(this);
@@ -382,7 +426,9 @@ let CalciteInput = class extends HTMLElement {
382
426
  }
383
427
  componentShouldUpdate(newValue, oldValue, property) {
384
428
  if (this.type === "number" && property === "value" && newValue && !isValidNumber(newValue)) {
385
- this.value = oldValue;
429
+ this.setValue({
430
+ value: oldValue
431
+ });
386
432
  return false;
387
433
  }
388
434
  return true;
@@ -417,10 +463,16 @@ let CalciteInput = class extends HTMLElement {
417
463
  : nudgedValue;
418
464
  const inputValPlaces = decimalPlaces(inputVal);
419
465
  const inputStepPlaces = decimalPlaces(inputStep);
420
- this.setValue(finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces)), nativeEvent, true);
466
+ this.setValue({
467
+ committing: true,
468
+ nativeEvent,
469
+ value: finalValue.toFixed(Math.max(inputValPlaces, inputStepPlaces))
470
+ });
421
471
  }
422
472
  onFormReset() {
423
- this.setValue(this.defaultValue);
473
+ this.setValue({
474
+ value: this.defaultValue
475
+ });
424
476
  }
425
477
  syncHiddenFormInput(input) {
426
478
  var _a, _b, _c, _d;
@@ -451,6 +503,11 @@ let CalciteInput = class extends HTMLElement {
451
503
  ? slottedActionEl.setAttribute("disabled", "")
452
504
  : slottedActionEl.removeAttribute("disabled");
453
505
  }
506
+ warnAboutInvalidNumberValue(value) {
507
+ if (this.type === "number" && value && !isValidNumber(value)) {
508
+ console.warn(`The specified value "${value}" cannot be parsed, or is out of range.`);
509
+ }
510
+ }
454
511
  // --------------------------------------------------------------------------
455
512
  //
456
513
  // Render Methods
@@ -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)`;
@@ -16,7 +16,11 @@ function createObserver(type, callback, options) {
16
16
  return Build.isBrowser ? new Observer(callback, options) : undefined;
17
17
  }
18
18
  function getObserver(type) {
19
- return (type === "intersection" ? IntersectionObserver : type === "mutation" ? MutationObserver : ResizeObserver);
19
+ return (type === "intersection"
20
+ ? window.IntersectionObserver
21
+ : type === "mutation"
22
+ ? window.MutationObserver
23
+ : window.ResizeObserver);
20
24
  }
21
25
 
22
26
  export { createObserver as c };