@esri/calcite-components 3.0.0-next.98 → 3.0.0

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 (604) hide show
  1. package/dist/calcite/22RQB3WE.js +4 -0
  2. package/dist/calcite/{YGZZRAVL.js → 24SER2VV.js} +4 -6
  3. package/dist/calcite/2BGMAPSV.js +4 -0
  4. package/dist/calcite/2JKKAEPM.js +4 -0
  5. package/dist/calcite/{DMND3N53.js → 2M4WCGKG.js} +4 -6
  6. package/dist/calcite/2YAXZHP2.js +4 -0
  7. package/dist/calcite/{7D6Q26CZ.js → 345Q4UHX.js} +4 -6
  8. package/dist/calcite/{LPR4PB3U.js → 36DMRAV2.js} +4 -6
  9. package/dist/calcite/{XTM45ICH.js → 3DGJ6ZQI.js} +4 -6
  10. package/dist/calcite/3GICXOBQ.js +4 -0
  11. package/dist/calcite/3IV6JSC2.js +4 -0
  12. package/dist/calcite/{DOD4WFTZ.js → 3TOVZEQB.js} +4 -6
  13. package/dist/calcite/45GA6INB.js +4 -0
  14. package/dist/calcite/46U4MKUU.js +4 -0
  15. package/dist/calcite/4BSCJ722.js +4 -0
  16. package/dist/calcite/4SEPDFCP.js +5 -0
  17. package/dist/calcite/{EU3H7BCA.js → 4TQLSUKH.js} +4 -6
  18. package/dist/calcite/4YZ27QWL.js +4 -0
  19. package/dist/calcite/4Z7JRTON.js +4 -0
  20. package/dist/calcite/5AVZLE2Q.js +4 -0
  21. package/dist/calcite/{3AK4X5OV.js → 5EPP4MG3.js} +4 -6
  22. package/dist/calcite/{FPFTHRY6.js → 66B2H27W.js} +4 -6
  23. package/dist/calcite/6LW27BEV.js +4 -0
  24. package/dist/calcite/6OZRZ36X.js +4 -0
  25. package/dist/calcite/6X2SD2PW.js +4 -0
  26. package/dist/calcite/{ZGJB2ECH.js → 6XTYGXNG.js} +4 -6
  27. package/dist/calcite/6ZTWHW63.js +4 -0
  28. package/dist/calcite/{YFZLUYQJ.js → 7D3VEEUX.js} +4 -6
  29. package/dist/calcite/7E342YOK.js +4 -0
  30. package/dist/calcite/{3XOYD44L.js → 7KSGVDSR.js} +4 -6
  31. package/dist/calcite/{6FWANW5T.js → 7PWETOIU.js} +4 -6
  32. package/dist/calcite/7QHUEK5R.js +4 -0
  33. package/dist/calcite/{NSKFJMNX.js → 7SX3RD7P.js} +4 -6
  34. package/dist/calcite/7U7FF3Y4.js +4 -0
  35. package/dist/calcite/7WG5I3MP.js +4 -0
  36. package/dist/calcite/{ADB3AYG3.js → A5GGYTUQ.js} +4 -6
  37. package/dist/calcite/{BRBFCQO2.js → AI3R3SU6.js} +5 -7
  38. package/dist/calcite/ARHYATTG.js +4 -0
  39. package/dist/calcite/{WMVGOOU2.js → ATHBUWBY.js} +4 -6
  40. package/dist/calcite/AXXJNFKZ.js +4 -0
  41. package/dist/calcite/{FG7MNK63.js → AYZ73RWQ.js} +4 -6
  42. package/dist/calcite/{NWOFVES6.js → BAHIPAHM.js} +4 -6
  43. package/dist/calcite/BRTDMTZ3.js +4 -0
  44. package/dist/calcite/BRTESQOJ.js +4 -0
  45. package/dist/calcite/{67NDJDQ5.js → BSRMWMHQ.js} +4 -6
  46. package/dist/calcite/{AZIIYZ5O.js → BZKF5ZXQ.js} +4 -6
  47. package/dist/calcite/C46JYVUP.js +4 -0
  48. package/dist/calcite/C54C5E23.js +4 -0
  49. package/dist/calcite/CBSMKHOY.js +4 -0
  50. package/dist/calcite/CFRBQXK4.js +4 -0
  51. package/dist/calcite/CIV3PH3Z.js +4 -0
  52. package/dist/calcite/CJYTY62F.js +4 -0
  53. package/dist/calcite/CK6HQQX6.js +4 -0
  54. package/dist/calcite/CMO3X257.js +4 -0
  55. package/dist/calcite/{SKMMQQJV.js → CNO6NFH5.js} +4 -6
  56. package/dist/calcite/CWPRBG3T.js +4 -0
  57. package/dist/calcite/CY6C2FDZ.js +4 -0
  58. package/dist/calcite/D2HDFE7S.js +22 -0
  59. package/dist/calcite/D36VWSDW.js +4 -0
  60. package/dist/calcite/{DALSMKYG.js → DBVNMM6Q.js} +4 -6
  61. package/dist/calcite/{HOWCGXPH.js → DDJ75RTI.js} +4 -6
  62. package/dist/calcite/DH4ISGHV.js +4 -0
  63. package/dist/calcite/{L6U5SH5H.js → DNYBIAUI.js} +4 -6
  64. package/dist/calcite/DT67ZFPX.js +4 -0
  65. package/dist/calcite/{TMHRMF76.js → DTL2LM6T.js} +4 -6
  66. package/dist/calcite/E3R5SMVW.js +4 -0
  67. package/dist/calcite/{MZ3KHKD7.js → E4NMFIKN.js} +4 -6
  68. package/dist/calcite/{KVSVZ6K7.js → EAML4EDI.js} +4 -6
  69. package/dist/calcite/{AJSU4WDN.js → ECEZ4R6E.js} +4 -6
  70. package/dist/calcite/EFI2G5WL.js +4 -0
  71. package/dist/calcite/EHZCT5YZ.js +4 -0
  72. package/dist/calcite/{NHHVXBWF.js → EOHVH6PN.js} +4 -6
  73. package/dist/calcite/ESBOJTBS.js +4 -0
  74. package/dist/calcite/F6EGRKXW.js +4 -0
  75. package/dist/calcite/FCN5RMLA.js +4 -0
  76. package/dist/calcite/FDIM6DYL.js +4 -0
  77. package/dist/calcite/FE3A3YUN.js +4 -0
  78. package/dist/calcite/FHBFGCTR.js +4 -0
  79. package/dist/calcite/FNFWOOMR.js +4 -0
  80. package/dist/calcite/{X4JV7QBZ.js → FNM4DZZH.js} +3 -5
  81. package/dist/calcite/G2KHDAZD.js +4 -0
  82. package/dist/calcite/{4YTV42YC.js → G3LH75CQ.js} +4 -6
  83. package/dist/calcite/{TJJNESY6.js → G3ZJ2KQT.js} +4 -6
  84. package/dist/calcite/{V7O3TS4K.js → G7WFYVUC.js} +4 -6
  85. package/dist/calcite/{C6D6T2QL.js → GAAXSGWK.js} +4 -6
  86. package/dist/calcite/{GIWNYIWI.js → GE63ETFI.js} +4 -6
  87. package/dist/calcite/{JAQBT7O2.js → GFC7NS6P.js} +4 -6
  88. package/dist/calcite/GGO5TMB4.js +4 -0
  89. package/dist/calcite/GKKCWEZX.js +4 -0
  90. package/dist/calcite/GN5CPLSJ.js +4 -0
  91. package/dist/calcite/GNUSLZWJ.js +4 -0
  92. package/dist/calcite/{7XR7JSFK.js → GOOHYN3D.js} +4 -6
  93. package/dist/calcite/GPUFLCIT.js +4 -0
  94. package/dist/calcite/GSXEMGSW.js +4 -0
  95. package/dist/calcite/GYQTRH4V.js +4 -0
  96. package/dist/calcite/HFIRIAQA.js +4 -0
  97. package/dist/calcite/{UR74R23Y.js → HGTV36FX.js} +4 -6
  98. package/dist/calcite/HKHPJJ34.js +4 -0
  99. package/dist/calcite/{Q2QY7ZFK.js → HMVKZP47.js} +4 -6
  100. package/dist/calcite/I2OIH73C.js +4 -0
  101. package/dist/calcite/{4GZ2XBON.js → I32TMNTO.js} +3 -5
  102. package/dist/calcite/{OEZ2ZO2E.js → I62DUDHI.js} +4 -6
  103. package/dist/calcite/IH4RXHJJ.js +4 -0
  104. package/dist/calcite/{YUH32F6Q.js → IJCTXZQB.js} +4 -6
  105. package/dist/calcite/{SIKDPHI3.js → IXRMDUEL.js} +4 -6
  106. package/dist/calcite/IYDN67SF.js +4 -0
  107. package/dist/calcite/JCWM5Z43.js +4 -0
  108. package/dist/calcite/{OVBCCJSO.js → JEX42CPR.js} +4 -6
  109. package/dist/calcite/JFYDLHH7.js +4 -0
  110. package/dist/calcite/JLZYAYOL.js +4 -0
  111. package/dist/calcite/{YADF4OR7.js → JUNCR7R2.js} +4 -6
  112. package/dist/calcite/{AOOHSCUM.js → JVNEJ36Z.js} +4 -6
  113. package/dist/calcite/K3ZBW4GY.js +4 -0
  114. package/dist/calcite/{LRWFZNMG.js → KBDXI6DJ.js} +4 -6
  115. package/dist/calcite/{RXVA6IDK.js → KBNS3CCT.js} +4 -6
  116. package/dist/calcite/KI2NOBMU.js +4 -0
  117. package/dist/calcite/KSNEQFZX.js +4 -0
  118. package/dist/calcite/KSVYAIHK.js +4 -0
  119. package/dist/calcite/KULDQOV2.js +4 -0
  120. package/dist/calcite/KVSCG5E3.js +6 -0
  121. package/dist/calcite/{QMAVVMZX.js → KW57BHXD.js} +4 -6
  122. package/dist/calcite/{USPGSZKI.js → KWOOGTG2.js} +4 -6
  123. package/dist/calcite/L5FDXQMT.js +4 -0
  124. package/dist/calcite/{D6VMYOIF.js → LB5ATL5Q.js} +4 -6
  125. package/dist/calcite/LH7KSBQC.js +4 -0
  126. package/dist/calcite/{LELS4MNY.js → LHSAAMYQ.js} +4 -6
  127. package/dist/calcite/LILDCWFX.js +4 -0
  128. package/dist/calcite/LLSB73WA.js +4 -0
  129. package/dist/calcite/{4MHQTNLP.js → LOZEGKG2.js} +4 -6
  130. package/dist/calcite/{VB2CZH2R.js → MBQZPRQ5.js} +4 -6
  131. package/dist/calcite/MCSX2S5T.js +4 -0
  132. package/dist/calcite/{IVBFSESV.js → MIKGJ3NM.js} +4 -6
  133. package/dist/calcite/MPAVJ7UH.js +4 -0
  134. package/dist/calcite/{MZKQ2IE5.js → MPX2M2VX.js} +4 -6
  135. package/dist/calcite/{VUI2CUZB.js → MQYH4ONZ.js} +3 -5
  136. package/dist/calcite/MUWK32IE.js +4 -0
  137. package/dist/calcite/{34JGX2UT.js → MZRO54UT.js} +4 -6
  138. package/dist/calcite/N2BVYYYP.js +4 -0
  139. package/dist/calcite/{3LRPQHGC.js → N4MN6VQ7.js} +4 -6
  140. package/dist/calcite/{NOOS5KYH.js → N55N67N5.js} +4 -6
  141. package/dist/calcite/NODC2JA6.js +4 -0
  142. package/dist/calcite/{3REOX2WD.js → NVBNX55L.js} +4 -6
  143. package/dist/calcite/{6KHZB5QM.js → NWVCPRVB.js} +3 -5
  144. package/dist/calcite/{36NZNZAH.js → O4O3TSE5.js} +4 -6
  145. package/dist/calcite/OE2AH2NC.js +4 -0
  146. package/dist/calcite/OGED6PPP.js +4 -0
  147. package/dist/calcite/{P4HQU6WZ.js → OHOS32IT.js} +4 -6
  148. package/dist/calcite/{M66YCIAJ.js → OLMX7G3J.js} +3 -5
  149. package/dist/calcite/OOSULFCY.js +4 -0
  150. package/dist/calcite/OPBQNK7J.js +4 -0
  151. package/dist/calcite/OTHVFLNW.js +4 -0
  152. package/dist/calcite/{MDXVE52Q.js → OTUG3NVT.js} +4 -6
  153. package/dist/calcite/PNHR5K2L.js +4 -0
  154. package/dist/calcite/{M3DNGO5Z.js → PT2XMADA.js} +3 -5
  155. package/dist/calcite/PZLVQQMT.js +4 -0
  156. package/dist/calcite/{PVA5CRLN.js → QAYSDI3M.js} +3 -5
  157. package/dist/calcite/QCGLMLKW.js +4 -0
  158. package/dist/calcite/QHASLHZN.js +4 -0
  159. package/dist/calcite/QK2H5T7J.js +4 -0
  160. package/dist/calcite/QLKHJI4P.js +4 -0
  161. package/dist/calcite/QQ67AVDV.js +4 -0
  162. package/dist/calcite/{U7CNRHVY.js → QU33PBBI.js} +4 -6
  163. package/dist/calcite/QYGED6CL.js +4 -0
  164. package/dist/calcite/R3HMG2D6.js +4 -0
  165. package/dist/calcite/{2ILRHKYA.js → R4RMVIKH.js} +4 -6
  166. package/dist/calcite/R6GNPMSV.js +4 -0
  167. package/dist/calcite/{RCCGU5MD.js → RAFCSOOQ.js} +4 -6
  168. package/dist/calcite/{OKBJXUSY.js → RAQWKUOJ.js} +4 -6
  169. package/dist/calcite/RESHLE2Y.js +4 -0
  170. package/dist/calcite/RJLKHCRB.js +4 -0
  171. package/dist/calcite/RLSQLIV6.js +4 -0
  172. package/dist/calcite/{3EX47ZJ7.js → RMGYRZXR.js} +4 -6
  173. package/dist/calcite/RSAEDAEX.js +4 -0
  174. package/dist/calcite/{L4QPHNYB.js → RUTUU2EH.js} +4 -6
  175. package/dist/calcite/{GSK6RQ3K.js → RVMVJW6K.js} +4 -6
  176. package/dist/calcite/RVQMJBNS.js +4 -0
  177. package/dist/calcite/{IU2I5NQH.js → S76CXQTI.js} +4 -6
  178. package/dist/calcite/SBZ6VJ75.js +4 -0
  179. package/dist/calcite/SJKTCGW6.js +4 -0
  180. package/dist/calcite/{OZT7IOB4.js → SKDMJE3X.js} +3 -5
  181. package/dist/calcite/SMUXJLDL.js +4 -0
  182. package/dist/calcite/SYEQSDHG.js +4 -0
  183. package/dist/calcite/T3NRBBZP.js +4 -0
  184. package/dist/calcite/T5UPGHU3.js +4 -0
  185. package/dist/calcite/{J2OJW5GP.js → T6HODD4B.js} +4 -6
  186. package/dist/calcite/TNR5VZG2.js +4 -0
  187. package/dist/calcite/TQIVV2F7.js +4 -0
  188. package/dist/calcite/{FZ4CSZA4.js → TQTAM3XB.js} +4 -6
  189. package/dist/calcite/{XYFCDRYI.js → TSJJLMPA.js} +3 -5
  190. package/dist/calcite/{2WAX46W7.js → TVDZM7WT.js} +4 -6
  191. package/dist/calcite/U3WK4DZT.js +4 -0
  192. package/dist/calcite/U725E4ID.js +4 -0
  193. package/dist/calcite/UELGJSYH.js +4 -0
  194. package/dist/calcite/UJL3BWDH.js +4 -0
  195. package/dist/calcite/{5BEC7VI2.js → URM3R65T.js} +4 -6
  196. package/dist/calcite/US3PQV6O.js +4 -0
  197. package/dist/calcite/{LB35U4RB.js → V4JZRN7T.js} +4 -6
  198. package/dist/calcite/{AXDFDSSW.js → VCSXFNPO.js} +4 -6
  199. package/dist/calcite/VG7BJBFG.js +4 -0
  200. package/dist/calcite/{XB45LF7D.js → VJD4CRQ3.js} +4 -6
  201. package/dist/calcite/VMRLYKNI.js +4 -0
  202. package/dist/calcite/{J7S4FBW6.js → VNQNKQ2J.js} +4 -6
  203. package/dist/calcite/VST65PDC.js +4 -0
  204. package/dist/calcite/WKTGTKRJ.js +4 -0
  205. package/dist/calcite/WPAMFFBY.js +4 -0
  206. package/dist/calcite/{EMKF6OLE.js → WSGL37LB.js} +4 -6
  207. package/dist/calcite/{5NJCKLIQ.js → WWUBU6N5.js} +4 -6
  208. package/dist/calcite/{EW526JIT.js → X2UHFJHG.js} +4 -6
  209. package/dist/calcite/XBZLGRRI.js +4 -0
  210. package/dist/calcite/XOVG6UH3.js +4 -0
  211. package/dist/calcite/{HYEIYTTY.js → XT32TCZG.js} +3 -5
  212. package/dist/calcite/XXZIOSXQ.js +4 -0
  213. package/dist/calcite/{B4XI5JOK.js → Y6VF7HSM.js} +4 -6
  214. package/dist/calcite/YA5A7PJR.js +4 -0
  215. package/dist/calcite/{5I3PI5EW.js → YMRTHS5X.js} +4 -6
  216. package/dist/calcite/{SKJ5S6CA.js → YTRT5XZT.js} +4 -6
  217. package/dist/calcite/{PBQGOCJH.js → YXLQFMOA.js} +4 -6
  218. package/dist/calcite/{FCUAMZTR.js → YYJSHQR3.js} +3 -5
  219. package/dist/calcite/{5QSUEEHT.js → Z6GA347Y.js} +4 -6
  220. package/dist/calcite/{G76AKBKS.js → Z7VNUC77.js} +4 -6
  221. package/dist/calcite/ZA76CHET.js +4 -0
  222. package/dist/calcite/ZGXTLCGJ.js +4 -0
  223. package/dist/calcite/{57K4SYWS.js → ZQO6E4FO.js} +4 -6
  224. package/dist/calcite/ZV442E6X.js +4 -0
  225. package/dist/calcite/assets/icon/crosshair16.json +1 -0
  226. package/dist/calcite/assets/icon/crosshair24.json +1 -0
  227. package/dist/calcite/assets/icon/crosshair32.json +1 -0
  228. package/dist/calcite/assets/icon/dualImageArea16.json +1 -0
  229. package/dist/calcite/assets/icon/dualImageArea24.json +1 -0
  230. package/dist/calcite/assets/icon/dualImageArea32.json +1 -0
  231. package/dist/calcite/assets/icon/dualImageDistance16.json +1 -0
  232. package/dist/calcite/assets/icon/dualImageDistance24.json +1 -0
  233. package/dist/calcite/assets/icon/dualImageDistance32.json +1 -0
  234. package/dist/calcite/assets/icon/dualImageLocation16.json +1 -0
  235. package/dist/calcite/assets/icon/dualImageLocation24.json +1 -0
  236. package/dist/calcite/assets/icon/dualImageLocation32.json +1 -0
  237. package/dist/calcite/assets/icon/hammerCoin16.json +1 -0
  238. package/dist/calcite/assets/icon/hammerCoin24.json +1 -0
  239. package/dist/calcite/assets/icon/hammerCoin32.json +1 -0
  240. package/dist/calcite/assets/icon/hammerLock16.json +1 -0
  241. package/dist/calcite/assets/icon/hammerLock24.json +1 -0
  242. package/dist/calcite/assets/icon/hammerLock32.json +1 -0
  243. package/dist/calcite/assets/icon/utilityNetworkLayer16.json +1 -0
  244. package/dist/calcite/assets/icon/utilityNetworkLayer24.json +1 -0
  245. package/dist/calcite/assets/icon/utilityNetworkLayer32.json +1 -0
  246. package/dist/calcite/calcite.css +1 -1
  247. package/dist/calcite/calcite.esm.js +4 -6
  248. package/dist/chunks/ExpandToggle.js +3 -5
  249. package/dist/chunks/FloatingArrow.js +6 -8
  250. package/dist/chunks/Heading.js +3 -5
  251. package/dist/chunks/Validation.js +3 -5
  252. package/dist/chunks/_commonjsHelpers.js +3 -5
  253. package/dist/chunks/array.js +3 -5
  254. package/dist/chunks/component.js +13 -11
  255. package/dist/chunks/core.js +3 -5
  256. package/dist/chunks/date.js +3 -5
  257. package/dist/chunks/dom.js +218 -234
  258. package/dist/chunks/dynamicClasses.js +3 -5
  259. package/dist/chunks/filter.js +3 -5
  260. package/dist/chunks/floating-ui.js +61 -65
  261. package/dist/chunks/focusTrapComponent.js +25 -30
  262. package/dist/chunks/form.js +19 -21
  263. package/dist/chunks/global.js +14 -14
  264. package/dist/chunks/guid.js +3 -5
  265. package/dist/chunks/input.js +3 -5
  266. package/dist/chunks/interact.min.js +3 -5
  267. package/dist/chunks/interactive.js +3 -5
  268. package/dist/chunks/key.js +3 -5
  269. package/dist/chunks/label.js +7 -9
  270. package/dist/chunks/loadable.js +11 -22
  271. package/dist/chunks/locale.js +3 -5
  272. package/dist/chunks/logger.js +3 -5
  273. package/dist/chunks/math.js +3 -5
  274. package/dist/chunks/observers.js +3 -5
  275. package/dist/chunks/openCloseComponent.js +5 -7
  276. package/dist/chunks/resources.js +3 -5
  277. package/dist/chunks/resources2.js +3 -5
  278. package/dist/chunks/resources3.js +8 -14
  279. package/dist/chunks/resources4.js +3 -5
  280. package/dist/chunks/resources5.js +3 -5
  281. package/dist/chunks/resources6.js +3 -5
  282. package/dist/chunks/resources7.js +3 -5
  283. package/dist/chunks/responsive.js +9 -12
  284. package/dist/chunks/runtime.js +39 -43
  285. package/dist/chunks/sortableComponent.js +49 -39
  286. package/dist/chunks/text.js +3 -5
  287. package/dist/chunks/time.js +12 -14
  288. package/dist/chunks/useFocusTrap.js +49 -0
  289. package/dist/chunks/useT9n.js +3 -5
  290. package/dist/chunks/utils.js +19 -17
  291. package/dist/chunks/utils2.js +3 -5
  292. package/dist/chunks/utils3.js +15 -16
  293. package/dist/chunks/utils4.js +264 -271
  294. package/dist/components/calcite-accordion/customElement.js +3 -5
  295. package/dist/components/calcite-accordion-item/customElement.js +10 -14
  296. package/dist/components/calcite-action/customElement.js +17 -21
  297. package/dist/components/calcite-action-bar/customElement.js +24 -27
  298. package/dist/components/calcite-action-group/customElement.js +20 -24
  299. package/dist/components/calcite-action-menu/customElement.js +14 -18
  300. package/dist/components/calcite-action-pad/customElement.js +21 -25
  301. package/dist/components/calcite-alert/customElement.js +50 -63
  302. package/dist/components/calcite-autocomplete/customElement.d.ts +10 -4
  303. package/dist/components/calcite-autocomplete/customElement.js +50 -52
  304. package/dist/components/calcite-autocomplete-item/customElement.js +17 -21
  305. package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -5
  306. package/dist/components/calcite-avatar/customElement.js +8 -10
  307. package/dist/components/calcite-block/customElement.d.ts +18 -1
  308. package/dist/components/calcite-block/customElement.js +54 -40
  309. package/dist/components/calcite-block/index.d.ts +1 -1
  310. package/dist/components/calcite-block/index.js +1 -1
  311. package/dist/components/calcite-block/utils.d.ts +2 -0
  312. package/dist/components/calcite-block-group/customElement.d.ts +50 -0
  313. package/dist/components/calcite-block-group/customElement.js +177 -0
  314. package/dist/components/calcite-block-group/index.d.ts +2 -0
  315. package/dist/components/calcite-block-group/index.js +2 -0
  316. package/dist/components/calcite-block-group/interfaces.d.ts +14 -0
  317. package/dist/components/calcite-block-group/resources.d.ts +8 -0
  318. package/dist/components/calcite-block-group/utils.d.ts +1 -0
  319. package/dist/components/calcite-block-section/customElement.js +19 -23
  320. package/dist/components/calcite-button/customElement.js +28 -30
  321. package/dist/components/calcite-card/customElement.js +17 -23
  322. package/dist/components/calcite-card-group/customElement.js +15 -18
  323. package/dist/components/calcite-carousel/customElement.js +29 -32
  324. package/dist/components/calcite-carousel-item/customElement.js +3 -5
  325. package/dist/components/calcite-checkbox/customElement.d.ts +4 -1
  326. package/dist/components/calcite-checkbox/customElement.js +18 -22
  327. package/dist/components/calcite-chip/customElement.js +42 -44
  328. package/dist/components/calcite-chip-group/customElement.js +10 -14
  329. package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
  330. package/dist/components/calcite-color-picker/customElement.js +200 -178
  331. package/dist/components/calcite-color-picker/resources.d.ts +7 -16
  332. package/dist/components/calcite-color-picker/utils.d.ts +4 -3
  333. package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -31
  334. package/dist/components/calcite-color-picker-swatch/customElement.js +3 -5
  335. package/dist/components/calcite-combobox/customElement.d.ts +5 -3
  336. package/dist/components/calcite-combobox/customElement.js +166 -160
  337. package/dist/components/calcite-combobox/resources.d.ts +1 -0
  338. package/dist/components/calcite-combobox-item/customElement.d.ts +2 -1
  339. package/dist/components/calcite-combobox-item/customElement.js +47 -38
  340. package/dist/components/calcite-combobox-item-group/customElement.js +13 -15
  341. package/dist/components/calcite-date-picker/customElement.d.ts +8 -2
  342. package/dist/components/calcite-date-picker/customElement.js +28 -31
  343. package/dist/components/calcite-date-picker-day/customElement.js +16 -19
  344. package/dist/components/calcite-date-picker-month/customElement.js +39 -41
  345. package/dist/components/calcite-date-picker-month-header/customElement.js +40 -44
  346. package/dist/components/calcite-dialog/customElement.d.ts +20 -4
  347. package/dist/components/calcite-dialog/customElement.js +78 -72
  348. package/dist/components/calcite-dialog/resources.d.ts +1 -0
  349. package/dist/components/calcite-dropdown/customElement.d.ts +1 -1
  350. package/dist/components/calcite-dropdown/customElement.js +63 -70
  351. package/dist/components/calcite-dropdown/resources.d.ts +1 -0
  352. package/dist/components/calcite-dropdown-group/customElement.js +4 -6
  353. package/dist/components/calcite-dropdown-item/customElement.js +20 -23
  354. package/dist/components/calcite-fab/customElement.js +19 -23
  355. package/dist/components/calcite-filter/customElement.js +20 -25
  356. package/dist/components/calcite-flow/customElement.js +19 -22
  357. package/dist/components/calcite-flow-item/customElement.js +26 -30
  358. package/dist/components/calcite-graph/customElement.js +52 -50
  359. package/dist/components/calcite-graph/interfaces.d.ts +1 -5
  360. package/dist/components/calcite-graph/resources.d.ts +5 -0
  361. package/dist/components/calcite-handle/customElement.d.ts +3 -0
  362. package/dist/components/calcite-handle/customElement.js +20 -18
  363. package/dist/components/calcite-icon/customElement.js +23 -25
  364. package/dist/components/calcite-inline-editable/customElement.js +25 -29
  365. package/dist/components/calcite-input/customElement.d.ts +14 -6
  366. package/dist/components/calcite-input/customElement.js +26 -29
  367. package/dist/components/calcite-input-date-picker/customElement.d.ts +12 -3
  368. package/dist/components/calcite-input-date-picker/customElement.js +84 -88
  369. package/dist/components/calcite-input-message/customElement.js +3 -5
  370. package/dist/components/calcite-input-number/customElement.d.ts +12 -5
  371. package/dist/components/calcite-input-number/customElement.js +30 -36
  372. package/dist/components/calcite-input-text/customElement.d.ts +10 -4
  373. package/dist/components/calcite-input-text/customElement.js +61 -65
  374. package/dist/components/calcite-input-time-picker/customElement.d.ts +8 -3
  375. package/dist/components/calcite-input-time-picker/customElement.js +45 -47
  376. package/dist/components/calcite-input-time-zone/customElement.js +53 -55
  377. package/dist/components/calcite-label/customElement.js +3 -5
  378. package/dist/components/calcite-link/customElement.js +10 -14
  379. package/dist/components/calcite-list/customElement.js +67 -70
  380. package/dist/components/calcite-list-item/customElement.js +66 -85
  381. package/dist/components/calcite-list-item/utils.d.ts +1 -0
  382. package/dist/components/calcite-list-item-group/customElement.js +3 -5
  383. package/dist/components/calcite-loader/customElement.js +3 -7
  384. package/dist/components/calcite-menu/customElement.js +12 -16
  385. package/dist/components/calcite-menu-item/customElement.js +12 -16
  386. package/dist/components/calcite-meter/customElement.js +26 -28
  387. package/dist/components/calcite-modal/customElement.d.ts +16 -3
  388. package/dist/components/calcite-modal/customElement.js +61 -61
  389. package/dist/components/calcite-navigation/customElement.js +17 -21
  390. package/dist/components/calcite-navigation-logo/customElement.js +12 -16
  391. package/dist/components/calcite-navigation-user/customElement.js +10 -14
  392. package/dist/components/calcite-notice/customElement.js +25 -28
  393. package/dist/components/calcite-option/customElement.js +3 -5
  394. package/dist/components/calcite-option-group/customElement.js +3 -5
  395. package/dist/components/calcite-pagination/customElement.js +15 -17
  396. package/dist/components/calcite-panel/customElement.js +45 -48
  397. package/dist/components/calcite-popover/customElement.d.ts +10 -7
  398. package/dist/components/calcite-popover/customElement.js +70 -79
  399. package/dist/components/calcite-progress/customElement.js +3 -5
  400. package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
  401. package/dist/components/calcite-radio-button/customElement.js +17 -20
  402. package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
  403. package/dist/components/calcite-radio-button-group/customElement.js +14 -17
  404. package/dist/components/calcite-rating/customElement.js +21 -23
  405. package/dist/components/calcite-scrim/customElement.js +3 -5
  406. package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
  407. package/dist/components/calcite-segmented-control/customElement.js +14 -17
  408. package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
  409. package/dist/components/calcite-select/customElement.d.ts +4 -1
  410. package/dist/components/calcite-select/customElement.js +19 -22
  411. package/dist/components/calcite-sheet/customElement.d.ts +17 -3
  412. package/dist/components/calcite-sheet/customElement.js +59 -62
  413. package/dist/components/calcite-shell/customElement.js +3 -6
  414. package/dist/components/calcite-shell-center-row/customElement.js +3 -5
  415. package/dist/components/calcite-shell-panel/customElement.js +16 -20
  416. package/dist/components/calcite-slider/customElement.d.ts +4 -1
  417. package/dist/components/calcite-slider/customElement.js +18 -21
  418. package/dist/components/calcite-sort-handle/customElement.js +45 -35
  419. package/dist/components/calcite-sort-handle/index.d.ts +1 -1
  420. package/dist/components/calcite-sort-handle/index.js +1 -1
  421. package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
  422. package/dist/components/calcite-sortable-list/customElement.js +21 -16
  423. package/dist/components/calcite-split-button/customElement.js +13 -20
  424. package/dist/components/calcite-stack/customElement.js +4 -6
  425. package/dist/components/calcite-stepper/customElement.js +36 -39
  426. package/dist/components/calcite-stepper-item/customElement.js +23 -22
  427. package/dist/components/calcite-switch/customElement.js +10 -14
  428. package/dist/components/calcite-tab/customElement.js +3 -5
  429. package/dist/components/calcite-tab-nav/customElement.js +3 -5
  430. package/dist/components/calcite-tab-title/customElement.js +3 -5
  431. package/dist/components/calcite-table/customElement.js +44 -47
  432. package/dist/components/calcite-table-cell/customElement.js +22 -25
  433. package/dist/components/calcite-table-header/customElement.js +18 -21
  434. package/dist/components/calcite-table-row/customElement.js +6 -8
  435. package/dist/components/calcite-tabs/customElement.js +3 -5
  436. package/dist/components/calcite-text-area/customElement.d.ts +10 -3
  437. package/dist/components/calcite-text-area/customElement.js +30 -37
  438. package/dist/components/calcite-tile/customElement.js +16 -20
  439. package/dist/components/calcite-tile-group/customElement.js +3 -5
  440. package/dist/components/calcite-tile-select/customElement.js +17 -22
  441. package/dist/components/calcite-tile-select-group/customElement.js +3 -5
  442. package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
  443. package/dist/components/calcite-time-picker/customElement.js +19 -23
  444. package/dist/components/calcite-tip/customElement.js +3 -5
  445. package/dist/components/calcite-tip-group/customElement.js +3 -5
  446. package/dist/components/calcite-tip-manager/customElement.js +3 -5
  447. package/dist/components/calcite-tooltip/customElement.js +41 -40
  448. package/dist/components/calcite-tree/customElement.js +3 -5
  449. package/dist/components/calcite-tree-item/customElement.js +16 -14
  450. package/dist/components/interfaces.d.ts +4 -0
  451. package/dist/controllers/useFocusTrap.d.ts +67 -0
  452. package/dist/custom-theme/block.d.ts +4 -5
  453. package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
  454. package/dist/custom-theme/date-picker.d.ts +28 -0
  455. package/dist/custom-theme/flow.d.ts +21 -0
  456. package/dist/custom-theme/graph.d.ts +4 -0
  457. package/dist/custom-theme/inline-editable.d.ts +10 -0
  458. package/dist/custom-theme/segmented-control.d.ts +7 -0
  459. package/dist/docs/api.json +1141 -159
  460. package/dist/docs/docs.json +1093 -126
  461. package/dist/docs/supported-browsers.json +1 -1
  462. package/dist/docs/vscode.css-custom-data.json +315 -7
  463. package/dist/docs/vscode.html-custom-data.json +107 -60
  464. package/dist/docs/web-types.json +659 -119
  465. package/dist/extras/vscode-data.json +107 -60
  466. package/dist/index.d.ts +25 -0
  467. package/dist/index.js +3 -5
  468. package/dist/loader.js +16 -17
  469. package/dist/types/lumina.d.ts +18 -6
  470. package/dist/types/preact.d.ts +19 -6
  471. package/dist/types/react.d.ts +180 -165
  472. package/dist/types/stencil.d.ts +18 -6
  473. package/dist/utils/component.d.ts +4 -0
  474. package/dist/utils/focusTrapComponent.d.ts +9 -0
  475. package/dist/utils/loadable.d.ts +26 -43
  476. package/dist/utils/openCloseComponent.d.ts +17 -18
  477. package/hydrate/index.d.ts +1 -0
  478. package/hydrate/index.js +1 -0
  479. package/hydrate/index.mjs +1 -0
  480. package/package.json +11 -12
  481. package/readme.md +5 -69
  482. package/dist/calcite/22HJHGFC.js +0 -6
  483. package/dist/calcite/24UHHCGZ.js +0 -6
  484. package/dist/calcite/26RYXNTM.js +0 -6
  485. package/dist/calcite/2BDE5BE5.js +0 -6
  486. package/dist/calcite/2Z66C2UQ.js +0 -6
  487. package/dist/calcite/32ZUDEFF.js +0 -6
  488. package/dist/calcite/33ZHAQAN.js +0 -6
  489. package/dist/calcite/344WUQSU.js +0 -6
  490. package/dist/calcite/36QANWE7.js +0 -6
  491. package/dist/calcite/3BABRTZ7.js +0 -6
  492. package/dist/calcite/3GVUXBN3.js +0 -6
  493. package/dist/calcite/3ISRG7GL.js +0 -6
  494. package/dist/calcite/43FXUJG7.js +0 -6
  495. package/dist/calcite/43U3QOKZ.js +0 -6
  496. package/dist/calcite/45C26CGA.js +0 -6
  497. package/dist/calcite/4DYITTEZ.js +0 -6
  498. package/dist/calcite/4GJIQCDB.js +0 -6
  499. package/dist/calcite/4TQWOYN3.js +0 -6
  500. package/dist/calcite/525CSK55.js +0 -6
  501. package/dist/calcite/5J3KIS2Y.js +0 -6
  502. package/dist/calcite/5LBOUCUR.js +0 -6
  503. package/dist/calcite/5YNUO5U6.js +0 -6
  504. package/dist/calcite/635OBWKC.js +0 -6
  505. package/dist/calcite/7LNOTS5J.js +0 -6
  506. package/dist/calcite/7VTS46YY.js +0 -6
  507. package/dist/calcite/7XAMYDVB.js +0 -6
  508. package/dist/calcite/7ZVYZ7HI.js +0 -6
  509. package/dist/calcite/AG2N2DRD.js +0 -6
  510. package/dist/calcite/AO43UELW.js +0 -6
  511. package/dist/calcite/BG2AISBE.js +0 -6
  512. package/dist/calcite/BGH5AJN6.js +0 -6
  513. package/dist/calcite/BXSIT4FA.js +0 -6
  514. package/dist/calcite/CCQRH5OE.js +0 -6
  515. package/dist/calcite/CNNNSCMZ.js +0 -6
  516. package/dist/calcite/DAXZUZG7.js +0 -6
  517. package/dist/calcite/DVDIWJH7.js +0 -6
  518. package/dist/calcite/EXJCK3HG.js +0 -6
  519. package/dist/calcite/F6OUTEHV.js +0 -6
  520. package/dist/calcite/FJAWVMYN.js +0 -6
  521. package/dist/calcite/FLX3VOM5.js +0 -6
  522. package/dist/calcite/G2QEEOO5.js +0 -6
  523. package/dist/calcite/H7BZS7IR.js +0 -6
  524. package/dist/calcite/HKNIHKIM.js +0 -6
  525. package/dist/calcite/HLG6DGAF.js +0 -6
  526. package/dist/calcite/HMVW5COC.js +0 -6
  527. package/dist/calcite/IAG3EJCS.js +0 -6
  528. package/dist/calcite/IBJ3DPFM.js +0 -6
  529. package/dist/calcite/IDSRWSZS.js +0 -6
  530. package/dist/calcite/IGFOWO7X.js +0 -6
  531. package/dist/calcite/IKWE7O4V.js +0 -6
  532. package/dist/calcite/JGO64K4G.js +0 -6
  533. package/dist/calcite/JVXIBINH.js +0 -6
  534. package/dist/calcite/K5OJ3522.js +0 -6
  535. package/dist/calcite/KDABXPKT.js +0 -6
  536. package/dist/calcite/KLKV3NO5.js +0 -6
  537. package/dist/calcite/KNU6MVIX.js +0 -6
  538. package/dist/calcite/KOX7NSUX.js +0 -6
  539. package/dist/calcite/KTIDLP6I.js +0 -24
  540. package/dist/calcite/KUQLVV3G.js +0 -6
  541. package/dist/calcite/L75EPU72.js +0 -6
  542. package/dist/calcite/LJ5WXSCB.js +0 -6
  543. package/dist/calcite/M7JLEFAV.js +0 -6
  544. package/dist/calcite/MDJ7KIEH.js +0 -6
  545. package/dist/calcite/MNPVC4UV.js +0 -6
  546. package/dist/calcite/MTZJ3QEO.js +0 -6
  547. package/dist/calcite/N5RAGKSV.js +0 -6
  548. package/dist/calcite/N7S4KMZ3.js +0 -6
  549. package/dist/calcite/NKJ53SP5.js +0 -6
  550. package/dist/calcite/NP6XKXNB.js +0 -6
  551. package/dist/calcite/NPTTGQKZ.js +0 -6
  552. package/dist/calcite/NU7YASJY.js +0 -6
  553. package/dist/calcite/NWVRCTA3.js +0 -6
  554. package/dist/calcite/OANTC65T.js +0 -6
  555. package/dist/calcite/ORFOJQIT.js +0 -6
  556. package/dist/calcite/OZ2EM7PB.js +0 -6
  557. package/dist/calcite/P2EHUODO.js +0 -6
  558. package/dist/calcite/P2OWRZWS.js +0 -6
  559. package/dist/calcite/PLIJBDJE.js +0 -6
  560. package/dist/calcite/PNUVZ3BZ.js +0 -6
  561. package/dist/calcite/PRLNQU3I.js +0 -6
  562. package/dist/calcite/QFRCFN5B.js +0 -6
  563. package/dist/calcite/QMW634ML.js +0 -6
  564. package/dist/calcite/QVFO4PCF.js +0 -6
  565. package/dist/calcite/R4GMIOLL.js +0 -6
  566. package/dist/calcite/RAABIUMQ.js +0 -6
  567. package/dist/calcite/RBAXDZGX.js +0 -6
  568. package/dist/calcite/RRXQBAP5.js +0 -6
  569. package/dist/calcite/RTAW5CIS.js +0 -6
  570. package/dist/calcite/RVTHJSK4.js +0 -7
  571. package/dist/calcite/RXLZN3RA.js +0 -6
  572. package/dist/calcite/SGUPIHES.js +0 -6
  573. package/dist/calcite/SM3PON4U.js +0 -6
  574. package/dist/calcite/SR6BSZKM.js +0 -6
  575. package/dist/calcite/SVA572F6.js +0 -6
  576. package/dist/calcite/SYEFY3RF.js +0 -6
  577. package/dist/calcite/T2I3BMFS.js +0 -6
  578. package/dist/calcite/T2RQHQ4J.js +0 -6
  579. package/dist/calcite/T4BRARRE.js +0 -6
  580. package/dist/calcite/TOVFIM35.js +0 -6
  581. package/dist/calcite/TUOQB4BF.js +0 -6
  582. package/dist/calcite/TXKCK2GX.js +0 -6
  583. package/dist/calcite/UASDTDDX.js +0 -6
  584. package/dist/calcite/UBUBAUNX.js +0 -6
  585. package/dist/calcite/UDBTSID6.js +0 -6
  586. package/dist/calcite/UIH7UV4G.js +0 -6
  587. package/dist/calcite/UJNTMRHF.js +0 -6
  588. package/dist/calcite/UT5IDNAH.js +0 -6
  589. package/dist/calcite/UW7IANT6.js +0 -6
  590. package/dist/calcite/V6S33OQR.js +0 -6
  591. package/dist/calcite/VB3C3KGQ.js +0 -6
  592. package/dist/calcite/WJ4C7WEL.js +0 -6
  593. package/dist/calcite/WW6NBCNW.js +0 -6
  594. package/dist/calcite/WWC5WLZF.js +0 -8
  595. package/dist/calcite/WYJTKFJS.js +0 -6
  596. package/dist/calcite/XFA5FHFI.js +0 -6
  597. package/dist/calcite/YMSUL5GP.js +0 -6
  598. package/dist/calcite/YQFENTI7.js +0 -6
  599. package/dist/calcite/YRI6AGQS.js +0 -6
  600. package/dist/calcite/YROEPZIT.js +0 -6
  601. package/dist/calcite/Z67HNIVB.js +0 -6
  602. package/dist/calcite/ZEO7P3BE.js +0 -6
  603. package/dist/calcite/ZEOCUBLO.js +0 -6
  604. package/dist/calcite/ZVVUEEVN.js +0 -6
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as y}from"./LJ5WXSCB.js";import{a as x}from"./UBUBAUNX.js";import{I as k,d as g,e as r,f as h,i as p,v as z,w as l,x as f,z as u}from"./WWC5WLZF.js";var t={container:"container",loader:"loader",percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},$=g`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,m=class extends z{constructor(){super(...arguments),this.messages=y({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9}}static{this.styles=$}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:n,label:s,text:c,type:i,value:o}=this,d=e.id||x(),a=i!=="indeterminate",v=Math.floor(o);return this.el.ariaLabel=s,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?v.toString():void 0,u(this.el,"id",d),this.el.role="progressbar",r`<div class=${l(t.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!n&&a&&r`<div class=${l(t.percentage)}>${this.formatValue()}</div>`||""}</div>${!n&&c&&r`<div class=${l(t.text)}>${c}</div>`||""}`}renderRing(e){let{inline:n,scale:s,value:c}=this,i=n?this.getInlineSize(s):this.getSize(s),o=i*.45,d;if(e==="progress"){let a=2*o*Math.PI,v=(this.type.startsWith("determinate")?c:24)/100*a,b=a-v;d={"stroke-dasharray":`${v} ${b}`}}return r`<svg aria-hidden=true class=${l({[t.ring]:!0,[t.trackRing]:e==="track",[t.progressRing]:e==="progress"})} style=${f(d)} viewBox=${`0 0 ${i} ${i}`}>${h`<circle cx=${i/2} cy=${i/2} r=${o??p} />`}</svg>`}};k("calcite-loader",m);export{m as Loader};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{l as q}from"./LRWFZNMG.js";import{a as C}from"./7VTS46YY.js";import{c as A,e as H,f as J,h as K}from"./TMHRMF76.js";import{c as W,d as j}from"./4YTV42YC.js";import{a as V,b as G}from"./4MHQTNLP.js";import{a as F}from"./T2I3BMFS.js";import"./RXLZN3RA.js";import{a as N}from"./LJ5WXSCB.js";import{b as R}from"./U7CNRHVY.js";import"./UASDTDDX.js";import{a as _,b as k,d as U}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{A as S,I as M,d as D,e as g,i as T,u as b,v as E,w as L}from"./WWC5WLZF.js";var oe={offset:"offset"},ie=60;function x(o){return o.replace(":15",".25").replace(":30",".5").replace(":45",".75").replace("\u2212","-")}function se(o,e){let t=w(o,"en-US",e).replace("GMT","");return t===""?0:Number(x(t))*ie}function ae(){return new Date().getTimezoneOffset()*-1}function ne(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}async function le(o){if(o==="offset")return t=>t;let{normalize:e}=await import("./344WUQSU.js");return e}async function re(o,e,t,i,l){if(t==="name"){let{groupByName:a}=await import("./7LNOTS5J.js");return(await a()).map(({label:n})=>({label:n,value:n,metadata:{filterValue:n}})).filter(n=>!!n).sort()}let u=l==="user"?o:l==="utc"?"fr":"en-GB",d=i.getTime();if(t==="region"){let[{groupByRegion:a},{getCountry:n,global:m}]=await Promise.all([import("./L6U5SH5H.js"),import("./ZEO7P3BE.js")]);return(await a()).map(({label:s,tzs:c})=>(c.sort((r,h)=>{let v=I(r,e),y=I(h,e),p="Etc/GMT";if(r.startsWith(p)&&h.startsWith(p)){let f=r.substring(p.length),P=h.substring(p.length),te=f===""?0:parseInt(f);return(P===""?0:parseInt(P))-te}return v.localeCompare(y)}),{label:$(e,s),items:c.map(r=>{let h=x(w(r,u,d)),v=I(r,e),y=s===m?`${I(m,e)} Etc`:Q(r),p=n(r),f=$(e,p);return{label:v,value:r,metadata:{country:f===v?void 0:f,filterValue:y,offset:h}}})})).sort((s,c)=>s.label===m?-1:c.label===m?1:s.label.localeCompare(c.label))}let[{groupByOffset:Z},{DateEngine:Y}]=await Promise.all([import("./LELS4MNY.js"),import("./OZT7IOB4.js")]),z=await Z({dateEngine:new Y,groupDateRange:1,startDate:new Date(d).toISOString()}),ee=new Intl.ListFormat(o,{style:"long",type:"conjunction"}),B=["Factory","Etc/UTC"];return z.forEach(a=>{let n=[],m=0;a.tzs.forEach((s,c)=>{B.includes(s)&&m++,n[c]=m}),a.tzs=a.tzs.filter(s=>!B.includes(s)),a.labelTzIdx=a.labelTzIdx.map(s=>s-n[s]).filter(s=>s>=0&&s<a.tzs.length)}),z.map(({labelTzIdx:a,tzs:n})=>{let m=n[0],s=x(w(m,u,d)),c=se(m,d),r=a.map(h=>I(n[h],e));return{label:he(e,s,ee.format(r)),value:c,metadata:{filterValue:n.map(h=>Q(h))}}}).filter(a=>!!a).sort((a,n)=>a.value-n.value)}function I(o,e){return e[o]||ce(o)}function me(o,e,t){return t.timeZoneRegionLabel.replace("{city}",o).replace("{country}",$(t,e))}function $(o,e){return o[e]||e}function ce(o){return o.split("/").pop()}function Q(o){return o.replace(/_/g," ")}function he(o,e,t){return o.timeZoneLabel.replace("{offset}",e).replace("{cities}",t)}function w(o,e,t=Date.now()){return o==="Factory"&&(o="Etc/GMT"),q(e,{timeZone:o,timeZoneName:"shortOffset"}).formatToParts(t).find(({type:i})=>i==="timeZoneName").value}function de(o){return o.items!==void 0}function ue(o){return de(o[0])?o.flatMap(e=>e.items):o}function X(o,e,t){return t==null?null:ue(o).find(i=>i[e]==t)}var pe=D`: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:block}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}: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}`,O=class extends E{constructor(){super(...arguments),this.clearable=!1,this.disabled=!1,this.maxItems=0,this.messages=N({blocking:!0}),this.mode="offset",this.offsetStyle="user",this.open=!1,this.overlayPositioning="absolute",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimeZoneBeforeClose=b({cancelable:!1}),this.calciteInputTimeZoneBeforeOpen=b({cancelable:!1}),this.calciteInputTimeZoneChange=b({cancelable:!1}),this.calciteInputTimeZoneClose=b({cancelable:!1}),this.calciteInputTimeZoneOpen=b({cancelable:!1})}static{this.properties={clearable:7,disabled:7,form:3,maxItems:11,messageOverrides:0,mode:3,name:3,offsetStyle:3,open:7,overlayPositioning:3,readOnly:7,referenceDate:1,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=pe}get value(){return this._value}set value(e){this._value=e}async setFocus(){await U(this),await this.comboboxEl.setFocus()}connectedCallback(){super.connectedCallback(),A(this),W(this)}async load(){_(this),this.normalizer=await le(this.mode),await this.updateTimeZoneItems();let e=this.value,t=this.normalizeValue(e);this.value=t||(e===""?t:void 0),this.updateTimeZoneSelection();let i=this.selectedTimeZoneItem?`${this.selectedTimeZoneItem.value}`:"";J(this,i),this.value=i}willUpdate(e){e.has("value")&&this.hasUpdated&&this.handleValueChange(this.value,e.get("value")),(e.has("messages")||e.has("mode")&&(this.hasUpdated||this.mode!=="offset")||e.has("referenceDate"))&&this.handleTimeZoneItemPropsChange(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openChanged()}updated(){V(this)}loaded(){k(this),this.overrideSelectedLabelForRegion(this.open),this.openChanged()}disconnectedCallback(){super.disconnectedCallback(),H(this),j(this)}async handleTimeZoneItemPropsChange(){!this.timeZoneItems||!this.hasUpdated||(await this.updateTimeZoneItems(),this.updateTimeZoneSelection())}openChanged(){this.comboboxEl&&(this.comboboxEl.open=this.open)}async handleValueChange(e,t){let i=this.normalizeValue(e);if(!i){if(this.clearable){this._value=i,this.selectedTimeZoneItem=null;return}this._value=t,this.selectedTimeZoneItem=this.findTimeZoneItem(t);return}let l=this.findTimeZoneItem(i);if(!l){this._value=t;return}this._value=i,this.selectedTimeZoneItem=l,i!==e&&(await this.updateComplete,this.overrideSelectedLabelForRegion(this.open))}onLabelClick(){this.setFocus()}setComboboxRef(e){this.comboboxEl=e}overrideSelectedLabelForRegion(e){if(this.mode!=="region"||!this.selectedTimeZoneItem)return;let{label:t,metadata:i}=this.selectedTimeZoneItem;this.comboboxEl.selectedItems[0].textLabel=!i.country||e?t:me(t,i.country,this.messages)}onComboboxBeforeClose(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!1),this.calciteInputTimeZoneBeforeClose.emit()}onComboboxBeforeOpen(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!0),this.calciteInputTimeZoneBeforeOpen.emit()}onComboboxChange(e){e.stopPropagation();let t=e.target.selectedItems[0];if(!t){this._value="",this.selectedTimeZoneItem=null,this.calciteInputTimeZoneChange.emit();return}let i=this.findTimeZoneItemByLabel(t.getAttribute("data-label")),l=`${i.value}`;this.value===l&&i.label===this.selectedTimeZoneItem.label||(this._value=l,this.selectedTimeZoneItem=i,this.calciteInputTimeZoneChange.emit())}onComboboxClose(e){e.stopPropagation(),this.open=!1,this.calciteInputTimeZoneClose.emit()}onComboboxOpen(e){this.open=!0,e.stopPropagation(),this.calciteInputTimeZoneOpen.emit()}findTimeZoneItem(e){return X(this.timeZoneItems,"value",e)}findTimeZoneItemByLabel(e){return X(this.timeZoneItems,"label",e)}async updateTimeZoneItems(){this.timeZoneItems=await this.createTimeZoneItems()}updateTimeZoneSelection(){if(this.value===""&&this.clearable){this.selectedTimeZoneItem=null;return}let e=this.mode==="offset"?ae():ne(),t=this.value===""||!this.value?e:this.value;this.selectedTimeZoneItem=this.findTimeZoneItem(t)||this.findTimeZoneItem(e)}async createTimeZoneItems(){return!this.messages._lang||!this.messages?[]:re(this.messages._lang,this.messages,this.mode,this.referenceDate instanceof Date?this.referenceDate:new Date(this.referenceDate??Date.now()),this.offsetStyle)}normalizeValue(e){return e=e===void 0?"":e,e&&this.normalizer(e)}render(){return G({disabled:this.disabled,children:g`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} lang=${this.messages._lang??T} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.mode==="name"?this.messages.namePlaceholder:this.mode==="offset"?this.messages.offsetPlaceholder:this.messages.regionPlaceholder} placeholder-icon=search .readOnly=${this.readOnly} .scale=${this.scale} .selectionMode=${this.clearable?"single":"single-persist"} .status=${this.status} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${R(this.setComboboxRef)}>${this.renderItems()}</calcite-combobox>${K({component:this})}`})}renderItems(){return this.mode==="region"?this.renderRegionItems():C(this.timeZoneItems,({label:e})=>e,e=>{let t=this.selectedTimeZoneItem===e,{label:i,metadata:l,value:u}=e;return g`<calcite-combobox-item data-label=${i??T} .metadata=${l} .selected=${t} .textLabel=${i} .value=${u}></calcite-combobox-item>`})}renderRegionItems(){return this.timeZoneItems.flatMap(({label:e,items:t})=>F(e,g`<calcite-combobox-item-group .label=${e}>${C(t,({label:i})=>i,i=>{let l=this.selectedTimeZoneItem===i,{label:u,metadata:d,value:Z}=i;return g`<calcite-combobox-item data-label=${u??T} .description=${d.country} .metadata=${d} .selected=${l} .textLabel=${u} .value=${Z}><span class=${L(oe.offset)} slot=content-end>${d.offset}</span></calcite-combobox-item>`})}</calcite-combobox-item-group>`))}};M("calcite-input-time-zone",O);export{O as InputTimeZone};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as h,b as u}from"./4MHQTNLP.js";import{n as c}from"./UASDTDDX.js";import{a as s,b as d,d as p}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{I as l,d as n,e as o,u as i,v as r,w as t}from"./WWC5WLZF.js";var e={container:"container",dividerContainer:"divider-container",divider:"divider",widthAuto:"width-auto",widthHalf:"width-half",widthFull:"width-full"},v=n`: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([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([kind=brand]){--calcite-internal-split-button-background: var(--calcite-color-brand);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=danger]){--calcite-internal-split-button-background: var(--calcite-color-status-danger);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([kind=neutral]){--calcite-internal-split-button-background: var(--calcite-color-foreground-3);--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-inverse);--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=transparent]){--calcite-internal-split-button-background: transparent}:host([appearance=transparent]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=transparent]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=transparent]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-text-1)}:host([appearance=transparent]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-foreground-1)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline]):host([kind=danger]),:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline]):host([kind=inverse]){--calcite-internal-split-button-background: transparent}:host([appearance=outline-fill]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-background: var(--calcite-color-background)}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand)}:host([appearance=outline]):host([kind=danger]),:host([appearance=outline-fill]):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger)}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-split-button-divider: var(--calcite-color-border-1)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-split-button-divider: var(--calcite-color-inverse)}.container{display:flex;align-items:stretch}.container>calcite-dropdown>calcite-button{block-size:100%;vertical-align:top}.divider-container{display:flex;inline-size:1px;align-items:stretch;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;background-color:var(--calcite-internal-split-button-background)}.divider{margin-block:.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]) .divider-container,:host([appearance=outline]) .divider-container{border-block:1px solid var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]):hover .divider-container,:host([appearance=outline]):hover .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:hover) .divider-container,:host([appearance=outline]:hover) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([appearance=outline-fill]:focus-within):host([kind=brand]),:host([appearance=outline]:focus-within):host([kind=brand]){--calcite-internal-split-button-divider: var(--calcite-color-brand-press)}:host([appearance=outline-fill]:focus-within):host([kind=danger]),:host([appearance=outline]:focus-within):host([kind=danger]){--calcite-internal-split-button-divider: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill]:focus-within) .divider-container,:host([appearance=outline]:focus-within) .divider-container{background-color:var(--calcite-internal-split-button-divider)}:host([disabled]) calcite-dropdown>calcite-button{pointer-events:none}:host([disabled]):host([appearance=outline-fill]) .divider-container{background-color:var(--calcite-color-background)}:host([disabled]):host([appearance=outline]) .divider-container{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends r{constructor(){super(...arguments),this.active=!1,this.appearance="solid",this.disabled=!1,this.dropdownIconType="chevron",this.kind="brand",this.loading=!1,this.overlayPositioning="absolute",this.placement="bottom-end",this.scale="m",this.width="auto",this.calciteSplitButtonPrimaryClick=i({cancelable:!1}),this.calciteSplitButtonSecondaryClick=i({cancelable:!1})}static{this.properties={active:7,appearance:3,disabled:7,dropdownIconType:3,dropdownLabel:3,flipPlacements:0,kind:3,loading:7,overlayPositioning:3,placement:3,primaryIconEnd:3,primaryIconFlipRtl:3,primaryIconStart:3,primaryLabel:3,primaryText:3,scale:3,width:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=v}get dropdownIcon(){return this.dropdownIconType==="chevron"?"chevronDown":this.dropdownIconType==="caret"?"caretDown":this.dropdownIconType==="ellipsis"?"ellipsis":"handle-vertical"}async setFocus(){await p(this),c(this.el)}load(){s(this)}updated(){h(this)}loaded(){d(this)}calciteSplitButtonPrimaryClickHandler(){this.calciteSplitButtonPrimaryClick.emit()}calciteSplitButtonSecondaryClickHandler(){this.calciteSplitButtonSecondaryClick.emit()}render(){let b=this.width==="auto"?"auto":"full";return u({disabled:this.disabled,children:o`<div class=${t(e.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconEnd=${this.primaryIconEnd?this.primaryIconEnd:null} .iconFlipRtl=${this.primaryIconFlipRtl?this.primaryIconFlipRtl:null} .iconStart=${this.primaryIconStart?this.primaryIconStart:null} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .scale=${this.scale} split-child=primary type=button .width=${b}>${this.primaryText}</calcite-button><div class=${t(e.dividerContainer)}><div class=${t(e.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .widthScale=${this.scale}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconStart=${this.dropdownIcon} .kind=${this.kind} .label=${this.dropdownLabel} .scale=${this.scale} slot=trigger split-child=secondary type=button></calcite-button><slot></slot></calcite-dropdown></div>`})}};l("calcite-split-button",a);export{a as SplitButton};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{b as n,c as x}from"./V7O3TS4K.js";import{a as v,b as y}from"./4MHQTNLP.js";import{b as u}from"./U7CNRHVY.js";import{e as b,l as m}from"./UASDTDDX.js";import{a as f,b as k,d as g}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{A as d,B as h,I as p,d as l,e as o,v as r,w as c,y as e}from"./WWC5WLZF.js";var F=l`: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}:host a,:host span{position:relative;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:0;border-style:none;font-family:inherit;text-decoration:none;line-height:inherit;font-size:inherit;-webkit-appearance:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform,background-size;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host a:hover,:host span:hover{text-decoration:none}:host a,:host span{outline-color:transparent}:host a:focus,:host span:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}calcite-icon{inline-size:1em;block-size:1em;min-inline-size:unset;min-block-size:unset}.calcite-link--icon{vertical-align:middle;margin-block-start:-.25em}:host .calcite-link--icon.icon-start{margin-inline-end:.5rem}:host .calcite-link--icon.icon-end{margin-inline-start:.5rem}:host span,:host a{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;color:var(--calcite-link-text-color, var(--calcite-color-text-link));line-height:inherit;white-space:initial;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px}:host span:hover,:host span:focus,:host a:hover,:host a:focus{background-size:100% 1px,100% 1px}:host span:active,:host a:active{background-size:100% 2px,100% 2px}:host span.calcite--rtl,:host a.calcite--rtl{background-position:100% 100%,100% 100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends r{constructor(){super(),this.disabled=!1,this.download=!1,this.listen("click",this.clickHandler)}static{this.properties={disabled:7,download:[3,{converter:d}],href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,rel:1,target:1}}static{this.styles=F}async setFocus(){await g(this),m(this.childEl)}load(){f(this)}updated(){v(this)}loaded(){k(this)}clickHandler(i){this.disabled||i.isTrusted||this.childEl.click()}childElClickHandler(i){i.isTrusted||i.stopPropagation()}storeTagRef(i){this.childEl=i}render(){let{download:i,el:$}=this,z=b($),t=this.href?"a":"span",w=o`<calcite-icon class="calcite-link--icon icon-start" .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} scale=s></calcite-icon>`,E=o`<calcite-icon class="calcite-link--icon icon-end" .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} scale=s></calcite-icon>`,a=t==="span"?n`span`:n`a`,R=t==="span"?"link":null,C=t==="span"?0:null;return this.el.role="presentation",y({disabled:this.disabled,children:x`<${a} class=${c({[h.rtl]:z==="rtl"})} download=${(t==="a"?i===!0||i===""?"":i||null:null)??e} href=${(t==="a"&&this.href)??e} @click=${this.childElClickHandler} rel=${(t==="a"&&this.rel)??e} .role=${R} tabindex=${C??e} target=${(t==="a"&&this.target)??e} ${u(this.storeTagRef)}>${o`${this.iconStart?w:null}<slot></slot>${this.iconEnd?E:null}`}</${a}>`})}};p("calcite-link",s);export{s as Link};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as D}from"./SVA572F6.js";import{c as E,e as z,h as P}from"./TMHRMF76.js";import{c as O,d as R}from"./4YTV42YC.js";import{a as C,b as M}from"./4MHQTNLP.js";import{a as F}from"./LJ5WXSCB.js";import{n as x}from"./UASDTDDX.js";import{a as V,b as L,d as I}from"./3ISRG7GL.js";import{a as w}from"./UBUBAUNX.js";import{A as $,I as k,d as g,e as s,t as m,u as b,v as f,w as u,x as y,y as l}from"./WWC5WLZF.js";var K=({full:p,scale:e,partial:t})=>s`<calcite-icon class=${u(t?void 0:"icon")} .icon=${p?"star-f":"star"} .scale=${e}></calcite-icon>`,q={validationMessage:"validationMessage"},N=g`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([read-only]) *,:host([disabled]) *,:host([read-only]) ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;align-items:center;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){block-size:1.5rem;--calcite-internal-rating-spacing: .25rem}:host([scale=m]){block-size:2rem;--calcite-internal-rating-spacing: .5rem}:host([scale=l]){block-size:2.75rem;--calcite-internal-rating-spacing: .75rem}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.wrapper{display:inline-block}.star{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-rating-color, var(--calcite-color-border-input))}.star:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.average,.fraction{color:var(--calcite-rating-average-color, var(--calcite-color-status-warning))}.hovered,.selected{color:var(--calcite-rating-color-hover, var(--calcite-color-brand))}.fraction{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:700;color:var(--calcite-rating-average-text-color)}.number--count{color:var(--calcite-rating-count-text-color, var(--calcite-color-text-2));font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width: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}::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}:host([hidden]){display:none}[hidden]{display:none}`,v=class extends f{constructor(){super(),this.emit=!1,this.guid=`calcite-ratings-${w()}`,this.isKeyboardInteraction=!0,this.labelElements=[],this.max=5,this._value=0,this.disabled=!1,this.messages=F({blocking:!0}),this.readOnly=!1,this.required=!1,this.scale="m",this.showChip=!1,this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteRatingChange=b({cancelable:!1}),this.listen("keydown",this.handleHostKeyDown),this.listen("pointerout",this.handleRatingPointerOut),this.listen("pointerover",this.handleRatingPointerOver)}static{this.properties={hoverValue:16,average:11,count:11,disabled:7,form:3,messageOverrides:0,name:3,readOnly:7,required:7,scale:3,showChip:7,status:3,validationIcon:[3,{converter:$}],validationMessage:1,validity:0,value:11}}static{this.styles=N}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.hasUpdated&&this.handleValueUpdate(e))}async setFocus(){await I(this),x(this.el)}connectedCallback(){super.connectedCallback(),O(this),E(this)}async load(){V(this),this.requestUpdate("value")}willUpdate(){this.starsMap=Array.from({length:this.max},(e,t)=>{let a=t+1,i=!this.hoverValue&&this.average&&!this.value&&a<=this.average,h=a===this.value,n=this.average&&this.average+1-a,r=a<=this.hoverValue,c=`${this.guid}-${a}`,o=!this.hoverValue&&!this.value&&!r&&n>0&&n<1,d=this.value>=a,A=this.getTabIndex(a);return{average:i,checked:h,fraction:n,hovered:r,id:c,partial:o,selected:d,value:a,tabIndex:A}})}updated(){C(this)}loaded(){this.labelElements=Array.from(this.renderRoot.querySelectorAll("label")),L(this)}disconnectedCallback(){super.disconnectedCallback(),R(this),z(this)}handleValueUpdate(e){this.hoverValue=e,this.emit&&this.calciteRatingChange.emit(),this.emit=!1}onLabelClick(){this.setFocus()}handleRatingPointerOver(){this.isKeyboardInteraction=!1}handleRatingPointerOut(){this.isKeyboardInteraction=!0,this.hoverValue=null}handleHostKeyDown(){this.isKeyboardInteraction=!0}handleLabelKeyDown(e){let t=this.getValueFromLabelEvent(e),a=e.key,i=a==" "?void 0:Number(a);if(this.emit=!0,isNaN(i))switch(a){case"Enter":case" ":this.value=!this.required&&this.value===t?0:t;break;case"ArrowLeft":this.value=this.getPreviousRatingValue(t),this.updateFocus(),e.preventDefault();break;case"ArrowRight":this.value=this.getNextRatingValue(t),this.updateFocus(),e.preventDefault();break;case"Tab":this.hoverValue=null;break}else!this.required&&i>=0&&i<=this.max?this.value=i:this.required&&i>0&&i<=this.max&&(this.value=i),this.updateFocus()}handleInputChange(e){if(this.isKeyboardInteraction===!0){let t=Number(e.target.value);this.hoverValue=t,this.value=t}}handleLabelPointerOver(e){this.hoverValue=this.getValueFromLabelEvent(e)}handleLabelPointerDown(e){let t=e.currentTarget,a=this.getValueFromLabelEvent(e);this.hoverValue=a,this.emit=!0,this.value=!this.required&&this.value===a?0:a,t.focus()}handleLabelClick(e){e.preventDefault()}handleLabelFocus(e){let t=this.getValueFromLabelEvent(e);this.hoverValue=t}updateFocus(){this.hoverValue=this.value,this.labelElements[this.value-1].focus()}getTabIndex(e){return this.readOnly||this.value!==e&&(this.value||e!==1)?-1:0}getValueFromLabelEvent(e){let t=e.currentTarget;return Number(t.getAttribute("data-value"))}getNextRatingValue(e){return e===5?1:e+1}getPreviousRatingValue(e){return e===1?5:e-1}render(){let e=this.count?.toString();return M({disabled:this.disabled,children:s`<span class="wrapper"><fieldset class="fieldset" .disabled=${this.disabled}><legend class="visually-hidden">${this.messages.rating}</legend>${this.starsMap.map(({average:t,checked:a,fraction:i,hovered:h,id:n,partial:r,selected:c,value:o,tabIndex:d})=>s`<label class=${u({star:!0,selected:c,hovered:h,average:t,partial:r})} data-value=${o??l} for=${n??l} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${d??l}><input aria-errormessage=${q.validationMessage} .ariaInvalid=${this.status==="invalid"} .checked=${a} class="visually-hidden" .disabled=${this.disabled||this.readOnly} id=${n??l} name=${this.guid??l} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${m(o??"")}>${K({full:c||t,scale:this.scale})}${r&&s`<div class="fraction" style=${y({width:`${i*100}%`})}>${K({full:!0,partial:!0,scale:this.scale})}</div>`||""}<span class="visually-hidden">${this.messages.stars.replace("{num}",`${o}`)}</span></label>`)}${(this.count||this.average)&&this.showChip?s`<calcite-chip .label=${e} .scale=${this.scale} .value=${e}>${!!this.average&&s`<span class="number--average">${this.average.toString()}</span>`||""}${!!this.count&&s`<span class="number--count">(${e})</span>`||""}</calcite-chip>`:null}</fieldset>${P({component:this})}${this.validationMessage&&this.status==="invalid"?D({icon:this.validationIcon,id:q.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}</span>`})}};k("calcite-rating",v);export{v as Rating};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as T,b as q}from"./4MHQTNLP.js";import{a as m}from"./T2I3BMFS.js";import{a as r}from"./3GVUXBN3.js";import"./QMAVVMZX.js";import{a as E,b as M}from"./U7CNRHVY.js";import{e as I,o as z,r as p,u as A,v as w}from"./UASDTDDX.js";import"./UBUBAUNX.js";import{B as s,I as $,d as g,e as c,i as x,u as C,v as y,w as i,z as S}from"./WWC5WLZF.js";var n={actionsEnd:"actions-end",bulletPointIcon:"bullet-point",checkbox:"checkbox",checkboxContainer:"checkbox-container",checkboxLabel:"checkbox-label",checkmarkIcon:"checkmark",chevron:"chevron",childrenContainer:"children-container",iconStart:"icon-start",itemExpanded:"item--expanded",nodeAndActionsContainer:"node-actions-container",nodeContainer:"node-container"},R={actionsEnd:"actions-end",children:"children"},a={blank:"blank",bulletPoint:"bullet-point",checkmark:"check",checkSquareF:"check-square-f",chevronRight:"chevron-right",minusSquareF:"minus-square-f",square:"square"},V=g`: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([scale=s]){--calcite-internal-tree-item-spacing-unit: .25rem;--calcite-internal-tree-item-padding-block: .25rem;--calcite-internal-tree-item-children-container-padding: 1.25rem;--calcite-internal-tree-item-line-left-position: .75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-tree-item-spacing-unit: .5rem;--calcite-internal-tree-item-padding-block: .5rem;--calcite-internal-tree-item-children-container-padding: 1.5rem;--calcite-internal-tree-item-line-left-position: 1rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-tree-item-spacing-unit: .75rem;--calcite-internal-tree-item-padding-block: .625rem;--calcite-internal-tree-item-children-container-padding: 2.25rem;--calcite-internal-tree-item-line-left-position: 1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-color-text-3)}:host .children-container ::slotted(*){padding-inline-start:var(--calcite-internal-tree-item-children-container-padding)}.node-actions-container{display:flex}.node-actions-container .node-container,.node-actions-container .checkbox-container{gap:var(--calcite-internal-tree-item-spacing-unit)}.node-actions-container .node-container{padding-inline:var(--calcite-internal-tree-item-spacing-unit);padding-block:var(--calcite-internal-tree-item-padding-block)}:host([calcite-hydrated-hidden]){visibility:hidden!important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([lines]) .children-container:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-z-index);inline-size:1px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;block-size:100%;left:var(--calcite-internal-tree-item-line-left-position);content:"";background-color:var(--calcite-color-border-2)}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none!important}::slotted(*):hover{text-decoration:none!important}::slotted(a){inline-size:100%;text-decoration-line:none}:host{outline:2px solid transparent;outline-offset:2px}:host .node-container{outline-color:transparent}:host:focus .node-container,:host:active .node-container{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .node-container{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .checkbox{outline:2px solid transparent;outline-offset:2px}.actions-end{display:flex;flex-direction:row;align-items:center;align-self:stretch}.checkbox-container{display:flex;align-items:center}.checkbox{line-height:0;color:var(--calcite-color-border-input)}.checkbox-label{pointer-events:none;display:flex;align-items:center}.children-container{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),all var(--calcite-animation-timing) ease-in-out}.item--expanded>.children-container{overflow:visible;opacity:1;transform:none;block-size:auto}.node-container{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-color-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected]) .node-container,:host([selected]) .node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .node-container .bullet-point,:host([selected]) .node-container .checkmark,:host([selected]) .node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark{opacity:1;color:var(--calcite-color-brand)}:host([has-children]) .node-container .bullet-point,:host([has-children]) .node-container .checkmark{display:none}.chevron{position:relative;align-self:center;color:var(--calcite-color-text-3);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;flex:0 0 auto;transform:rotate(0)}.calcite--rtl .chevron{transform:rotate(180deg)}.item--expanded .node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-color-brand)}:host([selected]) .checkbox{color:var(--calcite-color-brand)}:host([has-children][indeterminate]) .checkbox{color:var(--calcite-color-brand)}:host([hidden]){display:none}[hidden]{display:none}`,u=class extends y{constructor(){super(),this.actionSlotWrapper=E(),this.userChangedValue=!1,this.hasEndActions=!1,this.updateAfterInitialRender=!1,this.depth=-1,this.disabled=!1,this.expanded=!1,this.hasChildren=null,this.indeterminate=!1,this.parentExpanded=!1,this.selected=!1,this.calciteInternalTreeItemSelect=C({cancelable:!1}),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasEndActions:16,updateAfterInitialRender:16,depth:11,disabled:7,expanded:7,hasChildren:7,iconFlipRtl:3,iconStart:3,indeterminate:7,label:1,lines:7,parentExpanded:5,scale:3,selected:7,selectionMode:3}}static{this.styles=V}connectedCallback(){super.connectedCallback(),this.parentTreeItem=this.el.parentElement?.closest("calcite-tree-item")}load(){requestAnimationFrame(()=>this.updateAfterInitialRender=!0)}willUpdate(e){this.preWillUpdate(),e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.updateChildTree(),e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.handleSelectedChange(this.selected),e.has("selectionMode")&&this.getSelectionMode()}updated(){T(this)}loaded(){this.updateAncestorTree()}handleSelectedChange(e){this.selectionMode==="ancestors"&&!this.userChangedValue&&(e&&(this.indeterminate=!1),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:!0,updateItem:!1}))}getSelectionMode(){this.isSelectionMultiLike=this.selectionMode==="multiple"||this.selectionMode==="multichildren"}onClick(e){if(this.disabled||this.isActionEndEvent(e))return;let[t]=z(this.el,"a");if(t&&e.composedPath()[0].tagName.toLowerCase()!=="a"){let o=t.target===""?"_self":t.target;window.open(t.href,o)}this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode==="ancestors"||this.isSelectionMultiLike,updateItem:!0}),this.userChangedValue=!0}iconClickHandler(e){e.stopPropagation(),this.expanded=!this.expanded}childrenClickHandler(e){e.stopPropagation()}keyDownHandler(e){if(!(this.isActionEndEvent(e)||e.defaultPrevented))switch(e.key){case" ":this.userChangedValue=!0,this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault();break;case"Enter":{let t=Array.from(this.el.children).find(o=>o.matches("a"));this.userChangedValue=!0,t?(t.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault()}}}updateChildTree(){let{childTree:e}=this;e&&(e.parentExpanded=this.expanded)}handleChildrenSlotChange(e){let t=w(e).filter(o=>o.matches("calcite-tree"))[0];this.childTree=t,this.updateChildTree()}isActionEndEvent(e){return e.composedPath().includes(this.actionSlotWrapper.value)}updateAncestorTree(){let e=this.parentTreeItem;if(!(this.selectionMode!=="ancestors"||!e)){if(this.selected){let t=this.el.parentElement,o=Array.from(t?.children),d=o.filter(l=>l.selected);o.length===d.length?(e.selected=!0,e.indeterminate=!1):d.length>0&&(e.indeterminate=!0),Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])")).forEach(l=>{l.selected=!0,l.indeterminate=!1})}else if(this.indeterminate){let t=this.parentTreeItem;t.indeterminate=!0}}}actionsEndSlotChangeHandler(e){this.hasEndActions=A(e)}preWillUpdate(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let e=this.el.closest("calcite-tree");if(!e)return;this.selectionMode=e.selectionMode,this.scale=e.scale||"m",this.lines=e.lines;let t;for(;e&&(t=e.parentElement?.closest("calcite-tree"),t!==e);)e=t,this.depth=this.depth+1}render(){let e=I(this.el)==="rtl",t=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist",o=this.selectionMode==="multiple"||this.selectionMode==="multichildren",d=this.selectionMode==="none"&&!this.hasChildren,l=this.hasChildren&&this.indeterminate,P=this.hasChildren||this.selectionMode==="ancestors"?c`<calcite-icon class=${i({[n.chevron]:!0,[s.rtl]:e})} data-test-id=icon .icon=${this.hasChildren?a.chevronRight:a.blank} @click=${this.iconClickHandler} .scale=${r(this.scale)}></calcite-icon>`:null,b=m("default-slot",c`<slot></slot>`),f=this.selectionMode==="ancestors"?c`<div class=${i(n.checkboxContainer)}><calcite-icon class=${i(n.checkbox)} .icon=${this.selected?a.checkSquareF:l?a.minusSquareF:a.square} .scale=${r(this.scale)}></calcite-icon></div>`:null,h=t?a.bulletPoint:o?a.checkmark:d?a.blank:null,L=h?c`<calcite-icon class=${i({[n.bulletPointIcon]:h===a.bulletPoint,[n.checkmarkIcon]:h===a.checkmark,[s.rtl]:e})} .icon=${h} .scale=${r(this.scale)}></calcite-icon>`:null,k=!(this.parentExpanded||this.depth===1),v=this.updateAfterInitialRender&&this.expanded,{hasEndActions:F}=this,H=m("actionsEndSlot",c`<slot name=${R.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot>`),D=c`<calcite-icon class=${i(n.iconStart)} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${r(this.scale)}></calcite-icon>`;return this.el.ariaChecked=this.selectionMode==="multiple"||this.selectionMode==="multichildren"||this.selectionMode==="ancestors"?p(this.selected):void 0,this.el.ariaExpanded=this.hasChildren?p(v):void 0,this.el.inert=k,this.el.ariaLive="polite",this.el.ariaSelected=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist"?p(this.selected):void 0,this.el.toggleAttribute("calcite-hydrated-hidden",k),this.el.role="treeitem",S(this.el,"tabIndex",this.disabled?-1:0),q({disabled:this.disabled,children:c`<div class=${i({[n.itemExpanded]:v})}><div class=${i(n.nodeAndActionsContainer)}><div class=${i({[n.nodeContainer]:!0,[s.rtl]:e})} data-selection-mode=${this.selectionMode??x}>${P}${L}${f||null}${this.iconStart?D:null}${f?c`<label class=${i(n.checkboxLabel)}>${b}</label>`:b}</div><div class=${i(n.actionsEnd)} .hidden=${!F} ${M(this.actionSlotWrapper)}>${H}</div></div><div class=${i({[n.childrenContainer]:!0,[s.rtl]:e})} data-test-id=calcite-tree-children @click=${this.childrenClickHandler} .role=${this.hasChildren?"group":void 0}><slot name=${R.children} @slotchange=${this.handleChildrenSlotChange}></slot></div></div>`})}};$("calcite-tree-item",u);export{u as TreeItem};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as y}from"./67NDJDQ5.js";import{a as _,b as C,c as w,d as K}from"./RVTHJSK4.js";import{a as E}from"./FLX3VOM5.js";import{a as j}from"./XYFCDRYI.js";import"./M66YCIAJ.js";import{a as P}from"./IGFOWO7X.js";import{a as M}from"./T2I3BMFS.js";import{a as T}from"./SKMMQQJV.js";import{a as F}from"./LJ5WXSCB.js";import{b as k}from"./U7CNRHVY.js";import{D as p,b as A,e as g,n as R}from"./UASDTDDX.js";import{a as V,b as L,d as U}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{B as $,I as H,d as D,e as S,u as z,v as I,w as d,z as B}from"./WWC5WLZF.js";var l={assistiveText:"assistive-text",scrim:"scrim",container:"container",containerOpen:"container--open",content:"content",contentContainer:"content-container",containerEmbedded:"container--embedded",resizeHandle:"resize-handle",resizeHandleBar:"resize-handle-bar",height:"height"},q=10,N=25,W=D`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);box-sizing:border-box;display:flex;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden}:host([opened]){visibility:visible!important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:.25rem}:host([display-mode=float]) .container{padding:.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-overlay)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-color-background);color:var(--calcite-color-border-input)}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);right:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:1px solid var(--calcite-color-border-3)}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);left:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:1px solid var(--calcite-color-border-3)}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:1px solid var(--calcite-color-border-3)}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:1px solid var(--calcite-color-border-3)}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-start-end-radius:.25rem}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,O=class extends I{constructor(){super(),this.ignoreOpenChange=!1,this.messages=F(),this.mutationObserver=T("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteSheetOpen",this.openEnd)},this.openTransitionProp="opacity",this.resizeValues={inlineSize:0,blockSize:0,minInlineSize:0,minBlockSize:0,maxInlineSize:0,maxBlockSize:0},this.displayMode="overlay",this.embedded=!1,this.escapeDisabled=!1,this.focusTrapDisabled=!1,this.heightScale="m",this.opened=!1,this.outsideCloseDisabled=!1,this.position="inline-start",this.resizable=!1,this.widthScale="m",this.calciteSheetBeforeClose=z({cancelable:!1}),this.calciteSheetBeforeOpen=z({cancelable:!1}),this.calciteSheetClose=z({cancelable:!1}),this.calciteSheetOpen=z({cancelable:!1}),this.keyDownHandler=e=>{let{defaultPrevented:t,key:s}=e;!t&&!this.escapeDisabled&&this.focusTrapDisabled&&this.open&&s==="Escape"&&(e.preventDefault(),this.open=!1)},this.listen("keydown",this.keyDownHandler)}static{this.properties={resizeValues:16,beforeClose:0,displayMode:3,embedded:5,escapeDisabled:7,focusTrapDisabled:7,heightScale:3,height:3,label:1,messageOverrides:0,open:7,opened:7,outsideCloseDisabled:7,position:3,resizable:7,widthScale:3,width:3}}static{this.styles=W}get open(){return this._open}set open(e){let t=this._open;e!==t&&(this._open=e,this.toggleSheet(e))}async setFocus(){await U(this),R(this.el)}async updateFocusTrapElements(){K(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),_(this,{focusTrapOptions:{clickOutsideDeactivates:!1,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}}),this.setupInteractions()}load(){V(this),this.open&&this.openSheet()}willUpdate(e){e.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&P(this),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("position")&&(this.hasUpdated||this.position!=="inline-start")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.setupInteractions()}loaded(){L(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),w(this),this.embedded=!1,this.cleanupInteractions()}handleFocusTrapDisabled(e){this.open&&(e?w(this):C(this))}toggleSheet(e){this.ignoreOpenChange||(e?this.openSheet():this.closeSheet())}getResizeIcon(){let{position:e}=this;return e==="block-start"||e==="block-end"?"drag-resize-vertical":"drag-resize-horizontal"}getContentElDOMRect(){return this.contentEl.getBoundingClientRect()}handleKeyDown(e){let{key:t,defaultPrevented:s,shiftKey:n}=e,{position:i,resizable:o,contentEl:m,el:r,resizeValues:{maxBlockSize:x,maxInlineSize:u,minBlockSize:v,minInlineSize:f}}=this,c=[...i==="block-end"||i==="block-start"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],"Home","End"];if(!o||!m||s||!c.includes(t))return;let h=this.getContentElDOMRect(),b=g(r)==="rtl"?-1:1,a=n?N:q;switch(t){case"ArrowUp":this.updateSize({size:h.height+(i==="block-end"?a:-a),type:"blockSize"}),e.preventDefault();break;case"ArrowDown":this.updateSize({size:h.height+(i==="block-end"?-a:a),type:"blockSize"}),e.preventDefault();break;case"ArrowLeft":this.updateSize({size:h.width+(i==="inline-end"?a:-a)*b,type:"inlineSize"}),e.preventDefault();break;case"ArrowRight":this.updateSize({size:h.width+(i==="inline-end"?-a:a)*b,type:"inlineSize"}),e.preventDefault();break;case"Home":this.updateSize({size:i==="block-start"||i==="block-end"?v:f,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break;case"End":this.updateSize({size:i==="block-start"||i==="block-end"?x:u,type:i==="block-start"||i==="block-end"?"blockSize":"inlineSize"});break}}updateSize({type:e,size:t}){let{contentEl:s,resizeValues:n}=this;if(!s)return;let i=e==="blockSize"?"minBlockSize":"minInlineSize",o=e==="blockSize"?"maxBlockSize":"maxInlineSize",m=n[i]&&n[o]?j(t,n[i],n[o]):t,r=Math.round(m);this.resizeValues={...n,[e]:r},s.style[e]=t!==null?`${r}px`:null}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"})}setupInteractions(){this.cleanupInteractions();let{el:e,contentEl:t,resizable:s,position:n,open:i,resizeHandleEl:o}=this;if(!t||!i||!s||!o)return;let{inlineSize:m,minInlineSize:r,blockSize:x,minBlockSize:u,maxInlineSize:v,maxBlockSize:f}=window.getComputedStyle(t),c={inlineSize:p(m)?parseInt(m):0,blockSize:p(x)?parseInt(x):0,minInlineSize:p(r)?parseInt(r):0,minBlockSize:p(u)?parseInt(u):0,maxInlineSize:p(v)?parseInt(v):window.innerWidth,maxBlockSize:p(f)?parseInt(f):window.innerHeight};this.resizeValues=c;let h=g(e)==="rtl";this.interaction=y(t,{context:e.ownerDocument}).resizable({edges:{top:n==="block-end"?o:!1,right:n===(h?"inline-end":"inline-start")?o:!1,bottom:n==="block-start"?o:!1,left:n===(h?"inline-start":"inline-end")?o:!1},modifiers:[y.modifiers.restrictSize({min:{width:c.minInlineSize,height:c.minBlockSize},max:{width:c.maxInlineSize,height:c.maxBlockSize}})],listeners:{move:({rect:b})=>{let a=n==="block-start"||n==="block-end";this.updateSize({size:a?b.height:b.width,type:a?"blockSize":"inlineSize"})}}})}onBeforeOpen(){this.calciteSheetBeforeOpen.emit()}onOpen(){this.calciteSheetOpen.emit(),C(this)}onBeforeClose(){this.calciteSheetBeforeClose.emit()}onClose(){this.calciteSheetClose.emit(),w(this)}setResizeHandleEl(e){this.resizeHandleEl=e,this.setupInteractions()}setContentEl(e){this.contentEl=e,this.contentId=A(e)}setTransitionEl(e){this.transitionEl=e}async openSheet(){await this.componentOnReady(),this.el.addEventListener("calciteSheetOpen",this.openEnd),this.opened=!0,this.embedded||(this.initialOverflowCSS=document.documentElement.style.overflow,document.documentElement.style.setProperty("overflow","hidden"))}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeSheet(){if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}this.opened=!1,this.removeOverflowHiddenClass()}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",this.initialOverflowCSS)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{resizable:e,position:t,resizeValues:s}=this,n=g(this.el),i=t==="block-start"||t==="block-end";return B(this.el,"aria-describedby",this.contentId),this.el.ariaLabel=this.label,this.el.ariaModal="true",this.el.role="dialog",S`<div class=${d({[l.container]:!0,[l.containerOpen]:this.opened,[l.containerEmbedded]:this.embedded,[$.rtl]:n==="rtl",[E("width",this.width,this.widthScale)]:!!(this.width||this.widthScale),[E("height",this.height,this.heightScale)]:!!(this.height||this.heightScale)})} ${k(this.setTransitionEl)}><calcite-scrim class=${d(l.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${d(l.content)} ${k(this.setContentEl)}><div class=${d(l.contentContainer)}><slot></slot></div>${e?M("resize-handle",S`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${i?"vertical":"horizontal"} .ariaValueMax=${i?s.maxBlockSize:s.maxInlineSize} .ariaValueMin=${i?s.minBlockSize:s.minInlineSize} .ariaValueNow=${i?s.blockSize:s.inlineSize} class=${d(l.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${k(this.setResizeHandleEl)}><div class=${d(l.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`):null}</div></div>`}};H("calcite-sheet",O);export{O as Sheet};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{b as o,c as r}from"./PVA5CRLN.js";var t="Global";function i(n){return o(n).countries.length===0}function a(n){if(i(n))return t;let e=n.indexOf("/");return e===-1?n:n.slice(0,e)}function c(n){return r(n)?.id??n}export{t as a,a as b,c};
@@ -1,24 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as Z}from"./SKMMQQJV.js";import{a as j}from"./UBUBAUNX.js";import{I as C,d as w,e as y,f as g,v as z,y as $}from"./WWC5WLZF.js";function S(s,i,n){let a=i[0]-s[0],h=n[0]-i[0],l=i[1]-s[1],o=n[1]-i[1],r=l/(a||h<0&&0),e=o/(h||a<0&&0),t=(r*h+e*a)/(a+h);return(Math.sign(r)+Math.sign(e))*Math.min(Math.abs(r),Math.abs(e),.5*Math.abs(t))||0}function G(s,i,n){let a=i[0]-s[0],h=i[1]-s[1];return a?(3*h/a-n)/2:n}function O(s,i,n,a,h){let[l,o]=s,[r,e]=i,t=(r-l)/3,c=h([l+t,o+t*n]).join(","),d=h([r-t,e-t*a]).join(","),p=h([r,e]).join(",");return`C ${c} ${d} ${p}`}function E({width:s,height:i,min:n,max:a}){let h=a[0]-n[0],l=a[1]-n[1];return o=>{let r=(o[0]-n[0])/h*s,e=i-o[1]/l*i;return[r,e]}}function R(s){let[i,n]=s[0],a=[i,n],h=[i,n];return s.reduce(({min:l,max:o},[r,e])=>({min:[Math.min(l[0],r),Math.min(l[1],e)],max:[Math.max(o[0],r),Math.max(o[1],e)]}),{min:a,max:h})}function q({data:s,min:i,max:n,t:a}){if(s.length===0)return"";let[h,l]=a(s[0]),[o,r]=a(i),[e]=a(n),t,c,d,p=s.reduce((v,x,m)=>{if(c=s[m-2],d=s[m-1],m>1){let u=S(c,d,x),k=t===void 0?G(c,d,u):t,b=O(c,d,k,u,a);return t=u,`${v} ${b}`}return v},`M ${o},${r} L ${o},${l} L ${h},${l}`),M=s[s.length-1],f=O(d,M,t,G(d,M,t),a);return`${p} ${f} L ${e},${r} Z`}var H=w`:host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0;display:block;block-size:100%;inline-size:100%;padding:0}.svg .graph-path--highlight{fill:var(--calcite-color-brand);opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`,L=class extends z{constructor(){super(...arguments),this.graphId=`calcite-graph-${j()}`,this.resizeObserver=Z("resize",()=>this.requestUpdate()),this.data=[]}static{this.properties={colorStops:0,data:0,highlightMax:9,highlightMin:9,max:11,min:11}}static{this.styles=H}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}render(){let{data:i,colorStops:n,el:a,highlightMax:h,highlightMin:l,min:o,max:r}=this,e=this.graphId,{clientHeight:t,clientWidth:c}=a;if(!i||i.length===0)return y`<svg aria-hidden=true class="svg" height=${t??$} preserveAspectRatio=none viewBox=${`0 0 ${c} ${t}`} width=${c??$}></svg>`;let{min:d,max:p}=R(i),M=d,f=p;(o<d[0]||o>d[0])&&(M=[o,0]),(r>p[0]||r<p[0])&&(f=[r,p[1]]);let v=E({min:M,max:f,width:c,height:t}),[x]=v([l,f[1]]),[m]=v([h,f[1]]),u=q({data:i,min:d,max:p,t:v}),k=n?`url(#linear-gradient-${e})`:void 0;return y`<svg aria-hidden=true class="svg" height=${t??$} preserveAspectRatio=none viewBox=${`0 0 ${c} ${t}`} width=${c??$}>${n?g`<defs><linearGradient .id=${`linear-gradient-${e}`} x1=0 x2=1 y1=0 y2=0>${n.map(({offset:b,color:A,opacity:B})=>g`<stop offset=${`${b*100}%`} stop-color=${A??$} stop-opacity=${B??$} />`)}</linearGradient></defs>`:null}${l!==void 0?[g`<mask height=100% .id=${`${e}1`} width=100% x=0% y=0%><path d=${`
7
- M 0,0
8
- L ${x-1},0
9
- L ${x-1},${t}
10
- L 0,${t}
11
- Z
12
- `} fill=white /></mask>`,g`<mask height=100% .id=${`${e}2`} width=100% x=0% y=0%><path d=${`
13
- M ${x+1},0
14
- L ${m-1},0
15
- L ${m-1},${t}
16
- L ${x+1}, ${t}
17
- Z
18
- `} fill=white /></mask>`,g`<mask height=100% .id=${`${e}3`} width=100% x=0% y=0%><path d=${`
19
- M ${m+1},0
20
- L ${c},0
21
- L ${c},${t}
22
- L ${m+1}, ${t}
23
- Z
24
- `} fill=white /></mask>`,g`<path class="graph-path" d=${u??$} fill=${k??$} mask=${`url(#${e}1)`} />`,g`<path class="graph-path--highlight" d=${u??$} fill=${k??$} mask=${`url(#${e}2)`} />`,g`<path class="graph-path" d=${u??$} fill=${k??$} mask=${`url(#${e}3)`} />`]:g`<path class="graph-path" d=${u??$} fill=${k??$} />`}</svg>`}};C("calcite-graph",L);export{L as Graph};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as b}from"./T2I3BMFS.js";import{a as y}from"./RXLZN3RA.js";import{a as w}from"./LJ5WXSCB.js";import{n as m}from"./UASDTDDX.js";import{a as k,b as f,d as $}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{I as x,d as h,e as l,u as v,v as p,w as c,y as u}from"./WWC5WLZF.js";var a={content:"content",toggle:"toggle"},t={chevronIcon:"chevron-icon",content:"content",iconStart:"icon--start",iconEnd:"icon--end",invalid:"invalid",sectionHeader:"section-header",sectionHeaderText:"section-header__text",statusIcon:"status-icon",switch:"switch",toggle:"toggle",toggleSwitch:"toggle--switch",toggleContainer:"toggle-container",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",valid:"valid"},s={menuOpen:"chevron-up",menuClosed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},E=h`:host{box-sizing:border-box;display:block;font-size:var(--calcite-font-size--1);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, var(--calcite-color-foreground-1))}:host([open]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-block-section-border-color, var(--calcite-color-border-3))}:host([open]) .toggle{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([open]) .chevron-icon{color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}:host([open]) .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, transparent);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.toggle--switch,.section-header{margin-inline:0px;margin-block:.25rem;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle--switch:hover,.section-header:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;word-break:break-word;background-color:var(--calcite-block-section-background-color, transparent)}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends p{constructor(){super(...arguments),this.messages=w(),this.open=!1,this.toggleDisplay="button",this.calciteBlockSectionToggle=v({cancelable:!1})}static{this.properties={iconEnd:3,iconFlipRtl:3,iconStart:3,messageOverrides:0,open:7,status:3,text:1,toggleDisplay:3}}static{this.styles=E}async setFocus(){await $(this),m(this.el)}async load(){k(this)}loaded(){f(this)}handleHeaderKeyDown(e){y(e.key)&&(this.toggleSection(),e.preventDefault(),e.stopPropagation())}toggleSection(){this.open=!this.open,this.calciteBlockSectionToggle.emit()}renderStatusIcon(){let{status:e}=this,o=s[e]??!1,i={[t.statusIcon]:!0,[t.valid]:e=="valid",[t.invalid]:e=="invalid"};return o?l`<calcite-icon class=${c(i)} .icon=${o} scale=s></calcite-icon>`:null}renderIcon(e){let{iconFlipRtl:o}=this;if(e===void 0)return null;let i=o==="both"||o==="start",r=o==="both"||o==="end",n=e===this.iconStart;return b(n?this.iconStart:this.iconEnd,l`<calcite-icon class=${c(n?t.iconStart:t.iconEnd)} .flipRtl=${n?i:r} .icon=${n?this.iconStart:this.iconEnd} scale=s></calcite-icon>`)}render(){let{messages:e,open:o,text:i,toggleDisplay:r}=this,n=o?s.menuOpen:s.menuClosed,g=o?e.collapse:e.expand,S=r==="switch"?l`<div class=${c({[t.toggleContainer]:!0})}><div aria-controls=${a.content} .ariaExpanded=${o} class=${c({[t.toggle]:!0,[t.toggleSwitch]:!0})} id=${a.toggle} @click=${this.toggleSection} @keydown=${this.handleHeaderKeyDown} role=button tabindex=0 title=${g??u}>${this.renderIcon(this.iconStart)}<div class=${c(t.toggleSwitchContent)}><span class=${c(t.toggleSwitchText)}>${i}</span></div>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-switch .checked=${o} class=${c(t.switch)} inert .label=${g} scale=s></calcite-switch></div></div>`:l`<div class=${c({[t.toggleContainer]:!0})}><button aria-controls=${a.content} .ariaExpanded=${o} class=${c({[t.sectionHeader]:!0,[t.toggle]:!0})} id=${a.toggle} @click=${this.toggleSection}>${this.renderIcon(this.iconStart)}<span class=${c(t.sectionHeaderText)}>${i}</span>${this.renderIcon(this.iconEnd)}${this.renderStatusIcon()}<calcite-icon class=${c(t.chevronIcon)} .icon=${n} scale=s></calcite-icon></button></div>`;return l`${S}<section aria-labelledby=${a.toggle} class=${c(t.content)} .hidden=${!o} id=${a.content}><slot></slot></section>`}};x("calcite-block-section",d);export{d as BlockSection};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{h as b}from"./NSKFJMNX.js";import{k as o}from"./LRWFZNMG.js";import{a as g,b as y}from"./4MHQTNLP.js";import{a as m}from"./RXLZN3RA.js";import{k as h,r as u}from"./UASDTDDX.js";import{a as v,b as f,d as p}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{I as d,d as l,e as s,u as t,v as n,z as a}from"./WWC5WLZF.js";var z=l`: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{position:relative;display:flex;cursor:pointer;color:var(--calcite-color-text-3);outline:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.day-wrapper{position:relative;display:flex;inline-size:100%;flex-direction:column;align-items:center;justify-content:center}.day{position:relative;display:flex;inline-size:100%;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-color-text-3);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;line-height:var(--calcite-font-line-height-fixed-base);background:none;block-size:var(--calcite-internal-day-size);outline-color:var(--calcite-color-transparent)}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]){--calcite-internal-day-size: 32px}:host([scale=s]) .day{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-day-size: 40px}:host([scale=m]) .day{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-day-size: 44px}:host([scale=l]) .day{font-size:var(--calcite-font-size-0)}:host(:not([current-month])) .day{opacity:var(--calcite-opacity-disabled)}:host(:hover:not([disabled]):not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:not([range]):not([selected]).current-day) .day{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}:host(:focus[selected]) .day{z-index:var(--calcite-z-index);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}:host(:focus:not([disabled]):not([selected])) .day{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}:host([range-hover]:not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host([highlighted]:not([selected])) .day{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-current)}:host(:hover[highlighted]:not([selected]).inside-range--hover) .day{background-color:var(--calcite-color-foreground-current);color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:hover:not([highlighted]):not([selected]).outside-range--hover) .day{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}@media (forced-colors: active){.day{border-radius:0}:host([selected]){outline:2px solid canvasText}:host(:hover:not([selected])) .day{border-radius:50%}:host([range][selected]) .day,:host([highlighted]) .day,:host([range-hover]:not([selected])) .day{background-color:highlight}:host([range-hover]) .day,:host([range][selected][start-of-range]) .day,:host([range][selected][end-of-range]) .day{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends n{constructor(){super(),this.active=!1,this.currentMonth=!1,this.disabled=!1,this.endOfRange=!1,this.highlighted=!1,this.range=!1,this.rangeHover=!1,this.selected=!1,this.startOfRange=!1,this.calciteInternalDayHover=t({cancelable:!1}),this.calciteInternalDaySelect=t({cancelable:!1}),this.listen("pointerover",this.pointerOverHandler),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={active:7,currentMonth:7,dateTimeFormat:0,day:9,disabled:7,endOfRange:7,highlighted:7,range:7,rangeEdge:3,rangeHover:7,scale:3,selected:7,startOfRange:7,value:0}}static{this.styles=z}async setFocus(){await p(this),this.el.focus()}load(){v(this),this.parentDatePickerEl=h(this.el,"calcite-date-picker")}updated(){g(this)}loaded(){f(this)}onClick(){this.disabled||this.calciteInternalDaySelect.emit()}keyDownHandler(e){m(e.key)&&(this.disabled||this.calciteInternalDaySelect.emit(),e.preventDefault())}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}render(){let e=b(this.value).replaceAll("-","");if(this.parentDatePickerEl){let{numberingSystem:c,lang:r}=this.parentDatePickerEl;o.numberFormatOptions={useGrouping:!1,...c&&{numberingSystem:c},...r&&{locale:r}}}let x=o.localize(String(this.day)),k=this.dateTimeFormat.format(this.value);return this.el.ariaLabel=k,this.el.ariaSelected=u(this.active),a(this.el,"id",e),this.el.role="button",a(this.el,"tabIndex",this.active&&!this.disabled?0:-1),y({disabled:this.disabled,children:s`<div aria-hidden=true class="day-wrapper"><span class="day"><span class="text">${x}</span></span></div>`})}};d("calcite-date-picker-day",i);export{i as DatePickerDay};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{J as r,c as o}from"./WWC5WLZF.js";var s=o(r);export{s as a};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{b as H,c as Mt,d as A,e as St,i as _,j as yt,k as Tt,l as E,n as kt,q as Z}from"./IVBFSESV.js";import{a as Lt,b as v}from"./XB45LF7D.js";import"./FCUAMZTR.js";import{a as vt}from"./4GZ2XBON.js";import{b}from"./XYFCDRYI.js";import{f as C,h as W,k as O}from"./LRWFZNMG.js";import{a as gt}from"./SVA572F6.js";import{a as ut,c as dt,e as pt,h as ft}from"./TMHRMF76.js";import{c as ct,d as mt,e as ht}from"./4YTV42YC.js";import{a as ot,b as st}from"./4MHQTNLP.js";import{a as et}from"./3GVUXBN3.js";import"./QMAVVMZX.js";import{b as lt}from"./RXLZN3RA.js";import{a as nt}from"./LJ5WXSCB.js";import{b as x}from"./U7CNRHVY.js";import{n as tt}from"./UASDTDDX.js";import{a as it,b as at,d as rt}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{A as J,I as j,d as G,e as U,i as w,u as Y,v as K,w as N}from"./WWC5WLZF.js";var q=function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,i,s){return i||s.slice(1)})},Q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},z=function(t,e){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(i,s,a){var r=a&&a.toUpperCase();return s||e[a]||Q[a]||q(e[r])})};var Ot=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Dt=/\d/,I=/\d\d/,Ht=/\d{3}/,At=/\d{4}/,L=/\d\d?/,Et=/[+-]?\d+/,zt=/[+-]\d\d:?(\d\d)?|Z/,F=/\d*[^-_:/,()\s\d]+/,y={},wt=function(t){return t=+t,t+(t>68?1900:2e3)};function Vt(o){if(!o||o==="Z")return 0;var t=o.match(/([+-]|\d\d)/g),e=+(t[1]*60)+(+t[2]||0);return e===0?0:t[0]==="+"?-e:e}var d=function(t){return function(e){this[t]=+e}},Yt=[zt,function(o){var t=this.zone||(this.zone={});t.offset=Vt(o)}],R=function(t){var e=y[t];return e&&(e.indexOf?e:e.s.concat(e.f))},$t=function(t,e){var i,s=y,a=s.meridiem;if(!a)i=t===(e?"pm":"PM");else for(var r=1;r<=24;r+=1)if(t.indexOf(a(r,0,e))>-1){i=r>12;break}return i},Bt={A:[F,function(o){this.afternoon=$t(o,!1)}],a:[F,function(o){this.afternoon=$t(o,!0)}],Q:[Dt,function(o){this.month=(o-1)*3+1}],S:[Dt,function(o){this.milliseconds=+o*100}],SS:[I,function(o){this.milliseconds=+o*10}],SSS:[Ht,function(o){this.milliseconds=+o}],s:[L,d("seconds")],ss:[L,d("seconds")],m:[L,d("minutes")],mm:[L,d("minutes")],H:[L,d("hours")],h:[L,d("hours")],HH:[L,d("hours")],hh:[L,d("hours")],D:[L,d("day")],DD:[I,d("day")],Do:[F,function(o){var t=y,e=t.ordinal,i=o.match(/\d+/);if(this.day=i[0],!!e)for(var s=1;s<=31;s+=1)e(s).replace(/\[|\]/g,"")===o&&(this.day=s)}],w:[L,d("week")],ww:[I,d("week")],M:[L,d("month")],MM:[I,d("month")],MMM:[F,function(o){var t=R("months"),e=R("monthsShort"),i=(e||t.map(function(s){return s.slice(0,3)})).indexOf(o)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[F,function(o){var t=R("months"),e=t.indexOf(o)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[Et,d("year")],YY:[I,function(o){this.year=wt(o)}],YYYY:[At,d("year")],Z:Yt,ZZ:Yt};function Ut(o){var t=o.afternoon;if(t!==void 0){var e=o.hours;t?e<12&&(o.hours+=12):e===12&&(o.hours=0),delete o.afternoon}}function Wt(o){o=z(o,y&&y.formats);for(var t=o.match(Ot),e=t.length,i=0;i<e;i+=1){var s=t[i],a=Bt[s],r=a&&a[0],m=a&&a[1];m?t[i]={regex:r,parser:m}:t[i]=s.replace(/^\[|\]$/g,"")}return function(n){for(var l={},c=0,u=0;c<e;c+=1){var h=t[c];if(typeof h=="string")u+=h.length;else{var f=h.regex,M=h.parser,p=n.slice(u),g=f.exec(p),S=g[0];M.call(l,S),n=n.replace(S,"")}}return Ut(l),l}}var _t=function(t,e,i,s){try{if(["x","X"].indexOf(e)>-1)return new Date((e==="X"?1e3:1)*t);var a=Wt(e),r=a(t),m=r.year,n=r.month,l=r.day,c=r.hours,u=r.minutes,h=r.seconds,f=r.milliseconds,M=r.zone,p=r.week,g=new Date,S=l||(!m&&!n?g.getDate():1),T=m||g.getFullYear(),k=0;m&&!n||(k=n>0?n-1:g.getMonth());var D=c||0,$=u||0,V=h||0,B=f||0;if(M)return new Date(Date.UTC(T,k,S,D,$,V,B+M.offset*60*1e3));if(i)return new Date(Date.UTC(T,k,S,D,$,V,B));var P;return P=new Date(T,k,S,D,$,V,B),p&&(P=s(P).week(p).toDate()),P}catch{return new Date("")}},bt=function(o,t,e){e.p.customParseFormat=!0,o&&o.parseTwoDigitYear&&(wt=o.parseTwoDigitYear);var i=t.prototype,s=i.parse;i.parse=function(a){var r=a.date,m=a.utc,n=a.args;this.$u=m;var l=n[1];if(typeof l=="string"){var c=n[2]===!0,u=n[3]===!0,h=c||u,f=n[2];u&&(f=n[2]),y=this.$locale(),!c&&f&&(y=e.Ls[f]),this.$d=_t(r,l,m,e),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),h&&r!=this.format(l)&&(this.$d=new Date("")),y={}}else if(l instanceof Array)for(var M=l.length,p=1;p<=M;p+=1){n[1]=l[p-1];var g=e.apply(this,n);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===M&&(this.$d=new Date(""))}else s.call(this,a)}};var It=function(o,t,e){var i=t.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},a=function(c,u,h,f,M){var p=c.name?c:c.$locale(),g=s(p[u]),S=s(p[h]),T=g||S.map(function(D){return D.slice(0,f)});if(!M)return T;var k=p.weekStart;return T.map(function(D,$){return T[($+(k||0))%7]})},r=function(){return e.Ls[e.locale()]},m=function(c,u){return c.formats[u]||q(c.formats[u.toUpperCase()])},n=function(){var c=this;return{months:function(h){return h?h.format("MMMM"):a(c,"months")},monthsShort:function(h){return h?h.format("MMM"):a(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):a(c,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):a(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):a(c,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(c.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return n.bind(this)()},e.localeData=function(){var l=r();return{firstDayOfWeek:function(){return l.weekStart||0},weekdays:function(){return e.weekdays()},weekdaysShort:function(){return e.weekdaysShort()},weekdaysMin:function(){return e.weekdaysMin()},months:function(){return e.months()},monthsShort:function(){return e.monthsShort()},longDateFormat:function(u){return m(l,u)},meridiem:l.meridiem,ordinal:l.ordinal}},e.months=function(){return a(r(),"months")},e.monthsShort=function(){return a(r(),"monthsShort","months",3)},e.weekdays=function(l){return a(r(),"weekdays",null,null,l)},e.weekdaysShort=function(l){return a(r(),"weekdaysShort","weekdays",3,l)},e.weekdaysMin=function(l){return a(r(),"weekdaysMin","weekdays",2,l)}};var Ft=function(o,t,e){var i=t.prototype,s=i.format;e.en.formats=Q,i.format=function(a){a===void 0&&(a=Lt);var r=this.$locale(),m=r.formats,n=m===void 0?{}:m,l=z(a,n);return s.call(this,l)}};var Pt=function(o,t){var e=t.prototype.parse;t.prototype.parse=function(a){if(typeof a.date=="string"){var r=this.$locale();a.date=r&&r.preparse?r.preparse(a.date):a.date}return e.bind(this)(a)};var i=t.prototype.format;t.prototype.format=function(){for(var a=arguments.length,r=new Array(a),m=0;m<a;m++)r[m]=arguments[m];var n=i.call.apply(i,[this].concat(r)),l=this.$locale();return l&&l.postformat?l.postformat(n):n};var s=t.prototype.fromToBase;s&&(t.prototype.fromToBase=function(a,r,m,n){var l=this.$locale()||m.$locale();return s.call(this,a,r,m,n,l&&l.postformat)})};var xt=function(o,t,e){e.updateLocale=function(i,s){var a=e.Ls,r=a[i];if(r){var m=s?Object.keys(s):[];return m.forEach(function(n){r[n]=s[n]}),r}}};var Zt=G`: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;-webkit-user-select:none;user-select:none}: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}:host([scale=s]){--calcite-toggle-spacing: .5rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1rem)}:host([scale=m]){--calcite-toggle-spacing: .75rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 1.5rem)}:host([scale=l]){--calcite-toggle-spacing: 1rem;--calcite-internal-input-text-input-padding-inline-end: calc(var(--calcite-toggle-spacing) + 2rem)}.input-wrapper{position:relative}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing);--calcite-icon-color: var(--calcite-color-text-3)}.input-wrapper:hover .toggle-icon,calcite-input-text:focus+.toggle-icon{--calcite-icon-color: var(--calcite-color-text-1)}.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}`,qt={toggleIcon:"toggle-icon"},Ct={validationMessage:"inputTimePickerValidationMessage"},Qt=new Map([["ar",()=>import("./MZ3KHKD7.js")],["bg",()=>import("./P4HQU6WZ.js")],["bs",()=>import("./3REOX2WD.js")],["ca",()=>import("./RCCGU5MD.js")],["cs",()=>import("./ZGJB2ECH.js")],["da",()=>import("./MDXVE52Q.js")],["de",()=>import("./B4XI5JOK.js")],["de-at",()=>import("./NHHVXBWF.js")],["de-ch",()=>import("./YFZLUYQJ.js")],["el",()=>import("./3LRPQHGC.js")],["en",()=>import("./33ZHAQAN.js")],["en-au",()=>import("./5QSUEEHT.js")],["en-ca",()=>import("./UR74R23Y.js")],["en-gb",()=>import("./AOOHSCUM.js")],["es",()=>import("./J7S4FBW6.js")],["es-mx",()=>import("./DMND3N53.js")],["et",()=>import("./EMKF6OLE.js")],["fi",()=>import("./IU2I5NQH.js")],["fr",()=>import("./USPGSZKI.js")],["fr-ch",()=>import("./OEZ2ZO2E.js")],["he",()=>import("./L4QPHNYB.js")],["hi",()=>import("./3AK4X5OV.js")],["hr",()=>import("./YADF4OR7.js")],["hu",()=>import("./DALSMKYG.js")],["id",()=>import("./NWOFVES6.js")],["it",()=>import("./YGZZRAVL.js")],["it-ch",()=>import("./ADB3AYG3.js")],["ja",()=>import("./J2OJW5GP.js")],["ko",()=>import("./34JGX2UT.js")],["lt",()=>import("./2WAX46W7.js")],["lv",()=>import("./NOOS5KYH.js")],["mk",()=>import("./OKBJXUSY.js")],["nl",()=>import("./XTM45ICH.js")],["nb",()=>import("./D6VMYOIF.js")],["pl",()=>import("./2ILRHKYA.js")],["pt",()=>import("./YUH32F6Q.js")],["pt-br",()=>import("./JAQBT7O2.js")],["ro",()=>import("./LPR4PB3U.js")],["ru",()=>import("./5NJCKLIQ.js")],["sk",()=>import("./3XOYD44L.js")],["sl",()=>import("./FG7MNK63.js")],["sr",()=>import("./5I3PI5EW.js")],["sv",()=>import("./7XR7JSFK.js")],["th",()=>import("./C6D6T2QL.js")],["tr",()=>import("./3EX47ZJ7.js")],["uk",()=>import("./SKJ5S6CA.js")],["vi",()=>import("./7D6Q26CZ.js")],["zh-cn",()=>import("./GSK6RQ3K.js")],["zh-hk",()=>import("./RXVA6IDK.js")],["zh-tw",()=>import("./5BEC7VI2.js")]]);v.extend(bt);v.extend(It);v.extend(Ft);v.extend(Pt);v.extend(xt);var X=class extends K{constructor(){super(),this.userChangedValue=!1,this._value=null,this.disabled=!1,this.focusTrapDisabled=!1,this.hourFormat="user",this.messages=nt(),this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=60,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputTimePickerBeforeClose=Y({cancelable:!1}),this.calciteInputTimePickerBeforeOpen=Y({cancelable:!1}),this.calciteInputTimePickerChange=Y(),this.calciteInputTimePickerClose=Y({cancelable:!1}),this.calciteInputTimePickerOpen=Y({cancelable:!1}),this.setLocalizedInputValue=t=>{this.setInputValue(this.getLocalizedTimeString(t))},this.listen("blur",this.hostBlurHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={calciteInputEl:16,effectiveHourFormat:16,disabled:7,focusTrapDisabled:7,form:3,hourFormat:3,max:3,messageOverrides:0,min:3,name:1,numberingSystem:1,open:7,overlayPositioning:1,placement:3,readOnly:7,required:7,scale:3,status:3,step:9,validationIcon:[3,{converter:J}],validationMessage:1,validity:0,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=Zt}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){this.popoverEl?.reposition(t)}async setFocus(){await rt(this),tt(this.el)}connectedCallback(){super.connectedCallback(),E(this.value)?this.setValueDirectly(this.value):this.value=void 0,ct(this),dt(this)}async load(){it(this),await this.loadLocaleData(),this.updateLocale()}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&(this.disabled||(this.open=!1)),t.has("hourFormat")&&this.updateLocale(),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&(this.readOnly||(this.open=!1)),t.has("messages")&&this.langWatcher(),t.has("numberingSystem")&&this.setLocalizedInputValue({numberingSystem:t.get("numberingSystem")}),t.has("step")&&(this.hasUpdated||this.step!==60)&&this.stepWatcher(this.step,t.get("step"))}updated(){ot(this)}loaded(){at(this),E(this.value)&&this.setLocalizedInputValue()}disconnectedCallback(){super.disconnectedCallback(),mt(this),pt(this)}async langWatcher(){await this.loadLocaleData(),this.updateLocale()}openHandler(){this.disabled||this.readOnly||this.popoverEl&&(this.popoverEl.open=this.open)}stepWatcher(t,e){(e>=60&&t>0&&t<60||t>=60&&e>0&&e<60)&&this.setValueDirectly(this.value)}valueWatcher(t){this.userChangedValue||this.setValueDirectly(t),this.userChangedValue=!1}hostBlurHandler(){let t=this.delocalizeTimeString(this.calciteInputEl.value);t?t!==this.value&&(this.setValue(t),this.setLocalizedInputValue()):this.setValue(""),this.deactivate()}calciteInternalInputFocusHandler(t){this.readOnly||t.stopPropagation()}calciteInternalInputInputHandler(t){let{messages:{_lang:e},numberingSystem:i}=this;if(i&&i!=="latn"){let s=t.target;O.numberFormatOptions={locale:e,numberingSystem:i,useGrouping:!1};let a=O.delocalize(s.value).split("").map(r=>lt.includes(r)?O.numberFormatter.format(Number(r)):r).join("");this.setInputValue(a)}}timePickerChangeHandler(t){t.stopPropagation();let e=t.target.value,i=this.shouldIncludeSeconds();this.setValue(Z(e,i)),this.setLocalizedInputValue({isoTimeString:e})}updateLocale(t=this.messages._lang){this.effectiveHourFormat=this.hourFormat==="user"?A(this.messages._lang):this.hourFormat,this.localeDefaultLTFormat=this.localeConfig.formats.LT,this.localeDefaultLTSFormat=this.localeConfig.formats.LTS,this.setLocalizedInputValue({locale:t})}popoverBeforeOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeOpen.emit()}popoverOpenHandler(t){t.stopPropagation(),this.calciteInputTimePickerOpen.emit()}popoverBeforeCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerBeforeClose.emit()}popoverCloseHandler(t){t.stopPropagation(),this.calciteInputTimePickerClose.emit(),this.open=!1}syncHiddenFormInput(t){vt("time",this,t)}delocalizeTimeString(t){v.locale(this.getSupportedDayjsLocale(this.messages._lang.toLowerCase()));let e=this.delocalizeTimeStringToParts(t),i;if(this.shouldIncludeFractionalSeconds()){let s=b(this.step),a=this.delocalizeTimeStringToParts(t,"S");if(s===1)i=a.millisecond!==0?this.getTimeStringFromParts(a):this.getTimeStringFromParts(e);else{let r=this.delocalizeTimeStringToParts(t,"SS");if(s===2)r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e);else if(s>=3){let m=this.delocalizeTimeStringToParts(t,"SSS");m.millisecond!==0?i=this.getTimeStringFromParts(m):r.millisecond!==0?i=this.getTimeStringFromParts(r):a.millisecond!==0?i=this.getTimeStringFromParts(a):i=this.getTimeStringFromParts(e)}}}else i=this.getTimeStringFromParts(e);return i}delocalizeTimeStringToParts(t,e){let i=this.messages._lang,s=t,a=Tt(this.effectiveHourFormat,i)?St(i):A(i);if(C.has(i)&&a==="12"){let m=C.get(i).am,n=C.get(i).pm,l=_(i),c=l===l.toUpperCase()?"AM":"am",u=l===l.toUpperCase()?"PM":"pm";s=s.includes(n)?s.replaceAll(n,u):s.replaceAll(m,c)}this.setLocaleTimeFormat({fractionalSecondFormatToken:e,hourFormat:a});let r=v(s,["LTS","LT"]);return r.isValid()?{hour:r.get("hour"),minute:r.get("minute"),second:r.get("second"),millisecond:r.get("millisecond")}:{hour:null,minute:null,second:null,millisecond:null}}getTimeStringFromParts(t){let e="";if(!t)return e;if(t.hour!==null&&t.minute!==null&&(e=`${H(t.hour)}:${H(t.minute)}`,this.shouldIncludeSeconds()&&t.second!==null&&(e+=`:${H(t.second)}`,this.shouldIncludeFractionalSeconds()&&t.millisecond!==null))){let i=(t.millisecond*.001).toFixed(b(this.step));e+=`.${i.toString().replace("0.","")}`}return e}keyDownHandler(t){let{defaultPrevented:e,key:i}=t;if(!e)if(i==="Enter"){if(ut(this)&&(t.preventDefault(),this.calciteInputEl.setFocus()),t.composedPath().includes(this.calciteTimePickerEl))return;let s=this.delocalizeTimeString(this.calciteInputEl.value);E(s)?(this.setValue(s),this.setLocalizedInputValue()):this.setValue("")}else i==="ArrowDown"?(this.open=!0,t.preventDefault()):this.open&&this.focusTrapDisabled&&i==="Escape"&&(this.open=!1,t.preventDefault())}getSupportedDayjsLocale(t){let e=t.toLowerCase();return e==="no"?"nb":e==="pt-pt"?"pt":e}async loadLocaleData(){let t=W(this.messages._lang).toLowerCase();t=this.getSupportedDayjsLocale(t);let{default:e}=await Qt.get(t)();this.localeConfig=e,v.locale(this.localeConfig,null,!0),v.updateLocale(t,this.getExtendedLocaleConfig(t))}getExtendedLocaleConfig(t){if(t==="ar")return{meridiem:e=>e>12?"\u0645":"\u0635",formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm a",LLLL:"dddd D MMMM YYYY h:mm a"}};if(t==="en-au")return{meridiem:e=>e>12?"pm":"am"};if(t==="en-ca")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="el")return{meridiem:e=>e>12?"\u03BC.\u03BC.":"\u03C0.\u03BC."};if(t==="es-mx")return{formats:{LT:"h:mm a",LTS:"h:mm:ss a",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"}};if(t==="hi")return{formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, h:mm A",LLLL:"dddd, D MMMM YYYY, h:mm A"},meridiem:e=>e>12?"pm":"am"};if(t==="ja")return{meridiem:e=>e>12?"\u5348\u5F8C":"\u5348\u524D"};if(t==="ko")return{meridiem:e=>e>12?"\uC624\uD6C4":"\uC624\uC804"};if(t==="no")return{meridiem:e=>e>12?"p.m.":"a.m."};if(t==="ru")return{meridiem:e=>e>12?"PM":"AM"};if(t==="zh-cn")return{meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"};if(t==="zh-tw")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"}};if(t==="zh-hk")return{formats:{LT:"Ah:mm",LTS:"Ah:mm:ss"},meridiem:e=>e>12?"\u4E0B\u5348":"\u4E0A\u5348"}}getLocalizedTimeString(t){let e=t?.hourFormat==="12"||this.effectiveHourFormat&&this.effectiveHourFormat==="12",i=t?.locale??this.messages._lang,s=t?.numberingSystem??this.numberingSystem,a=t?.isoTimeString??this.value;return kt({fractionalSecondDigits:b(this.step),hour12:e,includeSeconds:this.shouldIncludeSeconds(),locale:i,numberingSystem:s,value:a})??""}onLabelClick(){this.setFocus()}shouldIncludeSeconds(){return this.step<60}shouldIncludeFractionalSeconds(){return b(this.step)>0}setCalcitePopoverEl(t){this.popoverEl=t,this.openHandler()}setInputEl(t){t&&(this.calciteInputEl=t)}setCalciteTimePickerEl(t){t&&(this.calciteTimePickerEl=t)}setLocaleTimeFormat({fractionalSecondFormatToken:t,hourFormat:e}){let i=this.messages._lang,s=A(i),a=/h+|H+/g,r=/\s+|a+|A+|\s+/g,m=this.localeConfig.formats.LT,n=this.localeConfig.formats.LTS;if(e==="12"&&s==="24"){let c=_(i),u=yt(i);m=m.replaceAll(a,"h"),m=m.replaceAll(r,""),m=u===0?`${c}${m}`:`${m}${c}`,n=n.replaceAll(a,"h"),n=n.replaceAll(r,""),n=u===0?`${c}${n}`:`${n}${c}`}else e==="24"&&s==="12"?(m=m.replaceAll(a,"H"),m=m.replaceAll(r,""),n=n.replaceAll(a,"H"),n=n.replaceAll(r,"")):(m=this.localeDefaultLTFormat,n=this.localeDefaultLTSFormat);let l=n?.match(/ss\.*(S+)/g);if(t&&this.shouldIncludeFractionalSeconds()){let c=`ss.${t}`;n=l?n.replace(l[0],c):n.replace("ss",c)}else l&&(n=n.replace(l[0],"ss"));this.localeConfig.formats.LT=m,this.localeConfig.formats.LTS=n,v.updateLocale(this.getSupportedDayjsLocale(W(i)),this.localeConfig)}setInputValue(t){this.calciteInputEl&&(this.calciteInputEl.value=t)}setValue(t){let e=this.value,i=Mt(t)||"";i!==e&&(this.userChangedValue=!0,this.value=i||"",this.calciteInputTimePickerChange.emit().defaultPrevented&&(this.userChangedValue=!1,this.value=e,this.setLocalizedInputValue({isoTimeString:e})))}setValueDirectly(t){let e=this.shouldIncludeSeconds();this.value=Z(t,e),this.setLocalizedInputValue()}onInputWrapperClick(){this.open=!this.open}deactivate(){this.open=!1}render(){let{disabled:t,messages:e,readOnly:i}=this;return st({disabled:this.disabled,children:U`<div class="input-wrapper" @click=${this.onInputWrapperClick}><calcite-input-text aria-errormessage=${Ct.validationMessage} aria-autocomplete=none aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} .disabled=${t} icon=clock .label=${ht(this)} lang=${this.messages._lang??w} @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextFocus=${this.calciteInternalInputFocusHandler} .readOnly=${i} role=combobox .scale=${this.scale} .status=${this.status} ${x(this.setInputEl)}>${!this.readOnly&&this.renderToggleIcon(this.open)||""}</calcite-input-text></div><calcite-popover auto-close .focusTrapDisabled=${this.focusTrapDisabled} .label=${e.chooseTime} lang=${this.messages._lang??w} @calcitePopoverBeforeClose=${this.popoverBeforeCloseHandler} @calcitePopoverBeforeOpen=${this.popoverBeforeOpenHandler} @calcitePopoverClose=${this.popoverCloseHandler} @calcitePopoverOpen=${this.popoverOpenHandler} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .referenceElement=${this.calciteInputEl} trigger-disabled ${x(this.setCalcitePopoverEl)}><calcite-time-picker .hourFormat=${this.effectiveHourFormat} lang=${this.messages._lang??w} .messageOverrides=${this.messageOverrides} .numberingSystem=${this.numberingSystem} @calciteTimePickerChange=${this.timePickerChangeHandler} .scale=${this.scale} .step=${this.step} tabindex=${(this.open?void 0:-1)??w} .value=${this.value} ${x(this.setCalciteTimePickerEl)}></calcite-time-picker></calcite-popover>${ft({component:this})}${this.validationMessage&&this.status==="invalid"?gt({icon:this.validationIcon,id:Ct.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return U`<span class=${N(qt.toggleIcon)} slot=action><calcite-icon .icon=${t?"chevron-up":"chevron-down"} .scale=${et(this.scale)}></calcite-icon></span>`}};j("calcite-input-time-picker",X);export{X as InputTimePicker};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{e,w as r}from"./WWC5WLZF.js";var c={textMatch:"text-match"};function o({text:a,pattern:s}){if(!s||!a)return a;let t=a.split(s);return t.length>1&&(t[1]=e`<mark class=${r(c.textMatch)}>${t[1]}</mark>`),t}export{o as a};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as Z}from"./4GZ2XBON.js";import{a as A,b as v,c as U,d as L,e as K,k as o}from"./LRWFZNMG.js";import{a as Y}from"./SVA572F6.js";import{a as G,c as J,e as Q,g as z,h as X}from"./TMHRMF76.js";import{c as _,d as R,e as q}from"./4YTV42YC.js";import{a as P,b as M}from"./4MHQTNLP.js";import{a as S}from"./T2I3BMFS.js";import{a as f}from"./3GVUXBN3.js";import"./QMAVVMZX.js";import{b as W}from"./RXLZN3RA.js";import{a as T}from"./LJ5WXSCB.js";import{a as w,b as y}from"./U7CNRHVY.js";import{e as C,p as k,x as I}from"./UASDTDDX.js";import{a as F,b as D,d as j}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{A as x,B,I as O,b as $,d as V,e as l,i as b,t as E,u as g,v as H,w as a}from"./WWC5WLZF.js";var r={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"},ee={validationMessage:"inputNumberValidationMessage"},ie={action:"action"},ne=V`: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:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}input{transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none;position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-radius:0;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input:placeholder-shown{text-overflow:ellipsis}input{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input::placeholder,input:-ms-input-placeholder,input::-ms-input-placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-3)}input:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}input{outline-color:transparent}input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:hover calcite-icon{color:var(--calcite-color-text-1);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) input{text-align:start}:host([alignment=end]) input{text-align:end}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start: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}::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}:host([hidden]){display:none}[hidden]{display:none}`,N=class extends H{constructor(){super(),this.actionWrapperEl=w(),this.attributeWatch=$(["autofocus","enterkeyhint","inputmode"],this.handleGlobalAttributesChanged),this.inputWrapperEl=w(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setNumberValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.integer=!1,this.loading=!1,this.localeFormat=!1,this.messages=T(),this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputNumberChange=g({cancelable:!1}),this.calciteInputNumberInput=g(),this.calciteInternalInputNumberBlur=g({cancelable:!1}),this.calciteInternalInputNumberFocus=g({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:16,slottedActionElDisabledInternally:16,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,form:3,groupSeparator:7,icon:[3,{converter:x}],iconFlipRtl:7,integer:5,label:1,loading:7,localeFormat:5,max:11,maxLength:11,messageOverrides:0,min:11,minLength:11,name:3,numberButtonType:3,numberingSystem:3,placeholder:1,prefixText:1,readOnly:7,required:7,scale:3,status:3,step:3,suffixText:1,validationIcon:[3,{converter:x}],validationMessage:1,validity:0,value:1}}static{this.styles=ne}get isClearable(){return this.clearable&&this.value.length>0}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueWatcher(e,t),e&&this._value===""&&this.setNumberValue({origin:"reset",value:t}))}async selectText(){this.childNumberEl?.select()}async setFocus(){await j(this),this.childNumberEl?.focus()}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),_(this),J(this),this.el.addEventListener(z,this.onHiddenFormInputInput)}async load(){F(this),this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=k({},this.icon,"number"),this.setPreviousEmittedNumberValue(this.value),this.setPreviousNumberValue(this.value),this.warnAboutInvalidNumberValue(this.value),this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedNumberValue=this.value):this.setNumberValue({origin:"connected",value:v(this.value)?this.value:""})}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),e.has("icon")&&(this.requestedIcon=k({},this.icon,"number")),e.has("messages")&&(o.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1})}updated(){P(this)}loaded(){D(this)}disconnectedCallback(){super.disconnectedCallback(),R(this),Q(this),this.el.removeEventListener(z,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,t){if(!this.userChangedValue){if(e==="Infinity"||e==="-Infinity"){this.displayedValue=e,this.previousEmittedNumberValue=e;return}this.setNumberValue({origin:"direct",previousValue:t,value:e==null||e==""?"":v(e)?e:this.previousValue||""}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&G(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,t,i,m){let{value:n}=this;if(n==="Infinity"||n==="-Infinity")return;let s=e==="up"?1:-1,u=this.integer&&this.step!=="any"?Math.round(this.step):this.step,p=u==="any"?1:Math.abs(u||1),h=new A(n!==""?n:"0").add(`${p*s}`),d=()=>typeof i=="number"&&!isNaN(i)&&h.subtract(`${i}`).isNegative,c=()=>typeof t=="number"&&!isNaN(t)&&!h.subtract(`${t}`).isNegative,te=d()?`${i}`:c()?`${t}`:h.toString();this.setNumberValue({committing:!0,nativeEvent:m,origin:"user",value:te})}clearInputValue(e){this.setNumberValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedNumberValue&&(this.calciteInputNumberChange.emit(),this.setPreviousEmittedNumberValue(this.value))}inputNumberBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputNumberBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;let t=e.composedPath();!t.includes(this.inputWrapperEl.value)||t.includes(this.actionWrapperEl.value)||this.setFocus()}inputNumberFocusHandler(){this.calciteInternalInputNumberFocus.emit()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let t=e.target.value;o.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let i=o.delocalize(t);e.inputType==="insertFromPaste"?((!v(i)||this.integer&&(i.includes("e")||i.includes(".")))&&e.preventDefault(),this.setNumberValue({nativeEvent:e,origin:"user",value:U(i)}),this.childNumberEl.value=this.displayedValue):this.setNumberValue({nativeEvent:e,origin:"user",value:i})}inputNumberKeyDownHandler(e){if(this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){e.preventDefault(),(e.key==="Backspace"||e.key==="Delete")&&this.clearInputValue(e);return}if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){this.nudgeNumberValue("down",e);return}let t=[...W,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;let i=e.shiftKey&&e.key==="Tab";if(t.includes(e.key)||i){e.key==="Enter"&&this.emitChangeIfUserModified();return}o.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===o.decimal&&!this.integer&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(o.decimal)===-1))&&(/[eE]/.test(e.key)&&!this.integer&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||e.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault())}nudgeNumberValue(e,t){if(t instanceof KeyboardEvent&&t.repeat)return;let i=this.maxString?parseFloat(this.maxString):null,m=this.minString?parseFloat(this.minString):null,n=150;this.incrementOrDecrementNumberValue(e,i,m,t),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(e,i,m,t)},n)}nudgeButtonPointerUpHandler(e){I(e)&&window.clearInterval(this.nudgeNumberValueIntervalId)}nudgeButtonPointerOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}nudgeButtonPointerDownHandler(e){if(!I(e))return;e.preventDefault();let t=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(t,e)}syncHiddenFormInput(e){Z("number",this,e)}setChildNumberElRef(e){this.childNumberEl=e}setInputNumberValue(e){this.childNumberEl&&(this.childNumberEl.value=e)}setPreviousEmittedNumberValue(e){this.previousEmittedNumberValue=this.normalizeValue(e)}normalizeValue(e){return v(e)?e:""}setPreviousNumberValue(e){this.previousValue=this.normalizeValue(e)}setNumberValue({committing:e=!1,nativeEvent:t,origin:i,previousValue:m,value:n}){o.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let s=this.previousValue?.length>n.length||this.value?.length>n.length,u=this.integer?n.replace(/[e.]/g,""):n,p=u.charAt(u.length-1)===".",h=p&&s?u:L(u),d=n&&!h?v(this.previousValue)?this.previousValue:"":h,c=o.localize(d);i!=="connected"&&!p&&(c=K(c,d,o)),this.displayedValue=p&&s?`${c}${o.decimal}`:c,this.setPreviousNumberValue(m??this.value),this.previousValueOrigin=i,this.userChangedValue=i==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d,i==="direct"&&(this.setInputNumberValue(c),this.setPreviousEmittedNumberValue(c)),t&&(this.calciteInputNumberInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=o.localize(this.previousValue)):e&&this.emitChangeIfUserModified())}inputNumberKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){e&&!v(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=C(this.el),t=l`<div class=${a(r.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,i=l`<button .ariaLabel=${this.messages.clear} class=${a(r.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${f(this.scale)}></calcite-icon></button>`,m=l`<calcite-icon class=${a(r.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${f(this.scale)}></calcite-icon>`,n=this.numberButtonType==="horizontal",s=l`<button aria-hidden=true class=${a({[r.numberButtonItem]:!0,[r.buttonItemHorizontal]:n})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${f(this.scale)}></calcite-icon></button>`,u=l`<button aria-hidden=true class=${a({[r.numberButtonItem]:!0,[r.buttonItemHorizontal]:n})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.nudgeButtonPointerDownHandler} @pointerout=${this.nudgeButtonPointerOutHandler} @pointerup=${this.nudgeButtonPointerUpHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${f(this.scale)}></calcite-icon></button>`,p=l`<div class=${a(r.numberButtonWrapper)}>${s}${u}</div>`,h=l`<div class=${a(r.prefix)}>${this.prefixText}</div>`,d=l`<div class=${a(r.suffix)}>${this.suffixText}</div>`,c=S("localized-input",l`<input aria-errormessage=${ee.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${q(this)} autocomplete=${this.autocomplete??b} .autofocus=${this.el.autofocus} value=${this.defaultValue??b} .disabled=${this.disabled} enterkeyhint=${this.el.enterKeyHint??b} inputmode=${this.el.inputMode||"decimal"} maxlength=${this.maxLength??b} minlength=${this.minLength??b} name=${b} @blur=${this.inputNumberBlurHandler} @focus=${this.inputNumberFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputNumberKeyUpHandler} placeholder=${(this.placeholder||"")??b} .readOnly=${this.readOnly} type=text .value=${E(this.displayedValue??"")} ${y(this.setChildNumberElRef)}>`);return M({disabled:this.disabled,children:l`<div class=${a({[r.inputWrapper]:!0,[B.rtl]:e==="rtl"})} ${y(this.inputWrapperEl)}>${this.numberButtonType==="horizontal"&&!this.readOnly?u:null}${this.prefixText?h:null}<div class=${a(r.wrapper)}>${c}${this.isClearable?i:null}${this.requestedIcon?m:null}${this.loading?t:null}</div><div class=${a(r.actionWrapper)} ${y(this.actionWrapperEl)}><slot name=${ie.action}></slot></div>${this.numberButtonType==="vertical"&&!this.readOnly?p:null}${this.suffixText?d:null}${this.numberButtonType==="horizontal"&&!this.readOnly?s:null}${X({component:this})}</div>${this.validationMessage&&this.status==="invalid"?Y({icon:this.validationIcon,id:ee.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};O("calcite-input-number",N);export{N as InputNumber};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as b}from"./3GVUXBN3.js";import"./QMAVVMZX.js";import{a as C}from"./LJ5WXSCB.js";import{a as u,b as m}from"./U7CNRHVY.js";import{a as g,b as w,d as v}from"./3ISRG7GL.js";import{I as p,d,e as i,i as n,v as h,w as o}from"./WWC5WLZF.js";var e={contentCell:"content-cell",numberCell:"number-cell",selectionCell:"selection-cell",bodyRow:"body-row",footerRow:"footer-row",heading:"heading",description:"description",multipleSelectionCell:"cell--multiple-selection",assistiveText:"assistive-text",active:"active",selectedCell:"selected-cell",lastCell:"last-cell",staticCell:"static-cell"},c={checked:"check-square-f",indeterminate:"minus-square-f",unchecked:"square"},R=d`:host{--calcite-internal-table-header-background: var(--calcite-table-header-background, var(--calcite-color-foreground-2));--calcite-internal-table-header-border-color: var(--calcite-table-border-color, var(--calcite-color-border-3));display:contents}:host([alignment=center]) th{text-align:center}:host([alignment=end]) th{text-align:end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}th{white-space:normal;text-align:start;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:1px solid var(--calcite-internal-table-header-border-color);border-block-end:1px solid var(--calcite-internal-table-header-border-color);padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-internal-table-header-background)}th:not(.static-cell){outline-color:transparent}th:not(.static-cell):not(.static-cell):focus-within{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}th:not(.center):not(.end).content-cell{vertical-align:top}th.center{vertical-align:middle}th.end.content-cell{vertical-align:bottom}th.body-row,th.footer-row{padding-block:var(--calcite-internal-table-cell-padding);border-block-end:0}th.footer-row{border-block-start:1px solid var(--calcite-internal-table-header-border-color)}th.last-cell{border-inline-end:0}.cell--multiple-selection{cursor:pointer;vertical-align:middle;color:var(--calcite-color-text-3)}.cell--multiple-selection:not(.end){vertical-align:middle}.selected-cell:not(.number-cell):not(.footer-cell){--calcite-internal-table-header-background: var(--calcite-color-foreground-current)}.number-cell,.selection-cell{color:var(--calcite-color-text-2);inline-size:2rem;min-inline-size:2rem}.selection-cell calcite-icon.active{color:var(--calcite-color-brand)}.number-cell calcite-icon,.selection-cell calcite-icon{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}.heading{color:var(--calcite-color-text-1)}.description{color:var(--calcite-color-text-3);font-size:var(--calcite-internal-table-cell-font-size-secondary)}`,a=class extends h{constructor(){super(...arguments),this.containerEl=u(),this.focused=!1,this.screenReaderText="",this.alignment="start",this.interactionMode="interactive",this.messages=C({blocking:!0}),this.numberCell=!1,this.parentRowAlignment="start",this.selectionCell=!1}static{this.properties={focused:16,screenReaderText:16,alignment:3,bodyRowCount:9,colSpan:11,description:3,heading:3,interactionMode:1,lastCell:5,messageOverrides:0,numberCell:5,parentRowAlignment:1,parentRowIsSelected:5,parentRowType:1,positionInRow:9,rowSpan:11,scale:1,selectedRowCount:9,selectedRowCountLocalized:1,selectionCell:5,selectionMode:1}}static{this.styles=R}async setFocus(){await v(this),this.containerEl.value.focus()}async load(){g(this),this.updateScreenReaderText()}willUpdate(t){(t.has("selectedRowCount")||t.has("selectedRowCountLocalized"))&&this.updateScreenReaderText()}loaded(){w(this)}updateScreenReaderText(){let t="",l=`${this.selectedRowCountLocalized} ${this.messages?.selected}`;this.numberCell?t=this.messages?.rowNumber:this.selectionMode==="single"?t=`${this.messages?.selectionColumn}. ${l}`:this.bodyRowCount===this.selectedRowCount?t=`${this.messages?.selectionColumn}. ${this.messages?.all} ${l} ${this.messages?.keyboardDeselectAll}`:t=`${this.messages?.selectionColumn}. ${l} ${this.messages?.keyboardSelectAll}`,this.screenReaderText=t}onContainerBlur(){this.focused=!1}onContainerFocus(){this.focused=!0}render(){let t=this.rowSpan?"rowgroup":this.colSpan?"colgroup":this.parentRowType==="body"?"row":"col",l=this.selectedRowCount===this.bodyRowCount,s=this.selectedRowCount>0,f=l?c.checked:s?c.indeterminate:c.unchecked,r=this.interactionMode==="static"&&!this.selectionCell;return i`<th .ariaColIndex=${this.parentRowType==="head"?this.positionInRow:void 0} class=${o({[e.bodyRow]:this.parentRowType==="body",[e.footerRow]:this.parentRowType==="foot",[e.contentCell]:!this.numberCell&&!this.selectionCell,[e.numberCell]:this.numberCell,[e.selectionCell]:this.selectionCell,[e.selectedCell]:this.parentRowIsSelected,[e.multipleSelectionCell]:this.selectionMode==="multiple",[e.staticCell]:r,[e.lastCell]:this.lastCell&&(!this.rowSpan||this.colSpan&&!!this.rowSpan),[this.parentRowAlignment]:this.parentRowAlignment==="center"||this.parentRowAlignment==="end"})} colSpan=${this.colSpan??n} @blur=${this.onContainerBlur} @focus=${this.onContainerFocus} .role=${this.parentRowType==="head"?"columnheader":"rowheader"} rowSpan=${this.rowSpan??n} scope=${t??n} .tabIndex=${this.selectionCell?0:r?-1:0} ${m(this.containerEl)}>${this.heading&&i`<div class=${o(e.heading)}>${this.heading}</div>`||""}${this.description&&i`<div class=${o(e.description)}>${this.description}</div>`||""}${this.selectionCell&&this.selectionMode==="multiple"&&i`<calcite-icon class=${o({[e.active]:s||l})} .icon=${f} .scale=${b(this.scale)}></calcite-icon>`||""}${(this.selectionCell||this.numberCell)&&i`<span .ariaLive=${this.focused?"polite":"off"} class=${o(e.assistiveText)}>${this.screenReaderText}</span>`||""}</th>`}};p("calcite-table-header",a);export{a as TableHeader};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as d}from"./X4JV7QBZ.js";import{a as n}from"./SKMMQQJV.js";import{I as a,d as s,e as t,u as r,v as i,w as l}from"./WWC5WLZF.js";var p=s`:host{position:relative;display:block}.container{text-align:start}.dropdown-title{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-2)}.dropdown-separator{display:block;block-size:1px;background-color:var(--calcite-color-border-3)}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .dropdown-title{padding:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .dropdown-title{padding:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .dropdown-title{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,o=class extends i{constructor(){super(),this.mutationObserver=n("mutation",()=>this.updateItems()),this.scale="m",this.selectionMode="single",this.calciteInternalDropdownItemChange=r({cancelable:!1}),this.listen("calciteInternalDropdownItemSelect",this.updateActiveItemOnChange)}static{this.properties={groupTitle:3,scale:3,selectionMode:3}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=p}connectedCallback(){super.connectedCallback(),this.updateItems(),this.mutationObserver?.observe(this.el,{childList:!0})}load(){this.groupPosition=this.getGroupPosition()}willUpdate(e){e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="single")&&this.updateItems()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}updateActiveItemOnChange(e){this.requestedDropdownGroup=e.detail.requestedDropdownGroup,this.requestedDropdownItem=e.detail.requestedDropdownItem,this.calciteInternalDropdownItemChange.emit({requestedDropdownGroup:this.requestedDropdownGroup,requestedDropdownItem:this.requestedDropdownItem})}updateItems(){Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach(e=>e.selectionMode=this.selectionMode)}getGroupPosition(){return Array.prototype.indexOf.call(this.el.parentElement.querySelectorAll("calcite-dropdown-group"),this.el)}render(){let e=this.groupTitle?t`<span aria-hidden=true class="dropdown-title">${this.groupTitle}</span>`:null,c=this.groupPosition>0?t`<div class="dropdown-separator" role=separator></div>`:null;return this.el.ariaLabel=this.groupTitle,this.el.role="group",t`<div class=${l({[d.container]:!0})}>${c}${e}<slot></slot></div>`}};a("calcite-dropdown-group",o);export{o as DropdownGroup};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{a as c}from"./T2I3BMFS.js";import{a as h}from"./QMAVVMZX.js";import{v as d}from"./UASDTDDX.js";import"./UBUBAUNX.js";import{I as l,d as s,e,v as n,w as a}from"./WWC5WLZF.js";var p={actionBarContainer:"action-bar-container",content:"content"},m={actionBar:"action-bar"},x=s`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{z-index:var(--calcite-z-index);display:flex;flex:1 1 auto;overflow:hidden;background-color:transparent}.content{margin:0;display:flex;block-size:100%;inline-size:100%;overflow:hidden;flex:1 0 0}.action-bar-container{display:flex}:host([detached]){margin-inline:.5rem;margin-block:.5rem 1.5rem}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}:host([detached]){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;border-width:0px;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([position=end]){align-self:flex-end}:host([position=start]){align-self:flex-start}:host([height-scale=s]){block-size:33.333333%}:host([height-scale=m]){block-size:70%}:host([height-scale=l]){block-size:100%}:host([height-scale=l][detached]){block-size:calc(100% - 2rem)}::slotted(calcite-panel){block-size:100%;inline-size:100%}::slotted(calcite-action-bar),::slotted(calcite-action-bar[position=end]){border-inline-end:1px solid;border-color:var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends n{constructor(){super(...arguments),this.detached=!1,this.heightScale="s",this.position="end"}static{this.properties={actionBar:16,detached:7,heightScale:3,position:3}}static{this.styles=x}load(){h.deprecated("component",{name:"shell-center-row",removalVersion:4,suggested:"shell-panel"})}loaded(){this.actionBar?.position==="end"&&this.requestUpdate()}handleActionBarSlotChange(t){this.actionBar=d(t).filter(o=>o.matches("calcite-action-bar"))[0]}render(){let{actionBar:t}=this,o=e`<div class=${a(p.content)}><slot></slot></div>`,r=[c("action-bar",e`<div class=${a(p.actionBarContainer)} .hidden=${!this.actionBar}><slot name=${m.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`),o];return t?.position==="end"&&r.reverse(),r}};l("calcite-shell-center-row",i);export{i as ShellCenterRow};
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
- * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.98
5
- */
6
- import{d as t}from"./EXJCK3HG.js";import{a as y,b as C}from"./4MHQTNLP.js";import{a as u}from"./T2I3BMFS.js";import{a as I}from"./LJ5WXSCB.js";import{b as h}from"./U7CNRHVY.js";import{e as k}from"./UASDTDDX.js";import{a as B,b as w,d as v}from"./3ISRG7GL.js";import"./UBUBAUNX.js";import{I as g,d as b,e as d,i as p,u as l,v as f,w as $}from"./WWC5WLZF.js";var O={backButton:"back-button"},E={backLeft:"chevron-left",backRight:"chevron-right"},o={actionBar:"action-bar",alerts:"alerts",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerActions:"footer-actions",footerEnd:"footer-end",footerStart:"footer-start"},z=b`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}calcite-panel{--calcite-panel-footer-padding: var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end: var(--calcite-flow-item-header-border-block-end)}:host([hidden]){display:none}[hidden]{display:none}`,m=class extends f{constructor(){super(...arguments),this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=I(),this.overlayPositioning="absolute",this.scale="m",this.selected=!1,this.showBackButton=!1,this.calciteFlowItemBack=l(),this.calciteFlowItemClose=l({cancelable:!1}),this.calciteFlowItemScroll=l({cancelable:!1}),this.calciteFlowItemToggle=l({cancelable:!1}),this.calciteInternalFlowItemChange=l({cancelable:!1})}static{this.properties={beforeBack:0,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuOpen:7,messageOverrides:0,overlayPositioning:3,scale:3,selected:7,showBackButton:5}}static{this.styles=z}async scrollContentTo(e){await this.containerEl?.scrollContentTo(e)}async setFocus(){await v(this);let{backButtonEl:e,containerEl:a}=this;if(e)return e.setFocus();if(a)return a.setFocus()}async load(){B(this)}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.calciteInternalFlowItemChange.emit()}updated(){y(this)}loaded(){w(this)}handleInternalPanelScroll(e){e.target===this.containerEl&&(e.stopPropagation(),this.calciteFlowItemScroll.emit())}handleInternalPanelClose(e){e.target===this.containerEl&&(e.stopPropagation(),this.closed=!0,this.calciteFlowItemClose.emit())}handleInternalPanelToggle(e){e.target===this.containerEl&&(e.stopPropagation(),this.collapsed=e.target.collapsed,this.calciteFlowItemToggle.emit())}backButtonClick(){this.calciteFlowItemBack.emit()}setBackRef(e){this.backButtonEl=e}setContainerRef(e){this.containerEl=e}renderBackButton(){let{el:e}=this,a=k(e)==="rtl",{showBackButton:i,backButtonClick:c,messages:r}=this,s=r.back,n=a?E.backRight:E.backLeft;return i?u("flow-back-button",d`<calcite-action .ariaLabel=${s} class=${$(O.backButton)} .icon=${n} @click=${c} scale=s slot=header-actions-start .text=${s} title=${s??p} ${h(this.setBackRef)}></calcite-action>`):null}render(){let{collapsed:e,collapseDirection:a,collapsible:i,closable:c,closed:r,description:s,disabled:n,heading:P,headingLevel:F,loading:x,menuOpen:A,messages:S,overlayPositioning:T,beforeClose:L}=this;return C({disabled:n,children:d`<calcite-panel .beforeClose=${L} .closable=${c} .closed=${r} .collapseDirection=${a} .collapsed=${e} .collapsible=${i} .description=${s} .disabled=${n} .heading=${P} .headingLevel=${F} .loading=${x} .menuOpen=${A} .messageOverrides=${S} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${T} .scale=${this.scale} ${h(this.setContainerRef)}>${this.renderBackButton()}<slot name=${o.actionBar} slot=${t.actionBar}></slot><slot name=${o.alerts} slot=${t.alerts}></slot><slot name=${o.headerActionsStart} slot=${t.headerActionsStart}></slot><slot name=${o.headerActionsEnd} slot=${t.headerActionsEnd}></slot><slot name=${o.headerContent} slot=${t.headerContent}></slot><slot name=${o.headerMenuActions} slot=${t.headerMenuActions}></slot><slot name=${o.fab} slot=${t.fab}></slot><slot name=${o.contentTop} slot=${t.contentTop}></slot><slot name=${o.contentBottom} slot=${t.contentBottom}></slot><slot name=${o.footerStart} slot=${t.footerStart}></slot><slot name=${o.footer} slot=${t.footer}></slot><slot name=${o.footerEnd} slot=${t.footerEnd}></slot><slot name=${o.footerActions} slot=${t.footerActions}></slot><slot></slot></calcite-panel>`})}};g("calcite-flow-item",m);export{m as FlowItem};