@kdcloudjs/shoelace 1.0.30 → 1.0.31

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 (1531) hide show
  1. package/cdn/chunks/chunk.24WW36SE.js +25 -0
  2. package/cdn/chunks/chunk.2AP733KC.js +186 -0
  3. package/cdn/chunks/chunk.2I3QE4LS.js +11 -0
  4. package/cdn/chunks/chunk.2RHE6UUM.js +27 -0
  5. package/cdn/chunks/chunk.2TWXBBYA.js +21 -0
  6. package/cdn/chunks/chunk.2UGFGPFO.js +24 -0
  7. package/cdn/chunks/chunk.2VXAPR3U.js +118 -0
  8. package/cdn/chunks/chunk.2XZTJH3J.js +11 -0
  9. package/cdn/chunks/chunk.2YOH4RA6.js +21 -0
  10. package/cdn/chunks/chunk.32QJTA5O.js +11 -0
  11. package/cdn/chunks/chunk.32VXI7RG.js +11 -0
  12. package/cdn/chunks/chunk.3BAT6CQA.js +21 -0
  13. package/cdn/chunks/chunk.3DRIHIOU.js +122 -0
  14. package/cdn/chunks/chunk.3JHXVHMD.js +152 -0
  15. package/cdn/chunks/chunk.3LJIDT6C.js +586 -0
  16. package/cdn/chunks/chunk.3MAQV43I.js +161 -0
  17. package/cdn/chunks/chunk.3Q6AWNUW.js +154 -0
  18. package/cdn/chunks/chunk.3XHUQH4I.js +79 -0
  19. package/cdn/chunks/chunk.3YS5E62V.js +21 -0
  20. package/cdn/chunks/chunk.43HIWDJN.js +11 -0
  21. package/cdn/chunks/chunk.4AEYU43S.js +11 -0
  22. package/cdn/chunks/chunk.4EK6KNBC.js +587 -0
  23. package/cdn/chunks/chunk.4FP6LF4Q.js +24 -0
  24. package/cdn/chunks/chunk.4HQFECC3.js +11 -0
  25. package/cdn/chunks/chunk.4QIMAJZU.js +330 -0
  26. package/cdn/chunks/chunk.4ROHG6YW.js +33 -0
  27. package/cdn/chunks/chunk.5DSHVTBU.js +338 -0
  28. package/cdn/chunks/chunk.5OSAQTLN.js +11 -0
  29. package/cdn/chunks/chunk.5RGUSMA7.js +153 -0
  30. package/cdn/chunks/chunk.65LAI2UR.js +21 -0
  31. package/cdn/chunks/chunk.664W2L4L.js +25 -0
  32. package/cdn/chunks/chunk.6DRZMNH2.js +379 -0
  33. package/cdn/chunks/chunk.6MAGFWEV.js +11 -0
  34. package/cdn/chunks/chunk.6NPZKMAQ.js +21 -0
  35. package/cdn/chunks/chunk.6PQLQZDG.js +21 -0
  36. package/cdn/chunks/chunk.6VRS5QSE.js +87 -0
  37. package/cdn/chunks/chunk.6WEMAOXM.js +367 -0
  38. package/cdn/chunks/chunk.6XAK4BE3.js +11 -0
  39. package/cdn/chunks/chunk.74D4HZDZ.js +336 -0
  40. package/cdn/chunks/chunk.75RWKQUT.js +11 -0
  41. package/cdn/chunks/chunk.776A6XOL.js +21 -0
  42. package/cdn/chunks/chunk.777TVRV7.js +526 -0
  43. package/cdn/chunks/chunk.77NGAFFB.js +24 -0
  44. package/cdn/chunks/chunk.7D2W6ITA.js +60 -0
  45. package/cdn/chunks/chunk.7FDLKXHH.js +45 -0
  46. package/cdn/chunks/chunk.7FUWVL5C.js +216 -0
  47. package/cdn/chunks/chunk.7P4TKLSC.js +299 -0
  48. package/cdn/chunks/chunk.7T7I4NV2.js +24 -0
  49. package/cdn/chunks/chunk.A653MKCQ.js +215 -0
  50. package/cdn/chunks/chunk.ACCQF64E.js +54 -0
  51. package/cdn/chunks/chunk.ADHBVQOV.js +11 -0
  52. package/cdn/chunks/chunk.AIA5GESE.js +11 -0
  53. package/cdn/chunks/chunk.AIWRCLGO.js +11 -0
  54. package/cdn/chunks/chunk.AQCX7OCI.js +455 -0
  55. package/cdn/chunks/chunk.B5NTZCHJ.js +29 -0
  56. package/cdn/chunks/chunk.BCVSZ275.js +21 -0
  57. package/cdn/chunks/chunk.BGMP5UV6.js +21 -0
  58. package/cdn/chunks/chunk.BHNBRZJI.js +21 -0
  59. package/cdn/chunks/chunk.BHVQK6BQ.js +11 -0
  60. package/cdn/chunks/chunk.BNESESDJ.js +11 -0
  61. package/cdn/chunks/chunk.BXCHFN5R.js +11 -0
  62. package/cdn/chunks/chunk.C4N3GUEY.js +236 -0
  63. package/cdn/chunks/chunk.CFDZMDIP.js +11 -0
  64. package/cdn/chunks/chunk.CNMRVXFY.js +158 -0
  65. package/cdn/chunks/chunk.D2DVKNXX.js +11 -0
  66. package/cdn/chunks/chunk.D2GTY7PE.js +75 -0
  67. package/cdn/chunks/chunk.DAIAFYJT.js +11 -0
  68. package/cdn/chunks/chunk.DMM3PKQP.js +24 -0
  69. package/cdn/chunks/chunk.DOGB5EZC.js +127 -0
  70. package/cdn/chunks/chunk.DPTOAIBI.js +11 -0
  71. package/cdn/chunks/chunk.DR56AOD6.js +25 -0
  72. package/cdn/chunks/chunk.DUNTCPCC.js +11 -0
  73. package/cdn/chunks/chunk.E7KUGXMS.js +11 -0
  74. package/cdn/chunks/chunk.EAXP3GJF.js +24 -0
  75. package/cdn/chunks/chunk.EG5DXJSS.js +305 -0
  76. package/cdn/chunks/chunk.ENDE6WDK.js +21 -0
  77. package/cdn/chunks/chunk.EQ6GHEUX.js +28 -0
  78. package/cdn/chunks/chunk.EQM3ROLB.js +11 -0
  79. package/cdn/chunks/chunk.EVHE3P3B.js +11 -0
  80. package/cdn/chunks/chunk.F22SPZB3.js +1255 -0
  81. package/cdn/chunks/chunk.F4WJ35X3.js +97 -0
  82. package/cdn/chunks/chunk.FEOPEHU4.js +113 -0
  83. package/cdn/chunks/chunk.FFVI2IXF.js +25 -0
  84. package/cdn/chunks/chunk.FKC5SAC5.js +11 -0
  85. package/cdn/chunks/chunk.FRIKNHQQ.js +24 -0
  86. package/cdn/chunks/chunk.G62U2BDB.js +26 -0
  87. package/cdn/chunks/chunk.GAP3NMP6.js +114 -0
  88. package/cdn/chunks/chunk.GPKB5FKJ.js +11 -0
  89. package/cdn/chunks/chunk.GZVEWZ6S.js +11 -0
  90. package/cdn/chunks/chunk.GZXB5Q7I.js +236 -0
  91. package/cdn/chunks/chunk.H3ZSW3ML.js +49 -0
  92. package/cdn/chunks/chunk.H5ZKOE44.js +11 -0
  93. package/cdn/chunks/chunk.HAFCRWWF.js +292 -0
  94. package/cdn/chunks/chunk.HFE2EELD.js +42 -0
  95. package/cdn/chunks/chunk.HFPCERTR.js +450 -0
  96. package/cdn/chunks/chunk.HFTRIX4T.js +21 -0
  97. package/cdn/chunks/chunk.HFX36NAZ.js +11 -0
  98. package/cdn/chunks/chunk.HH4KTEOX.js +341 -0
  99. package/cdn/chunks/chunk.HMZIA6TS.js +21 -0
  100. package/cdn/chunks/chunk.HSTYCTCO.js +1925 -0
  101. package/cdn/chunks/chunk.HZNHRGUW.js +11 -0
  102. package/cdn/chunks/chunk.IAH6V4O6.js +191 -0
  103. package/cdn/chunks/chunk.IBFQ4MLS.js +29 -0
  104. package/cdn/chunks/chunk.IFUMP3SM.js +11 -0
  105. package/cdn/chunks/chunk.IKZ55ATB.js +24 -0
  106. package/cdn/chunks/chunk.ILBB5HJK.js +11 -0
  107. package/cdn/chunks/chunk.IXTHDSH2.js +11 -0
  108. package/cdn/chunks/chunk.J5EDZ3U4.js +276 -0
  109. package/cdn/chunks/chunk.JGJ34IDV.js +21 -0
  110. package/cdn/chunks/chunk.JGM5QSDL.js +29 -0
  111. package/cdn/chunks/chunk.JLYEN6KY.js +11 -0
  112. package/cdn/chunks/chunk.JUHP7VBG.js +346 -0
  113. package/cdn/chunks/chunk.K3MR62NZ.js +181 -0
  114. package/cdn/chunks/chunk.KF2IXR6F.js +27 -0
  115. package/cdn/chunks/chunk.KFKG6VML.js +11 -0
  116. package/cdn/chunks/chunk.KHAA7DOA.js +25 -0
  117. package/cdn/chunks/chunk.L3QFFKRU.js +82 -0
  118. package/cdn/chunks/chunk.L3XGNBZC.js +11 -0
  119. package/cdn/chunks/chunk.L54BOFZZ.js +25 -0
  120. package/cdn/chunks/chunk.LEWH7YKP.js +11 -0
  121. package/cdn/chunks/chunk.LFC2N2WU.js +21 -0
  122. package/cdn/chunks/chunk.LRDC5FNM.js +21 -0
  123. package/cdn/chunks/chunk.LRHB4GGU.js +177 -0
  124. package/cdn/chunks/chunk.M22RVKD5.js +1156 -0
  125. package/cdn/chunks/chunk.M3D74BA7.js +11 -0
  126. package/cdn/chunks/chunk.MANY2TRV.js +11 -0
  127. package/cdn/chunks/chunk.MDQYJZQS.js +21 -0
  128. package/cdn/chunks/chunk.MNIYL75K.js +120 -0
  129. package/cdn/chunks/chunk.MNVFGKFA.js +63 -0
  130. package/cdn/chunks/chunk.MNYYGL2G.js +11 -0
  131. package/cdn/chunks/chunk.MOGUH7GN.js +29 -0
  132. package/cdn/chunks/chunk.MOXXBMVH.js +11 -0
  133. package/cdn/chunks/chunk.MRLC3567.js +11 -0
  134. package/cdn/chunks/chunk.MW477ANT.js +26 -0
  135. package/cdn/chunks/chunk.MYLFX5LX.js +11 -0
  136. package/cdn/chunks/chunk.NBCWBDT4.js +291 -0
  137. package/cdn/chunks/chunk.NISAAN5X.js +36 -0
  138. package/cdn/chunks/chunk.NKXBOUPT.js +21 -0
  139. package/cdn/chunks/chunk.NPB5H3GH.js +11 -0
  140. package/cdn/chunks/chunk.NQA7X2TY.js +11 -0
  141. package/cdn/chunks/chunk.NSCQ5BDB.js +11 -0
  142. package/cdn/chunks/chunk.NUAUGRF4.js +11 -0
  143. package/cdn/chunks/chunk.NYQXSK4K.js +11 -0
  144. package/cdn/chunks/chunk.NZU6BSSA.js +512 -0
  145. package/cdn/chunks/chunk.NZXWOPL3.js +21 -0
  146. package/cdn/chunks/chunk.O7BMIARB.js +24 -0
  147. package/cdn/chunks/chunk.OAJJWRFV.js +128 -0
  148. package/cdn/chunks/chunk.OBQXUZUT.js +302 -0
  149. package/cdn/chunks/chunk.OLWRED2T.js +11 -0
  150. package/cdn/chunks/chunk.OPUWOUN3.js +27 -0
  151. package/cdn/chunks/chunk.OTJQYRCF.js +21 -0
  152. package/cdn/chunks/chunk.OTYDDGYD.js +21 -0
  153. package/cdn/chunks/chunk.P7E5JMGZ.js +11 -0
  154. package/cdn/chunks/chunk.PA3KILKI.js +11 -0
  155. package/cdn/chunks/chunk.PBB7322Y.js +21 -0
  156. package/cdn/chunks/chunk.PG6GVAA4.js +314 -0
  157. package/cdn/chunks/chunk.PKSX66KO.js +11 -0
  158. package/cdn/chunks/chunk.PLJLGB2U.js +11 -0
  159. package/cdn/chunks/chunk.POIE2XDG.js +11 -0
  160. package/cdn/chunks/chunk.PTU5C4HV.js +11 -0
  161. package/cdn/chunks/chunk.QB7U2EQ7.js +21 -0
  162. package/cdn/chunks/chunk.QFZJJX6A.js +29 -0
  163. package/cdn/chunks/chunk.QIAK5LS3.js +24 -0
  164. package/cdn/chunks/chunk.QMAX5HQE.js +11 -0
  165. package/cdn/chunks/chunk.QPXE274O.js +29 -0
  166. package/cdn/chunks/chunk.QROBXPC7.js +25 -0
  167. package/cdn/chunks/chunk.QXEX7QEQ.js +21 -0
  168. package/cdn/chunks/chunk.R2JQXSFE.js +279 -0
  169. package/cdn/chunks/chunk.R3D5A2FU.js +24 -0
  170. package/cdn/chunks/chunk.RB2K6RHI.js +11 -0
  171. package/cdn/chunks/chunk.RBLNSGJA.js +21 -0
  172. package/cdn/chunks/chunk.REVFQ5XX.js +95 -0
  173. package/cdn/chunks/chunk.RJ3FTBIG.js +29 -0
  174. package/cdn/chunks/chunk.RNK6BFDN.js +1990 -0
  175. package/cdn/chunks/chunk.ROEAW3OD.js +11 -0
  176. package/cdn/chunks/chunk.RQQ7FUGE.js +77 -0
  177. package/cdn/chunks/chunk.RSOAZPCO.js +11 -0
  178. package/cdn/chunks/chunk.RSREJ5ZX.js +24 -0
  179. package/cdn/chunks/chunk.S35STP65.js +11 -0
  180. package/cdn/chunks/chunk.S5S2NY35.js +28 -0
  181. package/cdn/chunks/chunk.S62ORFAR.js +255 -0
  182. package/cdn/chunks/chunk.SFJXFFYI.js +24 -0
  183. package/cdn/chunks/chunk.SGCGLCRE.js +24 -0
  184. package/cdn/chunks/chunk.SOLBN27G.js +73 -0
  185. package/cdn/chunks/chunk.SRPRGHBX.js +11 -0
  186. package/cdn/chunks/chunk.SSB6QUTO.js +24 -0
  187. package/cdn/chunks/chunk.STU2GAK3.js +21 -0
  188. package/cdn/chunks/chunk.STYVQ3GY.js +11 -0
  189. package/cdn/chunks/chunk.SVU72MOF.js +28 -0
  190. package/cdn/chunks/chunk.SXN43BZH.js +135 -0
  191. package/cdn/chunks/chunk.SZDK7V5H.js +219 -0
  192. package/cdn/chunks/chunk.T4N2FGGL.js +27 -0
  193. package/cdn/chunks/chunk.T5VRBH5J.js +510 -0
  194. package/cdn/chunks/chunk.T7N3H4OU.js +11 -0
  195. package/cdn/chunks/chunk.T7OBFEH3.js +25 -0
  196. package/cdn/chunks/chunk.TELBSIWY.js +67 -0
  197. package/cdn/chunks/chunk.TGZZ2TNN.js +50 -0
  198. package/cdn/chunks/chunk.TKYOUUS4.js +28 -0
  199. package/cdn/chunks/chunk.TNUMW7A7.js +11 -0
  200. package/cdn/chunks/chunk.UA3JM7ZK.js +11 -0
  201. package/cdn/chunks/chunk.UCVTBQUH.js +89 -0
  202. package/cdn/chunks/chunk.UJSGSINK.js +27 -0
  203. package/cdn/chunks/chunk.UL2RQS4N.js +24 -0
  204. package/cdn/chunks/chunk.UNHUSGU4.js +25 -0
  205. package/cdn/chunks/chunk.UUVTBD2A.js +34 -0
  206. package/cdn/chunks/chunk.UXA3423R.js +28 -0
  207. package/cdn/chunks/chunk.V4N7IJQQ.js +25 -0
  208. package/cdn/chunks/chunk.VAUFSUSB.js +11 -0
  209. package/cdn/chunks/chunk.VBKSHZG6.js +114 -0
  210. package/cdn/chunks/chunk.VBV7G2UF.js +5845 -0
  211. package/cdn/chunks/chunk.VHD6KPB4.js +11 -0
  212. package/cdn/chunks/chunk.VKB6LKH4.js +91 -0
  213. package/cdn/chunks/chunk.VPGMGU5T.js +24 -0
  214. package/cdn/chunks/chunk.VQ4QS2IG.js +402 -0
  215. package/cdn/chunks/chunk.VQZYCZBT.js +197 -0
  216. package/cdn/chunks/chunk.VROEJ7B7.js +11 -0
  217. package/cdn/chunks/chunk.VRSGP44Y.js +26 -0
  218. package/cdn/chunks/chunk.VVNUUKOU.js +331 -0
  219. package/cdn/chunks/chunk.VYSCBDFH.js +158 -0
  220. package/cdn/chunks/chunk.W6FFUGXP.js +142 -0
  221. package/cdn/chunks/chunk.WAY7563T.js +11 -0
  222. package/cdn/chunks/chunk.WBCR74E3.js +25 -0
  223. package/cdn/chunks/chunk.WEXM5ZNH.js +11 -0
  224. package/cdn/chunks/chunk.WFS2ZW2B.js +27 -0
  225. package/cdn/chunks/chunk.WO7NUYTE.js +103 -0
  226. package/cdn/chunks/chunk.WPESYCFW.js +215 -0
  227. package/cdn/chunks/chunk.WTJDLUX5.js +605 -0
  228. package/cdn/chunks/chunk.WUFUS2OW.js +391 -0
  229. package/cdn/chunks/chunk.X3YUXAYG.js +27 -0
  230. package/cdn/chunks/chunk.XAVYUQQG.js +175 -0
  231. package/cdn/chunks/chunk.XDXT7NSR.js +21 -0
  232. package/cdn/chunks/chunk.XNGBMHEJ.js +199 -0
  233. package/cdn/chunks/chunk.XRHTDMWI.js +7378 -0
  234. package/cdn/chunks/chunk.XTAHM4Z5.js +354 -0
  235. package/cdn/chunks/chunk.XTB2EMPO.js +271 -0
  236. package/cdn/chunks/chunk.XTZD43PS.js +93 -0
  237. package/cdn/chunks/chunk.XY7Q4XXB.js +233 -0
  238. package/cdn/chunks/chunk.XZLP3R7F.js +11 -0
  239. package/cdn/chunks/chunk.YATAWBAE.js +11 -0
  240. package/cdn/chunks/chunk.YB77SADY.js +11 -0
  241. package/cdn/chunks/chunk.YCNZNFG7.js +2632 -0
  242. package/cdn/chunks/chunk.YHRSHDUN.js +137 -0
  243. package/cdn/chunks/chunk.YJL3SPDD.js +24 -0
  244. package/cdn/chunks/chunk.YJU73B6Y.js +11 -0
  245. package/cdn/chunks/chunk.YLTSE26T.js +24 -0
  246. package/cdn/chunks/chunk.YNIOT4PI.js +822 -0
  247. package/cdn/chunks/chunk.YNJYQXVB.js +1676 -0
  248. package/cdn/chunks/chunk.YUA64KZ4.js +49 -0
  249. package/cdn/chunks/chunk.Z5YUILXA.js +133 -0
  250. package/cdn/chunks/chunk.ZAJIZ63T.js +724 -0
  251. package/cdn/chunks/chunk.ZFCRZORN.js +11 -0
  252. package/cdn/chunks/chunk.ZIDTQCIT.js +24 -0
  253. package/cdn/chunks/chunk.ZTVV5FSP.js +26 -0
  254. package/cdn/chunks/chunk.ZUG342V6.js +11 -0
  255. package/cdn/chunks/chunk.ZVNL2EA7.js +29 -0
  256. package/cdn/chunks/chunk.ZX24V6F5.js +313 -0
  257. package/cdn/components/alert/alert.component.js +8 -8
  258. package/cdn/components/alert/alert.js +9 -9
  259. package/cdn/components/animated-image/animated-image.component.js +5 -5
  260. package/cdn/components/animated-image/animated-image.js +6 -6
  261. package/cdn/components/animation/animation.component.js +2 -2
  262. package/cdn/components/animation/animation.js +3 -3
  263. package/cdn/components/avatar/avatar.component.js +4 -4
  264. package/cdn/components/avatar/avatar.js +5 -5
  265. package/cdn/components/badge/badge.component.js +2 -2
  266. package/cdn/components/badge/badge.js +3 -3
  267. package/cdn/components/breadcrumb/breadcrumb.component.js +4 -4
  268. package/cdn/components/breadcrumb/breadcrumb.js +5 -5
  269. package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  270. package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
  271. package/cdn/components/button/button.component.js +7 -7
  272. package/cdn/components/button/button.js +8 -8
  273. package/cdn/components/button-group/button-group.component.js +2 -2
  274. package/cdn/components/button-group/button-group.js +3 -3
  275. package/cdn/components/calendar/calendar.component.js +10 -10
  276. package/cdn/components/calendar/calendar.js +10 -10
  277. package/cdn/components/card/card.component.js +2 -2
  278. package/cdn/components/card/card.js +3 -3
  279. package/cdn/components/carousel/carousel.component.js +6 -6
  280. package/cdn/components/carousel/carousel.js +7 -7
  281. package/cdn/components/carousel-item/carousel-item.component.js +2 -2
  282. package/cdn/components/carousel-item/carousel-item.js +3 -3
  283. package/cdn/components/checkbox/checkbox.component.js +4 -4
  284. package/cdn/components/checkbox/checkbox.js +5 -5
  285. package/cdn/components/col/col.component.js +2 -2
  286. package/cdn/components/col/col.js +3 -3
  287. package/cdn/components/color-picker/color-picker.component.js +15 -15
  288. package/cdn/components/color-picker/color-picker.js +16 -16
  289. package/cdn/components/copy-button/copy-button.component.js +8 -8
  290. package/cdn/components/copy-button/copy-button.js +9 -9
  291. package/cdn/components/date-panel/date-panel.component.js +13 -13
  292. package/cdn/components/date-panel/date-panel.js +13 -13
  293. package/cdn/components/datepicker/datepicker.component.js +17 -17
  294. package/cdn/components/datepicker/datepicker.js +17 -17
  295. package/cdn/components/daterangepicker/daterangepicker.component.js +24 -13
  296. package/cdn/components/daterangepicker/daterangepicker.js +25 -14
  297. package/cdn/components/daterangepicker/daterangepicker.styles.js +1 -1
  298. package/cdn/components/details/details.component.js +6 -6
  299. package/cdn/components/details/details.js +7 -7
  300. package/cdn/components/dialog/dialog.component.js +7 -7
  301. package/cdn/components/dialog/dialog.js +8 -8
  302. package/cdn/components/divider/divider.component.js +2 -2
  303. package/cdn/components/divider/divider.js +3 -3
  304. package/cdn/components/drawer/drawer.component.js +7 -7
  305. package/cdn/components/drawer/drawer.js +8 -8
  306. package/cdn/components/dropdown/dropdown.component.js +5 -5
  307. package/cdn/components/dropdown/dropdown.js +6 -6
  308. package/cdn/components/float-button/float-button.component.js +34 -0
  309. package/cdn/components/float-button/float-button.js +35 -0
  310. package/cdn/components/float-button/float-button.styles.js +9 -0
  311. package/cdn/components/float-button-group/float-button-group.component.js +22 -0
  312. package/cdn/components/float-button-group/float-button-group.js +23 -0
  313. package/cdn/components/float-button-group/float-button-group.styles.js +9 -0
  314. package/cdn/components/format-bytes/format-bytes.component.js +2 -2
  315. package/cdn/components/format-bytes/format-bytes.js +3 -3
  316. package/cdn/components/format-date/format-date.component.js +2 -2
  317. package/cdn/components/format-date/format-date.js +3 -3
  318. package/cdn/components/format-number/format-number.component.js +2 -2
  319. package/cdn/components/format-number/format-number.js +3 -3
  320. package/cdn/components/icon/icon.component.js +3 -3
  321. package/cdn/components/icon/icon.js +4 -4
  322. package/cdn/components/icon-button/icon-button.component.js +4 -4
  323. package/cdn/components/icon-button/icon-button.js +5 -5
  324. package/cdn/components/image-comparer/image-comparer.component.js +6 -6
  325. package/cdn/components/image-comparer/image-comparer.js +7 -7
  326. package/cdn/components/include/include.component.js +2 -2
  327. package/cdn/components/include/include.js +3 -3
  328. package/cdn/components/input/input.component.js +6 -6
  329. package/cdn/components/input/input.js +7 -7
  330. package/cdn/components/menu/menu.component.js +2 -2
  331. package/cdn/components/menu/menu.js +3 -3
  332. package/cdn/components/menu-item/menu-item.component.js +8 -8
  333. package/cdn/components/menu-item/menu-item.js +9 -9
  334. package/cdn/components/menu-label/menu-label.component.js +2 -2
  335. package/cdn/components/menu-label/menu-label.js +3 -3
  336. package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
  337. package/cdn/components/mutation-observer/mutation-observer.js +3 -3
  338. package/cdn/components/nav/nav.component.js +13 -13
  339. package/cdn/components/nav/nav.js +14 -14
  340. package/cdn/components/nav-group/nav-group.component.js +2 -2
  341. package/cdn/components/nav-group/nav-group.js +3 -3
  342. package/cdn/components/nav-item/nav-item.component.js +2 -2
  343. package/cdn/components/nav-item/nav-item.js +3 -3
  344. package/cdn/components/nav-submenu/nav-submenu.component.js +7 -7
  345. package/cdn/components/nav-submenu/nav-submenu.js +8 -8
  346. package/cdn/components/option/option.component.js +6 -6
  347. package/cdn/components/option/option.js +7 -7
  348. package/cdn/components/pagination/custom-select.js +12 -12
  349. package/cdn/components/pagination/pagination.component.js +13 -13
  350. package/cdn/components/pagination/pagination.js +13 -13
  351. package/cdn/components/popup/popup.component.js +4 -4
  352. package/cdn/components/popup/popup.js +5 -5
  353. package/cdn/components/progress-bar/progress-bar.component.js +4 -4
  354. package/cdn/components/progress-bar/progress-bar.js +5 -5
  355. package/cdn/components/progress-ring/progress-ring.component.js +2 -2
  356. package/cdn/components/progress-ring/progress-ring.js +3 -3
  357. package/cdn/components/qr-code/qr-code.component.js +2 -2
  358. package/cdn/components/qr-code/qr-code.js +3 -3
  359. package/cdn/components/radio/radio.component.js +4 -4
  360. package/cdn/components/radio/radio.js +5 -5
  361. package/cdn/components/radio-button/radio-button.component.js +2 -2
  362. package/cdn/components/radio-button/radio-button.js +3 -3
  363. package/cdn/components/radio-group/radio-group.component.js +4 -4
  364. package/cdn/components/radio-group/radio-group.js +5 -5
  365. package/cdn/components/range/range.component.js +4 -4
  366. package/cdn/components/range/range.js +5 -5
  367. package/cdn/components/rating/rating.component.js +6 -6
  368. package/cdn/components/rating/rating.js +7 -7
  369. package/cdn/components/relative-time/relative-time.component.js +2 -2
  370. package/cdn/components/relative-time/relative-time.js +3 -3
  371. package/cdn/components/resize-observer/resize-observer.component.js +2 -2
  372. package/cdn/components/resize-observer/resize-observer.js +3 -3
  373. package/cdn/components/row/row.component.js +2 -2
  374. package/cdn/components/row/row.js +3 -3
  375. package/cdn/components/screen/screen.component.js +3 -3
  376. package/cdn/components/screen/screen.js +4 -4
  377. package/cdn/components/select/select.component.js +9 -9
  378. package/cdn/components/select/select.js +10 -10
  379. package/cdn/components/sender/sender.component.js +54 -0
  380. package/cdn/components/sender/sender.js +55 -0
  381. package/cdn/components/sender/sender.styles.js +9 -0
  382. package/cdn/components/sender-header/sender-header.component.js +33 -0
  383. package/cdn/components/sender-header/sender-header.js +34 -0
  384. package/cdn/components/sender-header/sender-header.styles.js +9 -0
  385. package/cdn/components/sender-switch/sender-switch.component.js +33 -0
  386. package/cdn/components/sender-switch/sender-switch.js +34 -0
  387. package/cdn/components/sender-switch/sender-switch.styles.js +9 -0
  388. package/cdn/components/skeleton/skeleton.component.js +2 -2
  389. package/cdn/components/skeleton/skeleton.js +3 -3
  390. package/cdn/components/spinner/spinner.component.js +2 -2
  391. package/cdn/components/spinner/spinner.js +3 -3
  392. package/cdn/components/split-panel/split-panel.component.js +2 -2
  393. package/cdn/components/split-panel/split-panel.js +3 -3
  394. package/cdn/components/switch/switch.component.js +2 -2
  395. package/cdn/components/switch/switch.js +3 -3
  396. package/cdn/components/tab/tab.component.js +7 -7
  397. package/cdn/components/tab/tab.js +8 -8
  398. package/cdn/components/tab-group/tab-group.component.js +8 -8
  399. package/cdn/components/tab-group/tab-group.js +9 -9
  400. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  401. package/cdn/components/tab-panel/tab-panel.js +3 -3
  402. package/cdn/components/table/body-table.js +3 -3
  403. package/cdn/components/table/features/index.js +3 -3
  404. package/cdn/components/table/features/row-drag-controller.js +1 -1
  405. package/cdn/components/table/head-table.js +23 -23
  406. package/cdn/components/table/spinner-container.js +2 -2
  407. package/cdn/components/table/table.component.js +32 -32
  408. package/cdn/components/table/table.js +33 -33
  409. package/cdn/components/tag/tag.component.js +7 -7
  410. package/cdn/components/tag/tag.js +8 -8
  411. package/cdn/components/textarea/textarea.component.js +2 -2
  412. package/cdn/components/textarea/textarea.js +3 -3
  413. package/cdn/components/think/think.component.js +7 -7
  414. package/cdn/components/think/think.js +8 -8
  415. package/cdn/components/thought-chain/thought-chain.component.js +2 -2
  416. package/cdn/components/thought-chain/thought-chain.js +3 -3
  417. package/cdn/components/thought-chain-item/thought-chain-item.component.js +7 -7
  418. package/cdn/components/thought-chain-item/thought-chain-item.js +8 -8
  419. package/cdn/components/thought-chain-node/thought-chain-node.component.js +7 -7
  420. package/cdn/components/thought-chain-node/thought-chain-node.js +8 -8
  421. package/cdn/components/time-panel/time-panel.component.js +9 -9
  422. package/cdn/components/time-panel/time-panel.js +9 -9
  423. package/cdn/components/time-panel/time-panel.styles.js +1 -1
  424. package/cdn/components/timepicker/timepicker.component.js +17 -17
  425. package/cdn/components/timepicker/timepicker.js +17 -17
  426. package/cdn/components/tooltip/tooltip.component.js +5 -5
  427. package/cdn/components/tooltip/tooltip.js +6 -6
  428. package/cdn/components/tree/tree.component.js +10 -10
  429. package/cdn/components/tree/tree.js +11 -11
  430. package/cdn/components/tree-item/tree-item.component.js +8 -8
  431. package/cdn/components/tree-item/tree-item.js +9 -9
  432. package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
  433. package/cdn/components/visually-hidden/visually-hidden.js +3 -3
  434. package/cdn/components/x-markdown/markdown/render.js +2 -2
  435. package/cdn/components/x-markdown/x-markdown.component.js +4 -4
  436. package/cdn/components/x-markdown/x-markdown.js +5 -5
  437. package/cdn/custom-elements.json +10276 -8189
  438. package/cdn/react/alert/index.js +9 -9
  439. package/cdn/react/animated-image/index.js +6 -6
  440. package/cdn/react/animation/index.js +3 -3
  441. package/cdn/react/avatar/index.js +5 -5
  442. package/cdn/react/badge/index.js +3 -3
  443. package/cdn/react/breadcrumb/index.js +5 -5
  444. package/cdn/react/breadcrumb-item/index.js +3 -3
  445. package/cdn/react/button/index.js +8 -8
  446. package/cdn/react/button-group/index.js +3 -3
  447. package/cdn/react/card/index.js +3 -3
  448. package/cdn/react/carousel/index.js +7 -7
  449. package/cdn/react/carousel-item/index.js +3 -3
  450. package/cdn/react/checkbox/index.js +5 -5
  451. package/cdn/react/col/index.js +3 -3
  452. package/cdn/react/color-picker/index.js +16 -16
  453. package/cdn/react/copy-button/index.js +9 -9
  454. package/cdn/react/date-panel/index.js +14 -14
  455. package/cdn/react/datepicker/index.js +18 -18
  456. package/cdn/react/daterangepicker/index.js +25 -14
  457. package/cdn/react/details/index.js +7 -7
  458. package/cdn/react/dialog/index.js +8 -8
  459. package/cdn/react/divider/index.js +3 -3
  460. package/cdn/react/drawer/index.js +8 -8
  461. package/cdn/react/dropdown/index.js +6 -6
  462. package/cdn/react/float-button/index.js +35 -0
  463. package/cdn/react/float-button-group/index.js +23 -0
  464. package/cdn/react/format-bytes/index.js +3 -3
  465. package/cdn/react/format-date/index.js +3 -3
  466. package/cdn/react/format-number/index.js +3 -3
  467. package/cdn/react/icon/index.js +4 -4
  468. package/cdn/react/icon-button/index.js +5 -5
  469. package/cdn/react/image-comparer/index.js +7 -7
  470. package/cdn/react/include/index.js +3 -3
  471. package/cdn/react/index.js +279 -249
  472. package/cdn/react/input/index.js +7 -7
  473. package/cdn/react/menu/index.js +3 -3
  474. package/cdn/react/menu-item/index.js +9 -9
  475. package/cdn/react/menu-label/index.js +3 -3
  476. package/cdn/react/mutation-observer/index.js +3 -3
  477. package/cdn/react/nav/index.js +14 -14
  478. package/cdn/react/nav-group/index.js +3 -3
  479. package/cdn/react/nav-item/index.js +3 -3
  480. package/cdn/react/nav-submenu/index.js +8 -8
  481. package/cdn/react/option/index.js +7 -7
  482. package/cdn/react/pagination/index.js +14 -14
  483. package/cdn/react/popup/index.js +5 -5
  484. package/cdn/react/progress-bar/index.js +5 -5
  485. package/cdn/react/progress-ring/index.js +3 -3
  486. package/cdn/react/qr-code/index.js +3 -3
  487. package/cdn/react/radio/index.js +5 -5
  488. package/cdn/react/radio-button/index.js +3 -3
  489. package/cdn/react/radio-group/index.js +5 -5
  490. package/cdn/react/range/index.js +5 -5
  491. package/cdn/react/rating/index.js +7 -7
  492. package/cdn/react/relative-time/index.js +3 -3
  493. package/cdn/react/resize-observer/index.js +3 -3
  494. package/cdn/react/row/index.js +3 -3
  495. package/cdn/react/screen/index.js +4 -4
  496. package/cdn/react/select/index.js +10 -10
  497. package/cdn/react/sender/index.js +55 -0
  498. package/cdn/react/sender-header/index.js +34 -0
  499. package/cdn/react/sender-switch/index.js +34 -0
  500. package/cdn/react/skeleton/index.js +3 -3
  501. package/cdn/react/spinner/index.js +3 -3
  502. package/cdn/react/split-panel/index.js +3 -3
  503. package/cdn/react/switch/index.js +3 -3
  504. package/cdn/react/tab/index.js +8 -8
  505. package/cdn/react/tab-group/index.js +9 -9
  506. package/cdn/react/tab-panel/index.js +3 -3
  507. package/cdn/react/table/index.js +33 -33
  508. package/cdn/react/tag/index.js +8 -8
  509. package/cdn/react/textarea/index.js +3 -3
  510. package/cdn/react/think/index.js +8 -8
  511. package/cdn/react/thought-chain/index.js +3 -3
  512. package/cdn/react/thought-chain-item/index.js +8 -8
  513. package/cdn/react/thought-chain-node/index.js +8 -8
  514. package/cdn/react/timepicker/index.js +18 -18
  515. package/cdn/react/tooltip/index.js +6 -6
  516. package/cdn/react/tree/index.js +11 -11
  517. package/cdn/react/tree-item/index.js +9 -9
  518. package/cdn/react/visually-hidden/index.js +3 -3
  519. package/cdn/react/x-markdown/index.js +5 -5
  520. package/cdn/shoelace.js +273 -243
  521. package/cdn/themes/dark.css +14 -16
  522. package/cdn/themes/dark.styles.js +14 -16
  523. package/cdn/themes/light.css +47 -4
  524. package/cdn/themes/light.styles.js +47 -4
  525. package/cdn/themes/nova.css +20 -52
  526. package/cdn/themes/nova.styles.js +20 -52
  527. package/cdn/types/vue/index.d.ts +797 -522
  528. package/cdn/vscode.html-custom-data.json +514 -323
  529. package/cdn/web-types.json +1787 -1240
  530. package/dist/chunks/chunk.2222Y2UK.js +27 -0
  531. package/dist/chunks/chunk.24YRDJWM.js +315 -0
  532. package/dist/chunks/chunk.255ED3AX.js +29 -0
  533. package/dist/chunks/chunk.277V6KES.js +11 -0
  534. package/dist/chunks/chunk.2B6SZPSB.js +11 -0
  535. package/dist/chunks/chunk.2GEKAE7B.js +21 -0
  536. package/dist/chunks/chunk.2I5NSDA3.js +50 -0
  537. package/dist/chunks/chunk.2JBERLVD.js +42 -0
  538. package/dist/chunks/chunk.2KIO3HAG.js +25 -0
  539. package/dist/chunks/chunk.2T32M5MK.js +598 -0
  540. package/dist/chunks/chunk.2ZZFGPJB.js +25 -0
  541. package/dist/chunks/chunk.3BI3ZBWV.js +25 -0
  542. package/dist/chunks/chunk.3MHYIUMZ.js +11 -0
  543. package/dist/chunks/chunk.3ONOB433.js +11 -0
  544. package/dist/chunks/chunk.3U2YGNEM.js +11 -0
  545. package/dist/chunks/chunk.3W5WAOJN.js +28 -0
  546. package/dist/chunks/chunk.3XA37MYL.js +134 -0
  547. package/dist/chunks/chunk.3XGKVNFS.js +21 -0
  548. package/dist/chunks/chunk.4QJCVJBF.js +11 -0
  549. package/dist/chunks/chunk.4UNNJGN7.js +581 -0
  550. package/dist/chunks/chunk.4V3MCNCG.js +293 -0
  551. package/dist/chunks/chunk.4X653G5O.js +306 -0
  552. package/dist/chunks/chunk.4XRAGUIQ.js +117 -0
  553. package/dist/chunks/chunk.56LFKZBN.js +24 -0
  554. package/dist/chunks/chunk.576UYCIO.js +11 -0
  555. package/dist/chunks/chunk.5B2SCWWU.js +57 -0
  556. package/dist/chunks/chunk.5BXLFKDP.js +27 -0
  557. package/dist/chunks/chunk.5XQT43Z6.js +397 -0
  558. package/dist/chunks/chunk.5YOOCYJR.js +21 -0
  559. package/dist/chunks/chunk.6B322ONF.js +93 -0
  560. package/dist/chunks/chunk.6JMQ2TIB.js +11 -0
  561. package/dist/chunks/chunk.6PHR5DV3.js +11 -0
  562. package/dist/chunks/chunk.6TNOTVIW.js +11 -0
  563. package/dist/chunks/chunk.6TZMHHC3.js +25 -0
  564. package/dist/chunks/chunk.73BK3LQW.js +11 -0
  565. package/dist/chunks/chunk.75YPNEVH.js +11 -0
  566. package/dist/chunks/chunk.7FBPST7K.js +280 -0
  567. package/dist/chunks/chunk.7G3P2HOV.js +73 -0
  568. package/dist/chunks/chunk.7HG6ANKZ.js +11 -0
  569. package/dist/chunks/chunk.7UEZE5SE.js +63 -0
  570. package/dist/chunks/chunk.7UIHF6BL.js +24 -0
  571. package/dist/chunks/chunk.7UUWTJQR.js +178 -0
  572. package/dist/chunks/chunk.7ZZ53HWP.js +11 -0
  573. package/dist/chunks/chunk.A4I7TNK6.js +29 -0
  574. package/dist/chunks/chunk.A5FVRZ2V.js +11 -0
  575. package/dist/chunks/chunk.ACFWV6JZ.js +91 -0
  576. package/dist/chunks/chunk.ACYS3462.js +90 -0
  577. package/dist/chunks/chunk.AJYW62WJ.js +348 -0
  578. package/dist/chunks/chunk.AMPAX7MW.js +227 -0
  579. package/dist/chunks/chunk.AQLIAUBR.js +28 -0
  580. package/dist/chunks/chunk.AR55FJTM.js +11 -0
  581. package/dist/chunks/chunk.AT6Q3CT3.js +11 -0
  582. package/dist/chunks/chunk.ATWVDQCS.js +11 -0
  583. package/dist/chunks/chunk.AV6HVIYO.js +11 -0
  584. package/dist/chunks/chunk.AZ2WMYLE.js +11 -0
  585. package/dist/chunks/chunk.AZTRAFIF.js +86 -0
  586. package/dist/chunks/chunk.BDR6VFV5.js +25 -0
  587. package/dist/chunks/chunk.BS32CM5D.js +80 -0
  588. package/dist/chunks/chunk.BUKXV23V.js +24 -0
  589. package/dist/chunks/chunk.BUX2HRXS.js +24 -0
  590. package/dist/chunks/chunk.BW24FEPY.js +42 -0
  591. package/dist/chunks/chunk.BZBOJSAW.js +11 -0
  592. package/dist/chunks/chunk.CBSZF36H.js +11 -0
  593. package/dist/chunks/chunk.CDMX7FSB.js +45 -0
  594. package/dist/chunks/chunk.CFUHD4SV.js +21 -0
  595. package/dist/chunks/chunk.CJJNKIGS.js +11 -0
  596. package/dist/chunks/chunk.CLEZ2AZE.js +100 -0
  597. package/dist/chunks/chunk.CMHVCSO3.js +25 -0
  598. package/dist/chunks/chunk.CMQDL7CN.js +25 -0
  599. package/dist/chunks/chunk.COGPFCGH.js +11 -0
  600. package/dist/chunks/chunk.CPYCCN74.js +24 -0
  601. package/dist/chunks/chunk.CS3KGM3I.js +21 -0
  602. package/dist/chunks/chunk.CSJDM3I6.js +231 -0
  603. package/dist/chunks/chunk.CVSDG6FV.js +24 -0
  604. package/dist/chunks/chunk.CW3SMEMO.js +111 -0
  605. package/dist/chunks/chunk.CWIT4JOL.js +11 -0
  606. package/dist/chunks/chunk.CXUTYTWH.js +294 -0
  607. package/dist/chunks/chunk.D23WFKHD.js +31 -0
  608. package/dist/chunks/chunk.D46NZRNK.js +29 -0
  609. package/dist/chunks/chunk.D7XNHHL2.js +1251 -0
  610. package/dist/chunks/chunk.DEITFGBS.js +11 -0
  611. package/dist/chunks/chunk.DHQWUNZ7.js +26 -0
  612. package/dist/chunks/chunk.DKX5VTND.js +25 -0
  613. package/dist/chunks/chunk.DNWRKWYS.js +11 -0
  614. package/dist/chunks/chunk.DPPHNIDC.js +11 -0
  615. package/dist/chunks/chunk.DQABKHDM.js +949 -0
  616. package/dist/chunks/chunk.DTKQCP3B.js +27 -0
  617. package/dist/chunks/chunk.DVZSBAMK.js +11 -0
  618. package/dist/chunks/chunk.DW7HAH5F.js +21 -0
  619. package/dist/chunks/chunk.E65L7RMX.js +21 -0
  620. package/dist/chunks/chunk.ELXEGEO7.js +11 -0
  621. package/dist/chunks/chunk.ETW3CARH.js +85 -0
  622. package/dist/chunks/chunk.EUHALBSG.js +27 -0
  623. package/dist/chunks/chunk.EYXJPF4T.js +11 -0
  624. package/dist/chunks/chunk.F2BIKL72.js +34 -0
  625. package/dist/chunks/chunk.F3YAUNWY.js +11 -0
  626. package/dist/chunks/chunk.FJR4PM7P.js +11 -0
  627. package/dist/chunks/chunk.FZW6GDBE.js +29 -0
  628. package/dist/chunks/chunk.G22CZGOK.js +21 -0
  629. package/dist/chunks/chunk.G2XPKRQD.js +11 -0
  630. package/dist/chunks/chunk.GGK2EW5V.js +59 -0
  631. package/dist/chunks/chunk.GGRJO2OJ.js +335 -0
  632. package/dist/chunks/chunk.GJADB4CF.js +11 -0
  633. package/dist/chunks/chunk.GJBMOBND.js +21 -0
  634. package/dist/chunks/chunk.GJTIA2ID.js +27 -0
  635. package/dist/chunks/chunk.GN44I7UO.js +24 -0
  636. package/dist/chunks/chunk.GPSGJKTW.js +75 -0
  637. package/dist/chunks/chunk.GQGC3KU4.js +371 -0
  638. package/dist/chunks/chunk.GT3XTQOL.js +33 -0
  639. package/dist/chunks/chunk.GURJBGDH.js +24 -0
  640. package/dist/chunks/chunk.GVAPJYA3.js +154 -0
  641. package/dist/chunks/chunk.H2B2ZHRX.js +67 -0
  642. package/dist/chunks/chunk.H5R4TGZH.js +11 -0
  643. package/dist/chunks/chunk.H6E5FUQA.js +429 -0
  644. package/dist/chunks/chunk.HEIDKY6A.js +11 -0
  645. package/dist/chunks/chunk.HTHEA36S.js +21 -0
  646. package/dist/chunks/chunk.HUEJ6FJI.js +171 -0
  647. package/dist/chunks/chunk.HXJCURBU.js +84 -0
  648. package/dist/chunks/chunk.HY7S73WI.js +21 -0
  649. package/dist/chunks/chunk.I3E7XRJD.js +448 -0
  650. package/dist/chunks/chunk.I7LLE46P.js +11 -0
  651. package/dist/chunks/chunk.I7MYJ6T7.js +21 -0
  652. package/dist/chunks/chunk.IBO3W47J.js +502 -0
  653. package/dist/chunks/chunk.IFLJEMM4.js +11 -0
  654. package/dist/chunks/chunk.IGD3XHBJ.js +11 -0
  655. package/dist/chunks/chunk.IIITTBKF.js +26 -0
  656. package/dist/chunks/chunk.IL42CGIL.js +11 -0
  657. package/dist/chunks/chunk.INWQRWZW.js +29 -0
  658. package/dist/chunks/chunk.IPRT4PW2.js +148 -0
  659. package/dist/chunks/chunk.IWLHXROM.js +194 -0
  660. package/dist/chunks/chunk.J273PGYD.js +11 -0
  661. package/dist/chunks/chunk.J76YHVQV.js +11 -0
  662. package/dist/chunks/chunk.JEHBPENY.js +11 -0
  663. package/dist/chunks/chunk.JI646VQW.js +21 -0
  664. package/dist/chunks/chunk.JRE3XEGV.js +96 -0
  665. package/dist/chunks/chunk.K5UHBRBV.js +11 -0
  666. package/dist/chunks/chunk.KFSHKNTI.js +26 -0
  667. package/dist/chunks/chunk.KFT7NHGH.js +509 -0
  668. package/dist/chunks/chunk.KUH7IHNM.js +21 -0
  669. package/dist/chunks/chunk.KWBC22UR.js +320 -0
  670. package/dist/chunks/chunk.KXLNRRER.js +111 -0
  671. package/dist/chunks/chunk.L2GNETEW.js +52 -0
  672. package/dist/chunks/chunk.L3EQKDDD.js +22 -0
  673. package/dist/chunks/chunk.LHEMCYGN.js +21 -0
  674. package/dist/chunks/chunk.LJNA7HKE.js +384 -0
  675. package/dist/chunks/chunk.LJUGR5OF.js +126 -0
  676. package/dist/chunks/chunk.LKK2PFM6.js +11 -0
  677. package/dist/chunks/chunk.LO3Y3SC3.js +21 -0
  678. package/dist/chunks/chunk.LS6NLVX5.js +247 -0
  679. package/dist/chunks/chunk.LVUUWAFL.js +1667 -0
  680. package/dist/chunks/chunk.LZYWPESL.js +11 -0
  681. package/dist/chunks/chunk.M4PMEYE2.js +25 -0
  682. package/dist/chunks/chunk.MAWNPWPF.js +29 -0
  683. package/dist/chunks/chunk.MHCVVLCT.js +11 -0
  684. package/dist/chunks/chunk.MHMUDAVA.js +324 -0
  685. package/dist/chunks/chunk.MJJGFKLO.js +21 -0
  686. package/dist/chunks/chunk.MZLRGXPI.js +21 -0
  687. package/dist/chunks/chunk.N46JKT2J.js +25 -0
  688. package/dist/chunks/chunk.N5D2F64K.js +11 -0
  689. package/dist/chunks/chunk.N7JHDJGM.js +24 -0
  690. package/dist/chunks/chunk.NJCLPQUU.js +286 -0
  691. package/dist/chunks/chunk.NKOQAWVZ.js +28 -0
  692. package/dist/chunks/chunk.NOJSANXR.js +263 -0
  693. package/dist/chunks/chunk.NYQ75SBP.js +27 -0
  694. package/dist/chunks/chunk.ON4ZSL6J.js +11 -0
  695. package/dist/chunks/chunk.OSALHQGA.js +24 -0
  696. package/dist/chunks/chunk.OUNPBRRD.js +22 -0
  697. package/dist/chunks/chunk.P43PK6RL.js +21 -0
  698. package/dist/chunks/chunk.P6QATVJO.js +337 -0
  699. package/dist/chunks/chunk.P7A65F4C.js +11 -0
  700. package/dist/chunks/chunk.PGTN7J4V.js +116 -0
  701. package/dist/chunks/chunk.PHBT3MJN.js +361 -0
  702. package/dist/chunks/chunk.PK3EOIQ6.js +170 -0
  703. package/dist/chunks/chunk.PMI7GCY2.js +25 -0
  704. package/dist/chunks/chunk.POUWYLGI.js +25 -0
  705. package/dist/chunks/chunk.PW7XZMYT.js +11 -0
  706. package/dist/chunks/chunk.Q2XU4CXO.js +21 -0
  707. package/dist/chunks/chunk.Q5VJXOXL.js +24 -0
  708. package/dist/chunks/chunk.Q73UA4YW.js +11 -0
  709. package/dist/chunks/chunk.QAYUT4BX.js +24 -0
  710. package/dist/chunks/chunk.QP55ES4D.js +21 -0
  711. package/dist/chunks/chunk.QP5DAVFM.js +24 -0
  712. package/dist/chunks/chunk.QQVS2P2C.js +126 -0
  713. package/dist/chunks/chunk.QYPMCDLQ.js +75 -0
  714. package/dist/chunks/chunk.R5WPNMCQ.js +26 -0
  715. package/dist/chunks/chunk.R7KBW4QU.js +213 -0
  716. package/dist/chunks/chunk.RHMTH33E.js +11 -0
  717. package/dist/chunks/chunk.RS2GWDLW.js +153 -0
  718. package/dist/chunks/chunk.RXIN2NBH.js +11 -0
  719. package/dist/chunks/chunk.RXL26ZVA.js +21 -0
  720. package/dist/chunks/chunk.RY2V2DAG.js +24 -0
  721. package/dist/chunks/chunk.RZAJZ3DQ.js +21 -0
  722. package/dist/chunks/chunk.S3JB2UHY.js +231 -0
  723. package/dist/chunks/chunk.S3KIYD3N.js +119 -0
  724. package/dist/chunks/chunk.S4YBE4U3.js +311 -0
  725. package/dist/chunks/chunk.S6OTSVTK.js +11 -0
  726. package/dist/chunks/chunk.SI5MIM74.js +11 -0
  727. package/dist/chunks/chunk.SL5TVNJJ.js +335 -0
  728. package/dist/chunks/chunk.SQTKV2YF.js +125 -0
  729. package/dist/chunks/chunk.SWBDS6VT.js +21 -0
  730. package/dist/chunks/chunk.T2MF4VUY.js +24 -0
  731. package/dist/chunks/chunk.T67Q7FG4.js +212 -0
  732. package/dist/chunks/chunk.T6LQGRUO.js +11 -0
  733. package/dist/chunks/chunk.T75MXKKM.js +11 -0
  734. package/dist/chunks/chunk.TDWRSVI2.js +109 -0
  735. package/dist/chunks/chunk.TFEBABHN.js +11 -0
  736. package/dist/chunks/chunk.TFVPZDQP.js +1150 -0
  737. package/dist/chunks/chunk.TMKAHS52.js +504 -0
  738. package/dist/chunks/chunk.TOIQDGSN.js +550 -0
  739. package/dist/chunks/chunk.TS6C6XE6.js +11 -0
  740. package/dist/chunks/chunk.TTNMH7HL.js +11 -0
  741. package/dist/chunks/chunk.TVTYAME6.js +24 -0
  742. package/dist/chunks/chunk.U546SMOX.js +151 -0
  743. package/dist/chunks/chunk.U7ELM3KR.js +11 -0
  744. package/dist/chunks/chunk.UCRIUDWV.js +24 -0
  745. package/dist/chunks/chunk.UJBLG2EM.js +45 -0
  746. package/dist/chunks/chunk.UNJJA52B.js +299 -0
  747. package/dist/chunks/chunk.UQBEXQPA.js +21 -0
  748. package/dist/chunks/chunk.UTRX2GAS.js +11 -0
  749. package/dist/chunks/chunk.VGZSH2J3.js +11 -0
  750. package/dist/chunks/chunk.VOBHSZHJ.js +28 -0
  751. package/dist/chunks/chunk.VSR2VRYO.js +11 -0
  752. package/dist/chunks/chunk.VTDIICXK.js +11 -0
  753. package/dist/chunks/chunk.VW4UAUYL.js +29 -0
  754. package/dist/chunks/chunk.VWUHLZYU.js +167 -0
  755. package/dist/chunks/chunk.VX2XAZP7.js +149 -0
  756. package/dist/chunks/chunk.W2MX7XQG.js +147 -0
  757. package/dist/chunks/chunk.W2XAF2TT.js +11 -0
  758. package/dist/chunks/chunk.W4CK4MNF.js +11 -0
  759. package/dist/chunks/chunk.W5XOGECB.js +135 -0
  760. package/dist/chunks/chunk.W6RAVHWZ.js +214 -0
  761. package/dist/chunks/chunk.W6WWCEDK.js +11 -0
  762. package/dist/chunks/chunk.WDHQTWCE.js +113 -0
  763. package/dist/chunks/chunk.WGWXYQAT.js +444 -0
  764. package/dist/chunks/chunk.WTQNDLPG.js +11 -0
  765. package/dist/chunks/chunk.X3FWAJEG.js +11 -0
  766. package/dist/chunks/chunk.XGK7HEDC.js +209 -0
  767. package/dist/chunks/chunk.XQMCPLLN.js +28 -0
  768. package/dist/chunks/chunk.XRCLRCVM.js +181 -0
  769. package/dist/chunks/chunk.XSZIVLXG.js +21 -0
  770. package/dist/chunks/chunk.XWFL7NJJ.js +11 -0
  771. package/dist/chunks/chunk.XZNGEUYB.js +29 -0
  772. package/dist/chunks/chunk.Y4XGHZNT.js +100 -0
  773. package/dist/chunks/chunk.YFHUR4GU.js +21 -0
  774. package/dist/chunks/chunk.YO7DMVSG.js +814 -0
  775. package/dist/chunks/chunk.YPHENAEZ.js +417 -0
  776. package/dist/chunks/chunk.YT7X6G4Q.js +887 -0
  777. package/dist/chunks/chunk.Z5BUSFRU.js +24 -0
  778. package/dist/chunks/chunk.Z73U3F6N.js +11 -0
  779. package/dist/chunks/chunk.ZABCFN7Q.js +21 -0
  780. package/dist/chunks/chunk.ZE3LRPQR.js +11 -0
  781. package/dist/chunks/chunk.ZIK6UFCB.js +192 -0
  782. package/dist/chunks/chunk.ZO3NUUSF.js +274 -0
  783. package/dist/chunks/chunk.ZPSIFGI7.js +188 -0
  784. package/dist/chunks/chunk.ZUEFDSKK.js +11 -0
  785. package/dist/chunks/chunk.ZXDRF2AZ.js +11 -0
  786. package/dist/components/alert/alert.component.js +6 -6
  787. package/dist/components/alert/alert.js +7 -7
  788. package/dist/components/animated-image/animated-image.component.js +5 -5
  789. package/dist/components/animated-image/animated-image.js +6 -6
  790. package/dist/components/animation/animation.component.js +2 -2
  791. package/dist/components/animation/animation.js +3 -3
  792. package/dist/components/avatar/avatar.component.js +4 -4
  793. package/dist/components/avatar/avatar.js +5 -5
  794. package/dist/components/badge/badge.component.js +2 -2
  795. package/dist/components/badge/badge.js +3 -3
  796. package/dist/components/breadcrumb/breadcrumb.component.js +4 -4
  797. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  798. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  799. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  800. package/dist/components/button/button.component.js +5 -5
  801. package/dist/components/button/button.js +6 -6
  802. package/dist/components/button-group/button-group.component.js +2 -2
  803. package/dist/components/button-group/button-group.js +3 -3
  804. package/dist/components/calendar/calendar.component.js +8 -8
  805. package/dist/components/calendar/calendar.js +8 -8
  806. package/dist/components/card/card.component.js +2 -2
  807. package/dist/components/card/card.js +3 -3
  808. package/dist/components/carousel/carousel.component.js +4 -4
  809. package/dist/components/carousel/carousel.js +5 -5
  810. package/dist/components/carousel-item/carousel-item.component.js +2 -2
  811. package/dist/components/carousel-item/carousel-item.js +3 -3
  812. package/dist/components/checkbox/checkbox.component.js +4 -4
  813. package/dist/components/checkbox/checkbox.js +5 -5
  814. package/dist/components/col/col.component.js +2 -2
  815. package/dist/components/col/col.js +3 -3
  816. package/dist/components/color-picker/color-picker.component.js +13 -13
  817. package/dist/components/color-picker/color-picker.js +14 -14
  818. package/dist/components/copy-button/copy-button.component.js +6 -6
  819. package/dist/components/copy-button/copy-button.js +7 -7
  820. package/dist/components/date-panel/date-panel.component.js +11 -11
  821. package/dist/components/date-panel/date-panel.js +11 -11
  822. package/dist/components/datepicker/datepicker.component.js +15 -15
  823. package/dist/components/datepicker/datepicker.js +15 -15
  824. package/dist/components/daterangepicker/daterangepicker.component.js +22 -11
  825. package/dist/components/daterangepicker/daterangepicker.js +23 -12
  826. package/dist/components/daterangepicker/daterangepicker.styles.js +1 -1
  827. package/dist/components/details/details.component.js +4 -4
  828. package/dist/components/details/details.js +5 -5
  829. package/dist/components/dialog/dialog.component.js +5 -5
  830. package/dist/components/dialog/dialog.js +6 -6
  831. package/dist/components/divider/divider.component.js +2 -2
  832. package/dist/components/divider/divider.js +3 -3
  833. package/dist/components/drawer/drawer.component.js +5 -5
  834. package/dist/components/drawer/drawer.js +6 -6
  835. package/dist/components/dropdown/dropdown.component.js +3 -3
  836. package/dist/components/dropdown/dropdown.js +4 -4
  837. package/dist/components/float-button/float-button.component.js +27 -0
  838. package/dist/components/float-button/float-button.js +28 -0
  839. package/dist/components/float-button/float-button.styles.js +7 -0
  840. package/dist/components/float-button-group/float-button-group.component.js +17 -0
  841. package/dist/components/float-button-group/float-button-group.js +18 -0
  842. package/dist/components/float-button-group/float-button-group.styles.js +7 -0
  843. package/dist/components/format-bytes/format-bytes.component.js +2 -2
  844. package/dist/components/format-bytes/format-bytes.js +3 -3
  845. package/dist/components/format-date/format-date.component.js +2 -2
  846. package/dist/components/format-date/format-date.js +3 -3
  847. package/dist/components/format-number/format-number.component.js +2 -2
  848. package/dist/components/format-number/format-number.js +3 -3
  849. package/dist/components/icon/icon.component.js +3 -3
  850. package/dist/components/icon/icon.js +4 -4
  851. package/dist/components/icon-button/icon-button.component.js +4 -4
  852. package/dist/components/icon-button/icon-button.js +5 -5
  853. package/dist/components/image-comparer/image-comparer.component.js +4 -4
  854. package/dist/components/image-comparer/image-comparer.js +5 -5
  855. package/dist/components/include/include.component.js +2 -2
  856. package/dist/components/include/include.js +3 -3
  857. package/dist/components/input/input.component.js +4 -4
  858. package/dist/components/input/input.js +5 -5
  859. package/dist/components/menu/menu.component.js +2 -2
  860. package/dist/components/menu/menu.js +3 -3
  861. package/dist/components/menu-item/menu-item.component.js +6 -6
  862. package/dist/components/menu-item/menu-item.js +7 -7
  863. package/dist/components/menu-label/menu-label.component.js +2 -2
  864. package/dist/components/menu-label/menu-label.js +3 -3
  865. package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
  866. package/dist/components/mutation-observer/mutation-observer.js +3 -3
  867. package/dist/components/nav/nav.component.js +11 -11
  868. package/dist/components/nav/nav.js +12 -12
  869. package/dist/components/nav-group/nav-group.component.js +2 -2
  870. package/dist/components/nav-group/nav-group.js +3 -3
  871. package/dist/components/nav-item/nav-item.component.js +2 -2
  872. package/dist/components/nav-item/nav-item.js +3 -3
  873. package/dist/components/nav-submenu/nav-submenu.component.js +5 -5
  874. package/dist/components/nav-submenu/nav-submenu.js +6 -6
  875. package/dist/components/option/option.component.js +4 -4
  876. package/dist/components/option/option.js +5 -5
  877. package/dist/components/pagination/custom-select.js +10 -10
  878. package/dist/components/pagination/pagination.component.js +11 -11
  879. package/dist/components/pagination/pagination.js +11 -11
  880. package/dist/components/popup/popup.component.js +2 -2
  881. package/dist/components/popup/popup.js +3 -3
  882. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  883. package/dist/components/progress-bar/progress-bar.js +3 -3
  884. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  885. package/dist/components/progress-ring/progress-ring.js +3 -3
  886. package/dist/components/qr-code/qr-code.component.js +2 -2
  887. package/dist/components/qr-code/qr-code.js +3 -3
  888. package/dist/components/radio/radio.component.js +4 -4
  889. package/dist/components/radio/radio.js +5 -5
  890. package/dist/components/radio-button/radio-button.component.js +2 -2
  891. package/dist/components/radio-button/radio-button.js +3 -3
  892. package/dist/components/radio-group/radio-group.component.js +4 -4
  893. package/dist/components/radio-group/radio-group.js +5 -5
  894. package/dist/components/range/range.component.js +2 -2
  895. package/dist/components/range/range.js +3 -3
  896. package/dist/components/rating/rating.component.js +4 -4
  897. package/dist/components/rating/rating.js +5 -5
  898. package/dist/components/relative-time/relative-time.component.js +2 -2
  899. package/dist/components/relative-time/relative-time.js +3 -3
  900. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  901. package/dist/components/resize-observer/resize-observer.js +3 -3
  902. package/dist/components/row/row.component.js +2 -2
  903. package/dist/components/row/row.js +3 -3
  904. package/dist/components/screen/screen.component.js +3 -3
  905. package/dist/components/screen/screen.js +4 -4
  906. package/dist/components/select/select.component.js +7 -7
  907. package/dist/components/select/select.js +8 -8
  908. package/dist/components/sender/sender.component.js +45 -0
  909. package/dist/components/sender/sender.js +46 -0
  910. package/dist/components/sender/sender.styles.js +7 -0
  911. package/dist/components/sender-header/sender-header.component.js +25 -0
  912. package/dist/components/sender-header/sender-header.js +26 -0
  913. package/dist/components/sender-header/sender-header.styles.js +7 -0
  914. package/dist/components/sender-switch/sender-switch.component.js +25 -0
  915. package/dist/components/sender-switch/sender-switch.js +26 -0
  916. package/dist/components/sender-switch/sender-switch.styles.js +7 -0
  917. package/dist/components/skeleton/skeleton.component.js +2 -2
  918. package/dist/components/skeleton/skeleton.js +3 -3
  919. package/dist/components/spinner/spinner.component.js +2 -2
  920. package/dist/components/spinner/spinner.js +3 -3
  921. package/dist/components/split-panel/split-panel.component.js +2 -2
  922. package/dist/components/split-panel/split-panel.js +3 -3
  923. package/dist/components/switch/switch.component.js +2 -2
  924. package/dist/components/switch/switch.js +3 -3
  925. package/dist/components/tab/tab.component.js +5 -5
  926. package/dist/components/tab/tab.js +6 -6
  927. package/dist/components/tab-group/tab-group.component.js +6 -6
  928. package/dist/components/tab-group/tab-group.js +7 -7
  929. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  930. package/dist/components/tab-panel/tab-panel.js +3 -3
  931. package/dist/components/table/body-table.js +3 -3
  932. package/dist/components/table/features/index.js +3 -3
  933. package/dist/components/table/features/row-drag-controller.js +1 -1
  934. package/dist/components/table/head-table.js +21 -21
  935. package/dist/components/table/spinner-container.js +2 -2
  936. package/dist/components/table/table.component.js +30 -30
  937. package/dist/components/table/table.js +31 -31
  938. package/dist/components/tag/tag.component.js +5 -5
  939. package/dist/components/tag/tag.js +6 -6
  940. package/dist/components/textarea/textarea.component.js +2 -2
  941. package/dist/components/textarea/textarea.js +3 -3
  942. package/dist/components/think/think.component.js +5 -5
  943. package/dist/components/think/think.js +6 -6
  944. package/dist/components/thought-chain/thought-chain.component.js +2 -2
  945. package/dist/components/thought-chain/thought-chain.js +3 -3
  946. package/dist/components/thought-chain-item/thought-chain-item.component.js +5 -5
  947. package/dist/components/thought-chain-item/thought-chain-item.js +6 -6
  948. package/dist/components/thought-chain-node/thought-chain-node.component.js +5 -5
  949. package/dist/components/thought-chain-node/thought-chain-node.js +6 -6
  950. package/dist/components/time-panel/time-panel.component.js +7 -7
  951. package/dist/components/time-panel/time-panel.js +7 -7
  952. package/dist/components/time-panel/time-panel.styles.js +1 -1
  953. package/dist/components/timepicker/timepicker.component.js +15 -15
  954. package/dist/components/timepicker/timepicker.js +15 -15
  955. package/dist/components/tooltip/tooltip.component.js +3 -3
  956. package/dist/components/tooltip/tooltip.js +4 -4
  957. package/dist/components/tree/tree.component.js +8 -8
  958. package/dist/components/tree/tree.js +9 -9
  959. package/dist/components/tree-item/tree-item.component.js +6 -6
  960. package/dist/components/tree-item/tree-item.js +7 -7
  961. package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
  962. package/dist/components/visually-hidden/visually-hidden.js +3 -3
  963. package/dist/components/x-markdown/markdown/render.js +2 -2
  964. package/dist/components/x-markdown/x-markdown.component.js +4 -4
  965. package/dist/components/x-markdown/x-markdown.js +5 -5
  966. package/dist/custom-elements.json +10276 -8189
  967. package/dist/react/alert/index.js +7 -7
  968. package/dist/react/animated-image/index.js +6 -6
  969. package/dist/react/animation/index.js +3 -3
  970. package/dist/react/avatar/index.js +5 -5
  971. package/dist/react/badge/index.js +3 -3
  972. package/dist/react/breadcrumb/index.js +5 -5
  973. package/dist/react/breadcrumb-item/index.js +3 -3
  974. package/dist/react/button/index.js +6 -6
  975. package/dist/react/button-group/index.js +3 -3
  976. package/dist/react/card/index.js +3 -3
  977. package/dist/react/carousel/index.js +5 -5
  978. package/dist/react/carousel-item/index.js +3 -3
  979. package/dist/react/checkbox/index.js +5 -5
  980. package/dist/react/col/index.js +3 -3
  981. package/dist/react/color-picker/index.js +14 -14
  982. package/dist/react/copy-button/index.js +7 -7
  983. package/dist/react/date-panel/index.js +12 -12
  984. package/dist/react/datepicker/index.js +16 -16
  985. package/dist/react/daterangepicker/index.js +23 -12
  986. package/dist/react/details/index.js +5 -5
  987. package/dist/react/dialog/index.js +6 -6
  988. package/dist/react/divider/index.js +3 -3
  989. package/dist/react/drawer/index.js +6 -6
  990. package/dist/react/dropdown/index.js +4 -4
  991. package/dist/react/float-button/index.js +28 -0
  992. package/dist/react/float-button-group/index.js +18 -0
  993. package/dist/react/format-bytes/index.js +3 -3
  994. package/dist/react/format-date/index.js +3 -3
  995. package/dist/react/format-number/index.js +3 -3
  996. package/dist/react/icon/index.js +4 -4
  997. package/dist/react/icon-button/index.js +5 -5
  998. package/dist/react/image-comparer/index.js +5 -5
  999. package/dist/react/include/index.js +3 -3
  1000. package/dist/react/index.js +277 -247
  1001. package/dist/react/input/index.js +5 -5
  1002. package/dist/react/menu/index.js +3 -3
  1003. package/dist/react/menu-item/index.js +7 -7
  1004. package/dist/react/menu-label/index.js +3 -3
  1005. package/dist/react/mutation-observer/index.js +3 -3
  1006. package/dist/react/nav/index.js +12 -12
  1007. package/dist/react/nav-group/index.js +3 -3
  1008. package/dist/react/nav-item/index.js +3 -3
  1009. package/dist/react/nav-submenu/index.js +6 -6
  1010. package/dist/react/option/index.js +5 -5
  1011. package/dist/react/pagination/index.js +12 -12
  1012. package/dist/react/popup/index.js +3 -3
  1013. package/dist/react/progress-bar/index.js +3 -3
  1014. package/dist/react/progress-ring/index.js +3 -3
  1015. package/dist/react/qr-code/index.js +3 -3
  1016. package/dist/react/radio/index.js +5 -5
  1017. package/dist/react/radio-button/index.js +3 -3
  1018. package/dist/react/radio-group/index.js +5 -5
  1019. package/dist/react/range/index.js +3 -3
  1020. package/dist/react/rating/index.js +5 -5
  1021. package/dist/react/relative-time/index.js +3 -3
  1022. package/dist/react/resize-observer/index.js +3 -3
  1023. package/dist/react/row/index.js +3 -3
  1024. package/dist/react/screen/index.js +4 -4
  1025. package/dist/react/select/index.js +8 -8
  1026. package/dist/react/sender/index.js +46 -0
  1027. package/dist/react/sender-header/index.js +26 -0
  1028. package/dist/react/sender-switch/index.js +26 -0
  1029. package/dist/react/skeleton/index.js +3 -3
  1030. package/dist/react/spinner/index.js +3 -3
  1031. package/dist/react/split-panel/index.js +3 -3
  1032. package/dist/react/switch/index.js +3 -3
  1033. package/dist/react/tab/index.js +6 -6
  1034. package/dist/react/tab-group/index.js +7 -7
  1035. package/dist/react/tab-panel/index.js +3 -3
  1036. package/dist/react/table/index.js +31 -31
  1037. package/dist/react/tag/index.js +6 -6
  1038. package/dist/react/textarea/index.js +3 -3
  1039. package/dist/react/think/index.js +6 -6
  1040. package/dist/react/thought-chain/index.js +3 -3
  1041. package/dist/react/thought-chain-item/index.js +6 -6
  1042. package/dist/react/thought-chain-node/index.js +6 -6
  1043. package/dist/react/timepicker/index.js +16 -16
  1044. package/dist/react/tooltip/index.js +4 -4
  1045. package/dist/react/tree/index.js +9 -9
  1046. package/dist/react/tree-item/index.js +7 -7
  1047. package/dist/react/visually-hidden/index.js +3 -3
  1048. package/dist/react/x-markdown/index.js +5 -5
  1049. package/dist/shoelace.js +270 -240
  1050. package/dist/themes/dark.css +14 -16
  1051. package/dist/themes/dark.styles.js +14 -16
  1052. package/dist/themes/light.css +47 -4
  1053. package/dist/themes/light.styles.js +47 -4
  1054. package/dist/themes/nova.css +20 -52
  1055. package/dist/themes/nova.styles.js +20 -52
  1056. package/dist/types/vue/index.d.ts +797 -522
  1057. package/dist/vscode.html-custom-data.json +514 -323
  1058. package/dist/web-types.json +1787 -1240
  1059. package/package.json +1 -1
  1060. package/cdn/chunks/chunk.2C5G2RWQ.js +0 -29
  1061. package/cdn/chunks/chunk.2JORY7KS.js +0 -11
  1062. package/cdn/chunks/chunk.2NP75RLN.js +0 -27
  1063. package/cdn/chunks/chunk.2QCA52FG.js +0 -120
  1064. package/cdn/chunks/chunk.2ZJPPBZH.js +0 -11
  1065. package/cdn/chunks/chunk.33EB3ALL.js +0 -346
  1066. package/cdn/chunks/chunk.3DJTJWDV.js +0 -215
  1067. package/cdn/chunks/chunk.3H2UJXOI.js +0 -60
  1068. package/cdn/chunks/chunk.3HSRIQ7M.js +0 -87
  1069. package/cdn/chunks/chunk.3UY2SEEI.js +0 -291
  1070. package/cdn/chunks/chunk.3XT56P5Q.js +0 -11
  1071. package/cdn/chunks/chunk.423DLY3U.js +0 -11
  1072. package/cdn/chunks/chunk.445NXDEU.js +0 -21
  1073. package/cdn/chunks/chunk.4CO7B3R6.js +0 -11
  1074. package/cdn/chunks/chunk.4N5DWK5F.js +0 -67
  1075. package/cdn/chunks/chunk.4WCQFTGB.js +0 -27
  1076. package/cdn/chunks/chunk.54C6D3ZQ.js +0 -11
  1077. package/cdn/chunks/chunk.5C275NHK.js +0 -93
  1078. package/cdn/chunks/chunk.5J4J7L6L.js +0 -25
  1079. package/cdn/chunks/chunk.5MYKNWDK.js +0 -21
  1080. package/cdn/chunks/chunk.5QDHMUPT.js +0 -11
  1081. package/cdn/chunks/chunk.5QEOMCRQ.js +0 -135
  1082. package/cdn/chunks/chunk.5QKK2MGF.js +0 -219
  1083. package/cdn/chunks/chunk.5QMFW6ZN.js +0 -114
  1084. package/cdn/chunks/chunk.5XFKR5FB.js +0 -11
  1085. package/cdn/chunks/chunk.5XKVGNV6.js +0 -354
  1086. package/cdn/chunks/chunk.657OX6WC.js +0 -25
  1087. package/cdn/chunks/chunk.6L6NMNSD.js +0 -11
  1088. package/cdn/chunks/chunk.6LKMQKDF.js +0 -1204
  1089. package/cdn/chunks/chunk.6OHIXLNB.js +0 -21
  1090. package/cdn/chunks/chunk.6OM3VY7X.js +0 -21
  1091. package/cdn/chunks/chunk.72RM2OPZ.js +0 -312
  1092. package/cdn/chunks/chunk.72XR3IYH.js +0 -11
  1093. package/cdn/chunks/chunk.73E357NT.js +0 -21
  1094. package/cdn/chunks/chunk.7ACRCBX5.js +0 -29
  1095. package/cdn/chunks/chunk.7B3SCKQA.js +0 -11
  1096. package/cdn/chunks/chunk.7BZNZT4U.js +0 -11
  1097. package/cdn/chunks/chunk.7GNWJVZ3.js +0 -113
  1098. package/cdn/chunks/chunk.7IS6V6HN.js +0 -11
  1099. package/cdn/chunks/chunk.7MAKHCBE.js +0 -49
  1100. package/cdn/chunks/chunk.7MEE2OZI.js +0 -271
  1101. package/cdn/chunks/chunk.7UGX4XGC.js +0 -11
  1102. package/cdn/chunks/chunk.7ZX6AKT2.js +0 -1925
  1103. package/cdn/chunks/chunk.A26Y7N2I.js +0 -95
  1104. package/cdn/chunks/chunk.A6XNGZ32.js +0 -175
  1105. package/cdn/chunks/chunk.A7LIENIN.js +0 -24
  1106. package/cdn/chunks/chunk.ADLG2NJS.js +0 -77
  1107. package/cdn/chunks/chunk.AEUQX7RL.js +0 -29
  1108. package/cdn/chunks/chunk.AGDWZVWO.js +0 -29
  1109. package/cdn/chunks/chunk.AIPZ3YYW.js +0 -367
  1110. package/cdn/chunks/chunk.AJCBS7VD.js +0 -27
  1111. package/cdn/chunks/chunk.ALPVTC7G.js +0 -28
  1112. package/cdn/chunks/chunk.AQUBCYEH.js +0 -28
  1113. package/cdn/chunks/chunk.AR25AD5Q.js +0 -24
  1114. package/cdn/chunks/chunk.ATVKNSUY.js +0 -11
  1115. package/cdn/chunks/chunk.AUMNRYS5.js +0 -11
  1116. package/cdn/chunks/chunk.AXT4YTEP.js +0 -122
  1117. package/cdn/chunks/chunk.AZ6OTP3P.js +0 -158
  1118. package/cdn/chunks/chunk.AZINJLZH.js +0 -11
  1119. package/cdn/chunks/chunk.B22RIQZD.js +0 -11
  1120. package/cdn/chunks/chunk.B6SCM7EY.js +0 -197
  1121. package/cdn/chunks/chunk.BMIWBPHQ.js +0 -28
  1122. package/cdn/chunks/chunk.BNXAJXJE.js +0 -11
  1123. package/cdn/chunks/chunk.BOKTNDVH.js +0 -11
  1124. package/cdn/chunks/chunk.BVJKEGTQ.js +0 -11
  1125. package/cdn/chunks/chunk.BYM73ARW.js +0 -24
  1126. package/cdn/chunks/chunk.C3L3G3FU.js +0 -11
  1127. package/cdn/chunks/chunk.CEKIG6XK.js +0 -114
  1128. package/cdn/chunks/chunk.CIFZHYA5.js +0 -11
  1129. package/cdn/chunks/chunk.COZB6GRG.js +0 -11
  1130. package/cdn/chunks/chunk.CSP7EZWO.js +0 -25
  1131. package/cdn/chunks/chunk.D6CBDTPW.js +0 -11
  1132. package/cdn/chunks/chunk.DG4ONOBJ.js +0 -25
  1133. package/cdn/chunks/chunk.DXN7H4QQ.js +0 -11
  1134. package/cdn/chunks/chunk.EFDOGA6O.js +0 -11
  1135. package/cdn/chunks/chunk.EFIOOFKG.js +0 -402
  1136. package/cdn/chunks/chunk.EG66GMNB.js +0 -11
  1137. package/cdn/chunks/chunk.EGBO5VG7.js +0 -21
  1138. package/cdn/chunks/chunk.EJIHHNW2.js +0 -21
  1139. package/cdn/chunks/chunk.EJWUM6SB.js +0 -26
  1140. package/cdn/chunks/chunk.EP2YQYH4.js +0 -21
  1141. package/cdn/chunks/chunk.FBZA4LCY.js +0 -586
  1142. package/cdn/chunks/chunk.FEBSACE5.js +0 -137
  1143. package/cdn/chunks/chunk.FNAQXF5K.js +0 -153
  1144. package/cdn/chunks/chunk.FYZO3QB6.js +0 -11
  1145. package/cdn/chunks/chunk.GG427EM3.js +0 -216
  1146. package/cdn/chunks/chunk.GGLR7DFO.js +0 -21
  1147. package/cdn/chunks/chunk.GIHUYFGQ.js +0 -11
  1148. package/cdn/chunks/chunk.GIX42DPW.js +0 -21
  1149. package/cdn/chunks/chunk.GOBOIUXW.js +0 -455
  1150. package/cdn/chunks/chunk.GRQJ32VD.js +0 -26
  1151. package/cdn/chunks/chunk.GWA2WZG7.js +0 -313
  1152. package/cdn/chunks/chunk.HBQ4DGND.js +0 -24
  1153. package/cdn/chunks/chunk.HCDFNE6D.js +0 -11
  1154. package/cdn/chunks/chunk.HGSCURO7.js +0 -11
  1155. package/cdn/chunks/chunk.HPM4RAR3.js +0 -21
  1156. package/cdn/chunks/chunk.HPYMLFEP.js +0 -24
  1157. package/cdn/chunks/chunk.HVNCN3LR.js +0 -510
  1158. package/cdn/chunks/chunk.HWZXVTJ3.js +0 -11
  1159. package/cdn/chunks/chunk.HYLBYCRU.js +0 -391
  1160. package/cdn/chunks/chunk.HZROMQGH.js +0 -11
  1161. package/cdn/chunks/chunk.I4TNJAXZ.js +0 -27
  1162. package/cdn/chunks/chunk.I564PVR7.js +0 -526
  1163. package/cdn/chunks/chunk.IELYIVVF.js +0 -63
  1164. package/cdn/chunks/chunk.IJIYQ243.js +0 -82
  1165. package/cdn/chunks/chunk.IKE6LV2L.js +0 -299
  1166. package/cdn/chunks/chunk.INTGPSNS.js +0 -54
  1167. package/cdn/chunks/chunk.IWS4VQSB.js +0 -21
  1168. package/cdn/chunks/chunk.IXA33XJ3.js +0 -236
  1169. package/cdn/chunks/chunk.IYRK26LI.js +0 -21
  1170. package/cdn/chunks/chunk.IZKQR76A.js +0 -11
  1171. package/cdn/chunks/chunk.J2N6WVQ6.js +0 -7374
  1172. package/cdn/chunks/chunk.J4RNE7AM.js +0 -11
  1173. package/cdn/chunks/chunk.J7VE7YQS.js +0 -587
  1174. package/cdn/chunks/chunk.JHOUIKLE.js +0 -29
  1175. package/cdn/chunks/chunk.JIRKLXVB.js +0 -21
  1176. package/cdn/chunks/chunk.JMPTVWEB.js +0 -11
  1177. package/cdn/chunks/chunk.JN4WDFN5.js +0 -24
  1178. package/cdn/chunks/chunk.JOTPCDWS.js +0 -25
  1179. package/cdn/chunks/chunk.JU5G6KCN.js +0 -73
  1180. package/cdn/chunks/chunk.JUHVAT2E.js +0 -26
  1181. package/cdn/chunks/chunk.K5AL5C3Z.js +0 -11
  1182. package/cdn/chunks/chunk.KF5HTQ6Q.js +0 -36
  1183. package/cdn/chunks/chunk.KFTO5GE2.js +0 -11
  1184. package/cdn/chunks/chunk.KHBNRVKS.js +0 -5845
  1185. package/cdn/chunks/chunk.KOTYS4KY.js +0 -11
  1186. package/cdn/chunks/chunk.KSVZ46K5.js +0 -118
  1187. package/cdn/chunks/chunk.KU2YKKEI.js +0 -27
  1188. package/cdn/chunks/chunk.KWPYXG47.js +0 -21
  1189. package/cdn/chunks/chunk.KZGSIBRV.js +0 -1990
  1190. package/cdn/chunks/chunk.L4GOSB5D.js +0 -11
  1191. package/cdn/chunks/chunk.LBGUQWCD.js +0 -822
  1192. package/cdn/chunks/chunk.LBIXZ6IO.js +0 -49
  1193. package/cdn/chunks/chunk.LM4ERCBV.js +0 -605
  1194. package/cdn/chunks/chunk.LMIN3H3Y.js +0 -21
  1195. package/cdn/chunks/chunk.LNQ6YVCP.js +0 -191
  1196. package/cdn/chunks/chunk.M4TH7UQL.js +0 -11
  1197. package/cdn/chunks/chunk.MJC25OAB.js +0 -25
  1198. package/cdn/chunks/chunk.MJMMYCYM.js +0 -11
  1199. package/cdn/chunks/chunk.N7B3D62N.js +0 -11
  1200. package/cdn/chunks/chunk.N7W7BBNU.js +0 -285
  1201. package/cdn/chunks/chunk.NC7I3GW6.js +0 -177
  1202. package/cdn/chunks/chunk.NPWW3U5L.js +0 -341
  1203. package/cdn/chunks/chunk.NUAML3FM.js +0 -29
  1204. package/cdn/chunks/chunk.NVFWI6IW.js +0 -42
  1205. package/cdn/chunks/chunk.NWRBVQT2.js +0 -11
  1206. package/cdn/chunks/chunk.O2H4HY4F.js +0 -133
  1207. package/cdn/chunks/chunk.O2ZIV2OV.js +0 -21
  1208. package/cdn/chunks/chunk.OAZYNNM6.js +0 -11
  1209. package/cdn/chunks/chunk.OCZFCQVL.js +0 -11
  1210. package/cdn/chunks/chunk.OFBJORMN.js +0 -279
  1211. package/cdn/chunks/chunk.P2RKP6FZ.js +0 -28
  1212. package/cdn/chunks/chunk.P7UC2ORW.js +0 -11
  1213. package/cdn/chunks/chunk.PAMN2VO5.js +0 -27
  1214. package/cdn/chunks/chunk.PKQDI743.js +0 -314
  1215. package/cdn/chunks/chunk.PMJNLZOY.js +0 -11
  1216. package/cdn/chunks/chunk.PNNHUCEE.js +0 -724
  1217. package/cdn/chunks/chunk.POSBBIJV.js +0 -24
  1218. package/cdn/chunks/chunk.PVPCA37S.js +0 -450
  1219. package/cdn/chunks/chunk.Q4AOXTDD.js +0 -28
  1220. package/cdn/chunks/chunk.Q5DJ6LIP.js +0 -21
  1221. package/cdn/chunks/chunk.QATE64HU.js +0 -50
  1222. package/cdn/chunks/chunk.QESJOWGW.js +0 -79
  1223. package/cdn/chunks/chunk.QGGNK3Q4.js +0 -21
  1224. package/cdn/chunks/chunk.QHVK76CT.js +0 -255
  1225. package/cdn/chunks/chunk.QIS35BPB.js +0 -21
  1226. package/cdn/chunks/chunk.QMZXXHTA.js +0 -103
  1227. package/cdn/chunks/chunk.QSRNYJ5Q.js +0 -11
  1228. package/cdn/chunks/chunk.QW6INE2H.js +0 -11
  1229. package/cdn/chunks/chunk.QYRMMVIX.js +0 -25
  1230. package/cdn/chunks/chunk.QZC3PVKI.js +0 -161
  1231. package/cdn/chunks/chunk.R3SXPJL7.js +0 -11
  1232. package/cdn/chunks/chunk.RAQ7SFDU.js +0 -97
  1233. package/cdn/chunks/chunk.RNCQDFNP.js +0 -11
  1234. package/cdn/chunks/chunk.RP6HHQYV.js +0 -215
  1235. package/cdn/chunks/chunk.RZY34MZQ.js +0 -27
  1236. package/cdn/chunks/chunk.S6ZPCPTT.js +0 -24
  1237. package/cdn/chunks/chunk.SLTYLKF5.js +0 -336
  1238. package/cdn/chunks/chunk.SOGM4N3T.js +0 -21
  1239. package/cdn/chunks/chunk.TBS2HUB3.js +0 -233
  1240. package/cdn/chunks/chunk.TEHAFERR.js +0 -128
  1241. package/cdn/chunks/chunk.TGOINHGT.js +0 -1254
  1242. package/cdn/chunks/chunk.TIXOLHH7.js +0 -11
  1243. package/cdn/chunks/chunk.TLQ4RHPY.js +0 -11
  1244. package/cdn/chunks/chunk.TPLNQWOG.js +0 -21
  1245. package/cdn/chunks/chunk.TTKFNUEE.js +0 -11
  1246. package/cdn/chunks/chunk.TVLDUO4A.js +0 -11
  1247. package/cdn/chunks/chunk.TVMX6KDN.js +0 -33
  1248. package/cdn/chunks/chunk.U525BQ3U.js +0 -302
  1249. package/cdn/chunks/chunk.U5IBTVXI.js +0 -11
  1250. package/cdn/chunks/chunk.UAXZTSUA.js +0 -11
  1251. package/cdn/chunks/chunk.UD4W4I3V.js +0 -11
  1252. package/cdn/chunks/chunk.UFH2YC5C.js +0 -24
  1253. package/cdn/chunks/chunk.UGZJH6OO.js +0 -11
  1254. package/cdn/chunks/chunk.UHN2CK7K.js +0 -25
  1255. package/cdn/chunks/chunk.ULJSHWM3.js +0 -305
  1256. package/cdn/chunks/chunk.UWDF7LAT.js +0 -276
  1257. package/cdn/chunks/chunk.UXGLUGIV.js +0 -2633
  1258. package/cdn/chunks/chunk.VCGIIHZH.js +0 -24
  1259. package/cdn/chunks/chunk.VD4I3LHH.js +0 -235
  1260. package/cdn/chunks/chunk.VHLXNLVN.js +0 -24
  1261. package/cdn/chunks/chunk.VHOW3XCT.js +0 -11
  1262. package/cdn/chunks/chunk.VMDMTAL4.js +0 -24
  1263. package/cdn/chunks/chunk.VNZ5HHRG.js +0 -21
  1264. package/cdn/chunks/chunk.VSSL2HFP.js +0 -24
  1265. package/cdn/chunks/chunk.VXVRLGPO.js +0 -24
  1266. package/cdn/chunks/chunk.W3OWXXQI.js +0 -379
  1267. package/cdn/chunks/chunk.W7SOFS4W.js +0 -25
  1268. package/cdn/chunks/chunk.W7VOMXA7.js +0 -24
  1269. package/cdn/chunks/chunk.WEMGVXK2.js +0 -11
  1270. package/cdn/chunks/chunk.WNH4STYM.js +0 -11
  1271. package/cdn/chunks/chunk.WNVLZ7UG.js +0 -26
  1272. package/cdn/chunks/chunk.WSPY5FEI.js +0 -21
  1273. package/cdn/chunks/chunk.WTSG4R7M.js +0 -11
  1274. package/cdn/chunks/chunk.WU26BNP5.js +0 -75
  1275. package/cdn/chunks/chunk.X26BLASF.js +0 -11
  1276. package/cdn/chunks/chunk.X33D5LAK.js +0 -21
  1277. package/cdn/chunks/chunk.XBMU5PCY.js +0 -11
  1278. package/cdn/chunks/chunk.XBTF3Z4S.js +0 -199
  1279. package/cdn/chunks/chunk.XNS6Q2PC.js +0 -11
  1280. package/cdn/chunks/chunk.Y7SOSJE3.js +0 -21
  1281. package/cdn/chunks/chunk.YKMPY3KN.js +0 -11
  1282. package/cdn/chunks/chunk.YNJ6HSBY.js +0 -24
  1283. package/cdn/chunks/chunk.YXCYZXMA.js +0 -21
  1284. package/cdn/chunks/chunk.YXZ5U4IO.js +0 -292
  1285. package/cdn/chunks/chunk.YZR37QXJ.js +0 -11
  1286. package/cdn/chunks/chunk.Z6PBJU2O.js +0 -11
  1287. package/cdn/chunks/chunk.ZBSZHSIJ.js +0 -186
  1288. package/cdn/chunks/chunk.ZDMT2RFB.js +0 -127
  1289. package/cdn/chunks/chunk.ZF5AOQDY.js +0 -142
  1290. package/cdn/chunks/chunk.ZI2CMZQ4.js +0 -11
  1291. package/cdn/chunks/chunk.ZM4KPLPO.js +0 -21
  1292. package/cdn/chunks/chunk.ZQ7VGR4T.js +0 -24
  1293. package/cdn/chunks/chunk.ZQP3HQ76.js +0 -25
  1294. package/cdn/chunks/chunk.ZSUB5RE3.js +0 -331
  1295. package/cdn/chunks/chunk.ZTHRKBYR.js +0 -21
  1296. package/dist/chunks/chunk.2D4YWCGQ.js +0 -348
  1297. package/dist/chunks/chunk.2EWZC3RM.js +0 -11
  1298. package/dist/chunks/chunk.2GDZOFPJ.js +0 -11
  1299. package/dist/chunks/chunk.2PZHBOIJ.js +0 -25
  1300. package/dist/chunks/chunk.2SFSBFXI.js +0 -581
  1301. package/dist/chunks/chunk.2ZBFMLI4.js +0 -25
  1302. package/dist/chunks/chunk.326ZCNPT.js +0 -29
  1303. package/dist/chunks/chunk.34K5P7TE.js +0 -21
  1304. package/dist/chunks/chunk.36CXXRBC.js +0 -11
  1305. package/dist/chunks/chunk.3EOJVTR3.js +0 -299
  1306. package/dist/chunks/chunk.3F5HQ6QO.js +0 -29
  1307. package/dist/chunks/chunk.3JEHCQQI.js +0 -63
  1308. package/dist/chunks/chunk.3LMVELAG.js +0 -11
  1309. package/dist/chunks/chunk.3R5QVIV4.js +0 -59
  1310. package/dist/chunks/chunk.3UQFPU3V.js +0 -11
  1311. package/dist/chunks/chunk.42FMM4BQ.js +0 -11
  1312. package/dist/chunks/chunk.44JEPAL7.js +0 -230
  1313. package/dist/chunks/chunk.4M3YFPEL.js +0 -28
  1314. package/dist/chunks/chunk.4TUTWGUS.js +0 -282
  1315. package/dist/chunks/chunk.5CCRURSA.js +0 -11
  1316. package/dist/chunks/chunk.5MXYXZYJ.js +0 -111
  1317. package/dist/chunks/chunk.5N2JSS6D.js +0 -91
  1318. package/dist/chunks/chunk.5P2AOZOQ.js +0 -263
  1319. package/dist/chunks/chunk.5QB52CLS.js +0 -21
  1320. package/dist/chunks/chunk.5RKGAROL.js +0 -21
  1321. package/dist/chunks/chunk.5VSX47IK.js +0 -11
  1322. package/dist/chunks/chunk.62PPIX6G.js +0 -170
  1323. package/dist/chunks/chunk.6ASDLCOC.js +0 -502
  1324. package/dist/chunks/chunk.6HOMO5VG.js +0 -11
  1325. package/dist/chunks/chunk.6IAQIMWW.js +0 -361
  1326. package/dist/chunks/chunk.6IYXMCQA.js +0 -11
  1327. package/dist/chunks/chunk.6K26DTJM.js +0 -11
  1328. package/dist/chunks/chunk.6UC2MM4S.js +0 -25
  1329. package/dist/chunks/chunk.6WI66GJI.js +0 -24
  1330. package/dist/chunks/chunk.6XKGUMFD.js +0 -212
  1331. package/dist/chunks/chunk.77UJUJDW.js +0 -11
  1332. package/dist/chunks/chunk.7A2JIQUX.js +0 -26
  1333. package/dist/chunks/chunk.7B5UG72X.js +0 -25
  1334. package/dist/chunks/chunk.7CAAJCAX.js +0 -194
  1335. package/dist/chunks/chunk.7KB7UMAN.js +0 -227
  1336. package/dist/chunks/chunk.7QFAULV4.js +0 -11
  1337. package/dist/chunks/chunk.7QVYX6LI.js +0 -24
  1338. package/dist/chunks/chunk.7UEEODQF.js +0 -21
  1339. package/dist/chunks/chunk.7YR3H6B6.js +0 -22
  1340. package/dist/chunks/chunk.A7NSL63L.js +0 -11
  1341. package/dist/chunks/chunk.AI3HPNKQ.js +0 -24
  1342. package/dist/chunks/chunk.ASAP6552.js +0 -384
  1343. package/dist/chunks/chunk.AU2MFSXC.js +0 -33
  1344. package/dist/chunks/chunk.AULWHS7V.js +0 -29
  1345. package/dist/chunks/chunk.B247G73B.js +0 -28
  1346. package/dist/chunks/chunk.B46FYGYM.js +0 -21
  1347. package/dist/chunks/chunk.BCU7JUUV.js +0 -11
  1348. package/dist/chunks/chunk.BDRAFNIC.js +0 -21
  1349. package/dist/chunks/chunk.BKC4QVVE.js +0 -11
  1350. package/dist/chunks/chunk.BM5GVW64.js +0 -11
  1351. package/dist/chunks/chunk.BOMJQM7R.js +0 -11
  1352. package/dist/chunks/chunk.C34RVOYS.js +0 -25
  1353. package/dist/chunks/chunk.C3ZCM67T.js +0 -113
  1354. package/dist/chunks/chunk.C6E2FFYP.js +0 -100
  1355. package/dist/chunks/chunk.C7D3U7GQ.js +0 -11
  1356. package/dist/chunks/chunk.CAGNTTD7.js +0 -29
  1357. package/dist/chunks/chunk.CBNNTJDO.js +0 -504
  1358. package/dist/chunks/chunk.CBSQ2AZG.js +0 -11
  1359. package/dist/chunks/chunk.CCPNYMJ4.js +0 -27
  1360. package/dist/chunks/chunk.CKJSRXPF.js +0 -11
  1361. package/dist/chunks/chunk.CLTNF3IB.js +0 -167
  1362. package/dist/chunks/chunk.CTOP44ZI.js +0 -883
  1363. package/dist/chunks/chunk.CWQO3FGB.js +0 -11
  1364. package/dist/chunks/chunk.CWTPB6BF.js +0 -11
  1365. package/dist/chunks/chunk.DC7JHY44.js +0 -1250
  1366. package/dist/chunks/chunk.DCJG2X3G.js +0 -444
  1367. package/dist/chunks/chunk.DERNJZLA.js +0 -80
  1368. package/dist/chunks/chunk.DK37NZTT.js +0 -111
  1369. package/dist/chunks/chunk.DKSTPHRB.js +0 -109
  1370. package/dist/chunks/chunk.DLKKOHSW.js +0 -52
  1371. package/dist/chunks/chunk.DNZV5AGK.js +0 -21
  1372. package/dist/chunks/chunk.E6O4XMLX.js +0 -11
  1373. package/dist/chunks/chunk.E7FGRETF.js +0 -27
  1374. package/dist/chunks/chunk.E7VQWTXG.js +0 -293
  1375. package/dist/chunks/chunk.EDUWGI5Z.js +0 -11
  1376. package/dist/chunks/chunk.EHDNLGWZ.js +0 -11
  1377. package/dist/chunks/chunk.ELCJQU6R.js +0 -26
  1378. package/dist/chunks/chunk.ELYVDGNQ.js +0 -125
  1379. package/dist/chunks/chunk.ENTKDJE4.js +0 -85
  1380. package/dist/chunks/chunk.EWE4TJ5U.js +0 -147
  1381. package/dist/chunks/chunk.EZF5TOEZ.js +0 -311
  1382. package/dist/chunks/chunk.F5JFGS3M.js +0 -214
  1383. package/dist/chunks/chunk.FB77UGMS.js +0 -11
  1384. package/dist/chunks/chunk.FLHWRE76.js +0 -11
  1385. package/dist/chunks/chunk.FNDGLTR3.js +0 -29
  1386. package/dist/chunks/chunk.FQQZOR5S.js +0 -21
  1387. package/dist/chunks/chunk.FS24VMPY.js +0 -21
  1388. package/dist/chunks/chunk.FZSN3VJM.js +0 -188
  1389. package/dist/chunks/chunk.G7KWW3RK.js +0 -26
  1390. package/dist/chunks/chunk.GDG2OQL4.js +0 -11
  1391. package/dist/chunks/chunk.GE6IC7AM.js +0 -11
  1392. package/dist/chunks/chunk.GFT5UP3U.js +0 -430
  1393. package/dist/chunks/chunk.GHKP2M6A.js +0 -21
  1394. package/dist/chunks/chunk.GJS3TLNN.js +0 -11
  1395. package/dist/chunks/chunk.GNKQWOV6.js +0 -75
  1396. package/dist/chunks/chunk.GSEUG76Z.js +0 -75
  1397. package/dist/chunks/chunk.GYKWKJXW.js +0 -24
  1398. package/dist/chunks/chunk.H2PNXSO3.js +0 -335
  1399. package/dist/chunks/chunk.HA4Z2KBG.js +0 -25
  1400. package/dist/chunks/chunk.HDQIUYSK.js +0 -11
  1401. package/dist/chunks/chunk.HGGXU6QM.js +0 -21
  1402. package/dist/chunks/chunk.HIPEF6ZC.js +0 -11
  1403. package/dist/chunks/chunk.HM3454D3.js +0 -45
  1404. package/dist/chunks/chunk.HM6NWL2D.js +0 -11
  1405. package/dist/chunks/chunk.HXEB3KNM.js +0 -24
  1406. package/dist/chunks/chunk.HY7X44X6.js +0 -25
  1407. package/dist/chunks/chunk.IAP63OZF.js +0 -11
  1408. package/dist/chunks/chunk.IDJBIZOP.js +0 -417
  1409. package/dist/chunks/chunk.IIU6Y6G6.js +0 -21
  1410. package/dist/chunks/chunk.IMISO3SU.js +0 -28
  1411. package/dist/chunks/chunk.IOXC2C3T.js +0 -24
  1412. package/dist/chunks/chunk.IRPCKOGS.js +0 -96
  1413. package/dist/chunks/chunk.IV6EONBE.js +0 -11
  1414. package/dist/chunks/chunk.IX3TNPYO.js +0 -11
  1415. package/dist/chunks/chunk.IYJGPC2V.js +0 -324
  1416. package/dist/chunks/chunk.JCZFMQSU.js +0 -27
  1417. package/dist/chunks/chunk.JFMXBHMA.js +0 -231
  1418. package/dist/chunks/chunk.JGS3DB64.js +0 -337
  1419. package/dist/chunks/chunk.JJNUUIPW.js +0 -11
  1420. package/dist/chunks/chunk.JKXVBLNO.js +0 -67
  1421. package/dist/chunks/chunk.JMUA3ZCK.js +0 -151
  1422. package/dist/chunks/chunk.JXTD7NST.js +0 -209
  1423. package/dist/chunks/chunk.JXWC4M3R.js +0 -11
  1424. package/dist/chunks/chunk.JZRI6HYF.js +0 -306
  1425. package/dist/chunks/chunk.KFKSSBEE.js +0 -11
  1426. package/dist/chunks/chunk.KHHEPHQQ.js +0 -11
  1427. package/dist/chunks/chunk.KHLZJMUO.js +0 -28
  1428. package/dist/chunks/chunk.KQEVYIU5.js +0 -21
  1429. package/dist/chunks/chunk.KSQCGNJU.js +0 -21
  1430. package/dist/chunks/chunk.KUQNBOLT.js +0 -24
  1431. package/dist/chunks/chunk.KW42745V.js +0 -119
  1432. package/dist/chunks/chunk.KWXIVEXW.js +0 -11
  1433. package/dist/chunks/chunk.L2OTX37Z.js +0 -11
  1434. package/dist/chunks/chunk.LCODDMFP.js +0 -21
  1435. package/dist/chunks/chunk.LIDYYFFK.js +0 -550
  1436. package/dist/chunks/chunk.LJMAKA7X.js +0 -11
  1437. package/dist/chunks/chunk.LNE4VK2R.js +0 -24
  1438. package/dist/chunks/chunk.LNXSZZ63.js +0 -27
  1439. package/dist/chunks/chunk.LPHD63K6.js +0 -11
  1440. package/dist/chunks/chunk.LPLC7E2S.js +0 -21
  1441. package/dist/chunks/chunk.LSREPBBD.js +0 -11
  1442. package/dist/chunks/chunk.LZ4EBW7M.js +0 -45
  1443. package/dist/chunks/chunk.M4PPFOZR.js +0 -11
  1444. package/dist/chunks/chunk.M7TMGN4F.js +0 -25
  1445. package/dist/chunks/chunk.MNZG3QYN.js +0 -21
  1446. package/dist/chunks/chunk.MPH2OUWY.js +0 -21
  1447. package/dist/chunks/chunk.MQCYCJXY.js +0 -11
  1448. package/dist/chunks/chunk.MYWU47HX.js +0 -192
  1449. package/dist/chunks/chunk.NEQAEU4I.js +0 -93
  1450. package/dist/chunks/chunk.NGWQSTG5.js +0 -28
  1451. package/dist/chunks/chunk.NHY2JH7U.js +0 -21
  1452. package/dist/chunks/chunk.NI2EZKZO.js +0 -448
  1453. package/dist/chunks/chunk.NO6UF5ZX.js +0 -11
  1454. package/dist/chunks/chunk.NPOUXC5A.js +0 -11
  1455. package/dist/chunks/chunk.NRKMQMNA.js +0 -25
  1456. package/dist/chunks/chunk.NU3DGHHT.js +0 -171
  1457. package/dist/chunks/chunk.NWYUCIND.js +0 -11
  1458. package/dist/chunks/chunk.O276SBPJ.js +0 -21
  1459. package/dist/chunks/chunk.O5D3V5MJ.js +0 -21
  1460. package/dist/chunks/chunk.O5D5GKTN.js +0 -21
  1461. package/dist/chunks/chunk.OEBUXN7K.js +0 -24
  1462. package/dist/chunks/chunk.OG26Y6JB.js +0 -397
  1463. package/dist/chunks/chunk.OIJEPSKQ.js +0 -11
  1464. package/dist/chunks/chunk.OQM42FXM.js +0 -11
  1465. package/dist/chunks/chunk.OSUERHY7.js +0 -11
  1466. package/dist/chunks/chunk.PGRRKGGX.js +0 -34
  1467. package/dist/chunks/chunk.PHCI2LIK.js +0 -24
  1468. package/dist/chunks/chunk.POIKCDNZ.js +0 -27
  1469. package/dist/chunks/chunk.PTNEFPGH.js +0 -24
  1470. package/dist/chunks/chunk.PZ3ZY6RB.js +0 -11
  1471. package/dist/chunks/chunk.QGOBDEBM.js +0 -11
  1472. package/dist/chunks/chunk.QNWKFTOA.js +0 -280
  1473. package/dist/chunks/chunk.QVFT7XPU.js +0 -90
  1474. package/dist/chunks/chunk.QZ7L3RTP.js +0 -11
  1475. package/dist/chunks/chunk.R3CV6P6G.js +0 -100
  1476. package/dist/chunks/chunk.RC6RUUSE.js +0 -247
  1477. package/dist/chunks/chunk.RH2WRU5V.js +0 -21
  1478. package/dist/chunks/chunk.RQOUIMQN.js +0 -11
  1479. package/dist/chunks/chunk.RVUS5QNB.js +0 -21
  1480. package/dist/chunks/chunk.RY2YFEAO.js +0 -1195
  1481. package/dist/chunks/chunk.RZLGXUY3.js +0 -73
  1482. package/dist/chunks/chunk.SMAYG7QZ.js +0 -126
  1483. package/dist/chunks/chunk.SQEMCFH5.js +0 -371
  1484. package/dist/chunks/chunk.SQHU575K.js +0 -21
  1485. package/dist/chunks/chunk.SREZYYB6.js +0 -21
  1486. package/dist/chunks/chunk.SZES7OHH.js +0 -25
  1487. package/dist/chunks/chunk.T22L7DQH.js +0 -11
  1488. package/dist/chunks/chunk.T4BGRVRW.js +0 -302
  1489. package/dist/chunks/chunk.T572QOR6.js +0 -22
  1490. package/dist/chunks/chunk.TCOOFMSQ.js +0 -24
  1491. package/dist/chunks/chunk.TJVWQV4X.js +0 -11
  1492. package/dist/chunks/chunk.TVHUFH2B.js +0 -11
  1493. package/dist/chunks/chunk.U2MEP6GZ.js +0 -949
  1494. package/dist/chunks/chunk.U4CKSR64.js +0 -11
  1495. package/dist/chunks/chunk.U6XOWMFM.js +0 -11
  1496. package/dist/chunks/chunk.UHEOE6ZB.js +0 -21
  1497. package/dist/chunks/chunk.UIUH752C.js +0 -25
  1498. package/dist/chunks/chunk.UKSARSXS.js +0 -598
  1499. package/dist/chunks/chunk.UUWZOUPD.js +0 -26
  1500. package/dist/chunks/chunk.UVQN5HRH.js +0 -11
  1501. package/dist/chunks/chunk.VDQOGUOP.js +0 -181
  1502. package/dist/chunks/chunk.VEHY7WU3.js +0 -11
  1503. package/dist/chunks/chunk.VJSURCY2.js +0 -154
  1504. package/dist/chunks/chunk.VXEMLPKO.js +0 -294
  1505. package/dist/chunks/chunk.W3WVX2FQ.js +0 -21
  1506. package/dist/chunks/chunk.W6RIJA2R.js +0 -11
  1507. package/dist/chunks/chunk.WFUGADAK.js +0 -11
  1508. package/dist/chunks/chunk.WGPCLQ5V.js +0 -135
  1509. package/dist/chunks/chunk.WLCNJI26.js +0 -24
  1510. package/dist/chunks/chunk.WSOAWDBE.js +0 -814
  1511. package/dist/chunks/chunk.X2VV6HUV.js +0 -117
  1512. package/dist/chunks/chunk.X3U5PH2T.js +0 -42
  1513. package/dist/chunks/chunk.XHLG74NJ.js +0 -315
  1514. package/dist/chunks/chunk.XKFWARHW.js +0 -286
  1515. package/dist/chunks/chunk.XKGHJK4A.js +0 -57
  1516. package/dist/chunks/chunk.XRUS7ICV.js +0 -11
  1517. package/dist/chunks/chunk.XUIWRDZO.js +0 -11
  1518. package/dist/chunks/chunk.Y5X2XH3E.js +0 -134
  1519. package/dist/chunks/chunk.Y75655YZ.js +0 -11
  1520. package/dist/chunks/chunk.YBBY3I5B.js +0 -27
  1521. package/dist/chunks/chunk.YBDT2XDH.js +0 -29
  1522. package/dist/chunks/chunk.YCSDYZGS.js +0 -11
  1523. package/dist/chunks/chunk.YI2XO45V.js +0 -21
  1524. package/dist/chunks/chunk.YPUZWDE2.js +0 -274
  1525. package/dist/chunks/chunk.YPZJI6A2.js +0 -11
  1526. package/dist/chunks/chunk.Z73PK27Y.js +0 -116
  1527. package/dist/chunks/chunk.Z7D7FMEI.js +0 -24
  1528. package/dist/chunks/chunk.ZEFLNYTO.js +0 -213
  1529. package/dist/chunks/chunk.ZTQOB6A3.js +0 -24
  1530. package/dist/chunks/chunk.ZYP6KEEA.js +0 -50
  1531. package/dist/chunks/chunk.ZZHXVWHM.js +0 -126
@@ -1,2633 +0,0 @@
1
- import {
2
- e
3
- } from "./chunk.OVNPI46I.js";
4
- import {
5
- b
6
- } from "./chunk.7Z2GKZ7U.js";
7
-
8
- // node_modules/sortablejs/modular/sortable.esm.js
9
- function _defineProperty(e2, r, t) {
10
- return (r = _toPropertyKey(r)) in e2 ? Object.defineProperty(e2, r, {
11
- value: t,
12
- enumerable: true,
13
- configurable: true,
14
- writable: true
15
- }) : e2[r] = t, e2;
16
- }
17
- function _extends() {
18
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
19
- for (var e2 = 1; e2 < arguments.length; e2++) {
20
- var t = arguments[e2];
21
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
22
- }
23
- return n;
24
- }, _extends.apply(null, arguments);
25
- }
26
- function ownKeys(e2, r) {
27
- var t = Object.keys(e2);
28
- if (Object.getOwnPropertySymbols) {
29
- var o = Object.getOwnPropertySymbols(e2);
30
- r && (o = o.filter(function(r2) {
31
- return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
32
- })), t.push.apply(t, o);
33
- }
34
- return t;
35
- }
36
- function _objectSpread2(e2) {
37
- for (var r = 1; r < arguments.length; r++) {
38
- var t = null != arguments[r] ? arguments[r] : {};
39
- r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
40
- _defineProperty(e2, r2, t[r2]);
41
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
42
- Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t, r2));
43
- });
44
- }
45
- return e2;
46
- }
47
- function _objectWithoutProperties(e2, t) {
48
- if (null == e2) return {};
49
- var o, r, i = _objectWithoutPropertiesLoose(e2, t);
50
- if (Object.getOwnPropertySymbols) {
51
- var n = Object.getOwnPropertySymbols(e2);
52
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e2, o) && (i[o] = e2[o]);
53
- }
54
- return i;
55
- }
56
- function _objectWithoutPropertiesLoose(r, e2) {
57
- if (null == r) return {};
58
- var t = {};
59
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
60
- if (-1 !== e2.indexOf(n)) continue;
61
- t[n] = r[n];
62
- }
63
- return t;
64
- }
65
- function _toPrimitive(t, r) {
66
- if ("object" != typeof t || !t) return t;
67
- var e2 = t[Symbol.toPrimitive];
68
- if (void 0 !== e2) {
69
- var i = e2.call(t, r || "default");
70
- if ("object" != typeof i) return i;
71
- throw new TypeError("@@toPrimitive must return a primitive value.");
72
- }
73
- return ("string" === r ? String : Number)(t);
74
- }
75
- function _toPropertyKey(t) {
76
- var i = _toPrimitive(t, "string");
77
- return "symbol" == typeof i ? i : i + "";
78
- }
79
- function _typeof(o) {
80
- "@babel/helpers - typeof";
81
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
82
- return typeof o2;
83
- } : function(o2) {
84
- return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
85
- }, _typeof(o);
86
- }
87
- var version = "1.15.7";
88
- function userAgent(pattern) {
89
- if (typeof window !== "undefined" && window.navigator) {
90
- return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
91
- }
92
- }
93
- var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
94
- var Edge = userAgent(/Edge/i);
95
- var FireFox = userAgent(/firefox/i);
96
- var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
97
- var IOS = userAgent(/iP(ad|od|hone)/i);
98
- var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
99
- var captureMode = {
100
- capture: false,
101
- passive: false
102
- };
103
- function on(el, event, fn) {
104
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
105
- }
106
- function off(el, event, fn) {
107
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
108
- }
109
- function matches(el, selector) {
110
- if (!selector) return;
111
- selector[0] === ">" && (selector = selector.substring(1));
112
- if (el) {
113
- try {
114
- if (el.matches) {
115
- return el.matches(selector);
116
- } else if (el.msMatchesSelector) {
117
- return el.msMatchesSelector(selector);
118
- } else if (el.webkitMatchesSelector) {
119
- return el.webkitMatchesSelector(selector);
120
- }
121
- } catch (_) {
122
- return false;
123
- }
124
- }
125
- return false;
126
- }
127
- function getParentOrHost(el) {
128
- return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
129
- }
130
- function closest(el, selector, ctx, includeCTX) {
131
- if (el) {
132
- ctx = ctx || document;
133
- do {
134
- if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
135
- return el;
136
- }
137
- if (el === ctx) break;
138
- } while (el = getParentOrHost(el));
139
- }
140
- return null;
141
- }
142
- var R_SPACE = /\s+/g;
143
- function toggleClass(el, name, state) {
144
- if (el && name) {
145
- if (el.classList) {
146
- el.classList[state ? "add" : "remove"](name);
147
- } else {
148
- var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
149
- el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
150
- }
151
- }
152
- }
153
- function css(el, prop, val) {
154
- var style = el && el.style;
155
- if (style) {
156
- if (val === void 0) {
157
- if (document.defaultView && document.defaultView.getComputedStyle) {
158
- val = document.defaultView.getComputedStyle(el, "");
159
- } else if (el.currentStyle) {
160
- val = el.currentStyle;
161
- }
162
- return prop === void 0 ? val : val[prop];
163
- } else {
164
- if (!(prop in style) && prop.indexOf("webkit") === -1) {
165
- prop = "-webkit-" + prop;
166
- }
167
- style[prop] = val + (typeof val === "string" ? "" : "px");
168
- }
169
- }
170
- }
171
- function matrix(el, selfOnly) {
172
- var appliedTransforms = "";
173
- if (typeof el === "string") {
174
- appliedTransforms = el;
175
- } else {
176
- do {
177
- var transform = css(el, "transform");
178
- if (transform && transform !== "none") {
179
- appliedTransforms = transform + " " + appliedTransforms;
180
- }
181
- } while (!selfOnly && (el = el.parentNode));
182
- }
183
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
184
- return matrixFn && new matrixFn(appliedTransforms);
185
- }
186
- function find(ctx, tagName, iterator) {
187
- if (ctx) {
188
- var list = ctx.getElementsByTagName(tagName), i = 0, n = list.length;
189
- if (iterator) {
190
- for (; i < n; i++) {
191
- iterator(list[i], i);
192
- }
193
- }
194
- return list;
195
- }
196
- return [];
197
- }
198
- function getWindowScrollingElement() {
199
- var scrollingElement = document.scrollingElement;
200
- if (scrollingElement) {
201
- return scrollingElement;
202
- } else {
203
- return document.documentElement;
204
- }
205
- }
206
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
207
- if (!el.getBoundingClientRect && el !== window) return;
208
- var elRect, top, left, bottom, right, height, width;
209
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
210
- elRect = el.getBoundingClientRect();
211
- top = elRect.top;
212
- left = elRect.left;
213
- bottom = elRect.bottom;
214
- right = elRect.right;
215
- height = elRect.height;
216
- width = elRect.width;
217
- } else {
218
- top = 0;
219
- left = 0;
220
- bottom = window.innerHeight;
221
- right = window.innerWidth;
222
- height = window.innerHeight;
223
- width = window.innerWidth;
224
- }
225
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
226
- container = container || el.parentNode;
227
- if (!IE11OrLess) {
228
- do {
229
- if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
230
- var containerRect = container.getBoundingClientRect();
231
- top -= containerRect.top + parseInt(css(container, "border-top-width"));
232
- left -= containerRect.left + parseInt(css(container, "border-left-width"));
233
- bottom = top + elRect.height;
234
- right = left + elRect.width;
235
- break;
236
- }
237
- } while (container = container.parentNode);
238
- }
239
- }
240
- if (undoScale && el !== window) {
241
- var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
242
- if (elMatrix) {
243
- top /= scaleY;
244
- left /= scaleX;
245
- width /= scaleX;
246
- height /= scaleY;
247
- bottom = top + height;
248
- right = left + width;
249
- }
250
- }
251
- return {
252
- top,
253
- left,
254
- bottom,
255
- right,
256
- width,
257
- height
258
- };
259
- }
260
- function isScrolledPast(el, elSide, parentSide) {
261
- var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
262
- while (parent) {
263
- var parentSideVal = getRect(parent)[parentSide], visible = void 0;
264
- if (parentSide === "top" || parentSide === "left") {
265
- visible = elSideVal >= parentSideVal;
266
- } else {
267
- visible = elSideVal <= parentSideVal;
268
- }
269
- if (!visible) return parent;
270
- if (parent === getWindowScrollingElement()) break;
271
- parent = getParentAutoScrollElement(parent, false);
272
- }
273
- return false;
274
- }
275
- function getChild(el, childNum, options, includeDragEl) {
276
- var currentChild = 0, i = 0, children = el.children;
277
- while (i < children.length) {
278
- if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
279
- if (currentChild === childNum) {
280
- return children[i];
281
- }
282
- currentChild++;
283
- }
284
- i++;
285
- }
286
- return null;
287
- }
288
- function lastChild(el, selector) {
289
- var last = el.lastElementChild;
290
- while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
291
- last = last.previousElementSibling;
292
- }
293
- return last || null;
294
- }
295
- function index(el, selector) {
296
- var index2 = 0;
297
- if (!el || !el.parentNode) {
298
- return -1;
299
- }
300
- while (el = el.previousElementSibling) {
301
- if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
302
- index2++;
303
- }
304
- }
305
- return index2;
306
- }
307
- function getRelativeScrollOffset(el) {
308
- var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
309
- if (el) {
310
- do {
311
- var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
312
- offsetLeft += el.scrollLeft * scaleX;
313
- offsetTop += el.scrollTop * scaleY;
314
- } while (el !== winScroller && (el = el.parentNode));
315
- }
316
- return [offsetLeft, offsetTop];
317
- }
318
- function indexOfObject(arr, obj) {
319
- for (var i in arr) {
320
- if (!arr.hasOwnProperty(i)) continue;
321
- for (var key in obj) {
322
- if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
323
- }
324
- }
325
- return -1;
326
- }
327
- function getParentAutoScrollElement(el, includeSelf) {
328
- if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
329
- var elem = el;
330
- var gotSelf = false;
331
- do {
332
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
333
- var elemCSS = css(elem);
334
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
335
- if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
336
- if (gotSelf || includeSelf) return elem;
337
- gotSelf = true;
338
- }
339
- }
340
- } while (elem = elem.parentNode);
341
- return getWindowScrollingElement();
342
- }
343
- function extend(dst, src) {
344
- if (dst && src) {
345
- for (var key in src) {
346
- if (src.hasOwnProperty(key)) {
347
- dst[key] = src[key];
348
- }
349
- }
350
- }
351
- return dst;
352
- }
353
- function isRectEqual(rect1, rect2) {
354
- return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
355
- }
356
- var _throttleTimeout;
357
- function throttle(callback, ms) {
358
- return function() {
359
- if (!_throttleTimeout) {
360
- var args = arguments, _this = this;
361
- if (args.length === 1) {
362
- callback.call(_this, args[0]);
363
- } else {
364
- callback.apply(_this, args);
365
- }
366
- _throttleTimeout = setTimeout(function() {
367
- _throttleTimeout = void 0;
368
- }, ms);
369
- }
370
- };
371
- }
372
- function cancelThrottle() {
373
- clearTimeout(_throttleTimeout);
374
- _throttleTimeout = void 0;
375
- }
376
- function scrollBy(el, x, y) {
377
- el.scrollLeft += x;
378
- el.scrollTop += y;
379
- }
380
- function clone(el) {
381
- var Polymer = window.Polymer;
382
- var $ = window.jQuery || window.Zepto;
383
- if (Polymer && Polymer.dom) {
384
- return Polymer.dom(el).cloneNode(true);
385
- } else if ($) {
386
- return $(el).clone(true)[0];
387
- } else {
388
- return el.cloneNode(true);
389
- }
390
- }
391
- function getChildContainingRectFromElement(container, options, ghostEl2) {
392
- var rect = {};
393
- Array.from(container.children).forEach(function(child) {
394
- var _rect$left, _rect$top, _rect$right, _rect$bottom;
395
- if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl2) return;
396
- var childRect = getRect(child);
397
- rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
398
- rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
399
- rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
400
- rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
401
- });
402
- rect.width = rect.right - rect.left;
403
- rect.height = rect.bottom - rect.top;
404
- rect.x = rect.left;
405
- rect.y = rect.top;
406
- return rect;
407
- }
408
- var expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
409
- function AnimationStateManager() {
410
- var animationStates = [], animationCallbackId;
411
- return {
412
- captureAnimationState: function captureAnimationState() {
413
- animationStates = [];
414
- if (!this.options.animation) return;
415
- var children = [].slice.call(this.el.children);
416
- children.forEach(function(child) {
417
- if (css(child, "display") === "none" || child === Sortable.ghost) return;
418
- animationStates.push({
419
- target: child,
420
- rect: getRect(child)
421
- });
422
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
423
- if (child.thisAnimationDuration) {
424
- var childMatrix = matrix(child, true);
425
- if (childMatrix) {
426
- fromRect.top -= childMatrix.f;
427
- fromRect.left -= childMatrix.e;
428
- }
429
- }
430
- child.fromRect = fromRect;
431
- });
432
- },
433
- addAnimationState: function addAnimationState(state) {
434
- animationStates.push(state);
435
- },
436
- removeAnimationState: function removeAnimationState(target) {
437
- animationStates.splice(indexOfObject(animationStates, {
438
- target
439
- }), 1);
440
- },
441
- animateAll: function animateAll(callback) {
442
- var _this = this;
443
- if (!this.options.animation) {
444
- clearTimeout(animationCallbackId);
445
- if (typeof callback === "function") callback();
446
- return;
447
- }
448
- var animating = false, animationTime = 0;
449
- animationStates.forEach(function(state) {
450
- var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true);
451
- if (targetMatrix) {
452
- toRect.top -= targetMatrix.f;
453
- toRect.left -= targetMatrix.e;
454
- }
455
- target.toRect = toRect;
456
- if (target.thisAnimationDuration) {
457
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
458
- (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
459
- time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
460
- }
461
- }
462
- if (!isRectEqual(toRect, fromRect)) {
463
- target.prevFromRect = fromRect;
464
- target.prevToRect = toRect;
465
- if (!time) {
466
- time = _this.options.animation;
467
- }
468
- _this.animate(target, animatingRect, toRect, time);
469
- }
470
- if (time) {
471
- animating = true;
472
- animationTime = Math.max(animationTime, time);
473
- clearTimeout(target.animationResetTimer);
474
- target.animationResetTimer = setTimeout(function() {
475
- target.animationTime = 0;
476
- target.prevFromRect = null;
477
- target.fromRect = null;
478
- target.prevToRect = null;
479
- target.thisAnimationDuration = null;
480
- }, time);
481
- target.thisAnimationDuration = time;
482
- }
483
- });
484
- clearTimeout(animationCallbackId);
485
- if (!animating) {
486
- if (typeof callback === "function") callback();
487
- } else {
488
- animationCallbackId = setTimeout(function() {
489
- if (typeof callback === "function") callback();
490
- }, animationTime);
491
- }
492
- animationStates = [];
493
- },
494
- animate: function animate(target, currentRect, toRect, duration) {
495
- if (duration) {
496
- css(target, "transition", "");
497
- css(target, "transform", "");
498
- var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
499
- target.animatingX = !!translateX;
500
- target.animatingY = !!translateY;
501
- css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
502
- this.forRepaintDummy = repaint(target);
503
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
504
- css(target, "transform", "translate3d(0,0,0)");
505
- typeof target.animated === "number" && clearTimeout(target.animated);
506
- target.animated = setTimeout(function() {
507
- css(target, "transition", "");
508
- css(target, "transform", "");
509
- target.animated = false;
510
- target.animatingX = false;
511
- target.animatingY = false;
512
- }, duration);
513
- }
514
- }
515
- };
516
- }
517
- function repaint(target) {
518
- return target.offsetWidth;
519
- }
520
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
521
- return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
522
- }
523
- var plugins = [];
524
- var defaults = {
525
- initializeByDefault: true
526
- };
527
- var PluginManager = {
528
- mount: function mount(plugin) {
529
- for (var option2 in defaults) {
530
- if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
531
- plugin[option2] = defaults[option2];
532
- }
533
- }
534
- plugins.forEach(function(p) {
535
- if (p.pluginName === plugin.pluginName) {
536
- throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
537
- }
538
- });
539
- plugins.push(plugin);
540
- },
541
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
542
- var _this = this;
543
- this.eventCanceled = false;
544
- evt.cancel = function() {
545
- _this.eventCanceled = true;
546
- };
547
- var eventNameGlobal = eventName + "Global";
548
- plugins.forEach(function(plugin) {
549
- if (!sortable[plugin.pluginName]) return;
550
- if (sortable[plugin.pluginName][eventNameGlobal]) {
551
- sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
552
- sortable
553
- }, evt));
554
- }
555
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
556
- sortable[plugin.pluginName][eventName](_objectSpread2({
557
- sortable
558
- }, evt));
559
- }
560
- });
561
- },
562
- initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
563
- plugins.forEach(function(plugin) {
564
- var pluginName = plugin.pluginName;
565
- if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
566
- var initialized = new plugin(sortable, el, sortable.options);
567
- initialized.sortable = sortable;
568
- initialized.options = sortable.options;
569
- sortable[pluginName] = initialized;
570
- _extends(defaults2, initialized.defaults);
571
- });
572
- for (var option2 in sortable.options) {
573
- if (!sortable.options.hasOwnProperty(option2)) continue;
574
- var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
575
- if (typeof modified !== "undefined") {
576
- sortable.options[option2] = modified;
577
- }
578
- }
579
- },
580
- getEventProperties: function getEventProperties(name, sortable) {
581
- var eventProperties = {};
582
- plugins.forEach(function(plugin) {
583
- if (typeof plugin.eventProperties !== "function") return;
584
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
585
- });
586
- return eventProperties;
587
- },
588
- modifyOption: function modifyOption(sortable, name, value) {
589
- var modifiedValue;
590
- plugins.forEach(function(plugin) {
591
- if (!sortable[plugin.pluginName]) return;
592
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
593
- modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
594
- }
595
- });
596
- return modifiedValue;
597
- }
598
- };
599
- function dispatchEvent(_ref) {
600
- var sortable = _ref.sortable, rootEl2 = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl2 = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex2 = _ref.oldIndex, newIndex2 = _ref.newIndex, oldDraggableIndex2 = _ref.oldDraggableIndex, newDraggableIndex2 = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
601
- sortable = sortable || rootEl2 && rootEl2[expando];
602
- if (!sortable) return;
603
- var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
604
- if (window.CustomEvent && !IE11OrLess && !Edge) {
605
- evt = new CustomEvent(name, {
606
- bubbles: true,
607
- cancelable: true
608
- });
609
- } else {
610
- evt = document.createEvent("Event");
611
- evt.initEvent(name, true, true);
612
- }
613
- evt.to = toEl || rootEl2;
614
- evt.from = fromEl || rootEl2;
615
- evt.item = targetEl || rootEl2;
616
- evt.clone = cloneEl2;
617
- evt.oldIndex = oldIndex2;
618
- evt.newIndex = newIndex2;
619
- evt.oldDraggableIndex = oldDraggableIndex2;
620
- evt.newDraggableIndex = newDraggableIndex2;
621
- evt.originalEvent = originalEvent;
622
- evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
623
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
624
- for (var option2 in allEventProperties) {
625
- evt[option2] = allEventProperties[option2];
626
- }
627
- if (rootEl2) {
628
- rootEl2.dispatchEvent(evt);
629
- }
630
- if (options[onName]) {
631
- options[onName].call(sortable, evt);
632
- }
633
- }
634
- var _excluded = ["evt"];
635
- var pluginEvent2 = function pluginEvent3(eventName, sortable) {
636
- var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
637
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
638
- dragEl,
639
- parentEl,
640
- ghostEl,
641
- rootEl,
642
- nextEl,
643
- lastDownEl,
644
- cloneEl,
645
- cloneHidden,
646
- dragStarted: moved,
647
- putSortable,
648
- activeSortable: Sortable.active,
649
- originalEvent,
650
- oldIndex,
651
- oldDraggableIndex,
652
- newIndex,
653
- newDraggableIndex,
654
- hideGhostForTarget: _hideGhostForTarget,
655
- unhideGhostForTarget: _unhideGhostForTarget,
656
- cloneNowHidden: function cloneNowHidden() {
657
- cloneHidden = true;
658
- },
659
- cloneNowShown: function cloneNowShown() {
660
- cloneHidden = false;
661
- },
662
- dispatchSortableEvent: function dispatchSortableEvent(name) {
663
- _dispatchEvent({
664
- sortable,
665
- name,
666
- originalEvent
667
- });
668
- }
669
- }, data));
670
- };
671
- function _dispatchEvent(info) {
672
- dispatchEvent(_objectSpread2({
673
- putSortable,
674
- cloneEl,
675
- targetEl: dragEl,
676
- rootEl,
677
- oldIndex,
678
- oldDraggableIndex,
679
- newIndex,
680
- newDraggableIndex
681
- }, info));
682
- }
683
- var dragEl;
684
- var parentEl;
685
- var ghostEl;
686
- var rootEl;
687
- var nextEl;
688
- var lastDownEl;
689
- var cloneEl;
690
- var cloneHidden;
691
- var oldIndex;
692
- var newIndex;
693
- var oldDraggableIndex;
694
- var newDraggableIndex;
695
- var activeGroup;
696
- var putSortable;
697
- var awaitingDragStarted = false;
698
- var ignoreNextClick = false;
699
- var sortables = [];
700
- var tapEvt;
701
- var touchEvt;
702
- var lastDx;
703
- var lastDy;
704
- var tapDistanceLeft;
705
- var tapDistanceTop;
706
- var moved;
707
- var lastTarget;
708
- var lastDirection;
709
- var pastFirstInvertThresh = false;
710
- var isCircumstantialInvert = false;
711
- var targetMoveDistance;
712
- var ghostRelativeParent;
713
- var ghostRelativeParentInitialScroll = [];
714
- var _silent = false;
715
- var savedInputChecked = [];
716
- var documentExists = typeof document !== "undefined";
717
- var PositionGhostAbsolutely = IOS;
718
- var CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
719
- var supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
720
- var supportCssPointerEvents = function() {
721
- if (!documentExists) return;
722
- if (IE11OrLess) {
723
- return false;
724
- }
725
- var el = document.createElement("x");
726
- el.style.cssText = "pointer-events:auto";
727
- return el.style.pointerEvents === "auto";
728
- }();
729
- var _detectDirection = function _detectDirection2(el, options) {
730
- var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
731
- if (elCSS.display === "flex") {
732
- return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
733
- }
734
- if (elCSS.display === "grid") {
735
- return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
736
- }
737
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
738
- var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
739
- return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
740
- }
741
- return child1 && (firstChildCSS.display === "block" || firstChildCSS.display === "flex" || firstChildCSS.display === "table" || firstChildCSS.display === "grid" || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === "none" || child2 && elCSS[CSSFloatProperty] === "none" && firstChildWidth + secondChildWidth > elWidth) ? "vertical" : "horizontal";
742
- };
743
- var _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
744
- var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height;
745
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
746
- };
747
- var _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
748
- var ret;
749
- sortables.some(function(sortable) {
750
- var threshold = sortable[expando].options.emptyInsertThreshold;
751
- if (!threshold || lastChild(sortable)) return;
752
- var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
753
- if (insideHorizontally && insideVertically) {
754
- return ret = sortable;
755
- }
756
- });
757
- return ret;
758
- };
759
- var _prepareGroup = function _prepareGroup2(options) {
760
- function toFn(value, pull) {
761
- return function(to, from, dragEl2, evt) {
762
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
763
- if (value == null && (pull || sameGroup)) {
764
- return true;
765
- } else if (value == null || value === false) {
766
- return false;
767
- } else if (pull && value === "clone") {
768
- return value;
769
- } else if (typeof value === "function") {
770
- return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
771
- } else {
772
- var otherGroup = (pull ? to : from).options.group.name;
773
- return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
774
- }
775
- };
776
- }
777
- var group = {};
778
- var originalGroup = options.group;
779
- if (!originalGroup || _typeof(originalGroup) != "object") {
780
- originalGroup = {
781
- name: originalGroup
782
- };
783
- }
784
- group.name = originalGroup.name;
785
- group.checkPull = toFn(originalGroup.pull, true);
786
- group.checkPut = toFn(originalGroup.put);
787
- group.revertClone = originalGroup.revertClone;
788
- options.group = group;
789
- };
790
- var _hideGhostForTarget = function _hideGhostForTarget2() {
791
- if (!supportCssPointerEvents && ghostEl) {
792
- css(ghostEl, "display", "none");
793
- }
794
- };
795
- var _unhideGhostForTarget = function _unhideGhostForTarget2() {
796
- if (!supportCssPointerEvents && ghostEl) {
797
- css(ghostEl, "display", "");
798
- }
799
- };
800
- if (documentExists && !ChromeForAndroid) {
801
- document.addEventListener("click", function(evt) {
802
- if (ignoreNextClick) {
803
- evt.preventDefault();
804
- evt.stopPropagation && evt.stopPropagation();
805
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
806
- ignoreNextClick = false;
807
- return false;
808
- }
809
- }, true);
810
- }
811
- var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
812
- if (dragEl) {
813
- evt = evt.touches ? evt.touches[0] : evt;
814
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
815
- if (nearest) {
816
- var event = {};
817
- for (var i in evt) {
818
- if (evt.hasOwnProperty(i)) {
819
- event[i] = evt[i];
820
- }
821
- }
822
- event.target = event.rootEl = nearest;
823
- event.preventDefault = void 0;
824
- event.stopPropagation = void 0;
825
- nearest[expando]._onDragOver(event);
826
- }
827
- }
828
- };
829
- var _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
830
- if (dragEl) {
831
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
832
- }
833
- };
834
- function Sortable(el, options) {
835
- if (!(el && el.nodeType && el.nodeType === 1)) {
836
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
837
- }
838
- this.el = el;
839
- this.options = options = _extends({}, options);
840
- el[expando] = this;
841
- var defaults2 = {
842
- group: null,
843
- sort: true,
844
- disabled: false,
845
- store: null,
846
- handle: null,
847
- draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
848
- swapThreshold: 1,
849
- // percentage; 0 <= x <= 1
850
- invertSwap: false,
851
- // invert always
852
- invertedSwapThreshold: null,
853
- // will be set to same as swapThreshold if default
854
- removeCloneOnHide: true,
855
- direction: function direction() {
856
- return _detectDirection(el, this.options);
857
- },
858
- ghostClass: "sortable-ghost",
859
- chosenClass: "sortable-chosen",
860
- dragClass: "sortable-drag",
861
- ignore: "a, img",
862
- filter: null,
863
- preventOnFilter: true,
864
- animation: 0,
865
- easing: null,
866
- setData: function setData(dataTransfer, dragEl2) {
867
- dataTransfer.setData("Text", dragEl2.textContent);
868
- },
869
- dropBubble: false,
870
- dragoverBubble: false,
871
- dataIdAttr: "data-id",
872
- delay: 0,
873
- delayOnTouchOnly: false,
874
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
875
- forceFallback: false,
876
- fallbackClass: "sortable-fallback",
877
- fallbackOnBody: false,
878
- fallbackTolerance: 0,
879
- fallbackOffset: {
880
- x: 0,
881
- y: 0
882
- },
883
- // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
884
- supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && (!Safari || IOS),
885
- emptyInsertThreshold: 5
886
- };
887
- PluginManager.initializePlugins(this, el, defaults2);
888
- for (var name in defaults2) {
889
- !(name in options) && (options[name] = defaults2[name]);
890
- }
891
- _prepareGroup(options);
892
- for (var fn in this) {
893
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
894
- this[fn] = this[fn].bind(this);
895
- }
896
- }
897
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
898
- if (this.nativeDraggable) {
899
- this.options.touchStartThreshold = 1;
900
- }
901
- if (options.supportPointer) {
902
- on(el, "pointerdown", this._onTapStart);
903
- } else {
904
- on(el, "mousedown", this._onTapStart);
905
- on(el, "touchstart", this._onTapStart);
906
- }
907
- if (this.nativeDraggable) {
908
- on(el, "dragover", this);
909
- on(el, "dragenter", this);
910
- }
911
- sortables.push(this.el);
912
- options.store && options.store.get && this.sort(options.store.get(this) || []);
913
- _extends(this, AnimationStateManager());
914
- }
915
- Sortable.prototype = /** @lends Sortable.prototype */
916
- {
917
- constructor: Sortable,
918
- _isOutsideThisEl: function _isOutsideThisEl(target) {
919
- if (!this.el.contains(target) && target !== this.el) {
920
- lastTarget = null;
921
- }
922
- },
923
- _getDirection: function _getDirection(evt, target) {
924
- return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
925
- },
926
- _onTapStart: function _onTapStart(evt) {
927
- if (!evt.cancelable) return;
928
- var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter;
929
- _saveInputCheckedState(el);
930
- if (dragEl) {
931
- return;
932
- }
933
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
934
- return;
935
- }
936
- if (originalTarget.isContentEditable) {
937
- return;
938
- }
939
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
940
- return;
941
- }
942
- target = closest(target, options.draggable, el, false);
943
- if (target && target.animated) {
944
- return;
945
- }
946
- if (lastDownEl === target) {
947
- return;
948
- }
949
- oldIndex = index(target);
950
- oldDraggableIndex = index(target, options.draggable);
951
- if (typeof filter === "function") {
952
- if (filter.call(this, evt, target, this)) {
953
- _dispatchEvent({
954
- sortable: _this,
955
- rootEl: originalTarget,
956
- name: "filter",
957
- targetEl: target,
958
- toEl: el,
959
- fromEl: el
960
- });
961
- pluginEvent2("filter", _this, {
962
- evt
963
- });
964
- preventOnFilter && evt.preventDefault();
965
- return;
966
- }
967
- } else if (filter) {
968
- filter = filter.split(",").some(function(criteria) {
969
- criteria = closest(originalTarget, criteria.trim(), el, false);
970
- if (criteria) {
971
- _dispatchEvent({
972
- sortable: _this,
973
- rootEl: criteria,
974
- name: "filter",
975
- targetEl: target,
976
- fromEl: el,
977
- toEl: el
978
- });
979
- pluginEvent2("filter", _this, {
980
- evt
981
- });
982
- return true;
983
- }
984
- });
985
- if (filter) {
986
- preventOnFilter && evt.preventDefault();
987
- return;
988
- }
989
- }
990
- if (options.handle && !closest(originalTarget, options.handle, el, false)) {
991
- return;
992
- }
993
- this._prepareDragStart(evt, touch, target);
994
- },
995
- _prepareDragStart: function _prepareDragStart(evt, touch, target) {
996
- var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
997
- if (target && !dragEl && target.parentNode === el) {
998
- var dragRect = getRect(target);
999
- rootEl = el;
1000
- dragEl = target;
1001
- parentEl = dragEl.parentNode;
1002
- nextEl = dragEl.nextSibling;
1003
- lastDownEl = target;
1004
- activeGroup = options.group;
1005
- Sortable.dragged = dragEl;
1006
- tapEvt = {
1007
- target: dragEl,
1008
- clientX: (touch || evt).clientX,
1009
- clientY: (touch || evt).clientY
1010
- };
1011
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
1012
- tapDistanceTop = tapEvt.clientY - dragRect.top;
1013
- this._lastX = (touch || evt).clientX;
1014
- this._lastY = (touch || evt).clientY;
1015
- dragEl.style["will-change"] = "all";
1016
- dragStartFn = function dragStartFn2() {
1017
- pluginEvent2("delayEnded", _this, {
1018
- evt
1019
- });
1020
- if (Sortable.eventCanceled) {
1021
- _this._onDrop();
1022
- return;
1023
- }
1024
- _this._disableDelayedDragEvents();
1025
- if (!FireFox && _this.nativeDraggable) {
1026
- dragEl.draggable = true;
1027
- }
1028
- _this._triggerDragStart(evt, touch);
1029
- _dispatchEvent({
1030
- sortable: _this,
1031
- name: "choose",
1032
- originalEvent: evt
1033
- });
1034
- toggleClass(dragEl, options.chosenClass, true);
1035
- };
1036
- options.ignore.split(",").forEach(function(criteria) {
1037
- find(dragEl, criteria.trim(), _disableDraggable);
1038
- });
1039
- on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
1040
- on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
1041
- on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
1042
- if (options.supportPointer) {
1043
- on(ownerDocument, "pointerup", _this._onDrop);
1044
- !this.nativeDraggable && on(ownerDocument, "pointercancel", _this._onDrop);
1045
- } else {
1046
- on(ownerDocument, "mouseup", _this._onDrop);
1047
- on(ownerDocument, "touchend", _this._onDrop);
1048
- on(ownerDocument, "touchcancel", _this._onDrop);
1049
- }
1050
- if (FireFox && this.nativeDraggable) {
1051
- this.options.touchStartThreshold = 4;
1052
- dragEl.draggable = true;
1053
- }
1054
- pluginEvent2("delayStart", this, {
1055
- evt
1056
- });
1057
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1058
- if (Sortable.eventCanceled) {
1059
- this._onDrop();
1060
- return;
1061
- }
1062
- if (options.supportPointer) {
1063
- on(ownerDocument, "pointerup", _this._disableDelayedDrag);
1064
- on(ownerDocument, "pointercancel", _this._disableDelayedDrag);
1065
- } else {
1066
- on(ownerDocument, "mouseup", _this._disableDelayedDrag);
1067
- on(ownerDocument, "touchend", _this._disableDelayedDrag);
1068
- on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
1069
- }
1070
- on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
1071
- on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
1072
- options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
1073
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1074
- } else {
1075
- dragStartFn();
1076
- }
1077
- }
1078
- },
1079
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e2) {
1080
- var touch = e2.touches ? e2.touches[0] : e2;
1081
- if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
1082
- this._disableDelayedDrag();
1083
- }
1084
- },
1085
- _disableDelayedDrag: function _disableDelayedDrag() {
1086
- dragEl && _disableDraggable(dragEl);
1087
- clearTimeout(this._dragStartTimer);
1088
- this._disableDelayedDragEvents();
1089
- },
1090
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1091
- var ownerDocument = this.el.ownerDocument;
1092
- off(ownerDocument, "mouseup", this._disableDelayedDrag);
1093
- off(ownerDocument, "touchend", this._disableDelayedDrag);
1094
- off(ownerDocument, "touchcancel", this._disableDelayedDrag);
1095
- off(ownerDocument, "pointerup", this._disableDelayedDrag);
1096
- off(ownerDocument, "pointercancel", this._disableDelayedDrag);
1097
- off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
1098
- off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
1099
- off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
1100
- },
1101
- _triggerDragStart: function _triggerDragStart(evt, touch) {
1102
- touch = touch || evt.pointerType == "touch" && evt;
1103
- if (!this.nativeDraggable || touch) {
1104
- if (this.options.supportPointer) {
1105
- on(document, "pointermove", this._onTouchMove);
1106
- } else if (touch) {
1107
- on(document, "touchmove", this._onTouchMove);
1108
- } else {
1109
- on(document, "mousemove", this._onTouchMove);
1110
- }
1111
- } else {
1112
- on(dragEl, "dragend", this);
1113
- on(rootEl, "dragstart", this._onDragStart);
1114
- }
1115
- try {
1116
- if (document.selection) {
1117
- _nextTick(function() {
1118
- document.selection.empty();
1119
- });
1120
- } else {
1121
- window.getSelection().removeAllRanges();
1122
- }
1123
- } catch (err) {
1124
- }
1125
- },
1126
- _dragStarted: function _dragStarted(fallback, evt) {
1127
- awaitingDragStarted = false;
1128
- if (rootEl && dragEl) {
1129
- pluginEvent2("dragStarted", this, {
1130
- evt
1131
- });
1132
- if (this.nativeDraggable) {
1133
- on(document, "dragover", _checkOutsideTargetEl);
1134
- }
1135
- var options = this.options;
1136
- !fallback && toggleClass(dragEl, options.dragClass, false);
1137
- toggleClass(dragEl, options.ghostClass, true);
1138
- Sortable.active = this;
1139
- fallback && this._appendGhost();
1140
- _dispatchEvent({
1141
- sortable: this,
1142
- name: "start",
1143
- originalEvent: evt
1144
- });
1145
- } else {
1146
- this._nulling();
1147
- }
1148
- },
1149
- _emulateDragOver: function _emulateDragOver() {
1150
- if (touchEvt) {
1151
- this._lastX = touchEvt.clientX;
1152
- this._lastY = touchEvt.clientY;
1153
- _hideGhostForTarget();
1154
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1155
- var parent = target;
1156
- while (target && target.shadowRoot) {
1157
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1158
- if (target === parent) break;
1159
- parent = target;
1160
- }
1161
- dragEl.parentNode[expando]._isOutsideThisEl(target);
1162
- if (parent) {
1163
- do {
1164
- if (parent[expando]) {
1165
- var inserted = void 0;
1166
- inserted = parent[expando]._onDragOver({
1167
- clientX: touchEvt.clientX,
1168
- clientY: touchEvt.clientY,
1169
- target,
1170
- rootEl: parent
1171
- });
1172
- if (inserted && !this.options.dragoverBubble) {
1173
- break;
1174
- }
1175
- }
1176
- target = parent;
1177
- } while (parent = getParentOrHost(parent));
1178
- }
1179
- _unhideGhostForTarget();
1180
- }
1181
- },
1182
- _onTouchMove: function _onTouchMove(evt) {
1183
- if (tapEvt) {
1184
- var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
1185
- if (!Sortable.active && !awaitingDragStarted) {
1186
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1187
- return;
1188
- }
1189
- this._onDragStart(evt, true);
1190
- }
1191
- if (ghostEl) {
1192
- if (ghostMatrix) {
1193
- ghostMatrix.e += dx - (lastDx || 0);
1194
- ghostMatrix.f += dy - (lastDy || 0);
1195
- } else {
1196
- ghostMatrix = {
1197
- a: 1,
1198
- b: 0,
1199
- c: 0,
1200
- d: 1,
1201
- e: dx,
1202
- f: dy
1203
- };
1204
- }
1205
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1206
- css(ghostEl, "webkitTransform", cssMatrix);
1207
- css(ghostEl, "mozTransform", cssMatrix);
1208
- css(ghostEl, "msTransform", cssMatrix);
1209
- css(ghostEl, "transform", cssMatrix);
1210
- lastDx = dx;
1211
- lastDy = dy;
1212
- touchEvt = touch;
1213
- }
1214
- evt.cancelable && evt.preventDefault();
1215
- }
1216
- },
1217
- _appendGhost: function _appendGhost() {
1218
- if (!ghostEl) {
1219
- var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
1220
- if (PositionGhostAbsolutely) {
1221
- ghostRelativeParent = container;
1222
- while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
1223
- ghostRelativeParent = ghostRelativeParent.parentNode;
1224
- }
1225
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1226
- if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1227
- rect.top += ghostRelativeParent.scrollTop;
1228
- rect.left += ghostRelativeParent.scrollLeft;
1229
- } else {
1230
- ghostRelativeParent = getWindowScrollingElement();
1231
- }
1232
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1233
- }
1234
- ghostEl = dragEl.cloneNode(true);
1235
- toggleClass(ghostEl, options.ghostClass, false);
1236
- toggleClass(ghostEl, options.fallbackClass, true);
1237
- toggleClass(ghostEl, options.dragClass, true);
1238
- css(ghostEl, "transition", "");
1239
- css(ghostEl, "transform", "");
1240
- css(ghostEl, "box-sizing", "border-box");
1241
- css(ghostEl, "margin", 0);
1242
- css(ghostEl, "top", rect.top);
1243
- css(ghostEl, "left", rect.left);
1244
- css(ghostEl, "width", rect.width);
1245
- css(ghostEl, "height", rect.height);
1246
- css(ghostEl, "opacity", "0.8");
1247
- css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
1248
- css(ghostEl, "zIndex", "100000");
1249
- css(ghostEl, "pointerEvents", "none");
1250
- Sortable.ghost = ghostEl;
1251
- container.appendChild(ghostEl);
1252
- css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
1253
- }
1254
- },
1255
- _onDragStart: function _onDragStart(evt, fallback) {
1256
- var _this = this;
1257
- var dataTransfer = evt.dataTransfer;
1258
- var options = _this.options;
1259
- pluginEvent2("dragStart", this, {
1260
- evt
1261
- });
1262
- if (Sortable.eventCanceled) {
1263
- this._onDrop();
1264
- return;
1265
- }
1266
- pluginEvent2("setupClone", this);
1267
- if (!Sortable.eventCanceled) {
1268
- cloneEl = clone(dragEl);
1269
- cloneEl.removeAttribute("id");
1270
- cloneEl.draggable = false;
1271
- cloneEl.style["will-change"] = "";
1272
- this._hideClone();
1273
- toggleClass(cloneEl, this.options.chosenClass, false);
1274
- Sortable.clone = cloneEl;
1275
- }
1276
- _this.cloneId = _nextTick(function() {
1277
- pluginEvent2("clone", _this);
1278
- if (Sortable.eventCanceled) return;
1279
- if (!_this.options.removeCloneOnHide) {
1280
- rootEl.insertBefore(cloneEl, dragEl);
1281
- }
1282
- _this._hideClone();
1283
- _dispatchEvent({
1284
- sortable: _this,
1285
- name: "clone"
1286
- });
1287
- });
1288
- !fallback && toggleClass(dragEl, options.dragClass, true);
1289
- if (fallback) {
1290
- ignoreNextClick = true;
1291
- _this._loopId = setInterval(_this._emulateDragOver, 50);
1292
- } else {
1293
- off(document, "mouseup", _this._onDrop);
1294
- off(document, "touchend", _this._onDrop);
1295
- off(document, "touchcancel", _this._onDrop);
1296
- if (dataTransfer) {
1297
- dataTransfer.effectAllowed = "move";
1298
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
1299
- }
1300
- on(document, "drop", _this);
1301
- css(dragEl, "transform", "translateZ(0)");
1302
- }
1303
- awaitingDragStarted = true;
1304
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1305
- on(document, "selectstart", _this);
1306
- moved = true;
1307
- window.getSelection().removeAllRanges();
1308
- if (Safari) {
1309
- css(document.body, "user-select", "none");
1310
- }
1311
- },
1312
- // Returns true - if no further action is needed (either inserted or another condition)
1313
- _onDragOver: function _onDragOver(evt) {
1314
- var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false;
1315
- if (_silent) return;
1316
- function dragOverEvent(name, extra) {
1317
- pluginEvent2(name, _this, _objectSpread2({
1318
- evt,
1319
- isOwner,
1320
- axis: vertical ? "vertical" : "horizontal",
1321
- revert,
1322
- dragRect,
1323
- targetRect,
1324
- canSort,
1325
- fromSortable,
1326
- target,
1327
- completed,
1328
- onMove: function onMove(target2, after2) {
1329
- return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
1330
- },
1331
- changed
1332
- }, extra));
1333
- }
1334
- function capture() {
1335
- dragOverEvent("dragOverAnimationCapture");
1336
- _this.captureAnimationState();
1337
- if (_this !== fromSortable) {
1338
- fromSortable.captureAnimationState();
1339
- }
1340
- }
1341
- function completed(insertion) {
1342
- dragOverEvent("dragOverCompleted", {
1343
- insertion
1344
- });
1345
- if (insertion) {
1346
- if (isOwner) {
1347
- activeSortable._hideClone();
1348
- } else {
1349
- activeSortable._showClone(_this);
1350
- }
1351
- if (_this !== fromSortable) {
1352
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1353
- toggleClass(dragEl, options.ghostClass, true);
1354
- }
1355
- if (putSortable !== _this && _this !== Sortable.active) {
1356
- putSortable = _this;
1357
- } else if (_this === Sortable.active && putSortable) {
1358
- putSortable = null;
1359
- }
1360
- if (fromSortable === _this) {
1361
- _this._ignoreWhileAnimating = target;
1362
- }
1363
- _this.animateAll(function() {
1364
- dragOverEvent("dragOverAnimationComplete");
1365
- _this._ignoreWhileAnimating = null;
1366
- });
1367
- if (_this !== fromSortable) {
1368
- fromSortable.animateAll();
1369
- fromSortable._ignoreWhileAnimating = null;
1370
- }
1371
- }
1372
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1373
- lastTarget = null;
1374
- }
1375
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1376
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1377
- !insertion && nearestEmptyInsertDetectEvent(evt);
1378
- }
1379
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1380
- return completedFired = true;
1381
- }
1382
- function changed() {
1383
- newIndex = index(dragEl);
1384
- newDraggableIndex = index(dragEl, options.draggable);
1385
- _dispatchEvent({
1386
- sortable: _this,
1387
- name: "change",
1388
- toEl: el,
1389
- newIndex,
1390
- newDraggableIndex,
1391
- originalEvent: evt
1392
- });
1393
- }
1394
- if (evt.preventDefault !== void 0) {
1395
- evt.cancelable && evt.preventDefault();
1396
- }
1397
- target = closest(target, options.draggable, el, true);
1398
- dragOverEvent("dragOver");
1399
- if (Sortable.eventCanceled) return completedFired;
1400
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1401
- return completed(false);
1402
- }
1403
- ignoreNextClick = false;
1404
- if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
1405
- vertical = this._getDirection(evt, target) === "vertical";
1406
- dragRect = getRect(dragEl);
1407
- dragOverEvent("dragOverValid");
1408
- if (Sortable.eventCanceled) return completedFired;
1409
- if (revert) {
1410
- parentEl = rootEl;
1411
- capture();
1412
- this._hideClone();
1413
- dragOverEvent("revert");
1414
- if (!Sortable.eventCanceled) {
1415
- if (nextEl) {
1416
- rootEl.insertBefore(dragEl, nextEl);
1417
- } else {
1418
- rootEl.appendChild(dragEl);
1419
- }
1420
- }
1421
- return completed(true);
1422
- }
1423
- var elLastChild = lastChild(el, options.draggable);
1424
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1425
- if (elLastChild === dragEl) {
1426
- return completed(false);
1427
- }
1428
- if (elLastChild && el === evt.target) {
1429
- target = elLastChild;
1430
- }
1431
- if (target) {
1432
- targetRect = getRect(target);
1433
- }
1434
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1435
- capture();
1436
- if (elLastChild && elLastChild.nextSibling) {
1437
- el.insertBefore(dragEl, elLastChild.nextSibling);
1438
- } else {
1439
- el.appendChild(dragEl);
1440
- }
1441
- parentEl = el;
1442
- changed();
1443
- return completed(true);
1444
- }
1445
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1446
- var firstChild = getChild(el, 0, options, true);
1447
- if (firstChild === dragEl) {
1448
- return completed(false);
1449
- }
1450
- target = firstChild;
1451
- targetRect = getRect(target);
1452
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1453
- capture();
1454
- el.insertBefore(dragEl, firstChild);
1455
- parentEl = el;
1456
- changed();
1457
- return completed(true);
1458
- }
1459
- } else if (target.parentNode === el) {
1460
- targetRect = getRect(target);
1461
- var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? "top" : "left", scrolledPastTop = isScrolledPast(target, "top", "top") || isScrolledPast(dragEl, "top", "top"), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
1462
- if (lastTarget !== target) {
1463
- targetBeforeFirstSwap = targetRect[side1];
1464
- pastFirstInvertThresh = false;
1465
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1466
- }
1467
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1468
- var sibling;
1469
- if (direction !== 0) {
1470
- var dragIndex = index(dragEl);
1471
- do {
1472
- dragIndex -= direction;
1473
- sibling = parentEl.children[dragIndex];
1474
- } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
1475
- }
1476
- if (direction === 0 || sibling === target) {
1477
- return completed(false);
1478
- }
1479
- lastTarget = target;
1480
- lastDirection = direction;
1481
- var nextSibling = target.nextElementSibling, after = false;
1482
- after = direction === 1;
1483
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1484
- if (moveVector !== false) {
1485
- if (moveVector === 1 || moveVector === -1) {
1486
- after = moveVector === 1;
1487
- }
1488
- _silent = true;
1489
- setTimeout(_unsilent, 30);
1490
- capture();
1491
- if (after && !nextSibling) {
1492
- el.appendChild(dragEl);
1493
- } else {
1494
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1495
- }
1496
- if (scrolledPastTop) {
1497
- scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1498
- }
1499
- parentEl = dragEl.parentNode;
1500
- if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
1501
- targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1502
- }
1503
- changed();
1504
- return completed(true);
1505
- }
1506
- }
1507
- if (el.contains(dragEl)) {
1508
- return completed(false);
1509
- }
1510
- }
1511
- return false;
1512
- },
1513
- _ignoreWhileAnimating: null,
1514
- _offMoveEvents: function _offMoveEvents() {
1515
- off(document, "mousemove", this._onTouchMove);
1516
- off(document, "touchmove", this._onTouchMove);
1517
- off(document, "pointermove", this._onTouchMove);
1518
- off(document, "dragover", nearestEmptyInsertDetectEvent);
1519
- off(document, "mousemove", nearestEmptyInsertDetectEvent);
1520
- off(document, "touchmove", nearestEmptyInsertDetectEvent);
1521
- },
1522
- _offUpEvents: function _offUpEvents() {
1523
- var ownerDocument = this.el.ownerDocument;
1524
- off(ownerDocument, "mouseup", this._onDrop);
1525
- off(ownerDocument, "touchend", this._onDrop);
1526
- off(ownerDocument, "pointerup", this._onDrop);
1527
- off(ownerDocument, "pointercancel", this._onDrop);
1528
- off(ownerDocument, "touchcancel", this._onDrop);
1529
- off(document, "selectstart", this);
1530
- },
1531
- _onDrop: function _onDrop(evt) {
1532
- var el = this.el, options = this.options;
1533
- newIndex = index(dragEl);
1534
- newDraggableIndex = index(dragEl, options.draggable);
1535
- pluginEvent2("drop", this, {
1536
- evt
1537
- });
1538
- parentEl = dragEl && dragEl.parentNode;
1539
- newIndex = index(dragEl);
1540
- newDraggableIndex = index(dragEl, options.draggable);
1541
- if (Sortable.eventCanceled) {
1542
- this._nulling();
1543
- return;
1544
- }
1545
- awaitingDragStarted = false;
1546
- isCircumstantialInvert = false;
1547
- pastFirstInvertThresh = false;
1548
- clearInterval(this._loopId);
1549
- clearTimeout(this._dragStartTimer);
1550
- _cancelNextTick(this.cloneId);
1551
- _cancelNextTick(this._dragStartId);
1552
- if (this.nativeDraggable) {
1553
- off(document, "drop", this);
1554
- off(el, "dragstart", this._onDragStart);
1555
- }
1556
- this._offMoveEvents();
1557
- this._offUpEvents();
1558
- if (Safari) {
1559
- css(document.body, "user-select", "");
1560
- }
1561
- css(dragEl, "transform", "");
1562
- if (evt) {
1563
- if (moved) {
1564
- evt.cancelable && evt.preventDefault();
1565
- !options.dropBubble && evt.stopPropagation();
1566
- }
1567
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1568
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
1569
- cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1570
- }
1571
- if (dragEl) {
1572
- if (this.nativeDraggable) {
1573
- off(dragEl, "dragend", this);
1574
- }
1575
- _disableDraggable(dragEl);
1576
- dragEl.style["will-change"] = "";
1577
- if (moved && !awaitingDragStarted) {
1578
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1579
- }
1580
- toggleClass(dragEl, this.options.chosenClass, false);
1581
- _dispatchEvent({
1582
- sortable: this,
1583
- name: "unchoose",
1584
- toEl: parentEl,
1585
- newIndex: null,
1586
- newDraggableIndex: null,
1587
- originalEvent: evt
1588
- });
1589
- if (rootEl !== parentEl) {
1590
- if (newIndex >= 0) {
1591
- _dispatchEvent({
1592
- rootEl: parentEl,
1593
- name: "add",
1594
- toEl: parentEl,
1595
- fromEl: rootEl,
1596
- originalEvent: evt
1597
- });
1598
- _dispatchEvent({
1599
- sortable: this,
1600
- name: "remove",
1601
- toEl: parentEl,
1602
- originalEvent: evt
1603
- });
1604
- _dispatchEvent({
1605
- rootEl: parentEl,
1606
- name: "sort",
1607
- toEl: parentEl,
1608
- fromEl: rootEl,
1609
- originalEvent: evt
1610
- });
1611
- _dispatchEvent({
1612
- sortable: this,
1613
- name: "sort",
1614
- toEl: parentEl,
1615
- originalEvent: evt
1616
- });
1617
- }
1618
- putSortable && putSortable.save();
1619
- } else {
1620
- if (newIndex !== oldIndex) {
1621
- if (newIndex >= 0) {
1622
- _dispatchEvent({
1623
- sortable: this,
1624
- name: "update",
1625
- toEl: parentEl,
1626
- originalEvent: evt
1627
- });
1628
- _dispatchEvent({
1629
- sortable: this,
1630
- name: "sort",
1631
- toEl: parentEl,
1632
- originalEvent: evt
1633
- });
1634
- }
1635
- }
1636
- }
1637
- if (Sortable.active) {
1638
- if (newIndex == null || newIndex === -1) {
1639
- newIndex = oldIndex;
1640
- newDraggableIndex = oldDraggableIndex;
1641
- }
1642
- _dispatchEvent({
1643
- sortable: this,
1644
- name: "end",
1645
- toEl: parentEl,
1646
- originalEvent: evt
1647
- });
1648
- this.save();
1649
- }
1650
- }
1651
- }
1652
- this._nulling();
1653
- },
1654
- _nulling: function _nulling() {
1655
- pluginEvent2("nulling", this);
1656
- rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
1657
- var el = this.el;
1658
- savedInputChecked.forEach(function(checkEl) {
1659
- if (el.contains(checkEl)) {
1660
- checkEl.checked = true;
1661
- }
1662
- });
1663
- savedInputChecked.length = lastDx = lastDy = 0;
1664
- },
1665
- handleEvent: function handleEvent(evt) {
1666
- switch (evt.type) {
1667
- case "drop":
1668
- case "dragend":
1669
- this._onDrop(evt);
1670
- break;
1671
- case "dragenter":
1672
- case "dragover":
1673
- if (dragEl) {
1674
- this._onDragOver(evt);
1675
- _globalDragOver(evt);
1676
- }
1677
- break;
1678
- case "selectstart":
1679
- evt.preventDefault();
1680
- break;
1681
- }
1682
- },
1683
- /**
1684
- * Serializes the item into an array of string.
1685
- * @returns {String[]}
1686
- */
1687
- toArray: function toArray() {
1688
- var order = [], el, children = this.el.children, i = 0, n = children.length, options = this.options;
1689
- for (; i < n; i++) {
1690
- el = children[i];
1691
- if (closest(el, options.draggable, this.el, false)) {
1692
- order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
1693
- }
1694
- }
1695
- return order;
1696
- },
1697
- /**
1698
- * Sorts the elements according to the array.
1699
- * @param {String[]} order order of the items
1700
- */
1701
- sort: function sort(order, useAnimation) {
1702
- var items = {}, rootEl2 = this.el;
1703
- this.toArray().forEach(function(id, i) {
1704
- var el = rootEl2.children[i];
1705
- if (closest(el, this.options.draggable, rootEl2, false)) {
1706
- items[id] = el;
1707
- }
1708
- }, this);
1709
- useAnimation && this.captureAnimationState();
1710
- order.forEach(function(id) {
1711
- if (items[id]) {
1712
- rootEl2.removeChild(items[id]);
1713
- rootEl2.appendChild(items[id]);
1714
- }
1715
- });
1716
- useAnimation && this.animateAll();
1717
- },
1718
- /**
1719
- * Save the current sorting
1720
- */
1721
- save: function save() {
1722
- var store = this.options.store;
1723
- store && store.set && store.set(this);
1724
- },
1725
- /**
1726
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
1727
- * @param {HTMLElement} el
1728
- * @param {String} [selector] default: `options.draggable`
1729
- * @returns {HTMLElement|null}
1730
- */
1731
- closest: function closest$1(el, selector) {
1732
- return closest(el, selector || this.options.draggable, this.el, false);
1733
- },
1734
- /**
1735
- * Set/get option
1736
- * @param {string} name
1737
- * @param {*} [value]
1738
- * @returns {*}
1739
- */
1740
- option: function option(name, value) {
1741
- var options = this.options;
1742
- if (value === void 0) {
1743
- return options[name];
1744
- } else {
1745
- var modifiedValue = PluginManager.modifyOption(this, name, value);
1746
- if (typeof modifiedValue !== "undefined") {
1747
- options[name] = modifiedValue;
1748
- } else {
1749
- options[name] = value;
1750
- }
1751
- if (name === "group") {
1752
- _prepareGroup(options);
1753
- }
1754
- }
1755
- },
1756
- /**
1757
- * Destroy
1758
- */
1759
- destroy: function destroy() {
1760
- pluginEvent2("destroy", this);
1761
- var el = this.el;
1762
- el[expando] = null;
1763
- off(el, "mousedown", this._onTapStart);
1764
- off(el, "touchstart", this._onTapStart);
1765
- off(el, "pointerdown", this._onTapStart);
1766
- if (this.nativeDraggable) {
1767
- off(el, "dragover", this);
1768
- off(el, "dragenter", this);
1769
- }
1770
- Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
1771
- el2.removeAttribute("draggable");
1772
- });
1773
- this._onDrop();
1774
- this._disableDelayedDragEvents();
1775
- sortables.splice(sortables.indexOf(this.el), 1);
1776
- this.el = el = null;
1777
- },
1778
- _hideClone: function _hideClone() {
1779
- if (!cloneHidden) {
1780
- pluginEvent2("hideClone", this);
1781
- if (Sortable.eventCanceled) return;
1782
- css(cloneEl, "display", "none");
1783
- if (this.options.removeCloneOnHide && cloneEl.parentNode) {
1784
- cloneEl.parentNode.removeChild(cloneEl);
1785
- }
1786
- cloneHidden = true;
1787
- }
1788
- },
1789
- _showClone: function _showClone(putSortable2) {
1790
- if (putSortable2.lastPutMode !== "clone") {
1791
- this._hideClone();
1792
- return;
1793
- }
1794
- if (cloneHidden) {
1795
- pluginEvent2("showClone", this);
1796
- if (Sortable.eventCanceled) return;
1797
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
1798
- rootEl.insertBefore(cloneEl, dragEl);
1799
- } else if (nextEl) {
1800
- rootEl.insertBefore(cloneEl, nextEl);
1801
- } else {
1802
- rootEl.appendChild(cloneEl);
1803
- }
1804
- if (this.options.group.revertClone) {
1805
- this.animate(dragEl, cloneEl);
1806
- }
1807
- css(cloneEl, "display", "");
1808
- cloneHidden = false;
1809
- }
1810
- }
1811
- };
1812
- function _globalDragOver(evt) {
1813
- if (evt.dataTransfer) {
1814
- evt.dataTransfer.dropEffect = "move";
1815
- }
1816
- evt.cancelable && evt.preventDefault();
1817
- }
1818
- function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
1819
- var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
1820
- if (window.CustomEvent && !IE11OrLess && !Edge) {
1821
- evt = new CustomEvent("move", {
1822
- bubbles: true,
1823
- cancelable: true
1824
- });
1825
- } else {
1826
- evt = document.createEvent("Event");
1827
- evt.initEvent("move", true, true);
1828
- }
1829
- evt.to = toEl;
1830
- evt.from = fromEl;
1831
- evt.dragged = dragEl2;
1832
- evt.draggedRect = dragRect;
1833
- evt.related = targetEl || toEl;
1834
- evt.relatedRect = targetRect || getRect(toEl);
1835
- evt.willInsertAfter = willInsertAfter;
1836
- evt.originalEvent = originalEvent;
1837
- fromEl.dispatchEvent(evt);
1838
- if (onMoveFn) {
1839
- retVal = onMoveFn.call(sortable, evt, originalEvent);
1840
- }
1841
- return retVal;
1842
- }
1843
- function _disableDraggable(el) {
1844
- el.draggable = false;
1845
- }
1846
- function _unsilent() {
1847
- _silent = false;
1848
- }
1849
- function _ghostIsFirst(evt, vertical, sortable) {
1850
- var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
1851
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1852
- var spacer = 10;
1853
- return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;
1854
- }
1855
- function _ghostIsLast(evt, vertical, sortable) {
1856
- var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
1857
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1858
- var spacer = 10;
1859
- return vertical ? evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;
1860
- }
1861
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
1862
- var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false;
1863
- if (!invertSwap) {
1864
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
1865
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
1866
- pastFirstInvertThresh = true;
1867
- }
1868
- if (!pastFirstInvertThresh) {
1869
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
1870
- return -lastDirection;
1871
- }
1872
- } else {
1873
- invert = true;
1874
- }
1875
- } else {
1876
- if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
1877
- return _getInsertDirection(target);
1878
- }
1879
- }
1880
- }
1881
- invert = invert || invertSwap;
1882
- if (invert) {
1883
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
1884
- return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
1885
- }
1886
- }
1887
- return 0;
1888
- }
1889
- function _getInsertDirection(target) {
1890
- if (index(dragEl) < index(target)) {
1891
- return 1;
1892
- } else {
1893
- return -1;
1894
- }
1895
- }
1896
- function _generateId(el) {
1897
- var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
1898
- while (i--) {
1899
- sum += str.charCodeAt(i);
1900
- }
1901
- return sum.toString(36);
1902
- }
1903
- function _saveInputCheckedState(root) {
1904
- savedInputChecked.length = 0;
1905
- var inputs = root.getElementsByTagName("input");
1906
- var idx = inputs.length;
1907
- while (idx--) {
1908
- var el = inputs[idx];
1909
- el.checked && savedInputChecked.push(el);
1910
- }
1911
- }
1912
- function _nextTick(fn) {
1913
- return setTimeout(fn, 0);
1914
- }
1915
- function _cancelNextTick(id) {
1916
- return clearTimeout(id);
1917
- }
1918
- if (documentExists) {
1919
- on(document, "touchmove", function(evt) {
1920
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
1921
- evt.preventDefault();
1922
- }
1923
- });
1924
- }
1925
- Sortable.utils = {
1926
- on,
1927
- off,
1928
- css,
1929
- find,
1930
- is: function is(el, selector) {
1931
- return !!closest(el, selector, el, false);
1932
- },
1933
- extend,
1934
- throttle,
1935
- closest,
1936
- toggleClass,
1937
- clone,
1938
- index,
1939
- nextTick: _nextTick,
1940
- cancelNextTick: _cancelNextTick,
1941
- detectDirection: _detectDirection,
1942
- getChild,
1943
- expando
1944
- };
1945
- Sortable.get = function(element) {
1946
- return element[expando];
1947
- };
1948
- Sortable.mount = function() {
1949
- for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
1950
- plugins2[_key] = arguments[_key];
1951
- }
1952
- if (plugins2[0].constructor === Array) plugins2 = plugins2[0];
1953
- plugins2.forEach(function(plugin) {
1954
- if (!plugin.prototype || !plugin.prototype.constructor) {
1955
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
1956
- }
1957
- if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
1958
- PluginManager.mount(plugin);
1959
- });
1960
- };
1961
- Sortable.create = function(el, options) {
1962
- return new Sortable(el, options);
1963
- };
1964
- Sortable.version = version;
1965
- var autoScrolls = [];
1966
- var scrollEl;
1967
- var scrollRootEl;
1968
- var scrolling = false;
1969
- var lastAutoScrollX;
1970
- var lastAutoScrollY;
1971
- var touchEvt$1;
1972
- var pointerElemChangedInterval;
1973
- function AutoScrollPlugin() {
1974
- function AutoScroll() {
1975
- this.defaults = {
1976
- scroll: true,
1977
- forceAutoScrollFallback: false,
1978
- scrollSensitivity: 30,
1979
- scrollSpeed: 10,
1980
- bubbleScroll: true
1981
- };
1982
- for (var fn in this) {
1983
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
1984
- this[fn] = this[fn].bind(this);
1985
- }
1986
- }
1987
- }
1988
- AutoScroll.prototype = {
1989
- dragStarted: function dragStarted(_ref) {
1990
- var originalEvent = _ref.originalEvent;
1991
- if (this.sortable.nativeDraggable) {
1992
- on(document, "dragover", this._handleAutoScroll);
1993
- } else {
1994
- if (this.options.supportPointer) {
1995
- on(document, "pointermove", this._handleFallbackAutoScroll);
1996
- } else if (originalEvent.touches) {
1997
- on(document, "touchmove", this._handleFallbackAutoScroll);
1998
- } else {
1999
- on(document, "mousemove", this._handleFallbackAutoScroll);
2000
- }
2001
- }
2002
- },
2003
- dragOverCompleted: function dragOverCompleted(_ref2) {
2004
- var originalEvent = _ref2.originalEvent;
2005
- if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2006
- this._handleAutoScroll(originalEvent);
2007
- }
2008
- },
2009
- drop: function drop3() {
2010
- if (this.sortable.nativeDraggable) {
2011
- off(document, "dragover", this._handleAutoScroll);
2012
- } else {
2013
- off(document, "pointermove", this._handleFallbackAutoScroll);
2014
- off(document, "touchmove", this._handleFallbackAutoScroll);
2015
- off(document, "mousemove", this._handleFallbackAutoScroll);
2016
- }
2017
- clearPointerElemChangedInterval();
2018
- clearAutoScrolls();
2019
- cancelThrottle();
2020
- },
2021
- nulling: function nulling() {
2022
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2023
- autoScrolls.length = 0;
2024
- },
2025
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2026
- this._handleAutoScroll(evt, true);
2027
- },
2028
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2029
- var _this = this;
2030
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
2031
- touchEvt$1 = evt;
2032
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2033
- autoScroll(evt, this.options, elem, fallback);
2034
- var ogElemScroller = getParentAutoScrollElement(elem, true);
2035
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2036
- pointerElemChangedInterval && clearPointerElemChangedInterval();
2037
- pointerElemChangedInterval = setInterval(function() {
2038
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2039
- if (newElem !== ogElemScroller) {
2040
- ogElemScroller = newElem;
2041
- clearAutoScrolls();
2042
- }
2043
- autoScroll(evt, _this.options, newElem, fallback);
2044
- }, 10);
2045
- lastAutoScrollX = x;
2046
- lastAutoScrollY = y;
2047
- }
2048
- } else {
2049
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2050
- clearAutoScrolls();
2051
- return;
2052
- }
2053
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2054
- }
2055
- }
2056
- };
2057
- return _extends(AutoScroll, {
2058
- pluginName: "scroll",
2059
- initializeByDefault: true
2060
- });
2061
- }
2062
- function clearAutoScrolls() {
2063
- autoScrolls.forEach(function(autoScroll2) {
2064
- clearInterval(autoScroll2.pid);
2065
- });
2066
- autoScrolls = [];
2067
- }
2068
- function clearPointerElemChangedInterval() {
2069
- clearInterval(pointerElemChangedInterval);
2070
- }
2071
- var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
2072
- if (!options.scroll) return;
2073
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
2074
- var scrollThisInstance = false, scrollCustomFn;
2075
- if (scrollRootEl !== rootEl2) {
2076
- scrollRootEl = rootEl2;
2077
- clearAutoScrolls();
2078
- scrollEl = options.scroll;
2079
- scrollCustomFn = options.scrollFn;
2080
- if (scrollEl === true) {
2081
- scrollEl = getParentAutoScrollElement(rootEl2, true);
2082
- }
2083
- }
2084
- var layersOut = 0;
2085
- var currentParent = scrollEl;
2086
- do {
2087
- var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop;
2088
- if (el === winScroller) {
2089
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
2090
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
2091
- } else {
2092
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
2093
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
2094
- }
2095
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2096
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2097
- if (!autoScrolls[layersOut]) {
2098
- for (var i = 0; i <= layersOut; i++) {
2099
- if (!autoScrolls[i]) {
2100
- autoScrolls[i] = {};
2101
- }
2102
- }
2103
- }
2104
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2105
- autoScrolls[layersOut].el = el;
2106
- autoScrolls[layersOut].vx = vx;
2107
- autoScrolls[layersOut].vy = vy;
2108
- clearInterval(autoScrolls[layersOut].pid);
2109
- if (vx != 0 || vy != 0) {
2110
- scrollThisInstance = true;
2111
- autoScrolls[layersOut].pid = setInterval(function() {
2112
- if (isFallback && this.layer === 0) {
2113
- Sortable.active._onTouchMove(touchEvt$1);
2114
- }
2115
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2116
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2117
- if (typeof scrollCustomFn === "function") {
2118
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
2119
- return;
2120
- }
2121
- }
2122
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2123
- }.bind({
2124
- layer: layersOut
2125
- }), 24);
2126
- }
2127
- }
2128
- layersOut++;
2129
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2130
- scrolling = scrollThisInstance;
2131
- }, 30);
2132
- var drop = function drop2(_ref) {
2133
- var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
2134
- if (!originalEvent) return;
2135
- var toSortable = putSortable2 || activeSortable;
2136
- hideGhostForTarget();
2137
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2138
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
2139
- unhideGhostForTarget();
2140
- if (toSortable && !toSortable.el.contains(target)) {
2141
- dispatchSortableEvent("spill");
2142
- this.onSpill({
2143
- dragEl: dragEl2,
2144
- putSortable: putSortable2
2145
- });
2146
- }
2147
- };
2148
- function Revert() {
2149
- }
2150
- Revert.prototype = {
2151
- startIndex: null,
2152
- dragStart: function dragStart(_ref2) {
2153
- var oldDraggableIndex2 = _ref2.oldDraggableIndex;
2154
- this.startIndex = oldDraggableIndex2;
2155
- },
2156
- onSpill: function onSpill(_ref3) {
2157
- var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
2158
- this.sortable.captureAnimationState();
2159
- if (putSortable2) {
2160
- putSortable2.captureAnimationState();
2161
- }
2162
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2163
- if (nextSibling) {
2164
- this.sortable.el.insertBefore(dragEl2, nextSibling);
2165
- } else {
2166
- this.sortable.el.appendChild(dragEl2);
2167
- }
2168
- this.sortable.animateAll();
2169
- if (putSortable2) {
2170
- putSortable2.animateAll();
2171
- }
2172
- },
2173
- drop
2174
- };
2175
- _extends(Revert, {
2176
- pluginName: "revertOnSpill"
2177
- });
2178
- function Remove() {
2179
- }
2180
- Remove.prototype = {
2181
- onSpill: function onSpill2(_ref4) {
2182
- var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
2183
- var parentSortable = putSortable2 || this.sortable;
2184
- parentSortable.captureAnimationState();
2185
- dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
2186
- parentSortable.animateAll();
2187
- },
2188
- drop
2189
- };
2190
- _extends(Remove, {
2191
- pluginName: "removeOnSpill"
2192
- });
2193
- Sortable.mount(new AutoScrollPlugin());
2194
- Sortable.mount(Remove, Revert);
2195
- var sortable_esm_default = Sortable;
2196
-
2197
- // src/components/table/features/row-drag-controller.ts
2198
- var RowDragController = class {
2199
- constructor(getCommonProps, getBodyRef, treeCtrl, requestUpdate) {
2200
- this.getCommonProps = getCommonProps;
2201
- this.getBodyRef = getBodyRef;
2202
- this.treeCtrl = treeCtrl;
2203
- this.requestUpdate = requestUpdate;
2204
- this.tbodyRef = e();
2205
- this.draggingRowKey = null;
2206
- this.draggingKeys = /* @__PURE__ */ new Set();
2207
- /** 拖拽状态(宿主通过 getter 读取来驱动渲染) */
2208
- this.currentInsertIndex = null;
2209
- this.draggingBlock = { start: -1, end: -1 };
2210
- this.dropTarget = null;
2211
- this.cleanupDragImage = () => {
2212
- var _a;
2213
- if ((_a = this.dragImageEl) == null ? void 0 : _a.parentNode) this.dragImageEl.parentNode.removeChild(this.dragImageEl);
2214
- this.dragImageEl = void 0;
2215
- };
2216
- // ===================== Sortable 事件 =====================
2217
- this.handleMove = (evt) => {
2218
- var _a, _b;
2219
- const tbody = this.tbodyRef.value;
2220
- if (!this.bodyRef.value || !tbody) return true;
2221
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2222
- if (!rows.length) return true;
2223
- if (this.treeCtrl.isTreeMode()) {
2224
- if (!this.draggingRowKey && evt.item) {
2225
- this.draggingRowKey = (_a = evt.item.dataset.rowKey) != null ? _a : null;
2226
- }
2227
- this.dropTarget = this.calcDragTarget(evt);
2228
- this.requestUpdate();
2229
- return false;
2230
- }
2231
- const mouseY = evt.originalEvent.clientY;
2232
- const firstRect = rows[0].getBoundingClientRect();
2233
- const lastRect = rows[rows.length - 1].getBoundingClientRect();
2234
- let insertIndex = (_b = this.currentInsertIndex) != null ? _b : 0;
2235
- if (mouseY >= lastRect.bottom) {
2236
- insertIndex = rows.length;
2237
- } else if (mouseY <= firstRect.top) {
2238
- insertIndex = 0;
2239
- } else {
2240
- const related = evt.related;
2241
- if (related) {
2242
- const rect = related.getBoundingClientRect();
2243
- const relatedIndex = rows.indexOf(related);
2244
- if (relatedIndex >= 0) {
2245
- insertIndex = mouseY - rect.top > rect.height / 2 ? relatedIndex + 1 : relatedIndex;
2246
- }
2247
- }
2248
- }
2249
- this.currentInsertIndex = Math.max(0, Math.min(rows.length, insertIndex));
2250
- this.requestUpdate();
2251
- return false;
2252
- };
2253
- this.handleEnd = (evt) => {
2254
- var _a, _b, _c, _d;
2255
- if (this.treeCtrl.isTreeMode()) {
2256
- const target = this.dropTarget;
2257
- this.treeCtrl.restoreExpandForDrag();
2258
- if (!target || !this.draggingRowKey) {
2259
- this.resetTreeDragState();
2260
- return;
2261
- }
2262
- const dragKey = this.draggingRowKey;
2263
- const cfg = this.treeCtrl.getTreeConfig();
2264
- const { removed, newData } = this.treeCtrl.removeNodeFromTree(
2265
- this.commonProps.dataSource,
2266
- dragKey,
2267
- cfg.childrenRecordName
2268
- );
2269
- if (removed) {
2270
- const newDataSource = this.treeCtrl.insertNodeToTree(
2271
- newData,
2272
- removed,
2273
- target.rowKey,
2274
- target.position,
2275
- cfg.childrenRecordName
2276
- );
2277
- (_b = (_a = this.commonProps).slRowReorder) == null ? void 0 : _b.call(_a, {
2278
- fromKey: dragKey,
2279
- toKey: target.rowKey,
2280
- rows: this.commonProps.dataSource,
2281
- newRows: newDataSource
2282
- });
2283
- }
2284
- this.resetTreeDragState();
2285
- return;
2286
- }
2287
- if (this.currentInsertIndex === null) return;
2288
- this.draggingBlock = { start: -1, end: -1 };
2289
- this.requestUpdate();
2290
- const rows = this.commonProps.tableInstance.getRowModel().rows;
2291
- const fromIndex = evt.oldDraggableIndex;
2292
- const toIndex = this.currentInsertIndex;
2293
- const fromKey = this.commonProps.adapter.getRecordKey(rows[fromIndex].original);
2294
- const newRows = [...rows.map((r) => r.original)];
2295
- const { start, end } = this.getSelectedBlock(rows, fromIndex);
2296
- if (start <= toIndex && toIndex <= end) {
2297
- this.currentInsertIndex = null;
2298
- return;
2299
- }
2300
- const block = newRows.splice(start, end - start + 1);
2301
- const targetIndex = start < toIndex ? toIndex - block.length : toIndex;
2302
- newRows.splice(targetIndex, 0, ...block);
2303
- const toRow = rows[Math.min(toIndex, rows.length - 1)];
2304
- const toKey = this.commonProps.adapter.getRecordKey(toRow.original);
2305
- (_d = (_c = this.commonProps).slRowReorder) == null ? void 0 : _d.call(_c, {
2306
- fromKey,
2307
- toKey,
2308
- rows: this.commonProps.dataSource,
2309
- newRows
2310
- });
2311
- this.currentInsertIndex = null;
2312
- this.cleanupDragImage();
2313
- };
2314
- this.handleChoose = (evt) => {
2315
- const rows = this.commonProps.tableInstance.getRowModel().rows;
2316
- const fromIndex = evt.oldDraggableIndex;
2317
- if (this.treeCtrl.isTreeMode()) {
2318
- const dragRow = rows[fromIndex];
2319
- if (dragRow) {
2320
- this.draggingRowKey = this.commonProps.adapter.getRecordKey(dragRow.original);
2321
- this.draggingKeys = /* @__PURE__ */ new Set([this.draggingRowKey]);
2322
- this.treeCtrl.collectSubRowKeys(dragRow, this.draggingKeys);
2323
- const keyToCollapse = this.draggingRowKey;
2324
- evt.item.addEventListener("dragstart", () => this.treeCtrl.collapseForDrag(keyToCollapse), {
2325
- once: true
2326
- });
2327
- }
2328
- this.draggingBlock = { start: fromIndex, end: fromIndex };
2329
- this.requestUpdate();
2330
- if (dragRow) {
2331
- const text = this.getFirstDataColumnText(dragRow);
2332
- const dragImage2 = this.createDragImage(text || null);
2333
- if (dragImage2) {
2334
- this.dragImageEl = dragImage2;
2335
- evt.item.addEventListener(
2336
- "dragstart",
2337
- (e2) => {
2338
- var _a;
2339
- return (_a = e2.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage2, dragImage2.offsetWidth * 0.2, dragImage2.offsetHeight * 0.75);
2340
- },
2341
- { once: true }
2342
- );
2343
- }
2344
- }
2345
- return;
2346
- }
2347
- const { start, end } = this.getSelectedBlock(rows, fromIndex);
2348
- this.draggingBlock = { start, end };
2349
- this.requestUpdate();
2350
- if (start === end) {
2351
- const dragRow = rows[fromIndex];
2352
- const text = this.getFirstDataColumnText(dragRow);
2353
- const dragImage2 = this.createDragImage(text || null);
2354
- if (dragImage2) {
2355
- this.dragImageEl = dragImage2;
2356
- evt.item.addEventListener(
2357
- "dragstart",
2358
- (e2) => {
2359
- var _a;
2360
- return (_a = e2.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage2, dragImage2.offsetWidth * 0.2, dragImage2.offsetHeight * 0.75);
2361
- },
2362
- { once: true }
2363
- );
2364
- }
2365
- return;
2366
- }
2367
- const dragImage = this.createDragImage(`\u62D6\u52A8 ${end - start + 1} \u884C\u6570\u636E`);
2368
- if (dragImage) {
2369
- this.dragImageEl = dragImage;
2370
- evt.item.addEventListener(
2371
- "dragstart",
2372
- (e2) => {
2373
- var _a;
2374
- return (_a = e2.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage, dragImage.offsetWidth * 0.2, dragImage.offsetHeight * 0.75);
2375
- },
2376
- { once: true }
2377
- );
2378
- }
2379
- };
2380
- this.handleUnchoose = () => {
2381
- var _a;
2382
- this.draggingBlock = { start: -1, end: -1 };
2383
- this.draggingKeys.clear();
2384
- (_a = this.cleanupDragImage) == null ? void 0 : _a.call(this);
2385
- this.requestUpdate();
2386
- };
2387
- }
2388
- get commonProps() {
2389
- return this.getCommonProps();
2390
- }
2391
- get bodyRef() {
2392
- return this.getBodyRef();
2393
- }
2394
- // ===================== 辅助方法 =====================
2395
- getSelectedBlock(rows, fromIndex) {
2396
- const selected = this.commonProps.rowSelectedMap;
2397
- if (!selected[rows[fromIndex].id]) {
2398
- return { start: fromIndex, end: fromIndex };
2399
- }
2400
- let start = fromIndex;
2401
- let end = fromIndex;
2402
- while (start > 0 && selected[rows[start - 1].id]) start--;
2403
- while (end < rows.length - 1 && selected[rows[end + 1].id]) end++;
2404
- return { start, end };
2405
- }
2406
- getFirstDataColumnText(row) {
2407
- var _a;
2408
- const pinning = this.commonProps.tableInstance.getState().columnPinning;
2409
- const nonDataIds = new Set((_a = pinning == null ? void 0 : pinning.left) != null ? _a : []);
2410
- const cells = row.getVisibleCells();
2411
- for (const cell of cells) {
2412
- if (nonDataIds.has(cell.column.id)) continue;
2413
- const value = cell.getValue();
2414
- if (value == null || value === "") return "";
2415
- return String(value);
2416
- }
2417
- return "";
2418
- }
2419
- getTableContainerWidth() {
2420
- var _a, _b;
2421
- const bodyEl = (_a = this.bodyRef) == null ? void 0 : _a.value;
2422
- return (_b = bodyEl == null ? void 0 : bodyEl.clientWidth) != null ? _b : 600;
2423
- }
2424
- createDragImage(text) {
2425
- if (text === null) return null;
2426
- const maxWidth = this.getTableContainerWidth();
2427
- const dragImage = document.createElement("div");
2428
- dragImage.textContent = text;
2429
- Object.assign(dragImage.style, {
2430
- position: "fixed",
2431
- padding: "10px 8px",
2432
- color: "#212121",
2433
- fontSize: "12px",
2434
- background: "#FFFFFF",
2435
- border: "1px solid rgba(217,217,217,1)",
2436
- boxShadow: "0px 6px 16px 3px rgba(0,0,0,0.08)",
2437
- borderRadius: "2px",
2438
- lineHeight: "21px",
2439
- minWidth: "80px",
2440
- maxWidth: `${maxWidth}px`,
2441
- width: "fit-content",
2442
- boxSizing: "border-box",
2443
- overflow: "hidden",
2444
- whiteSpace: "nowrap",
2445
- textOverflow: "ellipsis",
2446
- textAlign: "center"
2447
- });
2448
- document.body.appendChild(dragImage);
2449
- return dragImage;
2450
- }
2451
- // ===================== 树型拖拽目标计算 =====================
2452
- calcDragTarget(evt) {
2453
- const tbody = this.tbodyRef.value;
2454
- if (!tbody) return null;
2455
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2456
- if (!rows.length) return null;
2457
- const mouseY = evt.originalEvent.clientY;
2458
- const firstRect = rows[0].getBoundingClientRect();
2459
- const lastRect = rows[rows.length - 1].getBoundingClientRect();
2460
- let targetRowEl = null;
2461
- let rowIndex = -1;
2462
- if (mouseY <= firstRect.top) {
2463
- targetRowEl = rows[0];
2464
- rowIndex = 0;
2465
- } else if (mouseY >= lastRect.bottom) {
2466
- targetRowEl = rows[rows.length - 1];
2467
- rowIndex = rows.length - 1;
2468
- } else {
2469
- for (let i = 0; i < rows.length; i++) {
2470
- const rect2 = rows[i].getBoundingClientRect();
2471
- if (mouseY >= rect2.top && mouseY < rect2.bottom) {
2472
- targetRowEl = rows[i];
2473
- rowIndex = i;
2474
- break;
2475
- }
2476
- }
2477
- }
2478
- if (!targetRowEl || rowIndex < 0) return null;
2479
- const rect = targetRowEl.getBoundingClientRect();
2480
- const offset = mouseY - rect.top;
2481
- const rowHeight = rect.height;
2482
- const targetRowKey = targetRowEl.dataset.rowKey;
2483
- let position;
2484
- if (offset < rowHeight * 0.35) position = "before";
2485
- else if (offset > rowHeight * 0.65) position = "after";
2486
- else position = "inside";
2487
- const depth = this.treeCtrl.getRowDepth(targetRowKey);
2488
- return { rowIndex, position, rowKey: targetRowKey, depth };
2489
- }
2490
- resetTreeDragState() {
2491
- this.dropTarget = null;
2492
- this.draggingBlock = { start: -1, end: -1 };
2493
- this.draggingRowKey = null;
2494
- this.draggingKeys.clear();
2495
- this.requestUpdate();
2496
- this.cleanupDragImage();
2497
- }
2498
- // ===================== 指示线渲染 =====================
2499
- getIndicatorLeft(targetRowEl, depth) {
2500
- var _a;
2501
- const cfg = this.treeCtrl.getTreeConfig();
2502
- const indentSize = (_a = cfg == null ? void 0 : cfg.indentSize) != null ? _a : 16;
2503
- const tbody = this.tbodyRef.value;
2504
- if (!tbody) return depth * indentSize;
2505
- const tbodyRect = tbody.getBoundingClientRect();
2506
- const contentDiv = targetRowEl.querySelector(".tree-cell-content");
2507
- if (contentDiv) {
2508
- const hasExpandIcon = !!contentDiv.querySelector(".row-expand-icon");
2509
- if (hasExpandIcon) {
2510
- const paddingLeft = parseFloat(getComputedStyle(contentDiv).paddingInlineStart) || 0;
2511
- return contentDiv.getBoundingClientRect().left - tbodyRect.left + paddingLeft;
2512
- }
2513
- const textSpan = contentDiv.querySelector(".tree-cell-text");
2514
- const refEl = textSpan != null ? textSpan : contentDiv;
2515
- return refEl.getBoundingClientRect().left - tbodyRect.left;
2516
- }
2517
- return depth * indentSize;
2518
- }
2519
- renderIndicator() {
2520
- const tbody = this.tbodyRef.value;
2521
- if (!tbody) return "";
2522
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2523
- if (!rows.length) return "";
2524
- const isTree = this.treeCtrl.isTreeMode();
2525
- if (isTree && this.dropTarget) {
2526
- const { rowIndex, position, depth } = this.dropTarget;
2527
- const row2 = rows[rowIndex];
2528
- if (!row2) return "";
2529
- if (position === "inside") {
2530
- return b`
2531
- <div
2532
- style="
2533
- position:absolute;
2534
- left:0;
2535
- right:0;
2536
- top:${row2.offsetTop}px;
2537
- height:${row2.offsetHeight}px;
2538
- border:2px solid #1677ff;
2539
- border-radius:2px;
2540
- pointer-events:none;
2541
- z-index:10;
2542
- box-sizing:border-box;
2543
- "
2544
- ></div>
2545
- `;
2546
- }
2547
- const top2 = position === "before" ? row2.offsetTop : row2.offsetTop + row2.offsetHeight;
2548
- const left = this.getIndicatorLeft(row2, depth);
2549
- return b`
2550
- <div
2551
- style="
2552
- position:absolute;
2553
- left:${left}px;
2554
- right:0;
2555
- top:${top2}px;
2556
- height:2px;
2557
- background:#1677ff;
2558
- pointer-events:none;
2559
- z-index:10;
2560
- "
2561
- ></div>
2562
- `;
2563
- }
2564
- if (this.currentInsertIndex === null) return "";
2565
- const index2 = Math.min(this.currentInsertIndex, rows.length - 1);
2566
- const row = rows[index2];
2567
- const top = this.currentInsertIndex >= rows.length ? row.offsetTop + row.offsetHeight : row.offsetTop;
2568
- return b`
2569
- <div
2570
- style="
2571
- position:absolute;
2572
- left:0;
2573
- right:0;
2574
- top:${top}px;
2575
- height:2px;
2576
- background:#1677ff;
2577
- pointer-events:none;
2578
- z-index:10;
2579
- "
2580
- ></div>
2581
- `;
2582
- }
2583
- // ===================== Sortable 初始化 =====================
2584
- initSortable() {
2585
- var _a, _b;
2586
- const { rowDrag, virtualized } = this.commonProps;
2587
- if (!rowDrag || virtualized) {
2588
- (_a = this.sortable) == null ? void 0 : _a.destroy();
2589
- this.sortable = void 0;
2590
- return;
2591
- }
2592
- const el = this.tbodyRef.value;
2593
- if (!el) return;
2594
- (_b = this.sortable) == null ? void 0 : _b.destroy();
2595
- this.sortable = sortable_esm_default.create(el, {
2596
- animation: 0,
2597
- draggable: "tr[data-row-key]",
2598
- handle: ".row-drag-handle",
2599
- onChoose: this.handleChoose,
2600
- onMove: this.handleMove,
2601
- onEnd: this.handleEnd,
2602
- onUnchoose: this.handleUnchoose
2603
- });
2604
- }
2605
- /** 判断某行是否处于拖拽中 */
2606
- isRowDragging(rowKey, rowIndex) {
2607
- if (this.draggingKeys.size > 0) {
2608
- return this.draggingKeys.has(rowKey);
2609
- }
2610
- const block = this.draggingBlock;
2611
- return !!block && rowIndex >= block.start && rowIndex <= block.end;
2612
- }
2613
- destroy() {
2614
- var _a;
2615
- (_a = this.sortable) == null ? void 0 : _a.destroy();
2616
- this.sortable = void 0;
2617
- this.cleanupDragImage();
2618
- }
2619
- };
2620
-
2621
- export {
2622
- RowDragController
2623
- };
2624
- /*! Bundled license information:
2625
-
2626
- sortablejs/modular/sortable.esm.js:
2627
- (**!
2628
- * Sortable 1.15.7
2629
- * @author RubaXa <trash@rubaxa.org>
2630
- * @author owenm <owen23355@gmail.com>
2631
- * @license MIT
2632
- *)
2633
- */