@esri/calcite-components 3.0.0-next.45 → 3.0.0-next.46

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 (374) hide show
  1. package/dist/calcite/{GQGLNKOU.js → 25SOJDUO.js} +2 -2
  2. package/dist/calcite/{JTLRRWV3.js → 2KMUO3UX.js} +2 -2
  3. package/dist/calcite/{72VNVUGB.js → 2RILCYJE.js} +2 -2
  4. package/dist/calcite/{Q2FHYCWF.js → 2VWCLGYB.js} +2 -2
  5. package/dist/calcite/{PZ3NSTQF.js → 2YXVJQJX.js} +2 -2
  6. package/dist/calcite/{7S65W57C.js → 32VDIZMK.js} +2 -2
  7. package/dist/calcite/{DEO7XEHB.js → 33YQEY55.js} +2 -2
  8. package/dist/calcite/{Q65TL32A.js → 3CBHEUJJ.js} +2 -2
  9. package/dist/calcite/{RLS6F42O.js → 3JP4CQTC.js} +2 -2
  10. package/dist/calcite/{RY7PXBUI.js → 3KM3ITGU.js} +2 -2
  11. package/dist/calcite/{VBW2Y3S5.js → 3OBI4BXS.js} +1 -1
  12. package/dist/calcite/{GFBPD5ZF.js → 3R26TVGP.js} +2 -2
  13. package/dist/calcite/{62BOPZ2J.js → 3UWV2ZUR.js} +2 -2
  14. package/dist/calcite/{QFZIB6YG.js → 3VBTZKLK.js} +2 -2
  15. package/dist/calcite/{IPJM6QSP.js → 3XNLC5B7.js} +2 -2
  16. package/dist/calcite/{AEI2UTBA.js → 42BDS6VM.js} +2 -2
  17. package/dist/calcite/{2P6N4LHN.js → 42YRM6GJ.js} +2 -2
  18. package/dist/calcite/{HO5PQAN2.js → 433N26JX.js} +2 -2
  19. package/dist/calcite/{S3A3YBJL.js → 45L3VCOR.js} +2 -2
  20. package/dist/calcite/{PCQF2KZJ.js → 47223VL3.js} +2 -2
  21. package/dist/calcite/{TAFEMQYC.js → 4AEDREON.js} +2 -2
  22. package/dist/calcite/{BTIKIYQ5.js → 4E7OZBTV.js} +2 -2
  23. package/dist/calcite/{UIH6UEV3.js → 4NBZER37.js} +2 -2
  24. package/dist/calcite/{JZAEAH3M.js → 5462JJDZ.js} +2 -2
  25. package/dist/calcite/{F3UL62AZ.js → 54M7D6PX.js} +2 -2
  26. package/dist/calcite/{YPYLYA6F.js → 5BZVFMCI.js} +2 -2
  27. package/dist/calcite/{HJU3ZZKA.js → 5JWIWT2S.js} +2 -2
  28. package/dist/calcite/{QYJ42DL7.js → 677QCEG4.js} +2 -2
  29. package/dist/calcite/{6F4QGB3D.js → 67A6HQG3.js} +2 -2
  30. package/dist/calcite/{A7NBA32O.js → 6HSRN2T7.js} +2 -2
  31. package/dist/calcite/{ZHBSGL57.js → 6IF2S4G7.js} +1 -1
  32. package/dist/calcite/{IHGRN6AN.js → 6NOJCP5V.js} +2 -2
  33. package/dist/calcite/{QS7XKDZO.js → 6OEYNEOD.js} +2 -2
  34. package/dist/calcite/{4ND3OTF5.js → 6Q5W3ISY.js} +2 -2
  35. package/dist/calcite/{GR6VBBW6.js → 74R4VPLV.js} +2 -2
  36. package/dist/calcite/{X42P3P3F.js → 76IWHVLJ.js} +2 -2
  37. package/dist/calcite/{6SEMPNN7.js → 7BPDENIS.js} +2 -2
  38. package/dist/calcite/{47XEERV6.js → 7GEWOZFN.js} +2 -2
  39. package/dist/calcite/{ARKDPW7V.js → 7HVG3KVA.js} +2 -2
  40. package/dist/calcite/{FYAJ2T65.js → 7NFNCKUG.js} +2 -2
  41. package/dist/calcite/{2GXKQ6BS.js → 7RC3YOCV.js} +2 -2
  42. package/dist/calcite/{ROGYYCL2.js → 7YJGSRNY.js} +2 -2
  43. package/dist/calcite/{WLY2FQEN.js → 7ZCJXZZ5.js} +2 -2
  44. package/dist/calcite/{67GVGWHH.js → A34LNANK.js} +2 -2
  45. package/dist/calcite/{WALTSYUR.js → A3CEN65R.js} +2 -2
  46. package/dist/calcite/{5X7LYKVV.js → A3N2RSLS.js} +2 -2
  47. package/dist/calcite/{IZ7GA23L.js → A5TDYH27.js} +2 -2
  48. package/dist/calcite/{AEBIPJKE.js → A76CCPGX.js} +2 -2
  49. package/dist/calcite/{SLEYJPUQ.js → AKLBXYFM.js} +2 -2
  50. package/dist/calcite/{WFPW34CC.js → ALFAPQNW.js} +2 -2
  51. package/dist/calcite/{65U2IF3H.js → ANGZQVUQ.js} +2 -2
  52. package/dist/calcite/{RDXTZNY3.js → APHW6Y7L.js} +2 -2
  53. package/dist/calcite/{RNAHD3DP.js → ATRQFN3H.js} +2 -2
  54. package/dist/calcite/{IHIS6WUY.js → AV2SDKWJ.js} +2 -2
  55. package/dist/calcite/{MJBXGQT2.js → AWI7PGVS.js} +2 -2
  56. package/dist/calcite/{BRKTKIXX.js → AXBNFMOI.js} +2 -2
  57. package/dist/calcite/{E5YGKU2R.js → AYFUTFJF.js} +2 -2
  58. package/dist/calcite/{RBZADZJC.js → B4YTOHOE.js} +2 -2
  59. package/dist/calcite/{7OERQ37C.js → BKS2Z432.js} +2 -2
  60. package/dist/calcite/{4V6KVYYQ.js → BNBJ35PU.js} +2 -2
  61. package/dist/calcite/{LD6S63U7.js → BOEFYNYU.js} +2 -2
  62. package/dist/calcite/{4BEMMDA3.js → BOISFNNO.js} +2 -2
  63. package/dist/calcite/{KMKLZJHI.js → BQWH5ZEE.js} +2 -2
  64. package/dist/calcite/{LO6FVA25.js → BS4OHWDC.js} +2 -2
  65. package/dist/calcite/{WB6QO3AW.js → BTMUC4YE.js} +2 -2
  66. package/dist/calcite/{KDX67XET.js → C2YMZ6IQ.js} +2 -2
  67. package/dist/calcite/{KGZPXTRK.js → C5X2YLQA.js} +1 -1
  68. package/dist/calcite/{YH2Z6FYN.js → CC733HYH.js} +2 -2
  69. package/dist/calcite/{OZSJDITW.js → CFPCW6QA.js} +1 -1
  70. package/dist/calcite/{WDCTUMUZ.js → CJJ5UZFQ.js} +2 -2
  71. package/dist/calcite/{63OLI6P7.js → CLIL5L4C.js} +4 -4
  72. package/dist/calcite/{GPQ3NUCN.js → D4JIY476.js} +2 -2
  73. package/dist/calcite/{JBDEW3UD.js → DCB2I4YH.js} +2 -2
  74. package/dist/calcite/{COGXLRN7.js → DET465QL.js} +2 -2
  75. package/dist/calcite/{YGRG4HOB.js → DJH35GFI.js} +2 -2
  76. package/dist/calcite/{DG64GTRQ.js → DTOOPD44.js} +2 -2
  77. package/dist/calcite/{QDNS2X5N.js → EEI7OXOM.js} +2 -2
  78. package/dist/calcite/{LAZSD345.js → ELKJJJTO.js} +2 -2
  79. package/dist/calcite/{22S23ZFY.js → EYMPZ5LS.js} +2 -2
  80. package/dist/calcite/{IJTKZGU6.js → F4KH5HSL.js} +2 -2
  81. package/dist/calcite/{S7MQITEF.js → F5RPEUM5.js} +2 -2
  82. package/dist/calcite/{S3D4YN4Q.js → F7DRKMMJ.js} +2 -2
  83. package/dist/calcite/{SHEV3LXM.js → FAZW62IX.js} +2 -2
  84. package/dist/calcite/{M65RNS6U.js → FIS4QEGU.js} +2 -2
  85. package/dist/calcite/{PRMMADN4.js → FKJCGYAD.js} +2 -2
  86. package/dist/calcite/{4ODRMKDT.js → G5CZUV74.js} +2 -2
  87. package/dist/calcite/{HVWTHHAO.js → GAFOV2UK.js} +2 -2
  88. package/dist/calcite/{QOYXTPGC.js → GMC6LLGK.js} +1 -1
  89. package/dist/calcite/{PQK5MRAE.js → GN2VKC3Q.js} +2 -2
  90. package/dist/calcite/{KFDTGKHK.js → GNBCUIF2.js} +2 -2
  91. package/dist/calcite/{CTMYKB2Y.js → GQUC3EEU.js} +2 -2
  92. package/dist/calcite/{JLTQMGGJ.js → GSJUR3JC.js} +2 -2
  93. package/dist/calcite/{IYZFCPK6.js → GY3CUANE.js} +2 -2
  94. package/dist/calcite/{VTKFLXPA.js → H63ZNHR3.js} +1 -1
  95. package/dist/calcite/{DENV4Y6V.js → HI4ITECR.js} +2 -2
  96. package/dist/calcite/{RQT2WKBQ.js → HIKA53ZH.js} +2 -2
  97. package/dist/calcite/{2LYOQGGC.js → HIPOY2NM.js} +1 -1
  98. package/dist/calcite/{TTQYSRHO.js → HJCKT4SN.js} +2 -2
  99. package/dist/calcite/{MWLTWT53.js → HKTZ2BVP.js} +2 -2
  100. package/dist/calcite/{VKOXGBSD.js → HMAKKPWP.js} +2 -2
  101. package/dist/calcite/{2K7UKFOS.js → HZBXQ6MM.js} +2 -2
  102. package/dist/calcite/{FHN7BC7H.js → I5P2ZPWX.js} +2 -2
  103. package/dist/calcite/{HCXU3TF2.js → I6ZXBUJF.js} +2 -2
  104. package/dist/calcite/{LP4QLK6B.js → I7WIIJUV.js} +2 -2
  105. package/dist/calcite/{KWXGEK6F.js → ICCKQUAU.js} +2 -2
  106. package/dist/calcite/{VKSFPEOH.js → IFZDPX72.js} +2 -2
  107. package/dist/calcite/{DUJCTLH2.js → IP6OXNI5.js} +2 -2
  108. package/dist/calcite/{5FKQEPRH.js → ISWF72E2.js} +2 -2
  109. package/dist/calcite/{VYJNX6K4.js → IUF53RR6.js} +2 -2
  110. package/dist/calcite/{HDIL5WYL.js → IYTYQOB7.js} +2 -2
  111. package/dist/calcite/{AG27VPPO.js → J3JUJ6HA.js} +2 -2
  112. package/dist/calcite/{KBXRPNNA.js → J5EDYYSO.js} +2 -2
  113. package/dist/calcite/{72C7EHMK.js → JIFRU64I.js} +2 -2
  114. package/dist/calcite/{MB3NN5XQ.js → JIKUTXKD.js} +2 -2
  115. package/dist/calcite/{ZD6WPL5I.js → JT2X7OST.js} +2 -2
  116. package/dist/calcite/{MTX4VGX6.js → JUKAN4YE.js} +2 -2
  117. package/dist/calcite/{MOMKW76P.js → JVMGZYRC.js} +1 -1
  118. package/dist/calcite/{5JZ2BDXU.js → JZ3PROFT.js} +2 -2
  119. package/dist/calcite/{FQTGEFZ3.js → JZA6IXVT.js} +1 -1
  120. package/dist/calcite/{MVP7QMHN.js → K5PYGJVP.js} +2 -2
  121. package/dist/calcite/{XOGRVY3L.js → KJ4VAM5J.js} +2 -2
  122. package/dist/calcite/{KH4LHZ7V.js → KJGXT4WV.js} +2 -2
  123. package/dist/calcite/{K4XT72PP.js → KJOPC67K.js} +1 -1
  124. package/dist/calcite/{WNOB7EE4.js → KOA4TSS5.js} +2 -2
  125. package/dist/calcite/{WYOS6WSO.js → KR3OQJ6T.js} +2 -2
  126. package/dist/calcite/{VA57WOPH.js → KWFRLOLA.js} +2 -2
  127. package/dist/calcite/{MN67DILR.js → KX43LOA5.js} +2 -2
  128. package/dist/calcite/{JDXGBHIK.js → L7JXF7BW.js} +2 -2
  129. package/dist/calcite/{2I2VGLFO.js → LJ7EFNBU.js} +2 -2
  130. package/dist/calcite/{JKEC2V7G.js → LW2VZVB2.js} +2 -2
  131. package/dist/calcite/{IWKHCYMK.js → M3WNNKNB.js} +2 -2
  132. package/dist/calcite/{EWMOPSR5.js → M47RF54W.js} +2 -2
  133. package/dist/calcite/{OM2WY2DR.js → M6TIDUDM.js} +2 -2
  134. package/dist/calcite/{G2GK3CKU.js → MHHP6SC7.js} +2 -2
  135. package/dist/calcite/{DMVCYOXU.js → MTEZIRLM.js} +2 -2
  136. package/dist/calcite/{L5WP26LP.js → N2ZQ3XSY.js} +2 -2
  137. package/dist/calcite/{W6WKPGYG.js → NAQDR3XP.js} +1 -1
  138. package/dist/calcite/{QBDS7DU4.js → NERIHWDP.js} +1 -1
  139. package/dist/calcite/{323C4W3J.js → NJ44ALPX.js} +2 -2
  140. package/dist/calcite/{MUHROZKR.js → NJHKIP2E.js} +2 -2
  141. package/dist/calcite/{DQAFFUGJ.js → NLZ4Q6VI.js} +2 -2
  142. package/dist/calcite/{XYS4IHEP.js → NNEGPXWQ.js} +1 -1
  143. package/dist/calcite/{UXC7RZT7.js → NNKPE4XK.js} +1 -1
  144. package/dist/calcite/{KBLZ7PKI.js → NTZEC47R.js} +2 -2
  145. package/dist/calcite/{IPKYNNVE.js → NUOEBVE7.js} +2 -2
  146. package/dist/calcite/{5YCWWTRG.js → NZR4QWUW.js} +2 -2
  147. package/dist/calcite/{RMO2KD26.js → OGQ5H523.js} +2 -2
  148. package/dist/calcite/{QDEQB5IQ.js → OK4RCEZK.js} +2 -2
  149. package/dist/calcite/{OKHSSZQU.js → OKBG24G6.js} +2 -2
  150. package/dist/calcite/{V446D7U5.js → OM5IG3L2.js} +2 -2
  151. package/dist/calcite/{4YMTZNQX.js → ORPE7LI4.js} +2 -2
  152. package/dist/calcite/{CSVAO6BB.js → P5BQ5K2U.js} +1 -1
  153. package/dist/calcite/{3CMDCQ7B.js → P7GCZZYN.js} +2 -2
  154. package/dist/calcite/{DE7D5KWY.js → PKMYWJVZ.js} +2 -2
  155. package/dist/calcite/{5LUHZGJR.js → PMD2BWUM.js} +2 -2
  156. package/dist/calcite/{NFOLASBI.js → PN5WCHTF.js} +2 -2
  157. package/dist/calcite/{XBZMMJPV.js → PNOHGL4M.js} +2 -2
  158. package/dist/calcite/{4GQAKTW4.js → PQGPPVQX.js} +2 -2
  159. package/dist/calcite/{OIQYSUTB.js → PSE72LT6.js} +2 -2
  160. package/dist/calcite/{J7NQCBB4.js → Q4UUCIRQ.js} +2 -2
  161. package/dist/calcite/{HWUQLJTJ.js → Q7SWUEBY.js} +2 -2
  162. package/dist/calcite/{3D2TFITM.js → QIPTR4KA.js} +2 -2
  163. package/dist/calcite/{CFNFWFTC.js → QN3MCGXI.js} +2 -2
  164. package/dist/calcite/{WL67HRTR.js → QOUCI7KM.js} +2 -2
  165. package/dist/calcite/{YU6THXY4.js → QZEAY5BB.js} +1 -1
  166. package/dist/calcite/{5J4AMQ4N.js → R2YDJUGS.js} +2 -2
  167. package/dist/calcite/{FZ2SHF3G.js → R3QLDXR4.js} +2 -2
  168. package/dist/calcite/{ZTSQGMA7.js → RISEIDUZ.js} +2 -2
  169. package/dist/calcite/{M3VXLYZM.js → RXD6YFXL.js} +2 -2
  170. package/dist/calcite/{LEARGAU7.js → RYTPVEHM.js} +2 -2
  171. package/dist/calcite/{I7N4DFJ7.js → SBTXAWWA.js} +2 -2
  172. package/dist/calcite/{SWJ6YGR6.js → SC5JWF5B.js} +2 -2
  173. package/dist/calcite/{TCITP4LY.js → SEUDUZ4E.js} +2 -2
  174. package/dist/calcite/{OODE34VN.js → SGC4NB3T.js} +2 -2
  175. package/dist/calcite/{7TUQJADW.js → SJUUXZFT.js} +1 -1
  176. package/dist/calcite/{W4S4S3OY.js → SYYWV2PU.js} +2 -2
  177. package/dist/calcite/{K7CZ6WSJ.js → T3GWALVA.js} +2 -2
  178. package/dist/calcite/{AELBUAXD.js → T42XZX7X.js} +1 -1
  179. package/dist/calcite/{UNGTWFSD.js → TAIHDAM4.js} +2 -2
  180. package/dist/calcite/{QPMZFDXU.js → TEYTYNHI.js} +2 -2
  181. package/dist/calcite/{T7MG5GNV.js → TF7C3VZI.js} +2 -2
  182. package/dist/calcite/{EGBYJOO2.js → TMI3CHWJ.js} +2 -2
  183. package/dist/calcite/{RVA7DMM6.js → TPP34QXO.js} +2 -2
  184. package/dist/calcite/{FV7CJDUU.js → TXU5WXCX.js} +2 -2
  185. package/dist/calcite/{YIBT6QVH.js → TYWLZOXH.js} +2 -2
  186. package/dist/calcite/{MJKHL3MP.js → UHWYMSAR.js} +2 -2
  187. package/dist/calcite/{EHSBN7H2.js → UJR56VJD.js} +2 -2
  188. package/dist/calcite/{MJSHVU4N.js → UQYCZ6XU.js} +2 -2
  189. package/dist/calcite/{ZV4TS2QN.js → USGVBRAE.js} +2 -2
  190. package/dist/calcite/{4QO2T7QQ.js → V7QYQSXR.js} +2 -2
  191. package/dist/calcite/{2CRODWXJ.js → VG3CR3F4.js} +2 -2
  192. package/dist/calcite/{SCIJE6JA.js → VV2HFCBV.js} +2 -2
  193. package/dist/calcite/{JONZN467.js → W2FB2QYD.js} +2 -2
  194. package/dist/calcite/{W7WFHEMF.js → W6HXCQYV.js} +2 -2
  195. package/dist/calcite/{6T7LIAMN.js → WAUC7HAQ.js} +2 -2
  196. package/dist/calcite/{FGJL34F3.js → WFKZW4AN.js} +2 -2
  197. package/dist/calcite/{WA7XDTOA.js → WFXD7G6S.js} +2 -2
  198. package/dist/calcite/{RTL2RZ5Q.js → WM5AI62W.js} +2 -2
  199. package/dist/calcite/{PFWGM6KN.js → WVZ26IAX.js} +2 -2
  200. package/dist/calcite/{2CZYV4GN.js → X4AIQPCA.js} +2 -2
  201. package/dist/calcite/{HWX5YL6L.js → X4ALE5L6.js} +1 -1
  202. package/dist/calcite/{SWBMROPQ.js → X6LM2UC5.js} +1 -1
  203. package/dist/calcite/{27VPPPB5.js → XEMRZKDR.js} +2 -2
  204. package/dist/calcite/{ZT4OPAVM.js → XFLY3EUO.js} +2 -2
  205. package/dist/calcite/{WINDWH3S.js → XFMUC2O6.js} +1 -1
  206. package/dist/calcite/{4T5X4I4K.js → XMIXVMAI.js} +2 -2
  207. package/dist/calcite/{Z34RYW6K.js → Y2Y2OEEI.js} +2 -2
  208. package/dist/calcite/{UGFAB5PA.js → YDR6HVLE.js} +2 -2
  209. package/dist/calcite/{YEICQOHR.js → YLOS3GIP.js} +2 -2
  210. package/dist/calcite/{WO5ELB4F.js → YLSI4VGS.js} +2 -2
  211. package/dist/calcite/{44IMD6MR.js → YRSKNI6U.js} +2 -2
  212. package/dist/calcite/{FXVCRUSP.js → Z3YJ4LLK.js} +2 -2
  213. package/dist/calcite/{UBL36YBS.js → ZEGBIGJR.js} +2 -2
  214. package/dist/calcite/{TJJPXQDT.js → ZTYRI6Q4.js} +2 -2
  215. package/dist/calcite/{4MFCUOL7.js → ZVWRHS4B.js} +2 -2
  216. package/dist/calcite/{MBNUPNKQ.js → ZXWSWS4U.js} +2 -2
  217. package/dist/calcite/{YEQ4OMST.js → ZZUK2PZT.js} +2 -2
  218. package/dist/calcite/calcite.esm.js +2 -2
  219. package/dist/chunks/ExpandToggle.js +1 -1
  220. package/dist/chunks/FloatingArrow.js +1 -1
  221. package/dist/chunks/Heading.js +1 -1
  222. package/dist/chunks/Validation.js +1 -1
  223. package/dist/chunks/_commonjsHelpers.js +1 -1
  224. package/dist/chunks/array.js +1 -1
  225. package/dist/chunks/component.js +1 -1
  226. package/dist/chunks/core.js +1 -1
  227. package/dist/chunks/date.js +1 -1
  228. package/dist/chunks/dom.js +1 -1
  229. package/dist/chunks/dynamicClasses.js +1 -1
  230. package/dist/chunks/filter.js +1 -1
  231. package/dist/chunks/floating-ui.js +1 -1
  232. package/dist/chunks/focusTrapComponent.js +1 -1
  233. package/dist/chunks/form.js +1 -1
  234. package/dist/chunks/global.js +1 -1
  235. package/dist/chunks/guid.js +1 -1
  236. package/dist/chunks/input.js +1 -1
  237. package/dist/chunks/interactive.js +1 -1
  238. package/dist/chunks/key.js +1 -1
  239. package/dist/chunks/label.js +1 -1
  240. package/dist/chunks/loadable.js +1 -1
  241. package/dist/chunks/locale.js +1 -1
  242. package/dist/chunks/logger.js +1 -1
  243. package/dist/chunks/math.js +1 -1
  244. package/dist/chunks/observers.js +1 -1
  245. package/dist/chunks/openCloseComponent.js +1 -1
  246. package/dist/chunks/resources.js +1 -1
  247. package/dist/chunks/resources2.js +1 -1
  248. package/dist/chunks/resources3.js +1 -1
  249. package/dist/chunks/resources4.js +1 -1
  250. package/dist/chunks/resources5.js +1 -1
  251. package/dist/chunks/resources6.js +1 -1
  252. package/dist/chunks/resources7.js +1 -1
  253. package/dist/chunks/responsive.js +1 -1
  254. package/dist/chunks/runtime.js +9 -9
  255. package/dist/chunks/sortableComponent.js +1 -1
  256. package/dist/chunks/time.js +1 -1
  257. package/dist/chunks/useT9n.js +1 -1
  258. package/dist/chunks/utils.js +1 -1
  259. package/dist/chunks/utils2.js +1 -1
  260. package/dist/chunks/utils3.js +1 -1
  261. package/dist/chunks/utils4.js +1 -1
  262. package/dist/components/calcite-accordion/customElement.js +1 -1
  263. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  264. package/dist/components/calcite-action/customElement.js +1 -1
  265. package/dist/components/calcite-action-bar/customElement.js +1 -1
  266. package/dist/components/calcite-action-group/customElement.js +1 -1
  267. package/dist/components/calcite-action-menu/customElement.js +1 -1
  268. package/dist/components/calcite-action-pad/customElement.js +1 -1
  269. package/dist/components/calcite-alert/customElement.js +1 -1
  270. package/dist/components/calcite-avatar/customElement.js +1 -1
  271. package/dist/components/calcite-block/customElement.js +1 -1
  272. package/dist/components/calcite-block-section/customElement.js +1 -1
  273. package/dist/components/calcite-button/customElement.js +1 -1
  274. package/dist/components/calcite-card/customElement.js +1 -1
  275. package/dist/components/calcite-card-group/customElement.js +1 -1
  276. package/dist/components/calcite-carousel/customElement.js +1 -1
  277. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  278. package/dist/components/calcite-checkbox/customElement.js +1 -1
  279. package/dist/components/calcite-chip/customElement.js +1 -1
  280. package/dist/components/calcite-chip-group/customElement.js +1 -1
  281. package/dist/components/calcite-color-picker/customElement.js +1 -1
  282. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  283. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  284. package/dist/components/calcite-combobox/customElement.js +1 -1
  285. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  286. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  287. package/dist/components/calcite-date-picker/customElement.js +1 -1
  288. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  289. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  290. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  291. package/dist/components/calcite-dialog/customElement.js +1 -1
  292. package/dist/components/calcite-dropdown/customElement.js +1 -1
  293. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  294. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  295. package/dist/components/calcite-fab/customElement.js +1 -1
  296. package/dist/components/calcite-filter/customElement.js +1 -1
  297. package/dist/components/calcite-flow/customElement.js +1 -1
  298. package/dist/components/calcite-flow-item/customElement.js +1 -1
  299. package/dist/components/calcite-graph/customElement.js +1 -1
  300. package/dist/components/calcite-handle/customElement.js +1 -1
  301. package/dist/components/calcite-icon/customElement.js +1 -1
  302. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  303. package/dist/components/calcite-input/customElement.js +1 -1
  304. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  305. package/dist/components/calcite-input-message/customElement.js +1 -1
  306. package/dist/components/calcite-input-number/customElement.js +1 -1
  307. package/dist/components/calcite-input-text/customElement.js +1 -1
  308. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  309. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  310. package/dist/components/calcite-label/customElement.js +1 -1
  311. package/dist/components/calcite-link/customElement.js +1 -1
  312. package/dist/components/calcite-list/customElement.js +1 -1
  313. package/dist/components/calcite-list-item/customElement.js +1 -1
  314. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  315. package/dist/components/calcite-loader/customElement.js +1 -1
  316. package/dist/components/calcite-menu/customElement.js +1 -1
  317. package/dist/components/calcite-menu-item/customElement.js +1 -1
  318. package/dist/components/calcite-meter/customElement.js +1 -1
  319. package/dist/components/calcite-modal/customElement.js +1 -1
  320. package/dist/components/calcite-navigation/customElement.js +1 -1
  321. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  322. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  323. package/dist/components/calcite-notice/customElement.js +1 -1
  324. package/dist/components/calcite-option/customElement.js +1 -1
  325. package/dist/components/calcite-option-group/customElement.js +1 -1
  326. package/dist/components/calcite-pagination/customElement.js +1 -1
  327. package/dist/components/calcite-panel/customElement.js +1 -1
  328. package/dist/components/calcite-popover/customElement.js +1 -1
  329. package/dist/components/calcite-progress/customElement.js +1 -1
  330. package/dist/components/calcite-radio-button/customElement.js +1 -1
  331. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  332. package/dist/components/calcite-rating/customElement.js +1 -1
  333. package/dist/components/calcite-scrim/customElement.js +1 -1
  334. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  335. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  336. package/dist/components/calcite-select/customElement.js +1 -1
  337. package/dist/components/calcite-sheet/customElement.js +1 -1
  338. package/dist/components/calcite-shell/customElement.js +1 -1
  339. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  340. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  341. package/dist/components/calcite-slider/customElement.js +1 -1
  342. package/dist/components/calcite-sort-handle/customElement.js +9 -9
  343. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  344. package/dist/components/calcite-split-button/customElement.js +1 -1
  345. package/dist/components/calcite-stack/customElement.js +1 -1
  346. package/dist/components/calcite-stepper/customElement.js +1 -1
  347. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  348. package/dist/components/calcite-switch/customElement.js +1 -1
  349. package/dist/components/calcite-tab/customElement.js +1 -1
  350. package/dist/components/calcite-tab-nav/customElement.js +1 -1
  351. package/dist/components/calcite-tab-title/customElement.js +1 -1
  352. package/dist/components/calcite-table/customElement.js +1 -1
  353. package/dist/components/calcite-table-cell/customElement.js +1 -1
  354. package/dist/components/calcite-table-header/customElement.js +1 -1
  355. package/dist/components/calcite-table-row/customElement.js +1 -1
  356. package/dist/components/calcite-tabs/customElement.js +1 -1
  357. package/dist/components/calcite-text-area/customElement.js +1 -1
  358. package/dist/components/calcite-tile/customElement.js +1 -1
  359. package/dist/components/calcite-tile-group/customElement.js +1 -1
  360. package/dist/components/calcite-tile-select/customElement.js +1 -1
  361. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  362. package/dist/components/calcite-time-picker/customElement.js +1 -1
  363. package/dist/components/calcite-tip/customElement.js +1 -1
  364. package/dist/components/calcite-tip-group/customElement.js +1 -1
  365. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  366. package/dist/components/calcite-tooltip/customElement.js +1 -1
  367. package/dist/components/calcite-tree/customElement.js +1 -1
  368. package/dist/components/calcite-tree-item/customElement.js +1 -1
  369. package/dist/docs/api.json +2 -2
  370. package/dist/docs/docs.json +2 -2
  371. package/dist/docs/web-types.json +1 -1
  372. package/dist/index.js +1 -1
  373. package/dist/loader.js +1 -1
  374. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as r}from"./ZHBSGL57.js";import{I as o,d as t,e as s,v as i,w as a,z as l}from"./63OLI6P7.js";var c={container:"container",selected:"selected"},d=t`:host{display:flex}.container{display:none;inline-size:var(--calcite-container-size-content-fluid)}:host([selected]) .container{display:block}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends i{constructor(){super(...arguments),this.guid=`calcite-carousel-item-${r()}`,this.selected=!1}static{this.properties={label:1,selected:7}}static{this.styles=d}render(){let n=this.el.id||this.guid;return l(this.el,"id",n),s`<div .ariaLabel=${this.label} class=${a({[c.container]:!0,[c.selected]:this.selected})} role=tabpanel><slot></slot></div>`}};o("calcite-carousel-item",e);export{e as CarouselItem};
6
+ import{a as r}from"./6IF2S4G7.js";import{I as o,d as t,e as s,v as i,w as a,z as l}from"./CLIL5L4C.js";var c={container:"container",selected:"selected"},d=t`:host{display:flex}.container{display:none;inline-size:var(--calcite-container-size-content-fluid)}:host([selected]) .container{display:block}:host([hidden]){display:none}[hidden]{display:none}`,e=class extends i{constructor(){super(...arguments),this.guid=`calcite-carousel-item-${r()}`,this.selected=!1}static{this.properties={label:1,selected:7}}static{this.styles=d}render(){let n=this.el.id||this.guid;return l(this.el,"id",n),s`<div .ariaLabel=${this.label} class=${a({[c.container]:!0,[c.selected]:this.selected})} role=tabpanel><slot></slot></div>`}};o("calcite-carousel-item",e);export{e as CarouselItem};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{e as c}from"./CFNFWFTC.js";import"./ZHBSGL57.js";import{B as n,I as l,d as r,e as t,v as a,w as s,x as o}from"./63OLI6P7.js";var p=r`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends a{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=p}render(){let e=this.type==="determinate",d=e?{width:`${this.value}%`}:{},m=c(this.el);return t`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${s({bar:!0,indeterminate:this.type==="indeterminate",[n.rtl]:m==="rtl",reversed:this.reversed})} style=${o(d)}></div></div>${this.text?t`<div class="text">${this.text}</div>`:null}</div>`}};l("calcite-progress",i);export{i as Progress};
6
+ import{e as c}from"./QN3MCGXI.js";import"./6IF2S4G7.js";import{B as n,I as l,d as r,e as t,v as a,w as s,x as o}from"./CLIL5L4C.js";var p=r`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,i=class extends a{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=p}render(){let e=this.type==="determinate",d=e?{width:`${this.value}%`}:{},m=c(this.el);return t`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${s({bar:!0,indeterminate:this.type==="indeterminate",[n.rtl]:m==="rtl",reversed:this.reversed})} style=${o(d)}></div></div>${this.text?t`<div class="text">${this.text}</div>`:null}</div>`}};l("calcite-progress",i);export{i as Progress};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as w,b as T}from"./JONZN467.js";import{a as p}from"./RDXTZNY3.js";import{a as d}from"./YEQ4OMST.js";import"./KBXRPNNA.js";import{a as $,b as E}from"./22S23ZFY.js";import{e as M,o as z,r,u as I,v as A}from"./CFNFWFTC.js";import"./ZHBSGL57.js";import{B as l,I as S,d as v,e as c,i as g,u as x,v as C,w as n,z as y}from"./63OLI6P7.js";var i={actionsEnd:"actions-end",bulletPointIcon:"bullet-point",checkbox:"checkbox",checkboxContainer:"checkbox-container",checkboxLabel:"checkbox-label",checkmarkIcon:"checkmark",chevron:"chevron",childrenContainer:"children-container",iconStart:"icon-start",itemExpanded:"item--expanded",nodeAndActionsContainer:"node-actions-container",nodeContainer:"node-container"},q={actionsEnd:"actions-end",children:"children"},a={blank:"blank",bulletPoint:"bullet-point",checkmark:"check",checkSquareF:"check-square-f",chevronRight:"chevron-right",minusSquareF:"minus-square-f",square:"square"},V=v`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-color-text-3)}.node-actions-container{display:flex}:host([calcite-hydrated-hidden]){visibility:hidden!important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-actions-container{min-block-size:1.5rem}:host([scale=s]) .node-actions-container .node-container .checkbox,:host([scale=s]) .node-actions-container .node-container .checkmark,:host([scale=s]) .node-actions-container .node-container .bullet-point{margin-inline:.25rem}:host([scale=s]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=s]) .node-actions-container .node-container .chevron{padding:.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-actions-container{min-block-size:2rem}:host([scale=m]) .node-actions-container .node-container .checkbox,:host([scale=m]) .node-actions-container .node-container .checkmark,:host([scale=m]) .node-actions-container .node-container .bullet-point{margin-inline:.5rem}:host([scale=m]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=m]) .node-actions-container .node-container .chevron{padding:.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-actions-container{min-block-size:2.75rem}:host([scale=l]) .node-actions-container .node-container .checkbox,:host([scale=l]) .node-actions-container .node-container .checkmark,:host([scale=l]) .node-actions-container .node-container .bullet-point{margin-inline:.75rem}:host([scale=l]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=l]) .node-actions-container .node-container .chevron{padding-inline:var(--calcite-spacing-md);padding-block:var(--calcite-spacing-sm-plus)}:host([lines]) .children-container:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-z-index);inline-size:1px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;block-size:96%;content:"";background-color:var(--calcite-color-border-2)}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none!important}::slotted(*):hover{text-decoration:none!important}::slotted(a){inline-size:100%;text-decoration-line:none}:host{outline:2px solid transparent;outline-offset:2px}:host .node-container{outline-color:transparent}:host:focus .node-container,:host:active .node-container{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .node-container{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .checkbox{outline:2px solid transparent;outline-offset:2px}.actions-end{display:flex;flex-direction:row;align-items:center;align-self:stretch}.checkbox-container{display:flex;align-items:center}.checkbox{line-height:0;color:var(--calcite-color-border-input)}.checkbox-label{pointer-events:none;display:flex;align-items:center}.children-container{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),all var(--calcite-animation-timing) ease-in-out}.item--expanded>.children-container{overflow:visible;opacity:1;transform:none;block-size:auto}.node-container{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-color-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected]) .node-container,:host([selected]) .node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .node-container .bullet-point,:host([selected]) .node-container .checkmark,:host([selected]) .node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark{opacity:1;color:var(--calcite-color-brand)}:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container{padding-inline-start:.5rem}:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container{padding-inline-start:1rem}:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.75rem}:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox{margin-inline-start:0}:host([has-children]) .node-container .bullet-point,:host([has-children]) .node-container .checkmark{display:none}.chevron{position:relative;align-self:center;color:var(--calcite-color-text-3);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;flex:0 0 auto;transform:rotate(0)}.calcite--rtl .chevron{transform:rotate(180deg)}.item--expanded .node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-color-brand)}:host([selected]) .checkbox{color:var(--calcite-color-brand)}:host([has-children][indeterminate]) .checkbox{color:var(--calcite-color-brand)}:host([hidden]){display:none}[hidden]{display:none}`,u=class extends C{constructor(){super(),this.actionSlotWrapper=$(),this.userChangedValue=!1,this.hasEndActions=!1,this.updateAfterInitialRender=!1,this.depth=-1,this.disabled=!1,this.expanded=!1,this.hasChildren=null,this.indeterminate=!1,this.parentExpanded=!1,this.selected=!1,this.calciteInternalTreeItemSelect=x({cancelable:!1}),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasEndActions:16,updateAfterInitialRender:16,depth:11,disabled:7,expanded:7,hasChildren:7,iconFlipRtl:3,iconStart:3,indeterminate:7,label:1,lines:7,parentExpanded:5,scale:3,selected:7,selectionMode:3}}static{this.styles=V}connectedCallback(){super.connectedCallback(),this.parentTreeItem=this.el.parentElement?.closest("calcite-tree-item")}load(){requestAnimationFrame(()=>this.updateAfterInitialRender=!0)}willUpdate(e){this.preWillUpdate(),e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.updateChildTree(),e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.handleSelectedChange(this.selected),e.has("selectionMode")&&this.getSelectionMode()}updated(){w(this)}loaded(){this.updateAncestorTree()}handleSelectedChange(e){this.selectionMode==="ancestors"&&!this.userChangedValue&&(e&&(this.indeterminate=!1),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:!0,updateItem:!1}))}getSelectionMode(){this.isSelectionMultiLike=this.selectionMode==="multiple"||this.selectionMode==="multichildren"}onClick(e){if(this.disabled||this.isActionEndEvent(e))return;let[t]=z(this.el,"a");if(t&&e.composedPath()[0].tagName.toLowerCase()!=="a"){let o=t.target===""?"_self":t.target;window.open(t.href,o)}this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode==="ancestors"||this.isSelectionMultiLike,updateItem:!0}),this.userChangedValue=!0}iconClickHandler(e){e.stopPropagation(),this.expanded=!this.expanded}childrenClickHandler(e){e.stopPropagation()}keyDownHandler(e){if(!(this.isActionEndEvent(e)||e.defaultPrevented))switch(e.key){case" ":this.userChangedValue=!0,this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault();break;case"Enter":{let t=Array.from(this.el.children).find(o=>o.matches("a"));this.userChangedValue=!0,t?(t.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault()}}}updateChildTree(){let{childTree:e}=this;e&&(e.parentExpanded=this.expanded)}handleChildrenSlotChange(e){let t=A(e).filter(o=>o.matches("calcite-tree"))[0];this.childTree=t,this.updateChildTree()}isActionEndEvent(e){return e.composedPath().includes(this.actionSlotWrapper.value)}updateAncestorTree(){let e=this.parentTreeItem;if(!(this.selectionMode!=="ancestors"||!e)){if(this.selected){let t=this.el.parentElement,o=Array.from(t?.children),h=o.filter(s=>s.selected);o.length===h.length?(e.selected=!0,e.indeterminate=!1):h.length>0&&(e.indeterminate=!0),Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])")).forEach(s=>{s.selected=!0,s.indeterminate=!1})}else if(this.indeterminate){let t=this.parentTreeItem;t.indeterminate=!0}}}actionsEndSlotChangeHandler(e){this.hasEndActions=I(e)}preWillUpdate(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let e=this.el.closest("calcite-tree");if(!e)return;this.selectionMode=e.selectionMode,this.scale=e.scale||"m",this.lines=e.lines;let t;for(;e&&(t=e.parentElement?.closest("calcite-tree"),t!==e);)e=t,this.depth=this.depth+1}render(){let e=M(this.el)==="rtl",t=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist",o=this.selectionMode==="multiple"||this.selectionMode==="multichildren",h=this.selectionMode==="none"&&!this.hasChildren,s=this.hasChildren&&this.indeterminate,R=this.hasChildren?c`<calcite-icon class=${n({[i.chevron]:!0,[l.rtl]:e})} data-test-id=icon .icon=${a.chevronRight} @click=${this.iconClickHandler} .scale=${d(this.scale)}></calcite-icon>`:null,b=p("default-slot",c`<slot></slot>`),P=this.selectionMode==="ancestors"?c`<div class=${n(i.checkboxContainer)}><calcite-icon class=${n(i.checkbox)} .icon=${this.selected?a.checkSquareF:s?a.minusSquareF:a.square} .scale=${d(this.scale)}></calcite-icon><label class=${n(i.checkboxLabel)}>${b}</label></div>`:null,m=t?a.bulletPoint:o?a.checkmark:h?a.blank:null,H=m?c`<calcite-icon class=${n({[i.bulletPointIcon]:m===a.bulletPoint,[i.checkmarkIcon]:m===a.checkmark,[l.rtl]:e})} .icon=${m} .scale=${d(this.scale)}></calcite-icon>`:null,k=!(this.parentExpanded||this.depth===1),f=this.updateAfterInitialRender&&this.expanded,{hasEndActions:L}=this,F=p("actionsEndSlot",c`<slot name=${q.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot>`),D=c`<calcite-icon class=${n(i.iconStart)} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${d(this.scale)}></calcite-icon>`;return this.el.ariaChecked=this.selectionMode==="multiple"||this.selectionMode==="multichildren"||this.selectionMode==="ancestors"?r(this.selected):void 0,this.el.ariaExpanded=this.hasChildren?r(f):void 0,this.el.ariaHidden=r(k),this.el.ariaLive="polite",this.el.ariaSelected=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist"?r(this.selected):void 0,this.el.toggleAttribute("calcite-hydrated-hidden",k),this.el.role="treeitem",y(this.el,"tabIndex",this.disabled?-1:0),T({disabled:this.disabled,children:c`<div class=${n({[i.itemExpanded]:f})}><div class=${n(i.nodeAndActionsContainer)}><div class=${n({[i.nodeContainer]:!0,[l.rtl]:e})} data-selection-mode=${this.selectionMode??g}>${R}${H}${this.iconStart?D:null}${P||b}</div><div class=${n(i.actionsEnd)} .hidden=${!L} ${E(this.actionSlotWrapper)}>${F}</div></div><div class=${n({[i.childrenContainer]:!0,[l.rtl]:e})} data-test-id=calcite-tree-children @click=${this.childrenClickHandler} .role=${this.hasChildren?"group":void 0}><slot name=${q.children} @slotchange=${this.handleChildrenSlotChange}></slot></div></div>`})}};S("calcite-tree-item",u);export{u as TreeItem};
6
+ import{a as w,b as T}from"./W2FB2QYD.js";import{a as p}from"./APHW6Y7L.js";import{a as d}from"./ZZUK2PZT.js";import"./J5EDYYSO.js";import{a as $,b as E}from"./EYMPZ5LS.js";import{e as M,o as z,r,u as I,v as A}from"./QN3MCGXI.js";import"./6IF2S4G7.js";import{B as l,I as S,d as v,e as c,i as g,u as x,v as C,w as n,z as y}from"./CLIL5L4C.js";var i={actionsEnd:"actions-end",bulletPointIcon:"bullet-point",checkbox:"checkbox",checkboxContainer:"checkbox-container",checkboxLabel:"checkbox-label",checkmarkIcon:"checkmark",chevron:"chevron",childrenContainer:"children-container",iconStart:"icon-start",itemExpanded:"item--expanded",nodeAndActionsContainer:"node-actions-container",nodeContainer:"node-container"},q={actionsEnd:"actions-end",children:"children"},a={blank:"blank",bulletPoint:"bullet-point",checkmark:"check",checkSquareF:"check-square-f",chevronRight:"chevron-right",minusSquareF:"minus-square-f",square:"square"},V=v`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-color-text-3)}.node-actions-container{display:flex}:host([calcite-hydrated-hidden]){visibility:hidden!important;pointer-events:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) .node-actions-container{min-block-size:1.5rem}:host([scale=s]) .node-actions-container .node-container .checkbox,:host([scale=s]) .node-actions-container .node-container .checkmark,:host([scale=s]) .node-actions-container .node-container .bullet-point{margin-inline:.25rem}:host([scale=s]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=s]) .node-actions-container .node-container .chevron{padding:.25rem}:host([scale=m]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) .node-actions-container{min-block-size:2rem}:host([scale=m]) .node-actions-container .node-container .checkbox,:host([scale=m]) .node-actions-container .node-container .checkmark,:host([scale=m]) .node-actions-container .node-container .bullet-point{margin-inline:.5rem}:host([scale=m]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=m]) .node-actions-container .node-container .chevron{padding:.5rem}:host([scale=l]){font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .node-actions-container{min-block-size:2.75rem}:host([scale=l]) .node-actions-container .node-container .checkbox,:host([scale=l]) .node-actions-container .node-container .checkmark,:host([scale=l]) .node-actions-container .node-container .bullet-point{margin-inline:.75rem}:host([scale=l]) .node-actions-container .node-container .icon-start{margin-inline:.75rem}:host([scale=l]) .node-actions-container .node-container .chevron{padding-inline:var(--calcite-spacing-md);padding-block:var(--calcite-spacing-sm-plus)}:host([lines]) .children-container:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-z-index);inline-size:1px;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;block-size:96%;content:"";background-color:var(--calcite-color-border-2)}:host(:not([lines])) .node-container:after{display:none}::slotted(*){min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none!important}::slotted(*):hover{text-decoration:none!important}::slotted(a){inline-size:100%;text-decoration-line:none}:host{outline:2px solid transparent;outline-offset:2px}:host .node-container{outline-color:transparent}:host:focus .node-container,:host:active .node-container{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .node-container{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host(:focus:not([disabled])) .checkbox{outline:2px solid transparent;outline-offset:2px}.actions-end{display:flex;flex-direction:row;align-items:center;align-self:stretch}.checkbox-container{display:flex;align-items:center}.checkbox{line-height:0;color:var(--calcite-color-border-input)}.checkbox-label{pointer-events:none;display:flex;align-items:center}.children-container{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-animation-timing) cubic-bezier(.215,.44,.42,.88),all var(--calcite-animation-timing) ease-in-out}.item--expanded>.children-container{overflow:visible;opacity:1;transform:none;block-size:auto}.node-container{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}.node-container .checkmark,.node-container .bullet-point{opacity:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-color-border-1)}.node-container:hover .checkmark,.node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark,:host([selected]) .node-container:hover .bullet-point,:host(:focus:not([disabled])) .node-container .checkmark,:host(:focus:not([disabled])) .node-container .bullet-point{opacity:1}:host([selected]) .node-container,:host([selected]) .node-container:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}:host([selected]) .node-container .bullet-point,:host([selected]) .node-container .checkmark,:host([selected]) .node-container:hover .bullet-point,:host([selected]) .node-container:hover .checkmark{opacity:1;color:var(--calcite-color-brand)}:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container{padding-inline-start:.5rem}:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container{padding-inline-start:1rem}:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.25rem}:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.5rem}:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox{padding-inline-start:1.75rem}:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox{margin-inline-start:0}:host([has-children]) .node-container .bullet-point,:host([has-children]) .node-container .checkmark{display:none}.chevron{position:relative;align-self:center;color:var(--calcite-color-text-3);transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;flex:0 0 auto;transform:rotate(0)}.calcite--rtl .chevron{transform:rotate(180deg)}.item--expanded .node-container>.chevron{transform:rotate(90deg)}:host([selected]) .checkmark,:host([selected]) .bullet-point{color:var(--calcite-color-brand)}:host([selected]) .checkbox{color:var(--calcite-color-brand)}:host([has-children][indeterminate]) .checkbox{color:var(--calcite-color-brand)}:host([hidden]){display:none}[hidden]{display:none}`,u=class extends C{constructor(){super(),this.actionSlotWrapper=$(),this.userChangedValue=!1,this.hasEndActions=!1,this.updateAfterInitialRender=!1,this.depth=-1,this.disabled=!1,this.expanded=!1,this.hasChildren=null,this.indeterminate=!1,this.parentExpanded=!1,this.selected=!1,this.calciteInternalTreeItemSelect=x({cancelable:!1}),this.listen("click",this.onClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasEndActions:16,updateAfterInitialRender:16,depth:11,disabled:7,expanded:7,hasChildren:7,iconFlipRtl:3,iconStart:3,indeterminate:7,label:1,lines:7,parentExpanded:5,scale:3,selected:7,selectionMode:3}}static{this.styles=V}connectedCallback(){super.connectedCallback(),this.parentTreeItem=this.el.parentElement?.closest("calcite-tree-item")}load(){requestAnimationFrame(()=>this.updateAfterInitialRender=!0)}willUpdate(e){this.preWillUpdate(),e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.updateChildTree(),e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.handleSelectedChange(this.selected),e.has("selectionMode")&&this.getSelectionMode()}updated(){w(this)}loaded(){this.updateAncestorTree()}handleSelectedChange(e){this.selectionMode==="ancestors"&&!this.userChangedValue&&(e&&(this.indeterminate=!1),this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:!0,updateItem:!1}))}getSelectionMode(){this.isSelectionMultiLike=this.selectionMode==="multiple"||this.selectionMode==="multichildren"}onClick(e){if(this.disabled||this.isActionEndEvent(e))return;let[t]=z(this.el,"a");if(t&&e.composedPath()[0].tagName.toLowerCase()!=="a"){let o=t.target===""?"_self":t.target;window.open(t.href,o)}this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.selectionMode==="ancestors"||this.isSelectionMultiLike,updateItem:!0}),this.userChangedValue=!0}iconClickHandler(e){e.stopPropagation(),this.expanded=!this.expanded}childrenClickHandler(e){e.stopPropagation()}keyDownHandler(e){if(!(this.isActionEndEvent(e)||e.defaultPrevented))switch(e.key){case" ":this.userChangedValue=!0,this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault();break;case"Enter":{let t=Array.from(this.el.children).find(o=>o.matches("a"));this.userChangedValue=!0,t?(t.click(),this.selected=!0):this.calciteInternalTreeItemSelect.emit({modifyCurrentSelection:this.isSelectionMultiLike,updateItem:!0}),e.preventDefault()}}}updateChildTree(){let{childTree:e}=this;e&&(e.parentExpanded=this.expanded)}handleChildrenSlotChange(e){let t=A(e).filter(o=>o.matches("calcite-tree"))[0];this.childTree=t,this.updateChildTree()}isActionEndEvent(e){return e.composedPath().includes(this.actionSlotWrapper.value)}updateAncestorTree(){let e=this.parentTreeItem;if(!(this.selectionMode!=="ancestors"||!e)){if(this.selected){let t=this.el.parentElement,o=Array.from(t?.children),h=o.filter(s=>s.selected);o.length===h.length?(e.selected=!0,e.indeterminate=!1):h.length>0&&(e.indeterminate=!0),Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])")).forEach(s=>{s.selected=!0,s.indeterminate=!1})}else if(this.indeterminate){let t=this.parentTreeItem;t.indeterminate=!0}}}actionsEndSlotChangeHandler(e){this.hasEndActions=I(e)}preWillUpdate(){this.hasChildren=!!this.el.querySelector("calcite-tree"),this.depth=0;let e=this.el.closest("calcite-tree");if(!e)return;this.selectionMode=e.selectionMode,this.scale=e.scale||"m",this.lines=e.lines;let t;for(;e&&(t=e.parentElement?.closest("calcite-tree"),t!==e);)e=t,this.depth=this.depth+1}render(){let e=M(this.el)==="rtl",t=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist",o=this.selectionMode==="multiple"||this.selectionMode==="multichildren",h=this.selectionMode==="none"&&!this.hasChildren,s=this.hasChildren&&this.indeterminate,R=this.hasChildren?c`<calcite-icon class=${n({[i.chevron]:!0,[l.rtl]:e})} data-test-id=icon .icon=${a.chevronRight} @click=${this.iconClickHandler} .scale=${d(this.scale)}></calcite-icon>`:null,b=p("default-slot",c`<slot></slot>`),P=this.selectionMode==="ancestors"?c`<div class=${n(i.checkboxContainer)}><calcite-icon class=${n(i.checkbox)} .icon=${this.selected?a.checkSquareF:s?a.minusSquareF:a.square} .scale=${d(this.scale)}></calcite-icon><label class=${n(i.checkboxLabel)}>${b}</label></div>`:null,m=t?a.bulletPoint:o?a.checkmark:h?a.blank:null,H=m?c`<calcite-icon class=${n({[i.bulletPointIcon]:m===a.bulletPoint,[i.checkmarkIcon]:m===a.checkmark,[l.rtl]:e})} .icon=${m} .scale=${d(this.scale)}></calcite-icon>`:null,k=!(this.parentExpanded||this.depth===1),f=this.updateAfterInitialRender&&this.expanded,{hasEndActions:L}=this,F=p("actionsEndSlot",c`<slot name=${q.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot>`),D=c`<calcite-icon class=${n(i.iconStart)} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${d(this.scale)}></calcite-icon>`;return this.el.ariaChecked=this.selectionMode==="multiple"||this.selectionMode==="multichildren"||this.selectionMode==="ancestors"?r(this.selected):void 0,this.el.ariaExpanded=this.hasChildren?r(f):void 0,this.el.ariaHidden=r(k),this.el.ariaLive="polite",this.el.ariaSelected=this.selectionMode==="single"||this.selectionMode==="children"||this.selectionMode==="single-persist"?r(this.selected):void 0,this.el.toggleAttribute("calcite-hydrated-hidden",k),this.el.role="treeitem",y(this.el,"tabIndex",this.disabled?-1:0),T({disabled:this.disabled,children:c`<div class=${n({[i.itemExpanded]:f})}><div class=${n(i.nodeAndActionsContainer)}><div class=${n({[i.nodeContainer]:!0,[l.rtl]:e})} data-selection-mode=${this.selectionMode??g}>${R}${H}${this.iconStart?D:null}${P||b}</div><div class=${n(i.actionsEnd)} .hidden=${!L} ${E(this.actionSlotWrapper)}>${F}</div></div><div class=${n({[i.childrenContainer]:!0,[l.rtl]:e})} data-test-id=calcite-tree-children @click=${this.childrenClickHandler} .role=${this.hasChildren?"group":void 0}><slot name=${q.children} @slotchange=${this.handleChildrenSlotChange}></slot></div></div>`})}};S("calcite-tree-item",u);export{u as TreeItem};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as b}from"./IYZFCPK6.js";import{a as f,b as g}from"./DMVCYOXU.js";import"./AELBUAXD.js";var M=new Date,T=M.toISOString(),v=365,y=v,R={groupDateRange:y,startDate:T},S=(t,r,e)=>{let o=[],n=e.create(t);for(let l=0;l<=r;l++)n=e.increase(n),o.push(e.formatToIsoDateString(n));return o},w=(t,r,e,o)=>{let n=new Map,l=S(r,e,o);return t.map(c=>{let{label:s}=c,a=g(s),u=l.map(m=>{let d=`${m}-${s}`,i=n.get(d);return i||(i=o.isoToTimeZone(m,s),n.set(d,i),i)});return{...c,continent:a,isRegularContinent:a!==f,dates:u}})},J=(t,r,e)=>t.length===r.length&&t.every((o,n)=>e.same(o,r[n])),Z=(t,r=5)=>{let e=t.filter(({label:n})=>g(n)!==f);if(e.length===0)return[0];let o=e.map(n=>t.indexOf(n));return x(o,r)};function x(t,r=5){let e=t.length;if(e<=r)return t;let o=Math.min(e-2,r-2),n=(e-1)/(o+1);return[t[0],...Array.from({length:o},(l,c)=>t[Math.round((c+1)*n)]),t[e-1]]}async function G(t){let{groupDateRange:r,startDate:e,dateEngine:o}={...R,...t},n=[];if(!o)throw new Error("dateEngine is required");let l=b.map(s=>({label:s})),c=w(l,e,r,o);for(let s of c){let{label:a,continent:u,dates:m}=s;if(s.visited)continue;s.visited=!0;let d={labelIdx:[],tzs:[{label:a}]};for(let i of c.filter(p=>!p.visited)){let{label:p,continent:h,isRegularContinent:z,dates:D}=i;if((u===h||!z)&&J(m,D,o)){let I={label:p};d.tzs.push(I),i.visited=!0}}n.push(d)}return n.map(s=>(s.tzs=s.tzs.sort((a,u)=>a.label.localeCompare(u.label)),{labelTzIdx:Z(s.tzs,7),tzs:s.tzs.map(a=>a.label)})).sort((s,a)=>a.tzs.length-s.tzs.length)}export{G as groupByOffset};
6
+ import{a as b}from"./GY3CUANE.js";import{a as f,b as g}from"./MTEZIRLM.js";import"./T42XZX7X.js";var M=new Date,T=M.toISOString(),v=365,y=v,R={groupDateRange:y,startDate:T},S=(t,r,e)=>{let o=[],n=e.create(t);for(let l=0;l<=r;l++)n=e.increase(n),o.push(e.formatToIsoDateString(n));return o},w=(t,r,e,o)=>{let n=new Map,l=S(r,e,o);return t.map(c=>{let{label:s}=c,a=g(s),u=l.map(m=>{let d=`${m}-${s}`,i=n.get(d);return i||(i=o.isoToTimeZone(m,s),n.set(d,i),i)});return{...c,continent:a,isRegularContinent:a!==f,dates:u}})},J=(t,r,e)=>t.length===r.length&&t.every((o,n)=>e.same(o,r[n])),Z=(t,r=5)=>{let e=t.filter(({label:n})=>g(n)!==f);if(e.length===0)return[0];let o=e.map(n=>t.indexOf(n));return x(o,r)};function x(t,r=5){let e=t.length;if(e<=r)return t;let o=Math.min(e-2,r-2),n=(e-1)/(o+1);return[t[0],...Array.from({length:o},(l,c)=>t[Math.round((c+1)*n)]),t[e-1]]}async function G(t){let{groupDateRange:r,startDate:e,dateEngine:o}={...R,...t},n=[];if(!o)throw new Error("dateEngine is required");let l=b.map(s=>({label:s})),c=w(l,e,r,o);for(let s of c){let{label:a,continent:u,dates:m}=s;if(s.visited)continue;s.visited=!0;let d={labelIdx:[],tzs:[{label:a}]};for(let i of c.filter(p=>!p.visited)){let{label:p,continent:h,isRegularContinent:z,dates:D}=i;if((u===h||!z)&&J(m,D,o)){let I={label:p};d.tzs.push(I),i.visited=!0}}n.push(d)}return n.map(s=>(s.tzs=s.tzs.sort((a,u)=>a.label.localeCompare(u.label)),{labelTzIdx:Z(s.tzs,7),tzs:s.tzs.map(a=>a.label)})).sort((s,a)=>a.tzs.length-s.tzs.length)}export{G as groupByOffset};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as B}from"./VTKFLXPA.js";import{a as V}from"./UBL36YBS.js";import{j as n}from"./MBNUPNKQ.js";import{c as I,e as M,h as T}from"./SHEV3LXM.js";import{c as W,d as j,e as q}from"./IHIS6WUY.js";import{a as C,b as H}from"./JONZN467.js";import{d as S}from"./QOYXTPGC.js";import"./2LYOQGGC.js";import{a as L}from"./ROGYYCL2.js";import{a as O}from"./KWXGEK6F.js";import{a as w,b as m}from"./22S23ZFY.js";import{u as g}from"./CFNFWFTC.js";import{a as E,b as k,c as p,d as A}from"./IJTKZGU6.js";import{a as $}from"./ZHBSGL57.js";import{A as z,I as y,b as x,d as u,e as l,t as v,u as h,v as b,w as i,y as s}from"./63OLI6P7.js";var a={assistiveText:"assistive-text",characterLimit:"character-limit",content:"content",container:"container",footer:"footer",resizeDisabled:"resize--disabled",resizeDisabledX:"resize--disabled-x",resizeDisabledY:"resize--disabled-y",characterOverLimit:"character--over-limit",readOnly:"readonly",textAreaInvalid:"text-area--invalid",footerSlotted:"footer--slotted",hide:"hide",footerEndSlotOnly:"footer--end-only",textArea:"text-area",textAreaOnly:"text-area--only"},D={validationMessage:"textAreaValidationMessage"},F={footerStart:"footer-start",footerEnd:"footer-end"},R=100,G=u`: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;block-size:100%;inline-size:100%;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) )}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--1));background-color:var(--calcite-text-area-background-color, var(--calcite-color-foreground-1));padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md)}.text-area{position:relative;margin:0;box-sizing:border-box;display:block;inline-size:100%;font-family:var(--calcite-font-family);--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:var(--calcite-sans-family);max-block-size:var(--calcite-text-area-max-height);min-block-size:var(--calcite-text-area-min-height);max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem)}.text-area::placeholder{font-weight:var(--calcite-font-weight-normal)}@media screen and (max-width: 480px){.text-area{resize:none}}.text-area: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))))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.text-area.footer--slotted{min-inline-size:18rem}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.footer{box-sizing:border-box;display:flex;align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:2.25rem}.character-limit{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--1));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-spacing-md)}.character--over-limit{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.content,.hide{display:none}.container{display:flex;inline-size:100%;justify-content:space-between}.footer--end-only{justify-content:flex-end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.text-area.text-area--only{block-size:100%}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{padding-inline-start:.5rem;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--2))}:host([scale=s]) .footer{min-block-size:1.75rem}:host([scale=s]) .text-area{padding-block:.25rem;padding-inline:.5rem}:host([scale=m]) .text-area{padding-block:.5rem;padding-inline:.75rem}:host([scale=m]) .footer{padding-block:.5rem;padding-inline:.75rem;min-block-size:2.25rem}:host([scale=l]) .text-area,:host([scale=l]) .footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-0));padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .footer{min-block-size:2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-0));padding-inline-start:var(--calcite-spacing-lg)}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,f=class extends b{constructor(){super(...arguments),this.attributeWatch=x(["autofocus","spellcheck"],this.handleGlobalAttributesChanged),this.footerEl=w(),this.guid=$(),this.resizeObserver=L("resize",async()=>{await p(this);let{textAreaHeight:e,textAreaWidth:t,elHeight:r,elWidth:c,footerHeight:d,footerWidth:o}=this.getHeightAndWidthOfElements();o>0&&o!==t&&(this.footerEl.value.style.width=`${t}px`),(c!==t||r!==e+(d||0))&&this.setHeightAndWidthToAuto()}),this.setHeightAndWidthToAuto=S(()=>{(this.resize==="vertical"||this.resize==="both")&&(this.el.style.height="auto"),(this.resize==="horizontal"||this.resize==="both")&&(this.el.style.width="auto")},R,{leading:!1}),this.disabled=!1,this.groupSeparator=!1,this.messages=O({blocking:!0}),this.readOnly=!1,this.required=!1,this.resize="both",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.value="",this.wrap="soft",this.calciteTextAreaChange=h(),this.calciteTextAreaInput=h()}static{this.properties={endSlotHasElements:16,startSlotHasElements:16,columns:11,disabled:7,form:3,groupSeparator:7,label:1,maxLength:11,messageOverrides:0,minLength:11,name:3,numberingSystem:1,placeholder:1,readOnly:7,required:7,resize:3,rows:11,scale:3,status:3,validationIcon:[3,{converter:z}],validationMessage:1,validity:0,value:1,wrap:3}}static{this.styles=G}async selectText(){await p(this),this.textAreaEl.select()}async setFocus(){await A(this),this.textAreaEl.focus()}connectedCallback(){super.connectedCallback(),W(this),I(this)}async load(){E(this)}updated(){C(this),this.setTextAreaHeight()}loaded(){k(this)}disconnectedCallback(){super.disconnectedCallback(),j(this),M(this),this.resizeObserver?.disconnect()}handleGlobalAttributesChanged(){this.requestUpdate()}onLabelClick(){this.setFocus()}handleInput(e){this.value=e.target.value,this.calciteTextAreaInput.emit()}handleChange(){this.calciteTextAreaChange.emit()}contentSlotChangeHandler(){this.value||this.el.childNodes.forEach(e=>{e.nodeName==="#text"&&(this.value=e.nodeValue.trim())})}getLocalizedCharacterLength(){let e=this.value?this.value.length.toString():"0",t=this.maxLength.toString();return this.numberingSystem==="latn"?{currentLength:e,maxLength:t}:(n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,signDisplay:"never",useGrouping:this.groupSeparator},{currentLength:n.localize(e),maxLength:n.localize(t)})}syncHiddenFormInput(e){e.setCustomValidity(""),this.isCharacterLimitExceeded()&&e.setCustomValidity(this.replacePlaceholdersInMessages()),B("textarea",this,e)}setTextAreaEl(e){e&&(this.textAreaEl=e,this.resizeObserver?.observe(e))}setTextAreaHeight(){let{textAreaHeight:e,elHeight:t,footerHeight:r}=this.getHeightAndWidthOfElements();r>0&&e+r!=t&&(this.textAreaEl.style.height=`${t-r}px`)}getHeightAndWidthOfElements(){let{height:e,width:t}=this.textAreaEl.getBoundingClientRect(),{height:r,width:c}=this.el.getBoundingClientRect(),{height:d,width:o}=this.footerEl.value?this.footerEl.value.getBoundingClientRect():{height:0,width:0};return{textAreaHeight:e,textAreaWidth:t,elHeight:r,elWidth:c,footerHeight:d,footerWidth:o}}replacePlaceholdersInMessages(){return this.messages.tooLong.replace("{maxLength}",this.localizedCharacterLengthObj.maxLength).replace("{currentLength}",this.localizedCharacterLengthObj.currentLength)}isCharacterLimitExceeded(){return this.value?.length>this.maxLength}render(){let e=this.startSlotHasElements||this.endSlotHasElements||!!this.maxLength;return H({disabled:this.disabled,children:l`<textarea aria-describedby=${this.guid??s} aria-errormessage=${D.validationMessage} .ariaInvalid=${this.status==="invalid"||this.isCharacterLimitExceeded()} .ariaLabel=${q(this)} .autofocus=${this.el.autofocus} class=${i({[a.textArea]:!0,[a.readOnly]:this.readOnly,[a.textAreaInvalid]:this.isCharacterLimitExceeded(),[a.footerSlotted]:this.endSlotHasElements&&this.startSlotHasElements,[a.textAreaOnly]:!e})} .cols=${this.columns} .disabled=${this.disabled} name=${this.name??s} @change=${this.handleChange} @input=${this.handleInput} placeholder=${this.placeholder??s} .readOnly=${this.readOnly} .required=${this.required} .rows=${this.rows} spellcheck=${this.el.spellcheck??s} .value=${v(this.value??"")} wrap=${this.wrap??s} ${m(this.setTextAreaEl)}></textarea><span class=${i({[a.content]:!0})}><slot @slotchange=${this.contentSlotChangeHandler}></slot></span><footer class=${i({[a.footer]:!0,[a.readOnly]:this.readOnly,[a.hide]:!e})} ${m(this.footerEl)}><div class=${i({[a.container]:!0,[a.footerEndSlotOnly]:!this.startSlotHasElements&&this.endSlotHasElements})}><slot name=${F.footerStart} @slotchange=${t=>this.startSlotHasElements=g(t)}></slot><slot name=${F.footerEnd} @slotchange=${t=>this.endSlotHasElements=g(t)}></slot></div>${this.renderCharacterLimit()}</footer>${T({component:this})}${this.isCharacterLimitExceeded()&&l`<span aria-live=polite class=${i(a.assistiveText)} id=${this.guid??s}>${this.replacePlaceholdersInMessages()}</span>`||""}${this.validationMessage&&this.status==="invalid"?V({icon:this.validationIcon,id:D.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderCharacterLimit(){return this.maxLength?(this.localizedCharacterLengthObj=this.getLocalizedCharacterLength(),l`<span class=${i(a.characterLimit)}><span class=${i({[a.characterOverLimit]:this.isCharacterLimitExceeded()})}>${this.localizedCharacterLengthObj.currentLength}</span>/${this.localizedCharacterLengthObj.maxLength}</span>`):null}};y("calcite-text-area",f);export{f as TextArea};
6
+ import{a as B}from"./H63ZNHR3.js";import{a as V}from"./ZEGBIGJR.js";import{j as n}from"./ZXWSWS4U.js";import{c as I,e as M,h as T}from"./FAZW62IX.js";import{c as W,d as j,e as q}from"./AV2SDKWJ.js";import{a as C,b as H}from"./W2FB2QYD.js";import{d as S}from"./GMC6LLGK.js";import"./HIPOY2NM.js";import{a as L}from"./7YJGSRNY.js";import{a as O}from"./ICCKQUAU.js";import{a as w,b as m}from"./EYMPZ5LS.js";import{u as g}from"./QN3MCGXI.js";import{a as E,b as k,c as p,d as A}from"./F4KH5HSL.js";import{a as $}from"./6IF2S4G7.js";import{A as z,I as y,b as x,d as u,e as l,t as v,u as h,v as b,w as i,y as s}from"./CLIL5L4C.js";var a={assistiveText:"assistive-text",characterLimit:"character-limit",content:"content",container:"container",footer:"footer",resizeDisabled:"resize--disabled",resizeDisabledX:"resize--disabled-x",resizeDisabledY:"resize--disabled-y",characterOverLimit:"character--over-limit",readOnly:"readonly",textAreaInvalid:"text-area--invalid",footerSlotted:"footer--slotted",hide:"hide",footerEndSlotOnly:"footer--end-only",textArea:"text-area",textAreaOnly:"text-area--only"},D={validationMessage:"textAreaValidationMessage"},F={footerStart:"footer-start",footerEnd:"footer-end"},R=100,G=u`: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;block-size:100%;inline-size:100%;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) )}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--1));background-color:var(--calcite-text-area-background-color, var(--calcite-color-foreground-1));padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md)}.text-area{position:relative;margin:0;box-sizing:border-box;display:block;inline-size:100%;font-family:var(--calcite-font-family);--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:var(--calcite-sans-family);max-block-size:var(--calcite-text-area-max-height);min-block-size:var(--calcite-text-area-min-height);max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem)}.text-area::placeholder{font-weight:var(--calcite-font-weight-normal)}@media screen and (max-width: 480px){.text-area{resize:none}}.text-area: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))))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.text-area.footer--slotted{min-inline-size:18rem}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.footer{box-sizing:border-box;display:flex;align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:2.25rem}.character-limit{display:flex;align-items:center;justify-content:flex-end;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--1));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-spacing-md)}.character--over-limit{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.content,.hide{display:none}.container{display:flex;inline-size:100%;justify-content:space-between}.footer--end-only{justify-content:flex-end}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.text-area.text-area--only{block-size:100%}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{padding-inline-start:.5rem;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size--2))}:host([scale=s]) .footer{min-block-size:1.75rem}:host([scale=s]) .text-area{padding-block:.25rem;padding-inline:.5rem}:host([scale=m]) .text-area{padding-block:.5rem;padding-inline:.75rem}:host([scale=m]) .footer{padding-block:.5rem;padding-inline:.75rem;min-block-size:2.25rem}:host([scale=l]) .text-area,:host([scale=l]) .footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-0));padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .footer{min-block-size:2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-0));padding-inline-start:var(--calcite-spacing-lg)}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,f=class extends b{constructor(){super(...arguments),this.attributeWatch=x(["autofocus","spellcheck"],this.handleGlobalAttributesChanged),this.footerEl=w(),this.guid=$(),this.resizeObserver=L("resize",async()=>{await p(this);let{textAreaHeight:e,textAreaWidth:t,elHeight:r,elWidth:c,footerHeight:d,footerWidth:o}=this.getHeightAndWidthOfElements();o>0&&o!==t&&(this.footerEl.value.style.width=`${t}px`),(c!==t||r!==e+(d||0))&&this.setHeightAndWidthToAuto()}),this.setHeightAndWidthToAuto=S(()=>{(this.resize==="vertical"||this.resize==="both")&&(this.el.style.height="auto"),(this.resize==="horizontal"||this.resize==="both")&&(this.el.style.width="auto")},R,{leading:!1}),this.disabled=!1,this.groupSeparator=!1,this.messages=O({blocking:!0}),this.readOnly=!1,this.required=!1,this.resize="both",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.value="",this.wrap="soft",this.calciteTextAreaChange=h(),this.calciteTextAreaInput=h()}static{this.properties={endSlotHasElements:16,startSlotHasElements:16,columns:11,disabled:7,form:3,groupSeparator:7,label:1,maxLength:11,messageOverrides:0,minLength:11,name:3,numberingSystem:1,placeholder:1,readOnly:7,required:7,resize:3,rows:11,scale:3,status:3,validationIcon:[3,{converter:z}],validationMessage:1,validity:0,value:1,wrap:3}}static{this.styles=G}async selectText(){await p(this),this.textAreaEl.select()}async setFocus(){await A(this),this.textAreaEl.focus()}connectedCallback(){super.connectedCallback(),W(this),I(this)}async load(){E(this)}updated(){C(this),this.setTextAreaHeight()}loaded(){k(this)}disconnectedCallback(){super.disconnectedCallback(),j(this),M(this),this.resizeObserver?.disconnect()}handleGlobalAttributesChanged(){this.requestUpdate()}onLabelClick(){this.setFocus()}handleInput(e){this.value=e.target.value,this.calciteTextAreaInput.emit()}handleChange(){this.calciteTextAreaChange.emit()}contentSlotChangeHandler(){this.value||this.el.childNodes.forEach(e=>{e.nodeName==="#text"&&(this.value=e.nodeValue.trim())})}getLocalizedCharacterLength(){let e=this.value?this.value.length.toString():"0",t=this.maxLength.toString();return this.numberingSystem==="latn"?{currentLength:e,maxLength:t}:(n.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,signDisplay:"never",useGrouping:this.groupSeparator},{currentLength:n.localize(e),maxLength:n.localize(t)})}syncHiddenFormInput(e){e.setCustomValidity(""),this.isCharacterLimitExceeded()&&e.setCustomValidity(this.replacePlaceholdersInMessages()),B("textarea",this,e)}setTextAreaEl(e){e&&(this.textAreaEl=e,this.resizeObserver?.observe(e))}setTextAreaHeight(){let{textAreaHeight:e,elHeight:t,footerHeight:r}=this.getHeightAndWidthOfElements();r>0&&e+r!=t&&(this.textAreaEl.style.height=`${t-r}px`)}getHeightAndWidthOfElements(){let{height:e,width:t}=this.textAreaEl.getBoundingClientRect(),{height:r,width:c}=this.el.getBoundingClientRect(),{height:d,width:o}=this.footerEl.value?this.footerEl.value.getBoundingClientRect():{height:0,width:0};return{textAreaHeight:e,textAreaWidth:t,elHeight:r,elWidth:c,footerHeight:d,footerWidth:o}}replacePlaceholdersInMessages(){return this.messages.tooLong.replace("{maxLength}",this.localizedCharacterLengthObj.maxLength).replace("{currentLength}",this.localizedCharacterLengthObj.currentLength)}isCharacterLimitExceeded(){return this.value?.length>this.maxLength}render(){let e=this.startSlotHasElements||this.endSlotHasElements||!!this.maxLength;return H({disabled:this.disabled,children:l`<textarea aria-describedby=${this.guid??s} aria-errormessage=${D.validationMessage} .ariaInvalid=${this.status==="invalid"||this.isCharacterLimitExceeded()} .ariaLabel=${q(this)} .autofocus=${this.el.autofocus} class=${i({[a.textArea]:!0,[a.readOnly]:this.readOnly,[a.textAreaInvalid]:this.isCharacterLimitExceeded(),[a.footerSlotted]:this.endSlotHasElements&&this.startSlotHasElements,[a.textAreaOnly]:!e})} .cols=${this.columns} .disabled=${this.disabled} name=${this.name??s} @change=${this.handleChange} @input=${this.handleInput} placeholder=${this.placeholder??s} .readOnly=${this.readOnly} .required=${this.required} .rows=${this.rows} spellcheck=${this.el.spellcheck??s} .value=${v(this.value??"")} wrap=${this.wrap??s} ${m(this.setTextAreaEl)}></textarea><span class=${i({[a.content]:!0})}><slot @slotchange=${this.contentSlotChangeHandler}></slot></span><footer class=${i({[a.footer]:!0,[a.readOnly]:this.readOnly,[a.hide]:!e})} ${m(this.footerEl)}><div class=${i({[a.container]:!0,[a.footerEndSlotOnly]:!this.startSlotHasElements&&this.endSlotHasElements})}><slot name=${F.footerStart} @slotchange=${t=>this.startSlotHasElements=g(t)}></slot><slot name=${F.footerEnd} @slotchange=${t=>this.endSlotHasElements=g(t)}></slot></div>${this.renderCharacterLimit()}</footer>${T({component:this})}${this.isCharacterLimitExceeded()&&l`<span aria-live=polite class=${i(a.assistiveText)} id=${this.guid??s}>${this.replacePlaceholdersInMessages()}</span>`||""}${this.validationMessage&&this.status==="invalid"?V({icon:this.validationIcon,id:D.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}renderCharacterLimit(){return this.maxLength?(this.localizedCharacterLengthObj=this.getLocalizedCharacterLength(),l`<span class=${i(a.characterLimit)}><span class=${i({[a.characterOverLimit]:this.isCharacterLimitExceeded()})}>${this.localizedCharacterLengthObj.currentLength}</span>/${this.localizedCharacterLengthObj.maxLength}</span>`):null}};y("calcite-text-area",f);export{f as TextArea};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{b as _}from"./2P6N4LHN.js";import"./QBDS7DU4.js";var r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,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:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var a=e===1?"er":"";return""+e+a}};_.locale(r,null,!0);var s=r;export{s as default};
6
+ import{b as _}from"./42YRM6GJ.js";import"./NERIHWDP.js";var r={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,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:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var a=e===1?"er":"";return""+e+a}};_.locale(r,null,!0);var s=r;export{s as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{b as e}from"./2P6N4LHN.js";import"./QBDS7DU4.js";var i={name:"ro",weekdays:"Duminic\u0103_Luni_Mar\u021Bi_Miercuri_Joi_Vineri_S\xE2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xE2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xE2".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,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"},relativeTime:{future:"peste %s",past:"acum %s",s:"c\xE2teva secunde",m:"un minut",mm:"%d minute",h:"o or\u0103",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lun\u0103",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(_){return _}};e.locale(i,null,!0);var u=i;export{u as default};
6
+ import{b as e}from"./42YRM6GJ.js";import"./NERIHWDP.js";var i={name:"ro",weekdays:"Duminic\u0103_Luni_Mar\u021Bi_Miercuri_Joi_Vineri_S\xE2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xE2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xE2".split("_"),months:"Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),monthsShort:"Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.".split("_"),weekStart:1,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"},relativeTime:{future:"peste %s",past:"acum %s",s:"c\xE2teva secunde",m:"un minut",mm:"%d minute",h:"o or\u0103",hh:"%d ore",d:"o zi",dd:"%d zile",M:"o lun\u0103",MM:"%d luni",y:"un an",yy:"%d ani"},ordinal:function(_){return _}};e.locale(i,null,!0);var u=i;export{u as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{b as a}from"./2P6N4LHN.js";import"./QBDS7DU4.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};
6
+ import{b as a}from"./42YRM6GJ.js";import"./NERIHWDP.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,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a}from"./QBDS7DU4.js";export{a as default};
6
+ import{a}from"./NERIHWDP.js";export{a as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as t,b as S,c as f,d as r}from"./WINDWH3S.js";import{b as L}from"./4ODRMKDT.js";import{b as D}from"./QDEQB5IQ.js";import"./FQTGEFZ3.js";import"./SWJ6YGR6.js";import{a as M,b as I}from"./JONZN467.js";import{a as d}from"./RDXTZNY3.js";import"./QOYXTPGC.js";import{a as F}from"./ROGYYCL2.js";import{a as j}from"./KWXGEK6F.js";import{b as C}from"./22S23ZFY.js";import{b as O}from"./MOMKW76P.js";import{n as E,u as s,v as x}from"./CFNFWFTC.js";import{a as B,b as P,d as T}from"./IJTKZGU6.js";import"./ZHBSGL57.js";import{I as w,d as H,e as a,i as $,u,v as k,w as i}from"./63OLI6P7.js";var K=H`: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;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none));box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}#close:last-child,#collapse:last-child,calcite-action-menu:last-child{--calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius)}.back-button{--calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{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))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));border-radius:0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,y=class extends k{constructor(){super(),this.resizeObserver=F("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=D,this.messages=j(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=u({cancelable:!1}),this.calcitePanelScroll=u({cancelable:!1}),this.calcitePanelToggle=u({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}static{this.properties={hasActionBar:16,hasContentBottom:16,hasContentTop:16,hasEndActions:16,hasFab:16,hasFooterActions:16,hasFooterContent:16,hasFooterEndContent:16,hasFooterStartContent:16,hasHeaderContent:16,hasMenuItems:16,hasStartActions:16,isClosed:16,showHeaderContent:16,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuFlipPlacements:0,menuOpen:7,menuPlacement:3,messageOverrides:0,overlayPositioning:3,scale:3}}static{this.styles=K}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await T(this),E(this.containerEl)}async load(){B(this),this.isClosed=this.closed}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.closed?this.close():this.open())}updated(){M(this)}loaded(){P(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:e}=this;!e||typeof e.scrollHeight!="number"||typeof e.offsetHeight!="number"||(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))}setContainerRef(e){this.containerEl=e}panelKeyDownHandler(e){this.closable&&e.key==="Escape"&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(e){this.hasStartActions=s(e)}handleHeaderActionsEndSlotChange(e){this.hasEndActions=s(e)}handleHeaderMenuActionsSlotChange(e){this.hasMenuItems=s(e)}handleActionBarSlotChange(e){let n=x(e).filter(o=>o?.matches("calcite-action-bar"));n.forEach(o=>o.layout="horizontal"),this.hasActionBar=!!n.length}handleHeaderContentSlotChange(e){this.hasHeaderContent=s(e)}handleFabSlotChange(e){this.hasFab=s(e)}handleFooterActionsSlotChange(e){this.hasFooterActions=s(e)}handleFooterEndSlotChange(e){this.hasFooterEndContent=s(e)}handleFooterStartSlotChange(e){this.hasFooterStartContent=s(e)}handleFooterSlotChange(e){this.hasFooterContent=s(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=s(e)}contentTopSlotChangeHandler(e){this.hasContentTop=s(e)}setPanelScrollEl(e){this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())}handleAlertsSlotChange(e){x(e)?.map(n=>{n.nodeName==="CALCITE-ALERT"&&(n.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:n,description:o,hasHeaderContent:l}=this,c=e?L({class:t.heading,level:n,children:e}):null,h=o?a`<span class=${i(t.description)}>${o}</span>`:null;return!l&&(c||h)?d("header-content",a`<div class=${i(t.headerContent)}>${c}${h}</div>`):null}renderActionBar(){return a`<div class=${i(t.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${r.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return d("slotted-header-content",a`<div class=${i({[t.headerContent]:!0,[t.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${r.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:e}=this;return d("header-actions-start",a`<div class=${i({[t.headerActionsStart]:!0,[t.headerActions]:!0})} .hidden=${!e}><slot name=${r.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:e,messages:n,closable:o,collapsed:l,collapseDirection:c,collapsible:h,hasMenuItems:m}=this,{collapse:p,expand:g,close:v}=n,b=[f.expand,f.collapse];c==="up"&&b.reverse();let A=h?a`<calcite-action .ariaExpanded=${!l} .ariaLabel=${p} .icon=${l?b[0]:b[1]} id=${S.collapse} @click=${this.collapse} .scale=${this.scale} .text=${p} title=${(l?g:p)??$}></calcite-action>`:null,z=o?a`<calcite-action .ariaLabel=${v} .icon=${f.close} id=${S.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${v} title=${v??$}></calcite-action>`:null,N=a`<slot name=${r.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,U=e||A||z||m;return d("header-actions-end",a`<div class=${i({[t.headerActionsEnd]:!0,[t.headerActions]:!0})} .hidden=${!U}>${N}${this.renderMenu()}${A}${z}</div>`)}renderMenu(){let{hasMenuItems:e,messages:n,menuOpen:o,menuFlipPlacements:l,menuPlacement:c}=this;return d("menu",a`<calcite-action-menu .flipPlacements=${l??["top","bottom"]} .hidden=${!e} .label=${n.options} .open=${o} .overlayPositioning=${this.overlayPositioning} .placement=${c}><calcite-action .icon=${f.menu} .scale=${this.scale} slot=${O.trigger} .text=${n.options}></calcite-action><slot name=${r.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:e,hasStartActions:n,hasEndActions:o,closable:l,collapsible:c,hasMenuItems:h,hasActionBar:m}=this,p=this.renderHeaderContent(),g=e||!!p||n||o||c||l||h;return this.showHeaderContent=g,a`<header class=${i(t.header)} .hidden=${!(g||m)}><div class=${i({[t.headerContainer]:!0,[t.headerContainerBorderEnd]:m})} .hidden=${!g}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${p}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:e,hasFooterStartContent:n,hasFooterContent:o,hasFooterActions:l}=this,c=n||e||o||l;return a`<footer class=${i(t.footer)} .hidden=${!c}><div class=${i(t.footerContent)} .hidden=${!o}><slot name=${r.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${i(t.footerStart)} .hidden=${o||!n}><slot name=${r.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${i(t.footerEnd)} .hidden=${o||!e}><slot name=${r.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${i(t.footerActions)} .hidden=${o||!l}>${d("footer-actions-slot",a`<slot name=${r.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return a`<div class=${i(t.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${C(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${r.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${r.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return a`<div class=${i(t.fabContainer)} .hidden=${!this.hasFab}><slot name=${r.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:e,loading:n,isClosed:o}=this,l=a`<article .ariaBusy=${n} class=${i(t.container)} .hidden=${o} ${C(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${d("alerts",a`<slot name=${r.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return I({disabled:e,children:a`${n?a`<calcite-scrim .loading=${n}></calcite-scrim>`:null}${l}`})}};w("calcite-panel",y);export{y as Panel};
6
+ import{a as t,b as S,c as f,d as r}from"./XFMUC2O6.js";import{b as L}from"./G5CZUV74.js";import{b as D}from"./OK4RCEZK.js";import"./JZA6IXVT.js";import"./SC5JWF5B.js";import{a as M,b as I}from"./W2FB2QYD.js";import{a as d}from"./APHW6Y7L.js";import"./GMC6LLGK.js";import{a as F}from"./7YJGSRNY.js";import{a as j}from"./ICCKQUAU.js";import{b as C}from"./EYMPZ5LS.js";import{b as O}from"./JVMGZYRC.js";import{n as E,u as s,v as x}from"./QN3MCGXI.js";import{a as B,b as P,d as T}from"./F4KH5HSL.js";import"./6IF2S4G7.js";import{I as w,d as H,e as a,i as $,u,v as k,w as i}from"./CLIL5L4C.js";var K=H`: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;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none));box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}#close:last-child,#collapse:last-child,calcite-action-menu:last-child{--calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius)}.back-button{--calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{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))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));border-radius:0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,y=class extends k{constructor(){super(),this.resizeObserver=F("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=D,this.messages=j(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=u({cancelable:!1}),this.calcitePanelScroll=u({cancelable:!1}),this.calcitePanelToggle=u({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}static{this.properties={hasActionBar:16,hasContentBottom:16,hasContentTop:16,hasEndActions:16,hasFab:16,hasFooterActions:16,hasFooterContent:16,hasFooterEndContent:16,hasFooterStartContent:16,hasHeaderContent:16,hasMenuItems:16,hasStartActions:16,isClosed:16,showHeaderContent:16,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuFlipPlacements:0,menuOpen:7,menuPlacement:3,messageOverrides:0,overlayPositioning:3,scale:3}}static{this.styles=K}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await T(this),E(this.containerEl)}async load(){B(this),this.isClosed=this.closed}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.closed?this.close():this.open())}updated(){M(this)}loaded(){P(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:e}=this;!e||typeof e.scrollHeight!="number"||typeof e.offsetHeight!="number"||(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))}setContainerRef(e){this.containerEl=e}panelKeyDownHandler(e){this.closable&&e.key==="Escape"&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(e){this.hasStartActions=s(e)}handleHeaderActionsEndSlotChange(e){this.hasEndActions=s(e)}handleHeaderMenuActionsSlotChange(e){this.hasMenuItems=s(e)}handleActionBarSlotChange(e){let n=x(e).filter(o=>o?.matches("calcite-action-bar"));n.forEach(o=>o.layout="horizontal"),this.hasActionBar=!!n.length}handleHeaderContentSlotChange(e){this.hasHeaderContent=s(e)}handleFabSlotChange(e){this.hasFab=s(e)}handleFooterActionsSlotChange(e){this.hasFooterActions=s(e)}handleFooterEndSlotChange(e){this.hasFooterEndContent=s(e)}handleFooterStartSlotChange(e){this.hasFooterStartContent=s(e)}handleFooterSlotChange(e){this.hasFooterContent=s(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=s(e)}contentTopSlotChangeHandler(e){this.hasContentTop=s(e)}setPanelScrollEl(e){this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())}handleAlertsSlotChange(e){x(e)?.map(n=>{n.nodeName==="CALCITE-ALERT"&&(n.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:n,description:o,hasHeaderContent:l}=this,c=e?L({class:t.heading,level:n,children:e}):null,h=o?a`<span class=${i(t.description)}>${o}</span>`:null;return!l&&(c||h)?d("header-content",a`<div class=${i(t.headerContent)}>${c}${h}</div>`):null}renderActionBar(){return a`<div class=${i(t.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${r.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return d("slotted-header-content",a`<div class=${i({[t.headerContent]:!0,[t.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${r.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:e}=this;return d("header-actions-start",a`<div class=${i({[t.headerActionsStart]:!0,[t.headerActions]:!0})} .hidden=${!e}><slot name=${r.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:e,messages:n,closable:o,collapsed:l,collapseDirection:c,collapsible:h,hasMenuItems:m}=this,{collapse:p,expand:g,close:v}=n,b=[f.expand,f.collapse];c==="up"&&b.reverse();let A=h?a`<calcite-action .ariaExpanded=${!l} .ariaLabel=${p} .icon=${l?b[0]:b[1]} id=${S.collapse} @click=${this.collapse} .scale=${this.scale} .text=${p} title=${(l?g:p)??$}></calcite-action>`:null,z=o?a`<calcite-action .ariaLabel=${v} .icon=${f.close} id=${S.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${v} title=${v??$}></calcite-action>`:null,N=a`<slot name=${r.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,U=e||A||z||m;return d("header-actions-end",a`<div class=${i({[t.headerActionsEnd]:!0,[t.headerActions]:!0})} .hidden=${!U}>${N}${this.renderMenu()}${A}${z}</div>`)}renderMenu(){let{hasMenuItems:e,messages:n,menuOpen:o,menuFlipPlacements:l,menuPlacement:c}=this;return d("menu",a`<calcite-action-menu .flipPlacements=${l??["top","bottom"]} .hidden=${!e} .label=${n.options} .open=${o} .overlayPositioning=${this.overlayPositioning} .placement=${c}><calcite-action .icon=${f.menu} .scale=${this.scale} slot=${O.trigger} .text=${n.options}></calcite-action><slot name=${r.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:e,hasStartActions:n,hasEndActions:o,closable:l,collapsible:c,hasMenuItems:h,hasActionBar:m}=this,p=this.renderHeaderContent(),g=e||!!p||n||o||c||l||h;return this.showHeaderContent=g,a`<header class=${i(t.header)} .hidden=${!(g||m)}><div class=${i({[t.headerContainer]:!0,[t.headerContainerBorderEnd]:m})} .hidden=${!g}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${p}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:e,hasFooterStartContent:n,hasFooterContent:o,hasFooterActions:l}=this,c=n||e||o||l;return a`<footer class=${i(t.footer)} .hidden=${!c}><div class=${i(t.footerContent)} .hidden=${!o}><slot name=${r.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${i(t.footerStart)} .hidden=${o||!n}><slot name=${r.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${i(t.footerEnd)} .hidden=${o||!e}><slot name=${r.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${i(t.footerActions)} .hidden=${o||!l}>${d("footer-actions-slot",a`<slot name=${r.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return a`<div class=${i(t.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${C(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return a`<div class=${i(t.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${r.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return a`<div class=${i(t.contentTop)} .hidden=${!this.hasContentTop}><slot name=${r.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return a`<div class=${i(t.fabContainer)} .hidden=${!this.hasFab}><slot name=${r.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:e,loading:n,isClosed:o}=this,l=a`<article .ariaBusy=${n} class=${i(t.container)} .hidden=${o} ${C(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${d("alerts",a`<slot name=${r.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return I({disabled:e,children:a`${n?a`<calcite-scrim .loading=${n}></calcite-scrim>`:null}${l}`})}};w("calcite-panel",y);export{y as Panel};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
6
  var x={min:"0",max:"320px"},a={min:"321px",max:"476px"},m={min:"477px",max:"768px"},p={min:"769px",max:"1152px"},s={min:"1153px",max:"1440px"},n="2px",i="0.25rem",e="0.5rem";export{x as a,a as b,m as c,p as d,s as e,n as f,i as g,e as h};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as g,b as y}from"./JONZN467.js";import{a}from"./RDXTZNY3.js";import{a as f}from"./YEQ4OMST.js";import"./KBXRPNNA.js";import{a as T}from"./2LYOQGGC.js";import{a as C,b as d}from"./22S23ZFY.js";import{z as c}from"./CFNFWFTC.js";import"./ZHBSGL57.js";import{I as R,d as w,e as s,j as p,u as r,v as u,w as m}from"./63OLI6P7.js";var v={lastVisibleRow:"last-visible-row"},A=w`: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{--calcite-internal-table-row-background: var(--calcite-table-row-background, var(--calcite-color-foreground-1));--calcite-internal-table-row-border-color: var(--calcite-table-row-border-color, transparent);display:contents}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) tr{pointer-events:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}tr{border-block-end:1px solid var(--calcite-internal-table-row-border-color);background-color:var(--calcite-internal-table-row-background)}tr.last-visible-row{border-block-end:0}`,h=class extends u{constructor(){super(),this.rowCells=[],this.tableRowSlotEl=C(),this.disabled=!1,this.interactionMode="interactive",this.numbered=!1,this.selected=!1,this.selectionMode="none",this.calciteInternalTableRowFocusRequest=r({cancelable:!1}),this.calciteTableRowSelect=r({cancelable:!1}),this.handleSelectionOfRow=()=>{(this.rowType==="body"||this.rowType==="head"&&this.selectionMode==="multiple")&&this.calciteTableRowSelect.emit()},this.handleKeyboardSelection=e=>{T(e.key)&&(e.key===" "&&e.preventDefault(),this.handleSelectionOfRow())},this.listenOn(document,"calciteInternalTableRowFocusChange",this.calciteInternalTableRowFocusChangeHandler)}static{this.properties={alignment:3,bodyRowCount:9,cellCount:9,disabled:7,interactionMode:1,lastVisibleRow:5,numbered:5,positionAll:9,positionSection:9,positionSectionLocalized:1,readCellContentsToAT:5,rowType:1,scale:1,selected:7,selectedRowCount:9,selectedRowCountLocalized:1,selectionMode:1}}static{this.styles=A}load(){this.listenOn(this.el.shadowRoot,"slotchange",this.handleSlotChange)}willUpdate(e){(e.has("bodyRowCount")||e.has("scale")||e.has("selected")&&(this.hasUpdated||this.selected!==!1)||e.has("selectedRowCount")||e.has("interactionMode")&&(this.hasUpdated||this.interactionMode!=="interactive"))&&this.handleCellChanges(),(e.has("numbered")&&(this.hasUpdated||this.numbered!==!1)||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none"))&&this.handleDelayedCellChanges()}updated(){g(this)}loaded(){this.tableRowEl&&this.rowCells.length>0&&this.updateCells()}handleSlotChange(){this.updateCells()}handleCellChanges(){this.tableRowEl&&this.rowCells.length>0&&this.updateCells()}handleDelayedCellChanges(){this.tableRowEl&&this.rowCells.length>0&&requestAnimationFrame(()=>this.updateCells())}calciteInternalTableRowFocusChangeHandler(e){if(e.target.contains(this.el)){let l=e.detail.cellPosition,o=e.detail.rowPosition,i=e.detail.destination,t=e.detail.lastCell;if(o===this.positionAll){if(this.disabled){let b=i==="last"?"previous":i==="first"?"next":i;this.emitTableRowFocusRequest(l,this.positionAll,b);return}let n=t?this.rowCells[this.rowCells.length-1]:this.rowCells?.find((b,$)=>$+1===l);n&&n.setFocus()}}}keyDownHandler(e){if(this.interactionMode!=="interactive")return;let l=e.target,o=e.key,i=e.ctrlKey,t=this.rowCells;if(l.matches("calcite-table-cell")||l.matches("calcite-table-header"))switch(o){case"ArrowUp":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"previous"),e.preventDefault();break;case"ArrowDown":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"next"),e.preventDefault();break;case"PageUp":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"first"),e.preventDefault();break;case"PageDown":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"last"),e.preventDefault();break;case"ArrowLeft":c(t,l,"previous",!1),e.preventDefault();break;case"ArrowRight":c(t,l,"next",!1),e.preventDefault();break;case"Home":i?(this.emitTableRowFocusRequest(1,this.positionAll,"first"),e.preventDefault()):(c(t,l,"first",!1),e.preventDefault());break;case"End":i?(this.emitTableRowFocusRequest(this.rowCells?.length,this.positionAll,"last",!0),e.preventDefault()):(c(t,l,"last",!1),e.preventDefault());break}}emitTableRowFocusRequest(e,l,o,i){this.calciteInternalTableRowFocusRequest.emit({cellPosition:e,rowPosition:l,destination:o,lastCell:i})}updateCells(){let e=this.alignment?this.alignment:this.rowType!=="head"?"center":"start",l=this.tableRowSlotEl.value?.assignedElements({flatten:!0})?.filter(t=>t.matches("calcite-table-cell")||t.matches("calcite-table-header")),o=Array.from(this.tableRowEl?.querySelectorAll("calcite-table-header, calcite-table-cell"))?.filter(t=>t.numberCell||t.selectionCell),i=o?o.concat(l):l;i.length>0&&i?.forEach((t,n)=>{t.interactionMode=this.interactionMode,t.lastCell=n===i.length-1,t.parentRowAlignment=e,t.parentRowIsSelected=this.selected,t.parentRowType=this.rowType,t.positionInRow=n+1,t.scale=this.scale,t.nodeName==="CALCITE-TABLE-CELL"&&(t.readCellContentsToAT=this.readCellContentsToAT,t.disabled=this.disabled)}),this.rowCells=i||[],this.cellCount=i?.length}renderSelectionIcon(){let e=this.selectionMode==="multiple"&&this.selected?"check-square-f":this.selectionMode==="multiple"?"square":this.selected?"circle-f":"circle";return s`<calcite-icon .icon=${e} .scale=${f(this.scale)}></calcite-icon>`}renderSelectableCell(){return this.rowType==="head"?a("selection-head",s`<calcite-table-header alignment=center .bodyRowCount=${this.bodyRowCount} @click=${this.handleSelectionOfRow} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .selectedRowCount=${this.selectedRowCount} .selectedRowCountLocalized=${this.selectedRowCountLocalized} .selectionCell=${!0} .selectionMode=${this.selectionMode}></calcite-table-header>`):this.rowType==="body"?a("selection-body",s`<calcite-table-cell alignment=center @click=${this.handleSelectionOfRow} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .parentRowIsSelected=${this.selected} .parentRowPositionLocalized=${this.positionSectionLocalized} .selectionCell=${!0}>${this.renderSelectionIcon()}</calcite-table-cell>`):a("selection-foot",s`<calcite-table-cell alignment=center .parentRowAlignment=${this.alignment} .selectionCell=${!0}></calcite-table-cell>`)}renderNumberedCell(){return this.rowType==="head"?a("numbered-head",s`<calcite-table-header alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}></calcite-table-header>`):this.rowType==="body"?a("numbered-body",s`<calcite-table-cell alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}>${this.positionSectionLocalized}</calcite-table-cell>`):a("numbered-foot",s`<calcite-table-cell alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}></calcite-table-cell>`)}render(){return y({disabled:this.disabled,children:s`<tr .ariaRowIndex=${this.positionAll+1} .ariaSelected=${this.selected} class=${m({[v.lastVisibleRow]:this.lastVisibleRow})} @keydown=${this.keyDownHandler} ${d(e=>{e&&(this.tableRowEl=e,p(s`${this.numbered&&this.renderNumberedCell()||""}${this.selectionMode!=="none"&&this.renderSelectableCell()||""}<slot ${d(this.tableRowSlotEl)}></slot>`,e))})}></tr>`})}};R("calcite-table-row",h);export{h as TableRow};
6
+ import{a as g,b as y}from"./W2FB2QYD.js";import{a}from"./APHW6Y7L.js";import{a as f}from"./ZZUK2PZT.js";import"./J5EDYYSO.js";import{a as T}from"./HIPOY2NM.js";import{a as C,b as d}from"./EYMPZ5LS.js";import{z as c}from"./QN3MCGXI.js";import"./6IF2S4G7.js";import{I as R,d as w,e as s,j as p,u as r,v as u,w as m}from"./CLIL5L4C.js";var v={lastVisibleRow:"last-visible-row"},A=w`: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{--calcite-internal-table-row-background: var(--calcite-table-row-background, var(--calcite-color-foreground-1));--calcite-internal-table-row-border-color: var(--calcite-table-row-border-color, transparent);display:contents}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) tr{pointer-events:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}tr{border-block-end:1px solid var(--calcite-internal-table-row-border-color);background-color:var(--calcite-internal-table-row-background)}tr.last-visible-row{border-block-end:0}`,h=class extends u{constructor(){super(),this.rowCells=[],this.tableRowSlotEl=C(),this.disabled=!1,this.interactionMode="interactive",this.numbered=!1,this.selected=!1,this.selectionMode="none",this.calciteInternalTableRowFocusRequest=r({cancelable:!1}),this.calciteTableRowSelect=r({cancelable:!1}),this.handleSelectionOfRow=()=>{(this.rowType==="body"||this.rowType==="head"&&this.selectionMode==="multiple")&&this.calciteTableRowSelect.emit()},this.handleKeyboardSelection=e=>{T(e.key)&&(e.key===" "&&e.preventDefault(),this.handleSelectionOfRow())},this.listenOn(document,"calciteInternalTableRowFocusChange",this.calciteInternalTableRowFocusChangeHandler)}static{this.properties={alignment:3,bodyRowCount:9,cellCount:9,disabled:7,interactionMode:1,lastVisibleRow:5,numbered:5,positionAll:9,positionSection:9,positionSectionLocalized:1,readCellContentsToAT:5,rowType:1,scale:1,selected:7,selectedRowCount:9,selectedRowCountLocalized:1,selectionMode:1}}static{this.styles=A}load(){this.listenOn(this.el.shadowRoot,"slotchange",this.handleSlotChange)}willUpdate(e){(e.has("bodyRowCount")||e.has("scale")||e.has("selected")&&(this.hasUpdated||this.selected!==!1)||e.has("selectedRowCount")||e.has("interactionMode")&&(this.hasUpdated||this.interactionMode!=="interactive"))&&this.handleCellChanges(),(e.has("numbered")&&(this.hasUpdated||this.numbered!==!1)||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none"))&&this.handleDelayedCellChanges()}updated(){g(this)}loaded(){this.tableRowEl&&this.rowCells.length>0&&this.updateCells()}handleSlotChange(){this.updateCells()}handleCellChanges(){this.tableRowEl&&this.rowCells.length>0&&this.updateCells()}handleDelayedCellChanges(){this.tableRowEl&&this.rowCells.length>0&&requestAnimationFrame(()=>this.updateCells())}calciteInternalTableRowFocusChangeHandler(e){if(e.target.contains(this.el)){let l=e.detail.cellPosition,o=e.detail.rowPosition,i=e.detail.destination,t=e.detail.lastCell;if(o===this.positionAll){if(this.disabled){let b=i==="last"?"previous":i==="first"?"next":i;this.emitTableRowFocusRequest(l,this.positionAll,b);return}let n=t?this.rowCells[this.rowCells.length-1]:this.rowCells?.find((b,$)=>$+1===l);n&&n.setFocus()}}}keyDownHandler(e){if(this.interactionMode!=="interactive")return;let l=e.target,o=e.key,i=e.ctrlKey,t=this.rowCells;if(l.matches("calcite-table-cell")||l.matches("calcite-table-header"))switch(o){case"ArrowUp":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"previous"),e.preventDefault();break;case"ArrowDown":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"next"),e.preventDefault();break;case"PageUp":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"first"),e.preventDefault();break;case"PageDown":this.emitTableRowFocusRequest(l.positionInRow,this.positionAll,"last"),e.preventDefault();break;case"ArrowLeft":c(t,l,"previous",!1),e.preventDefault();break;case"ArrowRight":c(t,l,"next",!1),e.preventDefault();break;case"Home":i?(this.emitTableRowFocusRequest(1,this.positionAll,"first"),e.preventDefault()):(c(t,l,"first",!1),e.preventDefault());break;case"End":i?(this.emitTableRowFocusRequest(this.rowCells?.length,this.positionAll,"last",!0),e.preventDefault()):(c(t,l,"last",!1),e.preventDefault());break}}emitTableRowFocusRequest(e,l,o,i){this.calciteInternalTableRowFocusRequest.emit({cellPosition:e,rowPosition:l,destination:o,lastCell:i})}updateCells(){let e=this.alignment?this.alignment:this.rowType!=="head"?"center":"start",l=this.tableRowSlotEl.value?.assignedElements({flatten:!0})?.filter(t=>t.matches("calcite-table-cell")||t.matches("calcite-table-header")),o=Array.from(this.tableRowEl?.querySelectorAll("calcite-table-header, calcite-table-cell"))?.filter(t=>t.numberCell||t.selectionCell),i=o?o.concat(l):l;i.length>0&&i?.forEach((t,n)=>{t.interactionMode=this.interactionMode,t.lastCell=n===i.length-1,t.parentRowAlignment=e,t.parentRowIsSelected=this.selected,t.parentRowType=this.rowType,t.positionInRow=n+1,t.scale=this.scale,t.nodeName==="CALCITE-TABLE-CELL"&&(t.readCellContentsToAT=this.readCellContentsToAT,t.disabled=this.disabled)}),this.rowCells=i||[],this.cellCount=i?.length}renderSelectionIcon(){let e=this.selectionMode==="multiple"&&this.selected?"check-square-f":this.selectionMode==="multiple"?"square":this.selected?"circle-f":"circle";return s`<calcite-icon .icon=${e} .scale=${f(this.scale)}></calcite-icon>`}renderSelectableCell(){return this.rowType==="head"?a("selection-head",s`<calcite-table-header alignment=center .bodyRowCount=${this.bodyRowCount} @click=${this.handleSelectionOfRow} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .selectedRowCount=${this.selectedRowCount} .selectedRowCountLocalized=${this.selectedRowCountLocalized} .selectionCell=${!0} .selectionMode=${this.selectionMode}></calcite-table-header>`):this.rowType==="body"?a("selection-body",s`<calcite-table-cell alignment=center @click=${this.handleSelectionOfRow} @keydown=${this.handleKeyboardSelection} .parentRowAlignment=${this.alignment} .parentRowIsSelected=${this.selected} .parentRowPositionLocalized=${this.positionSectionLocalized} .selectionCell=${!0}>${this.renderSelectionIcon()}</calcite-table-cell>`):a("selection-foot",s`<calcite-table-cell alignment=center .parentRowAlignment=${this.alignment} .selectionCell=${!0}></calcite-table-cell>`)}renderNumberedCell(){return this.rowType==="head"?a("numbered-head",s`<calcite-table-header alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}></calcite-table-header>`):this.rowType==="body"?a("numbered-body",s`<calcite-table-cell alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}>${this.positionSectionLocalized}</calcite-table-cell>`):a("numbered-foot",s`<calcite-table-cell alignment=center .numberCell=${!0} .parentRowAlignment=${this.alignment}></calcite-table-cell>`)}render(){return y({disabled:this.disabled,children:s`<tr .ariaRowIndex=${this.positionAll+1} .ariaSelected=${this.selected} class=${m({[v.lastVisibleRow]:this.lastVisibleRow})} @keydown=${this.keyDownHandler} ${d(e=>{e&&(this.tableRowEl=e,p(s`${this.numbered&&this.renderNumberedCell()||""}${this.selectionMode!=="none"&&this.renderSelectableCell()||""}<slot ${d(this.tableRowSlotEl)}></slot>`,e))})}></tr>`})}};R("calcite-table-row",h);export{h as TableRow};
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{b as l,c}from"./QOYXTPGC.js";var b=(n,f,i)=>{let u=l(f),p=new RegExp(u,"i");n.length===0&&console.warn(`No data was passed to the filter function.
6
+ import{b as l,c}from"./GMC6LLGK.js";var b=(n,f,i)=>{let u=l(f),p=new RegExp(u,"i");n.length===0&&console.warn(`No data was passed to the filter function.
7
7
  The data argument should be an array of objects`);let o=(r,a,s)=>{if(r?.constant||r?.filterDisabled)return!0;let e=!1;return c(r,(t,d)=>{typeof t=="function"||t==null||s&&!s.includes(d)||(Array.isArray(t)||typeof t=="object"&&t!==null?o(t,a)&&(e=!0):a.test(t)&&(e=!0))}),e};return n.filter(r=>o(r,p,i))};export{b as a};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as m,b as u}from"./JONZN467.js";import{a as h}from"./ROGYYCL2.js";import{b as p}from"./22S23ZFY.js";import{z as i}from"./CFNFWFTC.js";import"./ZHBSGL57.js";import{I as d,d as l,e as c,u as o,v as n,w as r}from"./63OLI6P7.js";var b={container:"container"},f=l`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-sizing:border-box;display:inline-block}:host ::slotted(calcite-tile){margin-block-end:var(--calcite-spacing-px);margin-inline-end:var(--calcite-spacing-px)}.container{display:grid;grid-auto-rows:minmax(auto,1fr)}:host([scale=s]) .container{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}:host([scale=m]) .container{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}:host([scale=l]) .container{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}:host([layout=vertical]) .container{display:flex;flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends n{constructor(){super(),this.items=[],this.mutationObserver=h("mutation",()=>this.updateTiles()),this.alignment="start",this.disabled=!1,this.layout="horizontal",this.scale="m",this.selectedItems=[],this.selectionAppearance="icon",this.selectionMode="none",this.calciteTileGroupSelect=o({cancelable:!1}),this.listen("calciteInternalTileKeyEvent",this.calciteInternalTileKeyEventListener),this.listen("calciteTileSelect",this.calciteTileSelectHandler)}static{this.properties={alignment:3,disabled:7,label:1,layout:3,scale:3,selectedItems:0,selectionAppearance:3,selectionMode:3}}static{this.styles=f}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0}),this.updateTiles()}willUpdate(e){(e.has("scale")&&(this.hasUpdated||this.scale!=="m")||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")||e.has("selectionAppearance")&&(this.hasUpdated||this.selectionAppearance!=="icon"))&&this.updateTiles()}updated(){m(this)}loaded(){this.updateSelectedItems()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getSlottedTiles(){return this.slotEl?.assignedElements({flatten:!0}).filter(e=>e?.matches("calcite-tile"))}selectItem(e){e&&(this.items?.forEach(t=>{let s=e===t;switch(this.selectionMode){case"multiple":s&&(t.selected=!t.selected);break;case"single":t.selected=s&&!t.selected;break;case"single-persist":t.selected=!!s;break}}),this.updateSelectedItems(),this.calciteTileGroupSelect.emit())}setSlotEl(e){this.slotEl=e}updateSelectedItems(){let e=this.items?.filter(t=>t.selected);(this.selectionMode==="single"||this.selectionMode==="single-persist")&&e?.length>1?(this.selectedItems=[e.pop()],this.items?.forEach(t=>{this.selectedItems.indexOf(t)===-1&&(t.selected=!1)})):this.selectedItems=e??[]}updateTiles(){this.items=this.getSlottedTiles(),this.items?.forEach(e=>{e.alignment=this.alignment,e.interactive=!0,e.layout=this.layout,e.scale=this.scale,e.selectionAppearance=this.selectionAppearance,e.selectionMode=this.selectionMode}),this.updateSelectedItems()}calciteInternalTileKeyEventListener(e){if(e.composedPath().includes(this.el)){e.preventDefault(),e.stopPropagation();let t=this.items?.filter(s=>!s.disabled);switch(e.detail.key){case"ArrowDown":case"ArrowRight":i(t,e.detail.target,"next");break;case"ArrowUp":case"ArrowLeft":i(t,e.detail.target,"previous");break;case"Home":i(t,e.detail.target,"first");break;case"End":i(t,e.detail.target,"last");break}}}calciteTileSelectHandler(e){e.composedPath().includes(this.el)&&this.selectItem(e.target)}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup";return u({disabled:this.disabled,children:c`<div .ariaLabel=${this.label} class=${r(b.container)} .role=${e}><slot @slotchange=${this.updateTiles} ${p(this.setSlotEl)}></slot></div>`})}};d("calcite-tile-group",a);export{a as TileGroup};
6
+ import{a as m,b as u}from"./W2FB2QYD.js";import{a as h}from"./7YJGSRNY.js";import{b as p}from"./EYMPZ5LS.js";import{z as i}from"./QN3MCGXI.js";import"./6IF2S4G7.js";import{I as d,d as l,e as c,u as o,v as n,w as r}from"./CLIL5L4C.js";var b={container:"container"},f=l`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-sizing:border-box;display:inline-block}:host ::slotted(calcite-tile){margin-block-end:var(--calcite-spacing-px);margin-inline-end:var(--calcite-spacing-px)}.container{display:grid;grid-auto-rows:minmax(auto,1fr)}:host([scale=s]) .container{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}:host([scale=m]) .container{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}:host([scale=l]) .container{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}:host([layout=vertical]) .container{display:flex;flex-direction:column}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends n{constructor(){super(),this.items=[],this.mutationObserver=h("mutation",()=>this.updateTiles()),this.alignment="start",this.disabled=!1,this.layout="horizontal",this.scale="m",this.selectedItems=[],this.selectionAppearance="icon",this.selectionMode="none",this.calciteTileGroupSelect=o({cancelable:!1}),this.listen("calciteInternalTileKeyEvent",this.calciteInternalTileKeyEventListener),this.listen("calciteTileSelect",this.calciteTileSelectHandler)}static{this.properties={alignment:3,disabled:7,label:1,layout:3,scale:3,selectedItems:0,selectionAppearance:3,selectionMode:3}}static{this.styles=f}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0}),this.updateTiles()}willUpdate(e){(e.has("scale")&&(this.hasUpdated||this.scale!=="m")||e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="none")||e.has("selectionAppearance")&&(this.hasUpdated||this.selectionAppearance!=="icon"))&&this.updateTiles()}updated(){m(this)}loaded(){this.updateSelectedItems()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}getSlottedTiles(){return this.slotEl?.assignedElements({flatten:!0}).filter(e=>e?.matches("calcite-tile"))}selectItem(e){e&&(this.items?.forEach(t=>{let s=e===t;switch(this.selectionMode){case"multiple":s&&(t.selected=!t.selected);break;case"single":t.selected=s&&!t.selected;break;case"single-persist":t.selected=!!s;break}}),this.updateSelectedItems(),this.calciteTileGroupSelect.emit())}setSlotEl(e){this.slotEl=e}updateSelectedItems(){let e=this.items?.filter(t=>t.selected);(this.selectionMode==="single"||this.selectionMode==="single-persist")&&e?.length>1?(this.selectedItems=[e.pop()],this.items?.forEach(t=>{this.selectedItems.indexOf(t)===-1&&(t.selected=!1)})):this.selectedItems=e??[]}updateTiles(){this.items=this.getSlottedTiles(),this.items?.forEach(e=>{e.alignment=this.alignment,e.interactive=!0,e.layout=this.layout,e.scale=this.scale,e.selectionAppearance=this.selectionAppearance,e.selectionMode=this.selectionMode}),this.updateSelectedItems()}calciteInternalTileKeyEventListener(e){if(e.composedPath().includes(this.el)){e.preventDefault(),e.stopPropagation();let t=this.items?.filter(s=>!s.disabled);switch(e.detail.key){case"ArrowDown":case"ArrowRight":i(t,e.detail.target,"next");break;case"ArrowUp":case"ArrowLeft":i(t,e.detail.target,"previous");break;case"Home":i(t,e.detail.target,"first");break;case"End":i(t,e.detail.target,"last");break}}}calciteTileSelectHandler(e){e.composedPath().includes(this.el)&&this.selectItem(e.target)}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup";return u({disabled:this.disabled,children:c`<div .ariaLabel=${this.label} class=${r(b.container)} .role=${e}><slot @slotchange=${this.updateTiles} ${p(this.setSlotEl)}></slot></div>`})}};d("calcite-tile-group",a);export{a as TileGroup};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{c}from"./HWUQLJTJ.js";import{g as i}from"./MBNUPNKQ.js";import{J as s}from"./63OLI6P7.js";var a={},r={};async function f(t){let n=i(t);if(a[n])return a[n];r[n]||(r[n]=fetch(s(`./assets/date-picker/nls/${n}.json`)).then(e=>e.json()).catch(()=>(console.error(`Translations for "${n}" not found or invalid, falling back to english`),f("en"))));let o=await r[n];return a[n]=o,o}function u(t){return t.map((n,o)=>c(n,o===1))}export{f as a,u as b};
6
+ import{c}from"./Q7SWUEBY.js";import{g as i}from"./ZXWSWS4U.js";import{J as s}from"./CLIL5L4C.js";var a={},r={};async function f(t){let n=i(t);if(a[n])return a[n];r[n]||(r[n]=fetch(s(`./assets/date-picker/nls/${n}.json`)).then(e=>e.json()).catch(()=>(console.error(`Translations for "${n}" not found or invalid, falling back to english`),f("en"))));let o=await r[n];return a[n]=o,o}function u(t){return t.map((n,o)=>c(n,o===1))}export{f as a,u as b};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{b as d}from"./2P6N4LHN.js";import"./QBDS7DU4.js";function _(a){return a%100==2}function s(a){return a%100==3||a%100==4}function m(a,e,c,n){var r=a+" ";switch(c){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"m":return e?"ena minuta":"eno minuto";case"mm":return _(a)?r+(e||n?"minuti":"minutama"):s(a)?r+(e||n?"minute":"minutami"):r+(e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return _(a)?r+(e||n?"uri":"urama"):s(a)?r+(e||n?"ure":"urami"):r+(e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return _(a)?r+(e||n?"dneva":"dnevoma"):r+(e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return _(a)?r+(e||n?"meseca":"mesecema"):s(a)?r+(e||n?"mesece":"meseci"):r+(e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return _(a)?r+(e||n?"leti":"letoma"):s(a)?r+(e||n?"leta":"leti"):r+(e||n?"let":"leti")}}var l={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_\u010Detrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._\u010Det._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_\u010De_pe_so".split("_"),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:"\u010Dez %s",past:"pred %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};d.locale(l,null,!0);var t=l;export{t as default};
6
+ import{b as d}from"./42YRM6GJ.js";import"./NERIHWDP.js";function _(a){return a%100==2}function s(a){return a%100==3||a%100==4}function m(a,e,c,n){var r=a+" ";switch(c){case"s":return e||n?"nekaj sekund":"nekaj sekundami";case"m":return e?"ena minuta":"eno minuto";case"mm":return _(a)?r+(e||n?"minuti":"minutama"):s(a)?r+(e||n?"minute":"minutami"):r+(e||n?"minut":"minutami");case"h":return e?"ena ura":"eno uro";case"hh":return _(a)?r+(e||n?"uri":"urama"):s(a)?r+(e||n?"ure":"urami"):r+(e||n?"ur":"urami");case"d":return e||n?"en dan":"enim dnem";case"dd":return _(a)?r+(e||n?"dneva":"dnevoma"):r+(e||n?"dni":"dnevi");case"M":return e||n?"en mesec":"enim mesecem";case"MM":return _(a)?r+(e||n?"meseca":"mesecema"):s(a)?r+(e||n?"mesece":"meseci"):r+(e||n?"mesecev":"meseci");case"y":return e||n?"eno leto":"enim letom";case"yy":return _(a)?r+(e||n?"leti":"letoma"):s(a)?r+(e||n?"leta":"leti"):r+(e||n?"let":"leti")}}var l={name:"sl",weekdays:"nedelja_ponedeljek_torek_sreda_\u010Detrtek_petek_sobota".split("_"),months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),weekStart:1,weekdaysShort:"ned._pon._tor._sre._\u010Det._pet._sob.".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdaysMin:"ne_po_to_sr_\u010De_pe_so".split("_"),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:"\u010Dez %s",past:"pred %s",s:m,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};d.locale(l,null,!0);var t=l;export{t as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as V}from"./QBDS7DU4.js";var Z=60,z=Z*60,P=z*24,at=P*7,A=1e3,U=Z*A,k=z*A,Q=P*A,X=at*A,x="millisecond",O="second",p="minute",E="hour",d="day",g="week",S="month",F="quarter",I="year",m="date",J="YYYY-MM-DDTHH:mm:ssZ",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},it=function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},st=function u(t,e){if(t.date()<e.date())return-u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,S),a=e-r<0,i=t.clone().add(n+(a?-1:1),S);return+(-(n+(e-r)/(a?r-i:i-r))||0)},ut=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},ot=function(t){var e={M:S,y:I,w:g,d,D:m,h:E,m:p,s:O,ms:x,Q:F};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},ct=function(t){return t===void 0},tt={s:b,z:it,m:st,a:ut,p:ot,u:ct};var w="en",N={};N[w]=V;var rt="$isDayjsObject",G=function(t){return t instanceof W||!!(t&&t[rt])},R=function u(t,e,n){var r;if(!t)return w;if(typeof t=="string"){var a=t.toLowerCase();N[a]&&(r=a),e&&(N[a]=e,r=a);var i=t.split("-");if(!r&&i.length>1)return u(i[0])}else{var o=t.name;N[o]=t,r=o}return!n&&r&&(w=r),r||!n&&w},C=function(t,e){if(G(t))return t.clone();var n=typeof e=="object"?e:{};return n.date=t,n.args=arguments,new W(n)},ft=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},s=tt;s.l=R;s.i=G;s.w=ft;var ht=function(t){var e=t.date,n=t.utc;if(e===null)return new Date(NaN);if(s.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(K);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)},W=function(){function u(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[rt]=!0}var t=u.prototype;return t.parse=function(n){this.$d=ht(n),this.init()},t.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},t.$utils=function(){return s},t.isValid=function(){return this.$d.toString()!==j},t.isSame=function(n,r){var a=C(n);return this.startOf(r)<=a&&a<=this.endOf(r)},t.isAfter=function(n,r){return C(n)<this.startOf(r)},t.isBefore=function(n,r){return this.endOf(r)<C(n)},t.$g=function(n,r,a){return s.u(n)?this[r]:this.set(a,n)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(n,r){var a=this,i=s.u(r)?!0:r,o=s.p(n),c=function(y,M){var $=s.w(a.$u?Date.UTC(a.$y,M,y):new Date(a.$y,M,y),a);return i?$:$.endOf(d)},v=function(y,M){var $=[0,0,0,0],L=[23,59,59,999];return s.w(a.toDate()[y].apply(a.toDate("s"),(i?$:L).slice(M)),a)},f=this.$W,D=this.$M,h=this.$D,l="set"+(this.$u?"UTC":"");switch(o){case I:return i?c(1,0):c(31,11);case S:return i?c(1,D):c(0,D+1);case g:{var _=this.$locale().weekStart||0,T=(f<_?f+7:f)-_;return c(i?h-T:h+(6-T),D)}case d:case m:return v(l+"Hours",0);case E:return v(l+"Minutes",1);case p:return v(l+"Seconds",2);case O:return v(l+"Milliseconds",3);default:return this.clone()}},t.endOf=function(n){return this.startOf(n,!1)},t.$set=function(n,r){var a,i=s.p(n),o="set"+(this.$u?"UTC":""),c=(a={},a[d]=o+"Date",a[m]=o+"Date",a[S]=o+"Month",a[I]=o+"FullYear",a[E]=o+"Hours",a[p]=o+"Minutes",a[O]=o+"Seconds",a[x]=o+"Milliseconds",a)[i],v=i===d?this.$D+(r-this.$W):r;if(i===S||i===I){var f=this.clone().set(m,1);f.$d[c](v),f.init(),this.$d=f.set(m,Math.min(this.$D,f.daysInMonth())).$d}else c&&this.$d[c](v);return this.init(),this},t.set=function(n,r){return this.clone().$set(n,r)},t.get=function(n){return this[s.p(n)]()},t.add=function(n,r){var a=this,i;n=Number(n);var o=s.p(r),c=function(h){var l=C(a);return s.w(l.date(l.date()+Math.round(h*n)),a)};if(o===S)return this.set(S,this.$M+n);if(o===I)return this.set(I,this.$y+n);if(o===d)return c(1);if(o===g)return c(7);var v=(i={},i[p]=U,i[E]=k,i[O]=A,i)[o]||1,f=this.$d.getTime()+n*v;return s.w(f,this)},t.subtract=function(n,r){return this.add(n*-1,r)},t.format=function(n){var r=this,a=this.$locale();if(!this.isValid())return a.invalidDate||j;var i=n||J,o=s.z(this),c=this.$H,v=this.$m,f=this.$M,D=a.weekdays,h=a.months,l=a.meridiem,_=function($,L,Y,nt){return $&&($[L]||$(r,i))||Y[L].slice(0,nt)},T=function($){return s.s(c%12||12,$,"0")},H=l||function(M,$,L){var Y=M<12?"AM":"PM";return L?Y.toLowerCase():Y},y=function($){switch($){case"YY":return String(r.$y).slice(-2);case"YYYY":return s.s(r.$y,4,"0");case"M":return f+1;case"MM":return s.s(f+1,2,"0");case"MMM":return _(a.monthsShort,f,h,3);case"MMMM":return _(h,f);case"D":return r.$D;case"DD":return s.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(a.weekdaysMin,r.$W,D,2);case"ddd":return _(a.weekdaysShort,r.$W,D,3);case"dddd":return D[r.$W];case"H":return String(c);case"HH":return s.s(c,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return H(c,v,!0);case"A":return H(c,v,!1);case"m":return String(v);case"mm":return s.s(v,2,"0");case"s":return String(r.$s);case"ss":return s.s(r.$s,2,"0");case"SSS":return s.s(r.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(B,function(M,$){return $||y(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(n,r,a){var i=this,o=s.p(r),c=C(n),v=(c.utcOffset()-this.utcOffset())*U,f=this-c,D=function(){return s.m(i,c)},h;switch(o){case I:h=D()/12;break;case S:h=D();break;case F:h=D()/3;break;case g:h=(f-v)/X;break;case d:h=(f-v)/Q;break;case E:h=f/k;break;case p:h=f/U;break;case O:h=f/A;break;default:h=f;break}return a?h:s.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return N[this.$L]},t.locale=function(n,r){if(!n)return this.$L;var a=this.clone(),i=R(n,r,!0);return i&&(a.$L=i),a},t.clone=function(){return s.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),et=W.prototype;C.prototype=et;[["$ms",x],["$s",O],["$m",p],["$H",E],["$W",d],["$M",S],["$y",I],["$D",m]].forEach(function(u){et[u[1]]=function(t){return this.$g(t,u[0],u[1])}});C.extend=function(u,t){return u.$i||(u(t,W,C),u.$i=!0),C};C.locale=R;C.isDayjs=G;C.unix=function(u){return C(u*1e3)};C.en=N[w];C.Ls=N;C.p={};var St=C;export{J as a,St as b};
6
+ import{a as V}from"./NERIHWDP.js";var Z=60,z=Z*60,P=z*24,at=P*7,A=1e3,U=Z*A,k=z*A,Q=P*A,X=at*A,x="millisecond",O="second",p="minute",E="hour",d="day",g="week",S="month",F="quarter",I="year",m="date",J="YYYY-MM-DDTHH:mm:ssZ",j="Invalid Date",K=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var b=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},it=function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+b(r,2,"0")+":"+b(a,2,"0")},st=function u(t,e){if(t.date()<e.date())return-u(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,S),a=e-r<0,i=t.clone().add(n+(a?-1:1),S);return+(-(n+(e-r)/(a?r-i:i-r))||0)},ut=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},ot=function(t){var e={M:S,y:I,w:g,d,D:m,h:E,m:p,s:O,ms:x,Q:F};return e[t]||String(t||"").toLowerCase().replace(/s$/,"")},ct=function(t){return t===void 0},tt={s:b,z:it,m:st,a:ut,p:ot,u:ct};var w="en",N={};N[w]=V;var rt="$isDayjsObject",G=function(t){return t instanceof W||!!(t&&t[rt])},R=function u(t,e,n){var r;if(!t)return w;if(typeof t=="string"){var a=t.toLowerCase();N[a]&&(r=a),e&&(N[a]=e,r=a);var i=t.split("-");if(!r&&i.length>1)return u(i[0])}else{var o=t.name;N[o]=t,r=o}return!n&&r&&(w=r),r||!n&&w},C=function(t,e){if(G(t))return t.clone();var n=typeof e=="object"?e:{};return n.date=t,n.args=arguments,new W(n)},ft=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})},s=tt;s.l=R;s.i=G;s.w=ft;var ht=function(t){var e=t.date,n=t.utc;if(e===null)return new Date(NaN);if(s.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var r=e.match(K);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)},W=function(){function u(e){this.$L=R(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[rt]=!0}var t=u.prototype;return t.parse=function(n){this.$d=ht(n),this.init()},t.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},t.$utils=function(){return s},t.isValid=function(){return this.$d.toString()!==j},t.isSame=function(n,r){var a=C(n);return this.startOf(r)<=a&&a<=this.endOf(r)},t.isAfter=function(n,r){return C(n)<this.startOf(r)},t.isBefore=function(n,r){return this.endOf(r)<C(n)},t.$g=function(n,r,a){return s.u(n)?this[r]:this.set(a,n)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(n,r){var a=this,i=s.u(r)?!0:r,o=s.p(n),c=function(y,M){var $=s.w(a.$u?Date.UTC(a.$y,M,y):new Date(a.$y,M,y),a);return i?$:$.endOf(d)},v=function(y,M){var $=[0,0,0,0],L=[23,59,59,999];return s.w(a.toDate()[y].apply(a.toDate("s"),(i?$:L).slice(M)),a)},f=this.$W,D=this.$M,h=this.$D,l="set"+(this.$u?"UTC":"");switch(o){case I:return i?c(1,0):c(31,11);case S:return i?c(1,D):c(0,D+1);case g:{var _=this.$locale().weekStart||0,T=(f<_?f+7:f)-_;return c(i?h-T:h+(6-T),D)}case d:case m:return v(l+"Hours",0);case E:return v(l+"Minutes",1);case p:return v(l+"Seconds",2);case O:return v(l+"Milliseconds",3);default:return this.clone()}},t.endOf=function(n){return this.startOf(n,!1)},t.$set=function(n,r){var a,i=s.p(n),o="set"+(this.$u?"UTC":""),c=(a={},a[d]=o+"Date",a[m]=o+"Date",a[S]=o+"Month",a[I]=o+"FullYear",a[E]=o+"Hours",a[p]=o+"Minutes",a[O]=o+"Seconds",a[x]=o+"Milliseconds",a)[i],v=i===d?this.$D+(r-this.$W):r;if(i===S||i===I){var f=this.clone().set(m,1);f.$d[c](v),f.init(),this.$d=f.set(m,Math.min(this.$D,f.daysInMonth())).$d}else c&&this.$d[c](v);return this.init(),this},t.set=function(n,r){return this.clone().$set(n,r)},t.get=function(n){return this[s.p(n)]()},t.add=function(n,r){var a=this,i;n=Number(n);var o=s.p(r),c=function(h){var l=C(a);return s.w(l.date(l.date()+Math.round(h*n)),a)};if(o===S)return this.set(S,this.$M+n);if(o===I)return this.set(I,this.$y+n);if(o===d)return c(1);if(o===g)return c(7);var v=(i={},i[p]=U,i[E]=k,i[O]=A,i)[o]||1,f=this.$d.getTime()+n*v;return s.w(f,this)},t.subtract=function(n,r){return this.add(n*-1,r)},t.format=function(n){var r=this,a=this.$locale();if(!this.isValid())return a.invalidDate||j;var i=n||J,o=s.z(this),c=this.$H,v=this.$m,f=this.$M,D=a.weekdays,h=a.months,l=a.meridiem,_=function($,L,Y,nt){return $&&($[L]||$(r,i))||Y[L].slice(0,nt)},T=function($){return s.s(c%12||12,$,"0")},H=l||function(M,$,L){var Y=M<12?"AM":"PM";return L?Y.toLowerCase():Y},y=function($){switch($){case"YY":return String(r.$y).slice(-2);case"YYYY":return s.s(r.$y,4,"0");case"M":return f+1;case"MM":return s.s(f+1,2,"0");case"MMM":return _(a.monthsShort,f,h,3);case"MMMM":return _(h,f);case"D":return r.$D;case"DD":return s.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return _(a.weekdaysMin,r.$W,D,2);case"ddd":return _(a.weekdaysShort,r.$W,D,3);case"dddd":return D[r.$W];case"H":return String(c);case"HH":return s.s(c,2,"0");case"h":return T(1);case"hh":return T(2);case"a":return H(c,v,!0);case"A":return H(c,v,!1);case"m":return String(v);case"mm":return s.s(v,2,"0");case"s":return String(r.$s);case"ss":return s.s(r.$s,2,"0");case"SSS":return s.s(r.$ms,3,"0");case"Z":return o;default:break}return null};return i.replace(B,function(M,$){return $||y(M)||o.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(n,r,a){var i=this,o=s.p(r),c=C(n),v=(c.utcOffset()-this.utcOffset())*U,f=this-c,D=function(){return s.m(i,c)},h;switch(o){case I:h=D()/12;break;case S:h=D();break;case F:h=D()/3;break;case g:h=(f-v)/X;break;case d:h=(f-v)/Q;break;case E:h=f/k;break;case p:h=f/U;break;case O:h=f/A;break;default:h=f;break}return a?h:s.a(h)},t.daysInMonth=function(){return this.endOf(S).$D},t.$locale=function(){return N[this.$L]},t.locale=function(n,r){if(!n)return this.$L;var a=this.clone(),i=R(n,r,!0);return i&&(a.$L=i),a},t.clone=function(){return s.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},u}(),et=W.prototype;C.prototype=et;[["$ms",x],["$s",O],["$m",p],["$H",E],["$W",d],["$M",S],["$y",I],["$D",m]].forEach(function(u){et[u[1]]=function(t){return this.$g(t,u[0],u[1])}});C.extend=function(u,t){return u.$i||(u(t,W,C),u.$i=!0),C};C.locale=R;C.isDayjs=G;C.unix=function(u){return C(u*1e3)};C.en=N[w];C.Ls=N;C.p={};var St=C;export{J as a,St as b};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
- * v3.0.0-next.45
4
+ * v3.0.0-next.46
5
5
  */
6
- import{a as S,b as E}from"./JONZN467.js";import{b as C}from"./22S23ZFY.js";import{u as z}from"./CFNFWFTC.js";import{a as w,b as $,d as y}from"./IJTKZGU6.js";import"./ZHBSGL57.js";import{I as k,d as u,e as o,u as v,v as f,w as n,y as x}from"./63OLI6P7.js";var t={container:"container",contentContainer:"content-container",contentContainerHasContent:"content-container--has-content",contentContainerHasOnlyContentTopAndBottom:"content-container--has-only-content-top-and-bottom",textContentContainer:"text-content-container",description:"description",heading:"heading",icon:"icon",interactive:"interactive",largeVisualDeprecated:"large-visual-deprecated",row:"row",selected:"selected",selectionIcon:"selection-icon",textContent:"text-content"},r={selectedMultiple:"check-square-f",selectedSingle:"circle-f",unselectedMultiple:"square",unselectedSingle:"circle"},d={contentBottom:"content-bottom",contentEnd:"content-end",contentStart:"content-start",contentTop:"content-top"},D=u`: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{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-color-foreground-1));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));position:relative}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive.selected{z-index:var(--calcite-z-index)}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index-sticky)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-2));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}.large-visual-deprecated{align-items:center;justify-content:center;min-block-size:12rem;text-align:center}.large-visual-deprecated calcite-icon{align-self:center;block-size:64px;inline-size:64px}.large-visual-deprecated .text-content-container{justify-content:center}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-start]::slotted(*),:host([alignment=center]) slot[name=content-end]::slotted(*){align-self:center}:host([scale=s]){max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .container{padding:var(--calcite-spacing-sm)}:host([scale=s]) .content-container--has-content,:host([scale=s]) .row{gap:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size--3);line-height:.85938rem}:host([scale=s]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]){max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .container{padding:var(--calcite-spacing-md)}:host([scale=m]) .content-container--has-content,:host([scale=m]) .row{gap:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=m]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-md)}:host([scale=l]){max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .container{padding:var(--calcite-spacing-lg)}:host([scale=l]) .content-container--has-content,:host([scale=l]) .row{gap:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-0);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=l]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-lg)}:host([selection-appearance=border][layout=horizontal]) .container.selected:focus:before,:host([selection-appearance=border][layout=vertical]) .container.selected:focus:before{block-size:100%;box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));content:"";display:block;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute}:host([selection-appearance=border][layout=horizontal]) .container.selected{box-shadow:inset 0 -4px 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([selection-appearance=border][layout=vertical]) .container.selected{box-shadow:inset 4px 0 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host(:hover:not([disabled])) .heading,:host([active]:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description,:host([active]:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));position:relative;z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([embed]) .container{padding:0}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`,p=class extends f{constructor(){super(),this.hasContentBottom=!1,this.hasContentEnd=!1,this.hasContentStart=!1,this.hasContentTop=!1,this.active=!1,this.alignment="start",this.disabled=!1,this.embed=!1,this.iconFlipRtl=!1,this.interactive=!1,this.layout="horizontal",this.scale="m",this.selected=!1,this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalTileKeyEvent=v({cancelable:!1}),this.calciteTileSelect=v(),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasContentBottom:16,hasContentEnd:16,hasContentStart:16,hasContentTop:16,active:7,alignment:3,description:3,disabled:7,embed:7,heading:3,href:3,icon:3,iconFlipRtl:7,interactive:5,label:1,layout:3,scale:3,selected:7,selectionAppearance:3,selectionMode:3}}static{this.styles=D}async setFocus(){await y(this),!this.disabled&&this.interactive&&this.containerEl?.focus()}load(){w(this)}updated(){S(this)}loaded(){$(this)}clickHandler(){this.interactive&&(this.setFocus(),this.handleSelectEvent())}handleSelectEvent(){this.disabled||!this.interactive||this.selectionMode==="single-persist"&&this.selected===!0||this.calciteTileSelect.emit()}handleSlotChange(e){let c=e.target.dataset.name;this[`has${c}`]=z(e)}setContainerEl(e){this.containerEl=e}keyDownHandler(e){if(e.target===this.el)switch(e.key){case" ":case"Enter":this.handleSelectEvent(),e.preventDefault();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"Home":case"End":this.calciteInternalTileKeyEvent.emit(e),e.preventDefault();break}}renderSelectionIcon(){let{selected:e,selectionAppearance:c,selectionMode:a}=this;if(c==="icon"&&a!=="none")return o`<calcite-icon class=${n(t.selectionIcon)} .icon=${e?a==="multiple"?r.selectedMultiple:r.selectedSingle:a==="multiple"?r.unselectedMultiple:r.unselectedSingle} scale=s></calcite-icon>`}renderTile(){let{description:e,disabled:c,hasContentBottom:a,hasContentEnd:T,hasContentStart:M,hasContentTop:A,heading:l,icon:s,iconFlipRtl:H,interactive:i,selectionMode:h}=this,B=l&&s&&!e,m=!!this.href||!i,b=h==="multiple"&&i?"checkbox":h!=="none"&&i?"radio":i?"button":void 0,g=!!(e||T||M||l||s),I=!g&&A&&a;return o`<div .ariaChecked=${h!=="none"&&i?this.selected:void 0} .ariaDisabled=${m?c:void 0} .ariaLabel=${b&&this.label} class=${n({[t.container]:!0,[t.interactive]:i,[t.largeVisualDeprecated]:B,[t.row]:!0,[t.selected]:this.selected})} @click=${this.clickHandler} .role=${b} tabindex=${(m?void 0:0)??x} ${C(this.setContainerEl)}>${this.renderSelectionIcon()}<div class=${n({[t.contentContainer]:!0,[t.contentContainerHasContent]:g,[t.contentContainerHasOnlyContentTopAndBottom]:I})}><slot data-name=ContentTop name=${d.contentTop} @slotchange=${this.handleSlotChange}></slot>${s&&o`<calcite-icon class=${n(t.icon)} .flipRtl=${H} .icon=${s} scale=l></calcite-icon>`||""}<div class=${n({[t.textContentContainer]:!0,[t.row]:!0})}><slot data-name=ContentStart name=${d.contentStart} @slotchange=${this.handleSlotChange}></slot><div class=${n(t.textContent)}>${l&&o`<div class=${n(t.heading)}>${l}</div>`||""}${e&&o`<div class=${n(t.description)}>${e}</div>`||""}</div><slot data-name=ContentEnd name=${d.contentEnd} @slotchange=${this.handleSlotChange}></slot></div><slot data-name=ContentBottom name=${d.contentBottom} @slotchange=${this.handleSlotChange}></slot></div></div>`}render(){let{disabled:e}=this;return E({disabled:e,children:this.href?o`<calcite-link .disabled=${e} .href=${this.href}>${this.renderTile()}</calcite-link>`:this.renderTile()})}};k("calcite-tile",p);export{p as Tile};
6
+ import{a as S,b as E}from"./W2FB2QYD.js";import{b as C}from"./EYMPZ5LS.js";import{u as z}from"./QN3MCGXI.js";import{a as w,b as $,d as y}from"./F4KH5HSL.js";import"./6IF2S4G7.js";import{I as k,d as u,e as o,u as v,v as f,w as n,y as x}from"./CLIL5L4C.js";var t={container:"container",contentContainer:"content-container",contentContainerHasContent:"content-container--has-content",contentContainerHasOnlyContentTopAndBottom:"content-container--has-only-content-top-and-bottom",textContentContainer:"text-content-container",description:"description",heading:"heading",icon:"icon",interactive:"interactive",largeVisualDeprecated:"large-visual-deprecated",row:"row",selected:"selected",selectionIcon:"selection-icon",textContent:"text-content"},r={selectedMultiple:"check-square-f",selectedSingle:"circle-f",unselectedMultiple:"square",unselectedSingle:"circle"},d={contentBottom:"content-bottom",contentEnd:"content-end",contentStart:"content-start",contentTop:"content-top"},D=u`: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{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-color-foreground-1));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));position:relative}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive.selected{z-index:var(--calcite-z-index)}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index-sticky)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-2));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}.large-visual-deprecated{align-items:center;justify-content:center;min-block-size:12rem;text-align:center}.large-visual-deprecated calcite-icon{align-self:center;block-size:64px;inline-size:64px}.large-visual-deprecated .text-content-container{justify-content:center}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-start]::slotted(*),:host([alignment=center]) slot[name=content-end]::slotted(*){align-self:center}:host([scale=s]){max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .container{padding:var(--calcite-spacing-sm)}:host([scale=s]) .content-container--has-content,:host([scale=s]) .row{gap:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size--3);line-height:.85938rem}:host([scale=s]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]){max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .container{padding:var(--calcite-spacing-md)}:host([scale=m]) .content-container--has-content,:host([scale=m]) .row{gap:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size--2);line-height:1.03125rem}:host([scale=m]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-md)}:host([scale=l]){max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .container{padding:var(--calcite-spacing-lg)}:host([scale=l]) .content-container--has-content,:host([scale=l]) .row{gap:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-0);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size--1);line-height:1.20313rem}:host([scale=l]) .content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-spacing-lg)}:host([selection-appearance=border][layout=horizontal]) .container.selected:focus:before,:host([selection-appearance=border][layout=vertical]) .container.selected:focus:before{block-size:100%;box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));content:"";display:block;inline-size:100%;inset-block-start:0;inset-inline-start:0;position:absolute}:host([selection-appearance=border][layout=horizontal]) .container.selected{box-shadow:inset 0 -4px 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([selection-appearance=border][layout=vertical]) .container.selected{box-shadow:inset 4px 0 0 0 var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host(:hover:not([disabled])) .heading,:host([active]:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description,:host([active]:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));position:relative;z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([embed]) .container{padding:0}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`,p=class extends f{constructor(){super(),this.hasContentBottom=!1,this.hasContentEnd=!1,this.hasContentStart=!1,this.hasContentTop=!1,this.active=!1,this.alignment="start",this.disabled=!1,this.embed=!1,this.iconFlipRtl=!1,this.interactive=!1,this.layout="horizontal",this.scale="m",this.selected=!1,this.selectionAppearance="icon",this.selectionMode="none",this.calciteInternalTileKeyEvent=v({cancelable:!1}),this.calciteTileSelect=v(),this.listen("keydown",this.keyDownHandler)}static{this.properties={hasContentBottom:16,hasContentEnd:16,hasContentStart:16,hasContentTop:16,active:7,alignment:3,description:3,disabled:7,embed:7,heading:3,href:3,icon:3,iconFlipRtl:7,interactive:5,label:1,layout:3,scale:3,selected:7,selectionAppearance:3,selectionMode:3}}static{this.styles=D}async setFocus(){await y(this),!this.disabled&&this.interactive&&this.containerEl?.focus()}load(){w(this)}updated(){S(this)}loaded(){$(this)}clickHandler(){this.interactive&&(this.setFocus(),this.handleSelectEvent())}handleSelectEvent(){this.disabled||!this.interactive||this.selectionMode==="single-persist"&&this.selected===!0||this.calciteTileSelect.emit()}handleSlotChange(e){let c=e.target.dataset.name;this[`has${c}`]=z(e)}setContainerEl(e){this.containerEl=e}keyDownHandler(e){if(e.target===this.el)switch(e.key){case" ":case"Enter":this.handleSelectEvent(),e.preventDefault();break;case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"Home":case"End":this.calciteInternalTileKeyEvent.emit(e),e.preventDefault();break}}renderSelectionIcon(){let{selected:e,selectionAppearance:c,selectionMode:a}=this;if(c==="icon"&&a!=="none")return o`<calcite-icon class=${n(t.selectionIcon)} .icon=${e?a==="multiple"?r.selectedMultiple:r.selectedSingle:a==="multiple"?r.unselectedMultiple:r.unselectedSingle} scale=s></calcite-icon>`}renderTile(){let{description:e,disabled:c,hasContentBottom:a,hasContentEnd:T,hasContentStart:M,hasContentTop:A,heading:l,icon:s,iconFlipRtl:H,interactive:i,selectionMode:h}=this,B=l&&s&&!e,m=!!this.href||!i,b=h==="multiple"&&i?"checkbox":h!=="none"&&i?"radio":i?"button":void 0,g=!!(e||T||M||l||s),I=!g&&A&&a;return o`<div .ariaChecked=${h!=="none"&&i?this.selected:void 0} .ariaDisabled=${m?c:void 0} .ariaLabel=${b&&this.label} class=${n({[t.container]:!0,[t.interactive]:i,[t.largeVisualDeprecated]:B,[t.row]:!0,[t.selected]:this.selected})} @click=${this.clickHandler} .role=${b} tabindex=${(m?void 0:0)??x} ${C(this.setContainerEl)}>${this.renderSelectionIcon()}<div class=${n({[t.contentContainer]:!0,[t.contentContainerHasContent]:g,[t.contentContainerHasOnlyContentTopAndBottom]:I})}><slot data-name=ContentTop name=${d.contentTop} @slotchange=${this.handleSlotChange}></slot>${s&&o`<calcite-icon class=${n(t.icon)} .flipRtl=${H} .icon=${s} scale=l></calcite-icon>`||""}<div class=${n({[t.textContentContainer]:!0,[t.row]:!0})}><slot data-name=ContentStart name=${d.contentStart} @slotchange=${this.handleSlotChange}></slot><div class=${n(t.textContent)}>${l&&o`<div class=${n(t.heading)}>${l}</div>`||""}${e&&o`<div class=${n(t.description)}>${e}</div>`||""}</div><slot data-name=ContentEnd name=${d.contentEnd} @slotchange=${this.handleSlotChange}></slot></div><slot data-name=ContentBottom name=${d.contentBottom} @slotchange=${this.handleSlotChange}></slot></div></div>`}render(){let{disabled:e}=this;return E({disabled:e,children:this.href?o`<calcite-link .disabled=${e} .href=${this.href}>${this.renderTile()}</calcite-link>`:this.renderTile()})}};k("calcite-tile",p);export{p as Tile};