@esri/calcite-components 3.0.0-next.120 → 3.0.0-next.121

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 (403) hide show
  1. package/dist/calcite/{T4FOGNYH.js → 22JV5L3N.js} +2 -2
  2. package/dist/calcite/{ZDBNWUPV.js → 25S4MCCS.js} +1 -1
  3. package/dist/calcite/{NFS3CHW6.js → 2RDV7VGS.js} +2 -2
  4. package/dist/calcite/{NEI6JQOA.js → 2ZRI65N3.js} +2 -2
  5. package/dist/calcite/{ZO5MELBM.js → 34AJD3EL.js} +2 -2
  6. package/dist/calcite/{EMOQZQEK.js → 3BWZQKIT.js} +2 -2
  7. package/dist/calcite/{4POAYXQP.js → 3II52JRC.js} +2 -2
  8. package/dist/calcite/{SS3C75PF.js → 3IR542I5.js} +2 -2
  9. package/dist/calcite/{KKRZ4EM4.js → 3LH7RXQH.js} +2 -2
  10. package/dist/calcite/{TNHXHNCY.js → 3O4VPURY.js} +2 -2
  11. package/dist/calcite/{26ZY7QGN.js → 3O5AP7CW.js} +1 -1
  12. package/dist/calcite/{Y7XIGJRN.js → 3TW6PRUX.js} +2 -2
  13. package/dist/calcite/{IIURCQBA.js → 3YEU6YOM.js} +2 -2
  14. package/dist/calcite/{62UVL4UL.js → 3ZNBTHKA.js} +2 -2
  15. package/dist/calcite/{33CDIHWT.js → 42RFBVI3.js} +2 -2
  16. package/dist/calcite/{CH4H4XNM.js → 44THN6ZK.js} +2 -2
  17. package/dist/calcite/{XGFDBZSK.js → 44WANO3M.js} +2 -2
  18. package/dist/calcite/{3ZRHSH26.js → 4DH2RSAJ.js} +2 -2
  19. package/dist/calcite/{6SXFEGZQ.js → 4JASM4DU.js} +2 -2
  20. package/dist/calcite/{HHM2M3P2.js → 4OW62IF2.js} +2 -2
  21. package/dist/calcite/{BZUOHH23.js → 4WF3MCXZ.js} +2 -2
  22. package/dist/calcite/{N55NWDPA.js → 4ZV47ZEN.js} +2 -2
  23. package/dist/calcite/{62U24CDO.js → 53RNVJYC.js} +2 -2
  24. package/dist/calcite/{SXFE63FC.js → 57VW4Y24.js} +1 -1
  25. package/dist/calcite/{YCVUZUNJ.js → 5AG34TOI.js} +2 -2
  26. package/dist/calcite/{25IEQNXY.js → 5FRWVNEF.js} +1 -1
  27. package/dist/calcite/{LQQUN3E7.js → 5H4FFBOY.js} +2 -2
  28. package/dist/calcite/{3IJ7UISC.js → 5NGYMKUA.js} +2 -2
  29. package/dist/calcite/{TYGGPWI5.js → 5PEG64UV.js} +2 -2
  30. package/dist/calcite/{MVLDOOOK.js → 5S5E6RLO.js} +2 -2
  31. package/dist/calcite/{MCCO3KG5.js → 5TYERECJ.js} +2 -2
  32. package/dist/calcite/{WMHWFD3K.js → 62N4K6J6.js} +2 -2
  33. package/dist/calcite/{6IXGVH22.js → 6N67R4OZ.js} +1 -1
  34. package/dist/calcite/{IXCTUXOL.js → 6Q3AXTGX.js} +2 -2
  35. package/dist/calcite/{GQP3VN6F.js → 6QYZE5IT.js} +2 -2
  36. package/dist/calcite/{C42PFVLR.js → 6UTAF7YJ.js} +2 -2
  37. package/dist/calcite/{NTM5KVMO.js → 6Z4EX5PZ.js} +2 -2
  38. package/dist/calcite/{B35VQZDX.js → 76XFGYP3.js} +2 -2
  39. package/dist/calcite/{3RUZ2FY3.js → 7JIT22ZS.js} +2 -2
  40. package/dist/calcite/{BYGSHGMJ.js → A3EPX4Y4.js} +2 -2
  41. package/dist/calcite/{ZPXNSCQN.js → A6JXMHIT.js} +2 -2
  42. package/dist/calcite/{PH2XZBOQ.js → ARDOIAFX.js} +1 -1
  43. package/dist/calcite/{65GFOUZ4.js → AWGDPKIB.js} +2 -2
  44. package/dist/calcite/{2RYCWRHR.js → B2RL4GHS.js} +2 -2
  45. package/dist/calcite/{MZN7GT6P.js → B5QMOSC7.js} +2 -2
  46. package/dist/calcite/{L5KPWIDE.js → BA74XKVU.js} +2 -2
  47. package/dist/calcite/{ZHKXJYBC.js → BC2YL5S6.js} +2 -2
  48. package/dist/calcite/{LJ42J5FU.js → BIOYLOYF.js} +2 -2
  49. package/dist/calcite/{TC6H7KLO.js → BSCR4CQE.js} +2 -2
  50. package/dist/calcite/{CA2ITLEU.js → BUEOALZD.js} +2 -2
  51. package/dist/calcite/{B5G2THV3.js → C3X25PUV.js} +2 -2
  52. package/dist/calcite/{JBWCG3DP.js → C4RK4D3J.js} +2 -2
  53. package/dist/calcite/{HO2UUDFH.js → CA36IDVH.js} +2 -2
  54. package/dist/calcite/CFDD4IPD.js +4 -0
  55. package/dist/calcite/{3AJOYGSP.js → CSQIJCRT.js} +2 -2
  56. package/dist/calcite/{CJZ4RLUT.js → CZ3WPOTC.js} +2 -2
  57. package/dist/calcite/{K767ARTQ.js → DAVJ7MNX.js} +1 -1
  58. package/dist/calcite/{6GCN5GYE.js → DFQQHNGZ.js} +2 -2
  59. package/dist/calcite/{ASO7TB6B.js → DHJPM3TG.js} +2 -2
  60. package/dist/calcite/{PH55AXOF.js → DVDDNU7N.js} +2 -2
  61. package/dist/calcite/{SLIJGIHK.js → E4WIMN6X.js} +2 -2
  62. package/dist/calcite/{OIFCQKFB.js → EBR66DFX.js} +2 -2
  63. package/dist/calcite/{UUPMV3J7.js → EDEAYPS6.js} +2 -2
  64. package/dist/calcite/{DAACP5Y2.js → EFGSTJON.js} +2 -2
  65. package/dist/calcite/{GOEDZ2IY.js → EFY5OPF5.js} +2 -2
  66. package/dist/calcite/{P2H6MUZJ.js → EI27RVWX.js} +1 -1
  67. package/dist/calcite/{HGUYWVAD.js → ELEQ6XRD.js} +2 -2
  68. package/dist/calcite/{AE3SCTSQ.js → EV2GOJRS.js} +2 -2
  69. package/dist/calcite/{XMJ7JQ3X.js → EYQ3XKZB.js} +2 -2
  70. package/dist/calcite/{XGYT47F5.js → F6O3DR46.js} +2 -2
  71. package/dist/calcite/{WI57POP3.js → F6UQIARW.js} +2 -2
  72. package/dist/calcite/{EYX7TLGU.js → F7DNFJGK.js} +2 -2
  73. package/dist/calcite/{SOI7JOUN.js → FGLY2HZV.js} +2 -2
  74. package/dist/calcite/{4J76FXOK.js → FK5CGBH3.js} +2 -2
  75. package/dist/calcite/{6T274TN2.js → FLVBQNOQ.js} +2 -2
  76. package/dist/calcite/{CHVNSHW3.js → FNHAYY6F.js} +2 -2
  77. package/dist/calcite/{URJCORWO.js → FT5U72NZ.js} +2 -2
  78. package/dist/calcite/{2VID6H7P.js → FVDGAXA6.js} +2 -2
  79. package/dist/calcite/{NRNMQHLC.js → FVL56KMK.js} +2 -2
  80. package/dist/calcite/{UJ5VWQY3.js → G3UUBHYF.js} +2 -2
  81. package/dist/calcite/{NM5VC656.js → G4GYBYW5.js} +2 -2
  82. package/dist/calcite/{ADSRLLXA.js → GCFSN7VL.js} +1 -1
  83. package/dist/calcite/{XY6AUH4R.js → GD672J4C.js} +2 -2
  84. package/dist/calcite/{AXWSBIXV.js → GYRUCOXL.js} +2 -2
  85. package/dist/calcite/{VWY3YIXN.js → H7ASMDI6.js} +2 -2
  86. package/dist/calcite/{6J6ZSBCD.js → H7M2ZBSS.js} +2 -2
  87. package/dist/calcite/{E6J4RCXE.js → HCSC2MWE.js} +1 -1
  88. package/dist/calcite/{Y5ZGSHHG.js → HJWNYDVU.js} +1 -1
  89. package/dist/calcite/{5KKBWUSG.js → HLYZK4MM.js} +1 -1
  90. package/dist/calcite/{KD5JRRVA.js → HNLSRECO.js} +2 -2
  91. package/dist/calcite/{UWUPCF5M.js → HO4YT3WD.js} +2 -2
  92. package/dist/calcite/{PJ4UGJCH.js → HSECNDLW.js} +1 -1
  93. package/dist/calcite/{XS5HMGC4.js → HSN6XZOH.js} +1 -1
  94. package/dist/calcite/{VCCPRRI4.js → I26ZO35R.js} +2 -2
  95. package/dist/calcite/{5FBFBOCG.js → I3YFNQGQ.js} +2 -2
  96. package/dist/calcite/{N7QEQOYO.js → IAILBWX6.js} +2 -2
  97. package/dist/calcite/{HMVJ4NYB.js → IBUYG3SR.js} +2 -2
  98. package/dist/calcite/{OP3Q5JV7.js → IOI5HKCN.js} +2 -2
  99. package/dist/calcite/{BSTYMQBP.js → IOZMOEVL.js} +2 -2
  100. package/dist/calcite/{IBXSTZLQ.js → IQRZTRQF.js} +2 -2
  101. package/dist/calcite/{LHRRY6S2.js → J7Q37FDH.js} +2 -2
  102. package/dist/calcite/{6ZNIP2O5.js → JEZ4OMA7.js} +2 -2
  103. package/dist/calcite/{6CQFUOC3.js → JH2U2FW2.js} +2 -2
  104. package/dist/calcite/{DLRRIOWC.js → JLMYB5GR.js} +2 -2
  105. package/dist/calcite/JNYX4VB5.js +4 -0
  106. package/dist/calcite/{3GG4JCZ2.js → JT3S7W2N.js} +2 -2
  107. package/dist/calcite/{BOMRYLMQ.js → JUY7ZRW7.js} +2 -2
  108. package/dist/calcite/{3S2UOSWL.js → JXSHNHA7.js} +2 -2
  109. package/dist/calcite/{VT55W4FG.js → JZ6OAWNM.js} +2 -2
  110. package/dist/calcite/K46CGOW4.js +4 -0
  111. package/dist/calcite/{ZLYYP2X4.js → K4INXIRZ.js} +2 -2
  112. package/dist/calcite/K6AZKDD3.js +4 -0
  113. package/dist/calcite/KCDUCN6M.js +4 -0
  114. package/dist/calcite/{MYNCZCKH.js → KCZGBAWQ.js} +2 -2
  115. package/dist/calcite/{55KQJ7XK.js → KEYPDZQZ.js} +2 -2
  116. package/dist/calcite/{3YUCYHBB.js → L5M52544.js} +2 -2
  117. package/dist/calcite/{PU3ZITLY.js → L6L777S7.js} +2 -2
  118. package/dist/calcite/{Y7MCYCUO.js → LBS5GCIT.js} +2 -2
  119. package/dist/calcite/{V3MTZ5UE.js → LGY6YMKT.js} +2 -2
  120. package/dist/calcite/{277GFCWZ.js → LM23A3DX.js} +2 -2
  121. package/dist/calcite/{H6CJ6BOX.js → LSS6Y4EX.js} +2 -2
  122. package/dist/calcite/{DGASRNWG.js → M2HJVQHF.js} +2 -2
  123. package/dist/calcite/{MTVBQXDF.js → M3SSNGCG.js} +2 -2
  124. package/dist/calcite/{QCXBJ5MS.js → MFMKFVOW.js} +2 -2
  125. package/dist/calcite/{CVEZKFZC.js → MH575SZ5.js} +1 -1
  126. package/dist/calcite/{4PQKLGX7.js → MSEGMZ4O.js} +2 -2
  127. package/dist/calcite/{CO2PGFH5.js → MURY7BFQ.js} +2 -2
  128. package/dist/calcite/{CQVKQXF7.js → MZHRMJAF.js} +2 -2
  129. package/dist/calcite/{MLT2GB42.js → N3XEO2UU.js} +2 -2
  130. package/dist/calcite/{M23NKSND.js → NCEA3PU4.js} +2 -2
  131. package/dist/calcite/{MFAEP7ZW.js → NI2WMBJ3.js} +2 -2
  132. package/dist/calcite/{RVMMZCB4.js → NIEBJTFT.js} +2 -2
  133. package/dist/calcite/{INYOZDGI.js → O3ZUWDIP.js} +2 -2
  134. package/dist/calcite/{YSM2HE3M.js → O4TJEOVS.js} +2 -2
  135. package/dist/calcite/{6ZDIJGI6.js → ODZV6ARA.js} +2 -2
  136. package/dist/calcite/OJF5P3FR.js +4 -0
  137. package/dist/calcite/{OOLCBBSZ.js → OJREHVCH.js} +2 -2
  138. package/dist/calcite/{DSB23ITG.js → OOQ2W6UK.js} +2 -2
  139. package/dist/calcite/{MZSAS6FL.js → OPIJ2WBS.js} +2 -2
  140. package/dist/calcite/{37KXTI32.js → OVQQ3EVZ.js} +2 -2
  141. package/dist/calcite/{MTM3U4HM.js → OW4UYFNY.js} +2 -2
  142. package/dist/calcite/{VGF33DBQ.js → P7SD7AO3.js} +2 -2
  143. package/dist/calcite/{OYRM3EG4.js → PAVER4ZZ.js} +2 -2
  144. package/dist/calcite/{7NH5EIHS.js → PCTP3RQK.js} +2 -2
  145. package/dist/calcite/{W7CP4WMZ.js → PGCTJPWR.js} +1 -1
  146. package/dist/calcite/{5J7G4QJW.js → PHILJMCL.js} +2 -2
  147. package/dist/calcite/{4GZIS7YN.js → PO7WITLM.js} +2 -2
  148. package/dist/calcite/{7AX6ZMON.js → PPWBAE4V.js} +2 -2
  149. package/dist/calcite/{W4SNJNXT.js → PRMGMKOR.js} +2 -2
  150. package/dist/calcite/{RZST6S6C.js → PTPMLRZS.js} +2 -2
  151. package/dist/calcite/{ADQDJYEJ.js → QFVPOQHJ.js} +1 -1
  152. package/dist/calcite/{UDFPE3BP.js → QMF6LIIP.js} +2 -2
  153. package/dist/calcite/{ZE4WGGI7.js → QN2ROMV4.js} +2 -2
  154. package/dist/calcite/{76B567V6.js → QO23YB5F.js} +2 -2
  155. package/dist/calcite/{MVBUJFI2.js → QO2Z2VXZ.js} +2 -2
  156. package/dist/calcite/QOBNZEJF.js +4 -0
  157. package/dist/calcite/{OBB7RMS4.js → QOC4GHTW.js} +2 -2
  158. package/dist/calcite/{YBRN4RND.js → QQVAZSYO.js} +2 -2
  159. package/dist/calcite/{2WYIHARD.js → QZVMTLGN.js} +2 -2
  160. package/dist/calcite/{MROSFLF5.js → RCPWW75P.js} +2 -2
  161. package/dist/calcite/{BVACQ2I2.js → RIWYVKTL.js} +2 -2
  162. package/dist/calcite/{DMKEQAOY.js → RLPFCJBQ.js} +2 -2
  163. package/dist/calcite/{253XQHH4.js → RRPPWBN5.js} +2 -2
  164. package/dist/calcite/{SI237G7G.js → SCK7SLGS.js} +1 -1
  165. package/dist/calcite/{6FC6GP6H.js → SDFUWA2R.js} +2 -2
  166. package/dist/calcite/{DTCIPWOW.js → SG2U2ZFM.js} +2 -2
  167. package/dist/calcite/{ID75B5F5.js → SPKOYF2W.js} +2 -2
  168. package/dist/calcite/{U6RXOM34.js → SSA7562Q.js} +2 -2
  169. package/dist/calcite/{4MZO2KGR.js → ST4H32VO.js} +2 -2
  170. package/dist/calcite/{OFTQDT4O.js → SUCVD5IW.js} +2 -2
  171. package/dist/calcite/SZR46S2G.js +4 -0
  172. package/dist/calcite/T2F4AJQW.js +4 -0
  173. package/dist/calcite/{PAHMP2OH.js → T372WPKY.js} +2 -2
  174. package/dist/calcite/{RJQ5TW7O.js → TFLAHXLC.js} +2 -2
  175. package/dist/calcite/{32ANYXFU.js → TJAXW43Q.js} +2 -2
  176. package/dist/calcite/{E2QE2VFR.js → TL4TOQRV.js} +2 -2
  177. package/dist/calcite/{FLV3H6GB.js → TPIWQKDS.js} +2 -2
  178. package/dist/calcite/{B3RMNT6P.js → TS4RT6PM.js} +2 -2
  179. package/dist/calcite/{WGP5HQGH.js → TWHVDAJJ.js} +2 -2
  180. package/dist/calcite/{32K7WFWU.js → U3RFGU7U.js} +2 -2
  181. package/dist/calcite/{APIKLQB6.js → UBUZZJQH.js} +2 -2
  182. package/dist/calcite/{6FI4GXVJ.js → UDE5DVHM.js} +2 -2
  183. package/dist/calcite/{OQTBXCX2.js → UQZDJGGN.js} +2 -2
  184. package/dist/calcite/{6UDLPKDH.js → UTO52OIO.js} +1 -1
  185. package/dist/calcite/{B6NW275U.js → V47VCABB.js} +2 -2
  186. package/dist/calcite/{VI7SLNVO.js → VB57LBOL.js} +2 -2
  187. package/dist/calcite/{Z3Q2LSKH.js → VE7O3M7I.js} +2 -2
  188. package/dist/calcite/{NKN23A5P.js → VEYOS55V.js} +2 -2
  189. package/dist/calcite/{VOBEVU2P.js → VKAJOKFK.js} +2 -2
  190. package/dist/calcite/{N3UJKCRZ.js → VKJOST74.js} +2 -2
  191. package/dist/calcite/{GJ5DWJ7E.js → VLOO6D6K.js} +2 -2
  192. package/dist/calcite/{7MTUWHDN.js → VPQCHAJH.js} +2 -2
  193. package/dist/calcite/{MFXQYEQN.js → VR26YWV5.js} +2 -2
  194. package/dist/calcite/{ORQE6KAR.js → VY37L2KK.js} +2 -2
  195. package/dist/calcite/{WFGJA7PS.js → WCTD7KNV.js} +1 -1
  196. package/dist/calcite/{C4R2UUEG.js → WDRZRJTJ.js} +2 -2
  197. package/dist/calcite/{RTB6XH4V.js → WGIA7LJU.js} +2 -2
  198. package/dist/calcite/{BHDWEHG4.js → WTGOK2JO.js} +2 -2
  199. package/dist/calcite/{3AGQ6K74.js → WTTYA654.js} +2 -2
  200. package/dist/calcite/{4VXVPDIZ.js → WUQE7GCP.js} +2 -2
  201. package/dist/calcite/{JLP5KHIT.js → X3YJOVDH.js} +1 -1
  202. package/dist/calcite/{JNIAELAP.js → XNGWTIMT.js} +2 -2
  203. package/dist/calcite/{BTLKGFLD.js → XUNXLNSR.js} +2 -2
  204. package/dist/calcite/{UMZOE2SO.js → XVRN64QO.js} +2 -2
  205. package/dist/calcite/{47TI5FGW.js → YKNZ763K.js} +2 -2
  206. package/dist/calcite/{XTIUKLON.js → YLG4C2YU.js} +2 -2
  207. package/dist/calcite/{AXRTNUXC.js → YODWTBLC.js} +2 -2
  208. package/dist/calcite/{TNY7PBZJ.js → YQX3JL23.js} +2 -2
  209. package/dist/calcite/{2P25PIDY.js → YR77WVIM.js} +2 -2
  210. package/dist/calcite/{N7TR3CEC.js → YSJVGNZU.js} +2 -2
  211. package/dist/calcite/{D6J6YL6W.js → YWTAL4N6.js} +2 -2
  212. package/dist/calcite/{BL2HOUSL.js → Z4I24UHU.js} +2 -2
  213. package/dist/calcite/{NYTMDXKN.js → ZAQV4LWD.js} +2 -2
  214. package/dist/calcite/{KUP2GZL3.js → ZD5TAKLJ.js} +2 -2
  215. package/dist/calcite/{67EK6AO7.js → ZDYBQWS3.js} +2 -2
  216. package/dist/calcite/{PZUSZZGP.js → ZFAQEXZR.js} +2 -2
  217. package/dist/calcite/{NMZBVR4P.js → ZIC3OMOD.js} +2 -2
  218. package/dist/calcite/{UAAQ6UPY.js → ZMKSBFI7.js} +2 -2
  219. package/dist/calcite/{6YHFVOU7.js → ZQKC5BGV.js} +2 -2
  220. package/dist/calcite/{47T45W4A.js → ZRKRJG4Z.js} +2 -2
  221. package/dist/calcite/{5XXW3DOM.js → ZVNYBJ4K.js} +2 -2
  222. package/dist/calcite/{HG6U6BHS.js → ZWH5RGOJ.js} +2 -2
  223. package/dist/calcite/calcite.esm.js +2 -2
  224. package/dist/chunks/ExpandToggle.js +1 -1
  225. package/dist/chunks/FloatingArrow.js +1 -1
  226. package/dist/chunks/Heading.js +1 -1
  227. package/dist/chunks/Validation.js +1 -1
  228. package/dist/chunks/_commonjsHelpers.js +1 -1
  229. package/dist/chunks/array.js +1 -1
  230. package/dist/chunks/component.js +1 -1
  231. package/dist/chunks/core.js +1 -1
  232. package/dist/chunks/date.js +1 -1
  233. package/dist/chunks/dom.js +1 -1
  234. package/dist/chunks/dynamicClasses.js +1 -1
  235. package/dist/chunks/filter.js +1 -1
  236. package/dist/chunks/floating-ui.js +1 -1
  237. package/dist/chunks/focusTrapComponent.js +1 -1
  238. package/dist/chunks/form.js +1 -1
  239. package/dist/chunks/global.js +10 -7
  240. package/dist/chunks/guid.js +1 -1
  241. package/dist/chunks/input.js +1 -1
  242. package/dist/chunks/interact.min.js +1 -1
  243. package/dist/chunks/interactive.js +1 -1
  244. package/dist/chunks/key.js +1 -1
  245. package/dist/chunks/label.js +1 -1
  246. package/dist/chunks/loadable.js +1 -1
  247. package/dist/chunks/locale.js +1 -1
  248. package/dist/chunks/logger.js +1 -1
  249. package/dist/chunks/math.js +1 -1
  250. package/dist/chunks/observers.js +1 -1
  251. package/dist/chunks/openCloseComponent.js +1 -1
  252. package/dist/chunks/resources.js +1 -1
  253. package/dist/chunks/resources2.js +1 -1
  254. package/dist/chunks/resources3.js +1 -1
  255. package/dist/chunks/resources4.js +1 -1
  256. package/dist/chunks/resources5.js +1 -1
  257. package/dist/chunks/resources6.js +1 -1
  258. package/dist/chunks/resources7.js +1 -1
  259. package/dist/chunks/responsive.js +1 -1
  260. package/dist/chunks/runtime.js +6 -6
  261. package/dist/chunks/sortableComponent.js +1 -1
  262. package/dist/chunks/text.js +1 -1
  263. package/dist/chunks/time.js +1 -1
  264. package/dist/chunks/useT9n.js +1 -1
  265. package/dist/chunks/utils.js +1 -1
  266. package/dist/chunks/utils2.js +1 -1
  267. package/dist/chunks/utils3.js +1 -1
  268. package/dist/chunks/utils4.js +262 -267
  269. package/dist/components/calcite-accordion/customElement.js +1 -1
  270. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  271. package/dist/components/calcite-action/customElement.js +1 -1
  272. package/dist/components/calcite-action-bar/customElement.js +1 -1
  273. package/dist/components/calcite-action-group/customElement.js +1 -1
  274. package/dist/components/calcite-action-menu/customElement.js +1 -1
  275. package/dist/components/calcite-action-pad/customElement.js +1 -1
  276. package/dist/components/calcite-alert/customElement.js +1 -1
  277. package/dist/components/calcite-autocomplete/customElement.js +1 -1
  278. package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
  279. package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
  280. package/dist/components/calcite-avatar/customElement.js +6 -6
  281. package/dist/components/calcite-block/customElement.js +1 -1
  282. package/dist/components/calcite-block-section/customElement.js +1 -1
  283. package/dist/components/calcite-button/customElement.js +1 -1
  284. package/dist/components/calcite-card/customElement.js +1 -1
  285. package/dist/components/calcite-card-group/customElement.js +1 -1
  286. package/dist/components/calcite-carousel/customElement.js +1 -1
  287. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  288. package/dist/components/calcite-checkbox/customElement.js +1 -1
  289. package/dist/components/calcite-chip/customElement.js +1 -1
  290. package/dist/components/calcite-chip-group/customElement.js +1 -1
  291. package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
  292. package/dist/components/calcite-color-picker/customElement.js +153 -128
  293. package/dist/components/calcite-color-picker/resources.d.ts +7 -16
  294. package/dist/components/calcite-color-picker/utils.d.ts +4 -3
  295. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  296. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  297. package/dist/components/calcite-combobox/customElement.js +2 -2
  298. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  299. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  300. package/dist/components/calcite-date-picker/customElement.js +1 -1
  301. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  302. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  303. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  304. package/dist/components/calcite-dialog/customElement.js +1 -1
  305. package/dist/components/calcite-dropdown/customElement.js +1 -1
  306. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  307. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  308. package/dist/components/calcite-fab/customElement.js +1 -1
  309. package/dist/components/calcite-filter/customElement.js +1 -1
  310. package/dist/components/calcite-flow/customElement.js +1 -1
  311. package/dist/components/calcite-flow-item/customElement.js +1 -1
  312. package/dist/components/calcite-graph/customElement.js +1 -1
  313. package/dist/components/calcite-graph/interfaces.d.ts +1 -5
  314. package/dist/components/calcite-handle/customElement.js +1 -1
  315. package/dist/components/calcite-icon/customElement.js +1 -1
  316. package/dist/components/calcite-inline-editable/customElement.js +19 -19
  317. package/dist/components/calcite-input/customElement.js +1 -1
  318. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  319. package/dist/components/calcite-input-message/customElement.js +1 -1
  320. package/dist/components/calcite-input-number/customElement.js +1 -1
  321. package/dist/components/calcite-input-text/customElement.js +1 -1
  322. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  323. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  324. package/dist/components/calcite-label/customElement.js +1 -1
  325. package/dist/components/calcite-link/customElement.js +1 -1
  326. package/dist/components/calcite-list/customElement.js +1 -1
  327. package/dist/components/calcite-list-item/customElement.js +1 -1
  328. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  329. package/dist/components/calcite-loader/customElement.js +1 -1
  330. package/dist/components/calcite-menu/customElement.js +1 -1
  331. package/dist/components/calcite-menu-item/customElement.js +1 -1
  332. package/dist/components/calcite-meter/customElement.js +1 -1
  333. package/dist/components/calcite-modal/customElement.js +1 -1
  334. package/dist/components/calcite-navigation/customElement.js +1 -1
  335. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  336. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  337. package/dist/components/calcite-notice/customElement.js +1 -1
  338. package/dist/components/calcite-option/customElement.js +1 -1
  339. package/dist/components/calcite-option-group/customElement.js +1 -1
  340. package/dist/components/calcite-pagination/customElement.js +1 -1
  341. package/dist/components/calcite-panel/customElement.js +1 -1
  342. package/dist/components/calcite-popover/customElement.js +1 -1
  343. package/dist/components/calcite-progress/customElement.js +1 -1
  344. package/dist/components/calcite-radio-button/customElement.js +1 -1
  345. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  346. package/dist/components/calcite-rating/customElement.js +1 -1
  347. package/dist/components/calcite-scrim/customElement.js +1 -1
  348. package/dist/components/calcite-segmented-control/customElement.js +2 -2
  349. package/dist/components/calcite-segmented-control-item/customElement.js +26 -26
  350. package/dist/components/calcite-select/customElement.js +1 -1
  351. package/dist/components/calcite-sheet/customElement.js +1 -1
  352. package/dist/components/calcite-shell/customElement.js +1 -1
  353. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  354. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  355. package/dist/components/calcite-slider/customElement.js +1 -1
  356. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  357. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  358. package/dist/components/calcite-split-button/customElement.js +1 -1
  359. package/dist/components/calcite-stack/customElement.js +1 -1
  360. package/dist/components/calcite-stepper/customElement.js +1 -1
  361. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  362. package/dist/components/calcite-switch/customElement.js +1 -1
  363. package/dist/components/calcite-tab/customElement.js +1 -1
  364. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  365. package/dist/components/calcite-tab-title/customElement.js +1 -1
  366. package/dist/components/calcite-table/customElement.js +1 -1
  367. package/dist/components/calcite-table-cell/customElement.js +1 -1
  368. package/dist/components/calcite-table-header/customElement.js +1 -1
  369. package/dist/components/calcite-table-row/customElement.js +1 -1
  370. package/dist/components/calcite-tabs/customElement.js +1 -1
  371. package/dist/components/calcite-text-area/customElement.js +1 -1
  372. package/dist/components/calcite-tile/customElement.js +1 -1
  373. package/dist/components/calcite-tile-group/customElement.js +1 -1
  374. package/dist/components/calcite-tile-select/customElement.js +1 -1
  375. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  376. package/dist/components/calcite-time-picker/customElement.js +1 -1
  377. package/dist/components/calcite-tip/customElement.js +1 -1
  378. package/dist/components/calcite-tip-group/customElement.js +1 -1
  379. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  380. package/dist/components/calcite-tooltip/customElement.js +1 -1
  381. package/dist/components/calcite-tree/customElement.js +1 -1
  382. package/dist/components/calcite-tree-item/customElement.js +1 -1
  383. package/dist/components/interfaces.d.ts +4 -0
  384. package/dist/custom-theme/inline-editable.d.ts +10 -0
  385. package/dist/custom-theme/segmented-control.d.ts +7 -0
  386. package/dist/docs/api.json +59 -1
  387. package/dist/docs/docs.json +72 -4
  388. package/dist/docs/vscode.css-custom-data.json +52 -0
  389. package/dist/docs/vscode.html-custom-data.json +3 -3
  390. package/dist/docs/web-types.json +56 -4
  391. package/dist/extras/vscode-data.json +3 -3
  392. package/dist/index.js +1 -1
  393. package/dist/loader.js +1 -1
  394. package/package.json +2 -2
  395. package/dist/calcite/6ZRHP66U.js +0 -4
  396. package/dist/calcite/AUGAKTQA.js +0 -4
  397. package/dist/calcite/AZQVGDBB.js +0 -4
  398. package/dist/calcite/CD4SU4TO.js +0 -4
  399. package/dist/calcite/LF2X66K2.js +0 -4
  400. package/dist/calcite/M6V2K2WA.js +0 -4
  401. package/dist/calcite/QPNAYMK4.js +0 -4
  402. package/dist/calcite/RJUWCCKF.js +0 -4
  403. package/dist/calcite/WUX24FCA.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as G}from"./25IEQNXY.js";import{a as C,b as H,c as O,d as $,e as B,f as T}from"./ZO5MELBM.js";import{a as p}from"./OIFCQKFB.js";import"./ADSRLLXA.js";import{a as D}from"./H6CJ6BOX.js";import"./EYX7TLGU.js";import"./ZDBNWUPV.js";import{n as w,u,v as z}from"./YSM2HE3M.js";import{b as E}from"./55KQJ7XK.js";import"./CVEZKFZC.js";import{C as A,I as y,d as m,e as d,u as v,v as f,w as x}from"./2VID6H7P.js";var P={actionGroupEnd:"action-group--end"},b={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},M=m`: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{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends f{constructor(){super(),this.mutationObserver=p("mutation",()=>this.mutationObserverHandler()),this.resize=G(({width:t,height:o})=>{let{el:e,expanded:l,expandDisabled:n,layout:i,overflowActionsDisabled:r,actionGroups:s}=this;if(r||i==="vertical"&&!o||i==="horizontal"&&!t)return;let a=O(e),c=n?a.length:a.length+1;this.updateGroups();let h=this.hasActionsEnd||this.hasBottomActions||!n?s.length+1:s.length,{actionHeight:L,actionWidth:S}=C(a),k=H({layout:i,actionCount:c,actionHeight:L,actionWidth:S,height:o,width:t,groupCount:h});$({actionGroups:s,expanded:l,overflowCount:k})},A.resize),this.resizeHandler=t=>{let{width:o,height:e}=t.contentRect;this.resize({width:o,height:e})},this.resizeObserver=p("resize",t=>this.resizeHandlerEntries(t)),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=D(),this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.calciteActionBarToggle=v({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,hasActionsEnd:16,hasBottomActions:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overflowActionsDisabled:7,overlayPositioning:3,position:3,scale:3}}static{this.styles=M}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await E(this),w(this.el)}connectedCallback(){super.connectedCallback(),this.updateGroups(),this.overflowActions(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}async load(){}willUpdate(t){t.has("expandDisabled")&&(this.hasUpdated||this.expandDisabled!==!1)&&this.overflowActions(),t.has("expanded")&&this.hasUpdated&&this.expandedHandler(),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups(),t.has("overflowActionsDisabled")&&(this.hasUpdated||this.overflowActionsDisabled!==!1)&&this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}loaded(){this.overflowActions()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}expandedHandler(){let{el:t,expanded:o}=this;B({el:t,expanded:o}),this.overflowActions()}overflowActionsDisabledHandler(t){if(t){this.resizeObserver?.disconnect();return}this.resizeObserver?.observe(this.el),this.overflowActions()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}mutationObserverHandler(){this.updateGroups(),this.overflowActions()}resizeHandlerEntries(t){t.forEach(this.resizeHandler)}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleActionsEndSlotChange(t){this.hasActionsEnd=u(t)}handleBottomActionsSlotChange(t){this.hasBottomActions=u(t)}handleTooltipSlotChange(t){let o=z(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,el:e,position:l,toggleExpand:n,scale:i,layout:r,messages:s,actionsEndGroupLabel:a,overlayPositioning:c}=this,h=o?null:T({collapseLabel:s.collapseLabel,collapseText:s.collapse,el:e,expandLabel:s.expandLabel,expandText:s.expand,expanded:t,position:l,scale:i,toggle:n,tooltip:this.expandTooltip});return d`<calcite-action-group class=${x(P.actionGroupEnd)} .hidden=${this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions)} .label=${a} .layout=${r} .overlayPositioning=${c} .scale=${i}><slot name=${b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot><slot name=${b.bottomActions} @slotchange=${this.handleBottomActionsSlotChange}></slot><slot name=${b.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${h}</calcite-action-group>`}render(){return d`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}`}};y("calcite-action-bar",g);export{g as ActionBar};
3
+ v3.0.0-next.121 */
4
+ import{a as G}from"./5FRWVNEF.js";import{a as C,b as H,c as O,d as $,e as B,f as T}from"./34AJD3EL.js";import{a as p}from"./EBR66DFX.js";import"./GCFSN7VL.js";import{a as D}from"./LSS6Y4EX.js";import"./F7DNFJGK.js";import"./25S4MCCS.js";import{n as w,u,v as z}from"./O4TJEOVS.js";import{b as E}from"./KEYPDZQZ.js";import"./MH575SZ5.js";import{C as A,I as y,d as m,e as d,u as v,v as f,w as x}from"./FVDGAXA6.js";var P={actionGroupEnd:"action-group--end"},b={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},M=m`: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{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends f{constructor(){super(),this.mutationObserver=p("mutation",()=>this.mutationObserverHandler()),this.resize=G(({width:t,height:o})=>{let{el:e,expanded:l,expandDisabled:n,layout:i,overflowActionsDisabled:r,actionGroups:s}=this;if(r||i==="vertical"&&!o||i==="horizontal"&&!t)return;let a=O(e),c=n?a.length:a.length+1;this.updateGroups();let h=this.hasActionsEnd||this.hasBottomActions||!n?s.length+1:s.length,{actionHeight:L,actionWidth:S}=C(a),k=H({layout:i,actionCount:c,actionHeight:L,actionWidth:S,height:o,width:t,groupCount:h});$({actionGroups:s,expanded:l,overflowCount:k})},A.resize),this.resizeHandler=t=>{let{width:o,height:e}=t.contentRect;this.resize({width:o,height:e})},this.resizeObserver=p("resize",t=>this.resizeHandlerEntries(t)),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=D(),this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.calciteActionBarToggle=v({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,hasActionsEnd:16,hasBottomActions:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overflowActionsDisabled:7,overlayPositioning:3,position:3,scale:3}}static{this.styles=M}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await E(this),w(this.el)}connectedCallback(){super.connectedCallback(),this.updateGroups(),this.overflowActions(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}async load(){}willUpdate(t){t.has("expandDisabled")&&(this.hasUpdated||this.expandDisabled!==!1)&&this.overflowActions(),t.has("expanded")&&this.hasUpdated&&this.expandedHandler(),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups(),t.has("overflowActionsDisabled")&&(this.hasUpdated||this.overflowActionsDisabled!==!1)&&this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}loaded(){this.overflowActions()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}expandedHandler(){let{el:t,expanded:o}=this;B({el:t,expanded:o}),this.overflowActions()}overflowActionsDisabledHandler(t){if(t){this.resizeObserver?.disconnect();return}this.resizeObserver?.observe(this.el),this.overflowActions()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}mutationObserverHandler(){this.updateGroups(),this.overflowActions()}resizeHandlerEntries(t){t.forEach(this.resizeHandler)}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleActionsEndSlotChange(t){this.hasActionsEnd=u(t)}handleBottomActionsSlotChange(t){this.hasBottomActions=u(t)}handleTooltipSlotChange(t){let o=z(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,el:e,position:l,toggleExpand:n,scale:i,layout:r,messages:s,actionsEndGroupLabel:a,overlayPositioning:c}=this,h=o?null:T({collapseLabel:s.collapseLabel,collapseText:s.collapse,el:e,expandLabel:s.expandLabel,expandText:s.expand,expanded:t,position:l,scale:i,toggle:n,tooltip:this.expandTooltip});return d`<calcite-action-group class=${x(P.actionGroupEnd)} .hidden=${this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions)} .label=${a} .layout=${r} .overlayPositioning=${c} .scale=${i}><slot name=${b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot><slot name=${b.bottomActions} @slotchange=${this.handleBottomActionsSlotChange}></slot><slot name=${b.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${h}</calcite-action-group>`}render(){return d`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}`}};y("calcite-action-bar",g);export{g as ActionBar};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
3
+ v3.0.0-next.121 */
4
4
  var t={menu:"menu",defaultTrigger:"default-trigger"},e={tooltip:"tooltip",trigger:"trigger"},a={menu:"ellipsis"},i="data-active";export{t as a,e as b,a as c,i as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as f}from"./76B567V6.js";import{b as l}from"./EYX7TLGU.js";import{e as n,f as i,i as o,w as s}from"./2VID6H7P.js";var w={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},c={width:12,height:6,strokeWidth:1},y=({floatingLayout:d,key:g,ref:m})=>{let{width:t,height:a,strokeWidth:r}=c,e=t/2,$=d==="vertical",h=`M0,0 H${t} L${t-e},${a} Q${e},${a} ${e},${a} Z`;return f(g,n`<svg aria-hidden=true class=${s(w.arrow)} height=${t??o} viewBox=${`0 0 ${t} ${t+($?0:r)}`} width=${t+($?r:0)} ${l(m)}>${i`${r>0&&i`<path class=${s(w.arrowStroke)} d=${h??o} fill=none stroke-width=${r+1} />`||""}<path d=${h??o} stroke=none />`}</svg>`)};export{y as a};
3
+ v3.0.0-next.121 */
4
+ import{a as f}from"./QO23YB5F.js";import{b as l}from"./F7DNFJGK.js";import{e as n,f as i,i as o,w as s}from"./FVDGAXA6.js";var w={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},c={width:12,height:6,strokeWidth:1},y=({floatingLayout:d,key:g,ref:m})=>{let{width:t,height:a,strokeWidth:r}=c,e=t/2,$=d==="vertical",h=`M0,0 H${t} L${t-e},${a} Q${e},${a} ${e},${a} Z`;return f(g,n`<svg aria-hidden=true class=${s(w.arrow)} height=${t??o} viewBox=${`0 0 ${t} ${t+($?0:r)}`} width=${t+($?r:0)} ${l(m)}>${i`${r>0&&i`<path class=${s(w.arrowStroke)} d=${h??o} fill=none stroke-width=${r+1} />`||""}<path d=${h??o} stroke=none />`}</svg>`)};export{y as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as d,b as g}from"./EYX7TLGU.js";import{u as n}from"./YSM2HE3M.js";import{b as y}from"./55KQJ7XK.js";import"./CVEZKFZC.js";import{I as h,d as l,e as i,u as c,v as m,w as o}from"./2VID6H7P.js";var a={container:"container",containerContent:"container-content",hasProgress:"progress-bar",hide:"hide",primary:"primary",secondary:"secondary",tertiary:"tertiary"},e={logo:"logo",user:"user",progress:"progress",navigationAction:"navigation-action",contentStart:"content-start",contentEnd:"content-end",contentCenter:"content-center",navSecondary:"navigation-secondary",navTertiary:"navigation-tertiary"},S={hamburger:"hamburger"},v=l`:host([hidden]){display:none}[hidden]{display:none}.container{display:flex;inline-size:100%;flex-direction:column;margin-block:0;margin-inline:auto;background-color:var(--calcite-navigation-background-color, var(--calcite-navigation-background, var(--calcite-color-foreground-1)))}.container.primary,.container.secondary,.container.tertiary{border-block-end:1px solid;border-block-end-color:var(--calcite-navigation-border-color, var(--calcite-color-border-3))}.user,.logo{display:flex}.hide{display:none}.primary{block-size:4rem}.secondary,.tertiary{block-size:3rem}.container-content{margin-inline:auto;display:flex;block-size:100%;inline-size:100%;margin-block:0;inline-size:var(--calcite-navigation-width, 100%);max-inline-size:100%}.container-content.progress-bar{margin-block-start:.125rem}slot[name]{display:flex;flex-direction:row}slot[name=navigation-secondary]::slotted(calcite-navigation),slot[name=navigation-tertiary]::slotted(calcite-navigation){inline-size:100%}slot[name=content-start]::slotted(*),slot[name=content-center]::slotted(*),slot[name=content-end]::slotted(*){display:flex;flex-direction:row;align-items:center}slot[name=progress],slot[name=progress] calcite-progress{inset-block-start:0;inset-inline:0}slot[name=content-end]{margin-inline-start:auto}slot[name=content-start]{margin-inline-end:auto}slot[name=content-end],slot[name=logo]~slot[name=user],slot[name=user]:only-child{margin-inline-start:auto}slot[name=content-center]{margin-inline-start:auto;margin-inline-end:auto}slot[name=content-start]~slot[name=content-center]{margin-inline-start:0px}slot[name=content-start]~slot[name=content-end],slot[name=content-center]~slot[name=content-end],slot[name=content-center]~slot[name=user],slot[name=content-end]~slot[name=user]{margin:0}`,s=class extends m{constructor(){super(...arguments),this.navigationActionEl=d(),this.navigationAction=!1,this.calciteNavigationActionSelect=c({cancelable:!1})}static{this.properties={logoSlotHasElements:16,navigationActionSlotHasElements:16,primaryContentCenterSlotHasElements:16,primaryContentEndSlotHasElements:16,primaryContentStartSlotHasElements:16,progressSlotHasElement:16,secondarySlotHasElements:16,tertiarySlotHasElements:16,userSlotHasElements:16,label:1,navigationAction:7}}static{this.styles=v}async setFocus(){return await y(this),this.navigationActionEl.value?.setFocus()}load(){}loaded(){}actionClickHandler(){this.calciteNavigationActionSelect.emit()}handleUserSlotChange(t){this.isPrimaryLevel()&&(this.userSlotHasElements=n(t))}handleLogoSlotChange(t){this.isPrimaryLevel()&&(this.logoSlotHasElements=n(t))}handleContentStartSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentStartSlotHasElements=n(t))}handleContentEndSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentEndSlotHasElements=n(t))}handleContentCenterSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentCenterSlotHasElements=n(t))}handleSecondarySlotChange(t){this.secondarySlotHasElements=n(t)}handleTertiarySlotChange(t){this.tertiarySlotHasElements=n(t)}handleMenuActionSlotChange(t){this.isPrimaryLevel()&&(this.navigationActionSlotHasElements=n(t),this.navigationActionSlotHasElements&&(this.navigationAction=!1))}handleProgressSlotChange(t){this.isPrimaryLevel()&&(this.progressSlotHasElement=n(t))}isPrimaryLevel(){return this.el.slot!==e.navSecondary&&this.el.slot!==e.navTertiary}renderMenuAction(){return i`<slot name=${e.navigationAction} @slotchange=${this.handleMenuActionSlotChange}>${this.navigationAction&&i`<calcite-action .icon=${S.hamburger} @click=${this.actionClickHandler} .text=${this.label} ${g(this.navigationActionEl)}></calcite-action>`||""}</slot>`}render(){let t=this.logoSlotHasElements||this.userSlotHasElements||this.navigationActionSlotHasElements||this.primaryContentCenterSlotHasElements||this.primaryContentEndSlotHasElements||this.primaryContentStartSlotHasElements||this.navigationAction,r=this.el.slot;return i`<div class=${o({[a.container]:!0,[a.secondary]:r===e.navSecondary,[a.tertiary]:r===e.navTertiary,[a.primary]:t})}><div class=${o({[a.hide]:!this.progressSlotHasElement,[e.progress]:!0})}><slot name=${e.progress} @slotchange=${this.handleProgressSlotChange}></slot></div><div class=${o({[a.containerContent]:!0,[a.hasProgress]:this.progressSlotHasElement})}>${this.renderMenuAction()}<div class=${o({[a.hide]:!this.logoSlotHasElements,[e.logo]:!0})}><slot name=${e.logo} @slotchange=${this.handleLogoSlotChange}></slot></div><slot name=${e.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot><slot name=${e.contentCenter} @slotchange=${this.handleContentCenterSlotChange}></slot><slot name=${e.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot><div class=${o({[a.hide]:!this.userSlotHasElements,[e.user]:!0})}><slot name=${e.user} @slotchange=${this.handleUserSlotChange}></slot></div></div></div><slot name=${e.navSecondary} @slotchange=${this.handleSecondarySlotChange}></slot><slot name=${e.navTertiary} @slotchange=${this.handleTertiarySlotChange}></slot>`}};h("calcite-navigation",s);export{s as Navigation};
3
+ v3.0.0-next.121 */
4
+ import{a as d,b as g}from"./F7DNFJGK.js";import{u as n}from"./O4TJEOVS.js";import{b as y}from"./KEYPDZQZ.js";import"./MH575SZ5.js";import{I as h,d as l,e as i,u as c,v as m,w as o}from"./FVDGAXA6.js";var a={container:"container",containerContent:"container-content",hasProgress:"progress-bar",hide:"hide",primary:"primary",secondary:"secondary",tertiary:"tertiary"},e={logo:"logo",user:"user",progress:"progress",navigationAction:"navigation-action",contentStart:"content-start",contentEnd:"content-end",contentCenter:"content-center",navSecondary:"navigation-secondary",navTertiary:"navigation-tertiary"},S={hamburger:"hamburger"},v=l`:host([hidden]){display:none}[hidden]{display:none}.container{display:flex;inline-size:100%;flex-direction:column;margin-block:0;margin-inline:auto;background-color:var(--calcite-navigation-background-color, var(--calcite-navigation-background, var(--calcite-color-foreground-1)))}.container.primary,.container.secondary,.container.tertiary{border-block-end:1px solid;border-block-end-color:var(--calcite-navigation-border-color, var(--calcite-color-border-3))}.user,.logo{display:flex}.hide{display:none}.primary{block-size:4rem}.secondary,.tertiary{block-size:3rem}.container-content{margin-inline:auto;display:flex;block-size:100%;inline-size:100%;margin-block:0;inline-size:var(--calcite-navigation-width, 100%);max-inline-size:100%}.container-content.progress-bar{margin-block-start:.125rem}slot[name]{display:flex;flex-direction:row}slot[name=navigation-secondary]::slotted(calcite-navigation),slot[name=navigation-tertiary]::slotted(calcite-navigation){inline-size:100%}slot[name=content-start]::slotted(*),slot[name=content-center]::slotted(*),slot[name=content-end]::slotted(*){display:flex;flex-direction:row;align-items:center}slot[name=progress],slot[name=progress] calcite-progress{inset-block-start:0;inset-inline:0}slot[name=content-end]{margin-inline-start:auto}slot[name=content-start]{margin-inline-end:auto}slot[name=content-end],slot[name=logo]~slot[name=user],slot[name=user]:only-child{margin-inline-start:auto}slot[name=content-center]{margin-inline-start:auto;margin-inline-end:auto}slot[name=content-start]~slot[name=content-center]{margin-inline-start:0px}slot[name=content-start]~slot[name=content-end],slot[name=content-center]~slot[name=content-end],slot[name=content-center]~slot[name=user],slot[name=content-end]~slot[name=user]{margin:0}`,s=class extends m{constructor(){super(...arguments),this.navigationActionEl=d(),this.navigationAction=!1,this.calciteNavigationActionSelect=c({cancelable:!1})}static{this.properties={logoSlotHasElements:16,navigationActionSlotHasElements:16,primaryContentCenterSlotHasElements:16,primaryContentEndSlotHasElements:16,primaryContentStartSlotHasElements:16,progressSlotHasElement:16,secondarySlotHasElements:16,tertiarySlotHasElements:16,userSlotHasElements:16,label:1,navigationAction:7}}static{this.styles=v}async setFocus(){return await y(this),this.navigationActionEl.value?.setFocus()}load(){}loaded(){}actionClickHandler(){this.calciteNavigationActionSelect.emit()}handleUserSlotChange(t){this.isPrimaryLevel()&&(this.userSlotHasElements=n(t))}handleLogoSlotChange(t){this.isPrimaryLevel()&&(this.logoSlotHasElements=n(t))}handleContentStartSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentStartSlotHasElements=n(t))}handleContentEndSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentEndSlotHasElements=n(t))}handleContentCenterSlotChange(t){this.isPrimaryLevel()&&(this.primaryContentCenterSlotHasElements=n(t))}handleSecondarySlotChange(t){this.secondarySlotHasElements=n(t)}handleTertiarySlotChange(t){this.tertiarySlotHasElements=n(t)}handleMenuActionSlotChange(t){this.isPrimaryLevel()&&(this.navigationActionSlotHasElements=n(t),this.navigationActionSlotHasElements&&(this.navigationAction=!1))}handleProgressSlotChange(t){this.isPrimaryLevel()&&(this.progressSlotHasElement=n(t))}isPrimaryLevel(){return this.el.slot!==e.navSecondary&&this.el.slot!==e.navTertiary}renderMenuAction(){return i`<slot name=${e.navigationAction} @slotchange=${this.handleMenuActionSlotChange}>${this.navigationAction&&i`<calcite-action .icon=${S.hamburger} @click=${this.actionClickHandler} .text=${this.label} ${g(this.navigationActionEl)}></calcite-action>`||""}</slot>`}render(){let t=this.logoSlotHasElements||this.userSlotHasElements||this.navigationActionSlotHasElements||this.primaryContentCenterSlotHasElements||this.primaryContentEndSlotHasElements||this.primaryContentStartSlotHasElements||this.navigationAction,r=this.el.slot;return i`<div class=${o({[a.container]:!0,[a.secondary]:r===e.navSecondary,[a.tertiary]:r===e.navTertiary,[a.primary]:t})}><div class=${o({[a.hide]:!this.progressSlotHasElement,[e.progress]:!0})}><slot name=${e.progress} @slotchange=${this.handleProgressSlotChange}></slot></div><div class=${o({[a.containerContent]:!0,[a.hasProgress]:this.progressSlotHasElement})}>${this.renderMenuAction()}<div class=${o({[a.hide]:!this.logoSlotHasElements,[e.logo]:!0})}><slot name=${e.logo} @slotchange=${this.handleLogoSlotChange}></slot></div><slot name=${e.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot><slot name=${e.contentCenter} @slotchange=${this.handleContentCenterSlotChange}></slot><slot name=${e.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot><div class=${o({[a.hide]:!this.userSlotHasElements,[e.user]:!0})}><slot name=${e.user} @slotchange=${this.handleUserSlotChange}></slot></div></div></div><slot name=${e.navSecondary} @slotchange=${this.handleSecondarySlotChange}></slot><slot name=${e.navTertiary} @slotchange=${this.handleTertiarySlotChange}></slot>`}};h("calcite-navigation",s);export{s as Navigation};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as s}from"./ADSRLLXA.js";import{b as m}from"./EYX7TLGU.js";import{b as x}from"./ZDBNWUPV.js";import{e as f}from"./YSM2HE3M.js";import{e as d,i as g}from"./2VID6H7P.js";var S=2,E=e=>e.reduce((t,o)=>t+o,0)/e.length,B=e=>{let t=e.filter(n=>n.slot!==s.menuActions),o=t?.length;return{actionWidth:o?E(t.map(n=>n.clientWidth||0)):0,actionHeight:o?E(t.map(n=>n.clientHeight||0)):0}},W=({width:e,actionWidth:t,layout:o,height:n,actionHeight:i,groupCount:r})=>{let l=o==="horizontal"?e:n,a=o==="horizontal"?t:i;return Math.floor((l-r*S)/a)},D=({layout:e,actionCount:t,actionWidth:o,width:n,actionHeight:i,height:r,groupCount:l})=>Math.max(t-W({width:n,actionWidth:o,layout:e,height:r,actionHeight:i,groupCount:l}),0),b=e=>Array.from(e.querySelectorAll("calcite-action")).filter(t=>t.closest("calcite-action-menu")?t.slot===x.trigger:!0),I=({actionGroups:e,expanded:t,overflowCount:o})=>{let n=o;e.reverse().forEach(i=>{let r=0,l=b(i).reverse();l.forEach(a=>{a.slot===s.menuActions&&(a.removeAttribute("slot"),a.textEnabled=t)}),n>0&&l.some(a=>(l.filter(h=>!h.slot).length>1&&l.length>2&&!a.closest("calcite-action-menu")&&(a.textEnabled=!0,a.setAttribute("slot",s.menuActions),r++,r>1&&n--),n<1)),i.manager.component.requestUpdate()})},v={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function w(e,t){return e||t.closest("calcite-shell-panel")?.position||"start"}function N({el:e,expanded:t}){b(e).filter(o=>o.slot!==s.menuActions).forEach(o=>o.textEnabled=t),e.querySelectorAll("calcite-action-group, calcite-action-menu").forEach(o=>o.expanded=t)}var T=({tooltip:e,referenceElement:t,expanded:o,ref:n})=>(e&&(e.referenceElement=!o&&t?t:null),n&&n(t),t),O=({expanded:e,expandText:t,collapseText:o,expandLabel:n,collapseLabel:i,toggle:r,el:l,position:a,tooltip:h,ref:A,scale:$})=>{let y=f(l)==="rtl",p=e?o:t,C=e?i:n,c=[v.chevronsLeft,v.chevronsRight];y&&c.reverse();let u=w(a,l)==="end",H=u?c[1]:c[0],q=u?c[0]:c[1];return d`<calcite-action .icon=${e?H:q} id=expand-toggle .label=${C} @click=${r} .scale=${$} .text=${p} .textEnabled=${e} title=${(!e&&!h?p:null)??g} ${m(L=>T({tooltip:h,referenceElement:L,expanded:e,ref:A}))}></calcite-action>`};export{B as a,D as b,b as c,I as d,N as e,O as f};
3
+ v3.0.0-next.121 */
4
+ import{a as s}from"./GCFSN7VL.js";import{b as m}from"./F7DNFJGK.js";import{b as x}from"./25S4MCCS.js";import{e as f}from"./O4TJEOVS.js";import{e as d,i as g}from"./FVDGAXA6.js";var S=2,E=e=>e.reduce((t,o)=>t+o,0)/e.length,B=e=>{let t=e.filter(n=>n.slot!==s.menuActions),o=t?.length;return{actionWidth:o?E(t.map(n=>n.clientWidth||0)):0,actionHeight:o?E(t.map(n=>n.clientHeight||0)):0}},W=({width:e,actionWidth:t,layout:o,height:n,actionHeight:i,groupCount:r})=>{let l=o==="horizontal"?e:n,a=o==="horizontal"?t:i;return Math.floor((l-r*S)/a)},D=({layout:e,actionCount:t,actionWidth:o,width:n,actionHeight:i,height:r,groupCount:l})=>Math.max(t-W({width:n,actionWidth:o,layout:e,height:r,actionHeight:i,groupCount:l}),0),b=e=>Array.from(e.querySelectorAll("calcite-action")).filter(t=>t.closest("calcite-action-menu")?t.slot===x.trigger:!0),I=({actionGroups:e,expanded:t,overflowCount:o})=>{let n=o;e.reverse().forEach(i=>{let r=0,l=b(i).reverse();l.forEach(a=>{a.slot===s.menuActions&&(a.removeAttribute("slot"),a.textEnabled=t)}),n>0&&l.some(a=>(l.filter(h=>!h.slot).length>1&&l.length>2&&!a.closest("calcite-action-menu")&&(a.textEnabled=!0,a.setAttribute("slot",s.menuActions),r++,r>1&&n--),n<1)),i.manager.component.requestUpdate()})},v={chevronsLeft:"chevrons-left",chevronsRight:"chevrons-right"};function w(e,t){return e||t.closest("calcite-shell-panel")?.position||"start"}function N({el:e,expanded:t}){b(e).filter(o=>o.slot!==s.menuActions).forEach(o=>o.textEnabled=t),e.querySelectorAll("calcite-action-group, calcite-action-menu").forEach(o=>o.expanded=t)}var T=({tooltip:e,referenceElement:t,expanded:o,ref:n})=>(e&&(e.referenceElement=!o&&t?t:null),n&&n(t),t),O=({expanded:e,expandText:t,collapseText:o,expandLabel:n,collapseLabel:i,toggle:r,el:l,position:a,tooltip:h,ref:A,scale:$})=>{let y=f(l)==="rtl",p=e?o:t,C=e?i:n,c=[v.chevronsLeft,v.chevronsRight];y&&c.reverse();let u=w(a,l)==="end",H=u?c[1]:c[0],q=u?c[0]:c[1];return d`<calcite-action .icon=${e?H:q} id=expand-toggle .label=${C} @click=${r} .scale=${$} .text=${p} .textEnabled=${e} title=${(!e&&!h?p:null)??g} ${m(L=>T({tooltip:h,referenceElement:L,expanded:e,ref:A}))}></calcite-action>`};export{B as a,D as b,b as c,I as d,N as e,O as f};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{b as e}from"./3GG4JCZ2.js";import"./WFGJA7PS.js";var a={name:"lv",weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janv\u0101ris_febru\u0101ris_marts_apr\u012Blis_maijs_j\u016Bnijs_j\u016Blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016Bn_j\u016Bl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017E\u0101m sekund\u0113m",m:"min\u016Btes",mm:"%d min\u016Bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"}};e.locale(a,null,!0);var i=a;export{i as default};
3
+ v3.0.0-next.121 */
4
+ import{b as e}from"./JT3S7W2N.js";import"./WCTD7KNV.js";var a={name:"lv",weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janv\u0101ris_febru\u0101ris_marts_apr\u012Blis_maijs_j\u016Bnijs_j\u016Blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016Bn_j\u016Bl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:"da\u017E\u0101m sekund\u0113m",m:"min\u016Btes",mm:"%d min\u016Bt\u0113m",h:"stundas",hh:"%d stund\u0101m",d:"dienas",dd:"%d dien\u0101m",M:"m\u0113ne\u0161a",MM:"%d m\u0113ne\u0161iem",y:"gada",yy:"%d gadiem"}};e.locale(a,null,!0);var i=a;export{i as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as i}from"./CQVKQXF7.js";import{a as b,b as f}from"./6FC6GP6H.js";import{a as g}from"./25IEQNXY.js";import{a as v}from"./H6CJ6BOX.js";import{a as p,b as u}from"./EYX7TLGU.js";import{b as m}from"./55KQJ7XK.js";import{C as d,I as h,d as l,e as n,u as r,v as o,w as c}from"./2VID6H7P.js";var y={container:"container",searchIcon:"search-icon"},x={search:"search",close:"x"},k=l`: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{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;inline-size:100%}:host([scale=s]) .container{padding:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding:var(--calcite-spacing-md)}:host([scale=l]) .container{padding:var(--calcite-spacing-lg)}label{position:relative;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);padding-inline-end:.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing),box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-color-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing),inset-inline-end var(--calcite-animation-timing),opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-color-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:.25rem}input[type=text]:focus~.search-icon{inset-inline-start:-1rem;opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-color-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-color-text-1)}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends o{constructor(){super(...arguments),this.filterDebounced=g((e,t=!1,a)=>this.updateFiltered(i(this.items??[],e,this.filterProps),t,a),d.filter),this.textInput=p(),this._value="",this.disabled=!1,this.filteredItems=[],this.items=[],this.messages=v(),this.scale="m",this.calciteFilterChange=r({cancelable:!1})}static{this.properties={disabled:7,filterProps:0,filteredItems:0,items:0,label:1,messageOverrides:0,placeholder:1,scale:3,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=k}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async filter(e=this.value){return new Promise(t=>{this.value=e,this.updateFiltered(i(this.items??[],e,this.filterProps),!1,t)})}async setFocus(){return await m(this),this.textInput.value?.setFocus()}async load(){this.updateFiltered(i(this.items??[],this.value,this.filterProps))}willUpdate(e){(e.has("items")&&(this.hasUpdated||this.items?.length>0)||e.has("filterProps"))&&this.filterDebounced(this.value)}updated(){b(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.filterDebounced.cancel()}valueHandler(e){this.filterDebounced(e)}inputHandler(e){let t=e.target;this.value=t.value,this.filterDebounced(t.value,!0)}keyDownHandler(e){e.defaultPrevented||(e.key==="Escape"&&(this.clear(),e.preventDefault()),e.key==="Enter"&&e.preventDefault())}clear(){this.value="",this.filterDebounced("",!0),this.setFocus()}updateFiltered(e,t=!1,a){this.filteredItems=e,t&&this.calciteFilterChange.emit(),a?.()}render(){let{disabled:e,scale:t}=this;return f({disabled:e,children:n`<div class=${c(y.container)}><label><calcite-input clearable .disabled=${e} .icon=${x.search} .label=${this.label??this.messages.label} .messageOverrides=${{clear:this.messages.clear}} @keydown=${this.keyDownHandler} @calciteInputInput=${this.inputHandler} .placeholder=${this.placeholder} .scale=${t} type=text .value=${this.value} ${u(this.textInput)}></calcite-input></label></div>`})}};h("calcite-filter",s);export{s as Filter};
3
+ v3.0.0-next.121 */
4
+ import{a as i}from"./MZHRMJAF.js";import{a as b,b as f}from"./SDFUWA2R.js";import{a as g}from"./5FRWVNEF.js";import{a as v}from"./LSS6Y4EX.js";import{a as p,b as u}from"./F7DNFJGK.js";import{b as m}from"./KEYPDZQZ.js";import{C as d,I as h,d as l,e as n,u as r,v as o,w as c}from"./FVDGAXA6.js";var y={container:"container",searchIcon:"search-icon"},x={search:"search",close:"x"},k=l`: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{display:flex;inline-size:100%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;inline-size:100%}:host([scale=s]) .container{padding:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding:var(--calcite-spacing-md)}:host([scale=l]) .container{padding:var(--calcite-spacing-lg)}label{position:relative;margin-block:0px;display:flex;inline-size:100%;align-items:center;overflow:hidden}input[type=text]{margin-block-end:.25rem;inline-size:100%;border-style:none;background-color:transparent;padding-block:.25rem;font-family:inherit;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);padding-inline-end:.25rem;padding-inline-start:1.5rem;transition:padding var(--calcite-animation-timing),box-shadow var(--calcite-animation-timing)}input[type=text]::-ms-clear{display:none}calcite-input{inline-size:100%}.search-icon{position:absolute;display:flex;color:var(--calcite-color-text-2);inset-inline-start:0;transition:inset-inline-start var(--calcite-animation-timing),inset-inline-end var(--calcite-animation-timing),opacity var(--calcite-animation-timing)}input[type=text]:focus{border-color:var(--calcite-color-brand);outline:2px solid transparent;outline-offset:2px;padding-inline:.25rem}input[type=text]:focus~.search-icon{inset-inline-start:-1rem;opacity:0}.clear-button{display:flex;cursor:pointer;align-items:center;border-width:0px;background-color:transparent;color:var(--calcite-color-text-2)}.clear-button:hover,.clear-button:focus{color:var(--calcite-color-text-1)}:host([hidden]){display:none}[hidden]{display:none}`,s=class extends o{constructor(){super(...arguments),this.filterDebounced=g((e,t=!1,a)=>this.updateFiltered(i(this.items??[],e,this.filterProps),t,a),d.filter),this.textInput=p(),this._value="",this.disabled=!1,this.filteredItems=[],this.items=[],this.messages=v(),this.scale="m",this.calciteFilterChange=r({cancelable:!1})}static{this.properties={disabled:7,filterProps:0,filteredItems:0,items:0,label:1,messageOverrides:0,placeholder:1,scale:3,value:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=k}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async filter(e=this.value){return new Promise(t=>{this.value=e,this.updateFiltered(i(this.items??[],e,this.filterProps),!1,t)})}async setFocus(){return await m(this),this.textInput.value?.setFocus()}async load(){this.updateFiltered(i(this.items??[],this.value,this.filterProps))}willUpdate(e){(e.has("items")&&(this.hasUpdated||this.items?.length>0)||e.has("filterProps"))&&this.filterDebounced(this.value)}updated(){b(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.filterDebounced.cancel()}valueHandler(e){this.filterDebounced(e)}inputHandler(e){let t=e.target;this.value=t.value,this.filterDebounced(t.value,!0)}keyDownHandler(e){e.defaultPrevented||(e.key==="Escape"&&(this.clear(),e.preventDefault()),e.key==="Enter"&&e.preventDefault())}clear(){this.value="",this.filterDebounced("",!0),this.setFocus()}updateFiltered(e,t=!1,a){this.filteredItems=e,t&&this.calciteFilterChange.emit(),a?.()}render(){let{disabled:e,scale:t}=this;return f({disabled:e,children:n`<div class=${c(y.container)}><label><calcite-input clearable .disabled=${e} .icon=${x.search} .label=${this.label??this.messages.label} .messageOverrides=${{clear:this.messages.clear}} @keydown=${this.keyDownHandler} @calciteInputInput=${this.inputHandler} .placeholder=${this.placeholder} .scale=${t} type=text .value=${this.value} ${u(this.textInput)}></calcite-input></label></div>`})}};h("calcite-filter",s);export{s as Filter};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as v,b as l,e as E,f as F,k as u,l as x,n as y,o as O,q as d}from"./N7QEQOYO.js";import{f as P,g as I,h as A}from"./AUGAKTQA.js";import{k as h}from"./3ZRHSH26.js";import{a as f}from"./XS5HMGC4.js";import{a as g,b as p}from"./EYX7TLGU.js";import{i as w,k as S}from"./YSM2HE3M.js";import"./CVEZKFZC.js";import{I as Y,d as D,e as r,i as M,t as $,u as C,v as z,w as c}from"./2VID6H7P.js";var L=D`:host{display:block;--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-internal-select-font-weight: var(--calcite-font-weight-medium);--calcite-select-text-color: var(--calcite-color-text-1)}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);outline-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;--calcite-internal-action-padding-block: 0}.chevron: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))))}.chevron:hover,.chevron:focus{background-color:var(--calcite-color-foreground-2);fill:var(--calcite-color-text-1);color:var(--calcite-color-text-1)}.chevron:active{background-color:var(--calcite-color-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{background-color:var(--calcite-color-foreground-1);margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-font-size-md);--calcite-select-line-height: var(--calcite-font-line-height-fixed-lg)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-select-font-size: var(--calcite-font-size);--calcite-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-select-font-size: var(--calcite-font-size-lg);--calcite-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`,o={header:"header",chevron:"chevron",chevronContainer:"chevron-container",chevronContainerLeft:"chevron-container--left",chevronContainerRight:"chevron-container--right",monthYearContainer:"month-year-container",monthPicker:"month-select",rangeCalendar:"range-calendar",suffix:"suffix",yearContainer:"year-container"},W={chevronLeft:"chevron-left",chevronRight:"chevron-right"},K=16,b=class extends z{constructor(){super(...arguments),this.monthPickerEl=g(),this.yearInputEl=g(),this.calciteInternalDatePickerMonthHeaderSelectChange=C({cancelable:!1})}static{this.properties={nextMonthDate:16,prevMonthDate:16,activeDate:0,headingLevel:9,localeData:0,max:0,messages:0,min:0,monthStyle:1,position:1,scale:3,selectedDate:0}}static{this.styles=L}connectedCallback(){super.connectedCallback(),this.setNextPrevMonthDates()}load(){this.parentDatePickerEl=S(this.el,"calcite-date-picker")}willUpdate(e){this.hasUpdated&&(e.has("activeDate")||e.has("localeData"))&&this.setYearSelectMenuWidth(),this.hasUpdated&&e.has("scale")&&this.setYearSelectWidthOffset(),(e.has("min")||e.has("max")||e.has("activeDate"))&&this.setNextPrevMonthDates()}loaded(){this.setYearSelectWidthOffset()}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=l(y(this.activeDate),this.min,this.max),this.prevMonthDate=l(u(this.activeDate),this.min,this.max))}onYearKey(e){let t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1});break}}formatCalendarYear(e){return h.localize(`${F(e,this.localeData)}`)}parseCalendarYear(e){return h.localize(`${E(Number(h.delocalize(e)),this.localeData)}`)}onYearChange(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})}onYearInput(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})}prevMonthClick(e){this.handleArrowClick(e,this.prevMonthDate)}prevMonthKeydown(e){f(e.key)&&this.prevMonthClick(e)}nextMonthClick(e){this.handleArrowClick(e,this.nextMonthDate)}nextMonthKeydown(e){f(e.key)&&this.nextMonthClick(e)}async handleArrowClick(e,t){e.preventDefault(),await this.handlePenultimateValidMonth(e),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(t)}handleMonthChange(e){let t=e.target,{abbreviated:i,wide:a}=this.localeData.months,s=(this.monthStyle==="wide"?a:i).indexOf(t.value),n=x(this.activeDate,s);v(n,this.min,this.max)||(n=l(n,this.min,this.max)),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(n),this.setYearSelectMenuWidth()}getInRangeDate({localizedYear:e,offset:t=0}){let{min:i,max:a,activeDate:s}=this,n=Number(h.delocalize(e)),N=n.toString().length,m=isNaN(n)?!1:n+t,R=m&&(!i||i.getFullYear()<=m)&&(!a||a.getFullYear()>=m);if(m&&R&&N===e.length){let k=new Date(s);return k.setFullYear(m),l(k,i,a)}}setYear({localizedYear:e,commit:t=!0,offset:i=0}){let{yearInputEl:{value:a},activeDate:s}=this,n=this.getInRangeDate({localizedYear:e,offset:i});n&&this.calciteInternalDatePickerMonthHeaderSelectChange.emit(n),t&&(a.value=this.formatCalendarYear((n||s).getFullYear()))}setYearSelectWidthOffset(){this.yearSelectWidthOffset=K+3*parseInt(this.getYearSelectPadding()),this.setYearSelectMenuWidth()}setYearSelectMenuWidth(){let e=this.monthPickerEl.value;e&&requestAnimationFrame(()=>{let t=getComputedStyle(e),i=`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`,a=this.localeData.months[this.monthStyle][this.activeDate.getMonth()],s=Math.ceil(w(a,i));e.style.width=`${s+this.yearSelectWidthOffset}px`})}isMonthInRange(e){let t=x(this.activeDate,e);return!this.min&&!this.max||v(t,this.min,this.max)?!0:d(t,this.max)||d(t,this.min)}async handlePenultimateValidMonth(e){let t=e.target.getAttribute("data-direction")==="left",i;if(t&&this.min){let a=l(u(this.activeDate),this.min,this.max);i=d(a,this.min)}else if(this.max){let a=l(y(this.activeDate),this.min,this.max);i=d(a,this.max)}i&&(this.position?this.yearInputEl.value.focus():await(t?this.nextMonthAction.setFocus():this.prevMonthAction.setFocus()))}getPx(e){let t=Number(e.replace(/[rem|px]/g,""));return e.includes("rem")?`${t*16}px`:`${t}px`}getYearSelectPadding(){let e;switch(this.scale){case"l":e=A;break;case"s":e=P;break;default:e=I;break}return this.getPx(e)}render(){return r`<div class=${c(o.header)}>${this.renderContent()}</div>`}renderContent(){let{localeData:e,activeDate:t}=this;if(!t||!e)return null;if(this.parentDatePickerEl){let{numberingSystem:s,lang:n}=this.parentDatePickerEl;h.numberFormatOptions={useGrouping:!1,...s&&{numberingSystem:s},...n&&{locale:n}}}let i=O(e.unitOrder),a=i.indexOf("y")<i.indexOf("m");return r`${this.position&&r`<div class=${c({[o.chevronContainer]:!0})}>${this.position==="start"&&this.renderChevron("left")||""}</div>`||""}<div class=${c({[o.monthYearContainer]:!0,[o.rangeCalendar]:!!this.position})}>${this.renderMonthYearContainer(a)}</div>${!this.position&&r`<div class=${c({[o.chevronContainer]:!0})}>${this.renderChevron("left")}</div>`||""}<div class=${c({[o.chevronContainer]:!0})}>${this.position!=="start"&&this.renderChevron("right")||""}</div>`}renderMonthYearContainer(e){return e?[this.renderYearInput(),this.renderMonthPicker()]:[this.renderMonthPicker(),this.renderYearInput()]}renderMonthPicker(){let e=this.activeDate.getMonth(),t=this.localeData.months[this.monthStyle];return r`<calcite-select class=${c(o.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${p(this.monthPickerEl)}>${t.map((i,a)=>r`<calcite-option .disabled=${!this.isMonthInRange(a)} .selected=${a===e} .value=${i}>${i}</calcite-option>`)}</calcite-select>`}renderYearInput(){let e=this.localeData.year?.suffix,t=this.formatCalendarYear(this.activeDate.getFullYear());return r`<span class=${c(o.yearContainer)}><input .ariaLabel=${this.messages.year} class=${c({year:!0})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${$(t??"")} ${p(this.yearInputEl)}>${e&&r`<span class=${c(o.suffix)}>${e}</span>`||""}</span>`}renderChevron(e){let t=e==="right",i=d(t?this.nextMonthDate:this.prevMonthDate,this.activeDate)||!v(this.activeDate,this.min,this.max);return r`<calcite-action alignment=center .ariaDisabled=${i} .ariaLabel=${t?this.messages.nextMonth:this.messages.prevMonth} class=${c(o.chevron)} compact data-direction=${e??M} .disabled=${i} .icon=${t?W.chevronRight:W.chevronLeft} icon-flip-rtl @click=${t?this.nextMonthClick:this.prevMonthClick} @keydown=${t?this.nextMonthKeydown:this.prevMonthKeydown} role=button .scale=${this.scale==="l"?"l":"m"} .text=${t?this.messages.nextMonth:this.messages.prevMonth} ${p(a=>t?this.nextMonthAction=a:this.prevMonthAction=a)}></calcite-action>`}};Y("calcite-date-picker-month-header",b);export{b as DatePickerMonthHeader};
3
+ v3.0.0-next.121 */
4
+ import{a as v,b as l,e as E,f as F,k as u,l as x,n as y,o as O,q as d}from"./IAILBWX6.js";import{k as h}from"./4DH2RSAJ.js";import{i as P,j as I,k as A}from"./SZR46S2G.js";import{a as f}from"./HSN6XZOH.js";import{a as g,b as p}from"./F7DNFJGK.js";import{i as w,k as S}from"./O4TJEOVS.js";import"./MH575SZ5.js";import{I as Y,d as D,e as r,i as M,t as $,u as C,v as z,w as c}from"./FVDGAXA6.js";var L=D`:host{display:block;--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-internal-select-font-weight: var(--calcite-font-weight-medium);--calcite-select-text-color: var(--calcite-color-text-1)}.header{display:flex;block-size:100%;align-items:center;justify-content:space-between}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-spacing-sm);margin-inline-start:var(--calcite-spacing-sm-plus)}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-spacing-xxs)}:host([scale=l]){block-size:44px;margin:var(--calcite-spacing-xs);margin-inline-start:var(--calcite-spacing-sm)}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-spacing-sm-plus)}.chevron{box-sizing:content-box;display:flex;block-size:100%;inline-size:100%;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);outline-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;--calcite-internal-action-padding-block: 0}.chevron: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))))}.chevron:hover,.chevron:focus{background-color:var(--calcite-color-foreground-2);fill:var(--calcite-color-text-1);color:var(--calcite-color-text-1)}.chevron:active{background-color:var(--calcite-color-foreground-3)}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:1;gap:var(--calcite-spacing-xxs)}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{background-color:var(--calcite-color-foreground-1);margin-inline:var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{position:relative;display:inline-block;border-style:none;background-color:transparent;text-align:center;font-family:inherit;outline-color:transparent;inline-size:44px}.year:hover{transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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))))}.month-select{--calcite-select-spacing-inline: var(--calcite-spacing-xxs);--calcite-internal-select-spacing-block: var(--calcite-spacing-xxs);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-xxs);--calcite-select-font-size: var(--calcite-font-size-md);--calcite-select-line-height: var(--calcite-font-line-height-fixed-lg)}:host([scale=s]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-base);--calcite-internal-select-spacing-block: var(--calcite-spacing-base);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-base);--calcite-internal-select-block-size: 24px;--calcite-select-font-size: var(--calcite-font-size);--calcite-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-select-spacing-inline: var(--calcite-spacing-sm);--calcite-internal-select-spacing-block: var(--calcite-spacing-sm);--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 44px;--calcite-select-font-size: var(--calcite-font-size-lg);--calcite-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`,o={header:"header",chevron:"chevron",chevronContainer:"chevron-container",chevronContainerLeft:"chevron-container--left",chevronContainerRight:"chevron-container--right",monthYearContainer:"month-year-container",monthPicker:"month-select",rangeCalendar:"range-calendar",suffix:"suffix",yearContainer:"year-container"},W={chevronLeft:"chevron-left",chevronRight:"chevron-right"},K=16,b=class extends z{constructor(){super(...arguments),this.monthPickerEl=g(),this.yearInputEl=g(),this.calciteInternalDatePickerMonthHeaderSelectChange=C({cancelable:!1})}static{this.properties={nextMonthDate:16,prevMonthDate:16,activeDate:0,headingLevel:9,localeData:0,max:0,messages:0,min:0,monthStyle:1,position:1,scale:3,selectedDate:0}}static{this.styles=L}connectedCallback(){super.connectedCallback(),this.setNextPrevMonthDates()}load(){this.parentDatePickerEl=S(this.el,"calcite-date-picker")}willUpdate(e){this.hasUpdated&&(e.has("activeDate")||e.has("localeData"))&&this.setYearSelectMenuWidth(),this.hasUpdated&&e.has("scale")&&this.setYearSelectWidthOffset(),(e.has("min")||e.has("max")||e.has("activeDate"))&&this.setNextPrevMonthDates()}loaded(){this.setYearSelectWidthOffset()}setNextPrevMonthDates(){this.activeDate&&(this.nextMonthDate=l(y(this.activeDate),this.min,this.max),this.prevMonthDate=l(u(this.activeDate),this.min,this.max))}onYearKey(e){let t=this.parseCalendarYear(e.target.value);switch(e.key){case"ArrowDown":e.preventDefault(),this.setYear({localizedYear:t,offset:-1});break;case"ArrowUp":e.preventDefault(),this.setYear({localizedYear:t,offset:1});break}}formatCalendarYear(e){return h.localize(`${F(e,this.localeData)}`)}parseCalendarYear(e){return h.localize(`${E(Number(h.delocalize(e)),this.localeData)}`)}onYearChange(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value)})}onYearInput(e){this.setYear({localizedYear:this.parseCalendarYear(e.target.value),commit:!1})}prevMonthClick(e){this.handleArrowClick(e,this.prevMonthDate)}prevMonthKeydown(e){f(e.key)&&this.prevMonthClick(e)}nextMonthClick(e){this.handleArrowClick(e,this.nextMonthDate)}nextMonthKeydown(e){f(e.key)&&this.nextMonthClick(e)}async handleArrowClick(e,t){e.preventDefault(),await this.handlePenultimateValidMonth(e),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(t)}handleMonthChange(e){let t=e.target,{abbreviated:i,wide:a}=this.localeData.months,s=(this.monthStyle==="wide"?a:i).indexOf(t.value),n=x(this.activeDate,s);v(n,this.min,this.max)||(n=l(n,this.min,this.max)),this.calciteInternalDatePickerMonthHeaderSelectChange.emit(n),this.setYearSelectMenuWidth()}getInRangeDate({localizedYear:e,offset:t=0}){let{min:i,max:a,activeDate:s}=this,n=Number(h.delocalize(e)),N=n.toString().length,m=isNaN(n)?!1:n+t,R=m&&(!i||i.getFullYear()<=m)&&(!a||a.getFullYear()>=m);if(m&&R&&N===e.length){let k=new Date(s);return k.setFullYear(m),l(k,i,a)}}setYear({localizedYear:e,commit:t=!0,offset:i=0}){let{yearInputEl:{value:a},activeDate:s}=this,n=this.getInRangeDate({localizedYear:e,offset:i});n&&this.calciteInternalDatePickerMonthHeaderSelectChange.emit(n),t&&(a.value=this.formatCalendarYear((n||s).getFullYear()))}setYearSelectWidthOffset(){this.yearSelectWidthOffset=K+3*parseInt(this.getYearSelectPadding()),this.setYearSelectMenuWidth()}setYearSelectMenuWidth(){let e=this.monthPickerEl.value;e&&requestAnimationFrame(()=>{let t=getComputedStyle(e),i=`${t.fontStyle} ${t.fontVariant} ${t.fontWeight} ${t.fontSize}/${t.lineHeight} ${t.fontFamily}`,a=this.localeData.months[this.monthStyle][this.activeDate.getMonth()],s=Math.ceil(w(a,i));e.style.width=`${s+this.yearSelectWidthOffset}px`})}isMonthInRange(e){let t=x(this.activeDate,e);return!this.min&&!this.max||v(t,this.min,this.max)?!0:d(t,this.max)||d(t,this.min)}async handlePenultimateValidMonth(e){let t=e.target.getAttribute("data-direction")==="left",i;if(t&&this.min){let a=l(u(this.activeDate),this.min,this.max);i=d(a,this.min)}else if(this.max){let a=l(y(this.activeDate),this.min,this.max);i=d(a,this.max)}i&&(this.position?this.yearInputEl.value.focus():await(t?this.nextMonthAction.setFocus():this.prevMonthAction.setFocus()))}getPx(e){let t=Number(e.replace(/[rem|px]/g,""));return e.includes("rem")?`${t*16}px`:`${t}px`}getYearSelectPadding(){let e;switch(this.scale){case"l":e=A;break;case"s":e=P;break;default:e=I;break}return this.getPx(e)}render(){return r`<div class=${c(o.header)}>${this.renderContent()}</div>`}renderContent(){let{localeData:e,activeDate:t}=this;if(!t||!e)return null;if(this.parentDatePickerEl){let{numberingSystem:s,lang:n}=this.parentDatePickerEl;h.numberFormatOptions={useGrouping:!1,...s&&{numberingSystem:s},...n&&{locale:n}}}let i=O(e.unitOrder),a=i.indexOf("y")<i.indexOf("m");return r`${this.position&&r`<div class=${c({[o.chevronContainer]:!0})}>${this.position==="start"&&this.renderChevron("left")||""}</div>`||""}<div class=${c({[o.monthYearContainer]:!0,[o.rangeCalendar]:!!this.position})}>${this.renderMonthYearContainer(a)}</div>${!this.position&&r`<div class=${c({[o.chevronContainer]:!0})}>${this.renderChevron("left")}</div>`||""}<div class=${c({[o.chevronContainer]:!0})}>${this.position!=="start"&&this.renderChevron("right")||""}</div>`}renderMonthYearContainer(e){return e?[this.renderYearInput(),this.renderMonthPicker()]:[this.renderMonthPicker(),this.renderYearInput()]}renderMonthPicker(){let e=this.activeDate.getMonth(),t=this.localeData.months[this.monthStyle];return r`<calcite-select class=${c(o.monthPicker)} .label=${this.messages.monthMenu} @calciteSelectChange=${this.handleMonthChange} width=auto ${p(this.monthPickerEl)}>${t.map((i,a)=>r`<calcite-option .disabled=${!this.isMonthInRange(a)} .selected=${a===e} .value=${i}>${i}</calcite-option>`)}</calcite-select>`}renderYearInput(){let e=this.localeData.year?.suffix,t=this.formatCalendarYear(this.activeDate.getFullYear());return r`<span class=${c(o.yearContainer)}><input .ariaLabel=${this.messages.year} class=${c({year:!0})} inputmode=numeric maxlength=4 minlength=1 @change=${this.onYearChange} @input=${this.onYearInput} @keydown=${this.onYearKey} pattern=\\d* type=text .value=${$(t??"")} ${p(this.yearInputEl)}>${e&&r`<span class=${c(o.suffix)}>${e}</span>`||""}</span>`}renderChevron(e){let t=e==="right",i=d(t?this.nextMonthDate:this.prevMonthDate,this.activeDate)||!v(this.activeDate,this.min,this.max);return r`<calcite-action alignment=center .ariaDisabled=${i} .ariaLabel=${t?this.messages.nextMonth:this.messages.prevMonth} class=${c(o.chevron)} compact data-direction=${e??M} .disabled=${i} .icon=${t?W.chevronRight:W.chevronLeft} icon-flip-rtl @click=${t?this.nextMonthClick:this.prevMonthClick} @keydown=${t?this.nextMonthKeydown:this.prevMonthKeydown} role=button .scale=${this.scale==="l"?"l":"m"} .text=${t?this.messages.nextMonth:this.messages.prevMonth} ${p(a=>t?this.nextMonthAction=a:this.prevMonthAction=a)}></calcite-action>`}};Y("calcite-date-picker-month-header",b);export{b as DatePickerMonthHeader};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{b as t}from"./3GG4JCZ2.js";import"./WFGJA7PS.js";var _={name:"vi",weekdays:"ch\u1EE7 nh\u1EADt_th\u1EE9 hai_th\u1EE9 ba_th\u1EE9 t\u01B0_th\u1EE9 n\u0103m_th\u1EE9 s\xE1u_th\u1EE9 b\u1EA3y".split("_"),months:"th\xE1ng 1_th\xE1ng 2_th\xE1ng 3_th\xE1ng 4_th\xE1ng 5_th\xE1ng 6_th\xE1ng 7_th\xE1ng 8_th\xE1ng 9_th\xE1ng 10_th\xE1ng 11_th\xE1ng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(h){return h},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s t\u1EDBi",past:"%s tr\u01B0\u1EDBc",s:"v\xE0i gi\xE2y",m:"m\u1ED9t ph\xFAt",mm:"%d ph\xFAt",h:"m\u1ED9t gi\u1EDD",hh:"%d gi\u1EDD",d:"m\u1ED9t ng\xE0y",dd:"%d ng\xE0y",M:"m\u1ED9t th\xE1ng",MM:"%d th\xE1ng",y:"m\u1ED9t n\u0103m",yy:"%d n\u0103m"}};t.locale(_,null,!0);var Y=_;export{Y as default};
3
+ v3.0.0-next.121 */
4
+ import{b as t}from"./JT3S7W2N.js";import"./WCTD7KNV.js";var _={name:"vi",weekdays:"ch\u1EE7 nh\u1EADt_th\u1EE9 hai_th\u1EE9 ba_th\u1EE9 t\u01B0_th\u1EE9 n\u0103m_th\u1EE9 s\xE1u_th\u1EE9 b\u1EA3y".split("_"),months:"th\xE1ng 1_th\xE1ng 2_th\xE1ng 3_th\xE1ng 4_th\xE1ng 5_th\xE1ng 6_th\xE1ng 7_th\xE1ng 8_th\xE1ng 9_th\xE1ng 10_th\xE1ng 11_th\xE1ng 12".split("_"),weekStart:1,weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),ordinal:function(h){return h},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},relativeTime:{future:"%s t\u1EDBi",past:"%s tr\u01B0\u1EDBc",s:"v\xE0i gi\xE2y",m:"m\u1ED9t ph\xFAt",mm:"%d ph\xFAt",h:"m\u1ED9t gi\u1EDD",hh:"%d gi\u1EDD",d:"m\u1ED9t ng\xE0y",dd:"%d ng\xE0y",M:"m\u1ED9t th\xE1ng",MM:"%d th\xE1ng",y:"m\u1ED9t n\u0103m",yy:"%d n\u0103m"}};t.locale(_,null,!0);var Y=_;export{Y as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as ot}from"./E6J4RCXE.js";import{a as rt,b as P,c as x}from"./Z3Q2LSKH.js";import{a as nt,b as D}from"./GJ5DWJ7E.js";import{a as it,b as I,c as l,d as C,g as st,h as c,i as F}from"./N7QEQOYO.js";import{g as L,i as U,k as v}from"./3ZRHSH26.js";import{a as at}from"./277GFCWZ.js";import{a as q,c as k,d as Y,e as G,f as j,g as y,h as Z}from"./IIURCQBA.js";import"./PJ4UGJCH.js";import{a as _}from"./SLIJGIHK.js";import{a as Q,c as X,e as tt,h as et}from"./AE3SCTSQ.js";import{c as J,d as K}from"./TC6H7KLO.js";import{a as M,b as N}from"./6FC6GP6H.js";import{a as $}from"./6YHFVOU7.js";import"./CA2ITLEU.js";import"./25IEQNXY.js";import{b as A}from"./XS5HMGC4.js";import{a as H}from"./H6CJ6BOX.js";import{b as d}from"./EYX7TLGU.js";import{n as B}from"./YSM2HE3M.js";import{b as W}from"./55KQJ7XK.js";import{a as w}from"./CVEZKFZC.js";import{A as S,F as z,I as R,d as E,e as u,i as m,u as g,v as V,w as o}from"./2VID6H7P.js";var ct=E`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}: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:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}: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)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-color-text-3)}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-color-text-1)}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-color-text-1)}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1)}:host([layout=horizontal]) .divider-container{width:1px}.divider{display:inline-block;width:1px;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-color-border-2)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-right-width:0px;padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-left-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.vertical-chevron-container calcite-icon{color:var(--calcite-color-text-3)}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-color-text-1)}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container 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}::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}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,n={assistiveText:"assistive-text",calendarWrapper:"calendar-wrapper",container:"container",dividerContainer:"divider-container",divider:"divider",horizontalArrowContainer:"horizontal-arrow-container",inputBorderTopColorOne:"border-top-color-one",inputContainer:"input-container",inputNoBottomBorder:"input--no-bottom-border",inputNoRightBorder:"input--no-right-border",inputNoTopBorder:"input--no-top-border",inputNoLeftBorder:"input--no-left-border",inputWrapper:"input-wrapper",input:"input",menu:"menu-container",toggleIcon:"toggle-icon",verticalChevronContainer:"vertical-chevron-container",chevronIcon:"chevron-icon"},lt={validationMessage:"inputDatePickerValidationMessage"};function ht(f){if(!f)return!1;let{year:t}=F(f);return Number(t)<100}function dt(f){let t=new Date().getFullYear();return Math.floor(t/100)*100+f}var O=class extends V{constructor(){super(),this.commonDateSeparators=[".","-","/"],this.dialogId=`date-picker-dialog--${w()}`,this.focusOnOpen=!1,this.focusTrapDeactivates=()=>{this.open=!1},this.transitionProp="opacity",this.placeholderTextId=`calcite-input-date-picker-placeholder-${w()}`,this.rangeStartValueChangedByUser=!1,this.userChangedValue=!1,this._value="",this.valueAsDateChangedExternally=!1,this.focusedInput="start",this.disabled=!1,this.focusTrapDisabled=!1,this.layout="horizontal",this.messages=H({blocking:!0}),this.monthStyle="wide",this.open=!1,this.overlayPositioning="absolute",this.placement=q,this.proximitySelectionDisabled=!1,this.range=!1,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.calciteInputDatePickerBeforeClose=g({cancelable:!1}),this.calciteInputDatePickerBeforeOpen=g({cancelable:!1}),this.calciteInputDatePickerChange=g({cancelable:!1}),this.calciteInputDatePickerClose=g({cancelable:!1}),this.calciteInputDatePickerOpen=g({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.handleDateTimeFormatChange()}static{this.properties={datePickerActiveDate:16,focusedInput:16,localeData:16,disabled:7,flipPlacements:0,focusTrapDisabled:7,form:3,headingLevel:11,layout:3,max:3,maxAsDate:0,messageOverrides:0,min:3,minAsDate:0,monthStyle:1,name:3,numberingSystem:3,open:7,overlayPositioning:3,placement:3,proximitySelectionDisabled:5,range:7,readOnly:7,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1,valueAsDate:0}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=ct}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){let{floatingEl:e,referenceEl:a,placement:i,overlayPositioning:s,filteredFlipPlacements:r}=this;return G(this,{floatingEl:e,referenceEl:a,overlayPositioning:s,placement:i,flipPlacements:r,type:"menu"},t)}async setFocus(){await W(this),B(this.el)}connectedCallback(){super.connectedCallback();let{open:t}=this;if(t&&this.openHandler(),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max)),Array.isArray(this.value))this.valueAsDate=D(this.value);else if(this.value)try{let e=l(this.value),a=I(e,this.minAsDate,this.maxAsDate);this.valueAsDate=a}catch{this.warnAboutInvalidValue(this.value),this.value=""}else this.valueAsDate&&(this.range&&Array.isArray(this.valueAsDate)?this.value=[c(this.valueAsDate[0]),c(this.valueAsDate[1])]:!this.range&&!Array.isArray(this.valueAsDate)&&(this.value=c(this.valueAsDate)));J(this),X(this),this.setFilteredPlacements(),v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},y(this)}async load(){this.handleDateTimeFormatChange(),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledAndReadOnlyChange(this.disabled),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&this.handleDisabledAndReadOnlyChange(this.readOnly),t.has("valueAsDate")&&this.valueAsDateWatcher(this.valueAsDate),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("min")&&this.onMinChanged(this.min),t.has("max")&&this.onMaxChanged(this.max),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(t.has("numberingSystem")||t.has("messages"))&&this.handleDateTimeFormatChange(),t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setReferenceEl(),t.has("messages")&&this.loadLocaleData()}updated(){M(this)}loaded(){this.localizeInputValues(),y(this)}disconnectedCallback(){super.disconnectedCallback(),x(this),K(this),tt(this),Z(this)}handleFocusTrapDisabled(t){this.open&&(t?x(this):P(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let e;Array.isArray(t)?e=D(t):t?e=l(t):e=void 0,!this.valueAsDateChangedExternally&&e!==this.valueAsDate&&(this.valueAsDate=e),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){let e=Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.datePickerActiveDate=Array.isArray(t)?t[0]:t,this.value!==e&&(this.valueAsDateChangedExternally=!0,this.value=e,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMinChanged(t){this.minAsDate=l(t)}onMaxChanged(t){this.maxAsDate=l(t)}openHandler(){_(this),!(this.disabled||this.readOnly)&&this.reposition(!0)}calciteInternalInputInputHandler(t){let e=t.target,a=e.value,i=this.parseNumerals(a),s=this.formatNumerals(i);e.value=s;let{year:r}=st(a,this.localeData);if(r&&r.length<4)return;let h=C(a,this.localeData);it(h,this.min,this.max)&&(this.datePickerActiveDate=h)}calciteInternalInputBlurHandler(){this.commitValue()}handleDateTimeFormatChange(){let t={numberingSystem:L(this.numberingSystem)};this.dateTimeFormat=new Intl.DateTimeFormat(U(this.messages._lang),t)}setReferenceEl(){let{focusedInput:t,layout:e,endWrapper:a,startWrapper:i}=this;this.referenceEl=t==="end"||e==="vertical"?a||i:i||a,requestAnimationFrame(()=>y(this))}onInputWrapperPointerDown(){this.currentOpenInput=this.focusedInput}onInputWrapperClick(t){let{range:e,endInput:a,startInput:i,currentOpenInput:s}=this,r=t.currentTarget.getAttribute("data-position");t.composedPath().find(h=>h.classList?.contains(n.toggleIcon))&&(r==="start"?i:a).setFocus(),(!e||!this.open||s===r)&&(this.open=!this.open)}setFilteredPlacements(){let{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?Y(e,t):null}setTransitionEl(t){this.transitionEl=t}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){P(this,{onActivate:()=>{this.focusOnOpen&&(this.datePickerEl?.setFocus(),this.focusOnOpen=!1)}}),this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit(),j(this),x(this),this.focusOnOpen=!1,this.datePickerEl?.reset()}syncHiddenFormInput(t){ot("date",this,t)}setStartInput(t){this.startInput=t}setEndInput(t){this.endInput=t}blurHandler(){this.open=!1}commitValue(){let{focusedInput:t,value:e}=this,a=`${t}Input`,i=this[a].value,s=C(i,this.localeData),r=c(s),h=Array.isArray(e);if(this.range){let p=t==="start"?0:1;if(h){if(r===e[p])return;s?(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues()):this.setRangeValue([t==="end"&&l(e[0]),t==="start"&&l(e[1])])}else s&&(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues())}else{if(r===e)return;this.setValue(s),this.localizeInputValues()}}keyDownHandler(t){let{defaultPrevented:e,key:a}=t;if(e)return;let i=t.composedPath().some(s=>s.tagName==="CALCITE-SELECT");a==="Enter"?(t.preventDefault(),this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),Q(this)&&this.restoreInputFocus(!0)):(a==="ArrowDown"||a==="ArrowUp")&&!i?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):this.open&&a==="Escape"&&(this.open=!1,t.preventDefault(),this.restoreInputFocus(!0))}startInputFocus(){this.focusedInput="start"}endInputFocus(){this.focusedInput="end"}setFloatingEl(t){this.floatingEl=t,y(this)}setStartWrapper(t){this.startWrapper=t,this.setReferenceEl()}setEndWrapper(t){this.endWrapper=t,this.setReferenceEl()}setDatePickerRef(t){this.datePickerEl=t,rt(this,{focusTrapEl:t,focusTrapOptions:{allowOutsideClick:!0,clickOutsideDeactivates:!1,initialFocus:!1,setReturnFocus:!1,onDeactivate:this.focusTrapDeactivates}})}async loadLocaleData(){z()&&(v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},this.localeData=await nt(this.messages._lang),this.localizeInputValues())}handleDateChange(t){this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())}shouldFocusRangeStart(){let t=this.value[0];return!!(this.value[1]&&!t&&this.focusedInput==="end"&&this.startInput)}shouldFocusRangeEnd(){let t=this.value[0],e=this.value[1];return!!(t&&!e&&this.focusedInput==="start"&&this.endInput)}handleDateRangeChange(t){if(!this.range)return;t.stopPropagation();let e=t.target.valueAsDate;this.setRangeValue(e),this.localizeInputValues(),this.restoreInputFocus()}restoreInputFocus(t=!1){if(!this.range){this.startInput.setFocus(),this.open=!1;return}if(t){this.focusInput();return}this.rangeStartValueChangedByUser=this.focusedInput==="start",this.focusedInput="end",!(this.shouldFocusRangeStart()||this.rangeStartValueChangedByUser)&&(this.open=!1,this.focusInput())}localizeInputValues(){let t=I(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),e=this.range?I(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null;this.setInputValue((t&&this.dateTimeFormat.format(t))??"","start"),this.setInputValue((this.range&&e&&this.dateTimeFormat.format(e))??"","end")}setInputValue(t,e="start"){let a=this[`${e}Input`];a&&(a.value=t)}setRangeValue(t){if(!this.range)return;let{value:e}=this,a=Array.isArray(e),i=Array.isArray(t),s=i?t[0]:null,r=i?c(s):"";r&&(r=this.getNormalizedDate(r));let h=i?t[1]:null,p=i?c(h):"";p&&(p=this.getNormalizedDate(p));let b=r||p?[r,p]:"";if(b===e)return;this.userChangedValue=!0,this.value=b,this.valueAsDate=b?D(b):void 0;let T=this.calciteInputDatePickerChange.emit();T&&T.defaultPrevented&&(this.value=e,a?(this.setInputValue(e[0],"start"),this.setInputValue(e[1],"end")):(this.value=e,this.setInputValue(e)))}setValue(t){if(this.range)return;let e=this.value,a=c(t);a=this.getNormalizedDate(a),a!==e&&(this.userChangedValue=!0,this.valueAsDate=a?l(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=e,this.setInputValue(e)))}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}formatNumerals(t){return t?t.split("").map(e=>this.commonDateSeparators?.includes(e)?this.localeData?.separator:A?.includes(e)?v?.numberFormatter?.format(Number(e)):e).join(""):""}parseNumerals(t){return t?t.split("").map(e=>A.includes(e)?v.delocalize(e):e).join(""):""}getNormalizedDate(t){if(!t)return"";if(!ht(t))return t;let{day:e,month:a,year:i}=F(t);return`${dt(Number(i))}-${a}-${e}`}focusInput(){(this.focusedInput==="start"?this.startInput:this.endInput).setFocus()}render(){let{disabled:t,messages:{_lang:e},messages:a,numberingSystem:i,readOnly:s}=this;return v.numberFormatOptions={numberingSystem:i,locale:e,useGrouping:!1},N({disabled:this.disabled,children:u`${this.localeData&&u`<div class=${o(n.container)}><div class=${o(n.inputContainer)}><div class=${o(n.inputWrapper)} data-position=start @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setStartWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-describedby=${this.placeholderTextId??m} aria-errormessage=${lt.validationMessage} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} class=${o({[n.input]:!0,[n.inputNoBottomBorder]:this.layout==="vertical"&&this.range,[n.inputNoRightBorder]:this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.startInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setStartInput)}></calcite-input-text>${!this.readOnly&&!this.range&&this.renderToggleIcon(this.open&&this.focusedInput==="start")||""}<span aria-hidden=true class=${o(n.assistiveText)} id=${this.placeholderTextId??m}>${a.dateFormat.replace("{format}",this.localeData?.placeholder)}</span></div><div .ariaHidden=${!this.open} .ariaLabel=${a.chooseDate} aria-live=polite aria-modal=true class=${o(n.menu)} id=${this.dialogId??m} role=dialog ${d(this.setFloatingEl)}><div class=${o({[n.calendarWrapper]:!0,[k.animation]:!0,[k.animationActive]:this.open})} ${d(this.setTransitionEl)}><calcite-date-picker .activeDate=${this.datePickerActiveDate} .activeRange=${this.focusedInput} .headingLevel=${this.headingLevel} .layout=${this.layout} .max=${this.max} .maxAsDate=${this.maxAsDate} .messageOverrides=${this.messageOverrides} .min=${this.min} .minAsDate=${this.minAsDate} .monthStyle=${this.monthStyle} .numberingSystem=${i} @calciteDatePickerChange=${this.handleDateChange} @calciteDatePickerRangeChange=${this.handleDateRangeChange} .proximitySelectionDisabled=${this.proximitySelectionDisabled} .range=${this.range} .scale=${this.scale} tabindex=${(this.open?void 0:-1)??m} .valueAsDate=${this.valueAsDate} ${d(this.setDatePickerRef)}></calcite-date-picker></div></div>${this.range&&u`<div class=${o(n.dividerContainer)}><div class=${o(n.divider)}></div></div>`||""}${this.range&&u`<div class=${o(n.inputWrapper)} data-position=end @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setEndWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog class=${o({[n.input]:!0,[n.inputNoTopBorder]:this.layout==="vertical"&&this.range,[n.inputNoLeftBorder]:this.layout==="horizontal"&&this.range,[n.inputNoRightBorder]:this.layout==="vertical"&&this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setEndInput)}></calcite-input-text>${!this.readOnly&&this.layout==="horizontal"&&this.renderToggleIcon(this.open)||""}</div>`||""}</div>${this.range&&this.layout==="vertical"&&u`<div class=${o(n.verticalChevronContainer)}><calcite-icon .icon=${this.open?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></div>`||""}</div>`||""}${et({component:this})}${this.validationMessage&&this.status==="invalid"?at({icon:this.validationIcon,id:lt.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return u`<span class=${o(n.toggleIcon)} tabindex=-1><calcite-icon class=${o(n.chevronIcon)} .icon=${t?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></span>`}};R("calcite-input-date-picker",O);export{O as InputDatePicker};
3
+ v3.0.0-next.121 */
4
+ import{a as ot}from"./HCSC2MWE.js";import{a as rt,b as P,c as x}from"./VE7O3M7I.js";import{a as nt,b as D}from"./VLOO6D6K.js";import{a as it,b as I,c as l,d as C,g as st,h as c,i as F}from"./IAILBWX6.js";import{g as L,i as U,k as v}from"./4DH2RSAJ.js";import{a as at}from"./LM23A3DX.js";import{a as q,c as k,d as Y,e as G,f as j,g as y,h as Z}from"./3YEU6YOM.js";import"./HSECNDLW.js";import{a as _}from"./E4WIMN6X.js";import{a as Q,c as X,e as tt,h as et}from"./EV2GOJRS.js";import{c as J,d as K}from"./BSCR4CQE.js";import{a as M,b as N}from"./SDFUWA2R.js";import{a as $}from"./ZQKC5BGV.js";import"./BUEOALZD.js";import"./5FRWVNEF.js";import{b as A}from"./HSN6XZOH.js";import{a as H}from"./LSS6Y4EX.js";import{b as d}from"./F7DNFJGK.js";import{n as B}from"./O4TJEOVS.js";import{b as W}from"./KEYPDZQZ.js";import{a as w}from"./MH575SZ5.js";import{A as S,F as z,I as R,d as E,e as u,i as m,u as g,v as V,w as o}from"./FVDGAXA6.js";var ct=E`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}: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:inline-block;width:100%;overflow:visible;vertical-align:top;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host .menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}:host .menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}:host .menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}:host .menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}:host .menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}:host .menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}: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)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.calendar-wrapper{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);transform:translateZ(0)}.input-wrapper{position:relative}.input-wrapper .chevron-icon{color:var(--calcite-color-text-3)}.input-wrapper:focus-within .chevron-icon,.input-wrapper:active .chevron-icon,.input-wrapper:hover .chevron-icon{color:var(--calcite-color-text-1)}.input-wrapper:focus-within~.input-wrapper .chevron-icon,.input-wrapper:active~.input-wrapper .chevron-icon,.input-wrapper:hover~.input-wrapper .chevron-icon{color:var(--calcite-color-text-1)}.toggle-icon{position:absolute;display:flex;cursor:pointer;align-items:center;inset-inline-end:0;inset-block:0;padding-inline:var(--calcite-toggle-spacing)}:host([range]) .container{display:flex}:host([range]) .input-container{display:flex;flex:1 1 auto}:host([range]) .input-wrapper{flex:1 1 auto}.divider-container{display:flex;align-items:stretch;border-width:1px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1)}:host([layout=horizontal]) .divider-container{width:1px}.divider{display:inline-block;width:1px;margin-block:var(--calcite-spacing-xxs);background-color:var(--calcite-color-border-2)}:host([layout=vertical]) .divider-container{height:1px;width:100%;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-right-width:0px;padding-inline:var(--calcite-spacing-md)}:host([layout=vertical]) .divider-container .divider{margin-top:0;margin-bottom:0;height:1px;width:100%}:host([range][layout=vertical]) .input-wrapper{width:100%}:host([range][layout=vertical]) .input-container{flex-direction:column;align-items:flex-start}.menu-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.menu-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.menu-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.menu-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.menu-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.menu-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.menu-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.input .calcite-input__wrapper{margin-top:0}.vertical-chevron-container{display:flex;align-items:center;border-width:1px;border-left-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);padding-inline:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}.vertical-chevron-container calcite-icon{color:var(--calcite-color-text-3)}.vertical-chevron-container calcite-icon:hover{color:var(--calcite-color-text-1)}:host([range][layout=vertical][scale=s]) .vertical-chevron-container,:host([range][layout=vertical][scale=s]) .divider-container{padding-inline:var(--calcite-spacing-sm)}:host([range][layout=vertical][scale=l]) .vertical-chevron-container,:host([range][layout=vertical][scale=l]) .divider-container{padding-inline:var(--calcite-spacing-lg)}.container:focus-within .vertical-chevron-container calcite-icon,.container:active .vertical-chevron-container calcite-icon,.container:hover .vertical-chevron-container 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}::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}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,n={assistiveText:"assistive-text",calendarWrapper:"calendar-wrapper",container:"container",dividerContainer:"divider-container",divider:"divider",horizontalArrowContainer:"horizontal-arrow-container",inputBorderTopColorOne:"border-top-color-one",inputContainer:"input-container",inputNoBottomBorder:"input--no-bottom-border",inputNoRightBorder:"input--no-right-border",inputNoTopBorder:"input--no-top-border",inputNoLeftBorder:"input--no-left-border",inputWrapper:"input-wrapper",input:"input",menu:"menu-container",toggleIcon:"toggle-icon",verticalChevronContainer:"vertical-chevron-container",chevronIcon:"chevron-icon"},lt={validationMessage:"inputDatePickerValidationMessage"};function ht(f){if(!f)return!1;let{year:t}=F(f);return Number(t)<100}function dt(f){let t=new Date().getFullYear();return Math.floor(t/100)*100+f}var O=class extends V{constructor(){super(),this.commonDateSeparators=[".","-","/"],this.dialogId=`date-picker-dialog--${w()}`,this.focusOnOpen=!1,this.focusTrapDeactivates=()=>{this.open=!1},this.transitionProp="opacity",this.placeholderTextId=`calcite-input-date-picker-placeholder-${w()}`,this.rangeStartValueChangedByUser=!1,this.userChangedValue=!1,this._value="",this.valueAsDateChangedExternally=!1,this.focusedInput="start",this.disabled=!1,this.focusTrapDisabled=!1,this.layout="horizontal",this.messages=H({blocking:!0}),this.monthStyle="wide",this.open=!1,this.overlayPositioning="absolute",this.placement=q,this.proximitySelectionDisabled=!1,this.range=!1,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.calciteInputDatePickerBeforeClose=g({cancelable:!1}),this.calciteInputDatePickerBeforeOpen=g({cancelable:!1}),this.calciteInputDatePickerChange=g({cancelable:!1}),this.calciteInputDatePickerClose=g({cancelable:!1}),this.calciteInputDatePickerOpen=g({cancelable:!1}),this.listen("blur",this.blurHandler),this.listen("keydown",this.keyDownHandler),this.handleDateTimeFormatChange()}static{this.properties={datePickerActiveDate:16,focusedInput:16,localeData:16,disabled:7,flipPlacements:0,focusTrapDisabled:7,form:3,headingLevel:11,layout:3,max:3,maxAsDate:0,messageOverrides:0,min:3,minAsDate:0,monthStyle:1,name:3,numberingSystem:3,open:7,overlayPositioning:3,placement:3,proximitySelectionDisabled:5,range:7,readOnly:7,required:7,scale:3,status:3,validationIcon:[3,{converter:S}],validationMessage:1,validity:0,value:1,valueAsDate:0}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=ct}get value(){return this._value}set value(t){let e=this._value;t!==e&&(this._value=t,this.valueWatcher(t))}async reposition(t=!1){let{floatingEl:e,referenceEl:a,placement:i,overlayPositioning:s,filteredFlipPlacements:r}=this;return G(this,{floatingEl:e,referenceEl:a,overlayPositioning:s,placement:i,flipPlacements:r,type:"menu"},t)}async setFocus(){await W(this),B(this.el)}connectedCallback(){super.connectedCallback();let{open:t}=this;if(t&&this.openHandler(),this.min&&(this.minAsDate=l(this.min)),this.max&&(this.maxAsDate=l(this.max)),Array.isArray(this.value))this.valueAsDate=D(this.value);else if(this.value)try{let e=l(this.value),a=I(e,this.minAsDate,this.maxAsDate);this.valueAsDate=a}catch{this.warnAboutInvalidValue(this.value),this.value=""}else this.valueAsDate&&(this.range&&Array.isArray(this.valueAsDate)?this.value=[c(this.valueAsDate[0]),c(this.valueAsDate[1])]:!this.range&&!Array.isArray(this.valueAsDate)&&(this.value=c(this.valueAsDate)));J(this),X(this),this.setFilteredPlacements(),v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},y(this)}async load(){this.handleDateTimeFormatChange(),await this.loadLocaleData(),this.onMinChanged(this.min),this.onMaxChanged(this.max)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledAndReadOnlyChange(this.disabled),t.has("readOnly")&&(this.hasUpdated||this.readOnly!==!1)&&this.handleDisabledAndReadOnlyChange(this.readOnly),t.has("valueAsDate")&&this.valueAsDateWatcher(this.valueAsDate),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("min")&&this.onMinChanged(this.min),t.has("max")&&this.onMaxChanged(this.max),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(t.has("numberingSystem")||t.has("messages"))&&this.handleDateTimeFormatChange(),t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setReferenceEl(),t.has("messages")&&this.loadLocaleData()}updated(){M(this)}loaded(){this.localizeInputValues(),y(this)}disconnectedCallback(){super.disconnectedCallback(),x(this),K(this),tt(this),Z(this)}handleFocusTrapDisabled(t){this.open&&(t?x(this):P(this))}handleDisabledAndReadOnlyChange(t){t||(this.open=!1)}valueWatcher(t){if(!this.userChangedValue){let e;Array.isArray(t)?e=D(t):t?e=l(t):e=void 0,!this.valueAsDateChangedExternally&&e!==this.valueAsDate&&(this.valueAsDate=e),this.localizeInputValues()}this.userChangedValue=!1}valueAsDateWatcher(t){let e=Array.isArray(t)?[c(t[0]),c(t[1])]:c(t);this.datePickerActiveDate=Array.isArray(t)?t[0]:t,this.value!==e&&(this.valueAsDateChangedExternally=!0,this.value=e,this.valueAsDateChangedExternally=!1)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMinChanged(t){this.minAsDate=l(t)}onMaxChanged(t){this.maxAsDate=l(t)}openHandler(){_(this),!(this.disabled||this.readOnly)&&this.reposition(!0)}calciteInternalInputInputHandler(t){let e=t.target,a=e.value,i=this.parseNumerals(a),s=this.formatNumerals(i);e.value=s;let{year:r}=st(a,this.localeData);if(r&&r.length<4)return;let h=C(a,this.localeData);it(h,this.min,this.max)&&(this.datePickerActiveDate=h)}calciteInternalInputBlurHandler(){this.commitValue()}handleDateTimeFormatChange(){let t={numberingSystem:L(this.numberingSystem)};this.dateTimeFormat=new Intl.DateTimeFormat(U(this.messages._lang),t)}setReferenceEl(){let{focusedInput:t,layout:e,endWrapper:a,startWrapper:i}=this;this.referenceEl=t==="end"||e==="vertical"?a||i:i||a,requestAnimationFrame(()=>y(this))}onInputWrapperPointerDown(){this.currentOpenInput=this.focusedInput}onInputWrapperClick(t){let{range:e,endInput:a,startInput:i,currentOpenInput:s}=this,r=t.currentTarget.getAttribute("data-position");t.composedPath().find(h=>h.classList?.contains(n.toggleIcon))&&(r==="start"?i:a).setFocus(),(!e||!this.open||s===r)&&(this.open=!this.open)}setFilteredPlacements(){let{el:t,flipPlacements:e}=this;this.filteredFlipPlacements=e?Y(e,t):null}setTransitionEl(t){this.transitionEl=t}onLabelClick(){this.setFocus()}onBeforeOpen(){this.calciteInputDatePickerBeforeOpen.emit()}onOpen(){P(this,{onActivate:()=>{this.focusOnOpen&&(this.datePickerEl?.setFocus(),this.focusOnOpen=!1)}}),this.calciteInputDatePickerOpen.emit()}onBeforeClose(){this.calciteInputDatePickerBeforeClose.emit()}onClose(){this.calciteInputDatePickerClose.emit(),j(this),x(this),this.focusOnOpen=!1,this.datePickerEl?.reset()}syncHiddenFormInput(t){ot("date",this,t)}setStartInput(t){this.startInput=t}setEndInput(t){this.endInput=t}blurHandler(){this.open=!1}commitValue(){let{focusedInput:t,value:e}=this,a=`${t}Input`,i=this[a].value,s=C(i,this.localeData),r=c(s),h=Array.isArray(e);if(this.range){let p=t==="start"?0:1;if(h){if(r===e[p])return;s?(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues()):this.setRangeValue([t==="end"&&l(e[0]),t==="start"&&l(e[1])])}else s&&(this.setRangeValue([t==="start"?s:l(e[0]),t==="end"?s:l(e[1])]),this.localizeInputValues())}else{if(r===e)return;this.setValue(s),this.localizeInputValues()}}keyDownHandler(t){let{defaultPrevented:e,key:a}=t;if(e)return;let i=t.composedPath().some(s=>s.tagName==="CALCITE-SELECT");a==="Enter"?(t.preventDefault(),this.commitValue(),this.shouldFocusRangeEnd()?this.endInput?.setFocus():this.shouldFocusRangeStart()&&this.startInput?.setFocus(),Q(this)&&this.restoreInputFocus(!0)):(a==="ArrowDown"||a==="ArrowUp")&&!i?(this.open=!0,this.focusOnOpen=!0,t.preventDefault()):this.open&&a==="Escape"&&(this.open=!1,t.preventDefault(),this.restoreInputFocus(!0))}startInputFocus(){this.focusedInput="start"}endInputFocus(){this.focusedInput="end"}setFloatingEl(t){this.floatingEl=t,y(this)}setStartWrapper(t){this.startWrapper=t,this.setReferenceEl()}setEndWrapper(t){this.endWrapper=t,this.setReferenceEl()}setDatePickerRef(t){this.datePickerEl=t,rt(this,{focusTrapEl:t,focusTrapOptions:{allowOutsideClick:!0,clickOutsideDeactivates:!1,initialFocus:!1,setReturnFocus:!1,onDeactivate:this.focusTrapDeactivates}})}async loadLocaleData(){z()&&(v.numberFormatOptions={numberingSystem:this.numberingSystem,locale:this.messages._lang,useGrouping:!1},this.localeData=await nt(this.messages._lang),this.localizeInputValues())}handleDateChange(t){this.range||(t.stopPropagation(),this.setValue(t.target.valueAsDate),this.localizeInputValues(),this.restoreInputFocus())}shouldFocusRangeStart(){let t=this.value[0];return!!(this.value[1]&&!t&&this.focusedInput==="end"&&this.startInput)}shouldFocusRangeEnd(){let t=this.value[0],e=this.value[1];return!!(t&&!e&&this.focusedInput==="start"&&this.endInput)}handleDateRangeChange(t){if(!this.range)return;t.stopPropagation();let e=t.target.valueAsDate;this.setRangeValue(e),this.localizeInputValues(),this.restoreInputFocus()}restoreInputFocus(t=!1){if(!this.range){this.startInput.setFocus(),this.open=!1;return}if(t){this.focusInput();return}this.rangeStartValueChangedByUser=this.focusedInput==="start",this.focusedInput="end",!(this.shouldFocusRangeStart()||this.rangeStartValueChangedByUser)&&(this.open=!1,this.focusInput())}localizeInputValues(){let t=I(this.range?Array.isArray(this.valueAsDate)&&this.valueAsDate[0]||void 0:this.valueAsDate,this.minAsDate,this.maxAsDate),e=this.range?I(Array.isArray(this.valueAsDate)&&this.valueAsDate[1]||void 0,this.minAsDate,this.maxAsDate):null;this.setInputValue((t&&this.dateTimeFormat.format(t))??"","start"),this.setInputValue((this.range&&e&&this.dateTimeFormat.format(e))??"","end")}setInputValue(t,e="start"){let a=this[`${e}Input`];a&&(a.value=t)}setRangeValue(t){if(!this.range)return;let{value:e}=this,a=Array.isArray(e),i=Array.isArray(t),s=i?t[0]:null,r=i?c(s):"";r&&(r=this.getNormalizedDate(r));let h=i?t[1]:null,p=i?c(h):"";p&&(p=this.getNormalizedDate(p));let b=r||p?[r,p]:"";if(b===e)return;this.userChangedValue=!0,this.value=b,this.valueAsDate=b?D(b):void 0;let T=this.calciteInputDatePickerChange.emit();T&&T.defaultPrevented&&(this.value=e,a?(this.setInputValue(e[0],"start"),this.setInputValue(e[1],"end")):(this.value=e,this.setInputValue(e)))}setValue(t){if(this.range)return;let e=this.value,a=c(t);a=this.getNormalizedDate(a),a!==e&&(this.userChangedValue=!0,this.valueAsDate=a?l(a):void 0,this.value=a||"",this.calciteInputDatePickerChange.emit().defaultPrevented&&(this.value=e,this.setInputValue(e)))}warnAboutInvalidValue(t){console.warn(`The specified value "${t}" does not conform to the required format, "YYYY-MM-DD".`)}formatNumerals(t){return t?t.split("").map(e=>this.commonDateSeparators?.includes(e)?this.localeData?.separator:A?.includes(e)?v?.numberFormatter?.format(Number(e)):e).join(""):""}parseNumerals(t){return t?t.split("").map(e=>A.includes(e)?v.delocalize(e):e).join(""):""}getNormalizedDate(t){if(!t)return"";if(!ht(t))return t;let{day:e,month:a,year:i}=F(t);return`${dt(Number(i))}-${a}-${e}`}focusInput(){(this.focusedInput==="start"?this.startInput:this.endInput).setFocus()}render(){let{disabled:t,messages:{_lang:e},messages:a,numberingSystem:i,readOnly:s}=this;return v.numberFormatOptions={numberingSystem:i,locale:e,useGrouping:!1},N({disabled:this.disabled,children:u`${this.localeData&&u`<div class=${o(n.container)}><div class=${o(n.inputContainer)}><div class=${o(n.inputWrapper)} data-position=start @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setStartWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-describedby=${this.placeholderTextId??m} aria-errormessage=${lt.validationMessage} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog .ariaInvalid=${this.status==="invalid"} class=${o({[n.input]:!0,[n.inputNoBottomBorder]:this.layout==="vertical"&&this.range,[n.inputNoRightBorder]:this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.startInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setStartInput)}></calcite-input-text>${!this.readOnly&&!this.range&&this.renderToggleIcon(this.open&&this.focusedInput==="start")||""}<span aria-hidden=true class=${o(n.assistiveText)} id=${this.placeholderTextId??m}>${a.dateFormat.replace("{format}",this.localeData?.placeholder)}</span></div><div .ariaHidden=${!this.open} .ariaLabel=${a.chooseDate} aria-live=polite aria-modal=true class=${o(n.menu)} id=${this.dialogId??m} role=dialog ${d(this.setFloatingEl)}><div class=${o({[n.calendarWrapper]:!0,[k.animation]:!0,[k.animationActive]:this.open})} ${d(this.setTransitionEl)}><calcite-date-picker .activeDate=${this.datePickerActiveDate} .activeRange=${this.focusedInput} .headingLevel=${this.headingLevel} .layout=${this.layout} .max=${this.max} .maxAsDate=${this.maxAsDate} .messageOverrides=${this.messageOverrides} .min=${this.min} .minAsDate=${this.minAsDate} .monthStyle=${this.monthStyle} .numberingSystem=${i} @calciteDatePickerChange=${this.handleDateChange} @calciteDatePickerRangeChange=${this.handleDateRangeChange} .proximitySelectionDisabled=${this.proximitySelectionDisabled} .range=${this.range} .scale=${this.scale} tabindex=${(this.open?void 0:-1)??m} .valueAsDate=${this.valueAsDate} ${d(this.setDatePickerRef)}></calcite-date-picker></div></div>${this.range&&u`<div class=${o(n.dividerContainer)}><div class=${o(n.divider)}></div></div>`||""}${this.range&&u`<div class=${o(n.inputWrapper)} data-position=end @click=${this.onInputWrapperClick} @pointerdown=${this.onInputWrapperPointerDown} ${d(this.setEndWrapper)}><calcite-input-text aria-controls=${this.dialogId??m} aria-autocomplete=none .ariaExpanded=${this.open} aria-haspopup=dialog class=${o({[n.input]:!0,[n.inputNoTopBorder]:this.layout==="vertical"&&this.range,[n.inputNoLeftBorder]:this.layout==="horizontal"&&this.range,[n.inputNoRightBorder]:this.layout==="vertical"&&this.range})} .disabled=${t} icon=calendar @calciteInputTextInput=${this.calciteInternalInputInputHandler} @calciteInternalInputTextBlur=${this.calciteInternalInputBlurHandler} @calciteInternalInputTextFocus=${this.endInputFocus} .placeholder=${this.localeData?.placeholder} .readOnly=${s} role=combobox .scale=${this.scale} .status=${this.status} ${d(this.setEndInput)}></calcite-input-text>${!this.readOnly&&this.layout==="horizontal"&&this.renderToggleIcon(this.open)||""}</div>`||""}</div>${this.range&&this.layout==="vertical"&&u`<div class=${o(n.verticalChevronContainer)}><calcite-icon .icon=${this.open?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></div>`||""}</div>`||""}${et({component:this})}${this.validationMessage&&this.status==="invalid"?at({icon:this.validationIcon,id:lt.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderToggleIcon(t){return u`<span class=${o(n.toggleIcon)} tabindex=-1><calcite-icon class=${o(n.chevronIcon)} .icon=${t?"chevron-up":"chevron-down"} .scale=${$(this.scale)}></calcite-icon></span>`}};R("calcite-input-date-picker",O);export{O as InputDatePicker};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
3
+ v3.0.0-next.121 */
4
4
  function e(r,$,t){return $?`${r}-${$}`:t?`${r}-${t}`:`${r}-m`}export{e as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{b as a}from"./3GG4JCZ2.js";import"./WFGJA7PS.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,t,_){var n=M[_];return Array.isArray(n)&&(n=n[t?0:1]),n.replace("%d",r)}var i={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"J\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};a.locale(i,null,!0);var d=i;export{d as default};
3
+ v3.0.0-next.121 */
4
+ import{b as a}from"./JT3S7W2N.js";import"./WCTD7KNV.js";var M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(r,t,_){var n=M[_];return Array.isArray(n)&&(n=n[t?0:1]),n.replace("%d",r)}var i={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"J\xE4nner_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xE4n._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(t){return t+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};a.locale(i,null,!0);var d=i;export{d as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as ct,b as I,c as D,d as k,e as W,f as lt,g as kt,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as G,q as ft,r as yt}from"./PJ4UGJCH.js";import{a as Dt}from"./25IEQNXY.js";import{e as Lt}from"./YSM2HE3M.js";import{C as pt,F as xt}from"./2VID6H7P.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),pe={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>xe[e])}function we(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=we(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>pe[e])}function ye(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?ye(t):{top:t,right:t,bottom:t,left:t}}function q(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=q(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),O=R?R[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=O/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=O-p[g]-C,P=O/2-p[g]/2+H,K=ut(B,P,Y),$=!l.arrow&&S(o)!=null&&P!==K&&r.reference[g]/2-(P<B?A:C)-p[g]/2<0,L=$?P<B?P-B:P-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:P-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ve(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ve(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],R=p[h+1];if(R)return{data:{index:h+1,overflows:v},reset:{placement:R}};let O=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=O.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||O[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),R=g!=="none";!m&&R&&v.push(...$t(c,p,g,b));let O=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let P=Ot(o,s,b);T.push(H[P[0]],H[P[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(P=>P<=0)){var C,B;let P=(((C=r.flip)==null?void 0:C.index)||0)+1,K=O[P];if(K)return{data:{index:P,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(R){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,he)=>V+he,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function be(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return k(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ae=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?Ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function X(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?k(i)&&(s=Q(i)):s=Q(t));let c=Oe(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&k(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=M(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return q({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:X(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Re(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=X(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Pe(t){return Array.from(t.getClientRects())}function Ce(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ee(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=X(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function qt(t,e,n){let i;if(e==="viewport")i=Ee(t,n);else if(e==="document")i=Ce(D(t));else if(k(e))i=Se(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return q(i)}function Qt(t,e){let n=G(t);return n===e||!k(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Te(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>k(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?G(t):t;for(;k(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Le(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Te(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=qt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},qt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function De(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function ke(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=X(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=X(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function Xt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(k(o)&&!Pt(o))return o;o=G(o)}return n}let i=Xt(t,e);for(;i&&kt(i)&&Pt(i);)i=Xt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var Me=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:ke(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Fe(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Re,getDocumentElement:D,getClippingRect:Le,getOffsetParent:Zt,getElementRects:Me,getClientRects:Pe,getDimensions:De,getScale:Q,isElement:k,isRTL:Fe};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Be(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let a=t.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=a;if(c||e(),!m||!f)return;let g=st(u),p=st(o.clientWidth-(d+m)),x=st(o.clientHeight-(u+f)),h=st(d),y={rootMargin:-g+"px "+-p+"px "+-x+"px "+-h+"px",threshold:N(0,j(1,l))||1},b=!0;function v(R){let O=R[0].intersectionRatio;if(O!==l){if(!b)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!te(a,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function ee(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Be(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?X(t):null;l&&x();function x(){let h=X(t);p&&!te(p,h)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ne=Yt,ie=It,oe=Ut,St=jt;var se=_t,re=Vt;var ce=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function le(t){return $e(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function $e(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,le)}})();function ae(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var me=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await ce(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:ue(o,u),middleware:Ne({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>ue(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],R=y!=null?"left":"top",O=ze[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[R]:`${R=="left"?y:b}px`,[v]:"100%",transform:O})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute(We,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${ae(m)}px,${ae(f)}px)`,visibility:h})},We="data-placement",fe=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],ln="bottom-start",an="bottom-end",fn={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function Ne({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[oe(),se()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ne({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ie({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(re({element:r})),l}return[]}function un(t,e){let n=t.filter(i=>fe.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${fe.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function ue(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function dn(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return ge(t);await(n?He(t):me)(t,e)}}function He(t){let e=ht.get(t);return e||(e=Dt(me,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var ze={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function ge(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?ee:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function Ve(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function mn(t){let{floatingEl:e,referenceEl:n}=t;if(Ve(t),!(!e||!n)&&(Ie(t),!!t.open))return ge(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var de=4,gn=Math.ceil(Math.hypot(de,de));export{ln as a,an as b,fn as c,un as d,dn as e,Ve as f,mn as g,Ie as h,gn as i};
3
+ v3.0.0-next.121 */
4
+ import{a as ct,b as I,c as D,d as k,e as W,f as lt,g as kt,h as at,i as Z,j as Mt,k as wt,l as tt,m as M,n as et,o as G,q as ft,r as yt}from"./HSECNDLW.js";import{a as Dt}from"./5FRWVNEF.js";import{e as Lt}from"./O4TJEOVS.js";import{C as pt,F as xt}from"./FVDGAXA6.js";var vt=["top","right","bottom","left"],Ft=["start","end"],bt=vt.reduce((t,e)=>t.concat(e,e+"-"+Ft[0],e+"-"+Ft[1]),[]),j=Math.min,N=Math.max,ot=Math.round,st=Math.floor,E=t=>({x:t,y:t}),pe={left:"right",right:"left",bottom:"top",top:"bottom"},xe={start:"end",end:"start"};function ut(t,e,n){return N(t,j(e,n))}function _(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function At(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(F(t))?"y":"x"}function mt(t){return At(U(t))}function Ot(t,e,n){n===void 0&&(n=!1);let i=S(t),o=mt(t),r=dt(o),s=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=it(s)),[s,it(s)]}function Bt(t){let e=it(t);return[nt(t),e,nt(e)]}function nt(t){return t.replace(/start|end/g,e=>xe[e])}function we(t,e,n){let i=["left","right"],o=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:s;default:return[]}}function $t(t,e,n,i){let o=S(t),r=we(F(t),n==="start",i);return o&&(r=r.map(s=>s+"-"+o),e&&(r=r.concat(r.map(nt)))),r}function it(t){return t.replace(/left|right|bottom|top/g,e=>pe[e])}function ye(t){return{top:0,right:0,bottom:0,left:0,...t}}function Rt(t){return typeof t!="number"?ye(t):{top:t,right:t,bottom:t,left:t}}function q(t){let{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Wt(t,e,n){let{reference:i,floating:o}=t,r=U(e),s=mt(e),c=dt(s),l=F(e),a=r==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,m=i[c]/2-o[c]/2,f;switch(l){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:u};break;case"left":f={x:i.x-o.width,y:u};break;default:f={x:i.x,y:i.y}}switch(S(e)){case"start":f[s]-=m*(n&&a?-1:1);break;case"end":f[s]+=m*(n&&a?-1:1);break}return f}var zt=async(t,e,n)=>{let{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),a=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:u}=Wt(a,i,l),m=i,f={},g=0;for(let p=0;p<c.length;p++){let{name:x,fn:h}=c[p],{x:w,y,data:b,reset:v}=await h({x:d,y:u,initialPlacement:i,placement:m,strategy:o,middlewareData:f,rects:a,platform:s,elements:{reference:t,floating:e}});d=w??d,u=y??u,f={...f,[x]:{...f[x],...b}},v&&g<=50&&(g++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):v.rects),{x:d,y:u}=Wt(a,m,l)),p=-1)}return{x:d,y:u,placement:m,strategy:o,middlewareData:f}};async function J(t,e){var n;e===void 0&&(e={});let{x:i,y:o,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:f=0}=_(e,t),g=Rt(f),x=c[m?u==="floating"?"reference":"floating":u],h=q(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(x)))==null||n?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:d,strategy:l})),w=u==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},v=q(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:y,strategy:l}):w);return{top:(h.top-v.top+g.top)/b.y,bottom:(v.bottom-h.bottom+g.bottom)/b.y,left:(h.left-v.left+g.left)/b.x,right:(v.right-h.right+g.right)/b.x}}var Vt=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:i,placement:o,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:d=0}=_(t,e)||{};if(a==null)return{};let u=Rt(d),m={x:n,y:i},f=mt(o),g=dt(f),p=await s.getDimensions(a),x=f==="y",h=x?"top":"left",w=x?"bottom":"right",y=x?"clientHeight":"clientWidth",b=r.reference[g]+r.reference[f]-m[f]-r.floating[g],v=m[f]-r.reference[f],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a)),O=R?R[y]:0;(!O||!await(s.isElement==null?void 0:s.isElement(R)))&&(O=c.floating[y]||r.floating[g]);let H=b/2-v/2,T=O/2-p[g]/2-1,A=j(u[h],T),C=j(u[w],T),B=A,Y=O-p[g]-C,P=O/2-p[g]/2+H,K=ut(B,P,Y),$=!l.arrow&&S(o)!=null&&P!==K&&r.reference[g]/2-(P<B?A:C)-p[g]/2<0,L=$?P<B?P-B:P-Y:0;return{[f]:m[f]+L,data:{[f]:K,centerOffset:P-K-L,...$&&{alignmentOffset:L}},reset:$}}});function ve(t,e,n){return(t?[...n.filter(o=>S(o)===t),...n.filter(o=>S(o)!==t)]:n.filter(o=>F(o)===o)).filter(o=>t?S(o)===t||(e?nt(o)!==o:!1):!0)}var It=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;let{rects:r,middlewareData:s,placement:c,platform:l,elements:a}=e,{crossAxis:d=!1,alignment:u,allowedPlacements:m=bt,autoAlignment:f=!0,...g}=_(t,e),p=u!==void 0||m===bt?ve(u||null,f,m):m,x=await J(e,g),h=((n=s.autoPlacement)==null?void 0:n.index)||0,w=p[h];if(w==null)return{};let y=Ot(w,r,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==w)return{reset:{placement:p[0]}};let b=[x[F(w)],x[y[0]],x[y[1]]],v=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:b}],R=p[h+1];if(R)return{data:{index:h+1,overflows:v},reset:{placement:R}};let O=v.map(A=>{let C=S(A.placement);return[A.placement,C&&d?A.overflows.slice(0,2).reduce((B,Y)=>B+Y,0):A.overflows[0],A.overflows]}).sort((A,C)=>A[1]-C[1]),T=((o=O.filter(A=>A[2].slice(0,S(A[0])?2:3).every(C=>C<=0))[0])==null?void 0:o[0])||O[0][0];return T!==c?{data:{index:h+1,overflows:v},reset:{placement:T}}:{}}}},jt=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;let{placement:o,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...x}=_(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};let h=F(o),w=U(c),y=F(c)===c,b=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(y||!p?[it(c)]:Bt(c)),R=g!=="none";!m&&R&&v.push(...$t(c,p,g,b));let O=[c,...v],H=await J(e,x),T=[],A=((i=r.flip)==null?void 0:i.overflows)||[];if(d&&T.push(H[h]),u){let P=Ot(o,s,b);T.push(H[P[0]],H[P[1]])}if(A=[...A,{placement:o,overflows:T}],!T.every(P=>P<=0)){var C,B;let P=(((C=r.flip)==null?void 0:C.index)||0)+1,K=O[P];if(K)return{data:{index:P,overflows:A},reset:{placement:K}};let $=(B=A.filter(L=>L.overflows[0]<=0).sort((L,z)=>L.overflows[1]-z.overflows[1])[0])==null?void 0:B.placement;if(!$)switch(f){case"bestFit":{var Y;let L=(Y=A.filter(z=>{if(R){let V=U(z.placement);return V===w||V==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(V=>V>0).reduce((V,he)=>V+he,0)]).sort((z,V)=>z[1]-V[1])[0])==null?void 0:Y[0];L&&($=L);break}case"initialPlacement":$=c;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ht(t){return vt.some(e=>t[e]>=0)}var _t=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:i="referenceHidden",...o}=_(t,e);switch(i){case"referenceHidden":{let r=await J(e,{...o,elementContext:"reference"}),s=Nt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ht(s)}}}case"escaped":{let r=await J(e,{...o,altBoundary:!0}),s=Nt(r,n.floating);return{data:{escapedOffsets:s,escaped:Ht(s)}}}default:return{}}}}};async function be(t,e){let{placement:n,platform:i,elements:o}=t,r=await(i.isRTL==null?void 0:i.isRTL(o.floating)),s=F(n),c=S(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,d=r&&l?-1:1,u=_(e,t),{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof g=="number"&&(f=c==="end"?g*-1:g),l?{x:f*d,y:m*a}:{x:m*a,y:f*d}}var Yt=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;let{x:o,y:r,placement:s,middlewareData:c}=e,l=await be(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:s}}}}},Ut=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:h,y:w}=x;return{x:h,y:w}}},...l}=_(t,e),a={x:n,y:i},d=await J(e,l),u=U(F(o)),m=At(u),f=a[m],g=a[u];if(r){let x=m==="y"?"top":"left",h=m==="y"?"bottom":"right",w=f+d[x],y=f-d[h];f=ut(w,f,y)}if(s){let x=u==="y"?"top":"left",h=u==="y"?"bottom":"right",w=g+d[x],y=g-d[h];g=ut(w,g,y)}let p=c.fn({...e,[m]:f,[u]:g});return{...p,data:{x:p.x-n,y:p.y-i,enabled:{[m]:r,[u]:s}}}}}};function Kt(t){let e=M(t),n=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=W(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=ot(n)!==r||ot(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function Ct(t){return k(t)?t:t.contextElement}function Q(t){let e=Ct(t);if(!W(e))return E(1);let n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Kt(e),s=(r?ot(n.width):n.width)/i,c=(r?ot(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Ae=E(0);function Gt(t){let e=I(t);return!wt()||!e.visualViewport?Ae:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Oe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==I(t)?!1:e}function X(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);let o=t.getBoundingClientRect(),r=Ct(t),s=E(1);e&&(i?k(i)&&(s=Q(i)):s=Q(t));let c=Oe(r,n,i)?Gt(r):E(0),l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(r){let m=I(r),f=i&&k(i)?I(i):i,g=m,p=yt(g);for(;p&&i&&f!==g;){let x=Q(p),h=p.getBoundingClientRect(),w=M(p),y=h.left+(p.clientLeft+parseFloat(w.paddingLeft))*x.x,b=h.top+(p.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,a*=x.y,d*=x.x,u*=x.y,l+=y,a+=b,g=I(p),p=yt(g)}}return q({width:d,height:u,x:l,y:a})}function Et(t,e){let n=et(t).scrollLeft;return e?e.left+n:X(D(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);let i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:Et(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function Re(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t,r=o==="fixed",s=D(i),c=e?at(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=E(1),d=E(0),u=W(i);if((u||!u&&!r)&&((ct(i)!=="body"||lt(s))&&(l=et(i)),W(i))){let f=X(i);a=Q(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}let m=s&&!u&&!r?Jt(s,l,!0):E(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+d.x+m.x,y:n.y*a.y-l.scrollTop*a.y+d.y+m.y}}function Pe(t){return Array.from(t.getClientRects())}function Ce(t){let e=D(t),n=et(t),i=t.ownerDocument.body,o=N(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=N(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+Et(t),c=-n.scrollTop;return M(i).direction==="rtl"&&(s+=N(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function Ee(t,e){let n=I(t),i=D(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;let a=wt();(!a||a&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function Se(t,e){let n=X(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=W(t)?Q(t):E(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,a=i*r.y;return{width:s,height:c,x:l,y:a}}function qt(t,e,n){let i;if(e==="viewport")i=Ee(t,n);else if(e==="document")i=Ce(D(t));else if(k(e))i=Se(e,n);else{let o=Gt(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return q(i)}function Qt(t,e){let n=G(t);return n===e||!k(n)||tt(n)?!1:M(n).position==="fixed"||Qt(n,e)}function Te(t,e){let n=e.get(t);if(n)return n;let i=ft(t,[],!1).filter(c=>k(c)&&ct(c)!=="body"),o=null,r=M(t).position==="fixed",s=r?G(t):t;for(;k(s)&&!tt(s);){let c=M(s),l=Z(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||lt(s)&&!l&&Qt(t,s))?i=i.filter(d=>d!==s):o=c,s=G(s)}return e.set(t,i),i}function Le(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t,s=[...n==="clippingAncestors"?at(e)?[]:Te(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((a,d)=>{let u=qt(e,d,o);return a.top=N(u.top,a.top),a.right=j(u.right,a.right),a.bottom=j(u.bottom,a.bottom),a.left=N(u.left,a.left),a},qt(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function De(t){let{width:e,height:n}=Kt(t);return{width:e,height:n}}function ke(t,e,n){let i=W(e),o=D(e),r=n==="fixed",s=X(t,!0,r,e),c={scrollLeft:0,scrollTop:0},l=E(0);if(i||!i&&!r)if((ct(e)!=="body"||lt(o))&&(c=et(e)),i){let m=X(e,!0,r,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&(l.x=Et(o));let a=o&&!i&&!r?Jt(o,c):E(0),d=s.left+c.scrollLeft-l.x-a.x,u=s.top+c.scrollTop-l.y-a.y;return{x:d,y:u,width:s.width,height:s.height}}function Pt(t){return M(t).position==="static"}function Xt(t,e){if(!W(t)||M(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return D(t)===n&&(n=n.ownerDocument.body),n}function Zt(t,e){let n=I(t);if(at(t))return n;if(!W(t)){let o=G(t);for(;o&&!tt(o);){if(k(o)&&!Pt(o))return o;o=G(o)}return n}let i=Xt(t,e);for(;i&&kt(i)&&Pt(i);)i=Xt(i,e);return i&&tt(i)&&Pt(i)&&!Z(i)?n:i||Mt(t)||n}var Me=async function(t){let e=this.getOffsetParent||Zt,n=this.getDimensions,i=await n(t.floating);return{reference:ke(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Fe(t){return M(t).direction==="rtl"}var gt={convertOffsetParentRelativeRectToViewportRelativeRect:Re,getDocumentElement:D,getClippingRect:Le,getOffsetParent:Zt,getElementRects:Me,getClientRects:Pe,getDimensions:De,getScale:Q,isElement:k,isRTL:Fe};function te(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Be(t,e){let n=null,i,o=D(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let a=t.getBoundingClientRect(),{left:d,top:u,width:m,height:f}=a;if(c||e(),!m||!f)return;let g=st(u),p=st(o.clientWidth-(d+m)),x=st(o.clientHeight-(u+f)),h=st(d),y={rootMargin:-g+"px "+-p+"px "+-x+"px "+-h+"px",threshold:N(0,j(1,l))||1},b=!0;function v(R){let O=R[0].intersectionRatio;if(O!==l){if(!b)return s();O?s(!1,O):i=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!te(a,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(v,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(v,y)}n.observe(t)}return s(!0),r}function ee(t,e,n,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,a=Ct(t),d=o||r?[...a?ft(a):[],...ft(e)]:[];d.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),r&&h.addEventListener("resize",n)});let u=a&&c?Be(a,n):null,m=-1,f=null;s&&(f=new ResizeObserver(h=>{let[w]=h;w&&w.target===a&&f&&(f.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(e)})),n()}),a&&!l&&f.observe(a),f.observe(e));let g,p=l?X(t):null;l&&x();function x(){let h=X(t);p&&!te(p,h)&&n(),p=h,g=requestAnimationFrame(x)}return n(),()=>{var h;d.forEach(w=>{o&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),u?.(),(h=f)==null||h.disconnect(),f=null,l&&cancelAnimationFrame(g)}}var ne=Yt,ie=It,oe=Ut,St=jt;var se=_t,re=Vt;var ce=(t,e,n)=>{let i=new Map,o={platform:gt,...n},r={...o.platform,_c:i};return zt(t,e,{...o,platform:r})};function le(t){return $e(t)}function Tt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function $e(t){for(let e=t;e;e=Tt(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tt(t);e;e=Tt(e)){if(!(e instanceof Element))continue;let n=getComputedStyle(e);if(n.display!=="contents"&&(n.position!=="static"||Z(n)||e.tagName==="BODY"))return e}return null}(function(){if(xt()){let t=gt.getOffsetParent;gt.getOffsetParent=e=>t(e,le)}})();function ae(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}var me=async(t,{referenceEl:e,floatingEl:n,overlayPositioning:i="absolute",placement:o,flipDisabled:r,flipPlacements:s,offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})=>{if(!e||!n)return;let u=Lt(n)==="rtl",{x:m,y:f,placement:g,strategy:p,middlewareData:x}=await ce(e,n,{strategy:i,placement:o==="auto"||o==="auto-start"||o==="auto-end"?void 0:ue(o,u),middleware:Ne({placement:o,flipDisabled:r,flipPlacements:s?.map(y=>ue(y,u)),offsetDistance:c,offsetSkidding:l,arrowEl:a,type:d})});if(a&&x.arrow){let{x:y,y:b}=x.arrow,v=g.split("-")[0],R=y!=null?"left":"top",O=ze[v],H={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=v==="left"||v==="right"?"horizontal":"vertical"),Object.assign(a.style,{...H,[R]:`${R=="left"?y:b}px`,[v]:"100%",transform:O})}let h=x.hide?.referenceHidden?"hidden":null,w=h?"none":null;n.setAttribute(We,g),Object.assign(n.style,{pointerEvents:w,position:p,transform:`translate(${ae(m)}px,${ae(f)}px)`,visibility:h})},We="data-placement",fe=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],ln="bottom-start",an="bottom-end",fn={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};function Ne({placement:t,flipDisabled:e,flipPlacements:n,offsetDistance:i,offsetSkidding:o,arrowEl:r,type:s}){let c=[oe(),se()];if(s==="menu")return[...c,St({fallbackPlacements:n||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let l=[...c,ne({mainAxis:typeof i=="number"?i:0,crossAxis:typeof o=="number"?o:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?l.push(ie({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||l.push(St(n?{fallbackPlacements:n}:{})),r&&l.push(re({element:r})),l}return[]}function un(t,e){let n=t.filter(i=>fe.includes(i));return n.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${fe.map(i=>`"${i}"`).join(", ").trim()}`,{el:e}),n}function ue(t,e=!1){let n=["left","right"];return e&&n.reverse(),t.replace(/leading/gi,n[0]).replace(/trailing/gi,n[1])}async function dn(t,e,n=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!rt.get(t))return ge(t);await(n?He(t):me)(t,e)}}function He(t){let e=ht.get(t);return e||(e=Dt(me,pt.reposition,{leading:!0,maxWait:pt.reposition}),ht.set(t,e),e)}var ze={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},rt=new WeakMap,ht=new WeakMap;async function ge(t){let{referenceEl:e,floatingEl:n}=t;if(!n.isConnected)return;let i=xt()?ee:(s,c,l)=>(l(),()=>{});rt.set(t,{state:"pending"});let o,r=i(e,n,()=>{let s=t.reposition();o||(o=s)});return rt.set(t,{state:"active",cleanUp:r}),o}function Ve(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function mn(t){let{floatingEl:e,referenceEl:n}=t;if(Ve(t),!(!e||!n)&&(Ie(t),!!t.open))return ge(t)}function Ie(t){let{floatingEl:e,referenceEl:n}=t;if(!e||!n)return;let i=rt.get(t);i?.state==="active"&&i.cleanUp(),rt.delete(t),ht.get(t)?.cancel(),ht.delete(t)}var de=4,gn=Math.ceil(Math.hypot(de,de));export{ln as a,an as b,fn as c,un as d,dn as e,Ve as f,mn as g,Ie as h,gn as i};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{b as s}from"./3GG4JCZ2.js";import"./WFGJA7PS.js";function m(r){return r>1&&r<5&&~~(r/10)!==1}function n(r,e,t,a){var _=r+" ";switch(t){case"s":return e||a?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":a?"min\xFAtu":"min\xFAtou";case"mm":return e||a?_+(m(r)?"min\xFAty":"min\xFAt"):_+"min\xFAtami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?_+(m(r)?"hodiny":"hod\xEDn"):_+"hodinami";case"d":return e||a?"de\u0148":"d\u0148om";case"dd":return e||a?_+(m(r)?"dni":"dn\xED"):_+"d\u0148ami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?_+(m(r)?"mesiace":"mesiacov"):_+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?_+(m(r)?"roky":"rokov"):_+"rokmi"}}var o={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};s.locale(o,null,!0);var c=o;export{c as default};
3
+ v3.0.0-next.121 */
4
+ import{b as s}from"./JT3S7W2N.js";import"./WCTD7KNV.js";function m(r){return r>1&&r<5&&~~(r/10)!==1}function n(r,e,t,a){var _=r+" ";switch(t){case"s":return e||a?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":a?"min\xFAtu":"min\xFAtou";case"mm":return e||a?_+(m(r)?"min\xFAty":"min\xFAt"):_+"min\xFAtami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?_+(m(r)?"hodiny":"hod\xEDn"):_+"hodinami";case"d":return e||a?"de\u0148":"d\u0148om";case"dd":return e||a?_+(m(r)?"dni":"dn\xED"):_+"d\u0148ami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?_+(m(r)?"mesiace":"mesiacov"):_+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?_+(m(r)?"roky":"rokov"):_+"rokmi"}}var o={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};s.locale(o,null,!0);var c=o;export{c as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{b as e}from"./3GG4JCZ2.js";import"./WFGJA7PS.js";var _={name:"it-ch",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),ordinal:function(o){return o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"}};e.locale(_,null,!0);var i=_;export{i as default};
3
+ v3.0.0-next.121 */
4
+ import{b as e}from"./JT3S7W2N.js";import"./WCTD7KNV.js";var _={name:"it-ch",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),ordinal:function(o){return o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"}};e.locale(_,null,!0);var i=_;export{i as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.120 */
4
- import{a as y}from"./H6CJ6BOX.js";import{l as m,n as c,v as d,z as i}from"./YSM2HE3M.js";import{b as p}from"./55KQJ7XK.js";import"./CVEZKFZC.js";import{I as h,b as o,d as l,e as u,v as r}from"./2VID6H7P.js";var f=l`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`,n=class extends r{constructor(){super(),this.attributeWatch=o(["role"],this.handleGlobalAttributesChanged),this.menuItems=[],this.layout="horizontal",this.messages=y(),this.listen("calciteInternalMenuItemKeyEvent",this.calciteInternalNavMenuItemKeyEvent)}static{this.properties={label:1,layout:3,messageOverrides:0}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=f}async setFocus(){await p(this),c(this.menuItems[0])}async load(){}willUpdate(t){t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setMenuItemLayout(this.menuItems,this.layout)}loaded(){}handleGlobalAttributesChanged(){this.requestUpdate(),this.setMenuItemLayout(this.menuItems,this.layout)}calciteInternalNavMenuItemKeyEvent(t){let e=t.target,s=t.detail.children,a=t.detail.event.key;t.stopPropagation(),a==="ArrowDown"?e.layout==="vertical"?i(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():a==="ArrowUp"?this.layout==="vertical"?i(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&s[s.length-1].setFocus():a==="ArrowRight"?this.layout==="horizontal"?i(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():a==="ArrowLeft"?this.layout==="horizontal"?i(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):a==="Escape"&&this.focusParentElement(t.target),t.preventDefault()}handleMenuSlotChange(t){this.menuItems=d(t),this.setMenuItemLayout(this.menuItems,this.layout)}focusParentElement(t){let e=t.parentElement;e&&(m(e),e.open=!1)}setMenuItemLayout(t,e){t.forEach(s=>{s.layout=e,this.getEffectiveRole()==="menubar"&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)})}getEffectiveRole(){return this.el.role||"menubar"}render(){return u`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`}};h("calcite-menu",n);export{n as Menu};
3
+ v3.0.0-next.121 */
4
+ import{a as y}from"./LSS6Y4EX.js";import{l as m,n as c,v as d,z as i}from"./O4TJEOVS.js";import{b as p}from"./KEYPDZQZ.js";import"./MH575SZ5.js";import{I as h,b as o,d as l,e as u,v as r}from"./FVDGAXA6.js";var f=l`:host{display:flex}ul{margin:0;display:inline-flex;block-size:100%;align-items:center;padding:0}:host([layout=vertical]) ul{display:flex;inline-size:100%;flex-direction:column}:host([hidden]){display:none}[hidden]{display:none}`,n=class extends r{constructor(){super(),this.attributeWatch=o(["role"],this.handleGlobalAttributesChanged),this.menuItems=[],this.layout="horizontal",this.messages=y(),this.listen("calciteInternalMenuItemKeyEvent",this.calciteInternalNavMenuItemKeyEvent)}static{this.properties={label:1,layout:3,messageOverrides:0}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=f}async setFocus(){await p(this),c(this.menuItems[0])}async load(){}willUpdate(t){t.has("layout")&&(this.hasUpdated||this.layout!=="horizontal")&&this.setMenuItemLayout(this.menuItems,this.layout)}loaded(){}handleGlobalAttributesChanged(){this.requestUpdate(),this.setMenuItemLayout(this.menuItems,this.layout)}calciteInternalNavMenuItemKeyEvent(t){let e=t.target,s=t.detail.children,a=t.detail.event.key;t.stopPropagation(),a==="ArrowDown"?e.layout==="vertical"?i(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():a==="ArrowUp"?this.layout==="vertical"?i(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&s[s.length-1].setFocus():a==="ArrowRight"?this.layout==="horizontal"?i(this.menuItems,e,"next",!1):t.detail.isSubmenuOpen&&s[0].setFocus():a==="ArrowLeft"?this.layout==="horizontal"?i(this.menuItems,e,"previous",!1):t.detail.isSubmenuOpen&&this.focusParentElement(t.target):a==="Escape"&&this.focusParentElement(t.target),t.preventDefault()}handleMenuSlotChange(t){this.menuItems=d(t),this.setMenuItemLayout(this.menuItems,this.layout)}focusParentElement(t){let e=t.parentElement;e&&(m(e),e.open=!1)}setMenuItemLayout(t,e){t.forEach(s=>{s.layout=e,this.getEffectiveRole()==="menubar"&&(s.isTopLevelItem=!0,s.topLevelMenuLayout=this.layout)})}getEffectiveRole(){return this.el.role||"menubar"}render(){return u`<ul .ariaLabel=${this.label} .role=${this.getEffectiveRole()}><slot @slotchange=${this.handleMenuSlotChange}></slot></ul>`}};h("calcite-menu",n);export{n as Menu};