@esri/calcite-components 3.0.0-next.37 → 3.0.0-next.39

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 (389) hide show
  1. package/dist/calcite/22XJFF5N.js +6 -0
  2. package/dist/calcite/{7H5ISSBB.js → 24SDF7NB.js} +2 -2
  3. package/dist/calcite/{TXJ2Z4MQ.js → 25HVDWSG.js} +2 -2
  4. package/dist/calcite/{QLA4MYQL.js → 2C6OR6FP.js} +2 -2
  5. package/dist/calcite/{T2IH4MOC.js → 2GL5CEME.js} +2 -2
  6. package/dist/calcite/{E3VAO4W4.js → 2JL7FOIZ.js} +2 -2
  7. package/dist/calcite/{FWVV5Q5V.js → 2OGPRYXD.js} +2 -2
  8. package/dist/calcite/{FLXYIYZS.js → 2T5JHKEZ.js} +2 -2
  9. package/dist/calcite/{5VVJ3IXH.js → 325B75KD.js} +2 -2
  10. package/dist/calcite/{ET4KFMHI.js → 36BWB2PN.js} +2 -2
  11. package/dist/calcite/{UZVFS44I.js → 37LO5MDU.js} +2 -2
  12. package/dist/calcite/{GCQ57KBZ.js → 3BVQTQTR.js} +2 -2
  13. package/dist/calcite/{VJ4QNVEE.js → 3MORYYO4.js} +2 -2
  14. package/dist/calcite/{6B6Q3CQA.js → 3NNAQ2QU.js} +2 -2
  15. package/dist/calcite/{ENJAWHUD.js → 3PQBXMNN.js} +2 -2
  16. package/dist/calcite/{O245MO53.js → 3SPYKSCX.js} +2 -2
  17. package/dist/calcite/{MWU6ZADA.js → 4U3MDCEO.js} +2 -2
  18. package/dist/calcite/{MV7UN42F.js → 4UKNSKHA.js} +2 -2
  19. package/dist/calcite/{5C4KW3QA.js → 4VIAW4Q2.js} +2 -2
  20. package/dist/calcite/{HCMOAXE3.js → 57ILAWWO.js} +2 -2
  21. package/dist/calcite/{5MHH76TJ.js → 57JGBZNC.js} +2 -2
  22. package/dist/calcite/{CDQIBBJI.js → 5DMTPAFN.js} +2 -2
  23. package/dist/calcite/{6R4E7UIU.js → 5ET5DZZK.js} +2 -2
  24. package/dist/calcite/{JX4G4LHR.js → 5HQI24VH.js} +2 -2
  25. package/dist/calcite/{DPCL4DHO.js → 5IEXLG63.js} +2 -2
  26. package/dist/calcite/5NIZFQGV.js +6 -0
  27. package/dist/calcite/{DJLUJRBZ.js → 5RWL62FE.js} +2 -2
  28. package/dist/calcite/{EBMFE5BV.js → 5XA4MVOV.js} +2 -2
  29. package/dist/calcite/{E22EPYFG.js → 62CHOJBG.js} +2 -2
  30. package/dist/calcite/{5STEUOFD.js → 64J54G2M.js} +2 -2
  31. package/dist/calcite/{LIM5MROD.js → 67BUCJKA.js} +2 -2
  32. package/dist/calcite/{UGFH5GNY.js → 6GTCG7QQ.js} +2 -2
  33. package/dist/calcite/{FU4NE6EB.js → 6LZS3V5U.js} +1 -1
  34. package/dist/calcite/{VC2OOZAP.js → 6PBLREH4.js} +2 -2
  35. package/dist/calcite/{UQ7QELOR.js → 6RT7QFWS.js} +2 -2
  36. package/dist/calcite/{EN4WJTM3.js → 74XAJB5A.js} +2 -2
  37. package/dist/calcite/{U3GNHWPM.js → 76Y7KOGK.js} +2 -2
  38. package/dist/calcite/{SDR4FMPF.js → 7MPJHDFL.js} +2 -2
  39. package/dist/calcite/{UMMLCWU2.js → 7TAG4HLJ.js} +2 -2
  40. package/dist/calcite/{KAK7UCZZ.js → 7TBAE42A.js} +2 -2
  41. package/dist/calcite/{M5VZV6GK.js → AFBVGDXS.js} +2 -2
  42. package/dist/calcite/{65522WAF.js → AG3SBTL6.js} +2 -2
  43. package/dist/calcite/{BVFIIR5X.js → AHJ2HIYZ.js} +2 -2
  44. package/dist/calcite/{3D7DMGDA.js → AQKOS63C.js} +2 -2
  45. package/dist/calcite/{NHINHS2M.js → ATFXOAWN.js} +2 -2
  46. package/dist/calcite/{BACCFA5T.js → AUJ5K7YO.js} +2 -2
  47. package/dist/calcite/{WOX26X35.js → AZ5BEGMI.js} +2 -2
  48. package/dist/calcite/{6MHXSWKF.js → B2FSZYG6.js} +2 -2
  49. package/dist/calcite/{CSH4UMWO.js → B4R6OJTW.js} +2 -2
  50. package/dist/calcite/{OSPO7MBN.js → B6AT23CB.js} +2 -2
  51. package/dist/calcite/{OSZCLE2U.js → BE5AX32E.js} +1 -1
  52. package/dist/calcite/{TJT744T7.js → BE76SEOG.js} +2 -2
  53. package/dist/calcite/{22XA6USJ.js → BM7LEVLU.js} +2 -2
  54. package/dist/calcite/BRJ6JFKQ.js +6 -0
  55. package/dist/calcite/{NJZQDO2U.js → BUMJC6Q7.js} +2 -2
  56. package/dist/calcite/{CKVF5BR2.js → CAAIOZPB.js} +2 -2
  57. package/dist/calcite/{VAK4XXJD.js → CBN6AV4D.js} +2 -2
  58. package/dist/calcite/CENW6RY7.js +6 -0
  59. package/dist/calcite/{X5D3BNEK.js → CF3A6274.js} +2 -2
  60. package/dist/calcite/{WZXIEKNA.js → CKXX7CCV.js} +1 -1
  61. package/dist/calcite/{ORUER3GJ.js → CMFZUGNA.js} +2 -2
  62. package/dist/calcite/{CPEQYBMD.js → CPSRRWN6.js} +2 -2
  63. package/dist/calcite/{7MPILIVM.js → CUG4WYGL.js} +2 -2
  64. package/dist/calcite/{WYTJSBQS.js → CYQYHIFI.js} +1 -1
  65. package/dist/calcite/{D2T3ZGXF.js → D3NP3WDO.js} +2 -2
  66. package/dist/calcite/{YNRYDCOT.js → D3O7UYCO.js} +2 -2
  67. package/dist/calcite/{XIN57JR4.js → DBJBMD3Z.js} +2 -2
  68. package/dist/calcite/{QURX3L6Z.js → DBZSKNCF.js} +1 -1
  69. package/dist/calcite/{CI4T5PHP.js → DE2KVZ3G.js} +2 -2
  70. package/dist/calcite/{CZQPYEIF.js → DIHWN5NL.js} +2 -2
  71. package/dist/calcite/{EU56Y5V7.js → DTL6O5FZ.js} +2 -2
  72. package/dist/calcite/{L76LX3UD.js → DVOPWCOC.js} +2 -2
  73. package/dist/calcite/{V6T5AUQK.js → ED3SFEC7.js} +1 -1
  74. package/dist/calcite/{UWRQKUKF.js → EOSZ7S2T.js} +2 -2
  75. package/dist/calcite/{RNK4U2I6.js → EZI2WOMX.js} +1 -1
  76. package/dist/calcite/{3BUUOW3W.js → F2EVZHID.js} +2 -2
  77. package/dist/calcite/{QLEDZ7FX.js → F2GTJ34B.js} +2 -2
  78. package/dist/calcite/{SW5NA4DT.js → F2IQ7L2Y.js} +2 -2
  79. package/dist/calcite/{DUXZH3QP.js → F5PG6S4T.js} +2 -2
  80. package/dist/calcite/{ZAXHETVL.js → FA3DUCFA.js} +2 -2
  81. package/dist/calcite/{HAJSYDZC.js → FGD22MDH.js} +2 -2
  82. package/dist/calcite/{JQLL6EG7.js → FJBUOTEB.js} +2 -2
  83. package/dist/calcite/{ZI7H54UA.js → FL7MTTVC.js} +2 -2
  84. package/dist/calcite/{AYIKZRZU.js → FMQPF3CG.js} +2 -2
  85. package/dist/calcite/{LJBA34XN.js → FQPYMTWH.js} +1 -1
  86. package/dist/calcite/{7MF5KWDO.js → FZEIJCSC.js} +2 -2
  87. package/dist/calcite/{I6SF5TMF.js → G35EPZCZ.js} +2 -2
  88. package/dist/calcite/GBX6GYS7.js +6 -0
  89. package/dist/calcite/{USFXU5XC.js → GD34QONL.js} +1 -1
  90. package/dist/calcite/{FNJPNRSH.js → GF7T3OK7.js} +2 -2
  91. package/dist/calcite/{5U6V6P3B.js → GHEJOMRP.js} +2 -2
  92. package/dist/calcite/{BD6J4G5B.js → GHH2UGV5.js} +2 -2
  93. package/dist/calcite/{22QEQLHN.js → GSOKWN7Q.js} +2 -2
  94. package/dist/calcite/{UXBIPEXH.js → GYSBQHUE.js} +2 -2
  95. package/dist/calcite/{WFEIRKYP.js → H2HOG7C6.js} +2 -2
  96. package/dist/calcite/{AELGNEK6.js → H37II4ZD.js} +1 -1
  97. package/dist/calcite/{6T7UNNSC.js → HC66HMHL.js} +2 -2
  98. package/dist/calcite/HEGSNN7M.js +6 -0
  99. package/dist/calcite/{5ANCIVAN.js → HOAPNFPG.js} +2 -2
  100. package/dist/calcite/{4ANKUUPZ.js → HQHK6WRK.js} +2 -2
  101. package/dist/calcite/{DFI3YXXT.js → HXDJVTFS.js} +2 -2
  102. package/dist/calcite/{FHCKU2RD.js → I2BWYICL.js} +2 -2
  103. package/dist/calcite/{24JP2FUF.js → I5TOCYEC.js} +2 -2
  104. package/dist/calcite/{DY45B3WW.js → IAMKWH4M.js} +1 -1
  105. package/dist/calcite/{WC7Y2X2W.js → IBW37G67.js} +2 -2
  106. package/dist/calcite/{J73EWLCB.js → IFAOKLUS.js} +2 -2
  107. package/dist/calcite/{STOIJY7M.js → IHD7O2YN.js} +2 -2
  108. package/dist/calcite/{UWGNQ2FO.js → ILPAJVCE.js} +2 -2
  109. package/dist/calcite/{E2LSDSMJ.js → INSSXMDU.js} +2 -2
  110. package/dist/calcite/{KNGIKNAB.js → IUQ2PDM2.js} +2 -2
  111. package/dist/calcite/{DKPTD2OZ.js → JBDQEZ6N.js} +2 -2
  112. package/dist/calcite/{YZWB4AWI.js → JNVJ247M.js} +2 -2
  113. package/dist/calcite/{WKGL36BZ.js → JR3ROP56.js} +2 -2
  114. package/dist/calcite/{L5JMWLR4.js → K33VOFE2.js} +2 -2
  115. package/dist/calcite/{REYQJHY3.js → KG6UXDZK.js} +1 -1
  116. package/dist/calcite/{N6DORJZT.js → KM4ULHYE.js} +2 -2
  117. package/dist/calcite/{22Z5HIPS.js → KMI4GYVL.js} +1 -1
  118. package/dist/calcite/{LIA6PF25.js → KOS2VJY4.js} +2 -2
  119. package/dist/calcite/{QRX44HJT.js → KUSYLWE4.js} +2 -2
  120. package/dist/calcite/{C5YKU6XO.js → KY2ZIHOA.js} +2 -2
  121. package/dist/calcite/{2FCG56JM.js → L2ZQSQU6.js} +2 -2
  122. package/dist/calcite/{XOOXZ5QT.js → L6ZGARKO.js} +2 -2
  123. package/dist/calcite/{BCATFFXU.js → L7FXA6RY.js} +2 -2
  124. package/dist/calcite/{EPT7COJW.js → LDAQVLEA.js} +2 -2
  125. package/dist/calcite/{JQFITDJ4.js → LDXJKYFM.js} +2 -2
  126. package/dist/calcite/{G7WZXXCI.js → LEYGPU33.js} +2 -2
  127. package/dist/calcite/{2FMGWIC7.js → LFK72DCW.js} +2 -2
  128. package/dist/calcite/{5VCPWQUI.js → LV7CMWP7.js} +2 -2
  129. package/dist/calcite/{QLZAUBMM.js → MLDXSWOT.js} +1 -1
  130. package/dist/calcite/{MK3GDP7W.js → MOBJ47BZ.js} +2 -2
  131. package/dist/calcite/{Y4V22YQJ.js → MOLWUPOC.js} +2 -2
  132. package/dist/calcite/{FMX264HW.js → MRAA7MML.js} +2 -2
  133. package/dist/calcite/{BBCIZSCT.js → MRDARYNM.js} +1 -1
  134. package/dist/calcite/{BI6ZC2GT.js → MTACIAEL.js} +2 -2
  135. package/dist/calcite/{X4EWJGHT.js → MXTMB4ND.js} +2 -2
  136. package/dist/calcite/{WGBME5PE.js → MYX7MLUP.js} +1 -1
  137. package/dist/calcite/{6AL2J3XW.js → N652QRVB.js} +2 -2
  138. package/dist/calcite/{PFN6B6IF.js → NBYKDBMF.js} +2 -2
  139. package/dist/calcite/{ZFI6GNFZ.js → NERO62KZ.js} +2 -2
  140. package/dist/calcite/{ULQKYVA4.js → NEZYE3YA.js} +2 -2
  141. package/dist/calcite/{N3SGJ7QU.js → NH7WP6LI.js} +2 -2
  142. package/dist/calcite/{22RNSQLE.js → NN2ES6G3.js} +2 -2
  143. package/dist/calcite/{2KVP3JI2.js → NWEKVXOP.js} +2 -2
  144. package/dist/calcite/{HZO63FXM.js → O2US3AFV.js} +2 -2
  145. package/dist/calcite/O2WWEH3F.js +6 -0
  146. package/dist/calcite/{5QUBEGPK.js → OBI6HS7X.js} +2 -2
  147. package/dist/calcite/{6INNBVOM.js → OF6NNPEA.js} +2 -2
  148. package/dist/calcite/{DMNQOQQP.js → OFZSTUJN.js} +2 -2
  149. package/dist/calcite/{2M2RY2G2.js → OGRZJIZF.js} +2 -2
  150. package/dist/calcite/{57ZAF4EB.js → OHBRM5Y7.js} +1 -1
  151. package/dist/calcite/{3AT2FS3E.js → ORYXLVHX.js} +2 -2
  152. package/dist/calcite/{ZZP3F7F3.js → OWPSPUAC.js} +2 -2
  153. package/dist/calcite/{75FOOKR5.js → OZYER7GO.js} +2 -2
  154. package/dist/calcite/{R7R2PEGA.js → PHQDO57D.js} +1 -1
  155. package/dist/calcite/PLTGY3EV.js +6 -0
  156. package/dist/calcite/{ZXXPSHNO.js → Q35BC2VT.js} +2 -2
  157. package/dist/calcite/{O6NDCSWF.js → Q4H5F25H.js} +2 -2
  158. package/dist/calcite/{5K5YWTBO.js → Q5E2TYOP.js} +2 -2
  159. package/dist/calcite/{G3KT6UIW.js → QII5FKBO.js} +2 -2
  160. package/dist/calcite/{TCGDPWAG.js → QS3DPILQ.js} +2 -2
  161. package/dist/calcite/{MZJHW3KI.js → QV3L4WV7.js} +2 -2
  162. package/dist/calcite/{R4UY76PT.js → QXU4XRH7.js} +2 -2
  163. package/dist/calcite/{ROP4NAPO.js → R3G3OZD2.js} +1 -1
  164. package/dist/calcite/{5NHZ2D45.js → RA655X7Z.js} +2 -2
  165. package/dist/calcite/{OXW463FD.js → RE2URTXL.js} +2 -2
  166. package/dist/calcite/{PAU4LR5T.js → RHNVJT6K.js} +2 -2
  167. package/dist/calcite/{QPE4LZKQ.js → S7A7CBFW.js} +2 -2
  168. package/dist/calcite/{AKD7HACF.js → S7IH4VVQ.js} +1 -1
  169. package/dist/calcite/{JYDNYY3D.js → S7ZSELMU.js} +2 -2
  170. package/dist/calcite/{SBNHWQ4K.js → SF2OFOOD.js} +2 -2
  171. package/dist/calcite/SIWVKD2B.js +6 -0
  172. package/dist/calcite/{3DFJR3ZO.js → SS6JWFYI.js} +2 -2
  173. package/dist/calcite/{JQCQJ5HC.js → SVAQQMST.js} +2 -2
  174. package/dist/calcite/{OKXG5BKP.js → SVGX2T2G.js} +2 -2
  175. package/dist/calcite/{HW4UBGM6.js → T5UTVAXP.js} +2 -2
  176. package/dist/calcite/{ID74E3L7.js → TBBHYRBE.js} +2 -2
  177. package/dist/calcite/{6IHNE5XM.js → TD56JOVA.js} +2 -2
  178. package/dist/calcite/{ZCZJN6GX.js → TJF6MWV5.js} +2 -2
  179. package/dist/calcite/{WJ5FJL75.js → TJG3JR4B.js} +2 -2
  180. package/dist/calcite/{LE3675Y4.js → TL62LDD7.js} +2 -2
  181. package/dist/calcite/{54HVA6JE.js → TWXGQYN6.js} +2 -2
  182. package/dist/calcite/{FH4QR3NI.js → UAZKVP7T.js} +2 -2
  183. package/dist/calcite/{AFJHV3XM.js → UNYAALXO.js} +2 -2
  184. package/dist/calcite/UYNOY6O4.js +6 -0
  185. package/dist/calcite/{AGH4OKKD.js → VBY6O7JM.js} +2 -2
  186. package/dist/calcite/{4LNU6OPG.js → VHR2HQBV.js} +2 -2
  187. package/dist/calcite/VMKPSL2O.js +6 -0
  188. package/dist/calcite/{2RMAKMTA.js → VOOXZHBA.js} +2 -2
  189. package/dist/calcite/{OIYFHR44.js → VOR3PNH6.js} +2 -2
  190. package/dist/calcite/VTCKHBWC.js +6 -0
  191. package/dist/calcite/{HPIKMHME.js → VX4MTPIO.js} +2 -2
  192. package/dist/calcite/W67LQRRZ.js +6 -0
  193. package/dist/calcite/{CEKH4YBM.js → W6LQE2GD.js} +2 -2
  194. package/dist/calcite/{TCHZKEY4.js → W7GZZ75T.js} +2 -2
  195. package/dist/calcite/{WIMMI2W4.js → WEHC6XUU.js} +2 -2
  196. package/dist/calcite/WMIGBUTC.js +6 -0
  197. package/dist/calcite/{DKRKQS5W.js → WOTGRZAH.js} +2 -2
  198. package/dist/calcite/{BQB4XQ7L.js → WV7RLWDU.js} +2 -2
  199. package/dist/calcite/{CNGOOWHP.js → WYKOVO6M.js} +2 -2
  200. package/dist/calcite/{X6RNHEQV.js → X6QGX7NP.js} +2 -2
  201. package/dist/calcite/{DZ4YTF5M.js → XHA23SXR.js} +1 -1
  202. package/dist/calcite/{X5TKB4J6.js → XIKVQ3ZP.js} +2 -2
  203. package/dist/calcite/{EPYAQXYN.js → XNSFTASI.js} +2 -2
  204. package/dist/calcite/{45FDMCII.js → XWFTGDH4.js} +2 -2
  205. package/dist/calcite/{6C2BECEB.js → XZXIRZY3.js} +2 -2
  206. package/dist/calcite/{CBNL4HIW.js → Y46NEZV3.js} +2 -2
  207. package/dist/calcite/{S5H3WQFI.js → Y5ZLZMTY.js} +2 -2
  208. package/dist/calcite/{VOBC6JYG.js → Y7J3SO7K.js} +2 -2
  209. package/dist/calcite/{LODYRC73.js → YAES57ZL.js} +2 -2
  210. package/dist/calcite/{GKW4LD43.js → YAH33Y7H.js} +2 -2
  211. package/dist/calcite/{QV2ZGIAI.js → YKJM2O7I.js} +2 -2
  212. package/dist/calcite/{KPBTN2I5.js → YLD3ACTP.js} +2 -2
  213. package/dist/calcite/{SVVTNRHP.js → YRAIMEEL.js} +2 -2
  214. package/dist/calcite/{VROTAANT.js → Z7WRWQGA.js} +2 -2
  215. package/dist/calcite/{G6RNTJWA.js → ZA6N6G4E.js} +2 -2
  216. package/dist/calcite/{GPUAAM2X.js → ZEWWICAI.js} +2 -2
  217. package/dist/calcite/{HVPSFYGZ.js → ZKBI4AZE.js} +2 -2
  218. package/dist/calcite/calcite.css +1 -1
  219. package/dist/calcite/calcite.esm.js +2 -2
  220. package/dist/chunks/ExpandToggle.js +1 -1
  221. package/dist/chunks/FloatingArrow.js +1 -1
  222. package/dist/chunks/Heading.js +1 -1
  223. package/dist/chunks/Validation.js +1 -1
  224. package/dist/chunks/_commonjsHelpers.js +1 -1
  225. package/dist/chunks/array.js +1 -1
  226. package/dist/chunks/component.js +1 -1
  227. package/dist/chunks/core.js +1 -1
  228. package/dist/chunks/date.js +1 -1
  229. package/dist/chunks/dom.js +1 -1
  230. package/dist/chunks/dynamicClasses.js +1 -1
  231. package/dist/chunks/filter.js +1 -1
  232. package/dist/chunks/floating-ui.js +1 -1
  233. package/dist/chunks/focusTrapComponent.js +1 -1
  234. package/dist/chunks/form.js +1 -1
  235. package/dist/chunks/global.js +10 -10
  236. package/dist/chunks/guid.js +1 -1
  237. package/dist/chunks/input.js +1 -1
  238. package/dist/chunks/interactive.js +1 -1
  239. package/dist/chunks/key.js +1 -1
  240. package/dist/chunks/label.js +1 -1
  241. package/dist/chunks/loadable.js +1 -1
  242. package/dist/chunks/locale.js +1 -1
  243. package/dist/chunks/logger.js +1 -1
  244. package/dist/chunks/math.js +1 -1
  245. package/dist/chunks/observers.js +1 -1
  246. package/dist/chunks/openCloseComponent.js +1 -1
  247. package/dist/chunks/resources.js +1 -1
  248. package/dist/chunks/resources2.js +1 -1
  249. package/dist/chunks/resources3.js +1 -1
  250. package/dist/chunks/resources4.js +1 -1
  251. package/dist/chunks/resources5.js +1 -1
  252. package/dist/chunks/resources6.js +1 -1
  253. package/dist/chunks/resources7.js +1 -1
  254. package/dist/chunks/responsive.js +1 -1
  255. package/dist/chunks/runtime.js +6 -6
  256. package/dist/chunks/sortableComponent.js +1 -1
  257. package/dist/chunks/time.js +1 -1
  258. package/dist/chunks/useT9n.js +1 -1
  259. package/dist/chunks/utils.js +1 -1
  260. package/dist/chunks/utils2.js +1 -1
  261. package/dist/chunks/utils3.js +1 -1
  262. package/dist/chunks/utils4.js +10 -10
  263. package/dist/components/calcite-accordion/customElement.js +1 -1
  264. package/dist/components/calcite-accordion-item/customElement.js +1 -1
  265. package/dist/components/calcite-action/customElement.js +12 -12
  266. package/dist/components/calcite-action-bar/customElement.js +1 -1
  267. package/dist/components/calcite-action-group/customElement.js +14 -14
  268. package/dist/components/calcite-action-menu/customElement.js +1 -1
  269. package/dist/components/calcite-action-pad/customElement.js +1 -1
  270. package/dist/components/calcite-alert/customElement.js +1 -1
  271. package/dist/components/calcite-avatar/customElement.js +1 -1
  272. package/dist/components/calcite-block/customElement.js +1 -1
  273. package/dist/components/calcite-block-section/customElement.js +1 -1
  274. package/dist/components/calcite-button/customElement.js +1 -1
  275. package/dist/components/calcite-card/customElement.js +1 -1
  276. package/dist/components/calcite-card-group/customElement.js +7 -7
  277. package/dist/components/calcite-carousel/customElement.js +1 -1
  278. package/dist/components/calcite-carousel-item/customElement.js +1 -1
  279. package/dist/components/calcite-checkbox/customElement.js +1 -1
  280. package/dist/components/calcite-chip/customElement.js +1 -1
  281. package/dist/components/calcite-chip-group/customElement.js +1 -1
  282. package/dist/components/calcite-color-picker/customElement.js +2 -2
  283. package/dist/components/calcite-color-picker-hex-input/customElement.js +31 -31
  284. package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
  285. package/dist/components/calcite-combobox/customElement.js +1 -1
  286. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  287. package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
  288. package/dist/components/calcite-date-picker/customElement.js +1 -1
  289. package/dist/components/calcite-date-picker-day/customElement.js +1 -1
  290. package/dist/components/calcite-date-picker-month/customElement.js +15 -15
  291. package/dist/components/calcite-date-picker-month-header/customElement.js +59 -50
  292. package/dist/components/calcite-dialog/customElement.js +2 -2
  293. package/dist/components/calcite-dropdown/customElement.js +1 -1
  294. package/dist/components/calcite-dropdown-group/customElement.js +1 -1
  295. package/dist/components/calcite-dropdown-item/customElement.js +2 -2
  296. package/dist/components/calcite-fab/customElement.js +1 -1
  297. package/dist/components/calcite-filter/customElement.js +1 -1
  298. package/dist/components/calcite-flow/customElement.js +1 -1
  299. package/dist/components/calcite-flow-item/customElement.js +1 -1
  300. package/dist/components/calcite-graph/customElement.js +1 -1
  301. package/dist/components/calcite-handle/customElement.js +1 -1
  302. package/dist/components/calcite-icon/customElement.js +1 -1
  303. package/dist/components/calcite-inline-editable/customElement.js +1 -1
  304. package/dist/components/calcite-input/customElement.js +1 -1
  305. package/dist/components/calcite-input-date-picker/customElement.js +5 -5
  306. package/dist/components/calcite-input-message/customElement.js +1 -1
  307. package/dist/components/calcite-input-number/customElement.js +1 -1
  308. package/dist/components/calcite-input-text/customElement.js +1 -1
  309. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  310. package/dist/components/calcite-input-time-zone/customElement.js +1 -1
  311. package/dist/components/calcite-label/customElement.js +1 -1
  312. package/dist/components/calcite-link/customElement.js +1 -1
  313. package/dist/components/calcite-list/customElement.js +1 -1
  314. package/dist/components/calcite-list-item/customElement.js +1 -1
  315. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  316. package/dist/components/calcite-loader/customElement.js +1 -1
  317. package/dist/components/calcite-menu/customElement.js +1 -1
  318. package/dist/components/calcite-menu-item/customElement.js +1 -1
  319. package/dist/components/calcite-meter/customElement.js +1 -1
  320. package/dist/components/calcite-modal/customElement.js +1 -1
  321. package/dist/components/calcite-navigation/customElement.js +1 -1
  322. package/dist/components/calcite-navigation-logo/customElement.js +1 -1
  323. package/dist/components/calcite-navigation-user/customElement.js +1 -1
  324. package/dist/components/calcite-notice/customElement.js +1 -1
  325. package/dist/components/calcite-option/customElement.js +1 -1
  326. package/dist/components/calcite-option-group/customElement.js +1 -1
  327. package/dist/components/calcite-pagination/customElement.js +1 -1
  328. package/dist/components/calcite-panel/customElement.js +2 -2
  329. package/dist/components/calcite-popover/customElement.js +1 -1
  330. package/dist/components/calcite-progress/customElement.js +1 -1
  331. package/dist/components/calcite-radio-button/customElement.js +1 -1
  332. package/dist/components/calcite-radio-button-group/customElement.js +1 -1
  333. package/dist/components/calcite-rating/customElement.js +1 -1
  334. package/dist/components/calcite-scrim/customElement.js +11 -11
  335. package/dist/components/calcite-segmented-control/customElement.js +1 -1
  336. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  337. package/dist/components/calcite-select/customElement.js +5 -5
  338. package/dist/components/calcite-sheet/customElement.js +1 -1
  339. package/dist/components/calcite-shell/customElement.js +1 -1
  340. package/dist/components/calcite-shell-center-row/customElement.js +1 -1
  341. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  342. package/dist/components/calcite-slider/customElement.js +1 -1
  343. package/dist/components/calcite-sort-handle/customElement.js +1 -1
  344. package/dist/components/calcite-sortable-list/customElement.js +1 -1
  345. package/dist/components/calcite-split-button/customElement.js +1 -1
  346. package/dist/components/calcite-stack/customElement.js +1 -1
  347. package/dist/components/calcite-stepper/customElement.js +1 -1
  348. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  349. package/dist/components/calcite-switch/customElement.js +1 -1
  350. package/dist/components/calcite-tab/customElement.js +1 -1
  351. package/dist/components/calcite-tab-nav/customElement.js +7 -7
  352. package/dist/components/calcite-tab-title/customElement.js +1 -1
  353. package/dist/components/calcite-table/customElement.js +1 -1
  354. package/dist/components/calcite-table-cell/customElement.js +1 -1
  355. package/dist/components/calcite-table-header/customElement.js +1 -1
  356. package/dist/components/calcite-table-row/customElement.js +1 -1
  357. package/dist/components/calcite-tabs/customElement.js +1 -1
  358. package/dist/components/calcite-text-area/customElement.js +2 -2
  359. package/dist/components/calcite-tile/customElement.js +2 -2
  360. package/dist/components/calcite-tile-group/customElement.js +1 -1
  361. package/dist/components/calcite-tile-select/customElement.js +1 -1
  362. package/dist/components/calcite-tile-select-group/customElement.js +1 -1
  363. package/dist/components/calcite-time-picker/customElement.js +1 -1
  364. package/dist/components/calcite-tip/customElement.js +1 -1
  365. package/dist/components/calcite-tip-group/customElement.js +1 -1
  366. package/dist/components/calcite-tip-manager/customElement.js +1 -1
  367. package/dist/components/calcite-tooltip/customElement.js +1 -1
  368. package/dist/components/calcite-tree/customElement.js +1 -1
  369. package/dist/components/calcite-tree-item/customElement.js +6 -6
  370. package/dist/docs/api.json +1 -1
  371. package/dist/docs/docs.json +1 -1
  372. package/dist/docs/web-types.json +1 -1
  373. package/dist/index.js +1 -1
  374. package/dist/loader.js +1 -1
  375. package/package.json +3 -3
  376. package/dist/calcite/2SDBNCJP.js +0 -6
  377. package/dist/calcite/4T43EUZD.js +0 -6
  378. package/dist/calcite/D5TN6LPW.js +0 -6
  379. package/dist/calcite/EWGEDQGF.js +0 -6
  380. package/dist/calcite/F26D6ILK.js +0 -6
  381. package/dist/calcite/FF7L7YGQ.js +0 -6
  382. package/dist/calcite/JILTEHFN.js +0 -6
  383. package/dist/calcite/KDXW4E6F.js +0 -6
  384. package/dist/calcite/LBM6PBU7.js +0 -6
  385. package/dist/calcite/LBWPWOAS.js +0 -6
  386. package/dist/calcite/NCWY6FWI.js +0 -6
  387. package/dist/calcite/P5OP6OWL.js +0 -6
  388. package/dist/calcite/SY2VOT42.js +0 -6
  389. package/dist/calcite/VFY7BORP.js +0 -6
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
4
+ * v3.0.0-next.39
5
+ */
6
+ import{a as $}from"./CPSRRWN6.js";import{c as y,e as N,f as I,h as z}from"./MTACIAEL.js";import{c as k,d as T,e as S}from"./TD56JOVA.js";import{a as O,b as C}from"./KM4ULHYE.js";import{a as b}from"./5IEXLG63.js";import"./2OGPRYXD.js";import{a as v}from"./Q5E2TYOP.js";import{b as f}from"./ATFXOAWN.js";import{l as g}from"./Z7WRWQGA.js";import{a as w,b as E,d as x}from"./AG3SBTL6.js";import"./PHQDO57D.js";import{A as m,I as u,d,e as o,u as h,v as p,w as l}from"./AUJ5K7YO.js";var M=d`:host{--calcite-icon-size: 1rem;--calcite-spacing-eighth: .125rem;--calcite-spacing-quarter: .25rem;--calcite-spacing-half: .5rem;--calcite-spacing-three-quarters: .75rem;--calcite-spacing: 1rem;--calcite-spacing-plus-quarter: 1.25rem;--calcite-spacing-plus-half: 1.5rem;--calcite-spacing-double: 2rem;--calcite-menu-min-width: 10rem;--calcite-header-min-height: 3rem;--calcite-footer-min-height: 3rem}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column;font-size:var(--calcite-select-font-size);font-weight:var(--calcite-internal-select-font-weight, var(--calcite-font-weight-regular))}.wrapper{position:relative;display:flex;align-items:stretch;inline-size:var(--select-width);block-size:var(--calcite-internal-select-block-size, 32px)}.wrapper:focus-within .icon,.wrapper:active .icon,.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-select-font-size: var(--calcite-font-size--2);--calcite-select-spacing-inline: .5rem 2rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-sm);--calcite-internal-select-block-size: 24px}:host([scale=m]){--calcite-select-font-size: var(--calcite-font-size--1);--calcite-select-spacing-inline: .75rem 2.5rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-md)}:host([scale=l]){--calcite-select-font-size: var(--calcite-font-size-0);--calcite-select-spacing-inline: 1rem 3rem;--calcite-internal-select-icon-container-padding-inline: var(--calcite-spacing-lg);--calcite-internal-select-block-size: 44px}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}.select{margin:0;box-sizing:border-box;inline-size:100%;cursor:pointer;appearance:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:0;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);font-family:inherit;color:var(--calcite-color-text-2);outline-color:transparent;font-size:inherit;font-weight:inherit;color:var(--calcite-select-text-color, var(--calcite-color-text-2));border-width:var(--calcite-select-internal-border-width, var(--calcite-border-width-sm));padding-inline:var(--calcite-select-spacing-inline);padding-block:var(--calcite-internal-select-spacing-block);border-inline-end-width:0px;line-height:var(--calcite-select-line-height, normal)}.select: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))))}select:disabled{border-color:var(--calcite-color-border-input);--tw-bg-opacity: 1}.icon-container{pointer-events:none;position:absolute;inset-block:0px;display:flex;align-items:center;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:transparent;color:var(--calcite-color-text-2);inset-inline-end:0px;border-inline-width:0px var(--calcite-select-internal-icon-border-inline-end-width, 1px);padding-inline:var(--calcite-internal-select-icon-container-padding-inline)}.icon-container .icon{color:var(--calcite-color-text-3)}:host([status=invalid]) select,:host([status=invalid]) .icon-container{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) select:focus,:host([status=invalid]) .icon-container:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.select:focus~.icon-container{border-color:transparent}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,s={icon:"icon",iconContainer:"icon-container",select:"select",wrapper:"wrapper"},A={validationMessage:"selectValidationMessage"};function c(n){return n.tagName==="CALCITE-OPTION"}function L(n){return n.tagName==="CALCITE-OPTION-GROUP"}var r=class extends p{constructor(){super(),this.componentToNativeEl=new Map,this.mutationObserver=v("mutation",()=>this.populateInternalSelect()),this.disabled=!1,this.required=!1,this.scale="m",this.status="idle",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.value=null,this.width="auto",this.calciteSelectChange=h({cancelable:!1}),this.listen("calciteInternalOptionChange",this.handleOptionOrGroupChange),this.listen("calciteInternalOptionGroupChange",this.handleOptionOrGroupChange)}static{this.properties={disabled:7,form:3,label:1,name:3,required:7,scale:3,selectedOption:0,status:3,validationIcon:[3,{converter:m}],validationMessage:1,validity:0,value:1,width:3}}static{this.styles=M}async setFocus(){await x(this),g(this.selectEl)}connectedCallback(){super.connectedCallback();let{el:e}=this;this.mutationObserver?.observe(e,{subtree:!0,childList:!0}),k(this),y(this)}load(){w(this)}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==null)&&this.updateItemsFromValue(this.value),e.has("selectedOption")&&(this.value=this.selectedOption?.value)}updated(){O(this)}loaded(){E(this),typeof this.value=="string"&&this.updateItemsFromValue(this.value),this.populateInternalSelect();let e=this.selectEl.selectedOptions[0];this.selectFromNativeOption(e),I(this,this.selectedOption?.value??"")}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),T(this),N(this)}handleInternalSelectChange(){let e=this.selectEl.selectedOptions[0];this.selectFromNativeOption(e),requestAnimationFrame(()=>this.emitChangeEvent())}handleOptionOrGroupChange(e){e.stopPropagation();let t=e.target,i=this.componentToNativeEl.get(t);i&&(this.updateNativeElement(t,i),c(t)&&t.selected&&(this.deselectAllExcept(t),this.selectedOption=t))}onLabelClick(){this.setFocus()}updateItemsFromValue(e){this.el.querySelectorAll("calcite-option").forEach(t=>t.selected=t.value===e)}updateNativeElement(e,t){if(t.disabled=e.disabled,t.label=e.label,c(e)){let i=t;i.selected=e.selected,i.value=e.value,i.innerText=e.label}}populateInternalSelect(){let e=Array.from(this.el.children).filter(t=>t.tagName==="CALCITE-OPTION"||t.tagName==="CALCITE-OPTION-GROUP");this.clearInternalSelect(),e.forEach(t=>this.selectEl?.append(this.toNativeElement(t)))}clearInternalSelect(){this.componentToNativeEl.forEach(e=>e.remove()),this.componentToNativeEl.clear()}storeSelectRef(e){e&&(this.selectEl=e)}selectFromNativeOption(e){if(!e)return;let t;this.componentToNativeEl.forEach((i,a)=>{c(a)&&i===e&&(a.selected=!0,t=a,this.deselectAllExcept(a))}),t&&(this.selectedOption=t)}toNativeElement(e){if(c(e)){let t=document.createElement("option");return this.updateNativeElement(e,t),this.componentToNativeEl.set(e,t),t}if(L(e)){let t=document.createElement("optgroup");return this.updateNativeElement(e,t),Array.from(e.children).forEach(i=>{let a=this.toNativeElement(i);t.append(a),this.componentToNativeEl.set(e,a)}),this.componentToNativeEl.set(e,t),t}throw new Error("unsupported element child provided")}deselectAllExcept(e){this.el.querySelectorAll("calcite-option").forEach(t=>{t!==e&&(t.selected=!1)})}emitChangeEvent(){this.calciteSelectChange.emit()}renderChevron(){return o`<div class=${l(s.iconContainer)}><calcite-icon class=${l(s.icon)} icon=chevron-down .scale=${b(this.scale)}></calcite-icon></div>`}render(){let{disabled:e}=this;return C({disabled:e,children:o`<div class=${l(s.wrapper)}><select aria-errormessage=${A.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${S(this)} class=${l(s.select)} .disabled=${e} @change=${this.handleInternalSelectChange} ${f(this.storeSelectRef)}><slot></slot></select>${this.renderChevron()}${z({component:this})}</div>${this.validationMessage&&this.status==="invalid"?$({icon:this.validationIcon,id:A.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};u("calcite-select",r);export{r as Select};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as l}from"./6B6Q3CQA.js";import"./LJBA34XN.js";var r={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,Y){switch(Y){case"W":return e+"\u9031";default:return e+"\u65E5"}},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,Y){var _=e*100+Y;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};l.locale(r,null,!0);var m=r;export{m as default};
6
+ import{b as l}from"./3NNAQ2QU.js";import"./FQPYMTWH.js";var r={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,Y){switch(Y){case"W":return e+"\u9031";default:return e+"\u65E5"}},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,Y){var _=e*100+Y;return _<600?"\u51CC\u6668":_<900?"\u65E9\u4E0A":_<1100?"\u4E0A\u5348":_<1300?"\u4E2D\u5348":_<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};l.locale(r,null,!0);var m=r;export{m 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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as t}from"./6B6Q3CQA.js";import"./LJBA34XN.js";var e="sije\u010Dnja_velja\u010De_o\u017Eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),s="sije\u010Danj_velja\u010Da_o\u017Eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,_=function(a,r){return i.test(r)?e[a.month()]:s[a.month()]};_.s=s;_.f=e;var n={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010Detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010Det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:_,monthsShort:"sij._velj._o\u017Eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".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:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(a){return a+"."}};t.locale(n,null,!0);var l=n;export{l as default};
6
+ import{b as t}from"./3NNAQ2QU.js";import"./FQPYMTWH.js";var e="sije\u010Dnja_velja\u010De_o\u017Eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),s="sije\u010Danj_velja\u010Da_o\u017Eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/,_=function(a,r){return i.test(r)?e[a.month()]:s[a.month()]};_.s=s;_.f=e;var n={name:"hr",weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010Detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010Det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:_,monthsShort:"sij._velj._o\u017Eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".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:"za %s",past:"prije %s",s:"sekunda",m:"minuta",mm:"%d minuta",h:"sat",hh:"%d sati",d:"dan",dd:"%d dana",M:"mjesec",MM:"%d mjeseci",y:"godina",yy:"%d godine"},ordinal:function(a){return a+"."}};t.locale(n,null,!0);var l=n;export{l 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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{d as pe}from"./FU4NE6EB.js";import{a as ue}from"./CPEQYBMD.js";import{a as me}from"./UWRQKUKF.js";import{a as be,b as ge,c as fe,d,e as D,g as H,h as ve,i as T,k as v,l as $}from"./DKRKQS5W.js";import{a as Z,c as A,d as ee,e as te,f as ie,g as C,h as se}from"./NJZQDO2U.js";import"./WZXIEKNA.js";import{a as k}from"./DMNQOQQP.js";import{a as le,c as ae,e as oe,f as ne,h as ce}from"./BI6ZC2GT.js";import{c as re,d as he,e as de}from"./6IHNE5XM.js";import{a as K,b as Q}from"./N6DORJZT.js";import{a as u}from"./WKGL36BZ.js";import{a as w}from"./DPCL4DHO.js";import"./FWVV5Q5V.js";import{a as E,b as Y}from"./WGBME5PE.js";import{a as S}from"./5K5YWTBO.js";import{a as X}from"./BD6J4G5B.js";import{a as G,b as g}from"./NHINHS2M.js";import{f as I,i as _}from"./VROTAANT.js";import{a as q,b as j,c as N,d as J}from"./65522WAF.js";import{a as W}from"./R7R2PEGA.js";import{A as L,C as B,I as U,d as O,e as r,i as m,t as P,u as b,v as R,w as h}from"./BACCFA5T.js";var ye={button:"x-button"},ke=({disabled:z,key:e,label:t,scale:i})=>u(e,r`<button .ariaLabel=${t} class=${h(ye.button)} .disabled=${z} tabindex=-1 type=button><calcite-icon icon=x .scale=${w(i)}></calcite-icon></button>`),Ae=O`: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:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{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([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{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}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{block-size:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`,xe="combobox-item-",Ie="combobox-chip-",Ce="combobox-label-",F="combobox-listbox-",$e="combobox-input-",M=class extends R{constructor(){super(),this.internalComboboxChangeEvent=()=>{this.calciteComboboxChange.emit()},this.emitComboboxChange=E(this.internalComboboxChangeEvent,0),this.filterItems=(()=>{let e=(t,i)=>t&&i.some(({el:s})=>t===s);return E((t,i=!1,s=!0)=>{let l=me([...this.data,...this.groupData],t,["description","label","metadata","shortHeading"]),a=this.getItemsAndGroups(),o=t==="";a.forEach(n=>{if(o){n.hidden=!1;return}let c=!e(n,l);n.hidden=c;let[p,x]=n.ancestors;(e(p,l)||e(x,l))&&(n.hidden=!1),c||n.ancestors.forEach(f=>f.hidden=!1)}),this.filterTextMatchPattern=this.filterText&&new RegExp(`(${Y(this.filterText)})`,"i"),this.filteredItems=this.getFilteredItems(),this.filteredItems.forEach(n=>{n.filterTextMatchPattern=this.filterTextMatchPattern}),i&&(this.open=this.filterText.trim().length>0&&this.filteredItems.length>0),s&&this.calciteComboboxFilterChange.emit()},B.filter)})(),this._filterText="",this.getSelectedItems=()=>{if(!this.isMulti()){let e=this.items.find(({selected:t})=>t);return e?[e]:[]}return this.items.filter(e=>e.selected&&(this.selectionMode!=="ancestors"||!T(e))).sort((e,t)=>{let i=this.selectedItems.indexOf(e),s=this.selectedItems.indexOf(t);return i>-1&&s>-1?i-s:s-i})},this.guid=W(),this.ignoreSelectedEventsFlag=!1,this.inputHeight=0,this.internalValueChangeFlag=!1,this.mutationObserver=S("mutation",()=>this.updateItems()),this.onLabelClick=()=>{this.setFocus()},this.openTransitionProp="opacity",this.placement=Z,this.resizeObserver=S("resize",()=>{this.setMaxScrollerHeight(),this.refreshSelectionDisplay()}),this.textInput=G(),this._value=null,this.activeChipIndex=-1,this.activeDescendant="",this.activeItemIndex=-1,this.compactSelectionDisplay=!1,this.groupItems=[],this.items=[],this.selectedHiddenChipsCount=0,this.selectedVisibleChipsCount=0,this.clearDisabled=!1,this.disabled=!1,this.filteredItems=[],this.maxItems=0,this.messages=X(),this.open=!1,this.overlayPositioning="absolute",this.placeholderIconFlipRtl=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.selectedItems=[],this.selectionDisplay="all",this.selectionMode="multiple",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.calciteComboboxBeforeClose=b({cancelable:!1}),this.calciteComboboxBeforeOpen=b({cancelable:!1}),this.calciteComboboxChange=b({cancelable:!1}),this.calciteComboboxChipClose=b({cancelable:!1}),this.calciteComboboxClose=b({cancelable:!1}),this.calciteComboboxFilterChange=b({cancelable:!1}),this.calciteComboboxOpen=b({cancelable:!1}),this.listenOn(document,"click",this.documentClickHandler),this.listen("calciteComboboxItemChange",this.calciteComboboxItemChangeHandler),this.listen("calciteInternalComboboxItemChange",this.calciteInternalComboboxItemChangeHandler),this.listen("click",this.comboboxFocusHandler)}static{this.properties={activeChipIndex:16,activeDescendant:16,activeItemIndex:16,compactSelectionDisplay:16,groupItems:16,items:16,needsIcon:16,selectedHiddenChipsCount:16,selectedVisibleChipsCount:16,allowCustomValues:7,clearDisabled:7,disabled:7,filterText:3,filteredItems:0,flipPlacements:0,form:3,label:1,maxItems:11,messageOverrides:0,name:3,open:7,overlayPositioning:3,placeholder:1,placeholderIcon:3,placeholderIconFlipRtl:7,readOnly:7,required:7,scale:3,selectedItems:0,selectionDisplay:3,selectionMode:3,status:3,validationIcon:[3,{converter:L}],validationMessage:1,validity:0,value:1}}static{this.styles=Ae}get showingInlineIcon(){let{placeholderIcon:e,selectionMode:t,selectedItems:i,open:s}=this,l=i[0],a=l?.icon,o=v(t);return!s&&l?!!a&&o:!!e&&(!l||o)}get filterText(){return this._filterText}set filterText(e){let t=this._filterText;e!==t&&(this._filterText=e,this.filterTextChange(e))}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:l,filteredFlipPlacements:a}=this;return te(this,{floatingEl:t,referenceEl:i,overlayPositioning:l,placement:s,flipPlacements:a,type:"menu"},e)}async setFocus(){await J(this),this.textInput.value?.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){super.connectedCallback(),re(this),ae(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateItems(),this.setFilteredPlacements(),this.open&&(this.openHandler(),k(this)),C(this)}async load(){q(this),this.updateItems(),this.filterItems(this.filterText,!1,!1)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="multiple")||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.updateItems(),e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("selectedItems")&&(this.hasUpdated||this.selectedItems?.length>0)&&this.selectedItemsHandler()}updated(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),K(this),this.hasUpdated||this.refreshSelectionDisplay()}loaded(){ne(this,this.getValue()),C(this),j(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),he(this),oe(this),se(this)}filterTextChange(e){this.updateActiveItemIndex(-1),this.filterItems(e,!0)}openHandler(){k(this),!this.disabled&&this.setMaxScrollerHeight()}handleDisabledChange(e){e||(this.open=!1)}valueHandler(e){if(!this.internalValueChangeFlag){let t=this.getItems();Array.isArray(e)?t.forEach(i=>i.selected=e.includes(i.value)):e?t.forEach(i=>i.selected=e===i.value):t.forEach(i=>i.selected=!1),this.updateItems()}}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}async documentClickHandler(e){this.disabled||e.composedPath().includes(this.el)||(await this.componentOnReady(),!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1)),this.allowCustomValues&&this.filterText.trim().length&&this.addCustomChip(this.filterText),this.open=!1)}calciteComboboxItemChangeHandler(e){if(this.ignoreSelectedEventsFlag)return;let t=e.target,i=this.filteredItems.indexOf(t);this.updateActiveItemIndex(i),this.toggleSelection(t,t.selected)}calciteInternalComboboxItemChangeHandler(e){e.stopPropagation(),this.updateItems()}clearValue(){this.ignoreSelectedEventsFlag=!0,this.items.forEach(e=>e.selected=!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=[],this.emitComboboxChange(),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems(""),this.setFocus()}clearInputValue(){this.textInput.value.value="",this.filterText=""}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?ee(t,e):null}getValue(){let e=this.selectedItems.map(t=>t?.value?.toString());return e?.length?e.length>1?e:e[0]:""}comboboxInViewport(){let e=this.el.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)}keyDownHandler(e){if(this.readOnly)return;let{key:t}=e;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):this.open?(this.open=!1,e.preventDefault()):!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1));break;case"ArrowLeft":(this.activeChipIndex!==-1||this.textInput.value.selectionStart===0)&&(this.previousChip(),e.preventDefault());break;case"ArrowRight":this.activeChipIndex!==-1&&(this.nextChip(),e.preventDefault());break;case"ArrowUp":this.filteredItems.length&&(e.preventDefault(),this.open&&this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView());break;case"ArrowDown":this.filteredItems.length&&(e.preventDefault(),this.open?this.shiftActiveItemIndex(1):(this.open=!0,this.ensureRecentSelectedItemIsActive()),this.comboboxInViewport()||this.el.scrollIntoView());break;case" ":!this.textInput.value.value&&!e.defaultPrevented&&(this.open||(this.open=!0,this.shiftActiveItemIndex(1)),e.preventDefault());break;case"Home":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":!this.clearDisabled&&!this.open&&this.clearValue(),this.open=!1,e.preventDefault();break;case"Enter":if(this.open&&this.activeItemIndex>-1){let i=this.filteredItems[this.activeItemIndex];this.toggleSelection(i,!i.selected),e.preventDefault()}else this.activeChipIndex>-1?(this.removeActiveChip(),e.preventDefault()):this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):e.defaultPrevented||le(this)&&e.preventDefault();break;case"Delete":case"Backspace":{if(this.selectionDisplay==="single"||this.selectionDisplay==="fit"&&this.selectedHiddenChipsCount>0)return;this.activeChipIndex>-1?(e.preventDefault(),this.removeActiveChip()):!this.filterText&&this.isMulti()&&(e.preventDefault(),this.removeLastChip());break}}}onBeforeOpen(){this.scrollToActiveItem(),this.calciteComboboxBeforeOpen.emit()}onOpen(){this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit(),ie(this)}async setMaxScrollerHeight(){let{listContainerEl:e,open:t,referenceEl:i}=this;if(!e||!t)return;await this.reposition(!0);let s=this.getMaxScrollerHeight();e.style.maxHeight=s>0?`${s}px`:"",e.style.minWidth=`${i.clientWidth}px`,await this.reposition(!0)}calciteChipCloseHandler(e){this.open=!1;let t=this.items.find(i=>i===e);t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()}clickHandler(e){if(this.readOnly)return;let t=e.composedPath();if(t.some(i=>i.tagName==="CALCITE-CHIP")){this.open=!1,e.preventDefault();return}if(t.some(i=>i.classList?.contains(ye.button))){this.clearValue(),e.preventDefault();return}this.open=!this.open,this.ensureRecentSelectedItemIsActive()}ensureRecentSelectedItemIsActive(){let{selectedItems:e}=this,t=e.length===0?0:this.items.indexOf(e[e.length-1]);this.updateActiveItemIndex(t)}hideChip(e){e.classList.add(d.chipInvisible)}showChip(e){e.classList.remove(d.chipInvisible)}refreshChipDisplay({chipEls:e,availableHorizontalChipElSpace:t,chipContainerElGap:i}){e.forEach(s=>{if(!s.selected)this.hideChip(s);else{let l=I(s);if(l&&l<t){t-=l+i,this.showChip(s);return}}this.hideChip(s)})}async refreshSelectionDisplay(){if(await N(this),v(this.selectionMode)||!this.textInput.value)return;let{allSelectedIndicatorChipEl:e,chipContainerEl:t,selectionDisplay:i,placeholder:s,selectedIndicatorChipEl:l,textInput:{value:a}}=this,o=parseInt(getComputedStyle(t).gap.replace("px","")),n=I(t),{fontSize:c,fontFamily:p}=getComputedStyle(a),x=(_(s,`${c} ${p}`)||parseInt(pe))+o,f=I(e),y=I(l),we=Math.max(f,y);if(this.setCompactSelectionDisplay({chipContainerElGap:o,chipContainerElWidth:n,inputWidth:x,largestSelectedIndicatorChipWidth:we}),i==="fit"){let V=Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter(Ee=>Ee.closable),Se=Math.round(n-((this.selectedHiddenChipsCount>0?y:0)+o+x+o));this.refreshChipDisplay({availableHorizontalChipElSpace:Se,chipContainerElGap:o,chipEls:V}),this.setVisibleAndHiddenChips(V)}}setFloatingEl(e){this.floatingEl=e,C(this)}setCompactSelectionDisplay({chipContainerElGap:e,chipContainerElWidth:t,inputWidth:i,largestSelectedIndicatorChipWidth:s}){let l=Math.round(s+e+i);(!this.maxCompactBreakpoint||this.maxCompactBreakpoint<l)&&(this.maxCompactBreakpoint=l),this.compactSelectionDisplay=t<this.maxCompactBreakpoint}setContainerEl(e){e&&this.resizeObserver?.observe(e),this.listContainerEl=e,this.transitionEl=e}setChipContainerEl(e){e&&this.resizeObserver?.observe(e),this.chipContainerEl=e}setReferenceEl(e){this.referenceEl=e,C(this)}setAllSelectedIndicatorChipEl(e){this.allSelectedIndicatorChipEl=e}setSelectedIndicatorChipEl(e){this.selectedIndicatorChipEl=e}setVisibleAndHiddenChips(e){let t=0;e.forEach(s=>{s.selected&&!s.classList.contains(d.chipInvisible)&&t++}),t!==this.selectedVisibleChipsCount&&(this.selectedVisibleChipsCount=t);let i=this.getSelectedItems().length-t;i!==this.selectedHiddenChipsCount&&(this.selectedHiddenChipsCount=i)}getMaxScrollerHeight(){let e=this.getItemsAndGroups().filter(l=>!l.hidden),{maxItems:t}=this,i=0,s=0;return e.length>t&&e.forEach(l=>{if(i<t){let a=this.calculateScrollerHeight(l);a>0&&(s+=a,i++)}}),s}calculateScrollerHeight(e){if(!e)return;let t=e.getBoundingClientRect().height,i=Array.from(e.querySelectorAll(fe)).reduce((s,l)=>s+l.getBoundingClientRect().height,0);return t-i}inputHandler(e){let t=e.target.value;this.filterText=t}getItemsAndGroups(){return[...this.groupItems,...this.items]}toggleSelection(e,t){!e||this.selectionMode==="single-persist"&&e.selected&&e.value===this.value&&!t||(this.isMulti()?(e.selected=t,this.updateAncestors(e),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach(i=>i.selected=i===e?t:!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput.value&&(this.textInput.value.value=$(e)),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(e){if(this.selectionMode!=="ancestors")return;let t=H(e),i=ve(e);e.selected?t.forEach(s=>{s.selected=!0}):(i.forEach(s=>s.selected=!1),[...t].forEach(s=>{T(s)||(s.selected=!1)}))}getFilteredItems(){return this.filterText===""?this.items:this.items.filter(e=>!e.hidden)}updateItems(){this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.groupData=this.getGroupData(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getFilteredItems(),this.needsIcon=this.getNeedsIcon(),this.items.forEach(e=>{e.selectionMode=this.selectionMode,e.scale=this.scale}),this.allowCustomValues||this.setMaxScrollerHeight(),this.groupItems.forEach((e,t,i)=>{t===0&&(e.afterEmptyGroup=!1);let s=i[t+1];s&&(s.afterEmptyGroup=e.children.length===0)})}getData(){return this.items.map(e=>({description:e.description,filterDisabled:e.filterDisabled,label:e.heading||e.textLabel,metadata:e.metadata,shortHeading:e.shortHeading,el:e}))}getGroupData(){return this.groupItems.map(e=>({label:e.label,el:e}))}getNeedsIcon(){return v(this.selectionMode)&&this.items.some(e=>e.icon)}resetText(){this.textInput.value&&(this.textInput.value.value=""),this.filterText=""}getItems(){return Array.from(this.el.querySelectorAll(be)).filter(e=>!e.disabled)}getGroupItems(){return Array.from(this.el.querySelectorAll(ge))}addCustomChip(e,t){let i=this.items.find(s=>(s.heading||s.textLabel)===e);if(i)this.toggleSelection(i,!0);else{this.isMulti()||this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1);let s=document.createElement("calcite-combobox-item");s.value=e,s.heading=e,s.selected=!0,this.el.prepend(s),this.resetText(),t&&this.setFocus(),this.updateItems(),this.filterItems(""),this.open=!0,this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex+1;t>e?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=t,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){let e=this.selectedItems[this.activeChipIndex]?.guid;(e?this.referenceEl.querySelector(`#${Ie}${e}`):null)?.setFocus()}scrollToActiveItem(){let e=this.filteredItems[this.activeItemIndex];if(!e)return;let t=this.calculateScrollerHeight(e),{offsetHeight:i,scrollTop:s}=this.listContainerEl;i+s<e.offsetTop+t?this.listContainerEl.scrollTop=e.offsetTop-i+t:e.offsetTop<s&&(this.listContainerEl.scrollTop=e.offsetTop)}shiftActiveItemIndex(e){let{length:t}=this.filteredItems,i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i),this.scrollToActiveItem()}updateActiveItemIndex(e){this.activeItemIndex=e;let t=null;this.filteredItems.forEach((i,s)=>{s===e?(i.active=!0,t=`${xe}${i.guid}`):i.active=!1}),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isAllSelected(){return this.getItems().length===this.getSelectedItems().length}isMulti(){return!v(this.selectionMode)}comboboxFocusHandler(){this.disabled||this.textInput.value?.focus()}renderChips(){let{activeChipIndex:e,readOnly:t,scale:i,selectionMode:s,messages:l}=this;return this.selectedItems.map((a,o)=>{let n={chip:!0,"chip--active":e===o},c=[...H(a)].reverse(),p=$(a),x=[...c,a].map(y=>$(y)),f=s!=="ancestors"?p:x.join(" / ");return u(p,r`<calcite-chip .appearance=${t?"outline":"solid"} class=${h(n)} .closable=${!t} data-test-id=${`chip-${o}`} .icon=${a.icon} .iconFlipRtl=${a.iconFlipRtl} id=${(a.guid?`${Ie}${a.guid}`:null)??m} .label=${f} .messageOverrides=${{dismissLabel:l.removeTag}} @focusin=${()=>this.activeChipIndex=o} @calciteChipClose=${()=>this.calciteChipCloseHandler(a)} .scale=${i} .selected=${a.selected} .tabIndex=${e===o?0:-1} title=${f??m} .value=${a.value}>${f}</calcite-chip>`)})}renderAllSelectedIndicatorChip(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i,setAllSelectedIndicatorChipEl:s}=this,l=this.messages.allSelected;return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:!(this.isAllSelected()&&!i&&!e)})} .label=${l} .scale=${t} title=${l??m} value ${g(s)}>${l}</calcite-chip>`}renderAllSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i}=this,s=this.messages.all||"All";return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:!(this.isAllSelected()&&!i&&e)})} .label=${s} .scale=${t} title=${s??m} value>${s}</calcite-chip>`}renderSelectedIndicatorChip(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l,selectedVisibleChipsCount:a,setSelectedIndicatorChipEl:o}=this,n,c;if(e)n=!0;else if(t==="single"){let p=i().length;this.isAllSelected()?n=!0:p>0?n=!1:n=!0,c=`${p} ${this.messages.selected}`}else t==="fit"&&(n=!!(this.isAllSelected()&&a===0||l===0),c=a>0?`+${l}`:`${l} ${this.messages.selected}`);return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:n})} .label=${c} .scale=${s} title=${c??m} value ${g(o)}>${c}</calcite-chip>`}renderSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l}=this,a,o;if(e){let n=i().length;this.isAllSelected()?a=!0:t==="fit"?(a=!(l>0),o=`${l||0}`):t==="single"&&(a=!(n>0),o=`${n}`)}else a=!0;return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:a})} .label=${o} .scale=${s} title=${o??m} value>${o}</calcite-chip>`}renderInput(){let{guid:e,disabled:t,placeholder:i,selectionMode:s,selectedItems:l,open:a}=this,o=v(s),n=l[0],c=!a&&o&&!!n&&!this.filterText;return r`<span class=${h({"input-wrap":!0,"input-wrap--single":o})}>${c&&u("label",r`<span class=${h({label:!0,"label--icon":!!n?.icon})}>${$(n)}</span>`)||""}${u("input",r`<input aria-activedescendant=${this.activeDescendant??m} aria-controls=${`${F}${e}`} aria-errormessage=${D.validationMessage} aria-owns=${`${F}${e}`} aria-autocomplete=list .ariaExpanded=${a} aria-haspopup=listbox .ariaInvalid=${this.status==="invalid"} .ariaLabel=${de(this)} class=${h({[d.input]:!0,"input--single":!0,[d.inputHidden]:c,"input--icon":this.showingInlineIcon&&!!this.placeholderIcon})} data-test-id=input .disabled=${t} .id=${`${$e}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i??m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex===-1?0:-1} type=text .value=${P(this.filterText??"")} ${g(this.textInput)}>`)}</span>`}renderListBoxOptions(){return this.filteredItems.map(e=>r`<li .ariaSelected=${e.selected} id=${(e.guid?`${xe}${e.guid}`:null)??m} role=option tabindex=-1>${e.heading||e.textLabel}</li>`)}renderFloatingUIContainer(){let{setFloatingEl:e,setContainerEl:t,open:i}=this,s={[d.listContainer]:!0,[A.animation]:!0,[A.animationActive]:i};return r`<div aria-hidden=true class=${h(d.floatingUIContainer)} ${g(e)}><div class=${h(s)} ${g(t)}><ul class=${h({list:!0,"list--hide":!i})}><slot></slot></ul></div></div>`}renderSelectedOrPlaceholderIcon(){let{open:e,placeholderIcon:t,placeholderIconFlipRtl:i,selectedItems:s}=this,l=s[0],a=l?.icon,o=t&&(e||!l);return this.showingInlineIcon&&u("selected-placeholder-icon",r`<span class="icon-start"><calcite-icon class=${h({[d.selectedIcon]:!o,[d.placeholderIcon]:o})} .flipRtl=${o?i:l.iconFlipRtl} .icon=${o?t:a} .scale=${w(this.scale)}></calcite-icon></span>`)||""}renderChevronIcon(){let{open:e}=this;return u("chevron",r`<span class="icon-end"><calcite-icon class=${h(d.icon)} .icon=${e?"chevron-up":"chevron-down"} .scale=${w(this.scale)}></calcite-icon></span>`)}render(){let{selectionDisplay:e,guid:t,label:i,open:s,readOnly:l}=this,a=v(this.selectionMode),o=e==="all",n=e==="single",c=!a&&e==="fit",p=!this.clearDisabled&&this.value?.length>0;return Q({disabled:this.disabled,children:r`<div aria-live=polite class=${h({wrapper:!0,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":s})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${g(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${u("grid",r`<div class=${h({"grid-input":!0,[d.selectionDisplayFit]:c,[d.selectionDisplaySingle]:n})} ${g(this.setChipContainerEl)}>${!a&&!n&&this.renderChips()||""}${!a&&!o&&[this.renderSelectedIndicatorChip(),this.renderSelectedIndicatorChipCompact(),this.renderAllSelectedIndicatorChip(),this.renderAllSelectedIndicatorChipCompact()]||""}<label class="screen-readers-only" .htmlFor=${`${$e}${t}`} .id=${`${Ce}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l&&p?u("close-button",ke({disabled:this.disabled,label:this.messages.clear,scale:this.scale})):null}${!l&&this.renderChevronIcon()||""}</div><ul aria-labelledby=${`${Ce}${t}`} aria-multiselectable=true class="screen-readers-only" .id=${`${F}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${ce({component:this})}${this.validationMessage&&this.status==="invalid"?ue({icon:this.validationIcon,id:D.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};U("calcite-combobox",M);export{M as Combobox};
6
+ import{d as pe}from"./6LZS3V5U.js";import{a as ue}from"./CPSRRWN6.js";import{a as me}from"./EOSZ7S2T.js";import{a as be,b as ge,c as fe,d,e as D,g as H,h as ve,i as T,k as v,l as $}from"./WOTGRZAH.js";import{a as Z,c as A,d as ee,e as te,f as ie,g as C,h as se}from"./BUMJC6Q7.js";import"./CKXX7CCV.js";import{a as k}from"./OFZSTUJN.js";import{a as le,c as ae,e as oe,f as ne,h as ce}from"./MTACIAEL.js";import{c as re,d as he,e as de}from"./TD56JOVA.js";import{a as K,b as Q}from"./KM4ULHYE.js";import{a as u}from"./JR3ROP56.js";import{a as w}from"./5IEXLG63.js";import"./2OGPRYXD.js";import{a as E,b as Y}from"./MYX7MLUP.js";import{a as S}from"./Q5E2TYOP.js";import{a as X}from"./GHH2UGV5.js";import{a as G,b as g}from"./ATFXOAWN.js";import{f as I,i as _}from"./Z7WRWQGA.js";import{a as q,b as j,c as N,d as J}from"./AG3SBTL6.js";import{a as W}from"./PHQDO57D.js";import{A as L,C as B,I as U,d as O,e as r,i as m,t as P,u as b,v as R,w as h}from"./AUJ5K7YO.js";var ye={button:"x-button"},ke=({disabled:z,key:e,label:t,scale:i})=>u(e,r`<button .ariaLabel=${t} class=${h(ye.button)} .disabled=${z} tabindex=-1 type=button><calcite-icon icon=x .scale=${w(i)}></calcite-icon></button>`),Ae=O`: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:block}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]) .x-button{inline-size:1rem;block-size:1rem}:host([scale=m]) .x-button{inline-size:1.5rem;block-size:1.5rem}:host([scale=l]) .x-button{inline-size:2rem;block-size:2rem}.x-button{margin:0;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-radius:50%;border-color:transparent;background-color:var(--calcite-color-foreground-2)}.x-button:active,.x-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-3)}.x-button:active{border-style:solid;border-color:var(--calcite-color-brand)}.x-button calcite-icon{color:inherit}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l: .5rem;--calcite-combobox-item-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) }:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l: .75rem;--calcite-combobox-item-spacing-unit-s: .5rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) }:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l: 1rem;--calcite-combobox-item-spacing-unit-s: .75rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) }:host([scale=l]) .x-button{margin-inline-end:1rem}.wrapper{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.wrapper:hover .icon{color:var(--calcite-color-text-1)}:host(:focus-within) .wrapper,.wrapper--active{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([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-combobox-item-spacing-unit-s);margin-inline-end:var(--calcite-combobox-item-spacing-unit-s)}.grid-input.selection-display-fit,.grid-input.selection-display-single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.placeholder-icon{color:var(--calcite-color-text-3)}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-color-text-3)}.floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown);display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@media (forced-colors: active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{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}.list-container{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-color-foreground-1);inline-size:var(--calcite-dropdown-width, 100%)}.list{margin:0;display:block;padding:0}.list--hide{block-size:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}.chip--active{background-color:var(--calcite-color-foreground-3)}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}::slotted(calcite-combobox-item-group:not(:first-child)){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}`,xe="combobox-item-",Ie="combobox-chip-",Ce="combobox-label-",F="combobox-listbox-",$e="combobox-input-",M=class extends R{constructor(){super(),this.internalComboboxChangeEvent=()=>{this.calciteComboboxChange.emit()},this.emitComboboxChange=E(this.internalComboboxChangeEvent,0),this.filterItems=(()=>{let e=(t,i)=>t&&i.some(({el:s})=>t===s);return E((t,i=!1,s=!0)=>{let l=me([...this.data,...this.groupData],t,["description","label","metadata","shortHeading"]),a=this.getItemsAndGroups(),o=t==="";a.forEach(n=>{if(o){n.hidden=!1;return}let c=!e(n,l);n.hidden=c;let[p,x]=n.ancestors;(e(p,l)||e(x,l))&&(n.hidden=!1),c||n.ancestors.forEach(f=>f.hidden=!1)}),this.filterTextMatchPattern=this.filterText&&new RegExp(`(${Y(this.filterText)})`,"i"),this.filteredItems=this.getFilteredItems(),this.filteredItems.forEach(n=>{n.filterTextMatchPattern=this.filterTextMatchPattern}),i&&(this.open=this.filterText.trim().length>0&&this.filteredItems.length>0),s&&this.calciteComboboxFilterChange.emit()},B.filter)})(),this._filterText="",this.getSelectedItems=()=>{if(!this.isMulti()){let e=this.items.find(({selected:t})=>t);return e?[e]:[]}return this.items.filter(e=>e.selected&&(this.selectionMode!=="ancestors"||!T(e))).sort((e,t)=>{let i=this.selectedItems.indexOf(e),s=this.selectedItems.indexOf(t);return i>-1&&s>-1?i-s:s-i})},this.guid=W(),this.ignoreSelectedEventsFlag=!1,this.inputHeight=0,this.internalValueChangeFlag=!1,this.mutationObserver=S("mutation",()=>this.updateItems()),this.onLabelClick=()=>{this.setFocus()},this.openTransitionProp="opacity",this.placement=Z,this.resizeObserver=S("resize",()=>{this.setMaxScrollerHeight(),this.refreshSelectionDisplay()}),this.textInput=G(),this._value=null,this.activeChipIndex=-1,this.activeDescendant="",this.activeItemIndex=-1,this.compactSelectionDisplay=!1,this.groupItems=[],this.items=[],this.selectedHiddenChipsCount=0,this.selectedVisibleChipsCount=0,this.clearDisabled=!1,this.disabled=!1,this.filteredItems=[],this.maxItems=0,this.messages=X(),this.open=!1,this.overlayPositioning="absolute",this.placeholderIconFlipRtl=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.selectedItems=[],this.selectionDisplay="all",this.selectionMode="multiple",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.calciteComboboxBeforeClose=b({cancelable:!1}),this.calciteComboboxBeforeOpen=b({cancelable:!1}),this.calciteComboboxChange=b({cancelable:!1}),this.calciteComboboxChipClose=b({cancelable:!1}),this.calciteComboboxClose=b({cancelable:!1}),this.calciteComboboxFilterChange=b({cancelable:!1}),this.calciteComboboxOpen=b({cancelable:!1}),this.listenOn(document,"click",this.documentClickHandler),this.listen("calciteComboboxItemChange",this.calciteComboboxItemChangeHandler),this.listen("calciteInternalComboboxItemChange",this.calciteInternalComboboxItemChangeHandler),this.listen("click",this.comboboxFocusHandler)}static{this.properties={activeChipIndex:16,activeDescendant:16,activeItemIndex:16,compactSelectionDisplay:16,groupItems:16,items:16,needsIcon:16,selectedHiddenChipsCount:16,selectedVisibleChipsCount:16,allowCustomValues:7,clearDisabled:7,disabled:7,filterText:3,filteredItems:0,flipPlacements:0,form:3,label:1,maxItems:11,messageOverrides:0,name:3,open:7,overlayPositioning:3,placeholder:1,placeholderIcon:3,placeholderIconFlipRtl:7,readOnly:7,required:7,scale:3,selectedItems:0,selectionDisplay:3,selectionMode:3,status:3,validationIcon:[3,{converter:L}],validationMessage:1,validity:0,value:1}}static{this.styles=Ae}get showingInlineIcon(){let{placeholderIcon:e,selectionMode:t,selectedItems:i,open:s}=this,l=i[0],a=l?.icon,o=v(t);return!s&&l?!!a&&o:!!e&&(!l||o)}get filterText(){return this._filterText}set filterText(e){let t=this._filterText;e!==t&&(this._filterText=e,this.filterTextChange(e))}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.valueHandler(e))}async reposition(e=!1){let{floatingEl:t,referenceEl:i,placement:s,overlayPositioning:l,filteredFlipPlacements:a}=this;return te(this,{floatingEl:t,referenceEl:i,overlayPositioning:l,placement:s,flipPlacements:a,type:"menu"},e)}async setFocus(){await J(this),this.textInput.value?.focus(),this.activeChipIndex=-1,this.activeItemIndex=-1}connectedCallback(){super.connectedCallback(),re(this),ae(this),this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1,this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.updateItems(),this.setFilteredPlacements(),this.open&&(this.openHandler(),k(this)),C(this)}async load(){q(this),this.updateItems(),this.filterItems(this.filterText,!1,!1)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.handleDisabledChange(this.disabled),e.has("maxItems")&&(this.hasUpdated||this.maxItems!==0)&&this.setMaxScrollerHeight(),e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")&&this.reposition(!0),(e.has("selectionMode")&&(this.hasUpdated||this.selectionMode!=="multiple")||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.updateItems(),e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("selectedItems")&&(this.hasUpdated||this.selectedItems?.length>0)&&this.selectedItemsHandler()}updated(){this.el.offsetHeight!==this.inputHeight&&(this.reposition(!0),this.inputHeight=this.el.offsetHeight),K(this),this.hasUpdated||this.refreshSelectionDisplay()}loaded(){ne(this,this.getValue()),C(this),j(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect(),he(this),oe(this),se(this)}filterTextChange(e){this.updateActiveItemIndex(-1),this.filterItems(e,!0)}openHandler(){k(this),!this.disabled&&this.setMaxScrollerHeight()}handleDisabledChange(e){e||(this.open=!1)}valueHandler(e){if(!this.internalValueChangeFlag){let t=this.getItems();Array.isArray(e)?t.forEach(i=>i.selected=e.includes(i.value)):e?t.forEach(i=>i.selected=e===i.value):t.forEach(i=>i.selected=!1),this.updateItems()}}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}selectedItemsHandler(){this.internalValueChangeFlag=!0,this.value=this.getValue(),this.internalValueChangeFlag=!1}async documentClickHandler(e){this.disabled||e.composedPath().includes(this.el)||(await this.componentOnReady(),!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1)),this.allowCustomValues&&this.filterText.trim().length&&this.addCustomChip(this.filterText),this.open=!1)}calciteComboboxItemChangeHandler(e){if(this.ignoreSelectedEventsFlag)return;let t=e.target,i=this.filteredItems.indexOf(t);this.updateActiveItemIndex(i),this.toggleSelection(t,t.selected)}calciteInternalComboboxItemChangeHandler(e){e.stopPropagation(),this.updateItems()}clearValue(){this.ignoreSelectedEventsFlag=!0,this.items.forEach(e=>e.selected=!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=[],this.emitComboboxChange(),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems(""),this.setFocus()}clearInputValue(){this.textInput.value.value="",this.filterText=""}setFilteredPlacements(){let{el:e,flipPlacements:t}=this;this.filteredFlipPlacements=t?ee(t,e):null}getValue(){let e=this.selectedItems.map(t=>t?.value?.toString());return e?.length?e.length>1?e:e[0]:""}comboboxInViewport(){let e=this.el.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.right<=(window.innerWidth||document.documentElement.clientWidth)&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)}keyDownHandler(e){if(this.readOnly)return;let{key:t}=e;switch(t){case"Tab":this.activeChipIndex=-1,this.activeItemIndex=-1,this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):this.open?(this.open=!1,e.preventDefault()):!this.allowCustomValues&&this.filterText&&(this.clearInputValue(),this.filterItems(""),this.updateActiveItemIndex(-1));break;case"ArrowLeft":(this.activeChipIndex!==-1||this.textInput.value.selectionStart===0)&&(this.previousChip(),e.preventDefault());break;case"ArrowRight":this.activeChipIndex!==-1&&(this.nextChip(),e.preventDefault());break;case"ArrowUp":this.filteredItems.length&&(e.preventDefault(),this.open&&this.shiftActiveItemIndex(-1),this.comboboxInViewport()||this.el.scrollIntoView());break;case"ArrowDown":this.filteredItems.length&&(e.preventDefault(),this.open?this.shiftActiveItemIndex(1):(this.open=!0,this.ensureRecentSelectedItemIsActive()),this.comboboxInViewport()||this.el.scrollIntoView());break;case" ":!this.textInput.value.value&&!e.defaultPrevented&&(this.open||(this.open=!0,this.shiftActiveItemIndex(1)),e.preventDefault());break;case"Home":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(0),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"End":if(!this.open)return;e.preventDefault(),this.updateActiveItemIndex(this.filteredItems.length-1),this.scrollToActiveItem(),this.comboboxInViewport()||this.el.scrollIntoView();break;case"Escape":!this.clearDisabled&&!this.open&&this.clearValue(),this.open=!1,e.preventDefault();break;case"Enter":if(this.open&&this.activeItemIndex>-1){let i=this.filteredItems[this.activeItemIndex];this.toggleSelection(i,!i.selected),e.preventDefault()}else this.activeChipIndex>-1?(this.removeActiveChip(),e.preventDefault()):this.allowCustomValues&&this.filterText?(this.addCustomChip(this.filterText,!0),e.preventDefault()):e.defaultPrevented||le(this)&&e.preventDefault();break;case"Delete":case"Backspace":{if(this.selectionDisplay==="single"||this.selectionDisplay==="fit"&&this.selectedHiddenChipsCount>0)return;this.activeChipIndex>-1?(e.preventDefault(),this.removeActiveChip()):!this.filterText&&this.isMulti()&&(e.preventDefault(),this.removeLastChip());break}}}onBeforeOpen(){this.scrollToActiveItem(),this.calciteComboboxBeforeOpen.emit()}onOpen(){this.calciteComboboxOpen.emit()}onBeforeClose(){this.calciteComboboxBeforeClose.emit()}onClose(){this.calciteComboboxClose.emit(),ie(this)}async setMaxScrollerHeight(){let{listContainerEl:e,open:t,referenceEl:i}=this;if(!e||!t)return;await this.reposition(!0);let s=this.getMaxScrollerHeight();e.style.maxHeight=s>0?`${s}px`:"",e.style.minWidth=`${i.clientWidth}px`,await this.reposition(!0)}calciteChipCloseHandler(e){this.open=!1;let t=this.items.find(i=>i===e);t&&this.toggleSelection(t,!1),this.calciteComboboxChipClose.emit()}clickHandler(e){if(this.readOnly)return;let t=e.composedPath();if(t.some(i=>i.tagName==="CALCITE-CHIP")){this.open=!1,e.preventDefault();return}if(t.some(i=>i.classList?.contains(ye.button))){this.clearValue(),e.preventDefault();return}this.open=!this.open,this.ensureRecentSelectedItemIsActive()}ensureRecentSelectedItemIsActive(){let{selectedItems:e}=this,t=e.length===0?0:this.items.indexOf(e[e.length-1]);this.updateActiveItemIndex(t)}hideChip(e){e.classList.add(d.chipInvisible)}showChip(e){e.classList.remove(d.chipInvisible)}refreshChipDisplay({chipEls:e,availableHorizontalChipElSpace:t,chipContainerElGap:i}){e.forEach(s=>{if(!s.selected)this.hideChip(s);else{let l=I(s);if(l&&l<t){t-=l+i,this.showChip(s);return}}this.hideChip(s)})}async refreshSelectionDisplay(){if(await N(this),v(this.selectionMode)||!this.textInput.value)return;let{allSelectedIndicatorChipEl:e,chipContainerEl:t,selectionDisplay:i,placeholder:s,selectedIndicatorChipEl:l,textInput:{value:a}}=this,o=parseInt(getComputedStyle(t).gap.replace("px","")),n=I(t),{fontSize:c,fontFamily:p}=getComputedStyle(a),x=(_(s,`${c} ${p}`)||parseInt(pe))+o,f=I(e),y=I(l),we=Math.max(f,y);if(this.setCompactSelectionDisplay({chipContainerElGap:o,chipContainerElWidth:n,inputWidth:x,largestSelectedIndicatorChipWidth:we}),i==="fit"){let V=Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter(Ee=>Ee.closable),Se=Math.round(n-((this.selectedHiddenChipsCount>0?y:0)+o+x+o));this.refreshChipDisplay({availableHorizontalChipElSpace:Se,chipContainerElGap:o,chipEls:V}),this.setVisibleAndHiddenChips(V)}}setFloatingEl(e){this.floatingEl=e,C(this)}setCompactSelectionDisplay({chipContainerElGap:e,chipContainerElWidth:t,inputWidth:i,largestSelectedIndicatorChipWidth:s}){let l=Math.round(s+e+i);(!this.maxCompactBreakpoint||this.maxCompactBreakpoint<l)&&(this.maxCompactBreakpoint=l),this.compactSelectionDisplay=t<this.maxCompactBreakpoint}setContainerEl(e){e&&this.resizeObserver?.observe(e),this.listContainerEl=e,this.transitionEl=e}setChipContainerEl(e){e&&this.resizeObserver?.observe(e),this.chipContainerEl=e}setReferenceEl(e){this.referenceEl=e,C(this)}setAllSelectedIndicatorChipEl(e){this.allSelectedIndicatorChipEl=e}setSelectedIndicatorChipEl(e){this.selectedIndicatorChipEl=e}setVisibleAndHiddenChips(e){let t=0;e.forEach(s=>{s.selected&&!s.classList.contains(d.chipInvisible)&&t++}),t!==this.selectedVisibleChipsCount&&(this.selectedVisibleChipsCount=t);let i=this.getSelectedItems().length-t;i!==this.selectedHiddenChipsCount&&(this.selectedHiddenChipsCount=i)}getMaxScrollerHeight(){let e=this.getItemsAndGroups().filter(l=>!l.hidden),{maxItems:t}=this,i=0,s=0;return e.length>t&&e.forEach(l=>{if(i<t){let a=this.calculateScrollerHeight(l);a>0&&(s+=a,i++)}}),s}calculateScrollerHeight(e){if(!e)return;let t=e.getBoundingClientRect().height,i=Array.from(e.querySelectorAll(fe)).reduce((s,l)=>s+l.getBoundingClientRect().height,0);return t-i}inputHandler(e){let t=e.target.value;this.filterText=t}getItemsAndGroups(){return[...this.groupItems,...this.items]}toggleSelection(e,t){!e||this.selectionMode==="single-persist"&&e.selected&&e.value===this.value&&!t||(this.isMulti()?(e.selected=t,this.updateAncestors(e),this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.resetText(),this.filterItems("")):(this.ignoreSelectedEventsFlag=!0,this.items.forEach(i=>i.selected=i===e?t:!1),this.ignoreSelectedEventsFlag=!1,this.selectedItems=this.getSelectedItems(),this.emitComboboxChange(),this.textInput.value&&(this.textInput.value.value=$(e)),this.open=!1,this.updateActiveItemIndex(-1),this.resetText(),this.filterItems("")))}updateAncestors(e){if(this.selectionMode!=="ancestors")return;let t=H(e),i=ve(e);e.selected?t.forEach(s=>{s.selected=!0}):(i.forEach(s=>s.selected=!1),[...t].forEach(s=>{T(s)||(s.selected=!1)}))}getFilteredItems(){return this.filterText===""?this.items:this.items.filter(e=>!e.hidden)}updateItems(){this.items=this.getItems(),this.groupItems=this.getGroupItems(),this.data=this.getData(),this.groupData=this.getGroupData(),this.selectedItems=this.getSelectedItems(),this.filteredItems=this.getFilteredItems(),this.needsIcon=this.getNeedsIcon(),this.items.forEach(e=>{e.selectionMode=this.selectionMode,e.scale=this.scale}),this.allowCustomValues||this.setMaxScrollerHeight(),this.groupItems.forEach((e,t,i)=>{t===0&&(e.afterEmptyGroup=!1);let s=i[t+1];s&&(s.afterEmptyGroup=e.children.length===0)})}getData(){return this.items.map(e=>({description:e.description,filterDisabled:e.filterDisabled,label:e.heading||e.textLabel,metadata:e.metadata,shortHeading:e.shortHeading,el:e}))}getGroupData(){return this.groupItems.map(e=>({label:e.label,el:e}))}getNeedsIcon(){return v(this.selectionMode)&&this.items.some(e=>e.icon)}resetText(){this.textInput.value&&(this.textInput.value.value=""),this.filterText=""}getItems(){return Array.from(this.el.querySelectorAll(be)).filter(e=>!e.disabled)}getGroupItems(){return Array.from(this.el.querySelectorAll(ge))}addCustomChip(e,t){let i=this.items.find(s=>(s.heading||s.textLabel)===e);if(i)this.toggleSelection(i,!0);else{this.isMulti()||this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1);let s=document.createElement("calcite-combobox-item");s.value=e,s.heading=e,s.selected=!0,this.el.prepend(s),this.resetText(),t&&this.setFocus(),this.updateItems(),this.filterItems(""),this.open=!0,this.emitComboboxChange()}}removeActiveChip(){this.toggleSelection(this.selectedItems[this.activeChipIndex],!1),this.setFocus()}removeLastChip(){this.toggleSelection(this.selectedItems[this.selectedItems.length-1],!1),this.setFocus()}previousChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex;this.activeChipIndex=t===-1?e:Math.max(t-1,0),this.updateActiveItemIndex(-1),this.focusChip()}nextChip(){let e=this.selectedItems.length-1,t=this.activeChipIndex+1;t>e?(this.activeChipIndex=-1,this.setFocus()):(this.activeChipIndex=t,this.focusChip()),this.updateActiveItemIndex(-1)}focusChip(){let e=this.selectedItems[this.activeChipIndex]?.guid;(e?this.referenceEl.querySelector(`#${Ie}${e}`):null)?.setFocus()}scrollToActiveItem(){let e=this.filteredItems[this.activeItemIndex];if(!e)return;let t=this.calculateScrollerHeight(e),{offsetHeight:i,scrollTop:s}=this.listContainerEl;i+s<e.offsetTop+t?this.listContainerEl.scrollTop=e.offsetTop-i+t:e.offsetTop<s&&(this.listContainerEl.scrollTop=e.offsetTop)}shiftActiveItemIndex(e){let{length:t}=this.filteredItems,i=(this.activeItemIndex+t+e)%t;this.updateActiveItemIndex(i),this.scrollToActiveItem()}updateActiveItemIndex(e){this.activeItemIndex=e;let t=null;this.filteredItems.forEach((i,s)=>{s===e?(i.active=!0,t=`${xe}${i.guid}`):i.active=!1}),this.activeDescendant=t,this.activeItemIndex>-1&&(this.activeChipIndex=-1)}isAllSelected(){return this.getItems().length===this.getSelectedItems().length}isMulti(){return!v(this.selectionMode)}comboboxFocusHandler(){this.disabled||this.textInput.value?.focus()}renderChips(){let{activeChipIndex:e,readOnly:t,scale:i,selectionMode:s,messages:l}=this;return this.selectedItems.map((a,o)=>{let n={chip:!0,"chip--active":e===o},c=[...H(a)].reverse(),p=$(a),x=[...c,a].map(y=>$(y)),f=s!=="ancestors"?p:x.join(" / ");return u(p,r`<calcite-chip .appearance=${t?"outline":"solid"} class=${h(n)} .closable=${!t} data-test-id=${`chip-${o}`} .icon=${a.icon} .iconFlipRtl=${a.iconFlipRtl} id=${(a.guid?`${Ie}${a.guid}`:null)??m} .label=${f} .messageOverrides=${{dismissLabel:l.removeTag}} @focusin=${()=>this.activeChipIndex=o} @calciteChipClose=${()=>this.calciteChipCloseHandler(a)} .scale=${i} .selected=${a.selected} .tabIndex=${e===o?0:-1} title=${f??m} .value=${a.value}>${f}</calcite-chip>`)})}renderAllSelectedIndicatorChip(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i,setAllSelectedIndicatorChipEl:s}=this,l=this.messages.allSelected;return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:!(this.isAllSelected()&&!i&&!e)})} .label=${l} .scale=${t} title=${l??m} value ${g(s)}>${l}</calcite-chip>`}renderAllSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,scale:t,selectedVisibleChipsCount:i}=this,s=this.messages.all||"All";return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:!(this.isAllSelected()&&!i&&e)})} .label=${s} .scale=${t} title=${s??m} value>${s}</calcite-chip>`}renderSelectedIndicatorChip(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l,selectedVisibleChipsCount:a,setSelectedIndicatorChipEl:o}=this,n,c;if(e)n=!0;else if(t==="single"){let p=i().length;this.isAllSelected()?n=!0:p>0?n=!1:n=!0,c=`${p} ${this.messages.selected}`}else t==="fit"&&(n=!!(this.isAllSelected()&&a===0||l===0),c=a>0?`+${l}`:`${l} ${this.messages.selected}`);return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:n})} .label=${c} .scale=${s} title=${c??m} value ${g(o)}>${c}</calcite-chip>`}renderSelectedIndicatorChipCompact(){let{compactSelectionDisplay:e,selectionDisplay:t,getSelectedItems:i,scale:s,selectedHiddenChipsCount:l}=this,a,o;if(e){let n=i().length;this.isAllSelected()?a=!0:t==="fit"?(a=!(l>0),o=`${l||0}`):t==="single"&&(a=!(n>0),o=`${n}`)}else a=!0;return r`<calcite-chip class=${h({chip:!0,[d.chipInvisible]:a})} .label=${o} .scale=${s} title=${o??m} value>${o}</calcite-chip>`}renderInput(){let{guid:e,disabled:t,placeholder:i,selectionMode:s,selectedItems:l,open:a}=this,o=v(s),n=l[0],c=!a&&o&&!!n&&!this.filterText;return r`<span class=${h({"input-wrap":!0,"input-wrap--single":o})}>${c&&u("label",r`<span class=${h({label:!0,"label--icon":!!n?.icon})}>${$(n)}</span>`)||""}${u("input",r`<input aria-activedescendant=${this.activeDescendant??m} aria-controls=${`${F}${e}`} aria-errormessage=${D.validationMessage} aria-owns=${`${F}${e}`} aria-autocomplete=list .ariaExpanded=${a} aria-haspopup=listbox .ariaInvalid=${this.status==="invalid"} .ariaLabel=${de(this)} class=${h({[d.input]:!0,"input--single":!0,[d.inputHidden]:c,"input--icon":this.showingInlineIcon&&!!this.placeholderIcon})} data-test-id=input .disabled=${t} .id=${`${$e}${e}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${i??m} .readOnly=${this.readOnly} role=combobox .tabIndex=${this.activeChipIndex===-1?0:-1} type=text .value=${P(this.filterText??"")} ${g(this.textInput)}>`)}</span>`}renderListBoxOptions(){return this.filteredItems.map(e=>r`<li .ariaSelected=${e.selected} id=${(e.guid?`${xe}${e.guid}`:null)??m} role=option tabindex=-1>${e.heading||e.textLabel}</li>`)}renderFloatingUIContainer(){let{setFloatingEl:e,setContainerEl:t,open:i}=this,s={[d.listContainer]:!0,[A.animation]:!0,[A.animationActive]:i};return r`<div aria-hidden=true class=${h(d.floatingUIContainer)} ${g(e)}><div class=${h(s)} ${g(t)}><ul class=${h({list:!0,"list--hide":!i})}><slot></slot></ul></div></div>`}renderSelectedOrPlaceholderIcon(){let{open:e,placeholderIcon:t,placeholderIconFlipRtl:i,selectedItems:s}=this,l=s[0],a=l?.icon,o=t&&(e||!l);return this.showingInlineIcon&&u("selected-placeholder-icon",r`<span class="icon-start"><calcite-icon class=${h({[d.selectedIcon]:!o,[d.placeholderIcon]:o})} .flipRtl=${o?i:l.iconFlipRtl} .icon=${o?t:a} .scale=${w(this.scale)}></calcite-icon></span>`)||""}renderChevronIcon(){let{open:e}=this;return u("chevron",r`<span class="icon-end"><calcite-icon class=${h(d.icon)} .icon=${e?"chevron-up":"chevron-down"} .scale=${w(this.scale)}></calcite-icon></span>`)}render(){let{selectionDisplay:e,guid:t,label:i,open:s,readOnly:l}=this,a=v(this.selectionMode),o=e==="all",n=e==="single",c=!a&&e==="fit",p=!this.clearDisabled&&this.value?.length>0;return Q({disabled:this.disabled,children:r`<div aria-live=polite class=${h({wrapper:!0,"wrapper--single":a||!this.selectedItems.length,"wrapper--active":s})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${g(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${u("grid",r`<div class=${h({"grid-input":!0,[d.selectionDisplayFit]:c,[d.selectionDisplaySingle]:n})} ${g(this.setChipContainerEl)}>${!a&&!n&&this.renderChips()||""}${!a&&!o&&[this.renderSelectedIndicatorChip(),this.renderSelectedIndicatorChipCompact(),this.renderAllSelectedIndicatorChip(),this.renderAllSelectedIndicatorChipCompact()]||""}<label class="screen-readers-only" .htmlFor=${`${$e}${t}`} .id=${`${Ce}${t}`}>${i}</label>${this.renderInput()}</div>`)}${!l&&p?u("close-button",ke({disabled:this.disabled,label:this.messages.clear,scale:this.scale})):null}${!l&&this.renderChevronIcon()||""}</div><ul aria-labelledby=${`${Ce}${t}`} aria-multiselectable=true class="screen-readers-only" .id=${`${F}${t}`} role=listbox tabindex=-1>${this.renderListBoxOptions()}</ul>${this.renderFloatingUIContainer()}${ce({component:this})}${this.validationMessage&&this.status==="invalid"?ue({icon:this.validationIcon,id:D.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};U("calcite-combobox",M);export{M as Combobox};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as s}from"./6B6Q3CQA.js";import"./LJBA34XN.js";function m(r){return r>1&&r<5&&~~(r/10)!==1}function n(r,e,t,a){var _=r+" ";switch(t){case"s":return e||a?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":a?"min\xFAtu":"min\xFAtou";case"mm":return e||a?_+(m(r)?"min\xFAty":"min\xFAt"):_+"min\xFAtami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?_+(m(r)?"hodiny":"hod\xEDn"):_+"hodinami";case"d":return e||a?"de\u0148":"d\u0148om";case"dd":return e||a?_+(m(r)?"dni":"dn\xED"):_+"d\u0148ami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?_+(m(r)?"mesiace":"mesiacov"):_+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?_+(m(r)?"roky":"rokov"):_+"rokmi"}}var o={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};s.locale(o,null,!0);var c=o;export{c as default};
6
+ import{b as s}from"./3NNAQ2QU.js";import"./FQPYMTWH.js";function m(r){return r>1&&r<5&&~~(r/10)!==1}function n(r,e,t,a){var _=r+" ";switch(t){case"s":return e||a?"p\xE1r sek\xFAnd":"p\xE1r sekundami";case"m":return e?"min\xFAta":a?"min\xFAtu":"min\xFAtou";case"mm":return e||a?_+(m(r)?"min\xFAty":"min\xFAt"):_+"min\xFAtami";case"h":return e?"hodina":a?"hodinu":"hodinou";case"hh":return e||a?_+(m(r)?"hodiny":"hod\xEDn"):_+"hodinami";case"d":return e||a?"de\u0148":"d\u0148om";case"dd":return e||a?_+(m(r)?"dni":"dn\xED"):_+"d\u0148ami";case"M":return e||a?"mesiac":"mesiacom";case"MM":return e||a?_+(m(r)?"mesiace":"mesiacov"):_+"mesiacmi";case"y":return e||a?"rok":"rokom";case"yy":return e||a?_+(m(r)?"roky":"rokov"):_+"rokmi"}}var o={name:"sk",weekdays:"nede\u013Ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),months:"janu\xE1r_febru\xE1r_marec_apr\xEDl_m\xE1j_j\xFAn_j\xFAl_august_september_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_mar_apr_m\xE1j_j\xFAn_j\xFAl_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"pred %s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n}};s.locale(o,null,!0);var c=o;export{c as default};
@@ -1,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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as r}from"./6B6Q3CQA.js";import"./LJBA34XN.js";var s={name:"bg",weekdays:"\u043D\u0435\u0434\u0435\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u044F\u0434\u0430_\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A_\u043F\u0435\u0442\u044A\u043A_\u0441\u044A\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u044F_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u044A\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:"\u044F\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"),monthsShort:"\u044F\u043D\u0443_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"),weekStart:1,ordinal:function(_){var e=_%100;if(e>10&&e<20)return _+"-\u0442\u0438";var t=_%10;return t===1?_+"-\u0432\u0438":t===2?_+"-\u0440\u0438":t===7||t===8?_+"-\u043C\u0438":_+"-\u0442\u0438"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u0441\u043B\u0435\u0434 %s",past:"\u043F\u0440\u0435\u0434\u0438 %s",s:"\u043D\u044F\u043A\u043E\u043B\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u0435\u043D\u0430",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"}};r.locale(s,null,!0);var a=s;export{a as default};
6
+ import{b as r}from"./3NNAQ2QU.js";import"./FQPYMTWH.js";var s={name:"bg",weekdays:"\u043D\u0435\u0434\u0435\u043B\u044F_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u044F\u0434\u0430_\u0447\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A_\u043F\u0435\u0442\u044A\u043A_\u0441\u044A\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u043D\u0435\u0434_\u043F\u043E\u043D_\u0432\u0442\u043E_\u0441\u0440\u044F_\u0447\u0435\u0442_\u043F\u0435\u0442_\u0441\u044A\u0431".split("_"),weekdaysMin:"\u043D\u0434_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:"\u044F\u043D\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0438\u043B_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438_\u043E\u043A\u0442\u043E\u043C\u0432\u0440\u0438_\u043D\u043E\u0435\u043C\u0432\u0440\u0438_\u0434\u0435\u043A\u0435\u043C\u0432\u0440\u0438".split("_"),monthsShort:"\u044F\u043D\u0443_\u0444\u0435\u0432_\u043C\u0430\u0440_\u0430\u043F\u0440_\u043C\u0430\u0439_\u044E\u043D\u0438_\u044E\u043B\u0438_\u0430\u0432\u0433_\u0441\u0435\u043F_\u043E\u043A\u0442_\u043D\u043E\u0435_\u0434\u0435\u043A".split("_"),weekStart:1,ordinal:function(_){var e=_%100;if(e>10&&e<20)return _+"-\u0442\u0438";var t=_%10;return t===1?_+"-\u0432\u0438":t===2?_+"-\u0440\u0438":t===7||t===8?_+"-\u043C\u0438":_+"-\u0442\u0438"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"\u0441\u043B\u0435\u0434 %s",past:"\u043F\u0440\u0435\u0434\u0438 %s",s:"\u043D\u044F\u043A\u043E\u043B\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434\u0438",m:"\u043C\u0438\u043D\u0443\u0442\u0430",mm:"%d \u043C\u0438\u043D\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043D",dd:"%d \u0434\u0435\u043D\u0430",M:"\u043C\u0435\u0441\u0435\u0446",MM:"%d \u043C\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043E\u0434\u0438\u043D\u0430",yy:"%d \u0433\u043E\u0434\u0438\u043D\u0438"}};r.locale(s,null,!0);var a=s;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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{E as d}from"./BACCFA5T.js";var f=new Set,u={trace:0,debug:1,info:2,warn:4,error:8,off:10};function $(r){return u[r]>=u[d]}function e(r,...t){$(r)&&console[r].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...t)}var o,w={debug:r=>e("debug",r),info:r=>e("info",r),warn:r=>e("warn",r),error:r=>e("error",r),trace:r=>e("trace",r),deprecated:m};function m(r,{component:t,name:a,suggested:n,removalVersion:c}){let s=`${r}:${r==="component"?"":t}${a}`;if(f.has(s))return;f.add(s);let i=Array.isArray(n);i&&!o&&(o=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let l=`[${a}] ${r} is deprecated and will be removed in ${c==="future"?"a future version":`v${c}`}.${n?` Use ${i?o.format(n.map(p=>`"${p}"`)):`"${n}"`} instead.`:""}`;e("warn",l)}export{w as a};
6
+ import{E as d}from"./AUJ5K7YO.js";var f=new Set,u={trace:0,debug:1,info:2,warn:4,error:8,off:10};function $(r){return u[r]>=u[d]}function e(r,...t){$(r)&&console[r].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...t)}var o,w={debug:r=>e("debug",r),info:r=>e("info",r),warn:r=>e("warn",r),error:r=>e("error",r),trace:r=>e("trace",r),deprecated:m};function m(r,{component:t,name:a,suggested:n,removalVersion:c}){let s=`${r}:${r==="component"?"":t}${a}`;if(f.has(s))return;f.add(s);let i=Array.isArray(n);i&&!o&&(o=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let l=`[${a}] ${r} is deprecated and will be removed in ${c==="future"?"a future version":`v${c}`}.${n?` Use ${i?o.format(n.map(p=>`"${p}"`)):`"${n}"`} instead.`:""}`;e("warn",l)}export{w 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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as m}from"./UXBIPEXH.js";import"./5ANCIVAN.js";import{a}from"./WKGL36BZ.js";import{a as p,b as v,d as f}from"./65522WAF.js";import{I as g,d,e as i,v as h,w as t,y as e}from"./BACCFA5T.js";var o={container:"container",heading:"heading",description:"description",anchor:"anchor",image:"image",standalone:"standalone",icon:"icon"},x=d`:host{display:inline-flex;outline:2px solid transparent;outline-offset:2px;outline-color:transparent}.anchor{margin:0;display:flex;cursor:pointer;align-items:center;justify-content:center;font-size:var(--calcite-font-size-0);line-height:1.25rem;text-decoration-line:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-block-end:2px solid var(--calcite-color-transparent);background-color:var(--calcite-navigation-background-color, var(--calcite-internal-navigation-logo-background-color, var(--calcite-color-foreground-1)))}:host(: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))))}.image,.icon{margin:0;display:flex;block-size:1.75rem;padding-inline:1rem;color:var(--calcite-navigation-logo-text-color, var(--calcite-icon-color, var(--calcite-internal-navigation-logo-text-color, inherit)))}.image~.icon{padding-inline-start:0px}.image~.container,.icon~.container{padding-inline-start:0px}:host(:hover) .anchor,:host(:focus) .anchor{--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-2)}:host(:active) .anchor{--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-3)}:host([active]) .anchor{border-block-end-color:var(--calcite-navigation-accent-color, var(--calcite-color-brand))}:host([active]) .icon,:host(:active) .icon{--calcite-internal-navigation-logo-text-color: var(--calcite-color-brand)}.container{margin-block-start:.125rem;display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:1rem;text-align:start}.heading{margin-inline-start:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-logo-heading-text-color, var(--calcite-color-text-1))}.standalone{font-size:var(--calcite-font-size-1)}.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-2);color:var(--calcite-navigation-logo-text-color, var(--calcite-color-text-2));font-size:var(--calcite-font-size--1)}:host([hidden]){display:none}[hidden]{display:none}`,r=class extends h{constructor(){super(...arguments),this.iconFlipRtl=!1}static{this.properties={active:7,description:1,heading:1,headingLevel:11,href:3,icon:3,iconFlipRtl:7,label:1,rel:3,target:3,thumbnail:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=x}async setFocus(){await f(this),this.href&&this.el.focus()}load(){p(this)}loaded(){v(this)}renderIcon(){return i`<calcite-icon class=${t(o.icon)} .flipRtl=${this.iconFlipRtl} .icon=${this.icon} scale=l></calcite-icon>`}renderHeaderContent(){let{heading:n,headingLevel:u,description:c}=this,l=n?a(o.heading,m({class:{[o.heading]:!0,[o.standalone]:!this.description},level:u,children:n})):null,s=c?a(o.description,i`<span class=${t(o.description)}>${c}</span>`):null;return l||s?a(o.container,i`<div class=${t(o.container)}>${l}${s}</div>`):null}render(){let{thumbnail:n}=this;return i`<a class=${t(o.anchor)} href=${this.href??e} rel=${this.rel??e} target=${this.target??e}>${n&&i`<img alt=${(this.label||"")??e} class=${t(o.image)} src=${n??e}>`||""}${this.icon&&this.renderIcon()||""}${this.renderHeaderContent()}</a>`}};g("calcite-navigation-logo",r);export{r as CalciteNavigationLogo};
6
+ import{b as m}from"./GYSBQHUE.js";import"./HOAPNFPG.js";import{a}from"./JR3ROP56.js";import{a as p,b as v,d as f}from"./AG3SBTL6.js";import{I as g,d,e as i,v as h,w as t,y as e}from"./AUJ5K7YO.js";var o={container:"container",heading:"heading",description:"description",anchor:"anchor",image:"image",standalone:"standalone",icon:"icon"},x=d`:host{display:inline-flex;outline:2px solid transparent;outline-offset:2px;outline-color:transparent}.anchor{margin:0;display:flex;cursor:pointer;align-items:center;justify-content:center;font-size:var(--calcite-font-size-0);line-height:1.25rem;text-decoration-line:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-block-end:2px solid var(--calcite-color-transparent);background-color:var(--calcite-navigation-background-color, var(--calcite-internal-navigation-logo-background-color, var(--calcite-color-foreground-1)))}:host(: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))))}.image,.icon{margin:0;display:flex;block-size:1.75rem;padding-inline:1rem;color:var(--calcite-navigation-logo-text-color, var(--calcite-icon-color, var(--calcite-internal-navigation-logo-text-color, inherit)))}.image~.icon{padding-inline-start:0px}.image~.container,.icon~.container{padding-inline-start:0px}:host(:hover) .anchor,:host(:focus) .anchor{--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-2)}:host(:active) .anchor{--calcite-internal-navigation-logo-background-color: var(--calcite-color-foreground-3)}:host([active]) .anchor{border-block-end-color:var(--calcite-navigation-accent-color, var(--calcite-color-brand))}:host([active]) .icon,:host(:active) .icon{--calcite-internal-navigation-logo-text-color: var(--calcite-color-brand)}.container{margin-block-start:.125rem;display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:1rem;text-align:start}.heading{margin-inline-start:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-navigation-logo-heading-text-color, var(--calcite-color-text-1))}.standalone{font-size:var(--calcite-font-size-1)}.description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-2);color:var(--calcite-navigation-logo-text-color, var(--calcite-color-text-2));font-size:var(--calcite-font-size--1)}:host([hidden]){display:none}[hidden]{display:none}`,r=class extends h{constructor(){super(...arguments),this.iconFlipRtl=!1}static{this.properties={active:7,description:1,heading:1,headingLevel:11,href:3,icon:3,iconFlipRtl:7,label:1,rel:3,target:3,thumbnail:1}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=x}async setFocus(){await f(this),this.href&&this.el.focus()}load(){p(this)}loaded(){v(this)}renderIcon(){return i`<calcite-icon class=${t(o.icon)} .flipRtl=${this.iconFlipRtl} .icon=${this.icon} scale=l></calcite-icon>`}renderHeaderContent(){let{heading:n,headingLevel:u,description:c}=this,l=n?a(o.heading,m({class:{[o.heading]:!0,[o.standalone]:!this.description},level:u,children:n})):null,s=c?a(o.description,i`<span class=${t(o.description)}>${c}</span>`):null;return l||s?a(o.container,i`<div class=${t(o.container)}>${l}${s}</div>`):null}render(){let{thumbnail:n}=this;return i`<a class=${t(o.anchor)} href=${this.href??e} rel=${this.rel??e} target=${this.target??e}>${n&&i`<img alt=${(this.label||"")??e} class=${t(o.image)} src=${n??e}>`||""}${this.icon&&this.renderIcon()||""}${this.renderHeaderContent()}</a>`}};g("calcite-navigation-logo",r);export{r as CalciteNavigationLogo};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{a as H}from"./WGBME5PE.js";import{a as O,b as $,c as B,d as T,e as L,f as S}from"./LIM5MROD.js";import{a as p}from"./5K5YWTBO.js";import"./DY45B3WW.js";import{a as C}from"./BD6J4G5B.js";import"./NHINHS2M.js";import"./AKD7HACF.js";import{n as w,u,v as z}from"./VROTAANT.js";import{a as E,b as D,d as G}from"./65522WAF.js";import"./R7R2PEGA.js";import{C as A,I as y,d as m,e as d,u as v,v as f,w as x}from"./BACCFA5T.js";var M={actionGroupEnd:"action-group--end"},b={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},W=m`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends f{constructor(){super(),this.mutationObserver=p("mutation",()=>this.mutationObserverHandler()),this.resize=H(({width:t,height:o})=>{let{el:e,expanded:l,expandDisabled:n,layout:i,overflowActionsDisabled:r,actionGroups:s}=this;if(r||i==="vertical"&&!o||i==="horizontal"&&!t)return;let a=B(e),c=n?a.length:a.length+1;this.updateGroups();let h=this.hasActionsEnd||this.hasBottomActions||!n?s.length+1:s.length,{actionHeight:k,actionWidth:P}=O(a),U=$({layout:i,actionCount:c,actionHeight:k,actionWidth:P,height:o,width:t,groupCount:h});T({actionGroups:s,expanded:l,overflowCount:U})},A.resize),this.resizeHandler=t=>{let{width:o,height:e}=t.contentRect;this.resize({width:o,height:e})},this.resizeObserver=p("resize",t=>this.resizeHandlerEntries(t)),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=C(),this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.calciteActionBarToggle=v({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,hasActionsEnd:16,hasBottomActions:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overflowActionsDisabled:7,overlayPositioning:3,position:3,scale:3}}static{this.styles=W}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await G(this),w(this.el)}connectedCallback(){super.connectedCallback(),this.updateGroups(),this.overflowActions(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}async load(){E(this)}willUpdate(t){t.has("expandDisabled")&&(this.hasUpdated||this.expandDisabled!==!1)&&this.overflowActions(),t.has("expanded")&&this.hasUpdated&&this.expandedHandler(),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups(),t.has("overflowActionsDisabled")&&(this.hasUpdated||this.overflowActionsDisabled!==!1)&&this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}loaded(){D(this),this.overflowActions()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}expandedHandler(){let{el:t,expanded:o}=this;L({el:t,expanded:o}),this.overflowActions()}overflowActionsDisabledHandler(t){if(t){this.resizeObserver?.disconnect();return}this.resizeObserver?.observe(this.el),this.overflowActions()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}mutationObserverHandler(){this.updateGroups(),this.overflowActions()}resizeHandlerEntries(t){t.forEach(this.resizeHandler)}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleActionsEndSlotChange(t){this.hasActionsEnd=u(t)}handleBottomActionsSlotChange(t){this.hasBottomActions=u(t)}handleTooltipSlotChange(t){let o=z(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,el:e,position:l,toggleExpand:n,scale:i,layout:r,messages:s,actionsEndGroupLabel:a,overlayPositioning:c}=this,h=o?null:S({collapseLabel:s.collapseLabel,collapseText:s.collapse,el:e,expandLabel:s.expandLabel,expandText:s.expand,expanded:t,position:l,scale:i,toggle:n,tooltip:this.expandTooltip});return d`<calcite-action-group class=${x(M.actionGroupEnd)} .hidden=${this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions)} .label=${a} .layout=${r} .overlayPositioning=${c} .scale=${i}><slot name=${b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot><slot name=${b.bottomActions} @slotchange=${this.handleBottomActionsSlotChange}></slot><slot name=${b.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${h}</calcite-action-group>`}render(){return d`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}`}};y("calcite-action-bar",g);export{g as ActionBar};
6
+ import{a as H}from"./MYX7MLUP.js";import{a as O,b as $,c as B,d as T,e as L,f as S}from"./67BUCJKA.js";import{a as p}from"./Q5E2TYOP.js";import"./IAMKWH4M.js";import{a as C}from"./GHH2UGV5.js";import"./ATFXOAWN.js";import"./S7IH4VVQ.js";import{n as w,u,v as z}from"./Z7WRWQGA.js";import{a as E,b as D,d as G}from"./AG3SBTL6.js";import"./PHQDO57D.js";import{C as A,I as y,d as m,e as d,u as v,v as f,w as x}from"./AUJ5K7YO.js";var M={actionGroupEnd:"action-group--end"},b={actionsEnd:"actions-end",bottomActions:"bottom-actions",expandTooltip:"expand-tooltip"},W=m`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{pointer-events:auto;display:inline-flex;align-self:stretch;gap:var(--calcite-action-bar-items-space, 0)}:host([layout=vertical]){flex-direction:column}:host([layout=vertical]):host([overflow-actions-disabled]){overflow-y:auto}:host([layout=vertical]):host([expanded]){max-inline-size:var(--calcite-action-bar-expanded-max-width, auto)}:host([layout=vertical]) .action-group--end{margin-block-start:auto}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}:host([layout=horizontal]){flex-direction:row}:host([layout=horizontal]):host([overflow-actions-disabled]){overflow-x:auto}:host([layout=horizontal]) .action-group--end{margin-inline-start:auto}:host([layout=horizontal]) ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:var(--calcite-border-width-sm)}.action-group--end{justify-content:flex-end}:host([hidden]){display:none}[hidden]{display:none}`,g=class extends f{constructor(){super(),this.mutationObserver=p("mutation",()=>this.mutationObserverHandler()),this.resize=H(({width:t,height:o})=>{let{el:e,expanded:l,expandDisabled:n,layout:i,overflowActionsDisabled:r,actionGroups:s}=this;if(r||i==="vertical"&&!o||i==="horizontal"&&!t)return;let a=B(e),c=n?a.length:a.length+1;this.updateGroups();let h=this.hasActionsEnd||this.hasBottomActions||!n?s.length+1:s.length,{actionHeight:k,actionWidth:P}=O(a),U=$({layout:i,actionCount:c,actionHeight:k,actionWidth:P,height:o,width:t,groupCount:h});T({actionGroups:s,expanded:l,overflowCount:U})},A.resize),this.resizeHandler=t=>{let{width:o,height:e}=t.contentRect;this.resize({width:o,height:e})},this.resizeObserver=p("resize",t=>this.resizeHandlerEntries(t)),this.toggleExpand=()=>{this.expanded=!this.expanded,this.calciteActionBarToggle.emit()},this.hasActionsEnd=!1,this.hasBottomActions=!1,this.expandDisabled=!1,this.expanded=!1,this.layout="vertical",this.messages=C(),this.overflowActionsDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.calciteActionBarToggle=v({cancelable:!1}),this.listen("calciteActionMenuOpen",this.actionMenuOpenHandler)}static{this.properties={expandTooltip:16,hasActionsEnd:16,hasBottomActions:16,actionsEndGroupLabel:1,expandDisabled:7,expanded:7,layout:3,messageOverrides:0,overflowActionsDisabled:7,overlayPositioning:3,position:3,scale:3}}static{this.styles=W}async overflowActions(){this.resize({width:this.el.clientWidth,height:this.el.clientHeight})}async setFocus(){await G(this),w(this.el)}connectedCallback(){super.connectedCallback(),this.updateGroups(),this.overflowActions(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}async load(){E(this)}willUpdate(t){t.has("expandDisabled")&&(this.hasUpdated||this.expandDisabled!==!1)&&this.overflowActions(),t.has("expanded")&&this.hasUpdated&&this.expandedHandler(),t.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&this.updateGroups(),t.has("overflowActionsDisabled")&&(this.hasUpdated||this.overflowActionsDisabled!==!1)&&this.overflowActionsDisabledHandler(this.overflowActionsDisabled)}loaded(){D(this),this.overflowActions()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.resizeObserver?.disconnect()}expandedHandler(){let{el:t,expanded:o}=this;L({el:t,expanded:o}),this.overflowActions()}overflowActionsDisabledHandler(t){if(t){this.resizeObserver?.disconnect();return}this.resizeObserver?.observe(this.el),this.overflowActions()}actionMenuOpenHandler(t){if(t.target.menuOpen){let o=t.composedPath();this.actionGroups?.forEach(e=>{o.includes(e)||(e.menuOpen=!1)})}}mutationObserverHandler(){this.updateGroups(),this.overflowActions()}resizeHandlerEntries(t){t.forEach(this.resizeHandler)}updateGroups(){let t=Array.from(this.el.querySelectorAll("calcite-action-group"));this.actionGroups=t,this.setGroupLayout(t)}setGroupLayout(t){t.forEach(o=>o.layout=this.layout)}handleDefaultSlotChange(){this.updateGroups()}handleActionsEndSlotChange(t){this.hasActionsEnd=u(t)}handleBottomActionsSlotChange(t){this.hasBottomActions=u(t)}handleTooltipSlotChange(t){let o=z(t).filter(e=>e?.matches("calcite-tooltip"));this.expandTooltip=o[0]}renderBottomActionGroup(){let{expanded:t,expandDisabled:o,el:e,position:l,toggleExpand:n,scale:i,layout:r,messages:s,actionsEndGroupLabel:a,overlayPositioning:c}=this,h=o?null:S({collapseLabel:s.collapseLabel,collapseText:s.collapse,el:e,expandLabel:s.expandLabel,expandText:s.expand,expanded:t,position:l,scale:i,toggle:n,tooltip:this.expandTooltip});return d`<calcite-action-group class=${x(M.actionGroupEnd)} .hidden=${this.expandDisabled&&!(this.hasActionsEnd||this.hasBottomActions)} .label=${a} .layout=${r} .overlayPositioning=${c} .scale=${i}><slot name=${b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot><slot name=${b.bottomActions} @slotchange=${this.handleBottomActionsSlotChange}></slot><slot name=${b.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${h}</calcite-action-group>`}render(){return d`<slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}`}};y("calcite-action-bar",g);export{g as ActionBar};
@@ -1,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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{j as s}from"./5QUBEGPK.js";import{a as v,b as y}from"./N6DORJZT.js";import"./AELGNEK6.js";import{a as f}from"./BD6J4G5B.js";import{a as h,b as m}from"./NHINHS2M.js";import{a as u,b,d as g}from"./65522WAF.js";import{I as p,d as l,e as o,i as n,u as r,v as c,w as t,z as d}from"./BACCFA5T.js";var i={container:"container",stepperItemContent:"stepper-item-content",stepperItemDescription:"stepper-item-description",stepperItemHeader:"stepper-item-header",stepperItemHeading:"stepper-item-heading",stepperItemHeaderText:"stepper-item-header-text",stepperItemNumber:"stepper-item-number",visuallyHidden:"visually-hidden"},x=l`:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s: .25rem;--calcite-stepper-item-spacing-unit-m: .75rem;--calcite-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s: .5rem;--calcite-stepper-item-spacing-unit-m: 1rem;--calcite-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s: .75rem;--calcite-stepper-item-spacing-unit-m: 1.25rem;--calcite-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-color-foreground-3)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-header:active{background-color:var(--calcite-color-foreground-3)}:host .stepper-item-content,:host .stepper-item-header{padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-color-text-3);opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2)}:host .stepper-item-description{color:var(--calcite-color-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-color-brand)}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-color-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:#007ac280}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-color-status-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:#007ac280}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-status-danger-hover)}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);outline-color:transparent;grid-row:items}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{transition-duration:0s;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([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-color-status-danger)}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-status-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;box-sizing:border-box;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-color-text-2)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-color-text-3)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends c{constructor(){super(),this.headerEl=h(),this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.messages=f(),this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemKeyEvent=r({cancelable:!1}),this.calciteInternalStepperItemRegister=r({cancelable:!1}),this.calciteInternalStepperItemSelect=r({cancelable:!1}),this.calciteStepperItemSelect=r({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={complete:7,description:1,disabled:7,error:7,heading:1,icon:5,iconFlipRtl:7,layout:3,messageOverrides:0,numbered:5,numberingSystem:1,scale:3,selected:7}}static{this.styles=x}async setFocus(){await g(this),(this.layout==="vertical"?this.el:this.headerEl.value)?.focus()}async load(){u(this),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.registerStepperItem(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){v(this)}loaded(){b(this)}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){s.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault();break}}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}handleItemClick(e){this.disabled||this.layout==="horizontal"&&e.composedPath().some(z=>z.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}render(){this.el.ariaCurrent=this.selected?"step":"false",d(this.el,"tabIndex",this.disabled?-1:0);let e=this.layout==="horizontal"&&!this.disabled?0:null;return y({disabled:this.disabled,children:o`<div class=${t(i.container)}>${this.complete&&o`<span aria-live=polite class=${t(i.visuallyHidden)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${e??n} ${m(this.headerEl)}>${this.icon?this.renderIcon():null}${this.numbered?o`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t(i.stepperItemContent)}><slot></slot></div></div>`})}renderIcon(){let e="circle";return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e="circleF":this.error?e="exclamationMarkCircleF":this.complete&&(e="checkCircleF"),o`<calcite-icon class="stepper-item-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return s.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},s.numberFormatter.format(this.itemPosition+1)}};p("calcite-stepper-item",a);export{a as StepperItem};
6
+ import{j as s}from"./OBI6HS7X.js";import{a as v,b as y}from"./KM4ULHYE.js";import"./H37II4ZD.js";import{a as f}from"./GHH2UGV5.js";import{a as h,b as m}from"./ATFXOAWN.js";import{a as u,b,d as g}from"./AG3SBTL6.js";import{I as p,d as l,e as o,i as n,u as r,v as c,w as t,z as d}from"./AUJ5K7YO.js";var i={container:"container",stepperItemContent:"stepper-item-content",stepperItemDescription:"stepper-item-description",stepperItemHeader:"stepper-item-header",stepperItemHeading:"stepper-item-heading",stepperItemHeaderText:"stepper-item-header-text",stepperItemNumber:"stepper-item-number",visuallyHidden:"visually-hidden"},x=l`:host([layout=horizontal][disabled]) .stepper-item-header,:host([layout=horizontal-single][disabled]) .stepper-item-header,:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal][disabled]) .stepper-item-header *,:host([layout=horizontal-single][disabled]) .stepper-item-header *,:host([disabled]) *,:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),:host([layout=horizontal-single][disabled]) .stepper-item-header ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]){--calcite-stepper-item-spacing-unit-s: .25rem;--calcite-stepper-item-spacing-unit-m: .75rem;--calcite-stepper-item-spacing-unit-l: 1rem;--calcite-internal-stepper-action-inline-size: 2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:.25rem}:host([scale=s]) .stepper-item-description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-stepper-item-spacing-unit-s: .5rem;--calcite-stepper-item-spacing-unit-m: 1rem;--calcite-stepper-item-spacing-unit-l: 1.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:.5rem}:host([scale=m]) .stepper-item-description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-stepper-item-spacing-unit-s: .75rem;--calcite-stepper-item-spacing-unit-m: 1.25rem;--calcite-stepper-item-spacing-unit-l: 1.5rem;--calcite-internal-stepper-action-inline-size: 3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:.75rem}:host([scale=l]) .stepper-item-description{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}:host .container{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);color:var(--calcite-color-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px}:host .container:active{background-color:var(--calcite-color-foreground-3)}:host{outline-color:transparent}:host(:focus){outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host .stepper-item-header{display:flex;cursor:pointer;align-items:flex-start}:host .stepper-item-header:active{background-color:var(--calcite-color-foreground-3)}:host .stepper-item-content,:host .stepper-item-header{padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host .stepper-item-header *{display:inline-flex;align-items:center}:host .stepper-item-content{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}:host .stepper-item-icon{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-color-text-3);opacity:var(--calcite-opacity-disabled)}:host .stepper-item-header-text{flex-direction:column;text-align:initial;margin-inline-end:auto}:host .stepper-item-heading,:host .stepper-item-description{display:flex;inline-size:100%}:host .stepper-item-heading{margin-block-end:.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-2)}:host .stepper-item-description{color:var(--calcite-color-text-3)}:host .stepper-item-number{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([complete]) .container{border-color:#007ac280}:host([complete]) .container .stepper-item-icon{color:var(--calcite-color-brand)}:host([error]) .container{border-block-start-color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host(:hover:not([disabled]):not([selected])) .container,:host(:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-brand)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([error]:hover:not([disabled]):not([selected])) .container,:host([error]:focus:not([disabled]):not([selected])) .container{border-block-start-color:var(--calcite-color-status-danger-hover)}:host([selected]) .container{border-block-start-color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-heading{color:var(--calcite-color-text-1)}:host([selected]) .container .stepper-item-description{color:var(--calcite-color-text-2)}:host([selected]) .container .stepper-item-number{color:var(--calcite-color-brand)}:host([selected]) .container .stepper-item-icon{color:var(--calcite-color-brand);opacity:1}:host([selected]) .container .stepper-item-content{display:flex}:host([layout=vertical]){inline-size:100%}:host([layout=vertical]) .container{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]) .container .stepper-item-icon{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}:host([layout=vertical]) .container .stepper-item-header{padding-inline-end:0px}:host([layout=vertical]) .container .stepper-item-content{padding:0}:host([layout=vertical][complete]) .container{border-color:#007ac280}:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][error]) .container{border-color:var(--calcite-color-status-danger)}:host([layout=vertical][selected]) .container{border-color:var(--calcite-color-brand)}:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical]:focus:not([disabled]):not([selected])) .container{border-color:#007ac280}:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container{border-color:var(--calcite-color-status-danger-hover)}:host([layout=horizontal]),:host([layout=horizontal-single]){display:contents}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:contents}:host([layout=horizontal]) .stepper-item-header,:host([layout=horizontal-single]) .stepper-item-header{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-color-border-3);outline-color:transparent;grid-row:items}:host([layout=horizontal]) .stepper-item-header:focus,:host([layout=horizontal-single]) .stepper-item-header:focus{transition-duration:0s;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([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{cursor:auto;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}:host([layout=horizontal-single]) .stepper-item-header{grid-area:1/1/1/-1}:host([layout=horizontal]) .stepper-item-content,:host([layout=horizontal-single]) .stepper-item-content{grid-area:2/1/2/-1}:host([layout=horizontal][complete]) .stepper-item-header,:host([layout=horizontal-single][complete]) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][complete]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal][error]) .stepper-item-header,:host([layout=horizontal-single][error]) .stepper-item-header{border-color:var(--calcite-color-status-danger)}:host([layout=horizontal][selected]) .stepper-item-header,:host([layout=horizontal-single][selected]) .stepper-item-header{border-color:var(--calcite-color-brand)}:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:#007ac280}:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:hover:not([disabled]):not([selected])) .stepper-item-header,:host([layout=horizontal-single][error]:focus:not([disabled]):not([selected])) .stepper-item-header{border-color:var(--calcite-color-status-danger-hover)}@media (forced-colors: active){:host .container{outline-width:0;outline-offset:0}:host(:focus),:host(:focus-visible){outline-color:canvasText}:host([selected]) .container{border-block-start-color:highlight}:host([selected]) .container .stepper-item-number{color:highlight}:host([selected]) .container .stepper-item-icon{color:highlight}:host([layout=vertical][selected]) .container{border-color:highlight}}:host([layout=horizontal-single]) .stepper-item-header{margin-inline-end:0px;box-sizing:border-box;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + .5rem)}:host([layout=horizontal-single][error]) .container .stepper-item-number{color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error]) .container .stepper-item-icon{opacity:1;color:var(--calcite-color-status-danger)}:host([layout=horizontal-single][error][selected]),:host([layout=horizontal-single][complete][selected]) .container{color:var(--calcite-color-text-3)}:host([layout=horizontal-single][error][selected]) .stepper-item-heading,:host([layout=horizontal-single][complete][selected]) .container .stepper-item-heading{color:var(--calcite-color-text-2)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-icon{opacity:var(--calcite-opacity-disabled)}:host([layout=horizontal-single][complete][selected]) .container .stepper-item-number{color:var(--calcite-color-text-3)}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,a=class extends c{constructor(){super(),this.headerEl=h(),this.complete=!1,this.disabled=!1,this.error=!1,this.icon=!1,this.iconFlipRtl=!1,this.messages=f(),this.numbered=!1,this.scale="m",this.selected=!1,this.calciteInternalStepperItemKeyEvent=r({cancelable:!1}),this.calciteInternalStepperItemRegister=r({cancelable:!1}),this.calciteInternalStepperItemSelect=r({cancelable:!1}),this.calciteStepperItemSelect=r({cancelable:!1}),this.listenOn(document.body,"calciteInternalStepperItemChange",this.updateActiveItemOnChange),this.listen("click",this.handleItemClick),this.listen("keydown",this.keyDownHandler)}static{this.properties={complete:7,description:1,disabled:7,error:7,heading:1,icon:5,iconFlipRtl:7,layout:3,messageOverrides:0,numbered:5,numberingSystem:1,scale:3,selected:7}}static{this.styles=x}async setFocus(){await g(this),(this.layout==="vertical"?this.el:this.headerEl.value)?.focus()}async load(){u(this),this.parentStepperEl=this.el.parentElement,this.itemPosition=this.getItemPosition(),this.registerStepperItem(),this.selected&&this.emitRequestedItem()}willUpdate(e){e.has("selected")&&(this.hasUpdated||this.selected!==!1)&&this.selectedHandler(),e.has("disabled")&&(this.hasUpdated||this.disabled!==!1)&&this.registerStepperItem(),e.has("messages")&&this.effectiveLocaleWatcher(this.messages._lang)}updated(){v(this)}loaded(){b(this)}selectedHandler(){this.selected&&this.emitRequestedItem()}effectiveLocaleWatcher(e){s.numberFormatOptions={locale:e,numberingSystem:this.numberingSystem,useGrouping:!1}}updateActiveItemOnChange(e){(e.target===this.parentStepperEl||e.composedPath().includes(this.parentStepperEl))&&(this.selectedPosition=e.detail.position,this.determineSelectedItem())}keyDownHandler(e){if(!this.disabled&&e.target===this.el)switch(e.key){case" ":case"Enter":this.emitUserRequestedItem(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"Home":case"End":this.calciteInternalStepperItemKeyEvent.emit({item:e}),e.preventDefault();break}}determineSelectedItem(){this.selected=!this.disabled&&this.itemPosition===this.selectedPosition}registerStepperItem(){this.calciteInternalStepperItemRegister.emit({position:this.itemPosition})}handleItemClick(e){this.disabled||this.layout==="horizontal"&&e.composedPath().some(z=>z.classList?.contains("stepper-item-content"))||this.emitUserRequestedItem()}emitUserRequestedItem(){this.emitRequestedItem(),this.disabled||this.calciteStepperItemSelect.emit()}emitRequestedItem(){if(!this.disabled){let e=this.itemPosition;this.calciteInternalStepperItemSelect.emit({position:e})}}getItemPosition(){return Array.from(this.parentStepperEl?.querySelectorAll("calcite-stepper-item")).indexOf(this.el)}render(){this.el.ariaCurrent=this.selected?"step":"false",d(this.el,"tabIndex",this.disabled?-1:0);let e=this.layout==="horizontal"&&!this.disabled?0:null;return y({disabled:this.disabled,children:o`<div class=${t(i.container)}>${this.complete&&o`<span aria-live=polite class=${t(i.visuallyHidden)}>${this.messages.complete}</span>`||""}<div class=${t(i.stepperItemHeader)} tabindex=${e??n} ${m(this.headerEl)}>${this.icon?this.renderIcon():null}${this.numbered?o`<div class=${t(i.stepperItemNumber)}>${this.renderNumbers()}.</div>`:null}<div class=${t(i.stepperItemHeaderText)}><span class=${t(i.stepperItemHeading)}>${this.heading}</span><span class=${t(i.stepperItemDescription)}>${this.description}</span></div></div><div class=${t(i.stepperItemContent)}><slot></slot></div></div>`})}renderIcon(){let e="circle";return this.selected&&(this.layout!=="horizontal-single"||!this.error&&!this.complete)?e="circleF":this.error?e="exclamationMarkCircleF":this.complete&&(e="checkCircleF"),o`<calcite-icon class="stepper-item-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}renderNumbers(){return s.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:!1},s.numberFormatter.format(this.itemPosition+1)}};p("calcite-stepper-item",a);export{a as StepperItem};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as _}from"./6B6Q3CQA.js";import"./LJBA34XN.js";var l={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xE7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xE7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xED %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){var s;return e===1||e===3?s="r":e===2?s="n":e===4?s="t":s="\xE8",""+e+s}};_.locale(l,null,!0);var a=l;export{a as default};
6
+ import{b as _}from"./3NNAQ2QU.js";import"./FQPYMTWH.js";var l={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Mar\xE7_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Mar\xE7_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aqu\xED %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){var s;return e===1||e===3?s="r":e===2?s="n":e===4?s="t":s="\xE8",""+e+s}};_.locale(l,null,!0);var a=l;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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{b as T}from"./UXBIPEXH.js";import"./5ANCIVAN.js";import{a as x}from"./WKGL36BZ.js";import{a as y}from"./FWVV5Q5V.js";import{a as v}from"./5K5YWTBO.js";import{a as $}from"./BD6J4G5B.js";import{b}from"./NHINHS2M.js";import{e as k}from"./VROTAANT.js";import"./R7R2PEGA.js";import{I as u,d as g,e as c,u as m,v as f,w as a}from"./BACCFA5T.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.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}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container: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))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container: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))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
6
+ import{b as T}from"./GYSBQHUE.js";import"./HOAPNFPG.js";import{a as x}from"./JR3ROP56.js";import{a as y}from"./2OGPRYXD.js";import{a as v}from"./Q5E2TYOP.js";import{a as $}from"./GHH2UGV5.js";import{b}from"./ATFXOAWN.js";import{e as k}from"./Z7WRWQGA.js";import"./PHQDO57D.js";import{I as u,d as g,e as c,u as m,v as f,w as a}from"./AUJ5K7YO.js";var t={header:"header",heading:"heading",close:"close",container:"container",tipContainer:"tip-container",tipContainerAdvancing:"tip-container--advancing",tipContainerRetreating:"tip-container--retreating",pagination:"pagination",pagePosition:"page-position",pageNext:"page-next",pagePrevious:"page-previous"},s={chevronLeft:"chevron-left",chevronRight:"chevron-right",close:"x"},w=g`:host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2);--calcite-tip-manager-height: 19vh}:host *{box-sizing:border-box}:host([closed]){display:none}.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}.header{border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline-end:0px;padding-inline-start:1rem}.header .heading{padding:0;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}.container{position:relative;overflow:hidden;outline-color:transparent;min-block-size:150px}.container: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))))}.tip-container{margin-block-start:1px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:1rem;outline-color:transparent;animation-name:none;animation-duration:var(--calcite-animation-timing);block-size:var(--calcite-tip-manager-height)}.tip-container: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))))}::slotted(calcite-tip){margin:0;border-style:none;max-inline-size:var(--calcite-tip-max-width)}.tip-container--advancing{animation-name:tip-advance}.tip-container--retreating{animation-name:tip-retreat}.pagination{display:flex;align-items:center;justify-content:center;padding-inline:0px;padding-block:.75rem .5rem}.page-position{margin-block:0px;margin-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}@keyframes tip-advance{0%{opacity:0;transform:translate3d(50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}@keyframes tip-retreat{0%{opacity:0;transform:translate3d(-50px,0,0) scale(.99)}to{opacity:1;transform:translateZ(0) scale(1)}}:host([hidden]){display:none}[hidden]{display:none}`,h=class extends f{constructor(){super(...arguments),this.messages=$(),this.mutationObserver=v("mutation",()=>this.setUpTips()),this.closed=!1,this.calciteTipManagerClose=m({cancelable:!1})}static{this.properties={direction:16,groupTitle:16,selectedIndex:16,tips:16,total:16,closed:7,headingLevel:11,messageOverrides:0}}static{this.styles=w}async nextTip(){this.direction="advancing";let e=this.selectedIndex+1;this.selectedIndex=(e+this.total)%this.total}async previousTip(){this.direction="retreating";let e=this.selectedIndex-1;this.selectedIndex=(e+this.total)%this.total}connectedCallback(){super.connectedCallback(),this.setUpTips(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){y.deprecated("component",{name:"tip-manager",removalVersion:4,suggested:"carousel"})}willUpdate(e){e.has("closed")&&(this.hasUpdated||this.closed!==!1)&&(this.direction=null),e.has("selectedIndex")&&this.selectedChangeHandler(),e.has("messages")&&this.updateGroupTitle()}loaded(){this.updateGroupTitle()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}selectedChangeHandler(){this.showSelectedTip(),this.updateGroupTitle()}setUpTips(){let e=Array.from(this.el.querySelectorAll("calcite-tip"));if(this.total=e.length,this.total===0)return;let i=this.el.querySelector("calcite-tip[selected]");this.tips=e,this.selectedIndex=i?e.indexOf(i):0,e.forEach(n=>{n.closeDisabled=!0}),this.showSelectedTip()}hideTipManager(){this.closed=!0,this.calciteTipManagerClose.emit()}showSelectedTip(){this.tips.forEach((e,i)=>{let n=this.selectedIndex===i;e.selected=n,e.hidden=!n})}updateGroupTitle(){if(this.tips){let e=this.tips[this.selectedIndex].closest("calcite-tip-group");this.groupTitle=e?.groupTitle||this.messages?.defaultGroupTitle}}previousClicked(){this.previousTip()}nextClicked(){this.nextTip()}tipManagerKeyDownHandler(e){if(e.target===this.container)switch(e.key){case"ArrowRight":e.preventDefault(),this.nextTip();break;case"ArrowLeft":e.preventDefault(),this.previousTip();break;case"Home":e.preventDefault(),this.selectedIndex=0;break;case"End":e.preventDefault(),this.selectedIndex=this.total-1;break}}storeContainerRef(e){this.container=e}renderPagination(){let e=k(this.el),{selectedIndex:i,tips:n,total:r,messages:o}=this,l=o.next,d=o.previous,p=o.defaultPaginationLabel;return n.length>1?c`<footer class=${a(t.pagination)}><calcite-action class=${a(t.pagePrevious)} .icon=${e==="ltr"?s.chevronLeft:s.chevronRight} @click=${this.previousClicked} scale=m .text=${d}></calcite-action><span class=${a(t.pagePosition)}>${`${p} ${i+1}/${r}`}</span><calcite-action class=${a(t.pageNext)} .icon=${e==="ltr"?s.chevronRight:s.chevronLeft} @click=${this.nextClicked} scale=m .text=${l}></calcite-action></footer>`:null}render(){let{closed:e,direction:i,headingLevel:n,groupTitle:r,selectedIndex:o,messages:l,total:d}=this,p=l.close;return d===0?null:c`<section .ariaHidden=${e} class=${a(t.container)} .hidden=${e} @keydown=${this.tipManagerKeyDownHandler} tabindex=0 ${b(this.storeContainerRef)}><header class=${a(t.header)}>${T({class:t.heading,level:n,children:r})}<calcite-action class=${a(t.close)} @click=${this.hideTipManager} scale=m .text=${p}><calcite-icon .icon=${s.close} scale=m></calcite-icon></calcite-action></header>${x(o,c`<div class=${a({[t.tipContainer]:!0,[t.tipContainerAdvancing]:!e&&i==="advancing",[t.tipContainerRetreating]:!e&&i==="retreating"})} tabindex=0><slot></slot></div>`)}${this.renderPagination()}</section>`}};u("calcite-tip-manager",h);export{h as TipManager};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{a as o}from"./AYIKZRZU.js";import"./RNK4U2I6.js";async function m(){return o.sort().map(r=>({label:r}))}export{m as groupByName};
6
+ import{a as o}from"./FMQPF3CG.js";import"./EZI2WOMX.js";async function m(){return o.sort().map(r=>({label:r}))}export{m as groupByName};
@@ -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.37
4
+ * v3.0.0-next.39
5
5
  */
6
- import{a as V}from"./LJBA34XN.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"./FQPYMTWH.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};