@esri/calcite-components 5.2.0-next.82 → 5.2.0-next.84

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 (317) hide show
  1. package/THIRD-PARTY-NOTICES.md +21 -187
  2. package/dist/cdn/{VFADYYII.js → 2MU4LZ5R.js} +1 -1
  3. package/dist/cdn/{C4D574KQ.js → 2O5SAQQD.js} +1 -1
  4. package/dist/cdn/2RDYA3RW.js +2 -0
  5. package/dist/cdn/32FMHBPF.js +2 -0
  6. package/dist/cdn/32ZEHUFP.js +2 -0
  7. package/dist/cdn/33BJ4MWQ.js +2 -0
  8. package/dist/cdn/3BFJAMQJ.js +2 -0
  9. package/dist/cdn/3XS7XZAX.js +2 -0
  10. package/dist/cdn/4ATBXRC3.js +2 -0
  11. package/dist/cdn/{GLYVDMQJ.js → 4BBLJ3TP.js} +1 -1
  12. package/dist/cdn/{WWAZL7I3.js → 4NXCMWEX.js} +1 -1
  13. package/dist/cdn/4RD23LG3.js +2 -0
  14. package/dist/cdn/4UAJ6HRJ.js +2 -0
  15. package/dist/cdn/{VTZNYXCN.js → 4UKDBW7Q.js} +1 -1
  16. package/dist/cdn/4VUSAPHB.js +2 -0
  17. package/dist/cdn/5D2VU6D2.js +2 -0
  18. package/dist/cdn/5OYIPIF4.js +2 -0
  19. package/dist/cdn/5QD7IYVF.js +2 -0
  20. package/dist/cdn/{Q35IMWVW.js → 5SRWIHNF.js} +1 -1
  21. package/dist/cdn/5YQ3TLNF.js +2 -0
  22. package/dist/cdn/{IFM7LXYK.js → 64MES5FU.js} +1 -1
  23. package/dist/cdn/{6XMDJVYH.js → 6OAAZ4VY.js} +1 -1
  24. package/dist/cdn/6P5BS3KY.js +2 -0
  25. package/dist/cdn/73IQG4G2.js +2 -0
  26. package/dist/cdn/73Z227GE.js +2 -0
  27. package/dist/cdn/7FPJI4ZW.js +2 -0
  28. package/dist/cdn/7KI4OXYC.js +2 -0
  29. package/dist/cdn/7LLVVXWY.js +2 -0
  30. package/dist/cdn/{BMWPV4UK.js → AG2RXIA6.js} +1 -1
  31. package/dist/cdn/AUARVLF4.js +2 -0
  32. package/dist/cdn/B2UV45VH.js +2 -0
  33. package/dist/cdn/B6DXMQXF.js +2 -0
  34. package/dist/cdn/{FNS6HOBW.js → B7AL6TU7.js} +1 -1
  35. package/dist/cdn/BCMTJHIE.js +2 -0
  36. package/dist/cdn/BLEJAASJ.js +2 -0
  37. package/dist/cdn/BQW2YUGR.js +2 -0
  38. package/dist/cdn/C3JDT4VG.js +2 -0
  39. package/dist/cdn/{OUWVFQJJ.js → C46WQXAO.js} +1 -1
  40. package/dist/cdn/CBD4NAAU.js +2 -0
  41. package/dist/cdn/CSIZJWCG.js +2 -0
  42. package/dist/cdn/{UL5TQDHD.js → CTDGKK43.js} +1 -1
  43. package/dist/cdn/{SRZ5RDLG.js → CZMV2ZPH.js} +1 -1
  44. package/dist/cdn/DC6Y5FG7.js +2 -0
  45. package/dist/cdn/DY7QMN53.js +2 -0
  46. package/dist/cdn/{CKDSWUJ5.js → EBZAE7KM.js} +1 -1
  47. package/dist/cdn/{6ZIT2UTD.js → EJA3524G.js} +1 -1
  48. package/dist/cdn/EU6RGXHF.js +2 -0
  49. package/dist/cdn/EVSV2TN6.js +2 -0
  50. package/dist/cdn/{R6LEDTKA.js → F2KNNS7S.js} +1 -1
  51. package/dist/cdn/F5XU3EG4.js +2 -0
  52. package/dist/cdn/F6LVP3VQ.js +2 -0
  53. package/dist/cdn/FARMG6Q2.js +2 -0
  54. package/dist/cdn/FEAK7TOM.js +2 -0
  55. package/dist/cdn/{Y2GLRYII.js → G24UA6YC.js} +1 -1
  56. package/dist/cdn/G427DJZK.js +2 -0
  57. package/dist/cdn/{QLULIX3R.js → GBE7BYDX.js} +1 -1
  58. package/dist/cdn/{3BMEDEYZ.js → GBLVX7Y5.js} +1 -1
  59. package/dist/cdn/GE7JWGZD.js +2 -0
  60. package/dist/cdn/GHYTYTUG.js +2 -0
  61. package/dist/cdn/{5OBOEKW3.js → GLOG663K.js} +1 -1
  62. package/dist/cdn/GOYFUSER.js +2 -0
  63. package/dist/cdn/GUUY2HOU.js +2 -0
  64. package/dist/cdn/HBXGVMHH.js +2 -0
  65. package/dist/cdn/HQMT2CWM.js +2 -0
  66. package/dist/cdn/HXJ32GP3.js +2 -0
  67. package/dist/cdn/{TZJMNFTD.js → HZN3ZVDR.js} +1 -1
  68. package/dist/cdn/I37I2JIM.js +2 -0
  69. package/dist/cdn/I3KH6A6Y.js +2 -0
  70. package/dist/cdn/I7LY4LEH.js +2 -0
  71. package/dist/cdn/IIRB7HOR.js +2 -0
  72. package/dist/cdn/{4QWJ3PQW.js → IJGLEN77.js} +1 -1
  73. package/dist/cdn/{O2UMDVMK.js → IQBFZHPG.js} +1 -1
  74. package/dist/cdn/ITGTQ56V.js +2 -0
  75. package/dist/cdn/{QHTY2OSA.js → J4ADTHTD.js} +1 -1
  76. package/dist/cdn/JFFQY5TB.js +2 -0
  77. package/dist/cdn/JL24G64H.js +2 -0
  78. package/dist/cdn/{GWGN6XXK.js → JMPW3EIX.js} +1 -1
  79. package/dist/cdn/{YSCWVGOH.js → JZKGQ5WH.js} +1 -1
  80. package/dist/cdn/KQMN2PZ6.js +2 -0
  81. package/dist/cdn/L7ISNDV3.js +2 -0
  82. package/dist/cdn/LJ45DWGT.js +2 -0
  83. package/dist/cdn/LPTBDCYI.js +2 -0
  84. package/dist/cdn/{L3NLBBY5.js → M4XG6CGT.js} +1 -1
  85. package/dist/cdn/M7QYVZTM.js +2 -0
  86. package/dist/cdn/MEAD6JDS.js +2 -0
  87. package/dist/cdn/MJ5LQ3NR.js +2 -0
  88. package/dist/cdn/{Q434TB4M.js → MJ6O4376.js} +1 -1
  89. package/dist/cdn/{3NPFNONH.js → MJMONOF2.js} +1 -1
  90. package/dist/cdn/{KEWVPEC3.js → MLXW4Q7L.js} +1 -1
  91. package/dist/cdn/MPBM52AW.js +2 -0
  92. package/dist/cdn/{Y2ZDHAX5.js → MVBSHQ6D.js} +1 -1
  93. package/dist/cdn/MVQBN5TU.js +2 -0
  94. package/dist/cdn/NOUHASIW.js +2 -0
  95. package/dist/cdn/NR4OHBDD.js +2 -0
  96. package/dist/cdn/O6Y3UUOV.js +2 -0
  97. package/dist/cdn/OI3IPCKV.js +2 -0
  98. package/dist/cdn/OWV5UNVI.js +2 -0
  99. package/dist/cdn/{YJ4NQLEK.js → PAPAMEWA.js} +1 -1
  100. package/dist/cdn/PEBOEQSS.js +2 -0
  101. package/dist/cdn/PMNQ7KXP.js +2 -0
  102. package/dist/cdn/PXPKV5JA.js +2 -0
  103. package/dist/cdn/Q2LMGUFN.js +2 -0
  104. package/dist/cdn/{QHAWWZY7.js → QBJOVAEQ.js} +1 -1
  105. package/dist/cdn/{MRKU6KUP.js → QIC3CEGW.js} +1 -1
  106. package/dist/cdn/QSMCHMHV.js +2 -0
  107. package/dist/cdn/QVCL3LWB.js +2 -0
  108. package/dist/cdn/{URRRYIJK.js → QWKRAHAO.js} +1 -1
  109. package/dist/cdn/{JJAMYTVE.js → R4NEQE5R.js} +1 -1
  110. package/dist/cdn/R6LRZU67.js +2 -0
  111. package/dist/cdn/{IXFALLKP.js → RADXXXD4.js} +1 -1
  112. package/dist/cdn/RHFW7P7A.js +2 -0
  113. package/dist/cdn/{OO33VU2K.js → RKMOWYGQ.js} +1 -1
  114. package/dist/cdn/RPAO64TO.js +2 -0
  115. package/dist/cdn/{NC4RDBMC.js → RSXZIAG7.js} +1 -1
  116. package/dist/cdn/{SBHUHPXD.js → RWUIKOKG.js} +1 -1
  117. package/dist/cdn/RX6GIFEW.js +2 -0
  118. package/dist/cdn/{QEZ3GMQZ.js → SAZM37N6.js} +1 -1
  119. package/dist/cdn/{BQCZGAM2.js → SCBQXABR.js} +1 -1
  120. package/dist/cdn/{FD25PJPW.js → SN2OQZA6.js} +1 -1
  121. package/dist/cdn/{E4U3DTDY.js → SR6NHIQF.js} +1 -1
  122. package/dist/cdn/SZESVEUN.js +2 -0
  123. package/dist/cdn/{BHSWTPPK.js → T7OMXDHP.js} +1 -1
  124. package/dist/cdn/TGXRQTDS.js +2 -0
  125. package/dist/cdn/{RLI632QM.js → TSDCTEMO.js} +1 -1
  126. package/dist/cdn/{2XN24VXL.js → TSMBNSF6.js} +1 -1
  127. package/dist/cdn/TXTWTIAM.js +2 -0
  128. package/dist/cdn/UDFHLEOC.js +2 -0
  129. package/dist/cdn/UG7776SG.js +2 -0
  130. package/dist/cdn/{M2REUZXD.js → UHPRFXOV.js} +1 -1
  131. package/dist/cdn/{PH4KV2SM.js → UKT2W47B.js} +1 -1
  132. package/dist/cdn/ULABJEH5.js +2 -0
  133. package/dist/cdn/{U4RXX3TA.js → UPEBGVZW.js} +1 -1
  134. package/dist/cdn/UPGUT63Q.js +2 -0
  135. package/dist/cdn/V53RSKQP.js +2 -0
  136. package/dist/cdn/{FH7IYEQX.js → V5D6RICM.js} +1 -1
  137. package/dist/cdn/V5GYYF7G.js +2 -0
  138. package/dist/cdn/VB52CLA3.js +2 -0
  139. package/dist/cdn/VCCS276N.js +2 -0
  140. package/dist/cdn/VH4BTNSC.js +2 -0
  141. package/dist/cdn/{R33ZGBG3.js → VZNXVIGP.js} +1 -1
  142. package/dist/cdn/{JWF2IKHE.js → WHATFPZE.js} +1 -1
  143. package/dist/cdn/{JERQCFKV.js → WMXBYSUV.js} +1 -1
  144. package/dist/cdn/WNNT6QHG.js +2 -0
  145. package/dist/cdn/{BBWOCSU7.js → WSAWNM5S.js} +1 -1
  146. package/dist/cdn/WTLEBWVV.js +2 -0
  147. package/dist/cdn/WWNBUQQU.js +2 -0
  148. package/dist/cdn/{Z5DH7DWE.js → X273TSPZ.js} +1 -1
  149. package/dist/cdn/X4QERULW.js +2 -0
  150. package/dist/cdn/XIBTBJ2T.js +2 -0
  151. package/dist/cdn/XIDT2BBC.js +2 -0
  152. package/dist/cdn/Y2OXLTNB.js +2 -0
  153. package/dist/cdn/{2KZ26PF5.js → Y3VPUDHJ.js} +1 -1
  154. package/dist/cdn/{Y76XWVII.js → YCNQW4RH.js} +1 -1
  155. package/dist/cdn/YLSCQ4MC.js +2 -0
  156. package/dist/cdn/ZH54HCHI.js +2 -0
  157. package/dist/cdn/ZLQXEQRZ.js +2 -0
  158. package/dist/cdn/ZS3VMEP4.js +2 -0
  159. package/dist/cdn/index.js +1 -1
  160. package/dist/chunks/Validation.js +1 -1
  161. package/dist/chunks/date.js +5 -5
  162. package/dist/chunks/dom.js +2 -2
  163. package/dist/chunks/floating-ui.js +2 -2
  164. package/dist/chunks/resources16.js +11 -6
  165. package/dist/chunks/resources17.js +6 -11
  166. package/dist/chunks/resources29.js +9 -10
  167. package/dist/chunks/resources30.js +14 -3
  168. package/dist/chunks/resources31.js +7 -17
  169. package/dist/chunks/resources34.js +9 -9
  170. package/dist/chunks/runtime.js +4 -4
  171. package/dist/chunks/useLabel.js +1 -1
  172. package/dist/chunks/useTime.js +1 -1
  173. package/dist/chunks/utils2.js +1 -1
  174. package/dist/chunks/utils3.js +6 -6
  175. package/dist/chunks/utils4.js +5 -5
  176. package/dist/components/calcite-color-picker/customElement.js +1 -1
  177. package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
  178. package/dist/components/calcite-combobox/customElement.js +1 -1
  179. package/dist/components/calcite-combobox-item/customElement.js +1 -1
  180. package/dist/components/calcite-date-picker/customElement.js +1 -1
  181. package/dist/components/calcite-date-picker-month/customElement.js +1 -1
  182. package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
  183. package/dist/components/calcite-dropdown/customElement.js +1 -1
  184. package/dist/components/calcite-dropdown-group/customElement.js +2 -2
  185. package/dist/components/calcite-dropdown-item/customElement.js +1 -1
  186. package/dist/components/calcite-input/customElement.js +1 -1
  187. package/dist/components/calcite-input-date-picker/customElement.js +1 -1
  188. package/dist/components/calcite-input-number/customElement.js +1 -1
  189. package/dist/components/calcite-input-text/customElement.js +1 -1
  190. package/dist/components/calcite-input-time-picker/customElement.js +1 -1
  191. package/dist/components/calcite-link/customElement.js +3 -3
  192. package/dist/components/calcite-list/customElement.js +3 -3
  193. package/dist/components/calcite-list-item/customElement.js +3 -3
  194. package/dist/components/calcite-list-item-group/customElement.js +1 -1
  195. package/dist/components/calcite-scrim/customElement.js +1 -1
  196. package/dist/components/calcite-segmented-control/customElement.d.ts +1 -0
  197. package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
  198. package/dist/components/calcite-sheet/customElement.js +1 -1
  199. package/dist/components/calcite-shell-panel/customElement.js +1 -1
  200. package/dist/components/calcite-stepper-item/customElement.js +1 -1
  201. package/dist/components/calcite-switch/customElement.js +1 -1
  202. package/dist/components/calcite-table/customElement.js +1 -1
  203. package/dist/components/calcite-table-cell/customElement.js +1 -1
  204. package/dist/components/calcite-table-header/customElement.js +1 -1
  205. package/dist/components/calcite-table-row/customElement.js +3 -3
  206. package/dist/components/calcite-text-area/customElement.js +1 -1
  207. package/dist/docs/api.json +1 -1
  208. package/dist/docs/docs.json +1 -1
  209. package/dist/docs/vscode.html-custom-data.json +1 -1
  210. package/dist/docs/web-types.json +1 -1
  211. package/package.json +105 -47
  212. package/dist/cdn/23FKAOVS.js +0 -2
  213. package/dist/cdn/2CLXZEQH.js +0 -2
  214. package/dist/cdn/2LI2WSK2.js +0 -2
  215. package/dist/cdn/2ORIRWRD.js +0 -2
  216. package/dist/cdn/2WFNGWCA.js +0 -2
  217. package/dist/cdn/37VTBWSY.js +0 -2
  218. package/dist/cdn/3B7W5PFW.js +0 -2
  219. package/dist/cdn/3MRLZRVZ.js +0 -2
  220. package/dist/cdn/3MYHDSWB.js +0 -2
  221. package/dist/cdn/3N6HF5YQ.js +0 -2
  222. package/dist/cdn/3TIQR3QO.js +0 -2
  223. package/dist/cdn/4SXRC44A.js +0 -2
  224. package/dist/cdn/53IUSXJD.js +0 -2
  225. package/dist/cdn/5H7JQPFW.js +0 -2
  226. package/dist/cdn/5OHDHAQI.js +0 -2
  227. package/dist/cdn/5R7HGFLF.js +0 -2
  228. package/dist/cdn/7JBSV3YJ.js +0 -2
  229. package/dist/cdn/AKRSO4ZW.js +0 -2
  230. package/dist/cdn/BSXCDZUH.js +0 -2
  231. package/dist/cdn/BTTYQXZ7.js +0 -2
  232. package/dist/cdn/C36DI6C3.js +0 -2
  233. package/dist/cdn/CBOKYAML.js +0 -2
  234. package/dist/cdn/CLYO2KRA.js +0 -2
  235. package/dist/cdn/D3LTEHPN.js +0 -2
  236. package/dist/cdn/D3RMSUH2.js +0 -2
  237. package/dist/cdn/DAHOGZYX.js +0 -2
  238. package/dist/cdn/DNY67GOV.js +0 -2
  239. package/dist/cdn/DVMPS56E.js +0 -2
  240. package/dist/cdn/E2XMLXPX.js +0 -2
  241. package/dist/cdn/E56ZRHG3.js +0 -2
  242. package/dist/cdn/EOZNTC3N.js +0 -2
  243. package/dist/cdn/EYMFBQL6.js +0 -2
  244. package/dist/cdn/F2EXUQOF.js +0 -2
  245. package/dist/cdn/F4JFQNV4.js +0 -2
  246. package/dist/cdn/FFJOJ7RX.js +0 -2
  247. package/dist/cdn/FK2IYZB2.js +0 -2
  248. package/dist/cdn/FK72QZS5.js +0 -2
  249. package/dist/cdn/G3JSVGLZ.js +0 -2
  250. package/dist/cdn/G3KQV5XT.js +0 -2
  251. package/dist/cdn/G6FA47II.js +0 -2
  252. package/dist/cdn/GFXL3F6C.js +0 -2
  253. package/dist/cdn/H6YNVBZ7.js +0 -2
  254. package/dist/cdn/HFOLAOG5.js +0 -2
  255. package/dist/cdn/HISMCTPH.js +0 -2
  256. package/dist/cdn/ICCNVXEZ.js +0 -2
  257. package/dist/cdn/IFXTVKMR.js +0 -2
  258. package/dist/cdn/IIMZEOT2.js +0 -2
  259. package/dist/cdn/J6NLAHVI.js +0 -2
  260. package/dist/cdn/JWUTT6JA.js +0 -2
  261. package/dist/cdn/JXUF52LN.js +0 -2
  262. package/dist/cdn/JYQ3WIZ2.js +0 -2
  263. package/dist/cdn/KBCWUGZR.js +0 -2
  264. package/dist/cdn/KLYD4BKX.js +0 -2
  265. package/dist/cdn/LC6H6CKP.js +0 -2
  266. package/dist/cdn/LGZRS2I3.js +0 -2
  267. package/dist/cdn/LNRMKDDX.js +0 -2
  268. package/dist/cdn/LPYV4V4T.js +0 -2
  269. package/dist/cdn/LRQBTBKJ.js +0 -2
  270. package/dist/cdn/M65RWWHS.js +0 -2
  271. package/dist/cdn/MCAU3X6T.js +0 -2
  272. package/dist/cdn/MM4HGDQ2.js +0 -2
  273. package/dist/cdn/MMTPB3ZU.js +0 -2
  274. package/dist/cdn/MU33DG72.js +0 -2
  275. package/dist/cdn/N226IZGD.js +0 -2
  276. package/dist/cdn/N43V5YVP.js +0 -2
  277. package/dist/cdn/NVCT7NTL.js +0 -2
  278. package/dist/cdn/OZWITTHT.js +0 -2
  279. package/dist/cdn/P5OBNDYI.js +0 -2
  280. package/dist/cdn/PG24CNO7.js +0 -2
  281. package/dist/cdn/PK3GXKM2.js +0 -2
  282. package/dist/cdn/PWYWNOCI.js +0 -2
  283. package/dist/cdn/PZNORLME.js +0 -2
  284. package/dist/cdn/QA3LPJY2.js +0 -2
  285. package/dist/cdn/QNBT27WF.js +0 -2
  286. package/dist/cdn/QQR4CWKQ.js +0 -2
  287. package/dist/cdn/QUFBBWDT.js +0 -2
  288. package/dist/cdn/QXM5XDVT.js +0 -2
  289. package/dist/cdn/R27OXBW6.js +0 -2
  290. package/dist/cdn/SROUC4YU.js +0 -2
  291. package/dist/cdn/TGDNV64V.js +0 -2
  292. package/dist/cdn/TQRZBLNP.js +0 -2
  293. package/dist/cdn/TTWIX6V2.js +0 -2
  294. package/dist/cdn/U2PMJRNW.js +0 -2
  295. package/dist/cdn/U3PNLTP7.js +0 -2
  296. package/dist/cdn/UEBSYMRK.js +0 -2
  297. package/dist/cdn/UHQRNYZM.js +0 -2
  298. package/dist/cdn/V2JE2NS2.js +0 -2
  299. package/dist/cdn/V5EVTAEI.js +0 -2
  300. package/dist/cdn/VGU7MBIA.js +0 -2
  301. package/dist/cdn/VVJNO2LV.js +0 -2
  302. package/dist/cdn/VXDPJESZ.js +0 -2
  303. package/dist/cdn/VYTIXTHA.js +0 -2
  304. package/dist/cdn/WCOS7JMB.js +0 -2
  305. package/dist/cdn/X5HGQ6SV.js +0 -2
  306. package/dist/cdn/XKDS7U3A.js +0 -2
  307. package/dist/cdn/YI6SYA4H.js +0 -2
  308. package/dist/cdn/ZISSQKFH.js +0 -2
  309. package/dist/cdn/ZNCSL5UY.js +0 -2
  310. /package/dist/cdn/{URPI7UGE.js → 2TDUNXKF.js} +0 -0
  311. /package/dist/cdn/{3DUGUDZY.js → 5EICKOK7.js} +0 -0
  312. /package/dist/cdn/{3QPETC2U.js → 7FW2RVVH.js} +0 -0
  313. /package/dist/cdn/{CL32TRUD.js → 7O7LCUUS.js} +0 -0
  314. /package/dist/cdn/{VFY4EAP2.js → AJL3UUYU.js} +0 -0
  315. /package/dist/cdn/{V6MLAVPM.js → J2KLZQZM.js} +0 -0
  316. /package/dist/cdn/{B26JHK23.js → Z7CZFVLC.js} +0 -0
  317. /package/dist/cdn/{3TT3H2DC.js → ZHEVX44R.js} +0 -0
@@ -25,70 +25,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
25
 
26
26
  ---
27
27
 
28
- color-convert
29
-
30
- Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>.
31
- Copyright (c) 2016-2021 Josh Junon <josh@junon.me>.
32
-
33
- Permission is hereby granted, free of charge, to any person obtaining
34
- a copy of this software and associated documentation files (the
35
- "Software"), to deal in the Software without restriction, including
36
- without limitation the rights to use, copy, modify, merge, publish,
37
- distribute, sublicense, and/or sell copies of the Software, and to
38
- permit persons to whom the Software is furnished to do so, subject to
39
- the following conditions:
40
-
41
- The above copyright notice and this permission notice shall be
42
- included in all copies or substantial portions of the Software.
43
-
44
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
46
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
47
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
48
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
49
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
50
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51
-
52
- ---
53
-
54
- color-name
55
-
56
- The MIT License (MIT)
57
- Copyright (c) 2015 Dmitry Ivanov
58
-
59
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
60
-
61
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
62
-
63
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64
-
65
- ---
66
-
67
- color-string
68
-
69
- Copyright (c) 2011 Heather Arthur <fayearthur@gmail.com>
70
-
71
- Permission is hereby granted, free of charge, to any person obtaining
72
- a copy of this software and associated documentation files (the
73
- "Software"), to deal in the Software without restriction, including
74
- without limitation the rights to use, copy, modify, merge, publish,
75
- distribute, sublicense, and/or sell copies of the Software, and to
76
- permit persons to whom the Software is furnished to do so, subject to
77
- the following conditions:
78
-
79
- The above copyright notice and this permission notice shall be
80
- included in all copies or substantial portions of the Software.
81
-
82
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
83
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
84
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
85
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
86
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
87
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
88
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
89
-
90
- ---
91
-
92
28
  composed-offset-position
93
29
 
94
30
  MIT License
@@ -115,39 +51,11 @@ THE SOFTWARE.
115
51
 
116
52
  ---
117
53
 
118
- csstype
119
-
120
- Copyright (c) 2017-2018 Fredrik Nicol
121
-
122
- Permission is hereby granted, free of charge, to any person obtaining a copy
123
- of this software and associated documentation files (the "Software"), to deal
124
- in the Software without restriction, including without limitation the rights
125
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
126
- copies of the Software, and to permit persons to whom the Software is
127
- furnished to do so, subject to the following conditions:
128
-
129
- The above copyright notice and this permission notice shall be included in all
130
- copies or substantial portions of the Software.
131
-
132
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
133
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
134
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
135
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
136
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
137
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
138
- SOFTWARE.
139
-
140
- ---
141
-
142
54
  es-toolkit
143
55
 
144
56
  MIT License
145
57
 
146
- Copyright (c) 2024 Viva Republica, Inc
147
-
148
- Copyright OpenJS Foundation and other contributors
149
-
150
- Parts of the test suite and compatibility layer in `es-toolkit/compat` are derived from Lodash (https://github.com/lodash/lodash) by the OpenJS Foundation (https://openjsf.org/) and Underscore.js by Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors (http://underscorejs.org/)
58
+ Copyright (c) 2024 Viva Republica, Inc.
151
59
 
152
60
  Permission is hereby granted, free of charge, to any person obtaining a copy
153
61
  of this software and associated documentation files (the "Software"), to deal
@@ -224,42 +132,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
224
132
 
225
133
  ---
226
134
 
227
- lit-element
228
135
  lit
229
- @lit/reactive-element
230
-
231
- BSD 3-Clause License
232
-
233
- Copyright (c) 2017 Google LLC. All rights reserved.
234
-
235
- Redistribution and use in source and binary forms, with or without
236
- modification, are permitted provided that the following conditions are met:
237
-
238
- 1. Redistributions of source code must retain the above copyright notice, this
239
- list of conditions and the following disclaimer.
240
-
241
- 2. Redistributions in binary form must reproduce the above copyright notice,
242
- this list of conditions and the following disclaimer in the documentation
243
- and/or other materials provided with the distribution.
244
-
245
- 3. Neither the name of the copyright holder nor the names of its
246
- contributors may be used to endorse or promote products derived from
247
- this software without specific prior written permission.
248
-
249
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
250
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
252
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
253
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
254
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
255
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
256
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
257
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
258
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
259
-
260
- ---
261
-
262
- lit-html
263
136
 
264
137
  BSD 3-Clause License
265
138
 
@@ -294,26 +167,26 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
294
167
 
295
168
  sortablejs
296
169
 
297
- MIT License
298
-
299
- Copyright (c) 2019 All contributors to Sortable
300
-
301
- Permission is hereby granted, free of charge, to any person obtaining a copy
302
- of this software and associated documentation files (the "Software"), to deal
303
- in the Software without restriction, including without limitation the rights
304
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
305
- copies of the Software, and to permit persons to whom the Software is
306
- furnished to do so, subject to the following conditions:
307
-
308
- The above copyright notice and this permission notice shall be included in all
309
- copies or substantial portions of the Software.
310
-
311
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
312
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
313
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
314
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
315
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
316
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
170
+ MIT License
171
+
172
+ Copyright (c) 2019 All contributors to Sortable
173
+
174
+ Permission is hereby granted, free of charge, to any person obtaining a copy
175
+ of this software and associated documentation files (the "Software"), to deal
176
+ in the Software without restriction, including without limitation the rights
177
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
178
+ copies of the Software, and to permit persons to whom the Software is
179
+ furnished to do so, subject to the following conditions:
180
+
181
+ The above copyright notice and this permission notice shall be included in all
182
+ copies or substantial portions of the Software.
183
+
184
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
185
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
186
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
187
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
188
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
189
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
317
190
  SOFTWARE.
318
191
 
319
192
  ---
@@ -372,25 +245,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
372
245
 
373
246
  ---
374
247
 
375
- tslib
376
-
377
- Copyright (c) Microsoft Corporation.
378
-
379
- Permission to use, copy, modify, and/or distribute this software for any
380
- purpose with or without fee is hereby granted.
381
-
382
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
383
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
384
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
385
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
386
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
387
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
388
- PERFORMANCE OF THIS SOFTWARE.
389
-
390
- ---
391
-
392
248
  @floating-ui/dom
393
- @floating-ui/core
394
249
  @floating-ui/utils
395
250
 
396
251
  MIT License
@@ -416,14 +271,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
416
271
 
417
272
  ---
418
273
 
419
- @lit-labs/ssr-dom-shim
420
-
421
- BSD-3-Clause
422
-
423
- ---
424
-
425
274
  @types/sortablejs
426
- @types/trusted-types
427
275
 
428
276
  MIT License
429
277
 
@@ -446,17 +294,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
446
294
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
447
295
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
448
296
  SOFTWARE
449
-
450
- ---
451
-
452
- type-fest
453
-
454
- MIT License
455
-
456
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
457
-
458
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
459
-
460
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
461
-
462
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as I}from"./66ADBSUG.js";import{b as D}from"./7VTO7SRW.js";import"./VUYX7MNO.js";import{g as m,p as T,y as w}from"./3QPETC2U.js";import{E as A,I as C,R as M,g as b,h as S,p as E}from"./Y2ZDHAX5.js";function k(g){return Array.from(g.querySelectorAll("calcite-tree-item:not([disabled])")).filter(e=>{let t=e;for(;t!==g&&t!==null;){let s=t.parentElement;if(!(!I(s)||!s.hasChildren||s.expanded))return!1;t=t.parentElement}return!0})}var O=b`:host{display:block}:host(:focus){outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md)}:host([hidden]){display:none}[hidden]{display:none}`,y=class extends A{constructor(){super(),this.items=[],this.child=!1,this.lines=!1,this.parentExpanded=!1,this.scale="m",this.selectedItems=[],this.selectionMode="single",this.calciteTreeSelect=E({cancelable:!1}),this.listen("focus",this.onFocus),this.listen("focusin",this.onFocusIn),this.listen("focusout",this.onFocusOut),this.listen("calciteInternalTreeItemSelect",this.onInternalTreeItemSelect),this.listen("keydown",this.keyDownHandler)}static{this.properties={child:[7,{},{reflect:!0,type:Boolean}],lines:[7,{},{reflect:!0,type:Boolean}],parentExpanded:[5,{},{type:Boolean}],scale:[3,{},{reflect:!0}],selectedItems:[0,{},{attribute:!1}],selectionMode:[3,{},{reflect:!0}]}}static{this.styles=O}willUpdate(e){e.has("parentExpanded")&&(this.hasUpdated||this.parentExpanded!==!1)&&this.updateItems();let t=this.el.parentElement?.closest("calcite-tree")??void 0;this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}onFocus(){if(!this.child){let e=(this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])"))??void 0;T(e,!0,"focusable")}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;let t=e.target,s=m(t.querySelectorAll("calcite-tree-item")),r=this.selectionMode==="none",n=r?[]:this.getSelectedItems();if(e.preventDefault(),e.stopPropagation(),this.selectionMode==="ancestors"){this.updateAncestorTree(e,n);return}let l=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode==="children"||this.selectionMode==="multichildren")),c=this.selectionMode==="multichildren"&&t.hasChildren,d=!r&&e.detail.modifyCurrentSelection&&(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),x=!d&&((this.selectionMode==="single"||this.selectionMode==="multiple")&&s.length<=0||this.selectionMode==="children"||this.selectionMode==="multichildren"||this.selectionMode==="single-persist"&&!t.hasChildren),h=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,a=[];l&&a.push(t),x&&m(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach(o=>{a.includes(o)||(o.selected=!1)}),h&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),c&&s.forEach(i=>{i.selected=!1,i.hasChildren&&(i.expanded=!1)}),d&&window.getSelection().removeAllRanges(),d&&t.selected?a.forEach(i=>{i.disabled||(i.selected=!1)}):r||a.forEach(i=>{i.disabled||(i.selected=this.selectionMode!=="single"||!i.selected)}),this.selectedItems=r?[]:this.getSelectedItems(),this.selectionChanged(n)&&this.calciteTreeSelect.emit(),e.stopPropagation()}keyDownHandler(e){if(this.child)return;let t=this.el,s=e.target,r=["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"];if(!(I(s)&&this.el.contains(s))||!r.includes(e.key))return;let n=k(t);if(e.key==="Tab"){n.forEach(l=>l.tabIndex=-1);return}if(e.key==="ArrowDown"){let l=n.indexOf(s);n[l+1]?.focus(),e.preventDefault();return}if(e.key==="ArrowUp"){let l=n.indexOf(s);n[l-1]?.focus(),e.preventDefault();return}if(e.key==="ArrowLeft"){if(s.hasChildren&&s.expanded){s.expanded=!1,e.preventDefault();return}n.slice(0,n.indexOf(s)).reverse().find(d=>d.depth===s.depth-1)?.focus(),e.preventDefault();return}if(e.key==="ArrowRight"){if(!s.disabled&&s.hasChildren)if(!s.expanded)s.expanded=!0,e.preventDefault();else{let l=n.indexOf(s);n[l+1]?.focus(),e.preventDefault()}return}if(e.key==="Home"){let l=n.shift();l&&(l.focus(),e.preventDefault());return}if(e.key==="End"){let l=n.pop();l&&(l.focus(),e.preventDefault());return}}updateAncestorTree(e,t){let s=e.target,r=e.detail.updateItem;if(s.disabled||s.indeterminate&&!r)return;let n=[],l=s.parentElement.closest("calcite-tree-item");for(;l;)n.push(l),l=l.parentElement.closest("calcite-tree-item");let c=Array.from(s.querySelectorAll("calcite-tree-item:not([disabled])")),d=c.filter(i=>!i.hasChildren),x=c.filter(i=>i.hasChildren),h;r?h=s.hasChildren?!(s.selected||s.indeterminate):!s.selected:h=s.selected,d.forEach(i=>{i.selected=h,i.indeterminate=!1});function a(i,o){let u=i.filter(f=>f.selected),p=i.filter(f=>!f.selected);o.selected=u.length===i.length,o.indeterminate=u.length>0&&p.length>0}x.reverse().forEach(i=>{let o=Array.from(i.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));a(o,i)}),r&&(s.hasChildren?a(c,s):(s.selected=h,s.indeterminate=!1)),n.forEach(i=>{let o=m(i.querySelectorAll("calcite-tree-item")),u=o.filter(f=>f.selected);if(u.length===0){i.selected=!1,i.indeterminate=!1;return}let p=u.length<o.length;i.indeterminate=p,i.selected=!p}),this.selectedItems=this.getSelectedItems(),r&&this.selectionChanged(t)&&this.calciteTreeSelect.emit()}getSelectedItems(){return m(this.el.querySelectorAll("calcite-tree-item")).filter(e=>e.selected)}selectionChanged(e){return e.length!==this.selectedItems.length||this.selectedItems.some(t=>!e.includes(t))}updateItems(){this.items.forEach(e=>e.parentExpanded=this.parentExpanded)}handleDefaultSlotChange(e){let t=w(e).filter(I);this.items=t,this.updateItems()}getRootTabIndex(){return this.child?-1:0}render(){let e=!this.child,t=this.selectionMode==="multiple"||this.selectionMode==="multichildren";return this.el.ariaMultiSelectable=D(e&&t,e?"false":null),this.el.role=this.child?null:"tree",C(this.el,"tabIndex",this.getRootTabIndex()),S`<slot @slotchange=${this.handleDefaultSlotChange}></slot>`}};M("calcite-tree",y);export{y as Tree};
2
+ import{d as I}from"./66ADBSUG.js";import{b as D}from"./7VTO7SRW.js";import"./VUYX7MNO.js";import{g as m,p as T,y as w}from"./7FW2RVVH.js";import{G as A,K as C,T as M,g as b,h as S,p as E}from"./MVBSHQ6D.js";function k(g){return Array.from(g.querySelectorAll("calcite-tree-item:not([disabled])")).filter(e=>{let t=e;for(;t!==g&&t!==null;){let s=t.parentElement;if(!(!I(s)||!s.hasChildren||s.expanded))return!1;t=t.parentElement}return!0})}var O=b`:host{display:block}:host(:focus){outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md)}:host([hidden]){display:none}[hidden]{display:none}`,y=class extends A{constructor(){super(),this.items=[],this.child=!1,this.lines=!1,this.parentExpanded=!1,this.scale="m",this.selectedItems=[],this.selectionMode="single",this.calciteTreeSelect=E({cancelable:!1}),this.listen("focus",this.onFocus),this.listen("focusin",this.onFocusIn),this.listen("focusout",this.onFocusOut),this.listen("calciteInternalTreeItemSelect",this.onInternalTreeItemSelect),this.listen("keydown",this.keyDownHandler)}static{this.properties={child:[7,{},{reflect:!0,type:Boolean}],lines:[7,{},{reflect:!0,type:Boolean}],parentExpanded:[5,{},{type:Boolean}],scale:[3,{},{reflect:!0}],selectedItems:[0,{},{attribute:!1}],selectionMode:[3,{},{reflect:!0}]}}static{this.styles=O}willUpdate(e){e.has("parentExpanded")&&(this.hasUpdated||this.parentExpanded!==!1)&&this.updateItems();let t=this.el.parentElement?.closest("calcite-tree")??void 0;this.lines=t?t.lines:this.lines,this.scale=t?t.scale:this.scale,this.selectionMode=t?t.selectionMode:this.selectionMode,this.child=!!t}onFocus(){if(!this.child){let e=(this.el.querySelector("calcite-tree-item[selected]:not([disabled])")||this.el.querySelector("calcite-tree-item:not([disabled])"))??void 0;T(e,!0,"focusable")}}onFocusIn(e){(e.relatedTarget===this.el||!this.el.contains(e.relatedTarget))&&this.el.removeAttribute("tabindex")}onFocusOut(e){!this.el.contains(e.relatedTarget)&&(this.el.tabIndex=this.getRootTabIndex())}onInternalTreeItemSelect(e){if(this.child)return;let t=e.target,s=m(t.querySelectorAll("calcite-tree-item")),r=this.selectionMode==="none",n=r?[]:this.getSelectedItems();if(e.preventDefault(),e.stopPropagation(),this.selectionMode==="ancestors"){this.updateAncestorTree(e,n);return}let l=this.selectionMode!==null&&(!t.hasChildren||t.hasChildren&&(this.selectionMode==="children"||this.selectionMode==="multichildren")),c=this.selectionMode==="multichildren"&&t.hasChildren,d=!r&&e.detail.modifyCurrentSelection&&(this.selectionMode==="multiple"||this.selectionMode==="multichildren"),x=!d&&((this.selectionMode==="single"||this.selectionMode==="multiple")&&s.length<=0||this.selectionMode==="children"||this.selectionMode==="multichildren"||this.selectionMode==="single-persist"&&!t.hasChildren),h=["multiple","none","single","single-persist"].includes(this.selectionMode)&&t.hasChildren,a=[];l&&a.push(t),x&&m(this.el.querySelectorAll("calcite-tree-item[selected]")).forEach(o=>{a.includes(o)||(o.selected=!1)}),h&&["multiple","none","single","single-persist"].includes(this.selectionMode)&&(t.expanded=!t.expanded),c&&s.forEach(i=>{i.selected=!1,i.hasChildren&&(i.expanded=!1)}),d&&window.getSelection().removeAllRanges(),d&&t.selected?a.forEach(i=>{i.disabled||(i.selected=!1)}):r||a.forEach(i=>{i.disabled||(i.selected=this.selectionMode!=="single"||!i.selected)}),this.selectedItems=r?[]:this.getSelectedItems(),this.selectionChanged(n)&&this.calciteTreeSelect.emit(),e.stopPropagation()}keyDownHandler(e){if(this.child)return;let t=this.el,s=e.target,r=["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End","Tab"];if(!(I(s)&&this.el.contains(s))||!r.includes(e.key))return;let n=k(t);if(e.key==="Tab"){n.forEach(l=>l.tabIndex=-1);return}if(e.key==="ArrowDown"){let l=n.indexOf(s);n[l+1]?.focus(),e.preventDefault();return}if(e.key==="ArrowUp"){let l=n.indexOf(s);n[l-1]?.focus(),e.preventDefault();return}if(e.key==="ArrowLeft"){if(s.hasChildren&&s.expanded){s.expanded=!1,e.preventDefault();return}n.slice(0,n.indexOf(s)).reverse().find(d=>d.depth===s.depth-1)?.focus(),e.preventDefault();return}if(e.key==="ArrowRight"){if(!s.disabled&&s.hasChildren)if(!s.expanded)s.expanded=!0,e.preventDefault();else{let l=n.indexOf(s);n[l+1]?.focus(),e.preventDefault()}return}if(e.key==="Home"){let l=n.shift();l&&(l.focus(),e.preventDefault());return}if(e.key==="End"){let l=n.pop();l&&(l.focus(),e.preventDefault());return}}updateAncestorTree(e,t){let s=e.target,r=e.detail.updateItem;if(s.disabled||s.indeterminate&&!r)return;let n=[],l=s.parentElement.closest("calcite-tree-item");for(;l;)n.push(l),l=l.parentElement.closest("calcite-tree-item");let c=Array.from(s.querySelectorAll("calcite-tree-item:not([disabled])")),d=c.filter(i=>!i.hasChildren),x=c.filter(i=>i.hasChildren),h;r?h=s.hasChildren?!(s.selected||s.indeterminate):!s.selected:h=s.selected,d.forEach(i=>{i.selected=h,i.indeterminate=!1});function a(i,o){let u=i.filter(f=>f.selected),p=i.filter(f=>!f.selected);o.selected=u.length===i.length,o.indeterminate=u.length>0&&p.length>0}x.reverse().forEach(i=>{let o=Array.from(i.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));a(o,i)}),r&&(s.hasChildren?a(c,s):(s.selected=h,s.indeterminate=!1)),n.forEach(i=>{let o=m(i.querySelectorAll("calcite-tree-item")),u=o.filter(f=>f.selected);if(u.length===0){i.selected=!1,i.indeterminate=!1;return}let p=u.length<o.length;i.indeterminate=p,i.selected=!p}),this.selectedItems=this.getSelectedItems(),r&&this.selectionChanged(t)&&this.calciteTreeSelect.emit()}getSelectedItems(){return m(this.el.querySelectorAll("calcite-tree-item")).filter(e=>e.selected)}selectionChanged(e){return e.length!==this.selectedItems.length||this.selectedItems.some(t=>!e.includes(t))}updateItems(){this.items.forEach(e=>e.parentExpanded=this.parentExpanded)}handleDefaultSlotChange(e){let t=w(e).filter(I);this.items=t,this.updateItems()}getRootTabIndex(){return this.child?-1:0}render(){let e=!this.child,t=this.selectionMode==="multiple"||this.selectionMode==="multichildren";return this.el.ariaMultiSelectable=D(e&&t,e?"false":null),this.el.role=this.child?null:"tree",C(this.el,"tabIndex",this.getRootTabIndex()),S`<slot @slotchange=${this.handleDefaultSlotChange}></slot>`}};M("calcite-tree",y);export{y as Tree};
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as O}from"./T6CCMW7H.js";import{a as S}from"./VI7SBYXT.js";import{E as X,F as x,H as i,R as N,g as G,h as z,i as v}from"./Y2ZDHAX5.js";function B(t,s,n){let r=s[0]-t[0],o=n[0]-s[0],$=s[1]-t[1],c=n[1]-s[1],h=$/Number(r||o<0&&0),a=c/Number(o||r<0&&0),e=(h*o+a*r)/(r+o);return(Math.sign(h)+Math.sign(a))*Math.min(Math.abs(h),Math.abs(a),.5*Math.abs(e))||0}function Y(t,s,n){let r=s[0]-t[0],o=s[1]-t[1];return r?(3*o/r-n)/2:n}function Z(t,s,n,r,o){let[$,c]=t,[h,a]=s,e=(h-$)/3,l=o([$+e,c+e*n]).join(","),d=o([h-e,a-e*r]).join(","),m=o([h,a]).join(",");return`C ${l} ${d} ${m}`}function H({width:t,height:s,min:n,max:r}){let o=r[0]-n[0],$=r[1]-n[1];return c=>{let h=(c[0]-n[0])/o*t,a=s-(c[1]-n[1])/$*s;return[h,a]}}function I(t){let[s,n]=t[0],r=[s,n],o=[s,n];return t.reduce(({min:$,max:c},[h,a])=>({min:[Math.min($[0],h),Math.min($[1],a)],max:[Math.max(c[0],h),Math.max(c[1],a)]}),{min:r,max:o})}function R({data:t,min:s,max:n,t:r}){if(t.length<3)return"";let[o,$]=r(t[0]),[c,h]=r(s),[a]=r(n),e,l,d,m=t.reduce((y,M,u)=>{if(l=t[u-2],d=t[u-1],u>1){let g=B(l,d,M),f=e===void 0?Y(l,d,g):e,L=Z(l,d,f,g,r);return e=g,`${y} ${L}`}return y},`M ${c},${h} L ${c},${$} L ${o},${$}`),w=t[t.length-1],k=Z(d,w,e,Y(d,w,e),r);return`${m} ${k} L ${a},${h} Z`}var E=G`:host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0;display:block;block-size:100%;inline-size:100%;padding:0}.svg .graph-path--highlight{fill:var(--calcite-graph-highlight-fill-color, var(--calcite-color-brand));opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`,b={svg:"svg",graphPath:"graph-path",graphPathHighlight:"graph-path--highlight"},C="calcite-graph",p={host:t=>`${C}-${t}`,linearGradient:t=>`linear-gradient-${C}-${t}`,mask:(t,s)=>`${C}-${t}${s}`},P=class extends X{constructor(){super(...arguments),this.graphId=O(),this.resizeObserver=S("resize",()=>this.requestUpdate()),this.data=[]}static{this.properties={colorStops:[0,{},{attribute:!1}],data:[0,{},{attribute:!1}],highlightMax:[9,{},{type:Number}],highlightMin:[9,{},{type:Number}],max:[11,{},{reflect:!0,type:Number}],min:[11,{},{reflect:!0,type:Number}]}}static{this.styles=E}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}render(){let{data:s,colorStops:n,el:r,highlightMax:o,highlightMin:$,min:c,max:h}=this,a=this.graphId,{clientHeight:e,clientWidth:l}=r;if(!s||s.length===0)return z`<svg aria-hidden=true class=${x(b.svg)} height=${e??i} preserveAspectRatio=none viewBox=${`0 0 ${l} ${e}`} width=${l??i}></svg>`;let{min:d,max:m}=I(s),w=d,k=m;(c<d[0]||c>d[0])&&(w=[c,0]),(h>m[0]||h<m[0])&&(k=[h,m[1]]);let y=H({min:w,max:k,width:l,height:e}),M=R({data:s,min:d,max:m,t:y}),u=n?`url(#${p.linearGradient(a)})`:void 0;if($!==void 0&&o!==void 0){let[g]=y([$,k[1]]),[f]=y([o,k[1]]);return z`<svg aria-hidden=true class=${x(b.svg)} height=${e??i} preserveAspectRatio=none viewBox=${`0 0 ${l} ${e}`} width=${l??i}>${v`${n?v`<defs><linearGradient id=${p.linearGradient(a)??i} x1=0 x2=1 y1=0 y2=0>${n.map(({offset:L,color:j,opacity:A})=>v`<stop offset=${`${L*100}%`} stop-color=${j??i} stop-opacity=${A??i} />`)}</linearGradient></defs>`:null}<mask height=100% id=${p.mask(a,1)??i} width=100% x=0% y=0%><path d=${`
2
+ import{a as O}from"./T6CCMW7H.js";import{a as S}from"./VI7SBYXT.js";import{G as X,H as x,J as i,T as N,g as G,h as z,i as v}from"./MVBSHQ6D.js";function B(t,s,n){let r=s[0]-t[0],o=n[0]-s[0],$=s[1]-t[1],c=n[1]-s[1],h=$/Number(r||o<0&&0),a=c/Number(o||r<0&&0),e=(h*o+a*r)/(r+o);return(Math.sign(h)+Math.sign(a))*Math.min(Math.abs(h),Math.abs(a),.5*Math.abs(e))||0}function Y(t,s,n){let r=s[0]-t[0],o=s[1]-t[1];return r?(3*o/r-n)/2:n}function Z(t,s,n,r,o){let[$,c]=t,[h,a]=s,e=(h-$)/3,l=o([$+e,c+e*n]).join(","),d=o([h-e,a-e*r]).join(","),m=o([h,a]).join(",");return`C ${l} ${d} ${m}`}function H({width:t,height:s,min:n,max:r}){let o=r[0]-n[0],$=r[1]-n[1];return c=>{let h=(c[0]-n[0])/o*t,a=s-(c[1]-n[1])/$*s;return[h,a]}}function I(t){let[s,n]=t[0],r=[s,n],o=[s,n];return t.reduce(({min:$,max:c},[h,a])=>({min:[Math.min($[0],h),Math.min($[1],a)],max:[Math.max(c[0],h),Math.max(c[1],a)]}),{min:r,max:o})}function R({data:t,min:s,max:n,t:r}){if(t.length<3)return"";let[o,$]=r(t[0]),[c,h]=r(s),[a]=r(n),e,l,d,m=t.reduce((y,M,u)=>{if(l=t[u-2],d=t[u-1],u>1){let g=B(l,d,M),f=e===void 0?Y(l,d,g):e,L=Z(l,d,f,g,r);return e=g,`${y} ${L}`}return y},`M ${c},${h} L ${c},${$} L ${o},${$}`),w=t[t.length-1],k=Z(d,w,e,Y(d,w,e),r);return`${m} ${k} L ${a},${h} Z`}var E=G`:host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0;display:block;block-size:100%;inline-size:100%;padding:0}.svg .graph-path--highlight{fill:var(--calcite-graph-highlight-fill-color, var(--calcite-color-brand));opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`,b={svg:"svg",graphPath:"graph-path",graphPathHighlight:"graph-path--highlight"},C="calcite-graph",p={host:t=>`${C}-${t}`,linearGradient:t=>`linear-gradient-${C}-${t}`,mask:(t,s)=>`${C}-${t}${s}`},P=class extends X{constructor(){super(...arguments),this.graphId=O(),this.resizeObserver=S("resize",()=>this.requestUpdate()),this.data=[]}static{this.properties={colorStops:[0,{},{attribute:!1}],data:[0,{},{attribute:!1}],highlightMax:[9,{},{type:Number}],highlightMin:[9,{},{type:Number}],max:[11,{},{reflect:!0,type:Number}],min:[11,{},{reflect:!0,type:Number}]}}static{this.styles=E}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}render(){let{data:s,colorStops:n,el:r,highlightMax:o,highlightMin:$,min:c,max:h}=this,a=this.graphId,{clientHeight:e,clientWidth:l}=r;if(!s||s.length===0)return z`<svg aria-hidden=true class=${x(b.svg)} height=${e??i} preserveAspectRatio=none viewBox=${`0 0 ${l} ${e}`} width=${l??i}></svg>`;let{min:d,max:m}=I(s),w=d,k=m;(c<d[0]||c>d[0])&&(w=[c,0]),(h>m[0]||h<m[0])&&(k=[h,m[1]]);let y=H({min:w,max:k,width:l,height:e}),M=R({data:s,min:d,max:m,t:y}),u=n?`url(#${p.linearGradient(a)})`:void 0;if($!==void 0&&o!==void 0){let[g]=y([$,k[1]]),[f]=y([o,k[1]]);return z`<svg aria-hidden=true class=${x(b.svg)} height=${e??i} preserveAspectRatio=none viewBox=${`0 0 ${l} ${e}`} width=${l??i}>${v`${n?v`<defs><linearGradient id=${p.linearGradient(a)??i} x1=0 x2=1 y1=0 y2=0>${n.map(({offset:L,color:j,opacity:A})=>v`<stop offset=${`${L*100}%`} stop-color=${j??i} stop-opacity=${A??i} />`)}</linearGradient></defs>`:null}<mask height=100% id=${p.mask(a,1)??i} width=100% x=0% y=0%><path d=${`
3
3
  M 0,0
4
4
  L ${g-1},0
5
5
  L ${g-1},${e}
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{c as d,g as a}from"./O6Y3UUOV.js";import{a as r}from"./QIC3CEGW.js";import"./VUYX7MNO.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import{G as n,H as i,T as o,g as s,h as c,p as t}from"./MVBSHQ6D.js";var g=s`: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}:host([filter-hidden]){display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{margin:0;display:flex;flex:1 1 0%;position:sticky;inset-block-start:var(--calcite-internal-filter-enabled-offset, 0);z-index:var(--calcite-z-index-sticky);background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1));color:var(--calcite-list-color, var(--calcite-color-text-1))}.heading{font-weight:var(--calcite-font-weight-bold)}:host([scale=s]) .container{padding-inline:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-xxs)}:host([scale=s]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-inline:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base);padding-block:var(--calcite-spacing-lg) var(--calcite-spacing-sm)}:host([scale=m]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-inline:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg);padding-block:var(--calcite-spacing-xl) var(--calcite-spacing-sm-plus, .625rem)}:host([scale=l]:not(:first-child)) .container{padding-block-start:var(--calcite-spacing-md-plus, .875rem)}.heading{padding:0}:host([hidden]){display:none}[hidden]{display:none}`,l=class extends n{constructor(){super(...arguments),this.interactiveContainer=r(this),this.disabled=!1,this.filterHidden=!1,this.scale="m",this.calciteInternalListItemGroupDefaultSlotChange=t({cancelable:!1}),this.calciteInternalListItemGroupChange=t({cancelable:!1})}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],filterHidden:[7,{},{reflect:!0,type:Boolean}],heading:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=g}willUpdate(e){e.has("heading")&&this.calciteInternalListItemGroupChange.emit()}handleDefaultSlotChange(){this.calciteInternalListItemGroupDefaultSlotChange.emit()}render(){let{disabled:e,heading:h}=this;return this.interactiveContainer({disabled:e,children:c`<div class=${i(a.container)} role=row><div .ariaColSpan=${d} class=${i(a.heading)} role=cell>${h}</div></div><slot @slotchange=${this.handleDefaultSlotChange}></slot>`})}};o("calcite-list-item-group",l);export{l as ListItemGroup};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as p}from"./RJCE75G7.js";import{j as b}from"./GOYFUSER.js";import"./EM6V55GC.js";import{a as d}from"./AG2RXIA6.js";import"./YP3AYJH3.js";import{a as w}from"./VI7SBYXT.js";import{a as L}from"./SN2OQZA6.js";import{a as E}from"./GLOG663K.js";import{a as u}from"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import"./7FW2RVVH.js";import{G as P,H as r,T as X,g as $,h as o,l as y,p as C}from"./MVBSHQ6D.js";var s={list:"list",listItem:"list-item",hiddenItem:"hidden-item",page:"page",selected:"selected",chevron:"chevron",disabled:"disabled",ellipsis:"ellipsis"},f={next:"chevron-right",previous:"chevron-left",first:"chevron-start",last:"chevron-end"},O=$`:host{display:flex;writing-mode:horizontal-tb}.list{margin:0;display:flex;list-style-type:none;padding:0;column-gap:var(--calcite-spacing-base)}.list-item{margin:0;display:flex;padding:0}.hidden-item{display:none}:host([scale=s]) .chevron,:host([scale=s]) .page,:host([scale=s]) .ellipsis{block-size:1.5rem;padding-inline:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);min-inline-size:1.5rem}:host([scale=m]) .chevron,:host([scale=m]) .page,:host([scale=m]) .ellipsis{block-size:2rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);min-inline-size:2rem}:host([scale=l]) .chevron,:host([scale=l]) .page,:host([scale=l]) .ellipsis{block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-inline-size:2.75rem}:host([scale=l]) .chevron{padding-inline:var(--calcite-space-sm-plus)}:host([scale=l]) .page,:host([scale=l]) .ellipsis{padding-inline:.75rem}:host button{outline-color:transparent}:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.chevron,.page,.ellipsis{margin:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity: 0;background-color:transparent;padding:0;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);color:var(--calcite-pagination-color, var(--calcite-color-text-3))}.chevron,.page{cursor:pointer;border-block:2px solid transparent}.chevron:hover,.page:hover{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1))}.chevron:active,.page:active{color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1))}.page:hover{border-block-end-color:var(--calcite-pagination-color-border-hover, var(--calcite-color-border-2))}.page:active{background-color:var(--calcite-pagination-background-color, var(--calcite-color-foreground-3))}.page.selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1));border-block-end-color:var(--calcite-pagination-color-border-active, var(--calcite-color-brand))}.page.selected:focus{border-block-end-width:var(--calcite-spacing-xxs);padding-block-start:var(--calcite-spacing-base)}.chevron:hover{background-color:var(--calcite-pagination-icon-color-background-hover, var(--calcite-color-foreground-2))}.chevron:active{background-color:var(--calcite-pagination-background-color, var(--calcite-color-foreground-3))}.chevron.disabled{pointer-events:none;background-color:transparent}.chevron.disabled>calcite-icon{opacity:var(--calcite-opacity-disabled)}:host([hidden]){display:none}[hidden]{display:none}`,I=2,M=2,m={large:11,medium:9,small:7,xsmall:5,xxsmall:1},x=class extends P{constructor(){super(...arguments),this.resizeHandler=({contentRect:{width:t}})=>this.setMaxItemsToBreakpoint(t),this.resizeObserver=w("resize",t=>t.forEach(this.resizeHandler)),this.messages=L({blocking:!0}),this.focusSetter=E()(this),this.isXXSmall=!1,this.lastStartItem=1,this.maxItems=m.xxsmall,this.totalPages=1,this.groupSeparator=!1,this.pageSize=20,this.scale="m",this.startItem=1,this.totalItems=0,this.calcitePaginationChange=C({cancelable:!1})}static{this.properties={isXXSmall:[16,{},{state:!0}],lastStartItem:[16,{},{state:!0}],maxItems:[16,{},{state:!0}],totalPages:[16,{},{state:!0}],groupSeparator:[7,{},{reflect:!0,type:Boolean}],messageOverrides:[0,{},{attribute:!1}],numberingSystem:1,pageSize:[11,{},{reflect:!0,type:Number}],scale:[3,{},{reflect:!0}],startItem:[11,{},{reflect:!0,type:Number}],totalItems:[11,{},{reflect:!0,type:Number}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=O}async goTo(t){switch(t){case"start":this.startItem=1;break;case"end":this.startItem=this.lastStartItem;break;default:t>=Math.ceil(this.totalPages)?this.startItem=this.lastStartItem:t<=0?this.startItem=1:this.startItem=(t-1)*this.pageSize+1}}async nextPage(){this.startItem=Math.min(this.lastStartItem,this.startItem+this.pageSize)}async previousPage(){this.startItem=Math.max(1,this.startItem-this.pageSize)}async setFocus(t){return this.focusSetter(()=>this.el,t)}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}async load(){this.handleTotalPages(),this.handleLastStartItemChange(),this.handleIsXXSmall()}willUpdate(t){(t.has("totalItems")&&(this.hasUpdated||this.totalItems!==0)||t.has("pageSize")&&(this.hasUpdated||this.pageSize!==20))&&this.handleTotalPages(),(t.has("totalItems")&&(this.hasUpdated||this.totalItems!==0)||t.has("pageSize")&&(this.hasUpdated||this.pageSize!==20)||t.has("totalPages"))&&this.handleLastStartItemChange(),t.has("maxItems")&&(this.hasUpdated||this.maxItems!==m.xxsmall)&&this.handleIsXXSmall(),t.has("messages")&&this.effectiveLocaleChange()}loaded(){this.setMaxItemsToBreakpoint(this.el.clientWidth)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleTotalPages(){this.pageSize=Math.max(1,this.pageSize),this.totalPages=Math.max(1,this.totalItems/this.pageSize)}effectiveLocaleChange(){b.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator}}handleLastStartItemChange(){let{totalItems:t,pageSize:e}=this;this.lastStartItem=Math.max(1,Math.floor((t-1)/e)*e+1)}handleIsXXSmall(){this.isXXSmall=this.maxItems===m.xxsmall}setMaxItemsToBreakpoint(t){if(!(!p||!t)){if(t>=p.width.medium){this.maxItems=m.large;return}if(t>=p.width.small){this.maxItems=m.medium;return}if(t>=p.width.xsmall){this.maxItems=m.small;return}if(t>=p.width.xxsmall){this.maxItems=m.xsmall;return}this.maxItems=m.xxsmall}}firstClicked(){this.startItem=1,this.emitUpdate()}lastClicked(){this.startItem=this.lastStartItem,this.emitUpdate()}async previousClicked(){await this.previousPage(),this.emitUpdate()}async nextClicked(){await this.nextPage(),this.emitUpdate()}showStartEllipsis(){return this.totalPages>this.maxItems&&Math.floor(this.startItem/this.pageSize)>this.maxItems-I-M}showEndEllipsis(){return this.totalPages>this.maxItems&&(this.totalItems-this.startItem)/this.pageSize>this.maxItems-I-(M-1)}emitUpdate(){this.calcitePaginationChange.emit()}handlePageClick(t){let e=t.target;this.startItem=parseInt(e.value,10),this.emitUpdate()}renderEllipsis(t){return o`<li aria-hidden=true role=presentation>${d(t,o`<span class=${r(s.ellipsis)}>&hellip;</span>`)}</li>`}renderItems(){let{totalItems:t,pageSize:e,startItem:i,maxItems:a,totalPages:l,lastStartItem:v,isXXSmall:U}=this,n=[];if(U)return n.push(this.renderPage(i)),n;let F=t>e,S=this.showStartEllipsis(),k=this.showEndEllipsis();F&&n.push(this.renderPage(1)),S&&n.push(this.renderEllipsis("start"));let c=a-I-(k?1:0)-(S?1:0),g,h;l-1<=c?(h=1+e,g=v-e):i/e<c?(h=1+e,g=1+c*e):i+c*e>=t?(h=v-c*e,g=v-e):(h=i-e*((c-1)/2),g=i+e*((c-1)/2));for(let z=0;z<c&&h<=g;z++)n.push(this.renderPage(h)),h=h+e;return k&&n.push(this.renderEllipsis("end")),n.push(this.renderPage(v)),n}renderPage(t){let{pageSize:e}=this,i=Math.floor(t/e)+(e===1?0:1);b.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let a=b.localize(i.toString()),l=t===this.startItem;return o`<li class=${r(s.listItem)}><button .ariaCurrent=${l?"page":"false"} class=${r({[s.page]:!0,[s.selected]:l})} @click=${this.handlePageClick} value=${t??y}>${a}</button></li>`}renderPreviousChevron(){let{pageSize:t,startItem:e,messages:i}=this,a=t===1?e<=t:e<t;return d("previous",o`<button .ariaLabel=${i.previous} class=${r({[s.chevron]:!0,[s.disabled]:a})} .disabled=${a} @click=${this.previousClicked}><calcite-icon flip-rtl .icon=${f.previous} .scale=${u(this.scale)}></calcite-icon></button>`)}renderNextChevron(){let{totalItems:t,pageSize:e,startItem:i,messages:a}=this,l=i+e>t;return d("next-button",o`<button .ariaLabel=${a.next} class=${r({[s.chevron]:!0,[s.disabled]:l})} .disabled=${l} @click=${this.nextClicked}><calcite-icon flip-rtl .icon=${f.next} .scale=${u(this.scale)}></calcite-icon></button>`)}renderFirstChevron(){let{messages:t,startItem:e,isXXSmall:i}=this,a=e===1;return i?d("first-button",o`<button .ariaLabel=${t.first} class=${r({[s.chevron]:!0,[s.disabled]:a})} .disabled=${a} @click=${this.firstClicked}><calcite-icon flip-rtl .icon=${f.first} .scale=${u(this.scale)}></calcite-icon></button>`):null}renderLastChevron(){let{messages:t,startItem:e,isXXSmall:i,lastStartItem:a}=this,l=e===a;return i?d("last-button",o`<button .ariaLabel=${t.last} class=${r({[s.chevron]:!0,[s.disabled]:l})} .disabled=${l} @click=${this.lastClicked}><calcite-icon flip-rtl .icon=${f.last} .scale=${u(this.scale)}></calcite-icon></button>`):null}render(){let t=this.renderFirstChevron(),e=this.renderLastChevron();return o`<ul class=${r(s.list)}><li class=${r({[s.listItem]:!0,[s.hiddenItem]:!t})}>${t}</li><li class=${r(s.listItem)}>${this.renderPreviousChevron()}</li>${this.renderItems()}<li class=${r(s.listItem)}>${this.renderNextChevron()}</li><li class=${r({[s.listItem]:!0,[s.hiddenItem]:!e})}>${e}</li></ul>`}};X("calcite-pagination",x);export{x as Pagination};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as y}from"./SN2OQZA6.js";import{a as h,b as S,c as x}from"./24ZPXFO2.js";import{c as u}from"./XX43OXTK.js";import{c as v}from"./77M5NVCW.js";import"./VUYX7MNO.js";import{a as b}from"./GLOG663K.js";import"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import{x as A,z as r}from"./7FW2RVVH.js";import{E as c,F as l,G as m,H as f,T as g,g as p,h as n,p as a}from"./MVBSHQ6D.js";var E=p`: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([scale=s]){--calcite-internal-action-group-gap: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-group-gap: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-group-gap: var(--calcite-spacing-sm-plus)}:host{display:flex;flex-direction:column;padding:0;background-color:transparent;border-color:var(--calcite-action-group-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0;gap:var(--calcite-internal-action-group-gap)}.container{display:flex;flex-grow:1;flex-direction:column;gap:inherit}:host([columns="1"]){--calcite-internal-action-group-columns: 1}:host([columns="2"]){--calcite-internal-action-group-columns: 2}:host([columns="3"]){--calcite-internal-action-group-columns: 3}:host([columns="4"]){--calcite-internal-action-group-columns: 4}:host([columns="5"]){--calcite-internal-action-group-columns: 5}:host([columns="6"]){--calcite-internal-action-group-columns: 6}:host(:first-child){padding-block-start:0px}:host([layout=horizontal]),:host([layout=horizontal]) .container{flex-direction:row}:host([layout=grid]){display:grid}:host([layout=grid]) .container{display:grid;place-content:stretch;background-color:transparent;gap:var(--calcite-action-group-gap, var(--calcite-internal-action-group-gap));grid-template-columns:repeat(var(--calcite-action-group-columns, var(--calcite-internal-action-group-columns, 3)),auto);padding:var(--calcite-action-group-gap, 1px)}:host([layout=horizontal]) ::slotted(calcite-action-group){border-inline-end:var(--calcite-size-px)}:host([hidden]){display:none}[hidden]{display:none}`,d=class extends m{constructor(){super(),this.messages=y(),this._actions=[],this.focusSetter=b()(this),this.defaultSlotRef=c(),this.menuActionsSlotRef=c(),this.hasMenuActions=!1,this.expanded=!1,this.layout="vertical",this.menuOpen=!1,this.overlayPositioning="absolute",this.overflowActionsDisabled=!1,this.scale="m",this.selectionMode="none",this.topLayerDisabled=!1,this.selectedActions=[],this.calciteActionGroupCollapse=a({cancelable:!1}),this.calciteActionGroupExpand=a({cancelable:!1}),this.calciteActionGroupChange=a({cancelable:!1}),this.calciteInternalActionGroupActionsChange=a({cancelable:!1}),this.listen("click",this.handleActionClick)}static{this.properties={hasMenuActions:[16,{},{state:!0}],columns:[11,{},{type:Number,reflect:!0}],expanded:[7,{},{reflect:!0,type:Boolean}],label:1,layout:[3,{},{reflect:!0}],menuFlipPlacements:[0,{},{attribute:!1}],menuOpen:[7,{},{reflect:!0,type:Boolean}],menuPlacement:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],overlayPositioning:[3,{},{reflect:!0}],overflowActionsDisabled:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],selectionMode:[3,{},{reflect:!0}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}],actions:[32,{},{attribute:!1,readOnly:!0}],selectedActions:[0,{},{attribute:!1}]}}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=E}get actions(){return this._actions}async setFocus(t){return this.focusSetter(()=>this.el,t)}willUpdate(t){(this.hasUpdated||t.has("selectionMode"))&&this.syncSelectionState(),t.has("expanded")&&((this.hasUpdated||this.expanded!==!1)&&(this.menuOpen=!1),this.hasUpdated&&(this.expanded?this.calciteActionGroupExpand.emit():this.calciteActionGroupCollapse.emit()))}setActiveAction(t,e){let s=!e.active;switch(this.selectionMode){case"multiple":this.updateAction(e,s);break;case"single":this.actions.forEach((i,o)=>this.updateAction(i,o===t&&s));break;case"single-persist":this.actions[t].active||(this.actions.forEach((i,o)=>this.updateAction(i,o===t)),this.updateSelectedActions([e]),this.calciteActionGroupChange.emit());return;default:return}this.updateSelectedActions(this.actions.filter(i=>i.active)),this.calciteActionGroupChange.emit()}setMenuOpen(t){this.menuOpen=!!t.currentTarget.open}syncSelectionState(){if(this.selectionMode!=="none"?this.setRoleOnActions():this.clearActionAriaAttributes(),this.selectionMode==="single"||this.selectionMode==="single-persist"){let t=this.actions.filter(e=>e.active);t.length>1&&this.actions.forEach(e=>this.updateAction(e,e===t.at(-1)))}this.updateSelectedActions(this.selectionMode==="none"?[]:this.actions.filter(t=>t.active))}syncActions(){let t=this.defaultSlotRef.value?r(this.defaultSlotRef.value,"calcite-action"):[],e=this.menuActionsSlotRef.value?r(this.menuActionsSlotRef.value,"calcite-action"):[];this._actions=[...t,...e],this.syncSelectionState()}syncActionsAndEmitChange(){this.syncActions(),this.calciteInternalActionGroupActionsChange.emit()}handleDefaultSlotChange(){this.syncActionsAndEmitChange()}handleMenuActionsSlotChange(t){this.hasMenuActions=A(t),this.syncActionsAndEmitChange()}handleActionClick(t){let e=t.composedPath().find(v);if(!e||e.disabled)return;let s=this.actions.indexOf(e);s===-1||this.selectionMode==="none"||this.setActiveAction(s,e)}setRoleOnActions(){this.actions.forEach(t=>{t.aria={...t.aria,role:this.selectionMode==="single"||this.selectionMode==="single-persist"?"radio":"checkbox"},this.setActionAriaChecked(t,t.active)})}setActionAriaChecked(t,e){t.aria={...t.aria,checked:e?"true":"false"}}clearActionAriaAttributes(){this.selectionMode==="none"&&this.actions.forEach(t=>{t.aria&&(t.aria.checked=void 0,t.aria.role=void 0,t.aria={...t.aria})})}updateAction(t,e){t.active=e,this.setActionAriaChecked(t,e)}updateSelectedActions(t){let e=this.selectedActions;e.length===t.length&&e.every((i,o)=>i===t[o])||(this.selectedActions=t)}renderMenu(){let{expanded:t,menuOpen:e,scale:s,layout:i,messages:o,overlayPositioning:$,hasMenuActions:M,menuFlipPlacements:C,menuPlacement:O}=this;return n`<calcite-action-menu .expanded=${t} .flipPlacements=${C??(i==="horizontal"?["top","bottom"]:["left","right"])} .hidden=${!M} .label=${o.more} @calciteActionMenuOpen=${this.setMenuOpen} .open=${e} .overlayPositioning=${$} .placement=${O??(i==="horizontal"?"bottom-start":"leading-start")} .scale=${s} .topLayerDisabled=${this.topLayerDisabled}><calcite-action .aria=${{expanded:t}} .icon=${S.menu} .scale=${s} slot=${u.trigger} .text=${o.more} .textEnabled=${t}></calcite-action><slot name=${h.menuActions} @slotchange=${this.handleMenuActionsSlotChange} ${l(this.menuActionsSlotRef)}></slot><slot name=${h.menuTooltip} slot=${u.tooltip}></slot></calcite-action-menu>`}render(){return n`<div .ariaLabel=${this.label} class=${f(x.container)} .role=${this.selectionMode==="multiple"||this.selectionMode==="none"?"group":"radiogroup"}><slot @slotchange=${this.handleDefaultSlotChange} ${l(this.defaultSlotRef)}></slot>${this.renderMenu()}</div>`}};g("calcite-action-group",d);export{d as ActionGroup};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as E,b,c as w,d as L}from"./MJ5LQ3NR.js";import{a as P,b as O,c as h,d as u,e as A,f,o as g,q as v}from"./MVBSHQ6D.js";var N=e=>(...o)=>{let t=u(),s=new e(...o),r=s.exports;h(t.at(-1));let n=s.component.manager;n.W(s,r),s.watchExports(n.W.bind(n,s)),A(s);let i=[s.component,...t].reverse();return g(i,a=>a===void 0?void 0:R(s,a,r),r)},R=(e,{host:o,key:t,isReactive:s},r)=>{let n=o,i=n[t]!==e.exports,a=n[t]!==r,c=r!==e.exports;if(i&&!a&&c&&(n[t]=e.exports),o===e.component){if(s){let p=e.component.manager;a&&p.W(e,n[t]),e.onUpdate(m=>{if(m.has(t)){let x=n[t];x!==e.exports&&p.W(e,x)}})}e.O=s?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var D=e=>M(void 0,e),be=e=>o=>M(o,e),C=class extends v{constructor(o,t){super(o);let s=this.exports;try{O(this.component);let r=t(this.component,this),n=this.exports!==s;if(P(r)){n||this.setProvisionalExports(r);let i=r.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a)});this.onLoad(async()=>await i)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r)}}catchUpLifecycle(){}},M=N(C),Ce=(e,o)=>new y(e,o),y=class extends v{#e;#t;#s;constructor(o,t){super(),!!1&&(this.#t=o,this.#s=t,this.#e=new MutationObserver(s=>{s.forEach(r=>{o.includes(r.attributeName)&&t.call(this.component,this.component.el.getAttribute(r.attributeName),r.oldValue,r.attributeName)})}))}hostConnected(){this.#t.forEach(o=>{this.component.el.hasAttribute(o)&&this.#s.call(this.component,this.component.el.getAttribute(o),null,o)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}};var ye=e=>(...o)=>{let t=u(),s=new e(...o);return h(t.at(-1)),s};var _="ltr",xe=()=>D((e,o)=>{o.exports=_,o.onLifecycle(()=>{let t=()=>{let s=b(e.el,"dir",_);o.exports=s==="rtl"?"rtl":"ltr"};return t(),E(e.el,["dir"],t)})}),Pe=e=>(o={})=>D((t,s)=>{let r=w(t.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},i=t;s.onLifecycle(()=>L(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};s.exports=p;let m=l.componentLabel;typeof m=="string"&&"label"in t&&t.label==null&&(t.label??=m),a(i.messageOverrides)},o.name));let a=c=>{let l=s.exports,d=l._original??l,p=j(d,c);c&&(p._original=d),s.exports=p};return"messageOverrides"in i&&s.onUpdate(c=>{c.has("messageOverrides")&&a(i.messageOverrides)}),o.blocking?(s.setProvisionalExports(n,!1),s.ready):n}),j=(e,o)=>{if(!o)return e;let t={...e};return Object.entries(o).forEach(([s,r])=>{e[s]!==void 0&&(typeof r=="object"?t[s]=j(e[s],r):t[s]=r??e[s])}),t};export{D as a,be as b,Ce as c,ye as d,xe as e,Pe as f};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as $}from"./AG2RXIA6.js";import{a as E}from"./YP3AYJH3.js";import{a as y}from"./SN2OQZA6.js";import{a as S}from"./GLOG663K.js";import{a as g}from"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import{x as w}from"./7FW2RVVH.js";import{G as b,H as o,J as f,Q as m,T as k,g as x,h as l,p as d}from"./MVBSHQ6D.js";var i={content:"content",toggle:"toggle"},t={chevronIcon:"chevron-icon",content:"content",iconStart:"icon--start",iconEnd:"icon--end",invalid:"invalid",sectionHeaderText:"section-header__text",statusIcon:"status-icon",switch:"switch",toggle:"toggle",toggleContainer:"toggle-container",toggleSwitchContent:"toggle--switch__content",toggleSwitchText:"toggle--switch__text",valid:"valid"},p={menuExpanded:"chevron-up",menuCollapsed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},I=x`:host{box-sizing:border-box;display:block;color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2))}:host([expanded]){border-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm);border-style:solid;border-block-end-color:var(--calcite-block-section-border-color, var(--calcite-color-border-3))}:host([expanded]) .toggle{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([expanded]) .toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([expanded]) .icon--end,:host([expanded]) .icon--start{color:var(--calcite-block-section-text-color, var(--calcite-color-text-1))}:host([expanded]) .chevron-icon{color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}:host([expanded]) .chevron-icon:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}:host([expanded]) .toggle-container:hover calcite-switch{--calcite-switch-background-color: var(--calcite-color-brand-hover)}:host(:last-child){border-block-end-width:var(--calcite-border-width-none)}:host([scale=s]) .toggle{padding-block:var(--calcite-spacing-xxs);gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm)}:host([scale=s]) .content{padding-block:var(--calcite-block-section-content-space, var(--calcite-spacing-xxs))}:host([scale=m]) .toggle{padding-block:var(--calcite-spacing-sm);gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size)}:host([scale=m]) .content{padding-block:var(--calcite-block-section-content-space, var(--calcite-spacing-sm))}:host([scale=l]) .toggle{padding-block:var(--calcite-spacing-md);gap:var(--calcite-spacing-lg);font-size:var(--calcite-font-size-md)}:host([scale=l]) .content{padding-block:var(--calcite-block-section-content-space, var(--calcite-spacing-md))}.toggle{outline-color:transparent;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;inline-size:100%;border-width:var(--calcite-border-width-none);font-family:inherit;color:var(--calcite-block-section-header-text-color, var(--calcite-color-text-2));background-color:var(--calcite-block-section-background-color, var(--calcite-color-foreground-1));font-weight:var(--calcite-font-weight-regular);padding-inline:0;line-height:var(--calcite-font-line-height-relative-snug)}.toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));z-index:var(--calcite-z-index)}.toggle:hover{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.section-header__text{margin-block:0;flex:1 1 auto;text-align:initial;overflow-wrap:anywhere}.toggle-container{display:flex;align-items:center;position:relative;word-break:break-word}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-block-section-text-color, var(--calcite-color-text-3))}.toggle-container:hover .chevron-icon{color:var(--calcite-block-section-text-color-hover, var(--calcite-color-text-1))}.toggle-container:hover calcite-switch{--calcite-switch-background-color: var(--calcite-color-text-3)}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}`,v=class extends b{constructor(){super(...arguments),this.messages=y(),this.focusSetter=S()(this),this.defaultSlotHasElements=!1,this.expanded=!1,this.scale="m",this.toggleDisplay="button",this.calciteBlockSectionCollapse=d({cancelable:!1}),this.calciteBlockSectionExpand=d({cancelable:!1}),this.calciteBlockSectionToggle=d({cancelable:!1})}static{this.properties={defaultSlotHasElements:[16,{},{state:!0}],expanded:[7,{},{reflect:!0,type:Boolean}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],open:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],text:1,toggleDisplay:[3,{},{reflect:!0}]}}static{this.styles=I}get open(){return this.expanded}set open(e){m.deprecated("property",{component:this,name:"open",removalVersion:5,suggested:"expanded"}),this.expanded=e}async setFocus(e){return this.focusSetter(()=>this.el,e)}willUpdate(e){e.has("expanded")&&this.hasUpdated&&(this.expanded?this.calciteBlockSectionExpand.emit():this.calciteBlockSectionCollapse.emit())}handleHeaderKeyDown(e){E(e.key)&&(this.toggleSection(),e.preventDefault(),e.stopPropagation())}toggleSection(){this.expanded=!this.expanded,this.calciteBlockSectionToggle.emit()}handleDefaultSlot(e){this.defaultSlotHasElements=w(e)}renderStatusIcon(){let{status:e}=this,c=e&&p[e],a={[t.statusIcon]:!0,[t.valid]:e=="valid",[t.invalid]:e=="invalid"};return c?l`<calcite-icon class=${o(a)} .icon=${c} .scale=${g(this.scale)}></calcite-icon>`:null}renderIcon(e){let{iconFlipRtl:c,iconStart:a,iconEnd:n}=this;if((e==="start"?a:n)===void 0)return null;let s=c==="both"||c==="start",h=c==="both"||c==="end",r=e==="start";return $(r?a:n,l`<calcite-icon class=${o(r?t.iconStart:t.iconEnd)} .flipRtl=${r?s:h} .icon=${r?a:n} .scale=${g(this.scale)}></calcite-icon>`)}render(){let{messages:e,expanded:c,text:a,toggleDisplay:n}=this,u=c?p.menuExpanded:p.menuCollapsed,s=c?e.collapse:e.expand,h=n==="switch"?l`<div class=${o({[t.toggleContainer]:!0})}><div aria-controls=${i.content} .ariaExpanded=${c} class=${o({[t.toggle]:!0})} id=${i.toggle} @click=${this.toggleSection} @keydown=${this.handleHeaderKeyDown} role=button tabindex=0 title=${s??f}>${this.renderIcon("start")}<div class=${o(t.toggleSwitchContent)}><span class=${o(t.toggleSwitchText)}>${a}</span></div>${this.renderIcon("end")}${this.renderStatusIcon()}<calcite-switch .checked=${c} class=${o(t.switch)} inert .label=${s} .scale=${this.scale}></calcite-switch></div></div>`:l`<div class=${o({[t.toggleContainer]:!0})}><button aria-controls=${i.content} .ariaExpanded=${c} class=${o({[t.toggle]:!0})} id=${i.toggle} @click=${this.toggleSection}>${this.renderIcon("start")}<span class=${o(t.sectionHeaderText)}>${a}</span>${this.renderIcon("end")}${this.renderStatusIcon()}<calcite-icon class=${o(t.chevronIcon)} .icon=${u} .scale=${g(this.scale)}></calcite-icon></button></div>`;return l`${h}<section aria-labelledby=${i.toggle} class=${o({[t.content]:this.defaultSlotHasElements})} .hidden=${!c} id=${i.content}><slot @slotchange=${this.handleDefaultSlot}></slot></section>`}};k("calcite-block-section",v);export{v as BlockSection};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ function h(r,t,{signal:o,edges:e}={}){let i,n=null,p=e!=null&&e.includes("leading"),a=e==null||e.includes("trailing"),m=()=>{n!==null&&(r.apply(i,n),i=void 0,n=null)},c=()=>{a&&m(),l()},f=null,s=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,c()},t)},u=()=>{f!==null&&(clearTimeout(f),f=null)},l=()=>{u(),i=void 0,n=null},Y=()=>{m()},d=function(...rr){if(o?.aborted)return;i=this,n=rr;let tr=f==null;s(),p&&tr&&m()};return d.schedule=s,d.cancel=l,d.flush=Y,o?.addEventListener("abort",l,{once:!0}),d}function or(r,t,{signal:o,edges:e=["leading","trailing"]}={}){let i=null,n=h(function(...a){i=Date.now(),r.apply(this,a)},t,{signal:o,edges:e}),p=function(...a){if(i==null&&(i=Date.now()),Date.now()-i>=t){i=Date.now(),r.apply(this,a),n.cancel(),n.schedule();return}n.apply(this,a)};return p.cancel=n.cancel,p.flush=n.flush,p}function x(){}function T(r){return Object.getOwnPropertySymbols(r).filter(t=>Object.prototype.propertyIsEnumerable.call(r,t))}function j(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}var B="[object RegExp]",S="[object String]",v="[object Number]",E="[object Boolean]";var W="[object Symbol]",N="[object Date]",C="[object Map]",I="[object Set]",R="[object Array]",U="[object Function]",z="[object ArrayBuffer]",b="[object Object]",D="[object Error]",P="[object DataView]",F="[object Uint8Array]",K="[object Uint8ClampedArray]",M="[object Uint16Array]",k="[object Uint32Array]",L="[object BigUint64Array]",q="[object Int8Array]",J="[object Int16Array]",V="[object Int32Array]",Z="[object BigInt64Array]",_="[object Float32Array]",$="[object Float64Array]";var A=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function w(r){return typeof A.Buffer<"u"&&A.Buffer.isBuffer(r)}function O(r){if(!r||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(r)==="[object Object]":!1}function G(r,t){return r===t||Number.isNaN(r)&&Number.isNaN(t)}function H(r,t,o){return g(r,t,void 0,void 0,void 0,void 0,o)}function g(r,t,o,e,i,n,p){let a=p(r,t,o,e,i,n);if(a!==void 0)return a;if(typeof r==typeof t)switch(typeof r){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return r===t;case"number":return r===t||Object.is(r,t);case"function":return r===t;case"object":return y(r,t,n,p)}return y(r,t,n,p)}function y(r,t,o,e){if(Object.is(r,t))return!0;let i=j(r),n=j(t);if(i==="[object Arguments]"&&(i=b),n==="[object Arguments]"&&(n=b),i!==n)return!1;switch(i){case S:return r.toString()===t.toString();case v:return G(r.valueOf(),t.valueOf());case E:case N:case W:return Object.is(r.valueOf(),t.valueOf());case B:return r.source===t.source&&r.flags===t.flags;case U:return r===t}o=o??new Map;let p=o.get(r),a=o.get(t);if(p!=null&&a!=null)return p===t;o.set(r,t),o.set(t,r);try{switch(i){case C:if(r.size!==t.size)return!1;for(let[m,c]of r.entries())if(!t.has(m)||!g(c,t.get(m),m,r,t,o,e))return!1;return!0;case I:{if(r.size!==t.size)return!1;let m=Array.from(r.values()),c=Array.from(t.values());for(let f=0;f<m.length;f++){let s=m[f],u=c.findIndex(l=>g(s,l,void 0,r,t,o,e));if(u===-1)return!1;c.splice(u,1)}return!0}case R:case F:case K:case M:case k:case L:case q:case J:case V:case Z:case _:case $:if(w(r)!==w(t)||r.length!==t.length)return!1;for(let m=0;m<r.length;m++)if(!g(r[m],t[m],m,r,t,o,e))return!1;return!0;case z:return r.byteLength!==t.byteLength?!1:y(new Uint8Array(r),new Uint8Array(t),o,e);case P:return r.byteLength!==t.byteLength||r.byteOffset!==t.byteOffset?!1:y(new Uint8Array(r),new Uint8Array(t),o,e);case D:return r.name===t.name&&r.message===t.message;case b:{if(!(y(r.constructor,t.constructor,o,e)||O(r)&&O(t)))return!1;let m=[...Object.keys(r),...T(r)],c=[...Object.keys(t),...T(t)];if(m.length!==c.length)return!1;for(let f=0;f<m.length;f++){let s=m[f],u=r[s];if(!Object.hasOwn(t,s))return!1;let l=t[s];if(!g(u,l,s,r,t,o,e))return!1}return!0}default:return!1}}finally{o.delete(r),o.delete(t)}}function er(r,t){return H(r,t,x)}function Q(r,t){if(t===void 0)return r.trimEnd();let o=r.length;switch(typeof t){case"string":if(t.length!==1)throw new Error("The 'chars' parameter should be a single character string.");for(;o>0&&r[o-1]===t;)o--;break;case"object":for(;o>0&&t.includes(r[o-1]);)o--}return r.substring(0,o)}function X(r,t){if(t===void 0)return r.trimStart();let o=0;switch(typeof t){case"string":if(t.length!==1)throw new Error("The 'chars' parameter should be a single character string.");for(;o<r.length&&r[o]===t;)o++;break;case"object":for(;o<r.length&&t.includes(r[o]);)o++}return r.substring(o)}function ir(r,t){return t===void 0?r.trim():X(Q(r,t),t)}function Rr(r){return r}function mr(r,t){let o={...r};for(let e=0;e<t.length;e++){let i=t[e];delete o[i]}return o}function Dr(r){return r.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}export{h as a,Rr as b,or as c,mr as d,er as e,Dr as f,ir as g};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{d as a}from"./C4WP5EBM.js";import{a as S}from"./QIC3CEGW.js";import"./VUYX7MNO.js";import{a as u}from"./GLOG663K.js";import"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import{C as l,y as f}from"./7FW2RVVH.js";import{E as h,F as d,G as p,T as m,g as o,h as n,p as r}from"./MVBSHQ6D.js";var y=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{display:flex}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:.25rem}:host([scale=l]) .container{gap:.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends p{constructor(){super(),this.items=[],this.slotRef=h(),this.focusSetter=u()(this),this.interactiveContainer=S(this),this.disabled=!1,this.scale="m",this.selectedItems=[],this.selectionMode="none",this.calciteChipGroupSelect=r({cancelable:!1}),this.listen("keydown",this.keyDownHandler),this.listen("calciteChipClose",this.calciteChipCloseListener),this.listen("calciteChipSelect",this.calciteChipSelectListener),this.listen("calciteInternalChipSelect",this.calciteInternalChipSelectListener),this.listen("calciteInternalSyncSelectedChips",this.calciteInternalSyncSelectedChips)}static{this.properties={disabled:[7,{},{reflect:!0,type:Boolean}],label:1,scale:[3,{},{reflect:!0}],selectedItems:[0,{},{attribute:!1}],selectionMode:[3,{},{reflect:!0}]}}static{this.styles=y}async setFocus(e){return this.focusSetter(()=>this.selectedItems[0]||this.items[0],e)}willUpdate(e){(e.has("scale")||e.has("selectionMode"))&&(this.hasUpdated||this.selectionMode!=="none")&&this.updateItems()}keyDownHandler(e){let t={ArrowRight:"next",ArrowLeft:"previous",Home:"first",End:"last"}[e.key];if(e.defaultPrevented||!t)return;let i=e.composedPath().find(a);if(!i||!this.items.includes(i))return;let I=this.items.filter(g=>!g.disabled);l(I,i,t,!0,!0,!0)}calciteChipCloseListener(e){let s=e.target;this.items?.includes(s)&&(this.items?.indexOf(s)>0?l(this.items,s,"previous",!1,!1):this.items?.indexOf(s)===0?l(this.items,s,"next",!1,!1):l(this.items,s,"first",!1,!1)),this.items=this.items.filter(t=>t!==s),e.stopPropagation()}calciteChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!0,e.target),e.stopPropagation()}calciteInternalChipSelectListener(e){e.composedPath().includes(this.el)&&this.setSelectedItems(!1,e.target),e.stopPropagation()}calciteInternalSyncSelectedChips(e){e.composedPath().includes(this.el)&&(this.updateSelectedItems(),this.selectionMode==="single"&&this.selectedItems.length>1&&this.setSelectedItems(!1,e.target)),e.stopPropagation()}updateItems(e){let s=this.slotRef.value?.assignedElements({flatten:!0}).filter(a)||[];this.items=e?f(e):s,!(this.items?.length<1)&&(this.items?.forEach(t=>{t.interactive=!0,t.scale=this.scale,t.selectionMode=this.selectionMode,t.parentChipGroup=this.el}),this.setSelectedItems(!1))}updateSelectedItems(){this.selectedItems=this.items.filter(e=>e.selected)}setSelectedItems(e,s){s&&this.items?.forEach(t=>{let i=s===t;switch(this.selectionMode){case"multiple":i&&(t.selected=!t.selected);break;case"single":t.selected=i?!t.selected:!1;break;case"single-persist":t.selected=!!i;break}}),this.updateSelectedItems(),e&&this.calciteChipGroupSelect.emit()}render(){let e=this.selectionMode==="none"||this.selectionMode==="multiple"?"group":"radiogroup",{disabled:s}=this;return this.interactiveContainer({disabled:s,children:n`<div .ariaLabel=${this.label} class="container" .role=${e}><slot @slotchange=${this.updateItems} ${d(this.slotRef)}></slot></div>`})}};m("calcite-chip-group",c);export{c as ChipGroup};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as p}from"./EFKVMB36.js";import{d as C}from"./GV6LQKJ5.js";import{e as x}from"./UKNZDAOR.js";import{d as R}from"./QFLQKRZ2.js";import{a as i}from"./BMWPV4UK.js";import"./VUYX7MNO.js";import{H as S,x as d,y as c}from"./3QPETC2U.js";import{C as f,D as b,E as w,F as h,R as B,g as $,h as l}from"./Y2ZDHAX5.js";var y=$`: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{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}.main.has-resizable-panel-top ::slotted(calcite-panel){border-block-start:none}.main.has-resizable-panel-bottom ::slotted(calcite-panel){border-block-end:none}.main.has-action-bar-position-panel ::slotted(calcite-panel){border:0}:host([hidden]){display:none}[hidden]{display:none}`,o={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",hasActionBarPositionPanel:"has-action-bar-position-panel",hasResizablePanelBottom:"has-resizable-panel-bottom",hasResizablePanelTop:"has-resizable-panel-top",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},r={panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",dialogs:"dialogs"},g=["panel-start","panel-end","panel-top","panel-bottom"],z=class extends w{constructor(){super(),this.defaultSlotRef=f(),this.panelBottomSlotRef=f(),this.panelEndSlotRef=f(),this.panelStartSlotRef=f(),this.panelTopSlotRef=f(),this.panelSlotState={"panel-start":{elements:[],resizable:!1},"panel-end":{elements:[],resizable:!1},"panel-top":{elements:[],resizable:!1},"panel-bottom":{elements:[],resizable:!1}},this.hasAlerts=!1,this.hasDialogs=!1,this.hasFooter=!1,this.hasHeader=!1,this.hasActionBarPositionPanel=!1,this.hasOnlyPanelBottom=!1,this.hasPanelBottom=!1,this.hasPanelTop=!1,this.hasResizablePanelBottom=!1,this.hasResizablePanelTop=!1,this.hasSheets=!1,this.panelIsResizing=!1,this.contentBehind=!1,this.listen("calciteInternalShellPanelResizeStart",this.handleCalciteInternalShellPanelResizeStart),this.listen("calciteInternalShellPanelResizeEnd",this.handleCalciteInternalShellPanelResizeEnd),this.listen("calciteInternalShellPanelResizableChange",this.handleCalciteInternalShellPanelResizableChange),this.listen("calciteInternalShellPanelActionBarPositionChange",this.handleCalciteInternalShellPanelActionBarPositionChange)}static{this.properties={hasAlerts:[16,{},{state:!0}],hasDialogs:[16,{},{state:!0}],hasFooter:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],hasActionBarPositionPanel:[16,{},{state:!0}],hasOnlyPanelBottom:[16,{},{state:!0}],hasPanelBottom:[16,{},{state:!0}],hasPanelTop:[16,{},{state:!0}],hasResizablePanelBottom:[16,{},{state:!0}],hasResizablePanelTop:[16,{},{state:!0}],hasSheets:[16,{},{state:!0}],panelIsResizing:[16,{},{state:!0}],contentBehind:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=y}willUpdate(e){(e.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||e.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizableChange(e){let t=e.composedPath().find(p);t?.slot&&g.includes(t.slot)&&this.updateResizableSlotState(t.slot),e.stopPropagation()}handleCalciteInternalShellPanelActionBarPositionChange(e){let t=e.composedPath().find(p);t?.slot&&g.includes(t.slot)&&this.updateResizableSlotState(t.slot),e.stopPropagation()}handleCalciteInternalShellPanelResizeStart(e){this.panelIsResizing=!0,e.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(e){this.panelIsResizing=!1,e.stopPropagation()}handleHeaderSlotChange(e){this.hasHeader=!!d(e)}handleFooterSlotChange(e){this.hasFooter=!!d(e)}handleAlertsSlotChange(e){this.hasAlerts=!!d(e),c(e).filter(R).forEach(t=>{t.embedded=!0})}handleSheetsSlotChange(e){this.hasSheets=!!d(e),c(e).filter(C).forEach(t=>{t.embedded=!0})}configurePanels(e,t,n){e.forEach(a=>{let s=a;a.layout=t,a.position=n,s.shellSizingDataProvider=m=>this.getShellPanelSizingData(a,m)})}getDefaultSlotMinSize(e){return this.defaultSlotRef.value?.assignedElements({flatten:!0}).reduce((t,n)=>{let a=window.getComputedStyle(n);return e==="inline"?t+S(a.borderInlineStartWidth)+S(a.borderInlineEndWidth):t+S(a.borderBlockStartWidth)+S(a.borderBlockEndWidth)},0)??0}getDefaultSlotBounds(){let e=this.defaultSlotRef.value?.assignedElements({flatten:!0})??[];return e.length?e.reduce((t,n)=>{let a=n.getBoundingClientRect();return t?{bottom:Math.max(t.bottom,a.bottom),left:Math.min(t.left,a.left),right:Math.max(t.right,a.right),top:Math.min(t.top,a.top)}:{bottom:a.bottom,left:a.left,right:a.right,top:a.top}},null):null}getShellPanelSizingData(e,t){let n=e.assignedSlot?.parentElement;if(!n)return null;let a=n.getBoundingClientRect(),s=this.getDefaultSlotBounds();if(!s)return{availableSize:t==="inline"?a.width:a.height};let m=this.getDefaultSlotMinSize(t),P=window.getComputedStyle(this).direction==="rtl",u;if(t==="inline"){let v=e.position==="start";u=P?v?a.right-s.left:s.right-a.left:v?s.right-a.left:a.right-s.left}else u=e.position==="start"?s.bottom-a.top:a.bottom-s.top;return{availableSize:Math.max(Math.floor(u)-Math.ceil(m),0)}}handlePanelTopChange(e){let t=c(e).filter(p);this.hasPanelTop=d(e),this.configurePanels(t,"horizontal","start"),t.forEach(n=>{n.layout="horizontal",n.position="start"}),this.updateResizableSlotState("panel-top",t)}handlePanelBottomChange(e){let t=c(e).filter(p);this.hasPanelBottom=d(e),this.configurePanels(t,"horizontal","end"),t.forEach(n=>{n.layout="horizontal",n.position="end"}),this.updateResizableSlotState("panel-bottom",t)}handlePanelStartChange(e){let t=c(e).filter(p);this.configurePanels(t,"vertical","start"),t.forEach(n=>{n.layout="vertical",n.position="start"}),this.updateResizableSlotState("panel-start",t)}handlePanelEndChange(e){let t=c(e).filter(p);this.configurePanels(t,"vertical","end"),t.forEach(n=>{n.layout="vertical",n.position="end"}),this.updateResizableSlotState("panel-end",t)}handleDialogsSlotChange(e){this.hasDialogs=!!d(e),c(e).filter(x).forEach(t=>{t.embedded=!0})}updateResizableSlotState(e,t=this.panelSlotState[e].elements){this.panelSlotState[e]={elements:t,resizable:t.some(n=>n.resizable)},this.syncResizableState(),this.syncActionBarPositionPanelState()}syncActionBarPositionPanelState(){this.hasActionBarPositionPanel=g.some(e=>this.panelSlotState[e].elements.some(t=>!!t.actionBarPosition))}syncResizableState(){this.hasResizablePanelBottom=this.panelSlotState["panel-bottom"].resizable,this.hasResizablePanelTop=this.panelSlotState["panel-top"].resizable}renderHeader(){return l`<div .hidden=${!this.hasHeader}>${i("header",l`<slot name=${r.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return i("footer",l`<div class=${h(o.footer)} .hidden=${!this.hasFooter}><slot name=${r.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return l`<div .hidden=${!this.hasAlerts}>${i("alerts",l`<slot name=${r.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return l`<div .hidden=${!this.hasSheets}>${i("sheets",l`<slot name=${r.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderDialogs(){return l`<div .hidden=${!this.hasDialogs}>${i("dialogs",l`<slot name=${r.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:e}=this,t=i("default-slot",l`<slot ${b(this.defaultSlotRef)}></slot>`),n=e?l`<div class=${h(o.contentNonInteractive)}>${t}</div>`:t,a=i("panel-bottom-slot",l`<slot name=${r.panelBottom} @slotchange=${this.handlePanelBottomChange} ${b(this.panelBottomSlotRef)}></slot>`),s=i("panel-top-slot",l`<slot name=${r.panelTop} @slotchange=${this.handlePanelTopChange} ${b(this.panelTopSlotRef)}></slot>`),m="content-container";return this.contentBehind?[i(m,l`<div class=${h({[o.content]:!0,[o.contentBehind]:!0})}>${n}</div>`),l`<div class=${h({[o.contentBehindCenterContent]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${s}${a}</div>`]:[i(m,l`<div class=${h({[o.content]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${s}${n}${a}</div>`)]}renderMain(){return l`<div class=${h({[o.main]:!0,[o.hasActionBarPositionPanel]:this.hasActionBarPositionPanel,[o.hasResizablePanelBottom]:this.hasResizablePanelBottom,[o.hasResizablePanelTop]:this.hasResizablePanelTop})}><slot name=${r.panelStart} @slotchange=${this.handlePanelStartChange} ${b(this.panelStartSlotRef)}></slot>${this.renderContent()}<slot name=${r.panelEnd} @slotchange=${this.handlePanelEndChange} ${b(this.panelEndSlotRef)}></slot></div>`}renderPositionedSlots(){return l`<div class=${h(o.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return l`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};B("calcite-shell",z);export{z as Shell};
2
+ import{d as p}from"./EFKVMB36.js";import{d as C}from"./GV6LQKJ5.js";import{e as x}from"./UKNZDAOR.js";import{d as R}from"./QFLQKRZ2.js";import{a as i}from"./AG2RXIA6.js";import"./VUYX7MNO.js";import{H as S,x as d,y as c}from"./7FW2RVVH.js";import{E as f,F as b,G as w,H as h,T as B,g as $,h as l}from"./MVBSHQ6D.js";var y=$`: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{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}.main.has-resizable-panel-top ::slotted(calcite-panel){border-block-start:none}.main.has-resizable-panel-bottom ::slotted(calcite-panel){border-block-end:none}.main.has-action-bar-position-panel ::slotted(calcite-panel){border:0}:host([hidden]){display:none}[hidden]{display:none}`,o={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",hasActionBarPositionPanel:"has-action-bar-position-panel",hasResizablePanelBottom:"has-resizable-panel-bottom",hasResizablePanelTop:"has-resizable-panel-top",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},r={panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",dialogs:"dialogs"},g=["panel-start","panel-end","panel-top","panel-bottom"],z=class extends w{constructor(){super(),this.defaultSlotRef=f(),this.panelBottomSlotRef=f(),this.panelEndSlotRef=f(),this.panelStartSlotRef=f(),this.panelTopSlotRef=f(),this.panelSlotState={"panel-start":{elements:[],resizable:!1},"panel-end":{elements:[],resizable:!1},"panel-top":{elements:[],resizable:!1},"panel-bottom":{elements:[],resizable:!1}},this.hasAlerts=!1,this.hasDialogs=!1,this.hasFooter=!1,this.hasHeader=!1,this.hasActionBarPositionPanel=!1,this.hasOnlyPanelBottom=!1,this.hasPanelBottom=!1,this.hasPanelTop=!1,this.hasResizablePanelBottom=!1,this.hasResizablePanelTop=!1,this.hasSheets=!1,this.panelIsResizing=!1,this.contentBehind=!1,this.listen("calciteInternalShellPanelResizeStart",this.handleCalciteInternalShellPanelResizeStart),this.listen("calciteInternalShellPanelResizeEnd",this.handleCalciteInternalShellPanelResizeEnd),this.listen("calciteInternalShellPanelResizableChange",this.handleCalciteInternalShellPanelResizableChange),this.listen("calciteInternalShellPanelActionBarPositionChange",this.handleCalciteInternalShellPanelActionBarPositionChange)}static{this.properties={hasAlerts:[16,{},{state:!0}],hasDialogs:[16,{},{state:!0}],hasFooter:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],hasActionBarPositionPanel:[16,{},{state:!0}],hasOnlyPanelBottom:[16,{},{state:!0}],hasPanelBottom:[16,{},{state:!0}],hasPanelTop:[16,{},{state:!0}],hasResizablePanelBottom:[16,{},{state:!0}],hasResizablePanelTop:[16,{},{state:!0}],hasSheets:[16,{},{state:!0}],panelIsResizing:[16,{},{state:!0}],contentBehind:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=y}willUpdate(e){(e.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||e.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizableChange(e){let t=e.composedPath().find(p);t?.slot&&g.includes(t.slot)&&this.updateResizableSlotState(t.slot),e.stopPropagation()}handleCalciteInternalShellPanelActionBarPositionChange(e){let t=e.composedPath().find(p);t?.slot&&g.includes(t.slot)&&this.updateResizableSlotState(t.slot),e.stopPropagation()}handleCalciteInternalShellPanelResizeStart(e){this.panelIsResizing=!0,e.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(e){this.panelIsResizing=!1,e.stopPropagation()}handleHeaderSlotChange(e){this.hasHeader=!!d(e)}handleFooterSlotChange(e){this.hasFooter=!!d(e)}handleAlertsSlotChange(e){this.hasAlerts=!!d(e),c(e).filter(R).forEach(t=>{t.embedded=!0})}handleSheetsSlotChange(e){this.hasSheets=!!d(e),c(e).filter(C).forEach(t=>{t.embedded=!0})}configurePanels(e,t,n){e.forEach(a=>{let s=a;a.layout=t,a.position=n,s.shellSizingDataProvider=m=>this.getShellPanelSizingData(a,m)})}getDefaultSlotMinSize(e){return this.defaultSlotRef.value?.assignedElements({flatten:!0}).reduce((t,n)=>{let a=window.getComputedStyle(n);return e==="inline"?t+S(a.borderInlineStartWidth)+S(a.borderInlineEndWidth):t+S(a.borderBlockStartWidth)+S(a.borderBlockEndWidth)},0)??0}getDefaultSlotBounds(){let e=this.defaultSlotRef.value?.assignedElements({flatten:!0})??[];return e.length?e.reduce((t,n)=>{let a=n.getBoundingClientRect();return t?{bottom:Math.max(t.bottom,a.bottom),left:Math.min(t.left,a.left),right:Math.max(t.right,a.right),top:Math.min(t.top,a.top)}:{bottom:a.bottom,left:a.left,right:a.right,top:a.top}},null):null}getShellPanelSizingData(e,t){let n=e.assignedSlot?.parentElement;if(!n)return null;let a=n.getBoundingClientRect(),s=this.getDefaultSlotBounds();if(!s)return{availableSize:t==="inline"?a.width:a.height};let m=this.getDefaultSlotMinSize(t),P=window.getComputedStyle(this).direction==="rtl",u;if(t==="inline"){let v=e.position==="start";u=P?v?a.right-s.left:s.right-a.left:v?s.right-a.left:a.right-s.left}else u=e.position==="start"?s.bottom-a.top:a.bottom-s.top;return{availableSize:Math.max(Math.floor(u)-Math.ceil(m),0)}}handlePanelTopChange(e){let t=c(e).filter(p);this.hasPanelTop=d(e),this.configurePanels(t,"horizontal","start"),t.forEach(n=>{n.layout="horizontal",n.position="start"}),this.updateResizableSlotState("panel-top",t)}handlePanelBottomChange(e){let t=c(e).filter(p);this.hasPanelBottom=d(e),this.configurePanels(t,"horizontal","end"),t.forEach(n=>{n.layout="horizontal",n.position="end"}),this.updateResizableSlotState("panel-bottom",t)}handlePanelStartChange(e){let t=c(e).filter(p);this.configurePanels(t,"vertical","start"),t.forEach(n=>{n.layout="vertical",n.position="start"}),this.updateResizableSlotState("panel-start",t)}handlePanelEndChange(e){let t=c(e).filter(p);this.configurePanels(t,"vertical","end"),t.forEach(n=>{n.layout="vertical",n.position="end"}),this.updateResizableSlotState("panel-end",t)}handleDialogsSlotChange(e){this.hasDialogs=!!d(e),c(e).filter(x).forEach(t=>{t.embedded=!0})}updateResizableSlotState(e,t=this.panelSlotState[e].elements){this.panelSlotState[e]={elements:t,resizable:t.some(n=>n.resizable)},this.syncResizableState(),this.syncActionBarPositionPanelState()}syncActionBarPositionPanelState(){this.hasActionBarPositionPanel=g.some(e=>this.panelSlotState[e].elements.some(t=>!!t.actionBarPosition))}syncResizableState(){this.hasResizablePanelBottom=this.panelSlotState["panel-bottom"].resizable,this.hasResizablePanelTop=this.panelSlotState["panel-top"].resizable}renderHeader(){return l`<div .hidden=${!this.hasHeader}>${i("header",l`<slot name=${r.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return i("footer",l`<div class=${h(o.footer)} .hidden=${!this.hasFooter}><slot name=${r.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return l`<div .hidden=${!this.hasAlerts}>${i("alerts",l`<slot name=${r.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return l`<div .hidden=${!this.hasSheets}>${i("sheets",l`<slot name=${r.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderDialogs(){return l`<div .hidden=${!this.hasDialogs}>${i("dialogs",l`<slot name=${r.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:e}=this,t=i("default-slot",l`<slot ${b(this.defaultSlotRef)}></slot>`),n=e?l`<div class=${h(o.contentNonInteractive)}>${t}</div>`:t,a=i("panel-bottom-slot",l`<slot name=${r.panelBottom} @slotchange=${this.handlePanelBottomChange} ${b(this.panelBottomSlotRef)}></slot>`),s=i("panel-top-slot",l`<slot name=${r.panelTop} @slotchange=${this.handlePanelTopChange} ${b(this.panelTopSlotRef)}></slot>`),m="content-container";return this.contentBehind?[i(m,l`<div class=${h({[o.content]:!0,[o.contentBehind]:!0})}>${n}</div>`),l`<div class=${h({[o.contentBehindCenterContent]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${s}${a}</div>`]:[i(m,l`<div class=${h({[o.content]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${s}${n}${a}</div>`)]}renderMain(){return l`<div class=${h({[o.main]:!0,[o.hasActionBarPositionPanel]:this.hasActionBarPositionPanel,[o.hasResizablePanelBottom]:this.hasResizablePanelBottom,[o.hasResizablePanelTop]:this.hasResizablePanelTop})}><slot name=${r.panelStart} @slotchange=${this.handlePanelStartChange} ${b(this.panelStartSlotRef)}></slot>${this.renderContent()}<slot name=${r.panelEnd} @slotchange=${this.handlePanelEndChange} ${b(this.panelEndSlotRef)}></slot></div>`}renderPositionedSlots(){return l`<div class=${h(o.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return l`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};B("calcite-shell",z);export{z as Shell};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{g as e}from"./Y2ZDHAX5.js";var i=e`.screen-reader-text{position:absolute;inline-size:var(--calcite-border-width-sm);block-size:var(--calcite-border-width-sm);padding:0;margin:calc(-1 * var(--calcite-border-width-sm));overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;export{i as a};
2
+ import{g as e}from"./MVBSHQ6D.js";var i=e`.screen-reader-text{position:absolute;inline-size:var(--calcite-border-width-sm);block-size:var(--calcite-border-width-sm);padding:0;margin:calc(-1 * var(--calcite-border-width-sm));overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`;export{i as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as S}from"./WHATFPZE.js";import{a as F}from"./SCBQXABR.js";import{c as O}from"./ULABJEH5.js";import{a as q}from"./DKJI4BME.js";import{a as T}from"./HZN3ZVDR.js";import{a as z}from"./QIC3CEGW.js";import{a as I}from"./T6CCMW7H.js";import{a as C}from"./SN2OQZA6.js";import{a as L}from"./GLOG663K.js";import"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import"./7FW2RVVH.js";import{D as $,G as x,H as s,I as k,J as c,L as w,T as V,g as f,h as n,p as y}from"./MVBSHQ6D.js";var E=({full:g,scale:e,partial:t})=>n`<calcite-icon class=${s(t?void 0:"icon")} .icon=${g?"star-f":"star"} .scale=${e}></calcite-icon>`,l={fieldSet:"fieldset",star:"star",fraction:"fraction",numberAverage:"number--average",numberCount:"number--count",wrapper:"wrapper",visuallyHidden:"visually-hidden"},A="calcite-ratings",p={validationMessage:"validationMessage",host:g=>`${A}-${g}`},D=f`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([read-only]) *,:host([disabled]) *,:host([read-only]) ::slotted(*),:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;align-items:center;inline-size:fit-content}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){min-block-size:var(--calcite-space-2xl);--calcite-internal-rating-spacing: .25rem}:host([scale=m]){min-block-size:var(--calcite-space-3xl);--calcite-internal-rating-spacing: .5rem}:host([scale=l]){min-block-size:var(--calcite-space-4xl);--calcite-internal-rating-spacing: .75rem}.fieldset{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.wrapper{display:inline-block}.star{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-rating-color, var(--calcite-color-border-input))}.star:hover{color:var(--calcite-rating-color-hover, var(--calcite-color-brand-hover))}.star:active{color:var(--calcite-rating-color-press, var(--calcite-color-brand-press))}.star:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.average,.fraction{color:var(--calcite-rating-average-color, var(--calcite-color-status-warning))}.hovered,.selected{color:var(--calcite-rating-color, var(--calcite-color-brand))}.fraction{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}calcite-chip{pointer-events:none;cursor:default}.number--average{font-weight:700;color:var(--calcite-rating-average-text-color)}.number--count{color:var(--calcite-rating-count-text-color, var(--calcite-color-text-2));font-style:italic}.number--count:not(:first-child){margin-inline-start:var(--calcite-rating-spacing, var(--calcite-internal-rating-spacing))}.visually-hidden{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([hidden]){display:none}[hidden]{display:none}`,b=class extends x{constructor(){super(),this.emit=!1,this.formSupport=O({inputType:"number",getValue:()=>this.value===0?"":this.value})(this),this.guid=p.host(I()),this.isKeyboardInteraction=!0,this.labelElements=[],this.max=5,this._value=0,this.messages=C({blocking:!0}),this.focusSetter=L()(this),this.interactiveContainer=z(this),this.disabled=!1,this.readOnly=!1,this.required=!1,this.scale="m",this.showChip=!1,this.status="idle",this.calciteRatingChange=y({cancelable:!1}),T(this),this.listen("keydown",this.handleHostKeyDown),this.listen("pointerout",this.handleRatingPointerOut),this.listen("pointerover",this.handleRatingPointerOver)}static{this.properties={hoverValue:[16,{},{state:!0}],average:[11,{},{reflect:!0,type:Number}],count:[11,{},{reflect:!0,type:Number}],disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],labelText:1,messageOverrides:[0,{},{attribute:!1}],name:[3,{},{reflect:!0}],readOnly:[7,{},{reflect:!0,type:Boolean}],required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],showChip:[7,{},{reflect:!0,type:Boolean}],status:[3,{},{reflect:!0}],validationIcon:[3,{converter:w},{reflect:!0}],validationMessage:1,validity:[32,{},{readOnly:!0,attribute:!1}],value:[11,{},{reflect:!0,type:Number}]}}static{this.formAssociated=!0}static{this.styles=D}get value(){return this._value}set value(e){let t=this._value;e!==t&&(this._value=e,this.hasUpdated&&this.handleValueUpdate(e))}async setFocus(e){return this.focusSetter(()=>this.el,e)}async load(){this.requestUpdate("value")}willUpdate(){this.starsMap=Array.from({length:this.max},(e,t)=>{let a=t+1,i=this.hoverValue??0,r=i>0,o=this.average!=null,h=this.average??0,v=!r&&o&&!this.value&&a<=h,d=a===this.value,u=o?h+1-a:0,m=r&&a<=i,N=`${this.guid}-${a}`,R=!r&&!this.value&&o&&!m&&u>0&&u<1,M=this.value>=a,P=this.getTabIndex(a);return{average:v,checked:d,fraction:u,hovered:m,id:N,partial:R,selected:M,value:a,tabIndex:P}})}loaded(){this.labelElements=Array.from(this.renderRoot.querySelectorAll("label"))}handleValueUpdate(e){this.hoverValue=e,this.emit&&this.calciteRatingChange.emit(),this.emit=!1}onLabelClick(){this.setFocus()}handleRatingPointerOver(){this.isKeyboardInteraction=!1}handleRatingPointerOut(){this.isKeyboardInteraction=!0,this.hoverValue=void 0}handleHostKeyDown(){this.isKeyboardInteraction=!0}handleLabelKeyDown(e){let t=this.getValueFromLabelEvent(e),a=e.key,i=a==" "?NaN:Number(a);if(this.emit=!0,isNaN(i))switch(a){case"Enter":case" ":this.value=!this.required&&this.value===t?0:t;break;case"ArrowLeft":this.value=this.getPreviousRatingValue(t),this.updateFocus(),e.preventDefault();break;case"ArrowRight":this.value=this.getNextRatingValue(t),this.updateFocus(),e.preventDefault();break;case"Tab":this.hoverValue=void 0;break}else!this.required&&i>=0&&i<=this.max?this.value=i:this.required&&i>0&&i<=this.max&&(this.value=i),this.updateFocus()}handleInputChange(e){if(this.isKeyboardInteraction===!0){let t=Number(e.target.value);this.hoverValue=t,this.value=t}}handleLabelPointerOver(e){this.hoverValue=this.getValueFromLabelEvent(e)}handleLabelPointerDown(e){let t=e.currentTarget,a=this.getValueFromLabelEvent(e);this.hoverValue=a,this.emit=!0,this.value=!this.required&&this.value===a?0:a,t.focus()}handleLabelClick(e){e.preventDefault()}handleLabelFocus(e){let t=this.getValueFromLabelEvent(e);this.hoverValue=t}updateFocus(){this.hoverValue=this.value,this.labelElements[this.value-1]?.focus()}getTabIndex(e){return this.readOnly||this.value!==e&&(this.value||e!==1)?-1:0}getValueFromLabelEvent(e){let t=e.currentTarget;return Number(t.getAttribute("data-value"))}getNextRatingValue(e){return e===5?1:e+1}getPreviousRatingValue(e){return e===1?5:e-1}render(){let e=this.count?.toString();return this.interactiveContainer({disabled:this.disabled,children:n`<span class=${s(l.wrapper)}>${this.labelText&&F({labelText:this.labelText,onClick:this.onLabelClick,required:this.required,tooltipText:this.messages.required})||""}<fieldset class=${s(l.fieldSet)} .disabled=${this.disabled}><legend class=${s(l.visuallyHidden)}>${this.messages.rating}</legend>${this.starsMap.map(({average:t,checked:a,fraction:i,hovered:r,id:o,partial:h,selected:v,value:d,tabIndex:u})=>n`<label class=${s({[l.star]:!0,selected:v,hovered:r,average:t,partial:h})} data-value=${d??c} for=${o??c} @click=${this.handleLabelClick} @focus=${this.handleLabelFocus} @keydown=${this.handleLabelKeyDown} @pointerdown=${this.handleLabelPointerDown} @pointerover=${this.handleLabelPointerOver} tabindex=${u??c}><input aria-errormessage=${p.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${q(this)} .ariaRequired=${this.required} .checked=${a} class=${s(l.visuallyHidden)} .disabled=${this.disabled||this.readOnly} id=${o??c} name=${this.guid??c} @change=${this.handleInputChange} tabindex=-1 type=radio .value=${$(d??"")}>${E({full:v||t||r,scale:this.scale})}${h&&n`<div class=${s(l.fraction)} style=${k({width:`${i*100}%`})}>${E({full:!0,partial:!0,scale:this.scale})}</div>`||""}<span class=${s(l.visuallyHidden)}>${this.messages.stars.replace("{num}",`${d}`)}</span></label>`)}${(this.count||this.average)&&this.showChip?n`<calcite-chip .label=${e} .scale=${this.scale} .value=${e}>${!!this.average&&n`<span class=${s(l.numberAverage)}>${this.average.toString()}</span>`||""}${!!this.count&&n`<span class=${s(l.numberCount)}>(${e})</span>`||""}</calcite-chip>`:null}</fieldset>${this.validationMessage&&this.status==="invalid"?S({icon:this.validationIcon,id:p.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}</span>`})}};V("calcite-rating",b);export{b as Rating};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{g as j}from"./LPMYRCBM.js";import{k as G}from"./GOYFUSER.js";import{a as $}from"./GE7JWGZD.js";import{c as A}from"./ULABJEH5.js";import{a as W}from"./HZN3ZVDR.js";import{a as q}from"./QIC3CEGW.js";import{a as E}from"./AG2RXIA6.js";import"./YP3AYJH3.js";import{a as k}from"./SN2OQZA6.js";import{a as N}from"./GLOG663K.js";import"./ZWPNZ5XW.js";import"./33BJ4MWQ.js";import"./MJ5LQ3NR.js";import"./7FW2RVVH.js";import{E as z,F as P,G as M,H as U,L as _,T as V,g as R,h as v,l as y,p as b}from"./MVBSHQ6D.js";var Y={offset:"offset"},ee={labelContent:"label-content"},te=60;function O(t){return t.replace(":15",".25").replace(":30",".5").replace(":45",".75").replace("\u2212","-")}function oe(t,e){let o=L(t,"en-US",e).replace("GMT","");return o===""?0:Number(O(o))*te}function se(){return new Date().getTimezoneOffset()*-1}function ie(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}async function ae(t){if(t==="offset")return o=>o;let{normalize:e}=await import("./6OAAZ4VY.js");return e}async function ne(t,e,o,s,a){if(o==="name"){let{groupByName:n}=await import("./V5D6RICM.js");return(await n()).map(({label:l})=>({label:l,value:l,metadata:{filterValue:l}})).filter(l=>!!l).sort()}let i=a==="user"?t:a==="utc"?"fr":"en-GB",c=s.getTime();if(o==="region"){let[{groupByRegion:n},{getCountry:m,global:l}]=await Promise.all([import("./MJMONOF2.js"),import("./T7OMXDHP.js")]);return(await n()).map(({label:u,tzs:f})=>(f.sort((h,d)=>{let I=T(h,e),x=T(d,e),p="Etc/GMT";if(h.startsWith(p)&&d.startsWith(p)){let g=h.substring(p.length),F=d.substring(p.length),X=g===""?0:parseInt(g,10);return(F===""?0:parseInt(F,10))-X}return I.localeCompare(x)}),{label:S(e,u),items:f.map(h=>{let d=O(L(h,i,c)),I=T(h,e),x=u===l?`${T(l,e)} Etc`:K(h),p=m(h),g=S(e,p);return{label:I,value:h,metadata:{country:g===I?void 0:g,filterValue:x,offset:d}}})})).sort((u,f)=>u.label===l?-1:f.label===l?1:u.label.localeCompare(f.label))}let[{groupByOffset:Z},{DateEngine:C}]=await Promise.all([import("./UKT2W47B.js"),import("./AJL3UUYU.js")]),D=await Z({dateEngine:new C,groupDateRange:1,startDate:new Date(c).toISOString()}),Q=new Intl.ListFormat(t,{style:"long",type:"conjunction"}),w=["Factory","Etc/UTC"];return D.forEach(n=>{let m=[],l=0;n.tzs.forEach((r,u)=>{w.includes(r)&&l++,m[u]=l}),n.tzs=n.tzs.filter(r=>!w.includes(r)),n.labelTzIdx=n.labelTzIdx.map(r=>r-m[r]).filter(r=>r>=0&&r<n.tzs.length)}),D.map(({labelTzIdx:n,tzs:m})=>{let l=m[0],r=O(L(l,i,c)),u=oe(l,c),f=n.map(d=>T(m[d],e));return{label:ce(e,r,Q.format(f)),value:u,metadata:{filterValue:m.map(d=>K(d))}}}).filter(n=>!!n).sort((n,m)=>n.value-m.value)}function T(t,e){return J(e,t)||re(t)}function le(t,e,o){return o.timeZoneRegionLabel.replace("{city}",t).replace("{country}",S(o,e))}function S(t,e){return J(t,e)||e}function J(t,e){let o=t[e];return typeof o=="string"?o:void 0}function re(t){return t.split("/").pop()??""}function K(t){return t.replace(/_/g," ")}function ce(t,e,o){return t.timeZoneLabel.replace("{offset}",e).replace("{cities}",o)}function L(t,e,o=Date.now()){return t==="Factory"&&(t="Etc/GMT"),G(e,{timeZone:t,timeZoneName:"shortOffset"}).formatToParts(o).find(({type:i})=>i==="timeZoneName").value}function me(t){return t[0].items!==void 0}function ue(t){return me(t)?t.flatMap(e=>e.items):t}function H(t,e,o){return o===void 0||t===void 0?void 0:ue(t).find(s=>s[e]==o)}var he=R`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block;--calcite-combobox-corner-radius: var(--calcite-input-time-zone-corner-radius, var(--calcite-corner-radius))}.offset{white-space:nowrap}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,B=class extends M{constructor(){super(),this.comboboxRef=z(),this.formSupport=A({inputType:"text"})(this),this.messages=k({blocking:!0}),this.focusSetter=N()(this),this.interactiveContainer=q(this),this.#e=null,this.clearable=!1,this.disabled=!1,this.maxItems=0,this.mode="offset",this.offsetStyle="user",this.open=!1,this.overlayPositioning="absolute",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.topLayerDisabled=!1,this.calciteInputTimeZoneBeforeClose=b({cancelable:!1}),this.calciteInputTimeZoneBeforeOpen=b({cancelable:!1}),this.calciteInputTimeZoneChange=b({cancelable:!1}),this.calciteInputTimeZoneClose=b({cancelable:!1}),this.calciteInputTimeZoneOpen=b({cancelable:!1}),W(this)}static{this.properties={selectedTimeZoneItem:[16,{},{state:!0}],timeZoneItems:[16,{},{state:!0}],clearable:[7,{},{reflect:!0,type:Boolean}],disabled:[7,{},{reflect:!0,type:Boolean}],form:[3,{},{reflect:!0}],labelText:1,maxItems:[11,{},{reflect:!0,type:Number}],messageOverrides:[0,{},{attribute:!1}],mode:[3,{},{reflect:!0}],name:[3,{},{reflect:!0}],offsetStyle:[3,{},{reflect:!0}],open:[7,{},{reflect:!0,type:Boolean}],overlayPositioning:[3,{},{reflect:!0}],placeholder:1,readOnly:[7,{},{reflect:!0,type:Boolean}],referenceDate:1,required:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],status:[3,{},{reflect:!0}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}],validationIcon:[3,{converter:_},{reflect:!0}],validationMessage:1,validity:[32,{},{readOnly:!0,attribute:!1}],value:1}}static{this.formAssociated=!0}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}static{this.styles=he}#e;get value(){return this._value}set value(e){this.#e="internal",this._value=e}async setFocus(e){return this.focusSetter(()=>this.comboboxRef.value,e)}async load(){this.normalizer=await ae(this.mode),await this.updateTimeZoneItems();let e=this.value,o=this.normalizeValue(e);this.value=o||(e===""?o:void 0),this.updateTimeZoneSelection();let s=this.selectedTimeZoneItem?`${this.selectedTimeZoneItem.value}`:"";this.value=s}willUpdate(e){e.has("value")&&this.hasUpdated&&this.handleValueChange(this.value,e.get("value")),(e.has("messages")||e.has("mode")&&(this.hasUpdated||this.mode!=="offset")||e.has("referenceDate"))&&this.handleTimeZoneItemPropsChange(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openChanged()}loaded(){this.openChanged()}async handleTimeZoneItemPropsChange(){!this.timeZoneItems||!this.hasUpdated||(await this.updateTimeZoneItems(),this.updateTimeZoneSelection())}openChanged(){this.comboboxRef.value&&(this.comboboxRef.value.open=this.open)}async handleValueChange(e,o){let s=this.#e==="user";if(this.#e=null,s)return;let a=this.normalizeValue(e);if(!a){if(this.clearable){this._value=a,this.selectedTimeZoneItem=void 0;return}this._value=o,this.selectedTimeZoneItem=this.findTimeZoneItem(o);return}let i=this.findTimeZoneItem(a);if(!i){this._value=o;return}this._value=a,this.selectedTimeZoneItem=i}onLabelClick(){this.setFocus()}overrideSelectedLabelForRegion(e){this.mode!=="region"||!this.selectedTimeZoneItem||this.comboboxRef.value&&(this.comboboxRef.value.selectedItems[0].heading=this.getItemLabel(this.selectedTimeZoneItem,e))}onComboboxBeforeClose(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!1),this.calciteInputTimeZoneBeforeClose.emit()}onComboboxBeforeOpen(e){e.stopPropagation(),this.overrideSelectedLabelForRegion(!0),this.calciteInputTimeZoneBeforeOpen.emit()}onComboboxChange(e){e.stopPropagation();let s=e.target.selectedItems[0],a=this._value;if(!s){this._value="",this.requestUpdate("value",a),this.selectedTimeZoneItem=void 0,this.calciteInputTimeZoneChange.emit();return}let i=this.findTimeZoneItemByLabel(s.getAttribute("data-label")??void 0),c=i?.value===void 0?void 0:`${i?.value}`;this.value===c&&i?.label===this.selectedTimeZoneItem?.label||(this._value=c,this.requestUpdate("value",a),this.selectedTimeZoneItem=i,this.#e="user",this.calciteInputTimeZoneChange.emit())}onComboboxClose(e){e.stopPropagation(),this.open=!1,this.calciteInputTimeZoneClose.emit()}onComboboxOpen(e){this.open=!0,e.stopPropagation(),this.calciteInputTimeZoneOpen.emit()}findTimeZoneItem(e){return H(this.timeZoneItems,"value",e)}findTimeZoneItemByLabel(e){return H(this.timeZoneItems,"label",e)}async updateTimeZoneItems(){this.timeZoneItems=await this.createTimeZoneItems()}updateTimeZoneSelection(){if(this.value===""&&this.clearable){this.selectedTimeZoneItem=void 0;return}let e=this.mode==="offset"?se():ie(),o=this.value===""||!this.value?e:this.value;this.selectedTimeZoneItem=this.findTimeZoneItem(o)||this.findTimeZoneItem(e)}async createTimeZoneItems(){return!this.messages._lang||!this.messages?[]:ne(this.messages._lang,this.messages,this.mode,this.referenceDate instanceof Date?this.referenceDate:new Date(this.referenceDate??Date.now()),this.offsetStyle)}normalizeValue(e){return e=e===void 0?"":e,e&&this.normalizer(e)}getItemLabel(e,o=this.open){let s=this.selectedTimeZoneItem===e,{label:a,metadata:i}=e;return!i.country||o||!s?a:le(a,i.country,this.messages)}render(){return this.interactiveContainer({disabled:this.disabled,children:v`<calcite-combobox .clearDisabled=${!this.clearable} .disabled=${this.disabled} .label=${this.messages.chooseTimeZone} .labelText=${this.labelText} lang=${this.messages._lang??y} .maxItems=${this.maxItems} @calciteComboboxBeforeClose=${this.onComboboxBeforeClose} @calciteComboboxBeforeOpen=${this.onComboboxBeforeOpen} @calciteComboboxChange=${this.onComboboxChange} @calciteComboboxClose=${this.onComboboxClose} @calciteComboboxOpen=${this.onComboboxOpen} .overlayPositioning=${this.overlayPositioning} .placeholder=${this.placeholder||this.messages[`${this.mode}Placeholder`]} placeholder-icon=search .readOnly=${this.readOnly} .required=${this.required} .scale=${this.scale} .selectionMode=${this.clearable?"single":"single-persist"} .status=${this.status} .topLayerDisabled=${this.topLayerDisabled} .validationIcon=${this.validationIcon} .validationMessage=${this.validationMessage} ${P(this.comboboxRef)}>${this.renderItems()}<slot name=${ee.labelContent} slot=${j.labelContent}></slot></calcite-combobox>`})}renderItems(){return this.mode==="region"?this.renderRegionItems():$(this.timeZoneItems,({label:e})=>e,e=>{let o=this.selectedTimeZoneItem===e,{label:s,metadata:a,value:i}=e;return v`<calcite-combobox-item data-label=${s??y} .heading=${s} .metadata=${a} .selected=${o} .value=${i}></calcite-combobox-item>`})}renderRegionItems(){return this.timeZoneItems.flatMap(({label:e,items:o})=>E(e,v`<calcite-combobox-item-group .label=${e}>${$(o,({label:s})=>s,s=>{let a=this.selectedTimeZoneItem===s,{label:i,metadata:c,value:Z}=s,C=this.getItemLabel(s);return v`<calcite-combobox-item data-label=${i??y} .description=${c.country} .heading=${C} .metadata=${c} .selected=${a} .value=${Z}><span class=${U(Y.offset)} slot=content-end>${c.offset}</span></calcite-combobox-item>`})}</calcite-combobox-item-group>`))}};V("calcite-input-time-zone",B);export{B as InputTimeZone};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as g,b as w}from"./THIECYN6.js";import"./VUYX7MNO.js";import{y as u,z as v}from"./3QPETC2U.js";import{C as b,D as h,E as p,F as m,R as f,g as d,h as n}from"./Y2ZDHAX5.js";var C=d`:host{display:flex;flex-direction:column;background-color:var(--calcite-tab-background-color, var(--calcite-color-transparent))}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1));background-color:var(--calcite-tab-background-color, var(--calcite-color-foreground-1))}:host([bordered]) section{border-color:var(--calcite-tab-border-color, var(--calcite-color-border-1));border-style:solid}section{border-width:var(--calcite-border-width-sm);display:flex;flex-grow:1;overflow:hidden;border-block-start-style:solid;border-block-start-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1)),inset 0 -1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([position=bottom]){flex-direction:column-reverse}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm)}:host([bordered][scale=s]) section{padding:var(--calcite-space-md)}:host([bordered][scale=m]) section{padding:var(--calcite-space-sm)}:host([bordered][scale=l]) section{padding:var(--calcite-space-lg)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid;border-block-end-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}@media(forced-colors:active){:host([bordered]) section{border-block-start-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm)}:host([position=bottom][bordered]) section{border-block-start-width:var(--calcite-border-width-sm);border-block-end-width:var(--calcite-border-width-none)}}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends p{constructor(){super(),this.slotRef=b(),this.tabs=[],this.titles=[],this.hasVisibleTitles=!0,this.bordered=!1,this.layout="inline",this.lastTabClosable=!1,this.position="top",this.scale="m",this.listen("calciteInternalTabNavSlotChange",this.calciteInternalTabNavSlotChangeHandler)}static{this.properties={tabs:[16,{},{state:!0}],titles:[16,{},{state:!0}],hasVisibleTitles:[16,{},{state:!0}],bordered:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],lastTabClosable:[7,{},{reflect:!0,type:Boolean}],position:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=C}connectedCallback(){super.connectedCallback(),this.updateItems()}load(){this.updateItems()}willUpdate(e){(e.has("position")&&(this.hasUpdated||this.position!=="top")||e.has("scale")&&(this.hasUpdated||this.scale!=="m")||e.has("lastTabClosable")&&(this.hasUpdated||this.lastTabClosable!==!1))&&this.updateItems(),(e.has("titles")||e.has("tabs"))&&this.hasUpdated&&(this.lastTabClosable||this.titles?.length>0)&&(this.lastTabClosable||this.tabs?.length>0)&&(this.updateAriaSettings(),this.updateItems())}calciteInternalTabNavSlotChangeHandler(e){e.stopPropagation();let a=[...e.detail];a.some((t,r)=>this.titles[r]!==t)&&(this.titles=a),this.hasVisibleTitles=a.some(t=>!t.closed)}defaultSlotChangeHandler(e){this.tabs=u(e,"calcite-tab")}async updateAriaSettings(){if(await this.componentOnReady(),!this.slotRef.value)return;let e,a,s=v(this.slotRef.value,"calcite-tab");if(await Promise.all([...s,...this.titles].map(t=>t.componentOnReady())),s.some(t=>t.tab)||this.titles.some(t=>t.tab))e=s.sort((t,r)=>t.tab&&r.tab?t.tab.localeCompare(r.tab):0).map(t=>t.id),a=this.titles.sort((t,r)=>t.tab.localeCompare(r.tab)).map(t=>t.id);else{let t=await Promise.all(s.map(o=>o.getTabIndex())),r=await Promise.all(this.titles.map(o=>o.getTabIndex()));e=t.reduce((o,l,i)=>(o[l]=s[i].id,o),[]),a=r.reduce((o,l,i)=>(o[l]=this.titles[i].id,o),[])}s.forEach(t=>t._updateAriaInfo(e,a)),this.titles.forEach(t=>t._updateAriaInfo(e,a))}updateItems(){let{lastTabClosable:e,position:a,scale:s}=this,t=this.el.querySelector("calcite-tab-nav");t&&(t.lastTabClosable=e,t.position=a,t.scale=s),Array.from(this.el.querySelectorAll("calcite-tab")).forEach(o=>{o.parentElement===this.el&&(o.scale=s)});let r=this.el.querySelectorAll("calcite-tab-nav > calcite-tab-title");Array.from(r).forEach(o=>{o.position=a,o.scale=s})}render(){return n`<slot name=${w.titleGroup}></slot><section class=${m(g.section)} .hidden=${!this.hasVisibleTitles}><slot @slotchange=${this.defaultSlotChangeHandler} ${h(this.slotRef)}></slot></section>`}};f("calcite-tabs",c);export{c as Tabs};
2
+ import{a as g,b as w}from"./THIECYN6.js";import"./VUYX7MNO.js";import{y as u,z as v}from"./7FW2RVVH.js";import{E as b,F as h,G as p,H as m,T as f,g as d,h as n}from"./MVBSHQ6D.js";var C=d`:host{display:flex;flex-direction:column;background-color:var(--calcite-tab-background-color, var(--calcite-color-transparent))}:host([bordered]){box-shadow:inset 0 1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1));background-color:var(--calcite-tab-background-color, var(--calcite-color-foreground-1))}:host([bordered]) section{border-color:var(--calcite-tab-border-color, var(--calcite-color-border-1));border-style:solid}section{border-width:var(--calcite-border-width-sm);display:flex;flex-grow:1;overflow:hidden;border-block-start-style:solid;border-block-start-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered][position=bottom]){box-shadow:inset 0 1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1)),inset 0 -1px 0 var(--calcite-tab-border-color, var(--calcite-color-border-1))}:host([bordered]:not([position=bottom])) ::slotted(calcite-tab-nav){margin-block-end:-1px}:host([position=bottom]){flex-direction:column-reverse}:host([position=bottom]) section{flex-direction:column-reverse;border-block-start-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm)}:host([bordered][scale=s]) section{padding:var(--calcite-space-md)}:host([bordered][scale=m]) section{padding:var(--calcite-space-sm)}:host([bordered][scale=l]) section{padding:var(--calcite-space-lg)}:host([position=bottom]:not([bordered])) section{border-block-end-style:solid;border-block-end-color:var(--calcite-tab-border-color, var(--calcite-color-border-1))}@media(forced-colors:active){:host([bordered]) section{border-block-start-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm)}:host([position=bottom][bordered]) section{border-block-start-width:var(--calcite-border-width-sm);border-block-end-width:var(--calcite-border-width-none)}}:host([hidden]){display:none}[hidden]{display:none}`,c=class extends p{constructor(){super(),this.slotRef=b(),this.tabs=[],this.titles=[],this.hasVisibleTitles=!0,this.bordered=!1,this.layout="inline",this.lastTabClosable=!1,this.position="top",this.scale="m",this.listen("calciteInternalTabNavSlotChange",this.calciteInternalTabNavSlotChangeHandler)}static{this.properties={tabs:[16,{},{state:!0}],titles:[16,{},{state:!0}],hasVisibleTitles:[16,{},{state:!0}],bordered:[7,{},{reflect:!0,type:Boolean}],layout:[3,{},{reflect:!0}],lastTabClosable:[7,{},{reflect:!0,type:Boolean}],position:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=C}connectedCallback(){super.connectedCallback(),this.updateItems()}load(){this.updateItems()}willUpdate(e){(e.has("position")&&(this.hasUpdated||this.position!=="top")||e.has("scale")&&(this.hasUpdated||this.scale!=="m")||e.has("lastTabClosable")&&(this.hasUpdated||this.lastTabClosable!==!1))&&this.updateItems(),(e.has("titles")||e.has("tabs"))&&this.hasUpdated&&(this.lastTabClosable||this.titles?.length>0)&&(this.lastTabClosable||this.tabs?.length>0)&&(this.updateAriaSettings(),this.updateItems())}calciteInternalTabNavSlotChangeHandler(e){e.stopPropagation();let a=[...e.detail];a.some((t,r)=>this.titles[r]!==t)&&(this.titles=a),this.hasVisibleTitles=a.some(t=>!t.closed)}defaultSlotChangeHandler(e){this.tabs=u(e,"calcite-tab")}async updateAriaSettings(){if(await this.componentOnReady(),!this.slotRef.value)return;let e,a,s=v(this.slotRef.value,"calcite-tab");if(await Promise.all([...s,...this.titles].map(t=>t.componentOnReady())),s.some(t=>t.tab)||this.titles.some(t=>t.tab))e=s.sort((t,r)=>t.tab&&r.tab?t.tab.localeCompare(r.tab):0).map(t=>t.id),a=this.titles.sort((t,r)=>t.tab.localeCompare(r.tab)).map(t=>t.id);else{let t=await Promise.all(s.map(o=>o.getTabIndex())),r=await Promise.all(this.titles.map(o=>o.getTabIndex()));e=t.reduce((o,l,i)=>(o[l]=s[i].id,o),[]),a=r.reduce((o,l,i)=>(o[l]=this.titles[i].id,o),[])}s.forEach(t=>t._updateAriaInfo(e,a)),this.titles.forEach(t=>t._updateAriaInfo(e,a))}updateItems(){let{lastTabClosable:e,position:a,scale:s}=this,t=this.el.querySelector("calcite-tab-nav");t&&(t.lastTabClosable=e,t.position=a,t.scale=s),Array.from(this.el.querySelectorAll("calcite-tab")).forEach(o=>{o.parentElement===this.el&&(o.scale=s)});let r=this.el.querySelectorAll("calcite-tab-nav > calcite-tab-title");Array.from(r).forEach(o=>{o.position=a,o.scale=s})}render(){return n`<slot name=${w.titleGroup}></slot><section class=${m(g.section)} .hidden=${!this.hasVisibleTitles}><slot @slotchange=${this.defaultSlotChangeHandler} ${h(this.slotRef)}></slot></section>`}};f("calcite-tabs",c);export{c as Tabs};