@esri/calcite-components 5.2.0-next.3 → 5.2.0-next.4

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 (260) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/{LGJJ3IVS.js → 24XW36XW.js} +1 -1
  3. package/dist/cdn/{NXAZFXVJ.js → 2BIW77FS.js} +1 -1
  4. package/dist/cdn/{C4T3FNZ6.js → 2CPNDRJN.js} +1 -1
  5. package/dist/cdn/{B3XEP4OJ.js → 2GFEIPYA.js} +1 -1
  6. package/dist/cdn/{S4DHIY5S.js → 2GIYJ5S4.js} +1 -1
  7. package/dist/cdn/{LZB4RQKP.js → 2NVBHC4D.js} +1 -1
  8. package/dist/cdn/2OKTIK5P.js +2 -0
  9. package/dist/cdn/{OF67Q5H4.js → 2WTFQ6VU.js} +1 -1
  10. package/dist/cdn/{NA2SOXT6.js → 3AZFSAZW.js} +1 -1
  11. package/dist/cdn/{WXVKYWR3.js → 3GYZZNF6.js} +1 -1
  12. package/dist/cdn/{6T2ZPNFA.js → 3VTWLNYM.js} +1 -1
  13. package/dist/cdn/{25REF2NN.js → 3W6YYTUS.js} +1 -1
  14. package/dist/cdn/{B2TFN5WO.js → 44WTMUOU.js} +1 -1
  15. package/dist/cdn/{ZU5TOIDV.js → 4ENZX7JD.js} +1 -1
  16. package/dist/cdn/{5TLZJ44V.js → 4XXCMSYK.js} +1 -1
  17. package/dist/cdn/{EDVESYWS.js → 5BRHCY56.js} +1 -1
  18. package/dist/cdn/{VYOTQ57Z.js → 5F5N45N2.js} +1 -1
  19. package/dist/cdn/{AXKBFCNE.js → 5HQW2B4L.js} +1 -1
  20. package/dist/cdn/{FLRXMVF6.js → 5J5YPAQF.js} +1 -1
  21. package/dist/cdn/{J6NGVSKR.js → 5MJOA2EC.js} +1 -1
  22. package/dist/cdn/{ZWWFCCZ7.js → 5Z6Y27PN.js} +1 -1
  23. package/dist/cdn/{A5BV4RXA.js → 6M54QVXX.js} +1 -1
  24. package/dist/cdn/{X2KGYKIA.js → 7CTKDBNP.js} +1 -1
  25. package/dist/cdn/{74BKHZU7.js → 7KZDKRE5.js} +1 -1
  26. package/dist/cdn/{XH36YHWX.js → AC3VJGBR.js} +1 -1
  27. package/dist/cdn/{MYKQDV34.js → AH2ILKOU.js} +1 -1
  28. package/dist/cdn/{KBAOMH37.js → ARJXIE5E.js} +1 -1
  29. package/dist/cdn/{2V5PWFGL.js → AV2KGCM3.js} +1 -1
  30. package/dist/cdn/{5OIVOI4E.js → B255QVJJ.js} +1 -1
  31. package/dist/cdn/{NE4W2KYY.js → BC2RGQAT.js} +1 -1
  32. package/dist/cdn/{XGOD2THM.js → BKETK56P.js} +1 -1
  33. package/dist/cdn/{PIPT523T.js → BQXZQXDH.js} +1 -1
  34. package/dist/cdn/{Q45HAOK7.js → BUA4VQLY.js} +1 -1
  35. package/dist/cdn/{FH3ISPWF.js → BXPPKXA4.js} +1 -1
  36. package/dist/cdn/C5UFPB7M.js +2 -0
  37. package/dist/cdn/{HURRNHB4.js → C7G4TGZX.js} +1 -1
  38. package/dist/cdn/{46V4FBEL.js → CARY3C4R.js} +1 -1
  39. package/dist/cdn/{Y3AQSDDG.js → CCXEESJV.js} +1 -1
  40. package/dist/cdn/{LJVNR3MM.js → CF6R3CEF.js} +1 -1
  41. package/dist/cdn/CHVPHDET.js +2 -0
  42. package/dist/cdn/{M7C3FAEE.js → CKNWJGRW.js} +1 -1
  43. package/dist/cdn/CMY74TQR.js +2 -0
  44. package/dist/cdn/{MKTDHS2D.js → CORQ5EDZ.js} +1 -1
  45. package/dist/cdn/{4QUJLWDM.js → CP4Z56ZR.js} +1 -1
  46. package/dist/cdn/{XQKJ2MAY.js → CTLPGOB7.js} +1 -1
  47. package/dist/cdn/{XWQGS5WX.js → CYYQXD64.js} +1 -1
  48. package/dist/cdn/{CPRYH6HJ.js → D7PUB2VW.js} +1 -1
  49. package/dist/cdn/{2KQYBSYT.js → DFHWYAUO.js} +1 -1
  50. package/dist/cdn/{ILPS2EH6.js → DGXWUFHV.js} +1 -1
  51. package/dist/cdn/{XWVX33VP.js → DM5PCYTC.js} +1 -1
  52. package/dist/cdn/{FW4A2RXA.js → DYLGNP2R.js} +1 -1
  53. package/dist/cdn/{GFTCJY52.js → EPBMP22J.js} +1 -1
  54. package/dist/cdn/{RWUXB3VT.js → EW27G33J.js} +1 -1
  55. package/dist/cdn/{QSAWZORD.js → EWIM5HH4.js} +1 -1
  56. package/dist/cdn/{FP6LX7PQ.js → F2DLFMMQ.js} +1 -1
  57. package/dist/cdn/{XMMZONMQ.js → FSYJWUBV.js} +1 -1
  58. package/dist/cdn/{VI4U7JDU.js → FWMASCBJ.js} +1 -1
  59. package/dist/cdn/{5MF7KGEH.js → G2WKLE63.js} +1 -1
  60. package/dist/cdn/{QCU7UPIO.js → GBYDFEYR.js} +1 -1
  61. package/dist/cdn/{IKKOQYJ3.js → GCQOLCYX.js} +1 -1
  62. package/dist/cdn/{ASUBNSLW.js → GLB7VDX7.js} +1 -1
  63. package/dist/cdn/{5P3KUKVG.js → GWO7M4CB.js} +1 -1
  64. package/dist/cdn/{ECQHUL2I.js → HHOCH2WQ.js} +1 -1
  65. package/dist/cdn/{YIYK2AH7.js → HPI37X3H.js} +1 -1
  66. package/dist/cdn/HUHXPX4S.js +2 -0
  67. package/dist/cdn/{IKHJ3B3O.js → I2YZCTNB.js} +1 -1
  68. package/dist/cdn/I62TONNU.js +2 -0
  69. package/dist/cdn/{DZ3BSHVB.js → IC76575N.js} +1 -1
  70. package/dist/cdn/{F6A3EV5Z.js → IKJKNZRO.js} +1 -1
  71. package/dist/cdn/{LXNSAHEI.js → IOQX4VTU.js} +1 -1
  72. package/dist/cdn/{5SMFDB2H.js → IWFPWFJR.js} +1 -1
  73. package/dist/cdn/{64Q6HGDE.js → JACGCENG.js} +1 -1
  74. package/dist/cdn/{BPEX76AH.js → JJRBBNII.js} +1 -1
  75. package/dist/cdn/{KFBRWS3D.js → JL6EDIGB.js} +1 -1
  76. package/dist/cdn/{YPXCM33T.js → JMOU4F7W.js} +1 -1
  77. package/dist/cdn/{XVSPVAAK.js → JNWSTJU6.js} +1 -1
  78. package/dist/cdn/{L4UV3JUD.js → JOSZJ4U5.js} +1 -1
  79. package/dist/cdn/{ECM52CXF.js → JXHQEAMO.js} +1 -1
  80. package/dist/cdn/{FA3N4SCO.js → KAINKHTB.js} +1 -1
  81. package/dist/cdn/{PZ2JFTG3.js → L4565LYV.js} +1 -1
  82. package/dist/cdn/{PKZQRMZP.js → L7ZU6UHP.js} +1 -1
  83. package/dist/cdn/{2ZHE6WYE.js → LQPCOJZC.js} +1 -1
  84. package/dist/cdn/{MJULDZYK.js → MFPSZIXT.js} +1 -1
  85. package/dist/cdn/{UR3E5C47.js → MHDQTRTS.js} +1 -1
  86. package/dist/cdn/{TVOZYOEI.js → MU324X7S.js} +1 -1
  87. package/dist/cdn/{5ERAQVFI.js → N5DDKO3N.js} +1 -1
  88. package/dist/cdn/{Y5ML7MYH.js → NKZDXCA3.js} +1 -1
  89. package/dist/cdn/{OHEDJJP3.js → NNVS72ZQ.js} +1 -1
  90. package/dist/cdn/{O4YDLMH4.js → NO2IBH5N.js} +1 -1
  91. package/dist/cdn/{ZMPSTGQA.js → NTTXPITY.js} +1 -1
  92. package/dist/cdn/NUPS67PK.js +2 -0
  93. package/dist/cdn/{46YJO7ZX.js → NY4L6FEN.js} +1 -1
  94. package/dist/cdn/{I7GYAHCX.js → O7X3EP3R.js} +1 -1
  95. package/dist/cdn/{45GYNS4N.js → OGL4GEZF.js} +1 -1
  96. package/dist/cdn/{HAJB6MIB.js → OH6YFLLX.js} +1 -1
  97. package/dist/cdn/{O6PZ7XSR.js → P6AYQBI6.js} +1 -1
  98. package/dist/cdn/{CS5FMS2X.js → PFQXFR3J.js} +1 -1
  99. package/dist/cdn/{77P5NIL6.js → PQIVVLWM.js} +1 -1
  100. package/dist/cdn/{2R5575FD.js → PT3URJPT.js} +1 -1
  101. package/dist/cdn/{HTYBEKT4.js → Q6D2HYAM.js} +1 -1
  102. package/dist/cdn/{G2DHRTQC.js → Q74VIYYT.js} +1 -1
  103. package/dist/cdn/{4NKWSPPP.js → QNANJC5N.js} +1 -1
  104. package/dist/cdn/{G3IACNMC.js → QURCJOLS.js} +1 -1
  105. package/dist/cdn/{G3MFBUAJ.js → QZXRRHZI.js} +1 -1
  106. package/dist/cdn/{55C3E7K2.js → R2HCYTV3.js} +1 -1
  107. package/dist/cdn/{UDGWJQLI.js → R4LR6JBT.js} +1 -1
  108. package/dist/cdn/{XXX7LPUI.js → RLQPAL3G.js} +1 -1
  109. package/dist/cdn/{2HNTBRGI.js → S6A7QIY2.js} +1 -1
  110. package/dist/cdn/{5UK4QYJH.js → S6CBIU4I.js} +1 -1
  111. package/dist/cdn/{YU26YM2P.js → S7RFXIID.js} +1 -1
  112. package/dist/cdn/{QFXBPBV6.js → T2LA26T7.js} +1 -1
  113. package/dist/cdn/{EUNOZE74.js → TFI32YIW.js} +1 -1
  114. package/dist/cdn/{DNCOUN25.js → TJKKXO65.js} +1 -1
  115. package/dist/cdn/{FMFRALQU.js → TTBDTS7V.js} +1 -1
  116. package/dist/cdn/{WVDLNASH.js → TWVG44TI.js} +1 -1
  117. package/dist/cdn/{5YMFALSV.js → TZEYHRND.js} +1 -1
  118. package/dist/cdn/{WYHTLF5H.js → U6OTDRDG.js} +1 -1
  119. package/dist/cdn/{FVWMPMHM.js → U7OV6L43.js} +1 -1
  120. package/dist/cdn/{3QDH4BSH.js → UF2N6ABQ.js} +1 -1
  121. package/dist/cdn/{XY6ZZY3N.js → UFPS5THO.js} +1 -1
  122. package/dist/cdn/{E7ZJND2K.js → UJQUDROZ.js} +1 -1
  123. package/dist/cdn/{G4OJO3U4.js → UJRHNVSJ.js} +1 -1
  124. package/dist/cdn/{PX6CN3BM.js → UMVL2A7E.js} +1 -1
  125. package/dist/cdn/{VHNQUJ3I.js → USMDWOOR.js} +1 -1
  126. package/dist/cdn/{JWS6J7PU.js → UZLV6ZKB.js} +1 -1
  127. package/dist/cdn/{5HLTQ2LF.js → VFE65IIH.js} +1 -1
  128. package/dist/cdn/{GTSHC732.js → VIAY4ZRC.js} +1 -1
  129. package/dist/cdn/{5TANECZK.js → VMUOIKWP.js} +1 -1
  130. package/dist/cdn/{3Z5JAFWG.js → VXQU67VG.js} +1 -1
  131. package/dist/cdn/{FRW722GZ.js → WV7Y7ZAG.js} +1 -1
  132. package/dist/cdn/{H5OQSDKX.js → X4J4PEMW.js} +1 -1
  133. package/dist/cdn/{SVCYJ4XS.js → XCKTCFWS.js} +1 -1
  134. package/dist/cdn/{ZFKR3EYV.js → XFLOOJCN.js} +1 -1
  135. package/dist/cdn/{SQVIEOWT.js → XI3FBKU5.js} +1 -1
  136. package/dist/cdn/{RQUJRPWK.js → XJQE4TBM.js} +1 -1
  137. package/dist/cdn/{CM6N5CTY.js → XL7EXU56.js} +1 -1
  138. package/dist/cdn/XSDBVOII.js +2 -0
  139. package/dist/cdn/{YVOGB4KL.js → XUGBNEVM.js} +1 -1
  140. package/dist/cdn/{YKKTX575.js → XZ3BWCEM.js} +1 -1
  141. package/dist/cdn/Y6TCI7PY.js +2 -0
  142. package/dist/cdn/{EMVLBTN2.js → YM3XWOJY.js} +1 -1
  143. package/dist/cdn/{7R2AK6N6.js → YZTUQM6P.js} +1 -1
  144. package/dist/cdn/{FFGBSJ3K.js → Z32RDX4L.js} +1 -1
  145. package/dist/cdn/Z3TMJ6KM.js +2 -0
  146. package/dist/cdn/{ZBDHEOSY.js → ZN2URSJV.js} +1 -1
  147. package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
  148. package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
  149. package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
  150. package/dist/cdn/assets/icon/fireIndex16.json +1 -0
  151. package/dist/cdn/assets/icon/fireIndex24.json +1 -0
  152. package/dist/cdn/assets/icon/fireIndex32.json +1 -0
  153. package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
  154. package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
  155. package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
  156. package/dist/cdn/assets/icon/returnToDefault16.json +1 -1
  157. package/dist/cdn/assets/icon/returnToDefault32.json +1 -1
  158. package/dist/cdn/assets/icon/smartSearch16.json +1 -0
  159. package/dist/cdn/assets/icon/smartSearch24.json +1 -0
  160. package/dist/cdn/assets/icon/smartSearch32.json +1 -0
  161. package/dist/cdn/assets/icon/snowIndex16.json +1 -0
  162. package/dist/cdn/assets/icon/snowIndex24.json +1 -0
  163. package/dist/cdn/assets/icon/snowIndex32.json +1 -0
  164. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
  165. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
  166. package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
  167. package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
  168. package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
  169. package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
  170. package/dist/cdn/assets/input/t9n/messages.en.json +1 -1
  171. package/dist/cdn/assets/input/t9n/messages.json +1 -1
  172. package/dist/cdn/assets/input-number/t9n/messages.en.json +1 -1
  173. package/dist/cdn/assets/input-number/t9n/messages.json +1 -1
  174. package/dist/cdn/assets/input-text/t9n/messages.en.json +1 -1
  175. package/dist/cdn/assets/input-text/t9n/messages.json +1 -1
  176. package/dist/cdn/index.js +1 -1
  177. package/dist/chunks/ClearButton.js +1 -1
  178. package/dist/chunks/resources12.js +27 -0
  179. package/dist/chunks/runtime.js +4 -4
  180. package/dist/chunks/useSizeOverride.js +1 -1
  181. package/dist/chunks/useTime.js +3 -0
  182. package/dist/components/calcite-action/customElement.d.ts +1 -5
  183. package/dist/components/calcite-action-group/customElement.d.ts +2 -4
  184. package/dist/components/calcite-action-menu/customElement.d.ts +2 -4
  185. package/dist/components/calcite-alert/customElement.d.ts +1 -3
  186. package/dist/components/calcite-autocomplete/customElement.d.ts +3 -9
  187. package/dist/components/calcite-autocomplete-item/customElement.d.ts +1 -1
  188. package/dist/components/calcite-block/customElement.d.ts +3 -5
  189. package/dist/components/calcite-button/customElement.d.ts +1 -5
  190. package/dist/components/calcite-checkbox/customElement.d.ts +1 -5
  191. package/dist/components/calcite-combobox/customElement.d.ts +3 -9
  192. package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
  193. package/dist/components/calcite-dialog/customElement.d.ts +1 -3
  194. package/dist/components/calcite-dropdown/customElement.d.ts +2 -4
  195. package/dist/components/calcite-filter/customElement.js +1 -1
  196. package/dist/components/calcite-flow-item/customElement.d.ts +2 -4
  197. package/dist/components/calcite-icon/customElement.d.ts +2 -2
  198. package/dist/components/calcite-icon/customElement.js +4 -4
  199. package/dist/components/calcite-inline-editable/customElement.d.ts +1 -1
  200. package/dist/components/calcite-inline-editable/customElement.js +4 -2
  201. package/dist/components/calcite-input/customElement.d.ts +23 -24
  202. package/dist/components/calcite-input/customElement.js +14 -12
  203. package/dist/components/calcite-input-date-picker/customElement.d.ts +17 -23
  204. package/dist/components/calcite-input-date-picker/customElement.js +23 -23
  205. package/dist/components/calcite-input-message/customElement.d.ts +1 -1
  206. package/dist/components/calcite-input-number/customElement.d.ts +22 -25
  207. package/dist/components/calcite-input-number/customElement.js +14 -12
  208. package/dist/components/calcite-input-text/customElement.d.ts +18 -19
  209. package/dist/components/calcite-input-text/customElement.js +3 -3
  210. package/dist/components/calcite-input-time-picker/customElement.d.ts +11 -13
  211. package/dist/components/calcite-input-time-picker/customElement.js +34 -10
  212. package/dist/components/calcite-input-time-zone/customElement.d.ts +9 -15
  213. package/dist/components/calcite-input-time-zone/customElement.js +11 -9
  214. package/dist/components/calcite-list-item/customElement.d.ts +1 -3
  215. package/dist/components/calcite-meter/customElement.d.ts +1 -3
  216. package/dist/components/calcite-panel/customElement.d.ts +4 -6
  217. package/dist/components/calcite-popover/customElement.d.ts +2 -4
  218. package/dist/components/calcite-radio-button/customElement.d.ts +1 -5
  219. package/dist/components/calcite-rating/customElement.d.ts +1 -5
  220. package/dist/components/calcite-segmented-control/customElement.d.ts +1 -5
  221. package/dist/components/calcite-select/customElement.d.ts +1 -5
  222. package/dist/components/calcite-sheet/customElement.d.ts +1 -3
  223. package/dist/components/calcite-slider/customElement.d.ts +13 -17
  224. package/dist/components/calcite-slider/customElement.js +19 -20
  225. package/dist/components/calcite-sort-handle/customElement.d.ts +2 -4
  226. package/dist/components/calcite-split-button/customElement.d.ts +12 -14
  227. package/dist/components/calcite-split-button/customElement.js +1 -1
  228. package/dist/components/calcite-stepper/customElement.d.ts +1 -1
  229. package/dist/components/calcite-stepper/customElement.js +10 -10
  230. package/dist/components/calcite-stepper-item/customElement.d.ts +3 -3
  231. package/dist/components/calcite-stepper-item/customElement.js +8 -24
  232. package/dist/components/calcite-swatch/customElement.d.ts +1 -1
  233. package/dist/components/calcite-swatch/customElement.js +2 -2
  234. package/dist/components/calcite-swatch-group/customElement.js +8 -6
  235. package/dist/components/calcite-switch/customElement.d.ts +6 -10
  236. package/dist/components/calcite-table-header/customElement.d.ts +1 -1
  237. package/dist/components/calcite-text-area/customElement.d.ts +1 -5
  238. package/dist/components/calcite-tile/customElement.d.ts +1 -1
  239. package/dist/components/calcite-tooltip/customElement.d.ts +1 -3
  240. package/dist/controllers/useTime.d.ts +3 -0
  241. package/dist/docs/api.json +1 -1
  242. package/dist/docs/docs.json +1 -1
  243. package/dist/docs/translations.json +1 -1
  244. package/dist/docs/vscode.html-custom-data.json +1 -1
  245. package/dist/docs/web-types.json +1 -1
  246. package/dist/loader.js +1 -1
  247. package/dist/types/lumina.d.ts +1 -1
  248. package/dist/types/preact.d.ts +1 -1
  249. package/dist/types/react.d.ts +1 -1
  250. package/dist/types/stencil.d.ts +1 -1
  251. package/package.json +4 -3
  252. package/dist/cdn/2QPDMP77.js +0 -2
  253. package/dist/cdn/3E5PTGBR.js +0 -2
  254. package/dist/cdn/3I6JOWLC.js +0 -2
  255. package/dist/cdn/45OM3TVW.js +0 -2
  256. package/dist/cdn/4KPRVK5B.js +0 -2
  257. package/dist/cdn/LGHZN3MI.js +0 -2
  258. package/dist/cdn/PYIKGUJ2.js +0 -2
  259. package/dist/cdn/QSMEIRS5.js +0 -2
  260. package/dist/cdn/VFOFNA4N.js +0 -2
@@ -15,10 +15,11 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
15
15
  import { u as useTime } from "../../chunks/useTime.js";
16
16
  import { u as useInteractive } from "../../chunks/useInteractive.js";
17
17
  import { u as useForm } from "../../chunks/useForm.js";
18
- const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}calcite-time-picker{--calcite-time-picker-color: var(--calcite-input-time-picker-digit-text-color);--calcite-time-picker-icon-color: var(--calcite-input-time-picker-digit-icon-color);--calcite-time-picker-border-color: var(--calcite-input-time-picker-border-color);--calcite-time-picker-button-background-color-hover: var(--calcite-input-time-picker-action-background-color-hover);--calcite-time-picker-button-background-color-press: var(--calcite-input-time-picker-action-background-color-press);--calcite-time-picker-input-border-color-hover: var(--calcite-input-time-picker-digit-border-color-hover);--calcite-time-picker-input-border-color-press: var(--calcite-input-time-picker-digit-border-color-press)}.container{--calcite-icon-color: var( --calcite-input-time-picker-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) );align-items:center;background-color:var(--calcite-input-time-picker-input-background-color, var(--calcite-color-foreground-1));border:1px solid var(--calcite-input-time-picker-input-border-color, var(--calcite-color-border-input));border-radius:var(--calcite-input-time-picker-input-corner-radius, var(--calcite-corner-radius-none));box-shadow:var(--calcite-input-time-picker-input-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:flex;color:var(--calcite-input-time-picker-input-text-color, var(--calcite-color-text-1));flex-wrap:nowrap;font-weight:var(--calcite-font-weight-normal);inline-size:100%;padding-block:var(--calcite-spacing-base);-webkit-user-select:none;user-select:none}.container:focus-within{border-color:var(--calcite-color-brand);outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.read-only{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.clock-icon{--calcite-icon-color: var( --calcite-input-time-picker-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) )}.hour-suffix,.minute-suffix,.second-suffix{white-space:pre}.input-container{display:flex;flex-grow:1}.input{align-items:center;display:flex;block-size:100%;justify-content:center;min-inline-size:max-content}.input.empty{inline-size:var(--calcite-spacing-xl)}.input:focus,.input:hover:focus{background-color:Highlight;color:HighlightText;outline:2px solid transparent;outline-offset:2px}.toggle-icon{--calcite-icon-color: var(--calcite-input-time-picker-icon-color, var(--calcite-color-text-3));align-items:center;block-size:24px;cursor:pointer;display:flex;inline-size:24px;justify-content:center}.toggle-icon:hover{--calcite-icon-color: var(--calcite-input-time-picker-icon-color-hover, var(--calcite-color-text-1))}:host([scale=s]) .container{block-size:1.5rem;font-size:var(--calcite-font-size-sm);gap:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .input-container{line-height:1rem}:host([scale=m]) .container{block-size:2rem;font-size:var(--calcite-font-size);gap:var(--calcite-spacing-md);padding-inline-start:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .input-container{line-height:1.5rem}:host([scale=l]) .container{block-size:2.75rem;font-size:var(--calcite-font-size-md);gap:var(--calcite-spacing-lg);padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .input-container{line-height:2.25rem}:host([status=invalid]) .container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) .container:focus-within{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}calcite-time-picker{--calcite-time-picker-background-color: var(--calcite-input-time-picker-background-color);--calcite-time-picker-border-color: var(--calcite-input-time-picker-border-color, transparent);--calcite-time-picker-corner-radius: var( --calcite-input-time-picker-corner-radius, var(--calcite-corner-radius-round) )}calcite-popover{--calcite-popover-corner-radius: var(--calcite-input-time-picker-corner-radius, var(--calcite-corner-radius-round))}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
18
+ const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}calcite-time-picker{--calcite-time-picker-color: var(--calcite-input-time-picker-digit-text-color);--calcite-time-picker-icon-color: var(--calcite-input-time-picker-digit-icon-color);--calcite-time-picker-border-color: var(--calcite-input-time-picker-border-color);--calcite-time-picker-button-background-color-hover: var(--calcite-input-time-picker-action-background-color-hover);--calcite-time-picker-button-background-color-press: var(--calcite-input-time-picker-action-background-color-press);--calcite-time-picker-input-border-color-hover: var(--calcite-input-time-picker-digit-border-color-hover);--calcite-time-picker-input-border-color-press: var(--calcite-input-time-picker-digit-border-color-press)}.container{--calcite-icon-color: var( --calcite-input-time-picker-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) );align-items:center;background-color:var(--calcite-input-time-picker-input-background-color, var(--calcite-color-foreground-1));border:1px solid var(--calcite-input-time-picker-input-border-color, var(--calcite-color-border-input));border-radius:var(--calcite-input-time-picker-input-corner-radius, var(--calcite-corner-radius-none));box-shadow:var(--calcite-input-time-picker-input-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:flex;color:var(--calcite-input-time-picker-input-text-color, var(--calcite-color-text-1));flex-wrap:nowrap;font-weight:var(--calcite-font-weight-normal);inline-size:100%;padding-block:var(--calcite-spacing-base);-webkit-user-select:none;user-select:none}.container:focus-within{border-color:var(--calcite-color-brand);outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.read-only{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.content-container{display:grid;flex-grow:1}.content-container .input-container,.content-container .placeholder{grid-column:1;grid-row:1}.content-container .input-container--hidden{opacity:0}.clock-icon{--calcite-icon-color: var( --calcite-input-time-picker-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-3)) )}.hour-suffix,.minute-suffix,.second-suffix{white-space:pre}.placeholder{color:var(--calcite-color-text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-container{display:flex;flex-grow:1}.input{align-items:center;display:flex;block-size:100%;justify-content:center;min-inline-size:max-content}.input.empty{inline-size:var(--calcite-spacing-xl)}.input:focus,.input:hover:focus{background-color:Highlight;color:HighlightText;outline:2px solid transparent;outline-offset:2px}.toggle-icon{--calcite-icon-color: var(--calcite-input-time-picker-icon-color, var(--calcite-color-text-3));align-items:center;block-size:24px;cursor:pointer;display:flex;inline-size:24px;justify-content:center}.toggle-icon:hover{--calcite-icon-color: var(--calcite-input-time-picker-icon-color-hover, var(--calcite-color-text-1))}:host([scale=s]) .container{block-size:1.5rem;font-size:var(--calcite-font-size-sm);gap:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s]) .input-container,:host([scale=s]) .placeholder{line-height:1rem}:host([scale=m]) .container{block-size:2rem;font-size:var(--calcite-font-size);gap:var(--calcite-spacing-md);padding-inline-start:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .input-container,:host([scale=m]) .placeholder{line-height:1.5rem}:host([scale=l]) .container{block-size:2.75rem;font-size:var(--calcite-font-size-md);gap:var(--calcite-spacing-lg);padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .input-container,:host([scale=l]) .placeholder{line-height:2.25rem}:host([status=invalid]) .container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) .container:focus-within{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}calcite-time-picker{--calcite-time-picker-background-color: var(--calcite-input-time-picker-background-color);--calcite-time-picker-border-color: var(--calcite-input-time-picker-border-color, transparent);--calcite-time-picker-corner-radius: var( --calcite-input-time-picker-corner-radius, var(--calcite-corner-radius-round) )}calcite-popover{--calcite-popover-corner-radius: var(--calcite-input-time-picker-corner-radius, var(--calcite-corner-radius-round))}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`;
19
19
  const CSS = {
20
20
  clockIcon: "clock-icon",
21
21
  container: "container",
22
+ contentContainer: "content-container",
22
23
  decimalSeparator: "decimal-separator",
23
24
  empty: "empty",
24
25
  fractionalSecond: "fractional-second",
@@ -26,9 +27,11 @@ const CSS = {
26
27
  hourSuffix: "hour-suffix",
27
28
  input: "input",
28
29
  inputContainer: "input-container",
30
+ inputContainerHidden: "input-container--hidden",
29
31
  meridiem: "meridiem",
30
32
  minute: "minute",
31
33
  minuteSuffix: "minute-suffix",
34
+ placeholder: "placeholder",
32
35
  readOnly: "read-only",
33
36
  second: "second",
34
37
  secondSuffix: "second-suffix",
@@ -61,6 +64,7 @@ class InputTimePicker extends LitElement {
61
64
  this.time = useTime(this);
62
65
  this.interactiveContainer = useInteractive(this);
63
66
  this.timePickerRef = createRef();
67
+ this.hasFocus = false;
64
68
  this.disabled = false;
65
69
  this.focusTrapDisabled = false;
66
70
  this.hourFormat = "user";
@@ -78,11 +82,13 @@ class InputTimePicker extends LitElement {
78
82
  this.calciteInputTimePickerClose = createEvent({ cancelable: false });
79
83
  this.calciteInputTimePickerOpen = createEvent({ cancelable: false });
80
84
  this.listen("blur", this.blurHandler);
85
+ this.listen("focus", this.focusHandler);
86
+ this.listen("focusout", this.focusOutHandler);
81
87
  this.listen("keydown", this.keyDownHandler);
82
88
  this.listen("calciteTimeChange", this.timeChangeHandler);
83
89
  }
84
90
  static {
85
- this.properties = { disabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hourFormat: [3, {}, { reflect: true }], label: 1, labelText: 1, max: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], name: 1, numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: 1, placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [11, {}, { reflect: true, type: Number }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
91
+ this.properties = { hasFocus: [16, {}, { state: true }], disabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], hourFormat: [3, {}, { reflect: true }], label: 1, labelText: 1, max: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], name: 1, numberingSystem: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: 1, placeholder: 1, placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], step: [11, {}, { reflect: true, type: Number }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [32, {}, { readOnly: true, attribute: false }], value: 1 };
86
92
  }
87
93
  static {
88
94
  this.formAssociated = true;
@@ -93,6 +99,9 @@ class InputTimePicker extends LitElement {
93
99
  static {
94
100
  this.styles = styles;
95
101
  }
102
+ get showPlaceholder() {
103
+ return (this.placeholder && !this.hasFocus && !this.time.hasValue) ?? false;
104
+ }
96
105
  async reposition(delayed = false) {
97
106
  this.popoverEl?.reposition(delayed);
98
107
  }
@@ -136,12 +145,18 @@ class InputTimePicker extends LitElement {
136
145
  blurHandler() {
137
146
  this.changeEventHandler();
138
147
  }
148
+ focusHandler() {
149
+ this.hasFocus = true;
150
+ }
151
+ focusOutHandler() {
152
+ this.hasFocus = false;
153
+ }
139
154
  changeEventHandler() {
140
155
  const { previousEmittedValue, value } = this;
141
156
  if (previousEmittedValue !== value) {
142
157
  const changeEvent = this.calciteInputTimePickerChange.emit();
143
158
  if (changeEvent.defaultPrevented) {
144
- this.time.setValue(this.previousEmittedValue);
159
+ this.time.setValue(this.previousEmittedValue ?? null);
145
160
  } else {
146
161
  this.previousEmittedValue = value;
147
162
  }
@@ -229,6 +244,12 @@ class InputTimePicker extends LitElement {
229
244
  }
230
245
  }
231
246
  }
247
+ mouseDownHandler(event) {
248
+ if (this.showPlaceholder) {
249
+ event.preventDefault();
250
+ this.setFocus();
251
+ }
252
+ }
232
253
  onLabelClick() {
233
254
  this.setFocus();
234
255
  }
@@ -258,7 +279,7 @@ class InputTimePicker extends LitElement {
258
279
  this.open = false;
259
280
  }
260
281
  requestTimePickerUpdate() {
261
- this.timePickerRef.value.manager?.component.requestUpdate();
282
+ this.timePickerRef.value?.manager?.component.requestUpdate();
262
283
  }
263
284
  setCalcitePopoverEl(el) {
264
285
  this.popoverEl = el;
@@ -305,23 +326,26 @@ class InputTimePicker extends LitElement {
305
326
  return this.interactiveContainer({ disabled: this.disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-controls=${IDS.inputContainer} aria-labelledby=${IDS.inputContainer} class=${safeClassMap({
306
327
  [CSS.container]: true,
307
328
  [CSS.readOnly]: readOnly
308
- })} role=combobox ${ref(this.containerRef)}><calcite-icon class=${safeClassMap(CSS.clockIcon)} .icon=${ICONS.clock} .scale=${scale === "l" ? "m" : "s"}></calcite-icon><div aria-label=${getLabelText(this) ?? nothing} .ariaRequired=${this.required} class=${safeClassMap(CSS.inputContainer)} dir=ltr id=${IDS.inputContainer} role=group>${showMeridiem && meridiemStart && this.renderMeridiem() || ""}<span aria-label=${this.messages.hour ?? nothing} aria-valuemax=23 aria-valuemin=1 aria-valuenow=${(hourIsNumber && parseInt(hour) || "0") ?? nothing} aria-valuetext=${hour ?? nothing} class=${safeClassMap({
329
+ })} role=combobox ${ref(this.containerRef)}><calcite-icon class=${safeClassMap(CSS.clockIcon)} .icon=${ICONS.clock} .scale=${scale === "l" ? "m" : "s"}></calcite-icon><div class=${safeClassMap(CSS.contentContainer)}>${this.showPlaceholder && html`<div class=${safeClassMap(CSS.placeholder)}>${this.placeholder}</div>` || ""}<div aria-label=${getLabelText(this) ?? nothing} .ariaRequired=${this.required} class=${safeClassMap({
330
+ [CSS.inputContainer]: true,
331
+ [CSS.inputContainerHidden]: this.showPlaceholder
332
+ })} dir=ltr id=${IDS.inputContainer} role=group>${showMeridiem && meridiemStart && this.renderMeridiem() || ""}<span aria-label=${this.messages.hour ?? nothing} aria-valuemax=23 aria-valuemin=1 aria-valuenow=${(hourIsNumber && parseInt(hour) || "0") ?? nothing} aria-valuetext=${hour ?? nothing} class=${safeClassMap({
309
333
  [CSS.empty]: !localizedHour,
310
334
  [CSS.hour]: true,
311
335
  [CSS.input]: true
312
- })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleHourKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.hourRef)}>${localizedHour || emptyPlaceholder}</span><span class=${safeClassMap(CSS.hourSuffix)}>${localizedHourSuffix}</span><span aria-label=${this.messages.minute ?? nothing} aria-valuemax=12 aria-valuemin=1 aria-valuenow=${(minuteIsNumber && parseInt(minute) || "0") ?? nothing} aria-valuetext=${minute ?? nothing} class=${safeClassMap({
336
+ })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleHourKeyDownEvent : void 0} @mousedown=${this.mouseDownHandler} role=spinbutton tabindex=0 ${ref(this.hourRef)}>${localizedHour || emptyPlaceholder}</span><span class=${safeClassMap(CSS.hourSuffix)}>${localizedHourSuffix}</span><span aria-label=${this.messages.minute ?? nothing} aria-valuemax=12 aria-valuemin=1 aria-valuenow=${(minuteIsNumber && parseInt(minute) || "0") ?? nothing} aria-valuetext=${minute ?? nothing} class=${safeClassMap({
313
337
  [CSS.empty]: !localizedMinute,
314
338
  [CSS.input]: true,
315
339
  [CSS.minute]: true
316
- })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMinuteKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.minuteRef)}>${localizedMinute || emptyPlaceholder}</span><span class=${safeClassMap(CSS.minuteSuffix)}>${localizedMinuteSuffix}</span>${showSecond && html`<span aria-label=${this.messages.second ?? nothing} aria-valuemax=59 aria-valuemin=0 aria-valuenow=${(secondIsNumber && parseInt(second) || "0") ?? nothing} aria-valuetext=${second ?? nothing} class=${safeClassMap({
340
+ })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMinuteKeyDownEvent : void 0} @mousedown=${this.mouseDownHandler} role=spinbutton tabindex=0 ${ref(this.minuteRef)}>${localizedMinute || emptyPlaceholder}</span><span class=${safeClassMap(CSS.minuteSuffix)}>${localizedMinuteSuffix}</span>${showSecond && html`<span aria-label=${this.messages.second ?? nothing} aria-valuemax=59 aria-valuemin=0 aria-valuenow=${(secondIsNumber && parseInt(second) || "0") ?? nothing} aria-valuetext=${second ?? nothing} class=${safeClassMap({
317
341
  [CSS.empty]: !localizedSecond,
318
342
  [CSS.input]: true,
319
343
  [CSS.second]: true
320
- })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleSecondKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.secondRef)}>${localizedSecond || emptyPlaceholder}</span>` || ""}${showFractionalSecond && html`<span class=${safeClassMap(CSS.decimalSeparator)}>${localizedDecimalSeparator}</span>` || ""}${showFractionalSecond && html`<span aria-label=${this.messages.fractionalSecond ?? nothing} aria-valuemax=999 aria-valuemin=1 aria-valuenow=${(fractionalSecondIsNumber && parseInt(fractionalSecond) || "0") ?? nothing} aria-valuetext=${localizedFractionalSecond ?? nothing} class=${safeClassMap({
344
+ })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleSecondKeyDownEvent : void 0} @mousedown=${this.mouseDownHandler} role=spinbutton tabindex=0 ${ref(this.secondRef)}>${localizedSecond || emptyPlaceholder}</span>` || ""}${showFractionalSecond && html`<span class=${safeClassMap(CSS.decimalSeparator)}>${localizedDecimalSeparator}</span>` || ""}${showFractionalSecond && html`<span aria-label=${this.messages.fractionalSecond ?? nothing} aria-valuemax=999 aria-valuemin=1 aria-valuenow=${(fractionalSecondIsNumber && parseInt(fractionalSecond) || "0") ?? nothing} aria-valuetext=${localizedFractionalSecond ?? nothing} class=${safeClassMap({
321
345
  [CSS.empty]: !localizedFractionalSecond,
322
346
  [CSS.fractionalSecond]: true,
323
347
  [CSS.input]: true
324
- })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleFractionalSecondKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.fractionalSecondRef)}>${localizedFractionalSecond || "".padStart(decimalPlaces(this.step), "-")}</span>` || ""}${localizedSecondSuffix && html`<span class=${safeClassMap(CSS.secondSuffix)}>${localizedSecondSuffix}</span>` || ""}${showMeridiem && !meridiemStart && this.renderMeridiem() || ""}</div>${!this.readOnly && this.renderToggleIcon(this.open) || ""}</div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{ initialFocus: false }} .label=${messages.chooseTime} lang=${this.messages._lang ?? nothing} offset-distance=0 @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} pointer-disabled .referenceElement=${this.containerRef.value} trigger-disabled ${ref(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.time.hourFormat} lang=${this.messages._lang ?? nothing} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open ? void 0 : -1) ?? nothing} .time=${this.time} .value=${this.value} ${ref(this.timePickerRef)}></calcite-time-picker></calcite-popover>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
348
+ })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleFractionalSecondKeyDownEvent : void 0} @mousedown=${this.mouseDownHandler} role=spinbutton tabindex=0 ${ref(this.fractionalSecondRef)}>${localizedFractionalSecond || "".padStart(decimalPlaces(this.step), "-")}</span>` || ""}${localizedSecondSuffix && html`<span class=${safeClassMap(CSS.secondSuffix)}>${localizedSecondSuffix}</span>` || ""}${showMeridiem && !meridiemStart && this.renderMeridiem() || ""}</div></div>${!this.readOnly && this.renderToggleIcon(this.open) || ""}</div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .focusTrapOptions=${{ initialFocus: false }} .label=${messages.chooseTime} lang=${this.messages._lang ?? nothing} offset-distance=0 @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} pointer-disabled .referenceElement=${this.containerRef.value} trigger-disabled ${ref(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.time.hourFormat ?? void 0} lang=${this.messages._lang ?? nothing} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open ? void 0 : -1) ?? nothing} .time=${this.time} .value=${this.value} ${ref(this.timePickerRef)}></calcite-time-picker></calcite-popover>${this.validationMessage && this.status === "invalid" ? Validation({ icon: this.validationIcon, id: IDS.validationMessage, message: this.validationMessage, scale: this.scale, status: this.status }) : null}` });
325
349
  }
326
350
  renderMeridiem() {
327
351
  const { handleMeridiemKeyDownEvent, localizedMeridiem, meridiem } = this.time;
@@ -330,7 +354,7 @@ class InputTimePicker extends LitElement {
330
354
  [CSS.empty]: !localizedMeridiem,
331
355
  [CSS.input]: true,
332
356
  [CSS.meridiem]: true
333
- })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMeridiemKeyDownEvent : void 0} role=spinbutton tabindex=0 ${ref(this.meridiemRef)}>${localizedMeridiem || "--"}</span>`;
357
+ })} @focus=${this.timePartFocusHandler} @keydown=${isInteractive ? handleMeridiemKeyDownEvent : void 0} @mousedown=${this.mouseDownHandler} role=spinbutton tabindex=0 ${ref(this.meridiemRef)}>${localizedMeridiem || "--"}</span>`;
334
358
  }
335
359
  renderToggleIcon(open) {
336
360
  return html`<span class=${safeClassMap(CSS.toggleIcon)} @click=${this.toggleIconClickHandler}><calcite-icon .icon=${open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></span>`;
@@ -21,14 +21,10 @@ export abstract class InputTimeZone extends LitElement {
21
21
  * @default false
22
22
  */
23
23
  accessor disabled: boolean;
24
- /**
25
- * Specifies the `id` of the component's associated form.
26
- *
27
- * When not set, the component is associated with its ancestor form element, if one exists.
28
- */
29
- accessor form: string;
24
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
25
+ accessor form: string | undefined;
30
26
  /** Specifies the component's label text. */
31
- accessor labelText: string;
27
+ accessor labelText: string | undefined;
32
28
  /**
33
29
  * Specifies the component's maximum number of options to display before displaying a scrollbar.
34
30
  *
@@ -655,7 +651,7 @@ export abstract class InputTimeZone extends LitElement {
655
651
  */
656
652
  accessor mode: TimeZoneMode;
657
653
  /** Specifies the name of the component. Required to pass the component's `value` on form submission. */
658
- accessor name: string;
654
+ accessor name: string | undefined;
659
655
  /**
660
656
  * When `mode` is `"offset"`, specifies how the offset will be displayed, where
661
657
  *
@@ -695,7 +691,7 @@ export abstract class InputTimeZone extends LitElement {
695
691
  *
696
692
  * @see [MDN - Date.prototype.toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString).
697
693
  */
698
- accessor referenceDate: Date | string;
694
+ accessor referenceDate: Date | string | undefined;
699
695
  /**
700
696
  * Specifies the size of the component.
701
697
  *
@@ -709,18 +705,16 @@ export abstract class InputTimeZone extends LitElement {
709
705
  */
710
706
  accessor status: Status;
711
707
  /**
712
- * When `true` and the component is `open`, disables top layer placement.
713
- *
714
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
708
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
715
709
  *
716
710
  * @default false
717
711
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
718
712
  */
719
713
  accessor topLayerDisabled: boolean;
720
714
  /** Specifies the validation icon to display under the component. */
721
- accessor validationIcon: IconName | boolean;
715
+ accessor validationIcon: IconName | boolean | undefined;
722
716
  /** Specifies the validation message to display under the component. */
723
- accessor validationMessage: string;
717
+ accessor validationMessage: string | undefined;
724
718
  /**
725
719
  * The component's current validation state.
726
720
  *
@@ -734,7 +728,7 @@ export abstract class InputTimeZone extends LitElement {
734
728
  *
735
729
  * @see [Identifying time zones and zone offsets](https://www.w3.org/International/core/2005/09/timezone.html#:~:text=What%20is%20a%20%22zone%20offset,or%20%22%2D%22%20from%20UTC).
736
730
  */
737
- accessor value: string;
731
+ accessor value: string | undefined;
738
732
  /**
739
733
  * Sets focus on the component.
740
734
  *
@@ -167,7 +167,7 @@ function getMessageOrKeyFallback(messages, key) {
167
167
  return messages[key] || key;
168
168
  }
169
169
  function getCity(timeZone) {
170
- return timeZone.split("/").pop();
170
+ return timeZone.split("/").pop() ?? "";
171
171
  }
172
172
  function toUserFriendlyName(timeZoneName) {
173
173
  return timeZoneName.replace(/_/g, " ");
@@ -190,7 +190,7 @@ function flattenTimeZoneItems(timeZoneItems) {
190
190
  return hasGroups(timeZoneItems) ? timeZoneItems.flatMap((item) => item.items) : timeZoneItems;
191
191
  }
192
192
  function findTimeZoneItemByProp(timeZoneItems, prop, valueToMatch) {
193
- return valueToMatch == null ? null : flattenTimeZoneItems(timeZoneItems).find(
193
+ return valueToMatch === void 0 || timeZoneItems === void 0 ? void 0 : flattenTimeZoneItems(timeZoneItems).find(
194
194
  (item) => (
195
195
  // intentional == to match string to number
196
196
  item[prop] == valueToMatch
@@ -304,7 +304,7 @@ class InputTimeZone extends LitElement {
304
304
  if (!normalized) {
305
305
  if (this.clearable) {
306
306
  this._value = normalized;
307
- this.selectedTimeZoneItem = null;
307
+ this.selectedTimeZoneItem = void 0;
308
308
  return;
309
309
  }
310
310
  this._value = oldValue;
@@ -326,7 +326,9 @@ class InputTimeZone extends LitElement {
326
326
  if (this.mode !== "region" || !this.selectedTimeZoneItem) {
327
327
  return;
328
328
  }
329
- this.comboboxRef.value.selectedItems[0].heading = this.getItemLabel(this.selectedTimeZoneItem, open);
329
+ if (this.comboboxRef.value) {
330
+ this.comboboxRef.value.selectedItems[0].heading = this.getItemLabel(this.selectedTimeZoneItem, open);
331
+ }
330
332
  }
331
333
  onComboboxBeforeClose(event) {
332
334
  event.stopPropagation();
@@ -346,13 +348,13 @@ class InputTimeZone extends LitElement {
346
348
  if (!selectedItem) {
347
349
  this._value = "";
348
350
  this.requestUpdate("value", previousValue);
349
- this.selectedTimeZoneItem = null;
351
+ this.selectedTimeZoneItem = void 0;
350
352
  this.calciteInputTimeZoneChange.emit();
351
353
  return;
352
354
  }
353
- const selected = this.findTimeZoneItemByLabel(selectedItem.getAttribute("data-label"));
354
- const selectedValue = `${selected.value}`;
355
- if (this.value === selectedValue && selected.label === this.selectedTimeZoneItem.label) {
355
+ const selected = this.findTimeZoneItemByLabel(selectedItem.getAttribute("data-label") ?? void 0);
356
+ const selectedValue = selected?.value === void 0 ? void 0 : `${selected?.value}`;
357
+ if (this.value === selectedValue && selected?.label === this.selectedTimeZoneItem?.label) {
356
358
  return;
357
359
  }
358
360
  this._value = selectedValue;
@@ -382,7 +384,7 @@ class InputTimeZone extends LitElement {
382
384
  }
383
385
  updateTimeZoneSelection() {
384
386
  if (this.value === "" && this.clearable) {
385
- this.selectedTimeZoneItem = null;
387
+ this.selectedTimeZoneItem = void 0;
386
388
  return;
387
389
  }
388
390
  const fallbackValue = this.mode === "offset" ? getUserTimeZoneOffset() : getUserTimeZoneName();
@@ -97,9 +97,7 @@ export abstract class ListItem extends LitElement {
97
97
  */
98
98
  accessor sortHandleOpen: boolean;
99
99
  /**
100
- * When `true` and the component is `open`, disables top layer placement.
101
- *
102
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
100
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
103
101
  *
104
102
  * @default false
105
103
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
@@ -36,9 +36,7 @@ export abstract class Meter extends LitElement {
36
36
  */
37
37
  accessor fillType: MeterFillType;
38
38
  /**
39
- * Specifies the `id` of the component's associated form.
40
- *
41
- * When not set, the component is associated with its ancestor form element, if one exists.
39
+ * Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists.
42
40
  *
43
41
  * @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
44
42
  */
@@ -48,13 +48,13 @@ export abstract class Panel extends LitElement {
48
48
  /** Passes a function to run before the component closes. */
49
49
  accessor beforeClose: (() => Promise<void>) | undefined;
50
50
  /**
51
- * When `true`, displays a close button in the component.
51
+ * When `true`, displays a close button in the trailing side of the component's header.
52
52
  *
53
53
  * @default false
54
54
  */
55
55
  accessor closable: boolean;
56
56
  /**
57
- * When `true`, the component will be hidden.
57
+ * When `true`, hides the component.
58
58
  *
59
59
  * @default false
60
60
  */
@@ -103,7 +103,7 @@ export abstract class Panel extends LitElement {
103
103
  * @default false
104
104
  */
105
105
  accessor loading: boolean;
106
- /** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
106
+ /** Specifies the component's fallback `menuPlacement` when its initial or specified `menuPlacement` has insufficient space available. */
107
107
  accessor menuFlipPlacements: FlipPlacement[] | undefined;
108
108
  /**
109
109
  * When `true`, the action menu items in the `header-menu-actions` slot are open.
@@ -141,9 +141,7 @@ export abstract class Panel extends LitElement {
141
141
  */
142
142
  accessor scale: Scale;
143
143
  /**
144
- * When `true` and the component is `open`, disables top layer placement.
145
- *
146
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
144
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
147
145
  *
148
146
  * @default false
149
147
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
@@ -32,7 +32,7 @@ export abstract class Popover extends LitElement {
32
32
  * @default false
33
33
  */
34
34
  accessor flipDisabled: boolean;
35
- /** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
35
+ /** Specifies the component's fallback `placement` for slotted content when its initial or specified `placement` has insufficient space available. */
36
36
  accessor flipPlacements: FlipPlacement[] | undefined;
37
37
  /**
38
38
  * When `true`, prevents focus trapping.
@@ -117,9 +117,7 @@ export abstract class Popover extends LitElement {
117
117
  */
118
118
  accessor scale: Scale;
119
119
  /**
120
- * When `true` and the component is `open`, disables top layer placement.
121
- *
122
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
120
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
123
121
  *
124
122
  * @default false
125
123
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
@@ -21,11 +21,7 @@ export abstract class RadioButton extends LitElement {
21
21
  * @default false
22
22
  */
23
23
  accessor disabled: boolean;
24
- /**
25
- * Specifies the `id` of the component's associated form.
26
- *
27
- * When not set, the component is associated with its ancestor form element, if one exists.
28
- */
24
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
29
25
  accessor form: string | undefined;
30
26
  /** Specifies the component's label text. */
31
27
  accessor labelText: string | undefined;
@@ -24,11 +24,7 @@ export abstract class Rating extends LitElement {
24
24
  * @default false
25
25
  */
26
26
  accessor disabled: boolean;
27
- /**
28
- * Specifies the `id` of the component's associated form.
29
- *
30
- * When not set, the component is associated with its ancestor form element, if one exists.
31
- */
27
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
32
28
  accessor form: string | undefined;
33
29
  /** Specifies the component's label text. */
34
30
  accessor labelText: string | undefined;
@@ -22,11 +22,7 @@ export abstract class SegmentedControl extends LitElement {
22
22
  * @default false
23
23
  */
24
24
  accessor disabled: boolean;
25
- /**
26
- * Specifies the `id` of the component's associated form.
27
- *
28
- * When not set, the component is associated with its ancestor form element, if one exists.
29
- */
25
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
30
26
  accessor form: string;
31
27
  /** Specifies the component's label text. */
32
28
  accessor labelText: string;
@@ -23,11 +23,7 @@ export abstract class Select extends LitElement {
23
23
  * @default false
24
24
  */
25
25
  accessor disabled: boolean;
26
- /**
27
- * Specifies the `id` of the component's associated form.
28
- *
29
- * When not set, the component is associated with its ancestor form element, if one exists.
30
- */
26
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
31
27
  accessor form: string;
32
28
  /**
33
29
  * Specifies an accessible label for the component.
@@ -97,9 +97,7 @@ export abstract class Sheet extends LitElement {
97
97
  */
98
98
  accessor resizable: boolean;
99
99
  /**
100
- * When `true` and the component is `open`, disables top layer placement.
101
- *
102
- * Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
100
+ * When `true` and the component is `open`, disables top layer placement. Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
103
101
  *
104
102
  * @default false
105
103
  * @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
@@ -33,12 +33,8 @@ export abstract class Slider extends LitElement {
33
33
  * @default "start"
34
34
  */
35
35
  accessor fillPlacement: "start" | "none" | "end";
36
- /**
37
- * Specifies the `id` of the component's associated form.
38
- *
39
- * When not set, the component is associated with its ancestor form element, if one exists.
40
- */
41
- accessor form: string;
36
+ /** Specifies the `id` of the component's associated form. When not set, the component is associated with its ancestor form element, if one exists. */
37
+ accessor form: string | undefined;
42
38
  /**
43
39
  * When `true`, number values are displayed with a group separator corresponding to the language and country format.
44
40
  *
@@ -56,9 +52,9 @@ export abstract class Slider extends LitElement {
56
52
  *
57
53
  * @see [DataSeries](https://github.com/Esri/calcite-design-system/blob/dev/packages/components/src/components/graph/interfaces.ts#L5).
58
54
  */
59
- accessor histogram: DataSeries;
55
+ accessor histogram: DataSeries | undefined;
60
56
  /** Specifies a list of single color stops for a histogram, sorted by offset in ascending order. */
61
- accessor histogramStops: ColorStop[];
57
+ accessor histogramStops: ColorStop[] | undefined;
62
58
  /** When specified, allows users to customize handle labels. */
63
59
  accessor labelFormatter: (value: number, type: "value" | "min" | "max" | "tick", defaultFormatter: (value: number) => string) => string | undefined;
64
60
  /**
@@ -68,7 +64,7 @@ export abstract class Slider extends LitElement {
68
64
  */
69
65
  accessor labelHandles: boolean;
70
66
  /** Specifies the component's label text. */
71
- accessor labelText: string;
67
+ accessor labelText: string | undefined;
72
68
  /**
73
69
  * When `true` and `ticks` is specified, displays label tick marks with their numeric value.
74
70
  *
@@ -82,7 +78,7 @@ export abstract class Slider extends LitElement {
82
78
  */
83
79
  accessor max: number;
84
80
  /** When `minValue` and `maxValue` are specified for multiple values, specifies the accessible name for the `maxValue` handle, such as `"Temperature, upper bound"`. */
85
- accessor maxLabel: string;
81
+ accessor maxLabel: string | undefined;
86
82
  /** For multiple values, specifies the component's upper value. */
87
83
  accessor maxValue: number;
88
84
  /** Overrides individual strings used by the component. */
@@ -94,7 +90,7 @@ export abstract class Slider extends LitElement {
94
90
  */
95
91
  accessor min: number;
96
92
  /** Specifies the accessible name associated with the `value` handle (for single values) or `minValue` handle (for multiple values). For instance, `"Temperature, lower bound"`. */
97
- accessor minLabel: string;
93
+ accessor minLabel: string | undefined;
98
94
  /** For multiple values, the component's lower value. */
99
95
  accessor minValue: number;
100
96
  /**
@@ -110,11 +106,11 @@ export abstract class Slider extends LitElement {
110
106
  *
111
107
  * Required to pass the component's `value` on form submission
112
108
  */
113
- accessor name: string;
109
+ accessor name: string | undefined;
114
110
  /** Specifies the Unicode numeral system used by the component for localization. */
115
- accessor numberingSystem: NumberingSystem;
111
+ accessor numberingSystem: NumberingSystem | undefined;
116
112
  /** Specifies the interval to move with the `Page up` or `Page down` keys. */
117
- accessor pageStep: number;
113
+ accessor pageStep: number | undefined;
118
114
  /**
119
115
  * When `true`, sets a finer point for handles.
120
116
  *
@@ -153,11 +149,11 @@ export abstract class Slider extends LitElement {
153
149
  */
154
150
  accessor step: number;
155
151
  /** Specifies the interval between tick marks on the number line. */
156
- accessor ticks: number;
152
+ accessor ticks: number | undefined;
157
153
  /** Specifies the validation icon to display under the component. */
158
- accessor validationIcon: IconName | boolean;
154
+ accessor validationIcon: IconName | boolean | undefined;
159
155
  /** Specifies the validation message to display under the component. */
160
- accessor validationMessage: string;
156
+ accessor validationMessage: string | undefined;
161
157
  /**
162
158
  * The component's current validation state.
163
159
  *
@@ -65,14 +65,14 @@ class Slider extends LitElement {
65
65
  }
66
66
  this.removeDragListeners();
67
67
  this.focusActiveHandle(event.clientX);
68
- if (this.lastDragPropValue != this[this.dragProp]) {
68
+ if (this.dragProp && this.lastDragPropValue != this[this.dragProp]) {
69
69
  this.emitChange();
70
70
  }
71
- this.dragProp = null;
72
- this.lastDragPropValue = null;
73
- this.minValueDragRange = null;
74
- this.maxValueDragRange = null;
75
- this.minMaxValueRange = null;
71
+ this.dragProp = void 0;
72
+ this.lastDragPropValue = void 0;
73
+ this.minValueDragRange = void 0;
74
+ this.maxValueDragRange = void 0;
75
+ this.minMaxValueRange = void 0;
76
76
  };
77
77
  this.dragUpdate = (event) => {
78
78
  if (this.disabled || !this.trackRef.value) {
@@ -133,9 +133,6 @@ class Slider extends LitElement {
133
133
  this.interactiveContainer = useInteractive(this);
134
134
  this._value = defaultValue;
135
135
  this.activeProp = "value";
136
- this.maxValueDragRange = null;
137
- this.minMaxValueRange = null;
138
- this.minValueDragRange = null;
139
136
  this.tickValues = [];
140
137
  this.disabled = false;
141
138
  this.fillPlacement = "start";
@@ -245,7 +242,7 @@ class Slider extends LitElement {
245
242
  event.preventDefault();
246
243
  return;
247
244
  }
248
- let adjustment;
245
+ let adjustment = NaN;
249
246
  if (key === "ArrowUp" || key === "ArrowRight") {
250
247
  const directionFactor = mirror && key === "ArrowRight" ? -1 : 1;
251
248
  adjustment = value + step * directionFactor;
@@ -362,7 +359,7 @@ class Slider extends LitElement {
362
359
  return ticks;
363
360
  }
364
361
  onThumbBlur() {
365
- this.activeProp = null;
362
+ this.activeProp = void 0;
366
363
  }
367
364
  onThumbFocus(event) {
368
365
  const thumb = event.currentTarget;
@@ -408,7 +405,7 @@ class Slider extends LitElement {
408
405
  window.removeEventListener("pointercancel", this.dragEnd);
409
406
  }
410
407
  setValue(values) {
411
- let valueChanged;
408
+ let valueChanged = false;
412
409
  Object.keys(values).forEach((propName) => {
413
410
  const newValue = values[propName];
414
411
  if (!valueChanged) {
@@ -483,16 +480,17 @@ class Slider extends LitElement {
483
480
  return (num - this.min) / range;
484
481
  }
485
482
  adjustHostObscuredHandleLabel(name) {
486
- const label = this.el.shadowRoot.querySelector(`.handle__label--${name}`);
487
- const labelStatic = this.el.shadowRoot.querySelector(`.handle__label--${name}.static`);
488
- const labelTransformed = this.el.shadowRoot.querySelector(`.handle__label--${name}.transformed`);
483
+ const shadowRoot = this.el.shadowRoot;
484
+ const label = shadowRoot.querySelector(`.handle__label--${name}`);
485
+ const labelStatic = shadowRoot.querySelector(`.handle__label--${name}.static`);
486
+ const labelTransformed = shadowRoot.querySelector(`.handle__label--${name}.transformed`);
489
487
  const labelStaticBounds = labelStatic.getBoundingClientRect();
490
488
  const labelStaticOffset = this.getHostOffset(labelStaticBounds.left, labelStaticBounds.right);
491
489
  label.style.transform = `translateX(${labelStaticOffset}px)`;
492
490
  labelTransformed.style.transform = `translateX(${labelStaticOffset}px)`;
493
491
  }
494
492
  hyphenateCollidingRangeHandleLabels() {
495
- const { shadowRoot } = this.el;
493
+ const shadowRoot = this.el.shadowRoot;
496
494
  const mirror = this.shouldMirror();
497
495
  const leftModifier = mirror ? "value" : "minValue";
498
496
  const rightModifier = mirror ? "minValue" : "value";
@@ -566,10 +564,11 @@ class Slider extends LitElement {
566
564
  if (this.hasHistogram && !this.precise && !this.labelHandles) {
567
565
  return;
568
566
  }
569
- const minHandle = this.el.shadowRoot.querySelector(`.${CSS.thumbMinValue}`);
570
- const maxHandle = this.el.shadowRoot.querySelector(`.${CSS.thumbValue}`);
571
- const minTickLabel = this.el.shadowRoot.querySelector(`.${CSS.tickMin}`);
572
- const maxTickLabel = this.el.shadowRoot.querySelector(`.${CSS.tickMax}`);
567
+ const shadowRoot = this.el.shadowRoot;
568
+ const minHandle = shadowRoot.querySelector(`.${CSS.thumbMinValue}`);
569
+ const maxHandle = shadowRoot.querySelector(`.${CSS.thumbValue}`);
570
+ const minTickLabel = shadowRoot.querySelector(`.${CSS.tickMin}`);
571
+ const maxTickLabel = shadowRoot.querySelector(`.${CSS.tickMax}`);
573
572
  if (!minHandle && maxHandle && minTickLabel && maxTickLabel) {
574
573
  minTickLabel.style.opacity = this.isMinTickLabelObscured(minTickLabel, maxHandle) ? "0" : "1";
575
574
  maxTickLabel.style.opacity = this.isMaxTickLabelObscured(maxTickLabel, maxHandle) ? "0" : "1";