@kdcloudjs/shoelace 1.0.22 → 1.0.24

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 (1435) hide show
  1. package/cdn/assets/icons/deep-thinking.svg +3 -0
  2. package/cdn/assets/icons/icons.json +8 -0
  3. package/cdn/chunks/chunk.22TYIXTA.js +292 -0
  4. package/cdn/chunks/chunk.24TMWFZI.js +21 -0
  5. package/cdn/chunks/chunk.27S7CN3L.js +1252 -0
  6. package/cdn/chunks/chunk.2ELNDX5B.js +11 -0
  7. package/cdn/chunks/chunk.2FV5XERM.js +557 -0
  8. package/cdn/chunks/chunk.2SQFARJY.js +103 -0
  9. package/cdn/chunks/chunk.3AZTMG76.js +314 -0
  10. package/cdn/chunks/chunk.3HOKHNSR.js +25 -0
  11. package/cdn/chunks/chunk.3K7RJBWP.js +367 -0
  12. package/cdn/chunks/chunk.3QXKN7OP.js +25 -0
  13. package/cdn/chunks/chunk.3VU3HRBY.js +21 -0
  14. package/cdn/chunks/chunk.44AIFQAQ.js +27 -0
  15. package/cdn/chunks/chunk.4FWYPKFM.js +11 -0
  16. package/cdn/chunks/chunk.4GUQL6Z4.js +11 -0
  17. package/cdn/chunks/chunk.4OQ7KC6D.js +11 -0
  18. package/cdn/chunks/chunk.4POTUNZF.js +161 -0
  19. package/cdn/chunks/chunk.4SIT52UV.js +510 -0
  20. package/cdn/chunks/chunk.5FLLC5Q2.js +11 -0
  21. package/cdn/chunks/chunk.5K7FQTYD.js +42 -0
  22. package/cdn/chunks/chunk.5RVKZJGL.js +120 -0
  23. package/cdn/chunks/chunk.5S6RNFQR.js +131 -0
  24. package/cdn/chunks/chunk.5Y77SGZR.js +25 -0
  25. package/cdn/chunks/chunk.5ZHB6TT6.js +11 -0
  26. package/cdn/chunks/chunk.63BJBMJY.js +391 -0
  27. package/cdn/chunks/chunk.67LONCDT.js +109 -0
  28. package/cdn/chunks/chunk.6DSOPPEX.js +36 -0
  29. package/cdn/chunks/chunk.6G4S2NVC.js +11 -0
  30. package/cdn/chunks/chunk.6KPPUETY.js +24 -0
  31. package/cdn/chunks/chunk.6VV74C6J.js +233 -0
  32. package/cdn/chunks/chunk.6W5FD7GW.js +11 -0
  33. package/cdn/chunks/chunk.74FK5QPR.js +24 -0
  34. package/cdn/chunks/chunk.74V64XRA.js +11 -0
  35. package/cdn/chunks/chunk.75TMKH6H.js +236 -0
  36. package/cdn/chunks/chunk.77O6GK5P.js +27 -0
  37. package/cdn/chunks/chunk.77WA4DDJ.js +402 -0
  38. package/cdn/chunks/chunk.7NXMII7U.js +21 -0
  39. package/cdn/chunks/chunk.7PLHFZPT.js +279 -0
  40. package/cdn/chunks/chunk.7VIDWPYE.js +26 -0
  41. package/cdn/chunks/chunk.7WQDBF57.js +25 -0
  42. package/cdn/chunks/chunk.7WXGOXGM.js +11 -0
  43. package/cdn/chunks/chunk.7ZKNXZZZ.js +336 -0
  44. package/cdn/chunks/chunk.AMFWSGNE.js +27 -0
  45. package/cdn/chunks/chunk.ANCRWEH5.js +21 -0
  46. package/cdn/chunks/chunk.ANIXMSH3.js +25 -0
  47. package/cdn/chunks/chunk.AQ3YVYJX.js +21 -0
  48. package/cdn/chunks/chunk.AQZE2IYG.js +11 -0
  49. package/cdn/chunks/chunk.B7JDZ7KE.js +74 -0
  50. package/cdn/chunks/chunk.BF64C4IK.js +26 -0
  51. package/cdn/chunks/chunk.BFDN5DKF.js +21 -0
  52. package/cdn/chunks/chunk.BRI5XG3P.js +25 -0
  53. package/cdn/chunks/chunk.BS3XR3O5.js +27 -0
  54. package/cdn/chunks/chunk.BZ7QTFWP.js +24 -0
  55. package/cdn/chunks/chunk.BZIQSQQQ.js +28 -0
  56. package/cdn/chunks/chunk.C5GOQQXR.js +365 -0
  57. package/cdn/chunks/chunk.CPMOMOHT.js +29 -0
  58. package/cdn/chunks/chunk.CRZ5RU46.js +11 -0
  59. package/cdn/chunks/chunk.D3PEI6RB.js +137 -0
  60. package/cdn/chunks/chunk.D4M74XRW.js +11 -0
  61. package/cdn/chunks/chunk.D5E3FX5Y.js +21 -0
  62. package/cdn/chunks/chunk.DGK4NXGH.js +25 -0
  63. package/cdn/chunks/chunk.DGTU2T5K.js +11 -0
  64. package/cdn/chunks/chunk.DHM73TAZ.js +28 -0
  65. package/cdn/chunks/chunk.DIWCUJ7H.js +77 -0
  66. package/cdn/chunks/chunk.DJLB6Y6I.js +379 -0
  67. package/cdn/chunks/chunk.DK37CGYV.js +53 -0
  68. package/cdn/chunks/chunk.DTA7RYUP.js +28 -0
  69. package/cdn/chunks/chunk.DYDW5FEZ.js +183 -0
  70. package/cdn/chunks/chunk.DZ7DMJIE.js +11 -0
  71. package/cdn/chunks/chunk.E4MGFMWW.js +27 -0
  72. package/cdn/chunks/chunk.E6XQTO7Y.js +299 -0
  73. package/cdn/chunks/chunk.EDJ54TX6.js +216 -0
  74. package/cdn/chunks/chunk.EH4YG23E.js +11 -0
  75. package/cdn/chunks/chunk.EITVCGIT.js +11 -0
  76. package/cdn/chunks/chunk.ER5Z6V35.js +27 -0
  77. package/cdn/chunks/chunk.ESJYMJ6I.js +335 -0
  78. package/cdn/chunks/chunk.ETKYNREZ.js +21 -0
  79. package/cdn/chunks/chunk.EZEYXNKB.js +11 -0
  80. package/cdn/chunks/chunk.F2BK7NVB.js +313 -0
  81. package/cdn/chunks/chunk.FI7FJ5EG.js +21 -0
  82. package/cdn/chunks/chunk.FKMS47JC.js +28 -0
  83. package/cdn/chunks/chunk.FLD7JOAX.js +11 -0
  84. package/cdn/chunks/chunk.FLG3X3PP.js +21 -0
  85. package/cdn/chunks/chunk.G7C5UCFZ.js +11 -0
  86. package/cdn/chunks/chunk.GBU5EFFO.js +11 -0
  87. package/cdn/chunks/chunk.GTEJQ23Z.js +291 -0
  88. package/cdn/chunks/chunk.GXZV5YMC.js +271 -0
  89. package/cdn/chunks/chunk.H22RF25A.js +29 -0
  90. package/cdn/chunks/chunk.H4DBKDSR.js +25 -0
  91. package/cdn/chunks/chunk.HFR3AN3M.js +21 -0
  92. package/cdn/chunks/chunk.HGDY6IWT.js +127 -0
  93. package/cdn/chunks/chunk.HKBHGSZL.js +11 -0
  94. package/cdn/chunks/chunk.HOM5GOS4.js +11 -0
  95. package/cdn/chunks/chunk.HSAGQDFD.js +11 -0
  96. package/cdn/chunks/chunk.HSIZ2KAM.js +21 -0
  97. package/cdn/chunks/chunk.I2GBATXH.js +29 -0
  98. package/cdn/chunks/chunk.I2VTCCGX.js +335 -0
  99. package/cdn/chunks/chunk.IA7CSY22.js +586 -0
  100. package/cdn/chunks/chunk.IDB6ZRU3.js +11 -0
  101. package/cdn/chunks/chunk.IDR57BFZ.js +128 -0
  102. package/cdn/chunks/chunk.IGOMODXA.js +11 -0
  103. package/cdn/chunks/chunk.IIYTTNBD.js +21 -0
  104. package/cdn/chunks/chunk.IS6YNJSF.js +11 -0
  105. package/cdn/chunks/chunk.IWM5IE3Q.js +220 -0
  106. package/cdn/chunks/chunk.IZ4DQGJ2.js +24 -0
  107. package/cdn/chunks/chunk.IZBTDX6E.js +24 -0
  108. package/cdn/chunks/chunk.JAWNQ6P7.js +11 -0
  109. package/cdn/chunks/chunk.JDAO6JF2.js +11 -0
  110. package/cdn/chunks/chunk.JINGOETV.js +135 -0
  111. package/cdn/chunks/chunk.JMCFBEHX.js +21 -0
  112. package/cdn/chunks/chunk.JN4XI7YS.js +24 -0
  113. package/cdn/chunks/chunk.JOJNHHWO.js +250 -0
  114. package/cdn/chunks/chunk.JSWPFG67.js +282 -0
  115. package/cdn/chunks/chunk.KGAFTSOB.js +291 -0
  116. package/cdn/chunks/chunk.KHIVRFZE.js +24 -0
  117. package/cdn/chunks/chunk.KJCDISFG.js +5845 -0
  118. package/cdn/chunks/chunk.KKCLXXWI.js +23 -0
  119. package/cdn/chunks/chunk.KNKSTIP4.js +73 -0
  120. package/cdn/chunks/chunk.KNOZGUO4.js +11 -0
  121. package/cdn/chunks/chunk.KOUEC74P.js +24 -0
  122. package/cdn/chunks/chunk.KU5SLRRE.js +11 -0
  123. package/cdn/chunks/chunk.L6NJUBPG.js +215 -0
  124. package/cdn/chunks/chunk.LEMUG7K5.js +11 -0
  125. package/cdn/chunks/chunk.LLKWTUYM.js +302 -0
  126. package/cdn/chunks/chunk.LPD7LHWQ.js +142 -0
  127. package/cdn/chunks/chunk.LPGY67OD.js +11 -0
  128. package/cdn/chunks/chunk.LTVZTPAR.js +197 -0
  129. package/cdn/chunks/chunk.LV2DFCHT.js +168 -0
  130. package/cdn/chunks/chunk.LVPXC4H5.js +24 -0
  131. package/cdn/chunks/chunk.LWMULRAP.js +11 -0
  132. package/cdn/chunks/chunk.LXROM5JX.js +11 -0
  133. package/cdn/chunks/chunk.M65TIQEK.js +255 -0
  134. package/cdn/chunks/chunk.MB2NYTEO.js +11 -0
  135. package/cdn/chunks/chunk.MD56MRKW.js +21 -0
  136. package/cdn/chunks/chunk.MHDZVA7Z.js +49 -0
  137. package/cdn/chunks/chunk.MIFMJ4EZ.js +11 -0
  138. package/cdn/chunks/chunk.MIJUGDEE.js +33 -0
  139. package/cdn/chunks/chunk.MJUQ2GTY.js +7313 -0
  140. package/cdn/chunks/chunk.MPZBBWRF.js +93 -0
  141. package/cdn/chunks/chunk.MQGOL7DD.js +11 -0
  142. package/cdn/chunks/chunk.MWYIWCGC.js +75 -0
  143. package/cdn/chunks/chunk.N3DKIBN4.js +11 -0
  144. package/cdn/chunks/chunk.N4QTD4Z5.js +2953 -0
  145. package/cdn/chunks/chunk.N7QLXEDU.js +1168 -0
  146. package/cdn/chunks/chunk.NDMEEWKE.js +11 -0
  147. package/cdn/chunks/chunk.NI3TETRL.js +11 -0
  148. package/cdn/chunks/chunk.NJP5W6FM.js +11 -0
  149. package/cdn/chunks/chunk.NLDNIWNS.js +11 -0
  150. package/cdn/chunks/chunk.NR4PCBKC.js +11 -0
  151. package/cdn/chunks/chunk.NSSKKZYM.js +27 -0
  152. package/cdn/chunks/chunk.NY7AYE6R.js +11 -0
  153. package/cdn/chunks/chunk.ODVWJ247.js +587 -0
  154. package/cdn/chunks/chunk.ODZWT56C.js +11 -0
  155. package/cdn/chunks/chunk.OF52B2HK.js +21 -0
  156. package/cdn/chunks/chunk.OUTEP4NK.js +28 -0
  157. package/cdn/chunks/chunk.P25M3JYY.js +123 -0
  158. package/cdn/chunks/chunk.P56UKCWY.js +21 -0
  159. package/cdn/chunks/chunk.P7DRBVZJ.js +276 -0
  160. package/cdn/chunks/chunk.PAWOBCY7.js +21 -0
  161. package/cdn/chunks/chunk.PHKLL54L.js +21 -0
  162. package/cdn/chunks/chunk.PHMZYDNN.js +11 -0
  163. package/cdn/chunks/chunk.PJMU4EA6.js +24 -0
  164. package/cdn/chunks/chunk.PLVLOUBH.js +24 -0
  165. package/cdn/chunks/chunk.Q3AZNGKX.js +25 -0
  166. package/cdn/chunks/chunk.QCAAOD32.js +11 -0
  167. package/cdn/chunks/chunk.QJKLWU6S.js +21 -0
  168. package/cdn/chunks/chunk.QLCLJKTM.js +158 -0
  169. package/cdn/chunks/chunk.QQUQHQLJ.js +153 -0
  170. package/cdn/chunks/chunk.QSFZR76Q.js +11 -0
  171. package/cdn/chunks/chunk.QU7YZXW4.js +455 -0
  172. package/cdn/chunks/chunk.QVCTMSPK.js +26 -0
  173. package/cdn/chunks/chunk.QXRHYINF.js +24 -0
  174. package/cdn/chunks/chunk.QYT2HPOQ.js +28 -0
  175. package/cdn/chunks/chunk.R56BHN7E.js +1925 -0
  176. package/cdn/chunks/chunk.R6FJ4PT3.js +29 -0
  177. package/cdn/chunks/chunk.RBPG5CYI.js +171 -0
  178. package/cdn/chunks/chunk.RS7ZND2Y.js +21 -0
  179. package/cdn/chunks/chunk.RSYLU6GZ.js +21 -0
  180. package/cdn/chunks/chunk.RUNSTFUQ.js +21 -0
  181. package/cdn/chunks/chunk.RVHXWFFQ.js +114 -0
  182. package/cdn/chunks/chunk.RVXIID4Q.js +724 -0
  183. package/cdn/chunks/chunk.S3FGB2EZ.js +95 -0
  184. package/cdn/chunks/chunk.S7OMRZIO.js +11 -0
  185. package/cdn/chunks/chunk.S7TDDGVW.js +343 -0
  186. package/cdn/chunks/chunk.STJWBBHJ.js +97 -0
  187. package/cdn/chunks/chunk.STK3DLTY.js +11 -0
  188. package/cdn/chunks/chunk.SVDO7HEI.js +515 -0
  189. package/cdn/chunks/chunk.SYU7YBTT.js +87 -0
  190. package/cdn/chunks/chunk.T2KBXRUG.js +24 -0
  191. package/cdn/chunks/chunk.TDWRW5ZR.js +21 -0
  192. package/cdn/chunks/chunk.TEGAYMNF.js +113 -0
  193. package/cdn/chunks/chunk.TEJI7H32.js +435 -0
  194. package/cdn/chunks/chunk.TI6CIDUA.js +11 -0
  195. package/cdn/chunks/chunk.TKKB7SMG.js +11 -0
  196. package/cdn/chunks/chunk.TOXMLQAJ.js +24 -0
  197. package/cdn/chunks/chunk.TXWTMIK5.js +49 -0
  198. package/cdn/chunks/chunk.UCX4DU2G.js +21 -0
  199. package/cdn/chunks/chunk.UHYYL6TH.js +1990 -0
  200. package/cdn/chunks/chunk.UIAZUIMN.js +177 -0
  201. package/cdn/chunks/chunk.UNNJI4UG.js +21 -0
  202. package/cdn/chunks/chunk.UO2AP7PP.js +11 -0
  203. package/cdn/chunks/chunk.UUXLMJVV.js +11 -0
  204. package/cdn/chunks/chunk.VIOTSHJF.js +218 -0
  205. package/cdn/chunks/chunk.VKLSJVE6.js +11 -0
  206. package/cdn/chunks/chunk.VL6JHICH.js +24 -0
  207. package/cdn/chunks/chunk.VNAYV4B6.js +11 -0
  208. package/cdn/chunks/chunk.VTKTAPMS.js +199 -0
  209. package/cdn/chunks/chunk.VXSWXYEF.js +24 -0
  210. package/cdn/chunks/chunk.VYKVVWTZ.js +118 -0
  211. package/cdn/chunks/chunk.W5EKC5KZ.js +21 -0
  212. package/cdn/chunks/chunk.W6VWCIQR.js +11 -0
  213. package/cdn/chunks/chunk.WKSW4F5C.js +11 -0
  214. package/cdn/chunks/chunk.WOO3CMXQ.js +186 -0
  215. package/cdn/chunks/chunk.WSYBNI2G.js +326 -0
  216. package/cdn/chunks/chunk.WTH3ZQJW.js +21 -0
  217. package/cdn/chunks/chunk.WWDLMY4Y.js +63 -0
  218. package/cdn/chunks/chunk.WYWUF6XN.js +11 -0
  219. package/cdn/chunks/chunk.X22UUVIP.js +24 -0
  220. package/cdn/chunks/chunk.X2ZIGG4P.js +11 -0
  221. package/cdn/chunks/chunk.XEF7ICTP.js +11 -0
  222. package/cdn/chunks/chunk.XFKDR7MC.js +11 -0
  223. package/cdn/chunks/chunk.XIXZT27M.js +11 -0
  224. package/cdn/chunks/chunk.XKNRP2XF.js +50 -0
  225. package/cdn/chunks/chunk.XOTCRXWY.js +11 -0
  226. package/cdn/chunks/chunk.XPX6S756.js +82 -0
  227. package/cdn/chunks/chunk.XRTVB6YB.js +54 -0
  228. package/cdn/chunks/chunk.XS2WWOSK.js +26 -0
  229. package/cdn/chunks/chunk.YDMMJWDX.js +122 -0
  230. package/cdn/chunks/chunk.YFPPRFWO.js +11 -0
  231. package/cdn/chunks/chunk.YFZAGONJ.js +11 -0
  232. package/cdn/chunks/chunk.YIEE2CBR.js +346 -0
  233. package/cdn/chunks/chunk.YKR5FPEW.js +235 -0
  234. package/cdn/chunks/chunk.YPY47HEC.js +11 -0
  235. package/cdn/chunks/chunk.YW2RQDSJ.js +822 -0
  236. package/cdn/chunks/chunk.YZ32WZSR.js +11 -0
  237. package/cdn/chunks/chunk.Z26PTWRK.js +11 -0
  238. package/cdn/chunks/chunk.ZA62RUD6.js +42 -0
  239. package/cdn/chunks/chunk.ZINYUY2Y.js +21 -0
  240. package/cdn/chunks/chunk.ZKN5ZOPX.js +25 -0
  241. package/cdn/chunks/chunk.ZMCDZTI3.js +11 -0
  242. package/cdn/chunks/chunk.ZVGYJ7L3.js +79 -0
  243. package/cdn/chunks/chunk.ZWW43447.js +67 -0
  244. package/cdn/chunks/chunk.ZYBJOUP6.js +219 -0
  245. package/cdn/components/alert/alert.component.js +8 -8
  246. package/cdn/components/alert/alert.js +9 -9
  247. package/cdn/components/animated-image/animated-image.component.js +4 -4
  248. package/cdn/components/animated-image/animated-image.js +5 -5
  249. package/cdn/components/animation/animation.component.js +3 -3
  250. package/cdn/components/animation/animation.js +4 -4
  251. package/cdn/components/avatar/avatar.component.js +4 -4
  252. package/cdn/components/avatar/avatar.js +5 -5
  253. package/cdn/components/badge/badge.component.js +2 -2
  254. package/cdn/components/badge/badge.js +3 -3
  255. package/cdn/components/breadcrumb/breadcrumb.component.js +4 -4
  256. package/cdn/components/breadcrumb/breadcrumb.js +5 -5
  257. package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  258. package/cdn/components/breadcrumb-item/breadcrumb-item.js +3 -3
  259. package/cdn/components/button/button.component.js +7 -7
  260. package/cdn/components/button/button.js +8 -8
  261. package/cdn/components/button-group/button-group.component.js +2 -2
  262. package/cdn/components/button-group/button-group.js +3 -3
  263. package/cdn/components/calendar/calendar.component.js +9 -9
  264. package/cdn/components/calendar/calendar.js +9 -9
  265. package/cdn/components/card/card.component.js +2 -2
  266. package/cdn/components/card/card.js +3 -3
  267. package/cdn/components/carousel/carousel.component.js +5 -5
  268. package/cdn/components/carousel/carousel.js +6 -6
  269. package/cdn/components/carousel-item/carousel-item.component.js +2 -2
  270. package/cdn/components/carousel-item/carousel-item.js +3 -3
  271. package/cdn/components/checkbox/checkbox.component.js +5 -5
  272. package/cdn/components/checkbox/checkbox.js +6 -6
  273. package/cdn/components/col/col.component.js +11 -0
  274. package/cdn/components/col/col.js +12 -0
  275. package/cdn/components/col/col.styles.js +8 -0
  276. package/cdn/components/color-picker/color-picker.component.js +19 -19
  277. package/cdn/components/color-picker/color-picker.js +20 -20
  278. package/cdn/components/copy-button/copy-button.component.js +7 -7
  279. package/cdn/components/copy-button/copy-button.js +8 -8
  280. package/cdn/components/date-panel/date-panel.component.js +14 -14
  281. package/cdn/components/date-panel/date-panel.js +14 -14
  282. package/cdn/components/date-panel/date-panel.styles.js +1 -1
  283. package/cdn/components/datepicker/datepicker.component.js +21 -21
  284. package/cdn/components/datepicker/datepicker.js +21 -21
  285. package/cdn/components/daterange/daterange.component.js +13 -13
  286. package/cdn/components/daterange/daterange.js +14 -14
  287. package/cdn/components/daterange/daterange.styles.js +1 -1
  288. package/cdn/components/details/details.component.js +4 -4
  289. package/cdn/components/details/details.js +5 -5
  290. package/cdn/components/dialog/dialog.component.js +8 -8
  291. package/cdn/components/dialog/dialog.js +9 -9
  292. package/cdn/components/divider/divider.component.js +2 -2
  293. package/cdn/components/divider/divider.js +3 -3
  294. package/cdn/components/drawer/drawer.component.js +8 -8
  295. package/cdn/components/drawer/drawer.js +9 -9
  296. package/cdn/components/dropdown/dropdown.component.js +5 -5
  297. package/cdn/components/dropdown/dropdown.js +6 -6
  298. package/cdn/components/format-bytes/format-bytes.component.js +2 -2
  299. package/cdn/components/format-bytes/format-bytes.js +3 -3
  300. package/cdn/components/format-date/format-date.component.js +2 -2
  301. package/cdn/components/format-date/format-date.js +3 -3
  302. package/cdn/components/format-number/format-number.component.js +2 -2
  303. package/cdn/components/format-number/format-number.js +3 -3
  304. package/cdn/components/icon/icon.component.js +3 -3
  305. package/cdn/components/icon/icon.js +4 -4
  306. package/cdn/components/icon-button/icon-button.component.js +4 -4
  307. package/cdn/components/icon-button/icon-button.js +5 -5
  308. package/cdn/components/image-comparer/image-comparer.component.js +4 -4
  309. package/cdn/components/image-comparer/image-comparer.js +5 -5
  310. package/cdn/components/include/include.component.js +2 -2
  311. package/cdn/components/include/include.js +3 -3
  312. package/cdn/components/input/input.component.js +7 -7
  313. package/cdn/components/input/input.js +8 -8
  314. package/cdn/components/input/input.styles.js +1 -1
  315. package/cdn/components/menu/menu.component.js +2 -2
  316. package/cdn/components/menu/menu.js +3 -3
  317. package/cdn/components/menu-item/menu-item.component.js +8 -8
  318. package/cdn/components/menu-item/menu-item.js +9 -9
  319. package/cdn/components/menu-item/menu-item.styles.js +1 -1
  320. package/cdn/components/menu-label/menu-label.component.js +2 -2
  321. package/cdn/components/menu-label/menu-label.js +3 -3
  322. package/cdn/components/mutation-observer/mutation-observer.component.js +2 -2
  323. package/cdn/components/mutation-observer/mutation-observer.js +3 -3
  324. package/cdn/components/nav/nav.component.js +11 -11
  325. package/cdn/components/nav/nav.js +12 -12
  326. package/cdn/components/nav-group/nav-group.component.js +2 -2
  327. package/cdn/components/nav-group/nav-group.js +3 -3
  328. package/cdn/components/nav-item/nav-item.component.js +2 -2
  329. package/cdn/components/nav-item/nav-item.js +3 -3
  330. package/cdn/components/nav-submenu/nav-submenu.component.js +6 -6
  331. package/cdn/components/nav-submenu/nav-submenu.js +7 -7
  332. package/cdn/components/option/option.component.js +5 -5
  333. package/cdn/components/option/option.js +6 -6
  334. package/cdn/components/option/option.styles.js +1 -1
  335. package/cdn/components/pagination/custom-select.js +14 -14
  336. package/cdn/components/pagination/pagination.component.js +15 -15
  337. package/cdn/components/pagination/pagination.js +15 -15
  338. package/cdn/components/popup/popup.component.js +2 -2
  339. package/cdn/components/popup/popup.js +3 -3
  340. package/cdn/components/progress-bar/progress-bar.component.js +3 -3
  341. package/cdn/components/progress-bar/progress-bar.js +4 -4
  342. package/cdn/components/progress-ring/progress-ring.component.js +2 -2
  343. package/cdn/components/progress-ring/progress-ring.js +3 -3
  344. package/cdn/components/qr-code/qr-code.component.js +2 -2
  345. package/cdn/components/qr-code/qr-code.js +3 -3
  346. package/cdn/components/radio/radio.component.js +5 -5
  347. package/cdn/components/radio/radio.js +6 -6
  348. package/cdn/components/radio/radio.styles.js +1 -1
  349. package/cdn/components/radio-button/radio-button.component.js +2 -2
  350. package/cdn/components/radio-button/radio-button.js +3 -3
  351. package/cdn/components/radio-group/radio-group.component.js +4 -4
  352. package/cdn/components/radio-group/radio-group.js +5 -5
  353. package/cdn/components/range/range.component.js +4 -4
  354. package/cdn/components/range/range.js +5 -5
  355. package/cdn/components/rating/rating.component.js +4 -4
  356. package/cdn/components/rating/rating.js +5 -5
  357. package/cdn/components/relative-time/relative-time.component.js +2 -2
  358. package/cdn/components/relative-time/relative-time.js +3 -3
  359. package/cdn/components/resize-observer/resize-observer.component.js +2 -2
  360. package/cdn/components/resize-observer/resize-observer.js +3 -3
  361. package/cdn/components/row/row.component.js +14 -0
  362. package/cdn/components/row/row.js +15 -0
  363. package/cdn/components/row/row.styles.js +8 -0
  364. package/cdn/components/screen/screen.component.js +2 -2
  365. package/cdn/components/screen/screen.js +3 -3
  366. package/cdn/components/select/select.component.js +12 -12
  367. package/cdn/components/select/select.js +13 -13
  368. package/cdn/components/select/select.styles.js +1 -1
  369. package/cdn/components/skeleton/skeleton.component.js +2 -2
  370. package/cdn/components/skeleton/skeleton.js +3 -3
  371. package/cdn/components/spinner/spinner.component.js +2 -2
  372. package/cdn/components/spinner/spinner.js +3 -3
  373. package/cdn/components/split-panel/split-panel.component.js +3 -3
  374. package/cdn/components/split-panel/split-panel.js +4 -4
  375. package/cdn/components/switch/switch.component.js +2 -2
  376. package/cdn/components/switch/switch.js +3 -3
  377. package/cdn/components/tab/tab.component.js +6 -6
  378. package/cdn/components/tab/tab.js +7 -7
  379. package/cdn/components/tab-group/tab-group.component.js +7 -7
  380. package/cdn/components/tab-group/tab-group.js +8 -8
  381. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  382. package/cdn/components/tab-panel/tab-panel.js +3 -3
  383. package/cdn/components/table/body-table.js +2 -2
  384. package/cdn/components/table/features/index.js +3 -3
  385. package/cdn/components/table/head-table.js +27 -27
  386. package/cdn/components/table/spinner-container.js +2 -2
  387. package/cdn/components/table/table.component.js +38 -38
  388. package/cdn/components/table/table.js +40 -40
  389. package/cdn/components/tag/tag.component.js +6 -6
  390. package/cdn/components/tag/tag.js +7 -7
  391. package/cdn/components/textarea/textarea.component.js +2 -2
  392. package/cdn/components/textarea/textarea.js +3 -3
  393. package/cdn/components/think/think.component.js +26 -0
  394. package/cdn/components/think/think.js +27 -0
  395. package/cdn/components/think/think.styles.js +8 -0
  396. package/cdn/components/thought-chain/thought-chain.component.js +11 -0
  397. package/cdn/components/thought-chain/thought-chain.js +12 -0
  398. package/cdn/components/thought-chain/thought-chain.styles.js +8 -0
  399. package/cdn/components/thought-chain-item/thought-chain-item.component.js +14 -0
  400. package/cdn/components/thought-chain-item/thought-chain-item.js +15 -0
  401. package/cdn/components/thought-chain-item/thought-chain-item.styles.js +8 -0
  402. package/cdn/components/thought-chain-node/thought-chain-node.component.js +14 -0
  403. package/cdn/components/thought-chain-node/thought-chain-node.js +15 -0
  404. package/cdn/components/thought-chain-node/thought-chain-node.styles.js +8 -0
  405. package/cdn/components/time-panel/time-panel.component.js +8 -8
  406. package/cdn/components/time-panel/time-panel.js +8 -8
  407. package/cdn/components/timepicker/timepicker.component.js +21 -21
  408. package/cdn/components/timepicker/timepicker.js +21 -21
  409. package/cdn/components/tooltip/tooltip.component.js +3 -3
  410. package/cdn/components/tooltip/tooltip.js +4 -4
  411. package/cdn/components/tree/tree.component.js +11 -11
  412. package/cdn/components/tree/tree.js +12 -12
  413. package/cdn/components/tree-item/tree-item.component.js +9 -9
  414. package/cdn/components/tree-item/tree-item.js +10 -10
  415. package/cdn/components/visually-hidden/visually-hidden.component.js +2 -2
  416. package/cdn/components/visually-hidden/visually-hidden.js +3 -3
  417. package/cdn/custom-elements.json +10094 -8477
  418. package/cdn/react/alert/index.js +9 -9
  419. package/cdn/react/animated-image/index.js +5 -5
  420. package/cdn/react/animation/index.js +4 -4
  421. package/cdn/react/avatar/index.js +5 -5
  422. package/cdn/react/badge/index.js +3 -3
  423. package/cdn/react/breadcrumb/index.js +5 -5
  424. package/cdn/react/breadcrumb-item/index.js +3 -3
  425. package/cdn/react/button/index.js +8 -8
  426. package/cdn/react/button-group/index.js +3 -3
  427. package/cdn/react/card/index.js +3 -3
  428. package/cdn/react/carousel/index.js +6 -6
  429. package/cdn/react/carousel-item/index.js +3 -3
  430. package/cdn/react/checkbox/index.js +6 -6
  431. package/cdn/react/col/index.js +12 -0
  432. package/cdn/react/color-picker/index.js +20 -20
  433. package/cdn/react/copy-button/index.js +8 -8
  434. package/cdn/react/date-panel/index.js +15 -15
  435. package/cdn/react/datepicker/index.js +22 -22
  436. package/cdn/react/daterange/index.js +14 -14
  437. package/cdn/react/details/index.js +5 -5
  438. package/cdn/react/dialog/index.js +9 -9
  439. package/cdn/react/divider/index.js +3 -3
  440. package/cdn/react/drawer/index.js +9 -9
  441. package/cdn/react/dropdown/index.js +6 -6
  442. package/cdn/react/format-bytes/index.js +3 -3
  443. package/cdn/react/format-date/index.js +3 -3
  444. package/cdn/react/format-number/index.js +3 -3
  445. package/cdn/react/icon/index.js +4 -4
  446. package/cdn/react/icon-button/index.js +5 -5
  447. package/cdn/react/image-comparer/index.js +5 -5
  448. package/cdn/react/include/index.js +3 -3
  449. package/cdn/react/index.js +279 -243
  450. package/cdn/react/input/index.js +8 -8
  451. package/cdn/react/menu/index.js +3 -3
  452. package/cdn/react/menu-item/index.js +9 -9
  453. package/cdn/react/menu-label/index.js +3 -3
  454. package/cdn/react/mutation-observer/index.js +3 -3
  455. package/cdn/react/nav/index.js +12 -12
  456. package/cdn/react/nav-group/index.js +3 -3
  457. package/cdn/react/nav-item/index.js +3 -3
  458. package/cdn/react/nav-submenu/index.js +7 -7
  459. package/cdn/react/option/index.js +6 -6
  460. package/cdn/react/pagination/index.js +16 -16
  461. package/cdn/react/popup/index.js +3 -3
  462. package/cdn/react/progress-bar/index.js +4 -4
  463. package/cdn/react/progress-ring/index.js +3 -3
  464. package/cdn/react/qr-code/index.js +3 -3
  465. package/cdn/react/radio/index.js +6 -6
  466. package/cdn/react/radio-button/index.js +3 -3
  467. package/cdn/react/radio-group/index.js +5 -5
  468. package/cdn/react/range/index.js +5 -5
  469. package/cdn/react/rating/index.js +5 -5
  470. package/cdn/react/relative-time/index.js +3 -3
  471. package/cdn/react/resize-observer/index.js +3 -3
  472. package/cdn/react/row/index.js +15 -0
  473. package/cdn/react/screen/index.js +3 -3
  474. package/cdn/react/select/index.js +13 -13
  475. package/cdn/react/skeleton/index.js +3 -3
  476. package/cdn/react/spinner/index.js +3 -3
  477. package/cdn/react/split-panel/index.js +4 -4
  478. package/cdn/react/switch/index.js +3 -3
  479. package/cdn/react/tab/index.js +7 -7
  480. package/cdn/react/tab-group/index.js +8 -8
  481. package/cdn/react/tab-panel/index.js +3 -3
  482. package/cdn/react/table/index.js +39 -39
  483. package/cdn/react/tag/index.js +7 -7
  484. package/cdn/react/textarea/index.js +3 -3
  485. package/cdn/react/think/index.js +27 -0
  486. package/cdn/react/thought-chain/index.js +12 -0
  487. package/cdn/react/thought-chain-item/index.js +15 -0
  488. package/cdn/react/thought-chain-node/index.js +15 -0
  489. package/cdn/react/timepicker/index.js +22 -22
  490. package/cdn/react/tooltip/index.js +4 -4
  491. package/cdn/react/tree/index.js +12 -12
  492. package/cdn/react/tree-item/index.js +10 -10
  493. package/cdn/react/visually-hidden/index.js +3 -3
  494. package/cdn/shoelace.js +270 -234
  495. package/cdn/themes/nova.css +10 -10
  496. package/cdn/themes/nova.styles.js +10 -10
  497. package/cdn/types/vue/index.d.ts +571 -268
  498. package/cdn/vscode.html-custom-data.json +435 -158
  499. package/cdn/web-types.json +1270 -663
  500. package/dist/assets/icons/deep-thinking.svg +3 -0
  501. package/dist/assets/icons/icons.json +8 -0
  502. package/dist/chunks/chunk.2GRAYRDH.js +11 -0
  503. package/dist/chunks/chunk.2HCCYWFN.js +11 -0
  504. package/dist/chunks/chunk.2O5OUM7P.js +27 -0
  505. package/dist/chunks/chunk.347XVBGZ.js +215 -0
  506. package/dist/chunks/chunk.3A7FE3T7.js +11 -0
  507. package/dist/chunks/chunk.3CLEZPXW.js +24 -0
  508. package/dist/chunks/chunk.3FPKV7OO.js +11 -0
  509. package/dist/chunks/chunk.3Q3XYGGI.js +100 -0
  510. package/dist/chunks/chunk.3SFEVDLG.js +317 -0
  511. package/dist/chunks/chunk.3XDOTTSB.js +286 -0
  512. package/dist/chunks/chunk.3ZXZ2Y2D.js +337 -0
  513. package/dist/chunks/chunk.46VMWNFN.js +949 -0
  514. package/dist/chunks/chunk.472EUSWT.js +25 -0
  515. package/dist/chunks/chunk.47SXSOLJ.js +11 -0
  516. package/dist/chunks/chunk.4BJTWHTA.js +11 -0
  517. package/dist/chunks/chunk.4E27BE6X.js +11 -0
  518. package/dist/chunks/chunk.4ELLRFID.js +100 -0
  519. package/dist/chunks/chunk.4JYRH5GU.js +217 -0
  520. package/dist/chunks/chunk.4NKDFYQ6.js +231 -0
  521. package/dist/chunks/chunk.4O6AUQZ7.js +29 -0
  522. package/dist/chunks/chunk.4WXOWI5D.js +24 -0
  523. package/dist/chunks/chunk.566L7UDM.js +147 -0
  524. package/dist/chunks/chunk.56NK7P5S.js +743 -0
  525. package/dist/chunks/chunk.56QAHHO4.js +361 -0
  526. package/dist/chunks/chunk.5BARBBGF.js +331 -0
  527. package/dist/chunks/chunk.5CSABBXD.js +29 -0
  528. package/dist/chunks/chunk.5FY564VJ.js +25 -0
  529. package/dist/chunks/chunk.5IC6UVB7.js +11 -0
  530. package/dist/chunks/chunk.5JWIA5X2.js +11 -0
  531. package/dist/chunks/chunk.5K7V4SKG.js +11 -0
  532. package/dist/chunks/chunk.5WVKLITR.js +194 -0
  533. package/dist/chunks/chunk.5YQL334E.js +11 -0
  534. package/dist/chunks/chunk.6A36B3AY.js +11 -0
  535. package/dist/chunks/chunk.6JSA3XVU.js +11 -0
  536. package/dist/chunks/chunk.6KQZFKY5.js +550 -0
  537. package/dist/chunks/chunk.6YAPKGCO.js +362 -0
  538. package/dist/chunks/chunk.72IHRIWG.js +21 -0
  539. package/dist/chunks/chunk.7OV4JYME.js +21 -0
  540. package/dist/chunks/chunk.7Z2HQQFL.js +75 -0
  541. package/dist/chunks/chunk.ACAOEBUH.js +116 -0
  542. package/dist/chunks/chunk.AEROGVLT.js +11 -0
  543. package/dist/chunks/chunk.AM3C5OOL.js +11 -0
  544. package/dist/chunks/chunk.AVIUTXGR.js +11 -0
  545. package/dist/chunks/chunk.AWZ65ASJ.js +263 -0
  546. package/dist/chunks/chunk.AZIFHIRU.js +814 -0
  547. package/dist/chunks/chunk.B3EMPOFG.js +279 -0
  548. package/dist/chunks/chunk.B3GAWENQ.js +167 -0
  549. package/dist/chunks/chunk.B5ZODEOK.js +294 -0
  550. package/dist/chunks/chunk.BBWPAYS3.js +11 -0
  551. package/dist/chunks/chunk.BCXHJVIE.js +11 -0
  552. package/dist/chunks/chunk.BGNNPW6M.js +21 -0
  553. package/dist/chunks/chunk.BMGID3XR.js +502 -0
  554. package/dist/chunks/chunk.CD6YQHX3.js +113 -0
  555. package/dist/chunks/chunk.CG3ZTDQ7.js +28 -0
  556. package/dist/chunks/chunk.CI7GUY6Q.js +11 -0
  557. package/dist/chunks/chunk.CTJ5D62B.js +11 -0
  558. package/dist/chunks/chunk.CXU5QNL7.js +11 -0
  559. package/dist/chunks/chunk.D5ORVP7W.js +192 -0
  560. package/dist/chunks/chunk.D7CL436T.js +119 -0
  561. package/dist/chunks/chunk.DCUBK6Y2.js +20 -0
  562. package/dist/chunks/chunk.DGOT45XV.js +33 -0
  563. package/dist/chunks/chunk.DGP3E6DD.js +230 -0
  564. package/dist/chunks/chunk.DHQS5AWV.js +25 -0
  565. package/dist/chunks/chunk.DM33A62N.js +21 -0
  566. package/dist/chunks/chunk.DOQMTYX7.js +80 -0
  567. package/dist/chunks/chunk.DQTK7BJ7.js +29 -0
  568. package/dist/chunks/chunk.DS6F4QUS.js +21 -0
  569. package/dist/chunks/chunk.DUKL2GAH.js +24 -0
  570. package/dist/chunks/chunk.DXWZYZ7Q.js +11 -0
  571. package/dist/chunks/chunk.EAC25MZT.js +24 -0
  572. package/dist/chunks/chunk.EEKHZ5HE.js +24 -0
  573. package/dist/chunks/chunk.ELHZCO2U.js +24 -0
  574. package/dist/chunks/chunk.EPLF3GH7.js +25 -0
  575. package/dist/chunks/chunk.EQHCU3GL.js +50 -0
  576. package/dist/chunks/chunk.ER4NHK52.js +11 -0
  577. package/dist/chunks/chunk.ES45ETRO.js +11 -0
  578. package/dist/chunks/chunk.ESATVZ5G.js +212 -0
  579. package/dist/chunks/chunk.ESUAKHYX.js +11 -0
  580. package/dist/chunks/chunk.EVCIC7AC.js +24 -0
  581. package/dist/chunks/chunk.EWD2MI7O.js +288 -0
  582. package/dist/chunks/chunk.EX2WPOBT.js +120 -0
  583. package/dist/chunks/chunk.FCH7KHKK.js +59 -0
  584. package/dist/chunks/chunk.FEJHFFPB.js +21 -0
  585. package/dist/chunks/chunk.FGYXCFE5.js +21 -0
  586. package/dist/chunks/chunk.FHMM6XEZ.js +11 -0
  587. package/dist/chunks/chunk.FJE5XTWO.js +11 -0
  588. package/dist/chunks/chunk.FNWFVLCM.js +11 -0
  589. package/dist/chunks/chunk.FO2BQB25.js +384 -0
  590. package/dist/chunks/chunk.GBATS2E4.js +28 -0
  591. package/dist/chunks/chunk.GCM2QNX5.js +111 -0
  592. package/dist/chunks/chunk.GDDPROWH.js +11 -0
  593. package/dist/chunks/chunk.GLXASM47.js +85 -0
  594. package/dist/chunks/chunk.GORAV5BS.js +166 -0
  595. package/dist/chunks/chunk.GOVGRT3T.js +1250 -0
  596. package/dist/chunks/chunk.GVCDYL7A.js +1159 -0
  597. package/dist/chunks/chunk.GYL2522A.js +24 -0
  598. package/dist/chunks/chunk.GYNXMH3S.js +293 -0
  599. package/dist/chunks/chunk.HBK6DEY2.js +550 -0
  600. package/dist/chunks/chunk.HCBCJLNX.js +11 -0
  601. package/dist/chunks/chunk.HGUDPDSB.js +448 -0
  602. package/dist/chunks/chunk.HKVSFR54.js +306 -0
  603. package/dist/chunks/chunk.HLG7XRND.js +151 -0
  604. package/dist/chunks/chunk.HMWXQMP4.js +247 -0
  605. package/dist/chunks/chunk.HS3IZTF3.js +174 -0
  606. package/dist/chunks/chunk.HSOEJSGM.js +11 -0
  607. package/dist/chunks/chunk.HWYQCRL6.js +21 -0
  608. package/dist/chunks/chunk.HXGAPWDA.js +21 -0
  609. package/dist/chunks/chunk.I4W6UKR7.js +11 -0
  610. package/dist/chunks/chunk.I54JH3BO.js +21 -0
  611. package/dist/chunks/chunk.I5QOY4OC.js +21 -0
  612. package/dist/chunks/chunk.ICWYCYEV.js +340 -0
  613. package/dist/chunks/chunk.IFTBWGMY.js +28 -0
  614. package/dist/chunks/chunk.IGHRMV22.js +25 -0
  615. package/dist/chunks/chunk.ILN5DJ37.js +126 -0
  616. package/dist/chunks/chunk.IRQT7DHW.js +311 -0
  617. package/dist/chunks/chunk.ISEKO62H.js +34 -0
  618. package/dist/chunks/chunk.J6264D6Z.js +109 -0
  619. package/dist/chunks/chunk.JGTMQQ5P.js +21 -0
  620. package/dist/chunks/chunk.JJZMRNEF.js +11 -0
  621. package/dist/chunks/chunk.JKB7S5SD.js +21 -0
  622. package/dist/chunks/chunk.JOFORKI3.js +29 -0
  623. package/dist/chunks/chunk.JUBEGHIW.js +21 -0
  624. package/dist/chunks/chunk.KB6R5TGX.js +429 -0
  625. package/dist/chunks/chunk.KBPC4GMC.js +11 -0
  626. package/dist/chunks/chunk.KCGRBC4J.js +11 -0
  627. package/dist/chunks/chunk.KIRIC4HY.js +247 -0
  628. package/dist/chunks/chunk.KT3LIBXV.js +11 -0
  629. package/dist/chunks/chunk.KWEGFGMG.js +21 -0
  630. package/dist/chunks/chunk.KYPYJOK3.js +24 -0
  631. package/dist/chunks/chunk.L27YNMSI.js +21 -0
  632. package/dist/chunks/chunk.L6VFDQY4.js +45 -0
  633. package/dist/chunks/chunk.L7RFQDK6.js +106 -0
  634. package/dist/chunks/chunk.LE5MZWA3.js +24 -0
  635. package/dist/chunks/chunk.LHEJ2TES.js +21 -0
  636. package/dist/chunks/chunk.LIMDX62N.js +11 -0
  637. package/dist/chunks/chunk.LRYITR7Y.js +26 -0
  638. package/dist/chunks/chunk.LYMCZHAW.js +25 -0
  639. package/dist/chunks/chunk.M5LQZTTR.js +11 -0
  640. package/dist/chunks/chunk.MANCSJE7.js +96 -0
  641. package/dist/chunks/chunk.MAWWFGMK.js +135 -0
  642. package/dist/chunks/chunk.MC3QDKG7.js +22 -0
  643. package/dist/chunks/chunk.MIEVKZIZ.js +21 -0
  644. package/dist/chunks/chunk.MLTJ6A2J.js +581 -0
  645. package/dist/chunks/chunk.MT7M2QLC.js +154 -0
  646. package/dist/chunks/chunk.N46466Z4.js +11 -0
  647. package/dist/chunks/chunk.NER2EPNA.js +21 -0
  648. package/dist/chunks/chunk.NRNZS3U3.js +11 -0
  649. package/dist/chunks/chunk.NSM2D6SA.js +21 -0
  650. package/dist/chunks/chunk.NUWIARHO.js +24 -0
  651. package/dist/chunks/chunk.NYZBEYC7.js +397 -0
  652. package/dist/chunks/chunk.O3BTUCQ6.js +93 -0
  653. package/dist/chunks/chunk.OB6SU2LM.js +11 -0
  654. package/dist/chunks/chunk.OCQXPQOT.js +371 -0
  655. package/dist/chunks/chunk.OF34L5Y7.js +820 -0
  656. package/dist/chunks/chunk.OKPUD5NQ.js +315 -0
  657. package/dist/chunks/chunk.ONETF4BC.js +27 -0
  658. package/dist/chunks/chunk.OPBNVZTT.js +11 -0
  659. package/dist/chunks/chunk.OR6ZJAD3.js +11 -0
  660. package/dist/chunks/chunk.OU3CRW7I.js +11 -0
  661. package/dist/chunks/chunk.OUDBMJUH.js +25 -0
  662. package/dist/chunks/chunk.P2JHOKGN.js +125 -0
  663. package/dist/chunks/chunk.P5IOGP6C.js +11 -0
  664. package/dist/chunks/chunk.PEDC5FYK.js +21 -0
  665. package/dist/chunks/chunk.PLEGG6EE.js +28 -0
  666. package/dist/chunks/chunk.PPCHBUSW.js +11 -0
  667. package/dist/chunks/chunk.PWQK2F7J.js +329 -0
  668. package/dist/chunks/chunk.Q2CTFUSB.js +91 -0
  669. package/dist/chunks/chunk.Q3VGJL2A.js +21 -0
  670. package/dist/chunks/chunk.Q5XN346K.js +28 -0
  671. package/dist/chunks/chunk.QFMSYLCR.js +75 -0
  672. package/dist/chunks/chunk.QHVW2QSV.js +11 -0
  673. package/dist/chunks/chunk.QJYPCQJJ.js +11 -0
  674. package/dist/chunks/chunk.QO2DD5I7.js +280 -0
  675. package/dist/chunks/chunk.QSESWFIP.js +26 -0
  676. package/dist/chunks/chunk.QSSC7ETQ.js +11 -0
  677. package/dist/chunks/chunk.QT7QLEFH.js +45 -0
  678. package/dist/chunks/chunk.QW7OF5RN.js +24 -0
  679. package/dist/chunks/chunk.R6F4BU5F.js +11 -0
  680. package/dist/chunks/chunk.R6FMHQYY.js +73 -0
  681. package/dist/chunks/chunk.RBXDHDD4.js +21 -0
  682. package/dist/chunks/chunk.RM754ISL.js +27 -0
  683. package/dist/chunks/chunk.S353LALK.js +214 -0
  684. package/dist/chunks/chunk.SG65ZQZY.js +274 -0
  685. package/dist/chunks/chunk.SGJFPPHY.js +21 -0
  686. package/dist/chunks/chunk.SIWHBGSI.js +24 -0
  687. package/dist/chunks/chunk.SN7EYHVP.js +11 -0
  688. package/dist/chunks/chunk.T5IPDQCK.js +27 -0
  689. package/dist/chunks/chunk.T62HU7HX.js +11 -0
  690. package/dist/chunks/chunk.TAJRGWMV.js +25 -0
  691. package/dist/chunks/chunk.TCCSXMW6.js +227 -0
  692. package/dist/chunks/chunk.TFWXTM6R.js +117 -0
  693. package/dist/chunks/chunk.TLH4QPPN.js +50 -0
  694. package/dist/chunks/chunk.TO5FP34R.js +11 -0
  695. package/dist/chunks/chunk.TOF553TT.js +126 -0
  696. package/dist/chunks/chunk.TWDM6SQG.js +67 -0
  697. package/dist/chunks/chunk.U5CRPTWG.js +213 -0
  698. package/dist/chunks/chunk.UETU46ON.js +26 -0
  699. package/dist/chunks/chunk.UHPOT6M7.js +27 -0
  700. package/dist/chunks/chunk.ULHK4Q73.js +24 -0
  701. package/dist/chunks/chunk.UMBPQ3I2.js +52 -0
  702. package/dist/chunks/chunk.V4LSDP4W.js +180 -0
  703. package/dist/chunks/chunk.V6GVEDSF.js +11 -0
  704. package/dist/chunks/chunk.VGYXAL2J.js +11 -0
  705. package/dist/chunks/chunk.VJUUZ26O.js +25 -0
  706. package/dist/chunks/chunk.VNQYIJWM.js +22 -0
  707. package/dist/chunks/chunk.VO5WW3R7.js +506 -0
  708. package/dist/chunks/chunk.VOWXQDEH.js +42 -0
  709. package/dist/chunks/chunk.VSQJ5DA5.js +11 -0
  710. package/dist/chunks/chunk.VUBOSV4Z.js +21 -0
  711. package/dist/chunks/chunk.W45Y3TKU.js +11 -0
  712. package/dist/chunks/chunk.W65FDMNA.js +11 -0
  713. package/dist/chunks/chunk.WHQ36HQZ.js +25 -0
  714. package/dist/chunks/chunk.WKFPHIJX.js +21 -0
  715. package/dist/chunks/chunk.WUUBI6U2.js +90 -0
  716. package/dist/chunks/chunk.WXHR5TK7.js +417 -0
  717. package/dist/chunks/chunk.X2B5UB6W.js +11 -0
  718. package/dist/chunks/chunk.X5K7DWTK.js +21 -0
  719. package/dist/chunks/chunk.XALSVPUS.js +11 -0
  720. package/dist/chunks/chunk.XBIGPXXG.js +25 -0
  721. package/dist/chunks/chunk.XCUPTUJI.js +134 -0
  722. package/dist/chunks/chunk.XDKG7WKZ.js +71 -0
  723. package/dist/chunks/chunk.XIHY7VJQ.js +11 -0
  724. package/dist/chunks/chunk.XJBKCEFQ.js +11 -0
  725. package/dist/chunks/chunk.XKTXX6VE.js +11 -0
  726. package/dist/chunks/chunk.XLV7T6UI.js +160 -0
  727. package/dist/chunks/chunk.XQUGZ45I.js +181 -0
  728. package/dist/chunks/chunk.XXMXRRYR.js +26 -0
  729. package/dist/chunks/chunk.YJ34DHC7.js +11 -0
  730. package/dist/chunks/chunk.YKMWLV6H.js +11 -0
  731. package/dist/chunks/chunk.YM5WYHRK.js +24 -0
  732. package/dist/chunks/chunk.YPPSUUUK.js +28 -0
  733. package/dist/chunks/chunk.YUV7R4K2.js +11 -0
  734. package/dist/chunks/chunk.YY57EY27.js +11 -0
  735. package/dist/chunks/chunk.YZGT2XLE.js +11 -0
  736. package/dist/chunks/chunk.Z2DBABMA.js +39 -0
  737. package/dist/chunks/chunk.Z2P5DLON.js +21 -0
  738. package/dist/chunks/chunk.ZBVQ25TG.js +21 -0
  739. package/dist/chunks/chunk.ZCFNFWTB.js +11 -0
  740. package/dist/chunks/chunk.ZESM5Z2Y.js +27 -0
  741. package/dist/chunks/chunk.ZNORZGRQ.js +11 -0
  742. package/dist/chunks/chunk.ZTGDDORR.js +63 -0
  743. package/dist/chunks/chunk.ZW2FOQK5.js +11 -0
  744. package/dist/components/alert/alert.component.js +6 -6
  745. package/dist/components/alert/alert.js +7 -7
  746. package/dist/components/animated-image/animated-image.component.js +4 -4
  747. package/dist/components/animated-image/animated-image.js +5 -5
  748. package/dist/components/animation/animation.component.js +3 -3
  749. package/dist/components/animation/animation.js +4 -4
  750. package/dist/components/avatar/avatar.component.js +4 -4
  751. package/dist/components/avatar/avatar.js +5 -5
  752. package/dist/components/badge/badge.component.js +2 -2
  753. package/dist/components/badge/badge.js +3 -3
  754. package/dist/components/breadcrumb/breadcrumb.component.js +4 -4
  755. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  756. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  757. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  758. package/dist/components/button/button.component.js +6 -6
  759. package/dist/components/button/button.js +7 -7
  760. package/dist/components/button-group/button-group.component.js +2 -2
  761. package/dist/components/button-group/button-group.js +3 -3
  762. package/dist/components/calendar/calendar.component.js +8 -8
  763. package/dist/components/calendar/calendar.js +8 -8
  764. package/dist/components/card/card.component.js +2 -2
  765. package/dist/components/card/card.js +3 -3
  766. package/dist/components/carousel/carousel.component.js +5 -5
  767. package/dist/components/carousel/carousel.js +6 -6
  768. package/dist/components/carousel-item/carousel-item.component.js +2 -2
  769. package/dist/components/carousel-item/carousel-item.js +3 -3
  770. package/dist/components/checkbox/checkbox.component.js +5 -5
  771. package/dist/components/checkbox/checkbox.js +6 -6
  772. package/dist/components/col/col.component.js +10 -0
  773. package/dist/components/col/col.js +11 -0
  774. package/dist/components/col/col.styles.js +7 -0
  775. package/dist/components/color-picker/color-picker.component.js +17 -17
  776. package/dist/components/color-picker/color-picker.js +18 -18
  777. package/dist/components/copy-button/copy-button.component.js +7 -7
  778. package/dist/components/copy-button/copy-button.js +8 -8
  779. package/dist/components/date-panel/date-panel.component.js +12 -12
  780. package/dist/components/date-panel/date-panel.js +12 -12
  781. package/dist/components/date-panel/date-panel.styles.js +1 -1
  782. package/dist/components/datepicker/datepicker.component.js +19 -19
  783. package/dist/components/datepicker/datepicker.js +19 -19
  784. package/dist/components/daterange/daterange.component.js +12 -12
  785. package/dist/components/daterange/daterange.js +13 -13
  786. package/dist/components/daterange/daterange.styles.js +1 -1
  787. package/dist/components/details/details.component.js +4 -4
  788. package/dist/components/details/details.js +5 -5
  789. package/dist/components/dialog/dialog.component.js +6 -6
  790. package/dist/components/dialog/dialog.js +7 -7
  791. package/dist/components/divider/divider.component.js +2 -2
  792. package/dist/components/divider/divider.js +3 -3
  793. package/dist/components/drawer/drawer.component.js +6 -6
  794. package/dist/components/drawer/drawer.js +7 -7
  795. package/dist/components/dropdown/dropdown.component.js +4 -4
  796. package/dist/components/dropdown/dropdown.js +5 -5
  797. package/dist/components/format-bytes/format-bytes.component.js +2 -2
  798. package/dist/components/format-bytes/format-bytes.js +3 -3
  799. package/dist/components/format-date/format-date.component.js +2 -2
  800. package/dist/components/format-date/format-date.js +3 -3
  801. package/dist/components/format-number/format-number.component.js +2 -2
  802. package/dist/components/format-number/format-number.js +3 -3
  803. package/dist/components/icon/icon.component.js +3 -3
  804. package/dist/components/icon/icon.js +4 -4
  805. package/dist/components/icon-button/icon-button.component.js +4 -4
  806. package/dist/components/icon-button/icon-button.js +5 -5
  807. package/dist/components/image-comparer/image-comparer.component.js +4 -4
  808. package/dist/components/image-comparer/image-comparer.js +5 -5
  809. package/dist/components/include/include.component.js +2 -2
  810. package/dist/components/include/include.js +3 -3
  811. package/dist/components/input/input.component.js +6 -6
  812. package/dist/components/input/input.js +7 -7
  813. package/dist/components/input/input.styles.js +1 -1
  814. package/dist/components/menu/menu.component.js +2 -2
  815. package/dist/components/menu/menu.js +3 -3
  816. package/dist/components/menu-item/menu-item.component.js +8 -8
  817. package/dist/components/menu-item/menu-item.js +9 -9
  818. package/dist/components/menu-item/menu-item.styles.js +1 -1
  819. package/dist/components/menu-label/menu-label.component.js +2 -2
  820. package/dist/components/menu-label/menu-label.js +3 -3
  821. package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
  822. package/dist/components/mutation-observer/mutation-observer.js +3 -3
  823. package/dist/components/nav/nav.component.js +11 -11
  824. package/dist/components/nav/nav.js +12 -12
  825. package/dist/components/nav-group/nav-group.component.js +2 -2
  826. package/dist/components/nav-group/nav-group.js +3 -3
  827. package/dist/components/nav-item/nav-item.component.js +2 -2
  828. package/dist/components/nav-item/nav-item.js +3 -3
  829. package/dist/components/nav-submenu/nav-submenu.component.js +6 -6
  830. package/dist/components/nav-submenu/nav-submenu.js +7 -7
  831. package/dist/components/option/option.component.js +5 -5
  832. package/dist/components/option/option.js +6 -6
  833. package/dist/components/option/option.styles.js +1 -1
  834. package/dist/components/pagination/custom-select.js +13 -13
  835. package/dist/components/pagination/pagination.component.js +14 -14
  836. package/dist/components/pagination/pagination.js +14 -14
  837. package/dist/components/popup/popup.component.js +2 -2
  838. package/dist/components/popup/popup.js +3 -3
  839. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  840. package/dist/components/progress-bar/progress-bar.js +3 -3
  841. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  842. package/dist/components/progress-ring/progress-ring.js +3 -3
  843. package/dist/components/qr-code/qr-code.component.js +2 -2
  844. package/dist/components/qr-code/qr-code.js +3 -3
  845. package/dist/components/radio/radio.component.js +5 -5
  846. package/dist/components/radio/radio.js +6 -6
  847. package/dist/components/radio/radio.styles.js +1 -1
  848. package/dist/components/radio-button/radio-button.component.js +2 -2
  849. package/dist/components/radio-button/radio-button.js +3 -3
  850. package/dist/components/radio-group/radio-group.component.js +4 -4
  851. package/dist/components/radio-group/radio-group.js +5 -5
  852. package/dist/components/range/range.component.js +3 -3
  853. package/dist/components/range/range.js +4 -4
  854. package/dist/components/rating/rating.component.js +4 -4
  855. package/dist/components/rating/rating.js +5 -5
  856. package/dist/components/relative-time/relative-time.component.js +2 -2
  857. package/dist/components/relative-time/relative-time.js +3 -3
  858. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  859. package/dist/components/resize-observer/resize-observer.js +3 -3
  860. package/dist/components/row/row.component.js +10 -0
  861. package/dist/components/row/row.js +11 -0
  862. package/dist/components/row/row.styles.js +7 -0
  863. package/dist/components/screen/screen.component.js +2 -2
  864. package/dist/components/screen/screen.js +3 -3
  865. package/dist/components/select/select.component.js +10 -10
  866. package/dist/components/select/select.js +11 -11
  867. package/dist/components/select/select.styles.js +1 -1
  868. package/dist/components/skeleton/skeleton.component.js +2 -2
  869. package/dist/components/skeleton/skeleton.js +3 -3
  870. package/dist/components/spinner/spinner.component.js +2 -2
  871. package/dist/components/spinner/spinner.js +3 -3
  872. package/dist/components/split-panel/split-panel.component.js +2 -2
  873. package/dist/components/split-panel/split-panel.js +3 -3
  874. package/dist/components/switch/switch.component.js +2 -2
  875. package/dist/components/switch/switch.js +3 -3
  876. package/dist/components/tab/tab.component.js +5 -5
  877. package/dist/components/tab/tab.js +6 -6
  878. package/dist/components/tab-group/tab-group.component.js +6 -6
  879. package/dist/components/tab-group/tab-group.js +7 -7
  880. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  881. package/dist/components/tab-panel/tab-panel.js +3 -3
  882. package/dist/components/table/body-table.js +2 -2
  883. package/dist/components/table/features/index.js +3 -3
  884. package/dist/components/table/head-table.js +25 -25
  885. package/dist/components/table/spinner-container.js +2 -2
  886. package/dist/components/table/table.component.js +36 -36
  887. package/dist/components/table/table.js +38 -38
  888. package/dist/components/tag/tag.component.js +5 -5
  889. package/dist/components/tag/tag.js +6 -6
  890. package/dist/components/textarea/textarea.component.js +2 -2
  891. package/dist/components/textarea/textarea.js +3 -3
  892. package/dist/components/think/think.component.js +21 -0
  893. package/dist/components/think/think.js +22 -0
  894. package/dist/components/think/think.styles.js +7 -0
  895. package/dist/components/thought-chain/thought-chain.component.js +10 -0
  896. package/dist/components/thought-chain/thought-chain.js +11 -0
  897. package/dist/components/thought-chain/thought-chain.styles.js +7 -0
  898. package/dist/components/thought-chain-item/thought-chain-item.component.js +10 -0
  899. package/dist/components/thought-chain-item/thought-chain-item.js +11 -0
  900. package/dist/components/thought-chain-item/thought-chain-item.styles.js +7 -0
  901. package/dist/components/thought-chain-node/thought-chain-node.component.js +10 -0
  902. package/dist/components/thought-chain-node/thought-chain-node.js +11 -0
  903. package/dist/components/thought-chain-node/thought-chain-node.styles.js +7 -0
  904. package/dist/components/time-panel/time-panel.component.js +7 -7
  905. package/dist/components/time-panel/time-panel.js +7 -7
  906. package/dist/components/timepicker/timepicker.component.js +19 -19
  907. package/dist/components/timepicker/timepicker.js +19 -19
  908. package/dist/components/tooltip/tooltip.component.js +3 -3
  909. package/dist/components/tooltip/tooltip.js +4 -4
  910. package/dist/components/tree/tree.component.js +10 -10
  911. package/dist/components/tree/tree.js +11 -11
  912. package/dist/components/tree-item/tree-item.component.js +8 -8
  913. package/dist/components/tree-item/tree-item.js +9 -9
  914. package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
  915. package/dist/components/visually-hidden/visually-hidden.js +3 -3
  916. package/dist/custom-elements.json +10094 -8477
  917. package/dist/react/alert/index.js +7 -7
  918. package/dist/react/animated-image/index.js +5 -5
  919. package/dist/react/animation/index.js +4 -4
  920. package/dist/react/avatar/index.js +5 -5
  921. package/dist/react/badge/index.js +3 -3
  922. package/dist/react/breadcrumb/index.js +5 -5
  923. package/dist/react/breadcrumb-item/index.js +3 -3
  924. package/dist/react/button/index.js +7 -7
  925. package/dist/react/button-group/index.js +3 -3
  926. package/dist/react/card/index.js +3 -3
  927. package/dist/react/carousel/index.js +6 -6
  928. package/dist/react/carousel-item/index.js +3 -3
  929. package/dist/react/checkbox/index.js +6 -6
  930. package/dist/react/col/index.js +11 -0
  931. package/dist/react/color-picker/index.js +18 -18
  932. package/dist/react/copy-button/index.js +8 -8
  933. package/dist/react/date-panel/index.js +13 -13
  934. package/dist/react/datepicker/index.js +20 -20
  935. package/dist/react/daterange/index.js +13 -13
  936. package/dist/react/details/index.js +5 -5
  937. package/dist/react/dialog/index.js +7 -7
  938. package/dist/react/divider/index.js +3 -3
  939. package/dist/react/drawer/index.js +7 -7
  940. package/dist/react/dropdown/index.js +5 -5
  941. package/dist/react/format-bytes/index.js +3 -3
  942. package/dist/react/format-date/index.js +3 -3
  943. package/dist/react/format-number/index.js +3 -3
  944. package/dist/react/icon/index.js +4 -4
  945. package/dist/react/icon-button/index.js +5 -5
  946. package/dist/react/image-comparer/index.js +5 -5
  947. package/dist/react/include/index.js +3 -3
  948. package/dist/react/index.js +276 -240
  949. package/dist/react/input/index.js +7 -7
  950. package/dist/react/menu/index.js +3 -3
  951. package/dist/react/menu-item/index.js +9 -9
  952. package/dist/react/menu-label/index.js +3 -3
  953. package/dist/react/mutation-observer/index.js +3 -3
  954. package/dist/react/nav/index.js +12 -12
  955. package/dist/react/nav-group/index.js +3 -3
  956. package/dist/react/nav-item/index.js +3 -3
  957. package/dist/react/nav-submenu/index.js +7 -7
  958. package/dist/react/option/index.js +6 -6
  959. package/dist/react/pagination/index.js +15 -15
  960. package/dist/react/popup/index.js +3 -3
  961. package/dist/react/progress-bar/index.js +3 -3
  962. package/dist/react/progress-ring/index.js +3 -3
  963. package/dist/react/qr-code/index.js +3 -3
  964. package/dist/react/radio/index.js +6 -6
  965. package/dist/react/radio-button/index.js +3 -3
  966. package/dist/react/radio-group/index.js +5 -5
  967. package/dist/react/range/index.js +4 -4
  968. package/dist/react/rating/index.js +5 -5
  969. package/dist/react/relative-time/index.js +3 -3
  970. package/dist/react/resize-observer/index.js +3 -3
  971. package/dist/react/row/index.js +11 -0
  972. package/dist/react/screen/index.js +3 -3
  973. package/dist/react/select/index.js +11 -11
  974. package/dist/react/skeleton/index.js +3 -3
  975. package/dist/react/spinner/index.js +3 -3
  976. package/dist/react/split-panel/index.js +3 -3
  977. package/dist/react/switch/index.js +3 -3
  978. package/dist/react/tab/index.js +6 -6
  979. package/dist/react/tab-group/index.js +7 -7
  980. package/dist/react/tab-panel/index.js +3 -3
  981. package/dist/react/table/index.js +37 -37
  982. package/dist/react/tag/index.js +6 -6
  983. package/dist/react/textarea/index.js +3 -3
  984. package/dist/react/think/index.js +22 -0
  985. package/dist/react/thought-chain/index.js +11 -0
  986. package/dist/react/thought-chain-item/index.js +11 -0
  987. package/dist/react/thought-chain-node/index.js +11 -0
  988. package/dist/react/timepicker/index.js +20 -20
  989. package/dist/react/tooltip/index.js +4 -4
  990. package/dist/react/tree/index.js +11 -11
  991. package/dist/react/tree-item/index.js +9 -9
  992. package/dist/react/visually-hidden/index.js +3 -3
  993. package/dist/shoelace.js +266 -230
  994. package/dist/themes/nova.css +10 -10
  995. package/dist/themes/nova.styles.js +10 -10
  996. package/dist/types/vue/index.d.ts +571 -268
  997. package/dist/vscode.html-custom-data.json +435 -158
  998. package/dist/web-types.json +1270 -663
  999. package/package.json +1 -1
  1000. package/cdn/chunks/chunk.2CM45OPI.js +0 -11
  1001. package/cdn/chunks/chunk.2M2IEZMJ.js +0 -11
  1002. package/cdn/chunks/chunk.2YWTCW7W.js +0 -11
  1003. package/cdn/chunks/chunk.2ZQOLEDC.js +0 -11
  1004. package/cdn/chunks/chunk.3YYDPUTT.js +0 -11
  1005. package/cdn/chunks/chunk.3ZKKS3GH.js +0 -21
  1006. package/cdn/chunks/chunk.42RSWJ72.js +0 -21
  1007. package/cdn/chunks/chunk.4D35RY2E.js +0 -21
  1008. package/cdn/chunks/chunk.4EVM3UF2.js +0 -314
  1009. package/cdn/chunks/chunk.4STNX3YX.js +0 -2953
  1010. package/cdn/chunks/chunk.5A2TQWJT.js +0 -21
  1011. package/cdn/chunks/chunk.5DMVBFON.js +0 -11
  1012. package/cdn/chunks/chunk.5E6J5ERA.js +0 -113
  1013. package/cdn/chunks/chunk.5YMVI36Y.js +0 -25
  1014. package/cdn/chunks/chunk.6APO5EBS.js +0 -21
  1015. package/cdn/chunks/chunk.6BATQ6LY.js +0 -11
  1016. package/cdn/chunks/chunk.6LEXUZ6W.js +0 -118
  1017. package/cdn/chunks/chunk.6Z2NBGGA.js +0 -346
  1018. package/cdn/chunks/chunk.7JIELPQI.js +0 -29
  1019. package/cdn/chunks/chunk.7L6FJHOX.js +0 -49
  1020. package/cdn/chunks/chunk.7M36RZAW.js +0 -21
  1021. package/cdn/chunks/chunk.7NSBGUZO.js +0 -216
  1022. package/cdn/chunks/chunk.7NTP4M3K.js +0 -11
  1023. package/cdn/chunks/chunk.7WVYHJ3U.js +0 -24
  1024. package/cdn/chunks/chunk.AJ6JKIU6.js +0 -313
  1025. package/cdn/chunks/chunk.AJTTR72H.js +0 -11
  1026. package/cdn/chunks/chunk.ALOIJIYN.js +0 -29
  1027. package/cdn/chunks/chunk.ASTKIYOQ.js +0 -5845
  1028. package/cdn/chunks/chunk.AUCKEGQD.js +0 -53
  1029. package/cdn/chunks/chunk.AVIQ7AOD.js +0 -336
  1030. package/cdn/chunks/chunk.B4VA5KO3.js +0 -26
  1031. package/cdn/chunks/chunk.B5CEMB6B.js +0 -114
  1032. package/cdn/chunks/chunk.BDLEZ22C.js +0 -24
  1033. package/cdn/chunks/chunk.BEJDHOLO.js +0 -11
  1034. package/cdn/chunks/chunk.BMTOC3GS.js +0 -135
  1035. package/cdn/chunks/chunk.BMX6WZ5W.js +0 -21
  1036. package/cdn/chunks/chunk.BOZ5C257.js +0 -27
  1037. package/cdn/chunks/chunk.BQMHXX5Y.js +0 -11
  1038. package/cdn/chunks/chunk.BWJJLA4R.js +0 -11
  1039. package/cdn/chunks/chunk.BXULK73O.js +0 -11
  1040. package/cdn/chunks/chunk.BYCZOE7M.js +0 -11
  1041. package/cdn/chunks/chunk.BYNG7O4M.js +0 -21
  1042. package/cdn/chunks/chunk.C2XSG2BT.js +0 -82
  1043. package/cdn/chunks/chunk.CD3NR5KZ.js +0 -21
  1044. package/cdn/chunks/chunk.CFQDN24E.js +0 -11
  1045. package/cdn/chunks/chunk.CIBKWBQG.js +0 -11
  1046. package/cdn/chunks/chunk.CIVWJFPJ.js +0 -21
  1047. package/cdn/chunks/chunk.CTDWKH5S.js +0 -11
  1048. package/cdn/chunks/chunk.CZXR5GQR.js +0 -302
  1049. package/cdn/chunks/chunk.D4HH4ARG.js +0 -1925
  1050. package/cdn/chunks/chunk.D6ASVSND.js +0 -21
  1051. package/cdn/chunks/chunk.D6ZBEJWY.js +0 -271
  1052. package/cdn/chunks/chunk.D7RBRGHN.js +0 -11
  1053. package/cdn/chunks/chunk.DIIT24M3.js +0 -11
  1054. package/cdn/chunks/chunk.DN6ULTYY.js +0 -11
  1055. package/cdn/chunks/chunk.DNKBCPZM.js +0 -24
  1056. package/cdn/chunks/chunk.DVVJN2I4.js +0 -402
  1057. package/cdn/chunks/chunk.DW2A25GC.js +0 -21
  1058. package/cdn/chunks/chunk.DWTWP5TK.js +0 -510
  1059. package/cdn/chunks/chunk.E3NXW5FC.js +0 -54
  1060. package/cdn/chunks/chunk.E6E5QBVB.js +0 -11
  1061. package/cdn/chunks/chunk.E6HYHMAO.js +0 -67
  1062. package/cdn/chunks/chunk.EPRQOZJV.js +0 -120
  1063. package/cdn/chunks/chunk.EQRUE6HF.js +0 -29
  1064. package/cdn/chunks/chunk.ESPY75AW.js +0 -11
  1065. package/cdn/chunks/chunk.ET5B4S6F.js +0 -455
  1066. package/cdn/chunks/chunk.EU2ML75I.js +0 -158
  1067. package/cdn/chunks/chunk.EYJ6YHOV.js +0 -28
  1068. package/cdn/chunks/chunk.F6SRH2TM.js +0 -11
  1069. package/cdn/chunks/chunk.FJUDJGJY.js +0 -11
  1070. package/cdn/chunks/chunk.FN5PB4Q3.js +0 -11
  1071. package/cdn/chunks/chunk.FSL5GL6F.js +0 -21
  1072. package/cdn/chunks/chunk.G25QQBJO.js +0 -343
  1073. package/cdn/chunks/chunk.GDCM5KES.js +0 -11
  1074. package/cdn/chunks/chunk.GDMHZY7D.js +0 -299
  1075. package/cdn/chunks/chunk.GFGMIJRX.js +0 -11
  1076. package/cdn/chunks/chunk.GJIWNWGD.js +0 -235
  1077. package/cdn/chunks/chunk.GPV5OAV7.js +0 -137
  1078. package/cdn/chunks/chunk.GQ6AEHMV.js +0 -28
  1079. package/cdn/chunks/chunk.GVTEYK4N.js +0 -7313
  1080. package/cdn/chunks/chunk.GWNNWDEA.js +0 -11
  1081. package/cdn/chunks/chunk.H325IBML.js +0 -11
  1082. package/cdn/chunks/chunk.H5D7466W.js +0 -27
  1083. package/cdn/chunks/chunk.H5IFYSMF.js +0 -11
  1084. package/cdn/chunks/chunk.HA4FKTFE.js +0 -21
  1085. package/cdn/chunks/chunk.HJVCK55J.js +0 -93
  1086. package/cdn/chunks/chunk.HJVLOY5X.js +0 -335
  1087. package/cdn/chunks/chunk.HLFDOO43.js +0 -24
  1088. package/cdn/chunks/chunk.HO2XTUD6.js +0 -11
  1089. package/cdn/chunks/chunk.HRWFS3OO.js +0 -233
  1090. package/cdn/chunks/chunk.HSMD375X.js +0 -75
  1091. package/cdn/chunks/chunk.HU2TM4BN.js +0 -11
  1092. package/cdn/chunks/chunk.I3DBIRF3.js +0 -21
  1093. package/cdn/chunks/chunk.ICOEO3FS.js +0 -49
  1094. package/cdn/chunks/chunk.IIPVWFCF.js +0 -24
  1095. package/cdn/chunks/chunk.IQBUHVAQ.js +0 -28
  1096. package/cdn/chunks/chunk.JE3G4PFV.js +0 -11
  1097. package/cdn/chunks/chunk.JPNFGHFI.js +0 -24
  1098. package/cdn/chunks/chunk.JTVJZDDS.js +0 -335
  1099. package/cdn/chunks/chunk.JXQ2W4PK.js +0 -1129
  1100. package/cdn/chunks/chunk.K2HS577V.js +0 -25
  1101. package/cdn/chunks/chunk.KA2SALVR.js +0 -25
  1102. package/cdn/chunks/chunk.KG7UNBFJ.js +0 -24
  1103. package/cdn/chunks/chunk.KGDNX54L.js +0 -11
  1104. package/cdn/chunks/chunk.KI4WN4VI.js +0 -26
  1105. package/cdn/chunks/chunk.KIZNTB2O.js +0 -219
  1106. package/cdn/chunks/chunk.KLZF7VBM.js +0 -11
  1107. package/cdn/chunks/chunk.KNX5YZUV.js +0 -11
  1108. package/cdn/chunks/chunk.KSNF2ZEA.js +0 -11
  1109. package/cdn/chunks/chunk.KVE5R2BD.js +0 -29
  1110. package/cdn/chunks/chunk.KVPYGLL3.js +0 -27
  1111. package/cdn/chunks/chunk.KWRLMHDC.js +0 -153
  1112. package/cdn/chunks/chunk.L4KUQW46.js +0 -122
  1113. package/cdn/chunks/chunk.L7OMP3VD.js +0 -236
  1114. package/cdn/chunks/chunk.LA3NAGA5.js +0 -142
  1115. package/cdn/chunks/chunk.LBPBKZBP.js +0 -21
  1116. package/cdn/chunks/chunk.LCY7JOBC.js +0 -11
  1117. package/cdn/chunks/chunk.LEF7GSQ3.js +0 -11
  1118. package/cdn/chunks/chunk.LFNFCZYE.js +0 -276
  1119. package/cdn/chunks/chunk.LO7W7GOI.js +0 -11
  1120. package/cdn/chunks/chunk.LPL4SGGY.js +0 -11
  1121. package/cdn/chunks/chunk.LQI6ARO6.js +0 -25
  1122. package/cdn/chunks/chunk.LTGCMLCD.js +0 -11
  1123. package/cdn/chunks/chunk.LXDBQVSO.js +0 -24
  1124. package/cdn/chunks/chunk.M4CWWPE2.js +0 -21
  1125. package/cdn/chunks/chunk.MIY74YCU.js +0 -1990
  1126. package/cdn/chunks/chunk.MVYBNIJZ.js +0 -167
  1127. package/cdn/chunks/chunk.MWGLVFPI.js +0 -28
  1128. package/cdn/chunks/chunk.N7RAIOQ7.js +0 -11
  1129. package/cdn/chunks/chunk.NMPFIQ3O.js +0 -361
  1130. package/cdn/chunks/chunk.NO2C7C24.js +0 -103
  1131. package/cdn/chunks/chunk.NROU7XSM.js +0 -11
  1132. package/cdn/chunks/chunk.NXAMED34.js +0 -11
  1133. package/cdn/chunks/chunk.O6X46HH6.js +0 -25
  1134. package/cdn/chunks/chunk.OASEKQXW.js +0 -515
  1135. package/cdn/chunks/chunk.OOQAR74T.js +0 -21
  1136. package/cdn/chunks/chunk.OPFUW64T.js +0 -431
  1137. package/cdn/chunks/chunk.OZ26VFTF.js +0 -11
  1138. package/cdn/chunks/chunk.OZVW34JQ.js +0 -283
  1139. package/cdn/chunks/chunk.OZYOLL5P.js +0 -11
  1140. package/cdn/chunks/chunk.P7CBHBNG.js +0 -127
  1141. package/cdn/chunks/chunk.PGEDAEWE.js +0 -24
  1142. package/cdn/chunks/chunk.PIEEG6RN.js +0 -25
  1143. package/cdn/chunks/chunk.PKFDBOJJ.js +0 -24
  1144. package/cdn/chunks/chunk.PZWKMKW6.js +0 -11
  1145. package/cdn/chunks/chunk.QGKC2OCD.js +0 -27
  1146. package/cdn/chunks/chunk.QHIT35AP.js +0 -11
  1147. package/cdn/chunks/chunk.QLUS4PGD.js +0 -26
  1148. package/cdn/chunks/chunk.QMTD3TWA.js +0 -79
  1149. package/cdn/chunks/chunk.QUH25DPS.js +0 -28
  1150. package/cdn/chunks/chunk.R3Z6N7GM.js +0 -556
  1151. package/cdn/chunks/chunk.R6KYWG73.js +0 -27
  1152. package/cdn/chunks/chunk.RET6RZGD.js +0 -197
  1153. package/cdn/chunks/chunk.RG266O2T.js +0 -724
  1154. package/cdn/chunks/chunk.RGDTGPSS.js +0 -27
  1155. package/cdn/chunks/chunk.RGZJVHRH.js +0 -25
  1156. package/cdn/chunks/chunk.RJP2ALSI.js +0 -21
  1157. package/cdn/chunks/chunk.RLAYFIJD.js +0 -11
  1158. package/cdn/chunks/chunk.RLIYLQLZ.js +0 -50
  1159. package/cdn/chunks/chunk.RSMEU224.js +0 -21
  1160. package/cdn/chunks/chunk.RSSCVLWU.js +0 -26
  1161. package/cdn/chunks/chunk.RTUWPT6S.js +0 -25
  1162. package/cdn/chunks/chunk.RV5GNJLC.js +0 -586
  1163. package/cdn/chunks/chunk.RWCMUWT4.js +0 -183
  1164. package/cdn/chunks/chunk.RXMX25Y3.js +0 -11
  1165. package/cdn/chunks/chunk.S6CAFGAM.js +0 -77
  1166. package/cdn/chunks/chunk.SDREWGD2.js +0 -822
  1167. package/cdn/chunks/chunk.SGK6G2DX.js +0 -216
  1168. package/cdn/chunks/chunk.SI3ULW5R.js +0 -33
  1169. package/cdn/chunks/chunk.SPES5DKU.js +0 -255
  1170. package/cdn/chunks/chunk.T2ZK3YNV.js +0 -11
  1171. package/cdn/chunks/chunk.T7LPNB6G.js +0 -186
  1172. package/cdn/chunks/chunk.THV7LDP3.js +0 -11
  1173. package/cdn/chunks/chunk.TMXZV6I4.js +0 -95
  1174. package/cdn/chunks/chunk.TNV7E3UH.js +0 -292
  1175. package/cdn/chunks/chunk.TQXRAKUV.js +0 -11
  1176. package/cdn/chunks/chunk.TV44OHUA.js +0 -11
  1177. package/cdn/chunks/chunk.U2GLC7D6.js +0 -21
  1178. package/cdn/chunks/chunk.U3EW3XKK.js +0 -21
  1179. package/cdn/chunks/chunk.U7KQXLQK.js +0 -367
  1180. package/cdn/chunks/chunk.UA3YBJZB.js +0 -21
  1181. package/cdn/chunks/chunk.UDMNF7NJ.js +0 -24
  1182. package/cdn/chunks/chunk.UGCLQAJF.js +0 -1244
  1183. package/cdn/chunks/chunk.UQ5GY3VQ.js +0 -42
  1184. package/cdn/chunks/chunk.UV45CWCU.js +0 -21
  1185. package/cdn/chunks/chunk.V3YBAXL2.js +0 -25
  1186. package/cdn/chunks/chunk.VA5SKNTX.js +0 -97
  1187. package/cdn/chunks/chunk.VCD2CINA.js +0 -24
  1188. package/cdn/chunks/chunk.VFRIFLHP.js +0 -11
  1189. package/cdn/chunks/chunk.VJQNQR2N.js +0 -36
  1190. package/cdn/chunks/chunk.VPWKT654.js +0 -21
  1191. package/cdn/chunks/chunk.VQNHHWLA.js +0 -24
  1192. package/cdn/chunks/chunk.VVNA565X.js +0 -122
  1193. package/cdn/chunks/chunk.VVQNTHGV.js +0 -11
  1194. package/cdn/chunks/chunk.VZL4OYDP.js +0 -28
  1195. package/cdn/chunks/chunk.W5P4WCWF.js +0 -63
  1196. package/cdn/chunks/chunk.WID27ZVI.js +0 -87
  1197. package/cdn/chunks/chunk.WY4T66P4.js +0 -379
  1198. package/cdn/chunks/chunk.X47JS3TQ.js +0 -11
  1199. package/cdn/chunks/chunk.X4AF572Z.js +0 -11
  1200. package/cdn/chunks/chunk.X5L42NVW.js +0 -11
  1201. package/cdn/chunks/chunk.X75W4SZN.js +0 -279
  1202. package/cdn/chunks/chunk.X7GX2LGV.js +0 -109
  1203. package/cdn/chunks/chunk.XFF7N2RV.js +0 -21
  1204. package/cdn/chunks/chunk.XKN7ML6G.js +0 -11
  1205. package/cdn/chunks/chunk.XO74QCLQ.js +0 -391
  1206. package/cdn/chunks/chunk.Y2P6YYQA.js +0 -131
  1207. package/cdn/chunks/chunk.YDXTT57X.js +0 -11
  1208. package/cdn/chunks/chunk.YK4VHZQU.js +0 -24
  1209. package/cdn/chunks/chunk.YKZYUDV3.js +0 -11
  1210. package/cdn/chunks/chunk.YWJEPR6Z.js +0 -177
  1211. package/cdn/chunks/chunk.Z7Z5D2TF.js +0 -11
  1212. package/cdn/chunks/chunk.ZA2GDZ2E.js +0 -291
  1213. package/cdn/chunks/chunk.ZMQACYT2.js +0 -24
  1214. package/cdn/chunks/chunk.ZMQEXK2B.js +0 -583
  1215. package/cdn/chunks/chunk.ZNZBBCRH.js +0 -27
  1216. package/cdn/chunks/chunk.ZSLM3NGU.js +0 -73
  1217. package/cdn/chunks/chunk.ZVOFPK6X.js +0 -11
  1218. package/dist/chunks/chunk.23OG2WCM.js +0 -11
  1219. package/dist/chunks/chunk.26ZD3S7Y.js +0 -21
  1220. package/dist/chunks/chunk.2DKS2HFH.js +0 -28
  1221. package/dist/chunks/chunk.2FUVLRCV.js +0 -24
  1222. package/dist/chunks/chunk.2GHXZAQI.js +0 -293
  1223. package/dist/chunks/chunk.2HCBSW4B.js +0 -11
  1224. package/dist/chunks/chunk.2JIH63GY.js +0 -11
  1225. package/dist/chunks/chunk.2XLL7YNQ.js +0 -11
  1226. package/dist/chunks/chunk.2YYHPEVO.js +0 -11
  1227. package/dist/chunks/chunk.36TVT6YF.js +0 -11
  1228. package/dist/chunks/chunk.3EBM4TXW.js +0 -80
  1229. package/dist/chunks/chunk.3OB3LWMM.js +0 -577
  1230. package/dist/chunks/chunk.3RHW3QZ2.js +0 -315
  1231. package/dist/chunks/chunk.3UHHEDUQ.js +0 -93
  1232. package/dist/chunks/chunk.3WMLGMZN.js +0 -21
  1233. package/dist/chunks/chunk.3YNKWXRR.js +0 -329
  1234. package/dist/chunks/chunk.4B4DPFHD.js +0 -162
  1235. package/dist/chunks/chunk.4HA245FV.js +0 -247
  1236. package/dist/chunks/chunk.4VVYVRBW.js +0 -28
  1237. package/dist/chunks/chunk.4YSIIAV6.js +0 -306
  1238. package/dist/chunks/chunk.5B57XRR7.js +0 -11
  1239. package/dist/chunks/chunk.5JCM4ACS.js +0 -21
  1240. package/dist/chunks/chunk.5VOVJ6U4.js +0 -25
  1241. package/dist/chunks/chunk.5Y6EKMRE.js +0 -24
  1242. package/dist/chunks/chunk.5YXRUJZA.js +0 -11
  1243. package/dist/chunks/chunk.6DZWGDY4.js +0 -21
  1244. package/dist/chunks/chunk.6FSZMBBK.js +0 -550
  1245. package/dist/chunks/chunk.6IPMTFGI.js +0 -11
  1246. package/dist/chunks/chunk.6LRK2OAA.js +0 -417
  1247. package/dist/chunks/chunk.6M3KDB3W.js +0 -502
  1248. package/dist/chunks/chunk.6SJ5NM3F.js +0 -11
  1249. package/dist/chunks/chunk.6UOTLC2Q.js +0 -11
  1250. package/dist/chunks/chunk.72XEGOEU.js +0 -21
  1251. package/dist/chunks/chunk.74HBIRSW.js +0 -117
  1252. package/dist/chunks/chunk.7HXAGTDG.js +0 -24
  1253. package/dist/chunks/chunk.7JKNUYMB.js +0 -181
  1254. package/dist/chunks/chunk.7KAEBXNM.js +0 -11
  1255. package/dist/chunks/chunk.7MUJSLZU.js +0 -21
  1256. package/dist/chunks/chunk.7OQTBZII.js +0 -949
  1257. package/dist/chunks/chunk.7OYIAAPX.js +0 -21
  1258. package/dist/chunks/chunk.7X755TGA.js +0 -21
  1259. package/dist/chunks/chunk.7YOONU2V.js +0 -25
  1260. package/dist/chunks/chunk.7Z2W6OXK.js +0 -24
  1261. package/dist/chunks/chunk.A2RI6OCN.js +0 -11
  1262. package/dist/chunks/chunk.A6R57GPQ.js +0 -11
  1263. package/dist/chunks/chunk.ABHA54FT.js +0 -67
  1264. package/dist/chunks/chunk.ACGBDTAV.js +0 -21
  1265. package/dist/chunks/chunk.AFQ4W3IV.js +0 -11
  1266. package/dist/chunks/chunk.AG6MRYHQ.js +0 -96
  1267. package/dist/chunks/chunk.APHAPL3G.js +0 -340
  1268. package/dist/chunks/chunk.B2AGCDAH.js +0 -21
  1269. package/dist/chunks/chunk.B4HO2SQD.js +0 -174
  1270. package/dist/chunks/chunk.BA22GN6J.js +0 -24
  1271. package/dist/chunks/chunk.BBOVVW7N.js +0 -45
  1272. package/dist/chunks/chunk.BBXOBKDA.js +0 -119
  1273. package/dist/chunks/chunk.BFJVGUYU.js +0 -25
  1274. package/dist/chunks/chunk.BLQ7F33C.js +0 -11
  1275. package/dist/chunks/chunk.BNQY5HIO.js +0 -106
  1276. package/dist/chunks/chunk.BOEZC6OD.js +0 -85
  1277. package/dist/chunks/chunk.BR2I5NWY.js +0 -24
  1278. package/dist/chunks/chunk.BVM3YF66.js +0 -11
  1279. package/dist/chunks/chunk.BVXAI6ST.js +0 -358
  1280. package/dist/chunks/chunk.C6CWTTCA.js +0 -11
  1281. package/dist/chunks/chunk.CIRCW7LI.js +0 -549
  1282. package/dist/chunks/chunk.CIWWDGZ6.js +0 -11
  1283. package/dist/chunks/chunk.CQ7TQFXE.js +0 -11
  1284. package/dist/chunks/chunk.CQBMYKTR.js +0 -280
  1285. package/dist/chunks/chunk.CSHENRJ2.js +0 -180
  1286. package/dist/chunks/chunk.CWCTMRXY.js +0 -11
  1287. package/dist/chunks/chunk.CYJ53JTI.js +0 -52
  1288. package/dist/chunks/chunk.CYOKNO44.js +0 -27
  1289. package/dist/chunks/chunk.D5JJ3UOZ.js +0 -227
  1290. package/dist/chunks/chunk.DN3NOFVF.js +0 -25
  1291. package/dist/chunks/chunk.DPSVF6BX.js +0 -286
  1292. package/dist/chunks/chunk.DS3544QD.js +0 -25
  1293. package/dist/chunks/chunk.DT2PTDEQ.js +0 -50
  1294. package/dist/chunks/chunk.DUHLBTTY.js +0 -371
  1295. package/dist/chunks/chunk.E4WYPAWP.js +0 -11
  1296. package/dist/chunks/chunk.EJ5HY6XL.js +0 -21
  1297. package/dist/chunks/chunk.EKKKPYGJ.js +0 -21
  1298. package/dist/chunks/chunk.EU53B7ZQ.js +0 -100
  1299. package/dist/chunks/chunk.EVYFKMLF.js +0 -26
  1300. package/dist/chunks/chunk.EW6EWFXR.js +0 -294
  1301. package/dist/chunks/chunk.EWPZGOK4.js +0 -11
  1302. package/dist/chunks/chunk.F62Y2DON.js +0 -21
  1303. package/dist/chunks/chunk.F63YX4ZG.js +0 -11
  1304. package/dist/chunks/chunk.FKMWLPHV.js +0 -119
  1305. package/dist/chunks/chunk.FOXYEZ3Z.js +0 -11
  1306. package/dist/chunks/chunk.FRW6GAJC.js +0 -11
  1307. package/dist/chunks/chunk.FZHPOSO6.js +0 -24
  1308. package/dist/chunks/chunk.GBZ5KOZE.js +0 -11
  1309. package/dist/chunks/chunk.GFYRZ2OC.js +0 -11
  1310. package/dist/chunks/chunk.GRRWZ3JO.js +0 -21
  1311. package/dist/chunks/chunk.GU57KGKX.js +0 -11
  1312. package/dist/chunks/chunk.GWOLQ5MV.js +0 -73
  1313. package/dist/chunks/chunk.GWQNSIDU.js +0 -28
  1314. package/dist/chunks/chunk.GX6DAIPL.js +0 -21
  1315. package/dist/chunks/chunk.H2OLAKPY.js +0 -45
  1316. package/dist/chunks/chunk.H37XJ4MV.js +0 -214
  1317. package/dist/chunks/chunk.H7SU653X.js +0 -25
  1318. package/dist/chunks/chunk.HEBIBOCB.js +0 -24
  1319. package/dist/chunks/chunk.HGFPJLK5.js +0 -21
  1320. package/dist/chunks/chunk.HLW7BCLC.js +0 -11
  1321. package/dist/chunks/chunk.HOXJOYML.js +0 -425
  1322. package/dist/chunks/chunk.HRHKJKRT.js +0 -506
  1323. package/dist/chunks/chunk.HUWKYOVK.js +0 -231
  1324. package/dist/chunks/chunk.HVVMQOVU.js +0 -29
  1325. package/dist/chunks/chunk.HYWWRLSF.js +0 -28
  1326. package/dist/chunks/chunk.I37BPTDO.js +0 -25
  1327. package/dist/chunks/chunk.I64MN2ZT.js +0 -11
  1328. package/dist/chunks/chunk.I7ZZEDZ4.js +0 -27
  1329. package/dist/chunks/chunk.IFUP5NAQ.js +0 -21
  1330. package/dist/chunks/chunk.IKD2GUTZ.js +0 -11
  1331. package/dist/chunks/chunk.IMBE6NS7.js +0 -21
  1332. package/dist/chunks/chunk.IQJAUZU7.js +0 -192
  1333. package/dist/chunks/chunk.IVV46OK7.js +0 -213
  1334. package/dist/chunks/chunk.IZLCWRVM.js +0 -21
  1335. package/dist/chunks/chunk.JCU4QJQL.js +0 -63
  1336. package/dist/chunks/chunk.JMLS7UTV.js +0 -126
  1337. package/dist/chunks/chunk.JXW24NNM.js +0 -384
  1338. package/dist/chunks/chunk.K63B5BDV.js +0 -27
  1339. package/dist/chunks/chunk.KCX6OUXF.js +0 -11
  1340. package/dist/chunks/chunk.KP5Y3VFD.js +0 -24
  1341. package/dist/chunks/chunk.KSZZPJAE.js +0 -27
  1342. package/dist/chunks/chunk.KW735VDQ.js +0 -25
  1343. package/dist/chunks/chunk.KXDVL3I7.js +0 -274
  1344. package/dist/chunks/chunk.LEGNL7H4.js +0 -21
  1345. package/dist/chunks/chunk.LI3JWXGV.js +0 -331
  1346. package/dist/chunks/chunk.LR53B5ZU.js +0 -11
  1347. package/dist/chunks/chunk.LSRZA42R.js +0 -11
  1348. package/dist/chunks/chunk.LVWF2BRI.js +0 -11
  1349. package/dist/chunks/chunk.LY2OVPYP.js +0 -11
  1350. package/dist/chunks/chunk.LZQ53CGA.js +0 -134
  1351. package/dist/chunks/chunk.M23AFFIU.js +0 -11
  1352. package/dist/chunks/chunk.M2TNPACZ.js +0 -26
  1353. package/dist/chunks/chunk.MAQMQ4K7.js +0 -26
  1354. package/dist/chunks/chunk.MHQRS66W.js +0 -280
  1355. package/dist/chunks/chunk.MJ2I45FD.js +0 -11
  1356. package/dist/chunks/chunk.MMONTZH6.js +0 -126
  1357. package/dist/chunks/chunk.MUP3ORYH.js +0 -21
  1358. package/dist/chunks/chunk.MYOEG5AG.js +0 -116
  1359. package/dist/chunks/chunk.N3PO6ZCY.js +0 -11
  1360. package/dist/chunks/chunk.N76DQWXN.js +0 -113
  1361. package/dist/chunks/chunk.NBO2XEQX.js +0 -11
  1362. package/dist/chunks/chunk.NJPWEDYB.js +0 -135
  1363. package/dist/chunks/chunk.NPXKCPZI.js +0 -24
  1364. package/dist/chunks/chunk.NXODKHKS.js +0 -24
  1365. package/dist/chunks/chunk.O56EWGVI.js +0 -11
  1366. package/dist/chunks/chunk.OF4T7ZN4.js +0 -11
  1367. package/dist/chunks/chunk.OHP6N4NT.js +0 -75
  1368. package/dist/chunks/chunk.OM2X6TYA.js +0 -11
  1369. package/dist/chunks/chunk.P5LVTOVJ.js +0 -25
  1370. package/dist/chunks/chunk.PJ2RI2XR.js +0 -29
  1371. package/dist/chunks/chunk.PKDD7LC7.js +0 -743
  1372. package/dist/chunks/chunk.PLXNL73R.js +0 -11
  1373. package/dist/chunks/chunk.PP45VZKM.js +0 -21
  1374. package/dist/chunks/chunk.PPLGLVUK.js +0 -167
  1375. package/dist/chunks/chunk.PRNO5MOD.js +0 -11
  1376. package/dist/chunks/chunk.PYMHBZUR.js +0 -50
  1377. package/dist/chunks/chunk.Q6MXK32G.js +0 -11
  1378. package/dist/chunks/chunk.QI5DMS6S.js +0 -151
  1379. package/dist/chunks/chunk.QRI3RO2Y.js +0 -311
  1380. package/dist/chunks/chunk.QWBTYNHI.js +0 -59
  1381. package/dist/chunks/chunk.R2FXVXDZ.js +0 -11
  1382. package/dist/chunks/chunk.R4KRHIP5.js +0 -11
  1383. package/dist/chunks/chunk.R5Z27L3J.js +0 -230
  1384. package/dist/chunks/chunk.R7XUMWJC.js +0 -34
  1385. package/dist/chunks/chunk.RI45COE3.js +0 -28
  1386. package/dist/chunks/chunk.RI4HC5WM.js +0 -22
  1387. package/dist/chunks/chunk.RKZC52MX.js +0 -24
  1388. package/dist/chunks/chunk.RQREQ4HM.js +0 -11
  1389. package/dist/chunks/chunk.RRWKU4GM.js +0 -22
  1390. package/dist/chunks/chunk.SAMVARF5.js +0 -24
  1391. package/dist/chunks/chunk.SMVQ7KLD.js +0 -111
  1392. package/dist/chunks/chunk.T6YYQVKA.js +0 -90
  1393. package/dist/chunks/chunk.TCK5LG2Y.js +0 -213
  1394. package/dist/chunks/chunk.TJJ44BIO.js +0 -26
  1395. package/dist/chunks/chunk.TSFTCJO7.js +0 -21
  1396. package/dist/chunks/chunk.TTTFCOSZ.js +0 -11
  1397. package/dist/chunks/chunk.TW6VYD4G.js +0 -100
  1398. package/dist/chunks/chunk.U5TX7TIN.js +0 -25
  1399. package/dist/chunks/chunk.UBJMNDLX.js +0 -448
  1400. package/dist/chunks/chunk.UMFLL4JA.js +0 -28
  1401. package/dist/chunks/chunk.UOHXQWDA.js +0 -11
  1402. package/dist/chunks/chunk.UTSBALSC.js +0 -27
  1403. package/dist/chunks/chunk.UVREUPWC.js +0 -21
  1404. package/dist/chunks/chunk.V4MNQQDO.js +0 -21
  1405. package/dist/chunks/chunk.V5U4BI4B.js +0 -1242
  1406. package/dist/chunks/chunk.VA74CFPG.js +0 -814
  1407. package/dist/chunks/chunk.VPZTKXAT.js +0 -11
  1408. package/dist/chunks/chunk.VWKB2GF3.js +0 -42
  1409. package/dist/chunks/chunk.VZGKZ4YC.js +0 -11
  1410. package/dist/chunks/chunk.W2KFQRBC.js +0 -11
  1411. package/dist/chunks/chunk.W3SNACYG.js +0 -11
  1412. package/dist/chunks/chunk.WFFMFVBE.js +0 -11
  1413. package/dist/chunks/chunk.WGQYVXZW.js +0 -263
  1414. package/dist/chunks/chunk.WLYECG27.js +0 -11
  1415. package/dist/chunks/chunk.WMQAVRXC.js +0 -147
  1416. package/dist/chunks/chunk.WR2AHX7I.js +0 -11
  1417. package/dist/chunks/chunk.WVCX76FP.js +0 -27
  1418. package/dist/chunks/chunk.WXFDHT4J.js +0 -91
  1419. package/dist/chunks/chunk.X276QAMP.js +0 -21
  1420. package/dist/chunks/chunk.X4UO6LTB.js +0 -11
  1421. package/dist/chunks/chunk.XB64HOBB.js +0 -11
  1422. package/dist/chunks/chunk.XBCFSL2E.js +0 -29
  1423. package/dist/chunks/chunk.XIWSHOAU.js +0 -820
  1424. package/dist/chunks/chunk.XOLD26HY.js +0 -397
  1425. package/dist/chunks/chunk.XRWHJU3T.js +0 -75
  1426. package/dist/chunks/chunk.YACIYXNN.js +0 -11
  1427. package/dist/chunks/chunk.YF3N67E7.js +0 -109
  1428. package/dist/chunks/chunk.YI7VLVIB.js +0 -11
  1429. package/dist/chunks/chunk.YONJNVK4.js +0 -1120
  1430. package/dist/chunks/chunk.YWHYPIDP.js +0 -361
  1431. package/dist/chunks/chunk.YZLKFDE5.js +0 -29
  1432. package/dist/chunks/chunk.ZAM65RLS.js +0 -11
  1433. package/dist/chunks/chunk.ZG6HRQWM.js +0 -337
  1434. package/dist/chunks/chunk.ZIE7ZIS3.js +0 -33
  1435. package/dist/chunks/chunk.ZNSIJFAS.js +0 -11
@@ -1,2953 +0,0 @@
1
- import {
2
- tableCommonCss
3
- } from "./chunk.PWUNZ5VX.js";
4
- import {
5
- spread_default
6
- } from "./chunk.GRGYWQPR.js";
7
- import {
8
- getCommonPinningProps
9
- } from "./chunk.REAQMJXE.js";
10
- import {
11
- flexRender
12
- } from "./chunk.VK7KEYIH.js";
13
- import {
14
- c,
15
- renderColGroup
16
- } from "./chunk.E3KIWNQF.js";
17
- import {
18
- getTableRect,
19
- iterateStyles
20
- } from "./chunk.YWEYEF5K.js";
21
- import {
22
- CUSTOM_ROW
23
- } from "./chunk.UP5K765N.js";
24
- import {
25
- e as e2,
26
- n as n2
27
- } from "./chunk.G2YOMCHR.js";
28
- import {
29
- o
30
- } from "./chunk.BJDNEBPV.js";
31
- import {
32
- e
33
- } from "./chunk.VHCLMDG7.js";
34
- import {
35
- ShoelaceElement,
36
- n,
37
- r
38
- } from "./chunk.LFNFCZYE.js";
39
- import {
40
- b
41
- } from "./chunk.7WSF3BCU.js";
42
- import {
43
- __decorateClass,
44
- __objRest,
45
- __spreadProps,
46
- __spreadValues
47
- } from "./chunk.CZCSAYQZ.js";
48
-
49
- // node_modules/sortablejs/modular/sortable.esm.js
50
- function _defineProperty(e3, r2, t) {
51
- return (r2 = _toPropertyKey(r2)) in e3 ? Object.defineProperty(e3, r2, {
52
- value: t,
53
- enumerable: true,
54
- configurable: true,
55
- writable: true
56
- }) : e3[r2] = t, e3;
57
- }
58
- function _extends() {
59
- return _extends = Object.assign ? Object.assign.bind() : function(n3) {
60
- for (var e3 = 1; e3 < arguments.length; e3++) {
61
- var t = arguments[e3];
62
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n3[r2] = t[r2]);
63
- }
64
- return n3;
65
- }, _extends.apply(null, arguments);
66
- }
67
- function ownKeys(e3, r2) {
68
- var t = Object.keys(e3);
69
- if (Object.getOwnPropertySymbols) {
70
- var o2 = Object.getOwnPropertySymbols(e3);
71
- r2 && (o2 = o2.filter(function(r3) {
72
- return Object.getOwnPropertyDescriptor(e3, r3).enumerable;
73
- })), t.push.apply(t, o2);
74
- }
75
- return t;
76
- }
77
- function _objectSpread2(e3) {
78
- for (var r2 = 1; r2 < arguments.length; r2++) {
79
- var t = null != arguments[r2] ? arguments[r2] : {};
80
- r2 % 2 ? ownKeys(Object(t), true).forEach(function(r3) {
81
- _defineProperty(e3, r3, t[r3]);
82
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e3, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r3) {
83
- Object.defineProperty(e3, r3, Object.getOwnPropertyDescriptor(t, r3));
84
- });
85
- }
86
- return e3;
87
- }
88
- function _objectWithoutProperties(e3, t) {
89
- if (null == e3) return {};
90
- var o2, r2, i = _objectWithoutPropertiesLoose(e3, t);
91
- if (Object.getOwnPropertySymbols) {
92
- var n3 = Object.getOwnPropertySymbols(e3);
93
- for (r2 = 0; r2 < n3.length; r2++) o2 = n3[r2], -1 === t.indexOf(o2) && {}.propertyIsEnumerable.call(e3, o2) && (i[o2] = e3[o2]);
94
- }
95
- return i;
96
- }
97
- function _objectWithoutPropertiesLoose(r2, e3) {
98
- if (null == r2) return {};
99
- var t = {};
100
- for (var n3 in r2) if ({}.hasOwnProperty.call(r2, n3)) {
101
- if (-1 !== e3.indexOf(n3)) continue;
102
- t[n3] = r2[n3];
103
- }
104
- return t;
105
- }
106
- function _toPrimitive(t, r2) {
107
- if ("object" != typeof t || !t) return t;
108
- var e3 = t[Symbol.toPrimitive];
109
- if (void 0 !== e3) {
110
- var i = e3.call(t, r2 || "default");
111
- if ("object" != typeof i) return i;
112
- throw new TypeError("@@toPrimitive must return a primitive value.");
113
- }
114
- return ("string" === r2 ? String : Number)(t);
115
- }
116
- function _toPropertyKey(t) {
117
- var i = _toPrimitive(t, "string");
118
- return "symbol" == typeof i ? i : i + "";
119
- }
120
- function _typeof(o2) {
121
- "@babel/helpers - typeof";
122
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
123
- return typeof o3;
124
- } : function(o3) {
125
- return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
126
- }, _typeof(o2);
127
- }
128
- var version = "1.15.7";
129
- function userAgent(pattern) {
130
- if (typeof window !== "undefined" && window.navigator) {
131
- return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
132
- }
133
- }
134
- var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
135
- var Edge = userAgent(/Edge/i);
136
- var FireFox = userAgent(/firefox/i);
137
- var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
138
- var IOS = userAgent(/iP(ad|od|hone)/i);
139
- var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
140
- var captureMode = {
141
- capture: false,
142
- passive: false
143
- };
144
- function on(el, event, fn) {
145
- el.addEventListener(event, fn, !IE11OrLess && captureMode);
146
- }
147
- function off(el, event, fn) {
148
- el.removeEventListener(event, fn, !IE11OrLess && captureMode);
149
- }
150
- function matches(el, selector) {
151
- if (!selector) return;
152
- selector[0] === ">" && (selector = selector.substring(1));
153
- if (el) {
154
- try {
155
- if (el.matches) {
156
- return el.matches(selector);
157
- } else if (el.msMatchesSelector) {
158
- return el.msMatchesSelector(selector);
159
- } else if (el.webkitMatchesSelector) {
160
- return el.webkitMatchesSelector(selector);
161
- }
162
- } catch (_) {
163
- return false;
164
- }
165
- }
166
- return false;
167
- }
168
- function getParentOrHost(el) {
169
- return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
170
- }
171
- function closest(el, selector, ctx, includeCTX) {
172
- if (el) {
173
- ctx = ctx || document;
174
- do {
175
- if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
176
- return el;
177
- }
178
- if (el === ctx) break;
179
- } while (el = getParentOrHost(el));
180
- }
181
- return null;
182
- }
183
- var R_SPACE = /\s+/g;
184
- function toggleClass(el, name, state) {
185
- if (el && name) {
186
- if (el.classList) {
187
- el.classList[state ? "add" : "remove"](name);
188
- } else {
189
- var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
190
- el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
191
- }
192
- }
193
- }
194
- function css(el, prop, val) {
195
- var style = el && el.style;
196
- if (style) {
197
- if (val === void 0) {
198
- if (document.defaultView && document.defaultView.getComputedStyle) {
199
- val = document.defaultView.getComputedStyle(el, "");
200
- } else if (el.currentStyle) {
201
- val = el.currentStyle;
202
- }
203
- return prop === void 0 ? val : val[prop];
204
- } else {
205
- if (!(prop in style) && prop.indexOf("webkit") === -1) {
206
- prop = "-webkit-" + prop;
207
- }
208
- style[prop] = val + (typeof val === "string" ? "" : "px");
209
- }
210
- }
211
- }
212
- function matrix(el, selfOnly) {
213
- var appliedTransforms = "";
214
- if (typeof el === "string") {
215
- appliedTransforms = el;
216
- } else {
217
- do {
218
- var transform = css(el, "transform");
219
- if (transform && transform !== "none") {
220
- appliedTransforms = transform + " " + appliedTransforms;
221
- }
222
- } while (!selfOnly && (el = el.parentNode));
223
- }
224
- var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
225
- return matrixFn && new matrixFn(appliedTransforms);
226
- }
227
- function find(ctx, tagName, iterator) {
228
- if (ctx) {
229
- var list = ctx.getElementsByTagName(tagName), i = 0, n3 = list.length;
230
- if (iterator) {
231
- for (; i < n3; i++) {
232
- iterator(list[i], i);
233
- }
234
- }
235
- return list;
236
- }
237
- return [];
238
- }
239
- function getWindowScrollingElement() {
240
- var scrollingElement = document.scrollingElement;
241
- if (scrollingElement) {
242
- return scrollingElement;
243
- } else {
244
- return document.documentElement;
245
- }
246
- }
247
- function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
248
- if (!el.getBoundingClientRect && el !== window) return;
249
- var elRect, top, left, bottom, right, height, width;
250
- if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
251
- elRect = el.getBoundingClientRect();
252
- top = elRect.top;
253
- left = elRect.left;
254
- bottom = elRect.bottom;
255
- right = elRect.right;
256
- height = elRect.height;
257
- width = elRect.width;
258
- } else {
259
- top = 0;
260
- left = 0;
261
- bottom = window.innerHeight;
262
- right = window.innerWidth;
263
- height = window.innerHeight;
264
- width = window.innerWidth;
265
- }
266
- if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
267
- container = container || el.parentNode;
268
- if (!IE11OrLess) {
269
- do {
270
- if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
271
- var containerRect = container.getBoundingClientRect();
272
- top -= containerRect.top + parseInt(css(container, "border-top-width"));
273
- left -= containerRect.left + parseInt(css(container, "border-left-width"));
274
- bottom = top + elRect.height;
275
- right = left + elRect.width;
276
- break;
277
- }
278
- } while (container = container.parentNode);
279
- }
280
- }
281
- if (undoScale && el !== window) {
282
- var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
283
- if (elMatrix) {
284
- top /= scaleY;
285
- left /= scaleX;
286
- width /= scaleX;
287
- height /= scaleY;
288
- bottom = top + height;
289
- right = left + width;
290
- }
291
- }
292
- return {
293
- top,
294
- left,
295
- bottom,
296
- right,
297
- width,
298
- height
299
- };
300
- }
301
- function isScrolledPast(el, elSide, parentSide) {
302
- var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
303
- while (parent) {
304
- var parentSideVal = getRect(parent)[parentSide], visible = void 0;
305
- if (parentSide === "top" || parentSide === "left") {
306
- visible = elSideVal >= parentSideVal;
307
- } else {
308
- visible = elSideVal <= parentSideVal;
309
- }
310
- if (!visible) return parent;
311
- if (parent === getWindowScrollingElement()) break;
312
- parent = getParentAutoScrollElement(parent, false);
313
- }
314
- return false;
315
- }
316
- function getChild(el, childNum, options, includeDragEl) {
317
- var currentChild = 0, i = 0, children = el.children;
318
- while (i < children.length) {
319
- if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
320
- if (currentChild === childNum) {
321
- return children[i];
322
- }
323
- currentChild++;
324
- }
325
- i++;
326
- }
327
- return null;
328
- }
329
- function lastChild(el, selector) {
330
- var last = el.lastElementChild;
331
- while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
332
- last = last.previousElementSibling;
333
- }
334
- return last || null;
335
- }
336
- function index(el, selector) {
337
- var index2 = 0;
338
- if (!el || !el.parentNode) {
339
- return -1;
340
- }
341
- while (el = el.previousElementSibling) {
342
- if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
343
- index2++;
344
- }
345
- }
346
- return index2;
347
- }
348
- function getRelativeScrollOffset(el) {
349
- var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
350
- if (el) {
351
- do {
352
- var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
353
- offsetLeft += el.scrollLeft * scaleX;
354
- offsetTop += el.scrollTop * scaleY;
355
- } while (el !== winScroller && (el = el.parentNode));
356
- }
357
- return [offsetLeft, offsetTop];
358
- }
359
- function indexOfObject(arr, obj) {
360
- for (var i in arr) {
361
- if (!arr.hasOwnProperty(i)) continue;
362
- for (var key in obj) {
363
- if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);
364
- }
365
- }
366
- return -1;
367
- }
368
- function getParentAutoScrollElement(el, includeSelf) {
369
- if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();
370
- var elem = el;
371
- var gotSelf = false;
372
- do {
373
- if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
374
- var elemCSS = css(elem);
375
- if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
376
- if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();
377
- if (gotSelf || includeSelf) return elem;
378
- gotSelf = true;
379
- }
380
- }
381
- } while (elem = elem.parentNode);
382
- return getWindowScrollingElement();
383
- }
384
- function extend(dst, src) {
385
- if (dst && src) {
386
- for (var key in src) {
387
- if (src.hasOwnProperty(key)) {
388
- dst[key] = src[key];
389
- }
390
- }
391
- }
392
- return dst;
393
- }
394
- function isRectEqual(rect1, rect2) {
395
- 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);
396
- }
397
- var _throttleTimeout;
398
- function throttle(callback, ms) {
399
- return function() {
400
- if (!_throttleTimeout) {
401
- var args = arguments, _this = this;
402
- if (args.length === 1) {
403
- callback.call(_this, args[0]);
404
- } else {
405
- callback.apply(_this, args);
406
- }
407
- _throttleTimeout = setTimeout(function() {
408
- _throttleTimeout = void 0;
409
- }, ms);
410
- }
411
- };
412
- }
413
- function cancelThrottle() {
414
- clearTimeout(_throttleTimeout);
415
- _throttleTimeout = void 0;
416
- }
417
- function scrollBy(el, x, y) {
418
- el.scrollLeft += x;
419
- el.scrollTop += y;
420
- }
421
- function clone(el) {
422
- var Polymer = window.Polymer;
423
- var $ = window.jQuery || window.Zepto;
424
- if (Polymer && Polymer.dom) {
425
- return Polymer.dom(el).cloneNode(true);
426
- } else if ($) {
427
- return $(el).clone(true)[0];
428
- } else {
429
- return el.cloneNode(true);
430
- }
431
- }
432
- function getChildContainingRectFromElement(container, options, ghostEl2) {
433
- var rect = {};
434
- Array.from(container.children).forEach(function(child) {
435
- var _rect$left, _rect$top, _rect$right, _rect$bottom;
436
- if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl2) return;
437
- var childRect = getRect(child);
438
- rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);
439
- rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);
440
- rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);
441
- rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);
442
- });
443
- rect.width = rect.right - rect.left;
444
- rect.height = rect.bottom - rect.top;
445
- rect.x = rect.left;
446
- rect.y = rect.top;
447
- return rect;
448
- }
449
- var expando = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
450
- function AnimationStateManager() {
451
- var animationStates = [], animationCallbackId;
452
- return {
453
- captureAnimationState: function captureAnimationState() {
454
- animationStates = [];
455
- if (!this.options.animation) return;
456
- var children = [].slice.call(this.el.children);
457
- children.forEach(function(child) {
458
- if (css(child, "display") === "none" || child === Sortable.ghost) return;
459
- animationStates.push({
460
- target: child,
461
- rect: getRect(child)
462
- });
463
- var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect);
464
- if (child.thisAnimationDuration) {
465
- var childMatrix = matrix(child, true);
466
- if (childMatrix) {
467
- fromRect.top -= childMatrix.f;
468
- fromRect.left -= childMatrix.e;
469
- }
470
- }
471
- child.fromRect = fromRect;
472
- });
473
- },
474
- addAnimationState: function addAnimationState(state) {
475
- animationStates.push(state);
476
- },
477
- removeAnimationState: function removeAnimationState(target) {
478
- animationStates.splice(indexOfObject(animationStates, {
479
- target
480
- }), 1);
481
- },
482
- animateAll: function animateAll(callback) {
483
- var _this = this;
484
- if (!this.options.animation) {
485
- clearTimeout(animationCallbackId);
486
- if (typeof callback === "function") callback();
487
- return;
488
- }
489
- var animating = false, animationTime = 0;
490
- animationStates.forEach(function(state) {
491
- 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);
492
- if (targetMatrix) {
493
- toRect.top -= targetMatrix.f;
494
- toRect.left -= targetMatrix.e;
495
- }
496
- target.toRect = toRect;
497
- if (target.thisAnimationDuration) {
498
- if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect
499
- (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
500
- time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
501
- }
502
- }
503
- if (!isRectEqual(toRect, fromRect)) {
504
- target.prevFromRect = fromRect;
505
- target.prevToRect = toRect;
506
- if (!time) {
507
- time = _this.options.animation;
508
- }
509
- _this.animate(target, animatingRect, toRect, time);
510
- }
511
- if (time) {
512
- animating = true;
513
- animationTime = Math.max(animationTime, time);
514
- clearTimeout(target.animationResetTimer);
515
- target.animationResetTimer = setTimeout(function() {
516
- target.animationTime = 0;
517
- target.prevFromRect = null;
518
- target.fromRect = null;
519
- target.prevToRect = null;
520
- target.thisAnimationDuration = null;
521
- }, time);
522
- target.thisAnimationDuration = time;
523
- }
524
- });
525
- clearTimeout(animationCallbackId);
526
- if (!animating) {
527
- if (typeof callback === "function") callback();
528
- } else {
529
- animationCallbackId = setTimeout(function() {
530
- if (typeof callback === "function") callback();
531
- }, animationTime);
532
- }
533
- animationStates = [];
534
- },
535
- animate: function animate(target, currentRect, toRect, duration) {
536
- if (duration) {
537
- css(target, "transition", "");
538
- css(target, "transform", "");
539
- 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);
540
- target.animatingX = !!translateX;
541
- target.animatingY = !!translateY;
542
- css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
543
- this.forRepaintDummy = repaint(target);
544
- css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
545
- css(target, "transform", "translate3d(0,0,0)");
546
- typeof target.animated === "number" && clearTimeout(target.animated);
547
- target.animated = setTimeout(function() {
548
- css(target, "transition", "");
549
- css(target, "transform", "");
550
- target.animated = false;
551
- target.animatingX = false;
552
- target.animatingY = false;
553
- }, duration);
554
- }
555
- }
556
- };
557
- }
558
- function repaint(target) {
559
- return target.offsetWidth;
560
- }
561
- function calculateRealTime(animatingRect, fromRect, toRect, options) {
562
- 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;
563
- }
564
- var plugins = [];
565
- var defaults = {
566
- initializeByDefault: true
567
- };
568
- var PluginManager = {
569
- mount: function mount(plugin) {
570
- for (var option2 in defaults) {
571
- if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
572
- plugin[option2] = defaults[option2];
573
- }
574
- }
575
- plugins.forEach(function(p) {
576
- if (p.pluginName === plugin.pluginName) {
577
- throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
578
- }
579
- });
580
- plugins.push(plugin);
581
- },
582
- pluginEvent: function pluginEvent(eventName, sortable, evt) {
583
- var _this = this;
584
- this.eventCanceled = false;
585
- evt.cancel = function() {
586
- _this.eventCanceled = true;
587
- };
588
- var eventNameGlobal = eventName + "Global";
589
- plugins.forEach(function(plugin) {
590
- if (!sortable[plugin.pluginName]) return;
591
- if (sortable[plugin.pluginName][eventNameGlobal]) {
592
- sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({
593
- sortable
594
- }, evt));
595
- }
596
- if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
597
- sortable[plugin.pluginName][eventName](_objectSpread2({
598
- sortable
599
- }, evt));
600
- }
601
- });
602
- },
603
- initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
604
- plugins.forEach(function(plugin) {
605
- var pluginName = plugin.pluginName;
606
- if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;
607
- var initialized = new plugin(sortable, el, sortable.options);
608
- initialized.sortable = sortable;
609
- initialized.options = sortable.options;
610
- sortable[pluginName] = initialized;
611
- _extends(defaults2, initialized.defaults);
612
- });
613
- for (var option2 in sortable.options) {
614
- if (!sortable.options.hasOwnProperty(option2)) continue;
615
- var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
616
- if (typeof modified !== "undefined") {
617
- sortable.options[option2] = modified;
618
- }
619
- }
620
- },
621
- getEventProperties: function getEventProperties(name, sortable) {
622
- var eventProperties = {};
623
- plugins.forEach(function(plugin) {
624
- if (typeof plugin.eventProperties !== "function") return;
625
- _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
626
- });
627
- return eventProperties;
628
- },
629
- modifyOption: function modifyOption(sortable, name, value) {
630
- var modifiedValue;
631
- plugins.forEach(function(plugin) {
632
- if (!sortable[plugin.pluginName]) return;
633
- if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
634
- modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
635
- }
636
- });
637
- return modifiedValue;
638
- }
639
- };
640
- function dispatchEvent(_ref) {
641
- 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;
642
- sortable = sortable || rootEl2 && rootEl2[expando];
643
- if (!sortable) return;
644
- var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
645
- if (window.CustomEvent && !IE11OrLess && !Edge) {
646
- evt = new CustomEvent(name, {
647
- bubbles: true,
648
- cancelable: true
649
- });
650
- } else {
651
- evt = document.createEvent("Event");
652
- evt.initEvent(name, true, true);
653
- }
654
- evt.to = toEl || rootEl2;
655
- evt.from = fromEl || rootEl2;
656
- evt.item = targetEl || rootEl2;
657
- evt.clone = cloneEl2;
658
- evt.oldIndex = oldIndex2;
659
- evt.newIndex = newIndex2;
660
- evt.oldDraggableIndex = oldDraggableIndex2;
661
- evt.newDraggableIndex = newDraggableIndex2;
662
- evt.originalEvent = originalEvent;
663
- evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
664
- var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
665
- for (var option2 in allEventProperties) {
666
- evt[option2] = allEventProperties[option2];
667
- }
668
- if (rootEl2) {
669
- rootEl2.dispatchEvent(evt);
670
- }
671
- if (options[onName]) {
672
- options[onName].call(sortable, evt);
673
- }
674
- }
675
- var _excluded = ["evt"];
676
- var pluginEvent2 = function pluginEvent3(eventName, sortable) {
677
- var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties(_ref, _excluded);
678
- PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({
679
- dragEl,
680
- parentEl,
681
- ghostEl,
682
- rootEl,
683
- nextEl,
684
- lastDownEl,
685
- cloneEl,
686
- cloneHidden,
687
- dragStarted: moved,
688
- putSortable,
689
- activeSortable: Sortable.active,
690
- originalEvent,
691
- oldIndex,
692
- oldDraggableIndex,
693
- newIndex,
694
- newDraggableIndex,
695
- hideGhostForTarget: _hideGhostForTarget,
696
- unhideGhostForTarget: _unhideGhostForTarget,
697
- cloneNowHidden: function cloneNowHidden() {
698
- cloneHidden = true;
699
- },
700
- cloneNowShown: function cloneNowShown() {
701
- cloneHidden = false;
702
- },
703
- dispatchSortableEvent: function dispatchSortableEvent(name) {
704
- _dispatchEvent({
705
- sortable,
706
- name,
707
- originalEvent
708
- });
709
- }
710
- }, data));
711
- };
712
- function _dispatchEvent(info) {
713
- dispatchEvent(_objectSpread2({
714
- putSortable,
715
- cloneEl,
716
- targetEl: dragEl,
717
- rootEl,
718
- oldIndex,
719
- oldDraggableIndex,
720
- newIndex,
721
- newDraggableIndex
722
- }, info));
723
- }
724
- var dragEl;
725
- var parentEl;
726
- var ghostEl;
727
- var rootEl;
728
- var nextEl;
729
- var lastDownEl;
730
- var cloneEl;
731
- var cloneHidden;
732
- var oldIndex;
733
- var newIndex;
734
- var oldDraggableIndex;
735
- var newDraggableIndex;
736
- var activeGroup;
737
- var putSortable;
738
- var awaitingDragStarted = false;
739
- var ignoreNextClick = false;
740
- var sortables = [];
741
- var tapEvt;
742
- var touchEvt;
743
- var lastDx;
744
- var lastDy;
745
- var tapDistanceLeft;
746
- var tapDistanceTop;
747
- var moved;
748
- var lastTarget;
749
- var lastDirection;
750
- var pastFirstInvertThresh = false;
751
- var isCircumstantialInvert = false;
752
- var targetMoveDistance;
753
- var ghostRelativeParent;
754
- var ghostRelativeParentInitialScroll = [];
755
- var _silent = false;
756
- var savedInputChecked = [];
757
- var documentExists = typeof document !== "undefined";
758
- var PositionGhostAbsolutely = IOS;
759
- var CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float";
760
- var supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div");
761
- var supportCssPointerEvents = function() {
762
- if (!documentExists) return;
763
- if (IE11OrLess) {
764
- return false;
765
- }
766
- var el = document.createElement("x");
767
- el.style.cssText = "pointer-events:auto";
768
- return el.style.pointerEvents === "auto";
769
- }();
770
- var _detectDirection = function _detectDirection2(el, options) {
771
- 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;
772
- if (elCSS.display === "flex") {
773
- return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
774
- }
775
- if (elCSS.display === "grid") {
776
- return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
777
- }
778
- if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
779
- var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
780
- return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
781
- }
782
- 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";
783
- };
784
- var _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
785
- 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;
786
- return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
787
- };
788
- var _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
789
- var ret;
790
- sortables.some(function(sortable) {
791
- var threshold = sortable[expando].options.emptyInsertThreshold;
792
- if (!threshold || lastChild(sortable)) return;
793
- var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
794
- if (insideHorizontally && insideVertically) {
795
- return ret = sortable;
796
- }
797
- });
798
- return ret;
799
- };
800
- var _prepareGroup = function _prepareGroup2(options) {
801
- function toFn(value, pull) {
802
- return function(to, from, dragEl2, evt) {
803
- var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
804
- if (value == null && (pull || sameGroup)) {
805
- return true;
806
- } else if (value == null || value === false) {
807
- return false;
808
- } else if (pull && value === "clone") {
809
- return value;
810
- } else if (typeof value === "function") {
811
- return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
812
- } else {
813
- var otherGroup = (pull ? to : from).options.group.name;
814
- return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
815
- }
816
- };
817
- }
818
- var group = {};
819
- var originalGroup = options.group;
820
- if (!originalGroup || _typeof(originalGroup) != "object") {
821
- originalGroup = {
822
- name: originalGroup
823
- };
824
- }
825
- group.name = originalGroup.name;
826
- group.checkPull = toFn(originalGroup.pull, true);
827
- group.checkPut = toFn(originalGroup.put);
828
- group.revertClone = originalGroup.revertClone;
829
- options.group = group;
830
- };
831
- var _hideGhostForTarget = function _hideGhostForTarget2() {
832
- if (!supportCssPointerEvents && ghostEl) {
833
- css(ghostEl, "display", "none");
834
- }
835
- };
836
- var _unhideGhostForTarget = function _unhideGhostForTarget2() {
837
- if (!supportCssPointerEvents && ghostEl) {
838
- css(ghostEl, "display", "");
839
- }
840
- };
841
- if (documentExists && !ChromeForAndroid) {
842
- document.addEventListener("click", function(evt) {
843
- if (ignoreNextClick) {
844
- evt.preventDefault();
845
- evt.stopPropagation && evt.stopPropagation();
846
- evt.stopImmediatePropagation && evt.stopImmediatePropagation();
847
- ignoreNextClick = false;
848
- return false;
849
- }
850
- }, true);
851
- }
852
- var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
853
- if (dragEl) {
854
- evt = evt.touches ? evt.touches[0] : evt;
855
- var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
856
- if (nearest) {
857
- var event = {};
858
- for (var i in evt) {
859
- if (evt.hasOwnProperty(i)) {
860
- event[i] = evt[i];
861
- }
862
- }
863
- event.target = event.rootEl = nearest;
864
- event.preventDefault = void 0;
865
- event.stopPropagation = void 0;
866
- nearest[expando]._onDragOver(event);
867
- }
868
- }
869
- };
870
- var _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
871
- if (dragEl) {
872
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
873
- }
874
- };
875
- function Sortable(el, options) {
876
- if (!(el && el.nodeType && el.nodeType === 1)) {
877
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
878
- }
879
- this.el = el;
880
- this.options = options = _extends({}, options);
881
- el[expando] = this;
882
- var defaults2 = {
883
- group: null,
884
- sort: true,
885
- disabled: false,
886
- store: null,
887
- handle: null,
888
- draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
889
- swapThreshold: 1,
890
- // percentage; 0 <= x <= 1
891
- invertSwap: false,
892
- // invert always
893
- invertedSwapThreshold: null,
894
- // will be set to same as swapThreshold if default
895
- removeCloneOnHide: true,
896
- direction: function direction() {
897
- return _detectDirection(el, this.options);
898
- },
899
- ghostClass: "sortable-ghost",
900
- chosenClass: "sortable-chosen",
901
- dragClass: "sortable-drag",
902
- ignore: "a, img",
903
- filter: null,
904
- preventOnFilter: true,
905
- animation: 0,
906
- easing: null,
907
- setData: function setData(dataTransfer, dragEl2) {
908
- dataTransfer.setData("Text", dragEl2.textContent);
909
- },
910
- dropBubble: false,
911
- dragoverBubble: false,
912
- dataIdAttr: "data-id",
913
- delay: 0,
914
- delayOnTouchOnly: false,
915
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
916
- forceFallback: false,
917
- fallbackClass: "sortable-fallback",
918
- fallbackOnBody: false,
919
- fallbackTolerance: 0,
920
- fallbackOffset: {
921
- x: 0,
922
- y: 0
923
- },
924
- // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
925
- supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && (!Safari || IOS),
926
- emptyInsertThreshold: 5
927
- };
928
- PluginManager.initializePlugins(this, el, defaults2);
929
- for (var name in defaults2) {
930
- !(name in options) && (options[name] = defaults2[name]);
931
- }
932
- _prepareGroup(options);
933
- for (var fn in this) {
934
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
935
- this[fn] = this[fn].bind(this);
936
- }
937
- }
938
- this.nativeDraggable = options.forceFallback ? false : supportDraggable;
939
- if (this.nativeDraggable) {
940
- this.options.touchStartThreshold = 1;
941
- }
942
- if (options.supportPointer) {
943
- on(el, "pointerdown", this._onTapStart);
944
- } else {
945
- on(el, "mousedown", this._onTapStart);
946
- on(el, "touchstart", this._onTapStart);
947
- }
948
- if (this.nativeDraggable) {
949
- on(el, "dragover", this);
950
- on(el, "dragenter", this);
951
- }
952
- sortables.push(this.el);
953
- options.store && options.store.get && this.sort(options.store.get(this) || []);
954
- _extends(this, AnimationStateManager());
955
- }
956
- Sortable.prototype = /** @lends Sortable.prototype */
957
- {
958
- constructor: Sortable,
959
- _isOutsideThisEl: function _isOutsideThisEl(target) {
960
- if (!this.el.contains(target) && target !== this.el) {
961
- lastTarget = null;
962
- }
963
- },
964
- _getDirection: function _getDirection(evt, target) {
965
- return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
966
- },
967
- _onTapStart: function _onTapStart(evt) {
968
- if (!evt.cancelable) return;
969
- 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;
970
- _saveInputCheckedState(el);
971
- if (dragEl) {
972
- return;
973
- }
974
- if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
975
- return;
976
- }
977
- if (originalTarget.isContentEditable) {
978
- return;
979
- }
980
- if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
981
- return;
982
- }
983
- target = closest(target, options.draggable, el, false);
984
- if (target && target.animated) {
985
- return;
986
- }
987
- if (lastDownEl === target) {
988
- return;
989
- }
990
- oldIndex = index(target);
991
- oldDraggableIndex = index(target, options.draggable);
992
- if (typeof filter === "function") {
993
- if (filter.call(this, evt, target, this)) {
994
- _dispatchEvent({
995
- sortable: _this,
996
- rootEl: originalTarget,
997
- name: "filter",
998
- targetEl: target,
999
- toEl: el,
1000
- fromEl: el
1001
- });
1002
- pluginEvent2("filter", _this, {
1003
- evt
1004
- });
1005
- preventOnFilter && evt.preventDefault();
1006
- return;
1007
- }
1008
- } else if (filter) {
1009
- filter = filter.split(",").some(function(criteria) {
1010
- criteria = closest(originalTarget, criteria.trim(), el, false);
1011
- if (criteria) {
1012
- _dispatchEvent({
1013
- sortable: _this,
1014
- rootEl: criteria,
1015
- name: "filter",
1016
- targetEl: target,
1017
- fromEl: el,
1018
- toEl: el
1019
- });
1020
- pluginEvent2("filter", _this, {
1021
- evt
1022
- });
1023
- return true;
1024
- }
1025
- });
1026
- if (filter) {
1027
- preventOnFilter && evt.preventDefault();
1028
- return;
1029
- }
1030
- }
1031
- if (options.handle && !closest(originalTarget, options.handle, el, false)) {
1032
- return;
1033
- }
1034
- this._prepareDragStart(evt, touch, target);
1035
- },
1036
- _prepareDragStart: function _prepareDragStart(evt, touch, target) {
1037
- var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
1038
- if (target && !dragEl && target.parentNode === el) {
1039
- var dragRect = getRect(target);
1040
- rootEl = el;
1041
- dragEl = target;
1042
- parentEl = dragEl.parentNode;
1043
- nextEl = dragEl.nextSibling;
1044
- lastDownEl = target;
1045
- activeGroup = options.group;
1046
- Sortable.dragged = dragEl;
1047
- tapEvt = {
1048
- target: dragEl,
1049
- clientX: (touch || evt).clientX,
1050
- clientY: (touch || evt).clientY
1051
- };
1052
- tapDistanceLeft = tapEvt.clientX - dragRect.left;
1053
- tapDistanceTop = tapEvt.clientY - dragRect.top;
1054
- this._lastX = (touch || evt).clientX;
1055
- this._lastY = (touch || evt).clientY;
1056
- dragEl.style["will-change"] = "all";
1057
- dragStartFn = function dragStartFn2() {
1058
- pluginEvent2("delayEnded", _this, {
1059
- evt
1060
- });
1061
- if (Sortable.eventCanceled) {
1062
- _this._onDrop();
1063
- return;
1064
- }
1065
- _this._disableDelayedDragEvents();
1066
- if (!FireFox && _this.nativeDraggable) {
1067
- dragEl.draggable = true;
1068
- }
1069
- _this._triggerDragStart(evt, touch);
1070
- _dispatchEvent({
1071
- sortable: _this,
1072
- name: "choose",
1073
- originalEvent: evt
1074
- });
1075
- toggleClass(dragEl, options.chosenClass, true);
1076
- };
1077
- options.ignore.split(",").forEach(function(criteria) {
1078
- find(dragEl, criteria.trim(), _disableDraggable);
1079
- });
1080
- on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
1081
- on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
1082
- on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
1083
- if (options.supportPointer) {
1084
- on(ownerDocument, "pointerup", _this._onDrop);
1085
- !this.nativeDraggable && on(ownerDocument, "pointercancel", _this._onDrop);
1086
- } else {
1087
- on(ownerDocument, "mouseup", _this._onDrop);
1088
- on(ownerDocument, "touchend", _this._onDrop);
1089
- on(ownerDocument, "touchcancel", _this._onDrop);
1090
- }
1091
- if (FireFox && this.nativeDraggable) {
1092
- this.options.touchStartThreshold = 4;
1093
- dragEl.draggable = true;
1094
- }
1095
- pluginEvent2("delayStart", this, {
1096
- evt
1097
- });
1098
- if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
1099
- if (Sortable.eventCanceled) {
1100
- this._onDrop();
1101
- return;
1102
- }
1103
- if (options.supportPointer) {
1104
- on(ownerDocument, "pointerup", _this._disableDelayedDrag);
1105
- on(ownerDocument, "pointercancel", _this._disableDelayedDrag);
1106
- } else {
1107
- on(ownerDocument, "mouseup", _this._disableDelayedDrag);
1108
- on(ownerDocument, "touchend", _this._disableDelayedDrag);
1109
- on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
1110
- }
1111
- on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
1112
- on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
1113
- options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
1114
- _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
1115
- } else {
1116
- dragStartFn();
1117
- }
1118
- }
1119
- },
1120
- _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e3) {
1121
- var touch = e3.touches ? e3.touches[0] : e3;
1122
- 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))) {
1123
- this._disableDelayedDrag();
1124
- }
1125
- },
1126
- _disableDelayedDrag: function _disableDelayedDrag() {
1127
- dragEl && _disableDraggable(dragEl);
1128
- clearTimeout(this._dragStartTimer);
1129
- this._disableDelayedDragEvents();
1130
- },
1131
- _disableDelayedDragEvents: function _disableDelayedDragEvents() {
1132
- var ownerDocument = this.el.ownerDocument;
1133
- off(ownerDocument, "mouseup", this._disableDelayedDrag);
1134
- off(ownerDocument, "touchend", this._disableDelayedDrag);
1135
- off(ownerDocument, "touchcancel", this._disableDelayedDrag);
1136
- off(ownerDocument, "pointerup", this._disableDelayedDrag);
1137
- off(ownerDocument, "pointercancel", this._disableDelayedDrag);
1138
- off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
1139
- off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
1140
- off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
1141
- },
1142
- _triggerDragStart: function _triggerDragStart(evt, touch) {
1143
- touch = touch || evt.pointerType == "touch" && evt;
1144
- if (!this.nativeDraggable || touch) {
1145
- if (this.options.supportPointer) {
1146
- on(document, "pointermove", this._onTouchMove);
1147
- } else if (touch) {
1148
- on(document, "touchmove", this._onTouchMove);
1149
- } else {
1150
- on(document, "mousemove", this._onTouchMove);
1151
- }
1152
- } else {
1153
- on(dragEl, "dragend", this);
1154
- on(rootEl, "dragstart", this._onDragStart);
1155
- }
1156
- try {
1157
- if (document.selection) {
1158
- _nextTick(function() {
1159
- document.selection.empty();
1160
- });
1161
- } else {
1162
- window.getSelection().removeAllRanges();
1163
- }
1164
- } catch (err) {
1165
- }
1166
- },
1167
- _dragStarted: function _dragStarted(fallback, evt) {
1168
- awaitingDragStarted = false;
1169
- if (rootEl && dragEl) {
1170
- pluginEvent2("dragStarted", this, {
1171
- evt
1172
- });
1173
- if (this.nativeDraggable) {
1174
- on(document, "dragover", _checkOutsideTargetEl);
1175
- }
1176
- var options = this.options;
1177
- !fallback && toggleClass(dragEl, options.dragClass, false);
1178
- toggleClass(dragEl, options.ghostClass, true);
1179
- Sortable.active = this;
1180
- fallback && this._appendGhost();
1181
- _dispatchEvent({
1182
- sortable: this,
1183
- name: "start",
1184
- originalEvent: evt
1185
- });
1186
- } else {
1187
- this._nulling();
1188
- }
1189
- },
1190
- _emulateDragOver: function _emulateDragOver() {
1191
- if (touchEvt) {
1192
- this._lastX = touchEvt.clientX;
1193
- this._lastY = touchEvt.clientY;
1194
- _hideGhostForTarget();
1195
- var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1196
- var parent = target;
1197
- while (target && target.shadowRoot) {
1198
- target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
1199
- if (target === parent) break;
1200
- parent = target;
1201
- }
1202
- dragEl.parentNode[expando]._isOutsideThisEl(target);
1203
- if (parent) {
1204
- do {
1205
- if (parent[expando]) {
1206
- var inserted = void 0;
1207
- inserted = parent[expando]._onDragOver({
1208
- clientX: touchEvt.clientX,
1209
- clientY: touchEvt.clientY,
1210
- target,
1211
- rootEl: parent
1212
- });
1213
- if (inserted && !this.options.dragoverBubble) {
1214
- break;
1215
- }
1216
- }
1217
- target = parent;
1218
- } while (parent = getParentOrHost(parent));
1219
- }
1220
- _unhideGhostForTarget();
1221
- }
1222
- },
1223
- _onTouchMove: function _onTouchMove(evt) {
1224
- if (tapEvt) {
1225
- 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);
1226
- if (!Sortable.active && !awaitingDragStarted) {
1227
- if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
1228
- return;
1229
- }
1230
- this._onDragStart(evt, true);
1231
- }
1232
- if (ghostEl) {
1233
- if (ghostMatrix) {
1234
- ghostMatrix.e += dx - (lastDx || 0);
1235
- ghostMatrix.f += dy - (lastDy || 0);
1236
- } else {
1237
- ghostMatrix = {
1238
- a: 1,
1239
- b: 0,
1240
- c: 0,
1241
- d: 1,
1242
- e: dx,
1243
- f: dy
1244
- };
1245
- }
1246
- var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
1247
- css(ghostEl, "webkitTransform", cssMatrix);
1248
- css(ghostEl, "mozTransform", cssMatrix);
1249
- css(ghostEl, "msTransform", cssMatrix);
1250
- css(ghostEl, "transform", cssMatrix);
1251
- lastDx = dx;
1252
- lastDy = dy;
1253
- touchEvt = touch;
1254
- }
1255
- evt.cancelable && evt.preventDefault();
1256
- }
1257
- },
1258
- _appendGhost: function _appendGhost() {
1259
- if (!ghostEl) {
1260
- var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
1261
- if (PositionGhostAbsolutely) {
1262
- ghostRelativeParent = container;
1263
- while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
1264
- ghostRelativeParent = ghostRelativeParent.parentNode;
1265
- }
1266
- if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
1267
- if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();
1268
- rect.top += ghostRelativeParent.scrollTop;
1269
- rect.left += ghostRelativeParent.scrollLeft;
1270
- } else {
1271
- ghostRelativeParent = getWindowScrollingElement();
1272
- }
1273
- ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
1274
- }
1275
- ghostEl = dragEl.cloneNode(true);
1276
- toggleClass(ghostEl, options.ghostClass, false);
1277
- toggleClass(ghostEl, options.fallbackClass, true);
1278
- toggleClass(ghostEl, options.dragClass, true);
1279
- css(ghostEl, "transition", "");
1280
- css(ghostEl, "transform", "");
1281
- css(ghostEl, "box-sizing", "border-box");
1282
- css(ghostEl, "margin", 0);
1283
- css(ghostEl, "top", rect.top);
1284
- css(ghostEl, "left", rect.left);
1285
- css(ghostEl, "width", rect.width);
1286
- css(ghostEl, "height", rect.height);
1287
- css(ghostEl, "opacity", "0.8");
1288
- css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
1289
- css(ghostEl, "zIndex", "100000");
1290
- css(ghostEl, "pointerEvents", "none");
1291
- Sortable.ghost = ghostEl;
1292
- container.appendChild(ghostEl);
1293
- css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
1294
- }
1295
- },
1296
- _onDragStart: function _onDragStart(evt, fallback) {
1297
- var _this = this;
1298
- var dataTransfer = evt.dataTransfer;
1299
- var options = _this.options;
1300
- pluginEvent2("dragStart", this, {
1301
- evt
1302
- });
1303
- if (Sortable.eventCanceled) {
1304
- this._onDrop();
1305
- return;
1306
- }
1307
- pluginEvent2("setupClone", this);
1308
- if (!Sortable.eventCanceled) {
1309
- cloneEl = clone(dragEl);
1310
- cloneEl.removeAttribute("id");
1311
- cloneEl.draggable = false;
1312
- cloneEl.style["will-change"] = "";
1313
- this._hideClone();
1314
- toggleClass(cloneEl, this.options.chosenClass, false);
1315
- Sortable.clone = cloneEl;
1316
- }
1317
- _this.cloneId = _nextTick(function() {
1318
- pluginEvent2("clone", _this);
1319
- if (Sortable.eventCanceled) return;
1320
- if (!_this.options.removeCloneOnHide) {
1321
- rootEl.insertBefore(cloneEl, dragEl);
1322
- }
1323
- _this._hideClone();
1324
- _dispatchEvent({
1325
- sortable: _this,
1326
- name: "clone"
1327
- });
1328
- });
1329
- !fallback && toggleClass(dragEl, options.dragClass, true);
1330
- if (fallback) {
1331
- ignoreNextClick = true;
1332
- _this._loopId = setInterval(_this._emulateDragOver, 50);
1333
- } else {
1334
- off(document, "mouseup", _this._onDrop);
1335
- off(document, "touchend", _this._onDrop);
1336
- off(document, "touchcancel", _this._onDrop);
1337
- if (dataTransfer) {
1338
- dataTransfer.effectAllowed = "move";
1339
- options.setData && options.setData.call(_this, dataTransfer, dragEl);
1340
- }
1341
- on(document, "drop", _this);
1342
- css(dragEl, "transform", "translateZ(0)");
1343
- }
1344
- awaitingDragStarted = true;
1345
- _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
1346
- on(document, "selectstart", _this);
1347
- moved = true;
1348
- window.getSelection().removeAllRanges();
1349
- if (Safari) {
1350
- css(document.body, "user-select", "none");
1351
- }
1352
- },
1353
- // Returns true - if no further action is needed (either inserted or another condition)
1354
- _onDragOver: function _onDragOver(evt) {
1355
- 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;
1356
- if (_silent) return;
1357
- function dragOverEvent(name, extra) {
1358
- pluginEvent2(name, _this, _objectSpread2({
1359
- evt,
1360
- isOwner,
1361
- axis: vertical ? "vertical" : "horizontal",
1362
- revert,
1363
- dragRect,
1364
- targetRect,
1365
- canSort,
1366
- fromSortable,
1367
- target,
1368
- completed,
1369
- onMove: function onMove(target2, after2) {
1370
- return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
1371
- },
1372
- changed
1373
- }, extra));
1374
- }
1375
- function capture() {
1376
- dragOverEvent("dragOverAnimationCapture");
1377
- _this.captureAnimationState();
1378
- if (_this !== fromSortable) {
1379
- fromSortable.captureAnimationState();
1380
- }
1381
- }
1382
- function completed(insertion) {
1383
- dragOverEvent("dragOverCompleted", {
1384
- insertion
1385
- });
1386
- if (insertion) {
1387
- if (isOwner) {
1388
- activeSortable._hideClone();
1389
- } else {
1390
- activeSortable._showClone(_this);
1391
- }
1392
- if (_this !== fromSortable) {
1393
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
1394
- toggleClass(dragEl, options.ghostClass, true);
1395
- }
1396
- if (putSortable !== _this && _this !== Sortable.active) {
1397
- putSortable = _this;
1398
- } else if (_this === Sortable.active && putSortable) {
1399
- putSortable = null;
1400
- }
1401
- if (fromSortable === _this) {
1402
- _this._ignoreWhileAnimating = target;
1403
- }
1404
- _this.animateAll(function() {
1405
- dragOverEvent("dragOverAnimationComplete");
1406
- _this._ignoreWhileAnimating = null;
1407
- });
1408
- if (_this !== fromSortable) {
1409
- fromSortable.animateAll();
1410
- fromSortable._ignoreWhileAnimating = null;
1411
- }
1412
- }
1413
- if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
1414
- lastTarget = null;
1415
- }
1416
- if (!options.dragoverBubble && !evt.rootEl && target !== document) {
1417
- dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
1418
- !insertion && nearestEmptyInsertDetectEvent(evt);
1419
- }
1420
- !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
1421
- return completedFired = true;
1422
- }
1423
- function changed() {
1424
- newIndex = index(dragEl);
1425
- newDraggableIndex = index(dragEl, options.draggable);
1426
- _dispatchEvent({
1427
- sortable: _this,
1428
- name: "change",
1429
- toEl: el,
1430
- newIndex,
1431
- newDraggableIndex,
1432
- originalEvent: evt
1433
- });
1434
- }
1435
- if (evt.preventDefault !== void 0) {
1436
- evt.cancelable && evt.preventDefault();
1437
- }
1438
- target = closest(target, options.draggable, el, true);
1439
- dragOverEvent("dragOver");
1440
- if (Sortable.eventCanceled) return completedFired;
1441
- if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
1442
- return completed(false);
1443
- }
1444
- ignoreNextClick = false;
1445
- 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))) {
1446
- vertical = this._getDirection(evt, target) === "vertical";
1447
- dragRect = getRect(dragEl);
1448
- dragOverEvent("dragOverValid");
1449
- if (Sortable.eventCanceled) return completedFired;
1450
- if (revert) {
1451
- parentEl = rootEl;
1452
- capture();
1453
- this._hideClone();
1454
- dragOverEvent("revert");
1455
- if (!Sortable.eventCanceled) {
1456
- if (nextEl) {
1457
- rootEl.insertBefore(dragEl, nextEl);
1458
- } else {
1459
- rootEl.appendChild(dragEl);
1460
- }
1461
- }
1462
- return completed(true);
1463
- }
1464
- var elLastChild = lastChild(el, options.draggable);
1465
- if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
1466
- if (elLastChild === dragEl) {
1467
- return completed(false);
1468
- }
1469
- if (elLastChild && el === evt.target) {
1470
- target = elLastChild;
1471
- }
1472
- if (target) {
1473
- targetRect = getRect(target);
1474
- }
1475
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
1476
- capture();
1477
- if (elLastChild && elLastChild.nextSibling) {
1478
- el.insertBefore(dragEl, elLastChild.nextSibling);
1479
- } else {
1480
- el.appendChild(dragEl);
1481
- }
1482
- parentEl = el;
1483
- changed();
1484
- return completed(true);
1485
- }
1486
- } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
1487
- var firstChild = getChild(el, 0, options, true);
1488
- if (firstChild === dragEl) {
1489
- return completed(false);
1490
- }
1491
- target = firstChild;
1492
- targetRect = getRect(target);
1493
- if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
1494
- capture();
1495
- el.insertBefore(dragEl, firstChild);
1496
- parentEl = el;
1497
- changed();
1498
- return completed(true);
1499
- }
1500
- } else if (target.parentNode === el) {
1501
- targetRect = getRect(target);
1502
- 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;
1503
- if (lastTarget !== target) {
1504
- targetBeforeFirstSwap = targetRect[side1];
1505
- pastFirstInvertThresh = false;
1506
- isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
1507
- }
1508
- direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
1509
- var sibling;
1510
- if (direction !== 0) {
1511
- var dragIndex = index(dragEl);
1512
- do {
1513
- dragIndex -= direction;
1514
- sibling = parentEl.children[dragIndex];
1515
- } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
1516
- }
1517
- if (direction === 0 || sibling === target) {
1518
- return completed(false);
1519
- }
1520
- lastTarget = target;
1521
- lastDirection = direction;
1522
- var nextSibling = target.nextElementSibling, after = false;
1523
- after = direction === 1;
1524
- var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
1525
- if (moveVector !== false) {
1526
- if (moveVector === 1 || moveVector === -1) {
1527
- after = moveVector === 1;
1528
- }
1529
- _silent = true;
1530
- setTimeout(_unsilent, 30);
1531
- capture();
1532
- if (after && !nextSibling) {
1533
- el.appendChild(dragEl);
1534
- } else {
1535
- target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
1536
- }
1537
- if (scrolledPastTop) {
1538
- scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
1539
- }
1540
- parentEl = dragEl.parentNode;
1541
- if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
1542
- targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
1543
- }
1544
- changed();
1545
- return completed(true);
1546
- }
1547
- }
1548
- if (el.contains(dragEl)) {
1549
- return completed(false);
1550
- }
1551
- }
1552
- return false;
1553
- },
1554
- _ignoreWhileAnimating: null,
1555
- _offMoveEvents: function _offMoveEvents() {
1556
- off(document, "mousemove", this._onTouchMove);
1557
- off(document, "touchmove", this._onTouchMove);
1558
- off(document, "pointermove", this._onTouchMove);
1559
- off(document, "dragover", nearestEmptyInsertDetectEvent);
1560
- off(document, "mousemove", nearestEmptyInsertDetectEvent);
1561
- off(document, "touchmove", nearestEmptyInsertDetectEvent);
1562
- },
1563
- _offUpEvents: function _offUpEvents() {
1564
- var ownerDocument = this.el.ownerDocument;
1565
- off(ownerDocument, "mouseup", this._onDrop);
1566
- off(ownerDocument, "touchend", this._onDrop);
1567
- off(ownerDocument, "pointerup", this._onDrop);
1568
- off(ownerDocument, "pointercancel", this._onDrop);
1569
- off(ownerDocument, "touchcancel", this._onDrop);
1570
- off(document, "selectstart", this);
1571
- },
1572
- _onDrop: function _onDrop(evt) {
1573
- var el = this.el, options = this.options;
1574
- newIndex = index(dragEl);
1575
- newDraggableIndex = index(dragEl, options.draggable);
1576
- pluginEvent2("drop", this, {
1577
- evt
1578
- });
1579
- parentEl = dragEl && dragEl.parentNode;
1580
- newIndex = index(dragEl);
1581
- newDraggableIndex = index(dragEl, options.draggable);
1582
- if (Sortable.eventCanceled) {
1583
- this._nulling();
1584
- return;
1585
- }
1586
- awaitingDragStarted = false;
1587
- isCircumstantialInvert = false;
1588
- pastFirstInvertThresh = false;
1589
- clearInterval(this._loopId);
1590
- clearTimeout(this._dragStartTimer);
1591
- _cancelNextTick(this.cloneId);
1592
- _cancelNextTick(this._dragStartId);
1593
- if (this.nativeDraggable) {
1594
- off(document, "drop", this);
1595
- off(el, "dragstart", this._onDragStart);
1596
- }
1597
- this._offMoveEvents();
1598
- this._offUpEvents();
1599
- if (Safari) {
1600
- css(document.body, "user-select", "");
1601
- }
1602
- css(dragEl, "transform", "");
1603
- if (evt) {
1604
- if (moved) {
1605
- evt.cancelable && evt.preventDefault();
1606
- !options.dropBubble && evt.stopPropagation();
1607
- }
1608
- ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
1609
- if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
1610
- cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
1611
- }
1612
- if (dragEl) {
1613
- if (this.nativeDraggable) {
1614
- off(dragEl, "dragend", this);
1615
- }
1616
- _disableDraggable(dragEl);
1617
- dragEl.style["will-change"] = "";
1618
- if (moved && !awaitingDragStarted) {
1619
- toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
1620
- }
1621
- toggleClass(dragEl, this.options.chosenClass, false);
1622
- _dispatchEvent({
1623
- sortable: this,
1624
- name: "unchoose",
1625
- toEl: parentEl,
1626
- newIndex: null,
1627
- newDraggableIndex: null,
1628
- originalEvent: evt
1629
- });
1630
- if (rootEl !== parentEl) {
1631
- if (newIndex >= 0) {
1632
- _dispatchEvent({
1633
- rootEl: parentEl,
1634
- name: "add",
1635
- toEl: parentEl,
1636
- fromEl: rootEl,
1637
- originalEvent: evt
1638
- });
1639
- _dispatchEvent({
1640
- sortable: this,
1641
- name: "remove",
1642
- toEl: parentEl,
1643
- originalEvent: evt
1644
- });
1645
- _dispatchEvent({
1646
- rootEl: parentEl,
1647
- name: "sort",
1648
- toEl: parentEl,
1649
- fromEl: rootEl,
1650
- originalEvent: evt
1651
- });
1652
- _dispatchEvent({
1653
- sortable: this,
1654
- name: "sort",
1655
- toEl: parentEl,
1656
- originalEvent: evt
1657
- });
1658
- }
1659
- putSortable && putSortable.save();
1660
- } else {
1661
- if (newIndex !== oldIndex) {
1662
- if (newIndex >= 0) {
1663
- _dispatchEvent({
1664
- sortable: this,
1665
- name: "update",
1666
- toEl: parentEl,
1667
- originalEvent: evt
1668
- });
1669
- _dispatchEvent({
1670
- sortable: this,
1671
- name: "sort",
1672
- toEl: parentEl,
1673
- originalEvent: evt
1674
- });
1675
- }
1676
- }
1677
- }
1678
- if (Sortable.active) {
1679
- if (newIndex == null || newIndex === -1) {
1680
- newIndex = oldIndex;
1681
- newDraggableIndex = oldDraggableIndex;
1682
- }
1683
- _dispatchEvent({
1684
- sortable: this,
1685
- name: "end",
1686
- toEl: parentEl,
1687
- originalEvent: evt
1688
- });
1689
- this.save();
1690
- }
1691
- }
1692
- }
1693
- this._nulling();
1694
- },
1695
- _nulling: function _nulling() {
1696
- pluginEvent2("nulling", this);
1697
- 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;
1698
- var el = this.el;
1699
- savedInputChecked.forEach(function(checkEl) {
1700
- if (el.contains(checkEl)) {
1701
- checkEl.checked = true;
1702
- }
1703
- });
1704
- savedInputChecked.length = lastDx = lastDy = 0;
1705
- },
1706
- handleEvent: function handleEvent(evt) {
1707
- switch (evt.type) {
1708
- case "drop":
1709
- case "dragend":
1710
- this._onDrop(evt);
1711
- break;
1712
- case "dragenter":
1713
- case "dragover":
1714
- if (dragEl) {
1715
- this._onDragOver(evt);
1716
- _globalDragOver(evt);
1717
- }
1718
- break;
1719
- case "selectstart":
1720
- evt.preventDefault();
1721
- break;
1722
- }
1723
- },
1724
- /**
1725
- * Serializes the item into an array of string.
1726
- * @returns {String[]}
1727
- */
1728
- toArray: function toArray() {
1729
- var order = [], el, children = this.el.children, i = 0, n3 = children.length, options = this.options;
1730
- for (; i < n3; i++) {
1731
- el = children[i];
1732
- if (closest(el, options.draggable, this.el, false)) {
1733
- order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
1734
- }
1735
- }
1736
- return order;
1737
- },
1738
- /**
1739
- * Sorts the elements according to the array.
1740
- * @param {String[]} order order of the items
1741
- */
1742
- sort: function sort(order, useAnimation) {
1743
- var items = {}, rootEl2 = this.el;
1744
- this.toArray().forEach(function(id, i) {
1745
- var el = rootEl2.children[i];
1746
- if (closest(el, this.options.draggable, rootEl2, false)) {
1747
- items[id] = el;
1748
- }
1749
- }, this);
1750
- useAnimation && this.captureAnimationState();
1751
- order.forEach(function(id) {
1752
- if (items[id]) {
1753
- rootEl2.removeChild(items[id]);
1754
- rootEl2.appendChild(items[id]);
1755
- }
1756
- });
1757
- useAnimation && this.animateAll();
1758
- },
1759
- /**
1760
- * Save the current sorting
1761
- */
1762
- save: function save() {
1763
- var store = this.options.store;
1764
- store && store.set && store.set(this);
1765
- },
1766
- /**
1767
- * 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.
1768
- * @param {HTMLElement} el
1769
- * @param {String} [selector] default: `options.draggable`
1770
- * @returns {HTMLElement|null}
1771
- */
1772
- closest: function closest$1(el, selector) {
1773
- return closest(el, selector || this.options.draggable, this.el, false);
1774
- },
1775
- /**
1776
- * Set/get option
1777
- * @param {string} name
1778
- * @param {*} [value]
1779
- * @returns {*}
1780
- */
1781
- option: function option(name, value) {
1782
- var options = this.options;
1783
- if (value === void 0) {
1784
- return options[name];
1785
- } else {
1786
- var modifiedValue = PluginManager.modifyOption(this, name, value);
1787
- if (typeof modifiedValue !== "undefined") {
1788
- options[name] = modifiedValue;
1789
- } else {
1790
- options[name] = value;
1791
- }
1792
- if (name === "group") {
1793
- _prepareGroup(options);
1794
- }
1795
- }
1796
- },
1797
- /**
1798
- * Destroy
1799
- */
1800
- destroy: function destroy() {
1801
- pluginEvent2("destroy", this);
1802
- var el = this.el;
1803
- el[expando] = null;
1804
- off(el, "mousedown", this._onTapStart);
1805
- off(el, "touchstart", this._onTapStart);
1806
- off(el, "pointerdown", this._onTapStart);
1807
- if (this.nativeDraggable) {
1808
- off(el, "dragover", this);
1809
- off(el, "dragenter", this);
1810
- }
1811
- Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
1812
- el2.removeAttribute("draggable");
1813
- });
1814
- this._onDrop();
1815
- this._disableDelayedDragEvents();
1816
- sortables.splice(sortables.indexOf(this.el), 1);
1817
- this.el = el = null;
1818
- },
1819
- _hideClone: function _hideClone() {
1820
- if (!cloneHidden) {
1821
- pluginEvent2("hideClone", this);
1822
- if (Sortable.eventCanceled) return;
1823
- css(cloneEl, "display", "none");
1824
- if (this.options.removeCloneOnHide && cloneEl.parentNode) {
1825
- cloneEl.parentNode.removeChild(cloneEl);
1826
- }
1827
- cloneHidden = true;
1828
- }
1829
- },
1830
- _showClone: function _showClone(putSortable2) {
1831
- if (putSortable2.lastPutMode !== "clone") {
1832
- this._hideClone();
1833
- return;
1834
- }
1835
- if (cloneHidden) {
1836
- pluginEvent2("showClone", this);
1837
- if (Sortable.eventCanceled) return;
1838
- if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
1839
- rootEl.insertBefore(cloneEl, dragEl);
1840
- } else if (nextEl) {
1841
- rootEl.insertBefore(cloneEl, nextEl);
1842
- } else {
1843
- rootEl.appendChild(cloneEl);
1844
- }
1845
- if (this.options.group.revertClone) {
1846
- this.animate(dragEl, cloneEl);
1847
- }
1848
- css(cloneEl, "display", "");
1849
- cloneHidden = false;
1850
- }
1851
- }
1852
- };
1853
- function _globalDragOver(evt) {
1854
- if (evt.dataTransfer) {
1855
- evt.dataTransfer.dropEffect = "move";
1856
- }
1857
- evt.cancelable && evt.preventDefault();
1858
- }
1859
- function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
1860
- var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
1861
- if (window.CustomEvent && !IE11OrLess && !Edge) {
1862
- evt = new CustomEvent("move", {
1863
- bubbles: true,
1864
- cancelable: true
1865
- });
1866
- } else {
1867
- evt = document.createEvent("Event");
1868
- evt.initEvent("move", true, true);
1869
- }
1870
- evt.to = toEl;
1871
- evt.from = fromEl;
1872
- evt.dragged = dragEl2;
1873
- evt.draggedRect = dragRect;
1874
- evt.related = targetEl || toEl;
1875
- evt.relatedRect = targetRect || getRect(toEl);
1876
- evt.willInsertAfter = willInsertAfter;
1877
- evt.originalEvent = originalEvent;
1878
- fromEl.dispatchEvent(evt);
1879
- if (onMoveFn) {
1880
- retVal = onMoveFn.call(sortable, evt, originalEvent);
1881
- }
1882
- return retVal;
1883
- }
1884
- function _disableDraggable(el) {
1885
- el.draggable = false;
1886
- }
1887
- function _unsilent() {
1888
- _silent = false;
1889
- }
1890
- function _ghostIsFirst(evt, vertical, sortable) {
1891
- var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));
1892
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1893
- var spacer = 10;
1894
- 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;
1895
- }
1896
- function _ghostIsLast(evt, vertical, sortable) {
1897
- var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));
1898
- var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);
1899
- var spacer = 10;
1900
- 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;
1901
- }
1902
- function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
1903
- 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;
1904
- if (!invertSwap) {
1905
- if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
1906
- if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
1907
- pastFirstInvertThresh = true;
1908
- }
1909
- if (!pastFirstInvertThresh) {
1910
- if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
1911
- return -lastDirection;
1912
- }
1913
- } else {
1914
- invert = true;
1915
- }
1916
- } else {
1917
- if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
1918
- return _getInsertDirection(target);
1919
- }
1920
- }
1921
- }
1922
- invert = invert || invertSwap;
1923
- if (invert) {
1924
- if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
1925
- return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
1926
- }
1927
- }
1928
- return 0;
1929
- }
1930
- function _getInsertDirection(target) {
1931
- if (index(dragEl) < index(target)) {
1932
- return 1;
1933
- } else {
1934
- return -1;
1935
- }
1936
- }
1937
- function _generateId(el) {
1938
- var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
1939
- while (i--) {
1940
- sum += str.charCodeAt(i);
1941
- }
1942
- return sum.toString(36);
1943
- }
1944
- function _saveInputCheckedState(root) {
1945
- savedInputChecked.length = 0;
1946
- var inputs = root.getElementsByTagName("input");
1947
- var idx = inputs.length;
1948
- while (idx--) {
1949
- var el = inputs[idx];
1950
- el.checked && savedInputChecked.push(el);
1951
- }
1952
- }
1953
- function _nextTick(fn) {
1954
- return setTimeout(fn, 0);
1955
- }
1956
- function _cancelNextTick(id) {
1957
- return clearTimeout(id);
1958
- }
1959
- if (documentExists) {
1960
- on(document, "touchmove", function(evt) {
1961
- if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
1962
- evt.preventDefault();
1963
- }
1964
- });
1965
- }
1966
- Sortable.utils = {
1967
- on,
1968
- off,
1969
- css,
1970
- find,
1971
- is: function is(el, selector) {
1972
- return !!closest(el, selector, el, false);
1973
- },
1974
- extend,
1975
- throttle,
1976
- closest,
1977
- toggleClass,
1978
- clone,
1979
- index,
1980
- nextTick: _nextTick,
1981
- cancelNextTick: _cancelNextTick,
1982
- detectDirection: _detectDirection,
1983
- getChild,
1984
- expando
1985
- };
1986
- Sortable.get = function(element) {
1987
- return element[expando];
1988
- };
1989
- Sortable.mount = function() {
1990
- for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
1991
- plugins2[_key] = arguments[_key];
1992
- }
1993
- if (plugins2[0].constructor === Array) plugins2 = plugins2[0];
1994
- plugins2.forEach(function(plugin) {
1995
- if (!plugin.prototype || !plugin.prototype.constructor) {
1996
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
1997
- }
1998
- if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);
1999
- PluginManager.mount(plugin);
2000
- });
2001
- };
2002
- Sortable.create = function(el, options) {
2003
- return new Sortable(el, options);
2004
- };
2005
- Sortable.version = version;
2006
- var autoScrolls = [];
2007
- var scrollEl;
2008
- var scrollRootEl;
2009
- var scrolling = false;
2010
- var lastAutoScrollX;
2011
- var lastAutoScrollY;
2012
- var touchEvt$1;
2013
- var pointerElemChangedInterval;
2014
- function AutoScrollPlugin() {
2015
- function AutoScroll() {
2016
- this.defaults = {
2017
- scroll: true,
2018
- forceAutoScrollFallback: false,
2019
- scrollSensitivity: 30,
2020
- scrollSpeed: 10,
2021
- bubbleScroll: true
2022
- };
2023
- for (var fn in this) {
2024
- if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
2025
- this[fn] = this[fn].bind(this);
2026
- }
2027
- }
2028
- }
2029
- AutoScroll.prototype = {
2030
- dragStarted: function dragStarted(_ref) {
2031
- var originalEvent = _ref.originalEvent;
2032
- if (this.sortable.nativeDraggable) {
2033
- on(document, "dragover", this._handleAutoScroll);
2034
- } else {
2035
- if (this.options.supportPointer) {
2036
- on(document, "pointermove", this._handleFallbackAutoScroll);
2037
- } else if (originalEvent.touches) {
2038
- on(document, "touchmove", this._handleFallbackAutoScroll);
2039
- } else {
2040
- on(document, "mousemove", this._handleFallbackAutoScroll);
2041
- }
2042
- }
2043
- },
2044
- dragOverCompleted: function dragOverCompleted(_ref2) {
2045
- var originalEvent = _ref2.originalEvent;
2046
- if (!this.options.dragOverBubble && !originalEvent.rootEl) {
2047
- this._handleAutoScroll(originalEvent);
2048
- }
2049
- },
2050
- drop: function drop3() {
2051
- if (this.sortable.nativeDraggable) {
2052
- off(document, "dragover", this._handleAutoScroll);
2053
- } else {
2054
- off(document, "pointermove", this._handleFallbackAutoScroll);
2055
- off(document, "touchmove", this._handleFallbackAutoScroll);
2056
- off(document, "mousemove", this._handleFallbackAutoScroll);
2057
- }
2058
- clearPointerElemChangedInterval();
2059
- clearAutoScrolls();
2060
- cancelThrottle();
2061
- },
2062
- nulling: function nulling() {
2063
- touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
2064
- autoScrolls.length = 0;
2065
- },
2066
- _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
2067
- this._handleAutoScroll(evt, true);
2068
- },
2069
- _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
2070
- var _this = this;
2071
- var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
2072
- touchEvt$1 = evt;
2073
- if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
2074
- autoScroll(evt, this.options, elem, fallback);
2075
- var ogElemScroller = getParentAutoScrollElement(elem, true);
2076
- if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
2077
- pointerElemChangedInterval && clearPointerElemChangedInterval();
2078
- pointerElemChangedInterval = setInterval(function() {
2079
- var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
2080
- if (newElem !== ogElemScroller) {
2081
- ogElemScroller = newElem;
2082
- clearAutoScrolls();
2083
- }
2084
- autoScroll(evt, _this.options, newElem, fallback);
2085
- }, 10);
2086
- lastAutoScrollX = x;
2087
- lastAutoScrollY = y;
2088
- }
2089
- } else {
2090
- if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
2091
- clearAutoScrolls();
2092
- return;
2093
- }
2094
- autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
2095
- }
2096
- }
2097
- };
2098
- return _extends(AutoScroll, {
2099
- pluginName: "scroll",
2100
- initializeByDefault: true
2101
- });
2102
- }
2103
- function clearAutoScrolls() {
2104
- autoScrolls.forEach(function(autoScroll2) {
2105
- clearInterval(autoScroll2.pid);
2106
- });
2107
- autoScrolls = [];
2108
- }
2109
- function clearPointerElemChangedInterval() {
2110
- clearInterval(pointerElemChangedInterval);
2111
- }
2112
- var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
2113
- if (!options.scroll) return;
2114
- 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();
2115
- var scrollThisInstance = false, scrollCustomFn;
2116
- if (scrollRootEl !== rootEl2) {
2117
- scrollRootEl = rootEl2;
2118
- clearAutoScrolls();
2119
- scrollEl = options.scroll;
2120
- scrollCustomFn = options.scrollFn;
2121
- if (scrollEl === true) {
2122
- scrollEl = getParentAutoScrollElement(rootEl2, true);
2123
- }
2124
- }
2125
- var layersOut = 0;
2126
- var currentParent = scrollEl;
2127
- do {
2128
- 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;
2129
- if (el === winScroller) {
2130
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
2131
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
2132
- } else {
2133
- canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
2134
- canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
2135
- }
2136
- var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
2137
- var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
2138
- if (!autoScrolls[layersOut]) {
2139
- for (var i = 0; i <= layersOut; i++) {
2140
- if (!autoScrolls[i]) {
2141
- autoScrolls[i] = {};
2142
- }
2143
- }
2144
- }
2145
- if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
2146
- autoScrolls[layersOut].el = el;
2147
- autoScrolls[layersOut].vx = vx;
2148
- autoScrolls[layersOut].vy = vy;
2149
- clearInterval(autoScrolls[layersOut].pid);
2150
- if (vx != 0 || vy != 0) {
2151
- scrollThisInstance = true;
2152
- autoScrolls[layersOut].pid = setInterval(function() {
2153
- if (isFallback && this.layer === 0) {
2154
- Sortable.active._onTouchMove(touchEvt$1);
2155
- }
2156
- var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
2157
- var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
2158
- if (typeof scrollCustomFn === "function") {
2159
- if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
2160
- return;
2161
- }
2162
- }
2163
- scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2164
- }.bind({
2165
- layer: layersOut
2166
- }), 24);
2167
- }
2168
- }
2169
- layersOut++;
2170
- } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
2171
- scrolling = scrollThisInstance;
2172
- }, 30);
2173
- var drop = function drop2(_ref) {
2174
- var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
2175
- if (!originalEvent) return;
2176
- var toSortable = putSortable2 || activeSortable;
2177
- hideGhostForTarget();
2178
- var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
2179
- var target = document.elementFromPoint(touch.clientX, touch.clientY);
2180
- unhideGhostForTarget();
2181
- if (toSortable && !toSortable.el.contains(target)) {
2182
- dispatchSortableEvent("spill");
2183
- this.onSpill({
2184
- dragEl: dragEl2,
2185
- putSortable: putSortable2
2186
- });
2187
- }
2188
- };
2189
- function Revert() {
2190
- }
2191
- Revert.prototype = {
2192
- startIndex: null,
2193
- dragStart: function dragStart(_ref2) {
2194
- var oldDraggableIndex2 = _ref2.oldDraggableIndex;
2195
- this.startIndex = oldDraggableIndex2;
2196
- },
2197
- onSpill: function onSpill(_ref3) {
2198
- var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
2199
- this.sortable.captureAnimationState();
2200
- if (putSortable2) {
2201
- putSortable2.captureAnimationState();
2202
- }
2203
- var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
2204
- if (nextSibling) {
2205
- this.sortable.el.insertBefore(dragEl2, nextSibling);
2206
- } else {
2207
- this.sortable.el.appendChild(dragEl2);
2208
- }
2209
- this.sortable.animateAll();
2210
- if (putSortable2) {
2211
- putSortable2.animateAll();
2212
- }
2213
- },
2214
- drop
2215
- };
2216
- _extends(Revert, {
2217
- pluginName: "revertOnSpill"
2218
- });
2219
- function Remove() {
2220
- }
2221
- Remove.prototype = {
2222
- onSpill: function onSpill2(_ref4) {
2223
- var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
2224
- var parentSortable = putSortable2 || this.sortable;
2225
- parentSortable.captureAnimationState();
2226
- dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
2227
- parentSortable.animateAll();
2228
- },
2229
- drop
2230
- };
2231
- _extends(Remove, {
2232
- pluginName: "removeOnSpill"
2233
- });
2234
- Sortable.mount(new AutoScrollPlugin());
2235
- Sortable.mount(Remove, Revert);
2236
- var sortable_esm_default = Sortable;
2237
-
2238
- // src/components/table/body-table.ts
2239
- var BodyTable = class extends ShoelaceElement {
2240
- constructor() {
2241
- super(...arguments);
2242
- this.expandRowByClick = false;
2243
- this.currentInsertIndex = null;
2244
- this.dropTarget = null;
2245
- this.tbodyRef = e2();
2246
- /** 拖拽开始时记录的原始展开状态 */
2247
- this.savedExpandedKeys = /* @__PURE__ */ new Set();
2248
- /** 正在拖拽的行 key */
2249
- this.draggingRowKey = null;
2250
- /** 树形拖拽时需要显示拖拽样式的行 key 集合(自身 + 子孙) */
2251
- this.draggingKeys = /* @__PURE__ */ new Set();
2252
- this.cleanupDragImage = () => {
2253
- var _a;
2254
- if ((_a = this.dragImageEl) == null ? void 0 : _a.parentNode) this.dragImageEl.parentNode.removeChild(this.dragImageEl);
2255
- this.dragImageEl = void 0;
2256
- };
2257
- // ===================== Sortable 事件处理 =====================
2258
- this.handleMove = (evt) => {
2259
- var _a, _b;
2260
- const tbody = this.tbodyRef.value;
2261
- if (!this.bodyRef.value || !tbody) return true;
2262
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2263
- if (!rows.length) return true;
2264
- if (this.isTreeMode()) {
2265
- if (!this.draggingRowKey && evt.item) {
2266
- this.draggingRowKey = (_a = evt.item.dataset.rowKey) != null ? _a : null;
2267
- }
2268
- const target = this.calcDragTarget(evt);
2269
- this.dropTarget = target;
2270
- this.requestUpdate();
2271
- return false;
2272
- }
2273
- const mouseY = evt.originalEvent.clientY;
2274
- const firstRect = rows[0].getBoundingClientRect();
2275
- const lastRect = rows[rows.length - 1].getBoundingClientRect();
2276
- let insertIndex = (_b = this.currentInsertIndex) != null ? _b : 0;
2277
- if (mouseY >= lastRect.bottom) {
2278
- insertIndex = rows.length;
2279
- } else if (mouseY <= firstRect.top) {
2280
- insertIndex = 0;
2281
- } else {
2282
- const related = evt.related;
2283
- if (related) {
2284
- const rect = related.getBoundingClientRect();
2285
- const relatedIndex = rows.indexOf(related);
2286
- if (relatedIndex >= 0) {
2287
- insertIndex = mouseY - rect.top > rect.height / 2 ? relatedIndex + 1 : relatedIndex;
2288
- }
2289
- }
2290
- }
2291
- this.currentInsertIndex = Math.max(0, Math.min(rows.length, insertIndex));
2292
- this.requestUpdate();
2293
- return false;
2294
- };
2295
- this.handleEnd = (evt) => {
2296
- var _a, _b, _c, _d;
2297
- if (this.isTreeMode()) {
2298
- const target = this.dropTarget;
2299
- this.restoreExpandForDrag();
2300
- if (!target || !this.draggingRowKey) {
2301
- this.resetTreeDragState();
2302
- return;
2303
- }
2304
- const dragKey = this.draggingRowKey;
2305
- const cfg = this.getTreeConfig();
2306
- const { removed, newData } = this.removeNodeFromTree(
2307
- this.commonProps.dataSource,
2308
- dragKey,
2309
- cfg.childrenKey
2310
- );
2311
- if (removed) {
2312
- const newDataSource = this.insertNodeToTree(newData, removed, target.rowKey, target.position, cfg.childrenKey);
2313
- (_b = (_a = this.commonProps).slRowReorder) == null ? void 0 : _b.call(_a, {
2314
- fromKey: dragKey,
2315
- toKey: target.rowKey,
2316
- rows: this.commonProps.dataSource,
2317
- newRows: newDataSource
2318
- });
2319
- }
2320
- this.resetTreeDragState();
2321
- return;
2322
- }
2323
- if (this.currentInsertIndex === null) return;
2324
- this.draggingBlock = { start: -1, end: -1 };
2325
- this.requestUpdate();
2326
- const rows = this.commonProps.tableInstance.getRowModel().rows;
2327
- const fromIndex = evt.oldDraggableIndex;
2328
- const toIndex = this.currentInsertIndex;
2329
- const fromKey = this.commonProps.adapter.getRecordKey(rows[fromIndex].original);
2330
- const newRows = [...rows.map((r2) => r2.original)];
2331
- const { start, end } = this.getSelectedBlock(rows, fromIndex);
2332
- if (start <= toIndex && toIndex <= end) {
2333
- this.currentInsertIndex = null;
2334
- return;
2335
- }
2336
- const block = newRows.splice(start, end - start + 1);
2337
- const targetIndex = start < toIndex ? toIndex - block.length : toIndex;
2338
- newRows.splice(targetIndex, 0, ...block);
2339
- const toRow = rows[Math.min(toIndex, rows.length - 1)];
2340
- const toKey = this.commonProps.adapter.getRecordKey(toRow.original);
2341
- (_d = (_c = this.commonProps).slRowReorder) == null ? void 0 : _d.call(_c, {
2342
- fromKey,
2343
- toKey,
2344
- rows: this.commonProps.dataSource,
2345
- newRows
2346
- });
2347
- this.currentInsertIndex = null;
2348
- this.cleanupDragImage();
2349
- };
2350
- this.handleChoose = (evt) => {
2351
- const rows = this.commonProps.tableInstance.getRowModel().rows;
2352
- const fromIndex = evt.oldDraggableIndex;
2353
- if (this.isTreeMode()) {
2354
- const dragRow = rows[fromIndex];
2355
- if (dragRow) {
2356
- this.draggingRowKey = this.commonProps.adapter.getRecordKey(dragRow.original);
2357
- this.draggingKeys = /* @__PURE__ */ new Set([this.draggingRowKey]);
2358
- this.collectSubRowKeys(dragRow, this.draggingKeys);
2359
- const keyToCollapse = this.draggingRowKey;
2360
- evt.item.addEventListener("dragstart", () => this.collapseForDrag(keyToCollapse), { once: true });
2361
- }
2362
- this.draggingBlock = { start: fromIndex, end: fromIndex };
2363
- this.requestUpdate();
2364
- return;
2365
- }
2366
- const { start, end } = this.getSelectedBlock(rows, fromIndex);
2367
- this.draggingBlock = { start, end };
2368
- this.requestUpdate();
2369
- if (start === end) return;
2370
- const dragImage = document.createElement("div");
2371
- dragImage.textContent = `\u62D6\u52A8 ${end - start + 1} \u884C\u6570\u636E`;
2372
- Object.assign(dragImage.style, {
2373
- position: "fixed",
2374
- padding: "10px 8px",
2375
- color: "#212121",
2376
- fontSize: "12px",
2377
- background: "#FFFFFF",
2378
- border: "1px solid rgba(217,217,217,1)",
2379
- boxShadow: "0px 6px 16px 3px rgba(0,0,0,0.08)",
2380
- borderRadius: "2px",
2381
- lineHeight: "21px"
2382
- });
2383
- document.body.appendChild(dragImage);
2384
- this.dragImageEl = dragImage;
2385
- evt.item.addEventListener(
2386
- "dragstart",
2387
- (e3) => {
2388
- var _a;
2389
- return (_a = e3.dataTransfer) == null ? void 0 : _a.setDragImage(dragImage, 10, 10);
2390
- },
2391
- { once: true }
2392
- );
2393
- };
2394
- // 未发生拖拽时清理,防止点击行但未拖拽时一直保持拖拽样式
2395
- this.handleUnchoose = () => {
2396
- var _a;
2397
- this.draggingBlock = { start: -1, end: -1 };
2398
- this.draggingKeys.clear();
2399
- (_a = this.cleanupDragImage) == null ? void 0 : _a.call(this);
2400
- this.requestUpdate();
2401
- };
2402
- this.renderTr = (row, styles = {}) => {
2403
- var _b;
2404
- const { rowSelectedMap, slRow, virtualized } = this.commonProps;
2405
- const rowProps = (slRow == null ? void 0 : slRow(row.original, row.index)) || {};
2406
- const _a = rowProps, { className, style: rowPropsStyle } = _a, rowRestProps = __objRest(_a, ["className", "style"]);
2407
- const rowClassName = typeof className === "string" ? className : "";
2408
- const rowKey = this.commonProps.adapter.getRecordKey(row.original);
2409
- const isDragging = this.draggingKeys.size > 0 ? this.draggingKeys.has(rowKey) : this.draggingBlock && row.index >= this.draggingBlock.start && row.index <= this.draggingBlock.end;
2410
- const rowClassMap = {
2411
- "table-row": true,
2412
- "table-row-selected": rowSelectedMap[row.id],
2413
- "table-row-dragging": !!isDragging,
2414
- [rowClassName]: true
2415
- };
2416
- const rowPropsStyleText = typeof rowPropsStyle === "string" ? rowPropsStyle : rowPropsStyle && typeof rowPropsStyle === "object" ? iterateStyles(rowPropsStyle) : void 0;
2417
- const rowStyles = [rowPropsStyleText, iterateStyles(styles)].filter(Boolean).join(";") || "";
2418
- return b`
2419
- <tr
2420
- class=${e(rowClassMap)}
2421
- role="table-row"
2422
- part="table-body-row"
2423
- data-row-key=${this.commonProps.adapter.getRecordKey(row.original)}
2424
- data-row-index=${row.index}
2425
- @click=${this.expandRowByClick ? () => row.getCanExpand() && row.toggleExpanded() : null}
2426
- style=${rowStyles}
2427
- ${spread_default(rowRestProps)}
2428
- >
2429
- ${c(
2430
- row.getVisibleCells(),
2431
- (cell) => cell.id,
2432
- (cell) => {
2433
- var _a2, _b2, _c, _e, _f;
2434
- const { column } = cell;
2435
- const columnDef = column.columnDef;
2436
- const align = (_a2 = columnDef.meta) == null ? void 0 : _a2.align;
2437
- const cellProps = ((_c = (_b2 = columnDef.meta) == null ? void 0 : _b2.slCell) == null ? void 0 : _c.call(_b2, cell.row.original, row.index)) || {};
2438
- const _d = cellProps, {
2439
- className: cellClassName,
2440
- style: cellStyle
2441
- } = _d, cellRestProps = __objRest(_d, [
2442
- "className",
2443
- "style"
2444
- ]);
2445
- const cellClassNameValue = typeof cellClassName === "string" ? cellClassName : "";
2446
- const { styles: pinningStyles, className: pinningClassName } = column.getIsPinned() ? getCommonPinningProps(column) : {};
2447
- const cellClassMap = {
2448
- "table-row-cell": true,
2449
- [pinningClassName]: pinningClassName !== void 0
2450
- };
2451
- if ((_e = columnDef.meta) == null ? void 0 : _e.className) {
2452
- cellClassMap[columnDef.meta.className] = true;
2453
- }
2454
- if (cellClassNameValue) {
2455
- cellClassMap[cellClassNameValue] = true;
2456
- }
2457
- const cellStyleText = typeof cellStyle === "string" ? cellStyle : cellStyle && typeof cellStyle === "object" ? iterateStyles(cellStyle) : void 0;
2458
- let cellStyleResult = [cellStyleText, pinningStyles].filter(Boolean).join(";");
2459
- if (virtualized) {
2460
- cellStyleResult += `;width: ${column.getSize()}px`;
2461
- }
2462
- return b` <td
2463
- role="gridcell"
2464
- part="table-body-cell"
2465
- class="${e(cellClassMap)}"
2466
- style=${cellStyleResult || ""}
2467
- ${spread_default(cellRestProps)}
2468
- >
2469
- <div
2470
- class="${e({
2471
- "table-cell-content": true,
2472
- "table-cell-ellipsis": !!((_f = columnDef.meta) == null ? void 0 : _f.ellipsis)
2473
- })}"
2474
- style=${o({
2475
- "text-align": align || void 0
2476
- })}
2477
- >
2478
- ${flexRender(columnDef.cell, cell.getContext())}
2479
- </div>
2480
- </td>`;
2481
- }
2482
- )}
2483
- </tr>
2484
- ${!this.commonProps.tree && ((_b = this.commonProps.expandProps) == null ? void 0 : _b.rowExpandable) && row.getIsExpanded() ? b`
2485
- <tr class="table-row table-expand-row" part="table-body-row">
2486
- <td colspan="${row.getVisibleCells().length}" class="table-row-cell" part="table-body-cell">
2487
- <slot name="${CUSTOM_ROW}-${this.commonProps.adapter.getRecordKey(row.original)}"></slot>
2488
- </td>
2489
- </tr>
2490
- ` : ""}
2491
- `;
2492
- };
2493
- }
2494
- // ===================== 获取树形数据相关信息 =====================
2495
- getTreeConfig() {
2496
- var _a, _b;
2497
- const { tree } = this.commonProps;
2498
- if (!tree) return null;
2499
- if (typeof tree === "object") {
2500
- const t = tree;
2501
- return {
2502
- childrenKey: (_a = t.childrenRecordName) != null ? _a : "children",
2503
- indentSize: (_b = t.indentSize) != null ? _b : 16
2504
- };
2505
- }
2506
- return { childrenKey: "children", indentSize: 16 };
2507
- }
2508
- isTreeMode() {
2509
- return this.getTreeConfig() !== null;
2510
- }
2511
- /** 获取选中行所有子孙的 key */
2512
- collectSubRowKeys(row, result) {
2513
- const subRows = row.subRows;
2514
- if (!(subRows == null ? void 0 : subRows.length)) return;
2515
- for (const sub of subRows) {
2516
- const key = this.commonProps.adapter.getRecordKey(sub.original);
2517
- if (key) result.add(key);
2518
- this.collectSubRowKeys(sub, result);
2519
- }
2520
- }
2521
- /** 获取行的深度(depth)—— 通过 tanstack row 的 depth */
2522
- getRowDepth(rowKey) {
2523
- var _a;
2524
- const allRows = this.commonProps.tableInstance.getRowModel().rows;
2525
- const row = allRows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === rowKey);
2526
- return (_a = row == null ? void 0 : row.depth) != null ? _a : 0;
2527
- }
2528
- getSelectedBlock(rows, fromIndex) {
2529
- const selected = this.commonProps.rowSelectedMap;
2530
- if (!selected[rows[fromIndex].id]) {
2531
- return { start: fromIndex, end: fromIndex };
2532
- }
2533
- let start = fromIndex;
2534
- let end = fromIndex;
2535
- while (start > 0 && selected[rows[start - 1].id]) {
2536
- start--;
2537
- }
2538
- while (end < rows.length - 1 && selected[rows[end + 1].id]) {
2539
- end++;
2540
- }
2541
- return { start, end };
2542
- }
2543
- // ===================== 指示线渲染 =====================
2544
- /**
2545
- * 获取指示线的 left 偏移
2546
- * - 有展开箭头的行:对齐箭头左边 = contentDiv.left + padding-inline-start
2547
- * - 无箭头的叶节点:对齐文字左边(取文字 span 左边)
2548
- */
2549
- getIndicatorLeft(targetRowEl, depth) {
2550
- var _a;
2551
- const cfg = this.getTreeConfig();
2552
- const indentSize = (_a = cfg == null ? void 0 : cfg.indentSize) != null ? _a : 16;
2553
- const tbody = this.tbodyRef.value;
2554
- if (!tbody) return depth * indentSize;
2555
- const tbodyRect = tbody.getBoundingClientRect();
2556
- const contentDiv = targetRowEl.querySelector(".tree-cell-content");
2557
- if (contentDiv) {
2558
- const hasExpandIcon = !!contentDiv.querySelector(".row-expand-icon");
2559
- if (hasExpandIcon) {
2560
- const paddingLeft = parseFloat(getComputedStyle(contentDiv).paddingInlineStart) || 0;
2561
- return contentDiv.getBoundingClientRect().left - tbodyRect.left + paddingLeft;
2562
- }
2563
- const textSpan = contentDiv.querySelector(".tree-cell-text");
2564
- const refEl = textSpan != null ? textSpan : contentDiv;
2565
- return refEl.getBoundingClientRect().left - tbodyRect.left;
2566
- }
2567
- return depth * indentSize;
2568
- }
2569
- renderIndicator() {
2570
- const tbody = this.tbodyRef.value;
2571
- if (!tbody) return "";
2572
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2573
- if (!rows.length) return "";
2574
- const isTree = this.isTreeMode();
2575
- if (isTree && this.dropTarget) {
2576
- const { rowIndex, position, depth } = this.dropTarget;
2577
- const row2 = rows[rowIndex];
2578
- if (!row2) return "";
2579
- if (position === "inside") {
2580
- return b`
2581
- <div
2582
- style="
2583
- position:absolute;
2584
- left:0;
2585
- right:0;
2586
- top:${row2.offsetTop}px;
2587
- height:${row2.offsetHeight}px;
2588
- border:2px solid #1677ff;
2589
- border-radius:2px;
2590
- pointer-events:none;
2591
- z-index:10;
2592
- box-sizing:border-box;
2593
- "
2594
- ></div>
2595
- `;
2596
- }
2597
- const top2 = position === "before" ? row2.offsetTop : row2.offsetTop + row2.offsetHeight;
2598
- const left = this.getIndicatorLeft(row2, depth);
2599
- return b`
2600
- <div
2601
- style="
2602
- position:absolute;
2603
- left:${left}px;
2604
- right:0;
2605
- top:${top2}px;
2606
- height:2px;
2607
- background:#1677ff;
2608
- pointer-events:none;
2609
- z-index:10;
2610
- "
2611
- ></div>
2612
- `;
2613
- }
2614
- if (this.currentInsertIndex === null) return "";
2615
- const index2 = Math.min(this.currentInsertIndex, rows.length - 1);
2616
- const row = rows[index2];
2617
- const top = this.currentInsertIndex >= rows.length ? row.offsetTop + row.offsetHeight : row.offsetTop;
2618
- return b`
2619
- <div
2620
- style="
2621
- position:absolute;
2622
- left:0;
2623
- right:0;
2624
- top:${top}px;
2625
- height:2px;
2626
- background:#1677ff;
2627
- pointer-events:none;
2628
- z-index:10;
2629
- "
2630
- ></div>
2631
- `;
2632
- }
2633
- // ===================== 树数据拖拽 =====================
2634
- /** 保存拖拽开始时的展开状态并收起子节点 */
2635
- collapseForDrag(dragRowKey) {
2636
- const tableInstance = this.commonProps.tableInstance;
2637
- const rows = tableInstance.getRowModel().rows;
2638
- const dragRow = rows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === dragRowKey);
2639
- if (!dragRow || !dragRow.getIsExpanded()) return;
2640
- this.savedExpandedKeys = /* @__PURE__ */ new Set();
2641
- const collectExpanded = (row) => {
2642
- const key = this.commonProps.adapter.getRecordKey(row.original);
2643
- if (row.getIsExpanded()) {
2644
- this.savedExpandedKeys.add(key);
2645
- }
2646
- const subRows = row.subRows;
2647
- if (subRows == null ? void 0 : subRows.length) {
2648
- subRows.forEach(collectExpanded);
2649
- }
2650
- };
2651
- collectExpanded(dragRow);
2652
- dragRow.toggleExpanded(false);
2653
- }
2654
- /** 拖拽结束后恢复展开状态 */
2655
- restoreExpandForDrag() {
2656
- if (!this.savedExpandedKeys.size) return;
2657
- const tableInstance = this.commonProps.tableInstance;
2658
- const rows = tableInstance.getRowModel().rows;
2659
- for (const key of this.savedExpandedKeys) {
2660
- const row = rows.find((r2) => this.commonProps.adapter.getRecordKey(r2.original) === key);
2661
- if (row && !row.getIsExpanded()) {
2662
- row.toggleExpanded(true);
2663
- }
2664
- }
2665
- this.savedExpandedKeys.clear();
2666
- }
2667
- /** 计算树型模式下的 drag 目标 */
2668
- calcDragTarget(evt) {
2669
- const tbody = this.tbodyRef.value;
2670
- if (!tbody) return null;
2671
- const rows = Array.from(tbody.querySelectorAll("tr[data-row-key]"));
2672
- if (!rows.length) return null;
2673
- const mouseY = evt.originalEvent.clientY;
2674
- const firstRect = rows[0].getBoundingClientRect();
2675
- const lastRect = rows[rows.length - 1].getBoundingClientRect();
2676
- let targetRowEl = null;
2677
- let rowIndex = -1;
2678
- if (mouseY <= firstRect.top) {
2679
- targetRowEl = rows[0];
2680
- rowIndex = 0;
2681
- } else if (mouseY >= lastRect.bottom) {
2682
- targetRowEl = rows[rows.length - 1];
2683
- rowIndex = rows.length - 1;
2684
- } else {
2685
- for (let i = 0; i < rows.length; i++) {
2686
- const rect2 = rows[i].getBoundingClientRect();
2687
- if (mouseY >= rect2.top && mouseY < rect2.bottom) {
2688
- targetRowEl = rows[i];
2689
- rowIndex = i;
2690
- break;
2691
- }
2692
- }
2693
- }
2694
- if (!targetRowEl || rowIndex < 0) return null;
2695
- const rect = targetRowEl.getBoundingClientRect();
2696
- const offset = mouseY - rect.top;
2697
- const rowHeight = rect.height;
2698
- const targetRowKey = targetRowEl.dataset.rowKey;
2699
- let position;
2700
- if (offset < rowHeight * 0.35) {
2701
- position = "before";
2702
- } else if (offset > rowHeight * 0.65) {
2703
- position = "after";
2704
- } else {
2705
- position = "inside";
2706
- }
2707
- const depth = this.getRowDepth(targetRowKey);
2708
- return { rowIndex, position, rowKey: targetRowKey, depth };
2709
- }
2710
- // ===================== 树型数据重排 =====================
2711
- /** 从树型数据中移除指定 key 的节点 */
2712
- removeNodeFromTree(data, key, childrenKey) {
2713
- var _a;
2714
- let removed = null;
2715
- const newData = [];
2716
- for (const node of data) {
2717
- if (this.commonProps.adapter.getRecordKey(node) === key) {
2718
- removed = node;
2719
- continue;
2720
- }
2721
- const children = (_a = node[childrenKey]) != null ? _a : [];
2722
- if (children.length && !removed) {
2723
- const result = this.removeNodeFromTree(children, key, childrenKey);
2724
- if (result.removed) {
2725
- removed = result.removed;
2726
- newData.push(__spreadProps(__spreadValues({}, node), { [childrenKey]: result.newData }));
2727
- continue;
2728
- }
2729
- }
2730
- newData.push(node);
2731
- }
2732
- return { removed, newData };
2733
- }
2734
- /** 将节点插入树型数据中指定位置 */
2735
- insertNodeToTree(data, nodeToInsert, targetKey, position, childrenKey) {
2736
- return data.flatMap((node) => {
2737
- var _a, _b;
2738
- if (this.commonProps.adapter.getRecordKey(node) === targetKey) {
2739
- if (position === "before") return [nodeToInsert, node];
2740
- if (position === "after") return [node, nodeToInsert];
2741
- return [__spreadProps(__spreadValues({}, node), { [childrenKey]: [...(_a = node[childrenKey]) != null ? _a : [], nodeToInsert] })];
2742
- }
2743
- const children = (_b = node[childrenKey]) != null ? _b : [];
2744
- if (children.length) {
2745
- return [__spreadProps(__spreadValues({}, node), { [childrenKey]: this.insertNodeToTree(children, nodeToInsert, targetKey, position, childrenKey) })];
2746
- }
2747
- return [node];
2748
- });
2749
- }
2750
- /** 重置树形拖拽相关状态 */
2751
- resetTreeDragState() {
2752
- this.dropTarget = null;
2753
- this.draggingBlock = { start: -1, end: -1 };
2754
- this.draggingRowKey = null;
2755
- this.draggingKeys.clear();
2756
- this.requestUpdate();
2757
- this.cleanupDragImage();
2758
- }
2759
- initSortable() {
2760
- var _a, _b;
2761
- const { rowDrag, virtualized } = this.commonProps;
2762
- if (!rowDrag || virtualized) {
2763
- (_a = this.sortable) == null ? void 0 : _a.destroy();
2764
- this.sortable = void 0;
2765
- return;
2766
- }
2767
- const el = this.tbodyRef.value;
2768
- if (!el) return;
2769
- (_b = this.sortable) == null ? void 0 : _b.destroy();
2770
- this.sortable = sortable_esm_default.create(el, {
2771
- animation: 0,
2772
- draggable: "tr[data-row-key]",
2773
- handle: ".row-drag-handle",
2774
- onChoose: this.handleChoose,
2775
- onMove: this.handleMove,
2776
- onEnd: this.handleEnd,
2777
- onUnchoose: this.handleUnchoose
2778
- });
2779
- }
2780
- firstUpdated() {
2781
- this.initSortable();
2782
- }
2783
- render() {
2784
- var _a, _b, _c, _d, _e;
2785
- const virtualizer = (_a = this.rowVirtualizerController) == null ? void 0 : _a.getVirtualizer();
2786
- const { tableScroll, handleBodyScroll, bordered, tableInstance, virtualized, rowDrag } = this.commonProps;
2787
- const { x, y } = tableScroll || {};
2788
- const columnResizeable = tableInstance.getAllLeafColumns().some((c2) => c2.getCanResize());
2789
- const style = {
2790
- "max-width": x ? getTableRect(x) : "100%",
2791
- "max-height": y ? getTableRect(y) : "100%",
2792
- width: columnResizeable && `${tableInstance.getTotalSize()}px`
2793
- };
2794
- const { rows } = tableInstance.getRowModel();
2795
- return b` <div
2796
- style=${iterateStyles(style)}
2797
- class="table-body"
2798
- part="table-body"
2799
- ${n2(this.bodyRef)}
2800
- @scroll=${handleBodyScroll}
2801
- >
2802
- <table
2803
- class="${e({
2804
- table: true,
2805
- "table-bordered": bordered,
2806
- "table-fixed": !columnResizeable
2807
- })}"
2808
- style=${o({
2809
- height: virtualized && y ? `${virtualizer == null ? void 0 : virtualizer.getTotalSize()}px` : "100%"
2810
- })}
2811
- >
2812
- ${renderColGroup(tableInstance)}
2813
- <tbody class="table-tbody" style="position: relative;" ${n2(this.tbodyRef)}>
2814
- ${virtualized ? c(
2815
- (_c = (_b = this.rowVirtualizerController) == null ? void 0 : _b.getVirtualizer().getVirtualItems()) != null ? _c : [],
2816
- (item) => item.key,
2817
- (item) => {
2818
- const row = rows[item.index];
2819
- return this.renderTr(row, {
2820
- transform: `translateY(${item.start}px)`,
2821
- position: "absolute",
2822
- width: "100%"
2823
- });
2824
- }
2825
- ) : c(
2826
- rows,
2827
- (row) => row.id,
2828
- (row) => this.renderTr(row)
2829
- )}
2830
- ${rowDrag ? b`<tr class="table-bottom-placeholder" style="height: 2px;padding: 0;border: none;">
2831
- <td colspan="${(_e = (_d = rows[0]) == null ? void 0 : _d.getVisibleCells().length) != null ? _e : 1}"></td>
2832
- </tr>` : ""}
2833
- ${this.renderIndicator()}
2834
- </tbody>
2835
- </table>
2836
- ${this.emptyTemplate}
2837
- </div>
2838
- <style>
2839
- .table-body {
2840
- overflow: auto;
2841
- width: 100%;
2842
- box-sizing: border-box;
2843
- direction: var(--sl-c-table-direction);
2844
- }
2845
- .table-row {
2846
- display: table-row;
2847
- }
2848
- .table-row-dragging {
2849
- opacity: 0.35;
2850
- }
2851
- .row-drag-handle {
2852
- opacity: 0;
2853
- visibility: hidden;
2854
- pointer-events: none;
2855
- transition: opacity 120ms ease-in-out;
2856
- }
2857
- .table-row:hover .row-drag-handle,
2858
- .table-row.table-row-dragging .row-drag-handle {
2859
- opacity: 1;
2860
- visibility: visible;
2861
- pointer-events: auto;
2862
- }
2863
- .table-row > .table-row-cell {
2864
- height: var(--sl-table-cell-line-height);
2865
- font-size: var(--sl-table-font-size);
2866
- padding: 0 var(--sl-table-cell-padding);
2867
- box-sizing: border-box;
2868
- border-inline-start: none;
2869
- border-inline-end: none;
2870
- border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2871
- overflow-wrap: break-word;
2872
- color: var(--sl-table-cell-color);
2873
- background-color: var(--sl-table-cell-background);
2874
- vertical-align: middle;
2875
- }
2876
- .table-row.table-expand-row > .table-row-cell {
2877
- background-color: var(--sl-table-expand-row-background);
2878
- }
2879
- .table-row:hover > .table-row-cell {
2880
- background: var(--sl-table-row-background-hover);
2881
- }
2882
- :where(.table.table-bordered) > tbody.table-tbody > tr.table-row > td.table-row-cell {
2883
- border-inline-end: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2884
- }
2885
- .table-row.table-row-selected > .table-row-cell {
2886
- background-color: var(--sl-table-row-background-active);
2887
- }
2888
- .table-row.table-row-selected:hover > .table-row-cell {
2889
- background-color: hsl(212.29999999999995, 100%, 95.5%);
2890
- }
2891
- .row-expand-icon:hover {
2892
- color: #5582f3;
2893
- }
2894
- .table-placeholder {
2895
- position: sticky;
2896
- left: 0;
2897
- z-index: 1;
2898
- padding: var(--sl-table-default-text-margin-vertical);
2899
- color: var(--semi-color-text-2);
2900
- font-size: 14px;
2901
- text-align: center;
2902
- background: transparent;
2903
- color: var(--sl-table-default-text-color);
2904
- border-bottom: var(--sl-table-cell-border-width) solid var(--sl-table-cell-border);
2905
- border-inline-start: none;
2906
- }
2907
- .table-cell-content {
2908
- line-height: var(--sl-line-height-dense);
2909
- word-break: break-word;
2910
- }
2911
- </style>`;
2912
- }
2913
- };
2914
- BodyTable.styles = [tableCommonCss];
2915
- __decorateClass([
2916
- n({ type: Object })
2917
- ], BodyTable.prototype, "bodyRef", 2);
2918
- __decorateClass([
2919
- n({ type: Function })
2920
- ], BodyTable.prototype, "emptyTemplate", 2);
2921
- __decorateClass([
2922
- n({ type: Object })
2923
- ], BodyTable.prototype, "commonProps", 2);
2924
- __decorateClass([
2925
- n({ type: Boolean })
2926
- ], BodyTable.prototype, "expandRowByClick", 2);
2927
- __decorateClass([
2928
- n({ type: Object })
2929
- ], BodyTable.prototype, "rowVirtualizerController", 2);
2930
- __decorateClass([
2931
- r()
2932
- ], BodyTable.prototype, "currentInsertIndex", 2);
2933
- __decorateClass([
2934
- r()
2935
- ], BodyTable.prototype, "draggingBlock", 2);
2936
- __decorateClass([
2937
- r()
2938
- ], BodyTable.prototype, "dropTarget", 2);
2939
- BodyTable.define("sl-table-body-table");
2940
-
2941
- export {
2942
- BodyTable
2943
- };
2944
- /*! Bundled license information:
2945
-
2946
- sortablejs/modular/sortable.esm.js:
2947
- (**!
2948
- * Sortable 1.15.7
2949
- * @author RubaXa <trash@rubaxa.org>
2950
- * @author owenm <owen23355@gmail.com>
2951
- * @license MIT
2952
- *)
2953
- */