@kdcloudjs/shoelace 1.0.0 → 1.0.1

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 (1406) hide show
  1. package/cdn/chunks/chunk.226ONJUG.js +11 -0
  2. package/cdn/chunks/chunk.22IC7IUA.js +11 -0
  3. package/cdn/chunks/chunk.22NGLBNU.js +21 -0
  4. package/cdn/chunks/chunk.23MCZEGK.js +199 -0
  5. package/cdn/chunks/chunk.2CPXNGW5.js +11 -0
  6. package/cdn/chunks/chunk.2KS6USIH.js +25 -0
  7. package/cdn/chunks/chunk.2S75J74A.js +25 -0
  8. package/cdn/chunks/chunk.2XVSGMNG.js +52 -0
  9. package/cdn/chunks/chunk.2ZX64SKX.js +11 -0
  10. package/cdn/chunks/chunk.3B3UZOGF.js +11 -0
  11. package/cdn/chunks/chunk.3EU3NKJA.js +11 -0
  12. package/cdn/chunks/chunk.3GJC7TMV.js +11 -0
  13. package/cdn/chunks/chunk.3IMH633K.js +155 -0
  14. package/cdn/chunks/chunk.3JWTFXPV.js +25 -0
  15. package/cdn/chunks/chunk.3KZ6RFET.js +77 -0
  16. package/cdn/chunks/chunk.3PSXUWXP.js +11 -0
  17. package/cdn/chunks/chunk.3T2QDML2.js +25 -0
  18. package/cdn/chunks/chunk.3XBUVYUW.js +21 -0
  19. package/cdn/chunks/chunk.3XFODJZM.js +57 -0
  20. package/cdn/chunks/chunk.3YSVZYWN.js +113 -0
  21. package/cdn/chunks/chunk.442W7MG3.js +21 -0
  22. package/cdn/chunks/chunk.4APTP36J.js +11 -0
  23. package/cdn/chunks/chunk.4HIOUPRK.js +133 -0
  24. package/cdn/chunks/chunk.4S4N7F3P.js +28 -0
  25. package/cdn/chunks/chunk.5HPN2TND.js +294 -0
  26. package/cdn/chunks/chunk.5Q7XKAIA.js +11 -0
  27. package/cdn/chunks/chunk.5QXV3Z6R.js +11 -0
  28. package/cdn/chunks/chunk.622UIAVD.js +63 -0
  29. package/cdn/chunks/chunk.62VUCHSP.js +90 -0
  30. package/cdn/chunks/chunk.63T4MBT4.js +11 -0
  31. package/cdn/chunks/chunk.6BUKA7G2.js +28 -0
  32. package/cdn/chunks/chunk.6NB6Z2L5.js +24 -0
  33. package/cdn/chunks/chunk.6OUPSNV2.js +26 -0
  34. package/cdn/chunks/chunk.6QBRHNIF.js +0 -0
  35. package/cdn/chunks/chunk.6SC2W2LS.js +11 -0
  36. package/cdn/chunks/chunk.6W732TKY.js +11 -0
  37. package/cdn/chunks/chunk.6ZFFF7L3.js +11 -0
  38. package/cdn/chunks/chunk.7DBKAVCA.js +76 -0
  39. package/cdn/chunks/chunk.7EV36LF3.js +122 -0
  40. package/cdn/chunks/chunk.7JDCQAK6.js +124 -0
  41. package/cdn/chunks/chunk.7JHYGHG4.js +84 -0
  42. package/cdn/chunks/chunk.7Q2ZB5N6.js +218 -0
  43. package/cdn/chunks/chunk.AHY6XMBG.js +11 -0
  44. package/cdn/chunks/chunk.AQ5Q7YJ7.js +79 -0
  45. package/cdn/chunks/chunk.BHLKMQL6.js +25 -0
  46. package/cdn/chunks/chunk.BIHUFVN4.js +393 -0
  47. package/cdn/chunks/chunk.BMW7LFRP.js +27 -0
  48. package/cdn/chunks/chunk.BNLFOWI3.js +21 -0
  49. package/cdn/chunks/chunk.BO4D3RTO.js +77 -0
  50. package/cdn/chunks/chunk.BPSOFJF5.js +27 -0
  51. package/cdn/chunks/chunk.C4QDDRYA.js +11 -0
  52. package/cdn/chunks/chunk.CEPTD6VD.js +11 -0
  53. package/cdn/chunks/chunk.CG7L2MKT.js +11 -0
  54. package/cdn/chunks/chunk.CMAW3ADL.js +89 -0
  55. package/cdn/chunks/chunk.CVIVQTQI.js +21 -0
  56. package/cdn/chunks/chunk.CZCSAYQZ.js +124 -0
  57. package/cdn/chunks/chunk.D6WQCFRA.js +139 -0
  58. package/cdn/chunks/chunk.DA7FG377.js +11 -0
  59. package/cdn/chunks/chunk.DEAET7BJ.js +24 -0
  60. package/cdn/chunks/chunk.DG53SAEQ.js +26 -0
  61. package/cdn/chunks/chunk.DRKQ5M3Y.js +11 -0
  62. package/cdn/chunks/chunk.DZDG6YBL.js +11 -0
  63. package/cdn/chunks/chunk.EB6TUKLT.js +105 -0
  64. package/cdn/chunks/chunk.EDPLUZCR.js +29 -0
  65. package/cdn/chunks/chunk.EERTAC3E.js +27 -0
  66. package/cdn/chunks/chunk.EKRRYXTN.js +160 -0
  67. package/cdn/chunks/chunk.EKYW6JMS.js +369 -0
  68. package/cdn/chunks/chunk.ERY5FHKG.js +99 -0
  69. package/cdn/chunks/chunk.EZV6VEFR.js +11 -0
  70. package/cdn/chunks/chunk.F2TMXANM.js +27 -0
  71. package/cdn/chunks/chunk.FBET7QPS.js +11 -0
  72. package/cdn/chunks/chunk.FBPU4DQV.js +457 -0
  73. package/cdn/chunks/chunk.FGRSPVKY.js +39 -0
  74. package/cdn/chunks/chunk.FIXOK33V.js +29 -0
  75. package/cdn/chunks/chunk.FTAZM4E2.js +156 -0
  76. package/cdn/chunks/chunk.FUTLAEWK.js +21 -0
  77. package/cdn/chunks/chunk.G2EACEEP.js +120 -0
  78. package/cdn/chunks/chunk.G2HIVVML.js +95 -0
  79. package/cdn/chunks/chunk.G6TN7LQ2.js +11 -0
  80. package/cdn/chunks/chunk.GGN4C6HZ.js +301 -0
  81. package/cdn/chunks/chunk.GGRJWHNG.js +26 -0
  82. package/cdn/chunks/chunk.GHUITQPC.js +11 -0
  83. package/cdn/chunks/chunk.GOIUZPCV.js +11 -0
  84. package/cdn/chunks/chunk.GRGYWQPR.js +21 -0
  85. package/cdn/chunks/chunk.H6I32WY7.js +217 -0
  86. package/cdn/chunks/chunk.H6LKMMWQ.js +123 -0
  87. package/cdn/chunks/chunk.H7BI4ZNH.js +27 -0
  88. package/cdn/chunks/chunk.HA5BTJ4F.js +175 -0
  89. package/cdn/chunks/chunk.HAODUULM.js +11 -0
  90. package/cdn/chunks/chunk.HB2PWSYM.js +21 -0
  91. package/cdn/chunks/chunk.HDEJDOVP.js +21 -0
  92. package/cdn/chunks/chunk.HDHWBI5F.js +726 -0
  93. package/cdn/chunks/chunk.HEBGUDU6.js +1992 -0
  94. package/cdn/chunks/chunk.HMNXDAS4.js +36 -0
  95. package/cdn/chunks/chunk.HNQO3DOA.js +192 -0
  96. package/cdn/chunks/chunk.HNUXU3UF.js +129 -0
  97. package/cdn/chunks/chunk.HX3E4AEE.js +244 -0
  98. package/cdn/chunks/chunk.I6HYCGWH.js +11 -0
  99. package/cdn/chunks/chunk.ID7XB2CS.js +5955 -0
  100. package/cdn/chunks/chunk.ILWAKT36.js +116 -0
  101. package/cdn/chunks/chunk.ISWER3QR.js +25 -0
  102. package/cdn/chunks/chunk.IUQQ6GMY.js +99 -0
  103. package/cdn/chunks/chunk.J4EOEOJZ.js +588 -0
  104. package/cdn/chunks/chunk.J4INKYOP.js +11 -0
  105. package/cdn/chunks/chunk.J5OZABHC.js +269 -0
  106. package/cdn/chunks/chunk.JBFIWJPT.js +11 -0
  107. package/cdn/chunks/chunk.JDPUQZOS.js +2970 -0
  108. package/cdn/chunks/chunk.JDXOFWB5.js +24 -0
  109. package/cdn/chunks/chunk.JFVPK52D.js +21 -0
  110. package/cdn/chunks/chunk.JU7LY4IB.js +21 -0
  111. package/cdn/chunks/chunk.JVCSWDLM.js +11 -0
  112. package/cdn/chunks/chunk.K4WWLPCH.js +21 -0
  113. package/cdn/chunks/chunk.K7DBR5HB.js +69 -0
  114. package/cdn/chunks/chunk.KBT5YSFI.js +11 -0
  115. package/cdn/chunks/chunk.KHPKKBWY.js +11 -0
  116. package/cdn/chunks/chunk.KMJ37RZ3.js +177 -0
  117. package/cdn/chunks/chunk.KRLLUWQA.js +11 -0
  118. package/cdn/chunks/chunk.KSB7EI3T.js +46 -0
  119. package/cdn/chunks/chunk.KVJCXT5A.js +26 -0
  120. package/cdn/chunks/chunk.KWTBRZB7.js +823 -0
  121. package/cdn/chunks/chunk.KXW2ZRHD.js +21 -0
  122. package/cdn/chunks/chunk.L33NCTPR.js +28 -0
  123. package/cdn/chunks/chunk.L5A357JC.js +11 -0
  124. package/cdn/chunks/chunk.L5M4YLQO.js +11 -0
  125. package/cdn/chunks/chunk.L633QNYU.js +238 -0
  126. package/cdn/chunks/chunk.L667GGYI.js +11 -0
  127. package/cdn/chunks/chunk.L6S5JFT3.js +348 -0
  128. package/cdn/chunks/chunk.LELHXY6T.js +11 -0
  129. package/cdn/chunks/chunk.LEUSQWMG.js +75 -0
  130. package/cdn/chunks/chunk.LGL63TDV.js +167 -0
  131. package/cdn/chunks/chunk.LU3LDDDN.js +116 -0
  132. package/cdn/chunks/chunk.LVPDFPZK.js +380 -0
  133. package/cdn/chunks/chunk.LYWATFDL.js +11 -0
  134. package/cdn/chunks/chunk.M3ZZEQUI.js +281 -0
  135. package/cdn/chunks/chunk.M4G4P3LI.js +24 -0
  136. package/cdn/chunks/chunk.MB7NG6ZJ.js +21 -0
  137. package/cdn/chunks/chunk.MDNI3GQL.js +235 -0
  138. package/cdn/chunks/chunk.MF7Y3OSS.js +11 -0
  139. package/cdn/chunks/chunk.MKMSCVMU.js +11 -0
  140. package/cdn/chunks/chunk.MNQ7FLV4.js +21 -0
  141. package/cdn/chunks/chunk.MSERHJOV.js +24 -0
  142. package/cdn/chunks/chunk.MYPTC2PB.js +257 -0
  143. package/cdn/chunks/chunk.N4EKR2VN.js +115 -0
  144. package/cdn/chunks/chunk.N6WEYSEP.js +11 -0
  145. package/cdn/chunks/chunk.NJ4PF242.js +21 -0
  146. package/cdn/chunks/chunk.NMYOJZQU.js +86 -0
  147. package/cdn/chunks/chunk.O77G76YD.js +11 -0
  148. package/cdn/chunks/chunk.OAYHV2L6.js +11 -0
  149. package/cdn/chunks/chunk.OBCVX7TC.js +29 -0
  150. package/cdn/chunks/chunk.OBLU4MW2.js +28 -0
  151. package/cdn/chunks/chunk.ODA6ZTZX.js +21 -0
  152. package/cdn/chunks/chunk.ODIP4DDO.js +28 -0
  153. package/cdn/chunks/chunk.OK4D7NRD.js +11 -0
  154. package/cdn/chunks/chunk.OS2IKKCL.js +246 -0
  155. package/cdn/chunks/chunk.OS3MLQPE.js +25 -0
  156. package/cdn/chunks/chunk.OYTG3ARK.js +56 -0
  157. package/cdn/chunks/chunk.OZJOM3TM.js +24 -0
  158. package/cdn/chunks/chunk.PDQFLSFT.js +300 -0
  159. package/cdn/chunks/chunk.PMLIP3JN.js +25 -0
  160. package/cdn/chunks/chunk.PPJ6H72V.js +173 -0
  161. package/cdn/chunks/chunk.PPT46XMC.js +28 -0
  162. package/cdn/chunks/chunk.PVXRWHWY.js +21 -0
  163. package/cdn/chunks/chunk.Q3XIGDZS.js +110 -0
  164. package/cdn/chunks/chunk.Q5AH4UIF.js +11 -0
  165. package/cdn/chunks/chunk.QA6MLBWA.js +11 -0
  166. package/cdn/chunks/chunk.QB4EPYJW.js +137 -0
  167. package/cdn/chunks/chunk.QCG447G3.js +144 -0
  168. package/cdn/chunks/chunk.QEFKSE53.js +404 -0
  169. package/cdn/chunks/chunk.QNLIKQUE.js +11 -0
  170. package/cdn/chunks/chunk.QRSLNIH2.js +24 -0
  171. package/cdn/chunks/chunk.QULHCJHI.js +382 -0
  172. package/cdn/chunks/chunk.QXMM33J4.js +189 -0
  173. package/cdn/chunks/chunk.QYUCN4RV.js +338 -0
  174. package/cdn/chunks/chunk.RC46L6CZ.js +55 -0
  175. package/cdn/chunks/chunk.ROP2X3P5.js +11 -0
  176. package/cdn/chunks/chunk.RQ3CQZHW.js +22 -0
  177. package/cdn/chunks/chunk.RW5BTS62.js +21 -0
  178. package/cdn/chunks/chunk.RZXX2PIL.js +119 -0
  179. package/cdn/chunks/chunk.S63QOIIY.js +100 -0
  180. package/cdn/chunks/chunk.S7QWUQFL.js +97 -0
  181. package/cdn/chunks/chunk.SD4FRGL4.js +21 -0
  182. package/cdn/chunks/chunk.SVODYTFP.js +803 -0
  183. package/cdn/chunks/chunk.SWNGI3OG.js +24 -0
  184. package/cdn/chunks/chunk.SY37VGFH.js +302 -0
  185. package/cdn/chunks/chunk.T6S5UVBV.js +21 -0
  186. package/cdn/chunks/chunk.TF3IWFSX.js +26 -0
  187. package/cdn/chunks/chunk.TGVOO6UZ.js +304 -0
  188. package/cdn/chunks/chunk.TJG3NFQI.js +438 -0
  189. package/cdn/chunks/chunk.TK4U7QEB.js +11 -0
  190. package/cdn/chunks/chunk.TPPMZ4WH.js +44 -0
  191. package/cdn/chunks/chunk.TXS3LYDO.js +11 -0
  192. package/cdn/chunks/chunk.UIWORSK6.js +21 -0
  193. package/cdn/chunks/chunk.UJTSFPXW.js +33 -0
  194. package/cdn/chunks/chunk.UK7F6JLK.js +81 -0
  195. package/cdn/chunks/chunk.UL6GMPQV.js +11 -0
  196. package/cdn/chunks/chunk.URQKEUC4.js +21 -0
  197. package/cdn/chunks/chunk.V722FZYB.js +25 -0
  198. package/cdn/chunks/chunk.VIUGKMKS.js +24 -0
  199. package/cdn/chunks/chunk.VPXWS4TL.js +5847 -0
  200. package/cdn/chunks/chunk.VQTVO2WG.js +24 -0
  201. package/cdn/chunks/chunk.W3D3IGS2.js +24 -0
  202. package/cdn/chunks/chunk.W67ISUBG.js +11 -0
  203. package/cdn/chunks/chunk.WAQCCPIL.js +21 -0
  204. package/cdn/chunks/chunk.WC6ZL4DF.js +11 -0
  205. package/cdn/chunks/chunk.WE4USEQU.js +126 -0
  206. package/cdn/chunks/chunk.WFJE4JXV.js +65 -0
  207. package/cdn/chunks/chunk.WID3TCT6.js +33 -0
  208. package/cdn/chunks/chunk.WIVODHCF.js +293 -0
  209. package/cdn/chunks/chunk.WLZJQXPC.js +162 -0
  210. package/cdn/chunks/chunk.WOQC6KFO.js +123 -0
  211. package/cdn/chunks/chunk.WQDITCLK.js +381 -0
  212. package/cdn/chunks/chunk.WQTJ57OT.js +22 -0
  213. package/cdn/chunks/chunk.WXUIXCKY.js +11 -0
  214. package/cdn/chunks/chunk.X4ATDEXB.js +186 -0
  215. package/cdn/chunks/chunk.XBPX2AGN.js +316 -0
  216. package/cdn/chunks/chunk.XHQNG4WK.js +49 -0
  217. package/cdn/chunks/chunk.XKAJX7FM.js +24 -0
  218. package/cdn/chunks/chunk.XMUP74YS.js +51 -0
  219. package/cdn/chunks/chunk.XYBIF6PM.js +11 -0
  220. package/cdn/chunks/chunk.Y2LQHEJK.js +504 -0
  221. package/cdn/chunks/chunk.Y7NZJG4L.js +21 -0
  222. package/cdn/chunks/chunk.YHCD3DEM.js +979 -0
  223. package/cdn/chunks/chunk.YQKM65BK.js +29 -0
  224. package/cdn/chunks/chunk.YWTCA4Q6.js +11 -0
  225. package/cdn/chunks/chunk.Z7UUV7BS.js +188 -0
  226. package/cdn/chunks/chunk.ZCAFNMXU.js +11 -0
  227. package/cdn/chunks/chunk.ZPX6CR56.js +11 -0
  228. package/cdn/chunks/chunk.ZSMB7A2Y.js +24 -0
  229. package/cdn/chunks/chunk.ZUZEZOVI.js +1881 -0
  230. package/cdn/chunks/chunk.ZXNQUYIE.js +24 -0
  231. package/cdn/chunks/chunk.ZXUNDYLD.js +101 -0
  232. package/cdn/components/alert/alert.component.js +12 -11
  233. package/cdn/components/alert/alert.js +13 -12
  234. package/cdn/components/alert/alert.styles.js +2 -2
  235. package/cdn/components/animated-image/animated-image.component.js +6 -5
  236. package/cdn/components/animated-image/animated-image.js +7 -6
  237. package/cdn/components/animated-image/animated-image.styles.js +1 -1
  238. package/cdn/components/animation/animation.component.js +6 -5
  239. package/cdn/components/animation/animation.js +7 -6
  240. package/cdn/components/animation/animation.styles.js +1 -1
  241. package/cdn/components/animation/animations.js +2 -2
  242. package/cdn/components/avatar/avatar.component.js +6 -5
  243. package/cdn/components/avatar/avatar.js +7 -6
  244. package/cdn/components/avatar/avatar.styles.js +1 -1
  245. package/cdn/components/badge/badge.component.js +5 -4
  246. package/cdn/components/badge/badge.js +6 -5
  247. package/cdn/components/badge/badge.styles.js +2 -2
  248. package/cdn/components/breadcrumb/breadcrumb.component.js +6 -5
  249. package/cdn/components/breadcrumb/breadcrumb.js +7 -6
  250. package/cdn/components/breadcrumb/breadcrumb.styles.js +1 -1
  251. package/cdn/components/breadcrumb-item/breadcrumb-item.component.js +5 -4
  252. package/cdn/components/breadcrumb-item/breadcrumb-item.js +6 -5
  253. package/cdn/components/breadcrumb-item/breadcrumb-item.styles.js +1 -1
  254. package/cdn/components/button/button.component.js +10 -9
  255. package/cdn/components/button/button.js +11 -10
  256. package/cdn/components/button/button.styles.js +1 -1
  257. package/cdn/components/button-group/button-group.component.js +4 -3
  258. package/cdn/components/button-group/button-group.js +5 -4
  259. package/cdn/components/button-group/button-group.styles.js +1 -1
  260. package/cdn/components/calendar/calendar.component.js +14 -10
  261. package/cdn/components/calendar/calendar.js +14 -10
  262. package/cdn/components/card/card.component.js +5 -4
  263. package/cdn/components/card/card.js +6 -5
  264. package/cdn/components/card/card.styles.js +2 -2
  265. package/cdn/components/carousel/autoplay-controller.js +1 -1
  266. package/cdn/components/carousel/carousel.component.js +7 -6
  267. package/cdn/components/carousel/carousel.js +8 -7
  268. package/cdn/components/carousel/carousel.styles.js +1 -1
  269. package/cdn/components/carousel-item/carousel-item.component.js +4 -3
  270. package/cdn/components/carousel-item/carousel-item.js +5 -4
  271. package/cdn/components/carousel-item/carousel-item.styles.js +1 -1
  272. package/cdn/components/checkbox/checkbox.component.js +7 -6
  273. package/cdn/components/checkbox/checkbox.js +8 -7
  274. package/cdn/components/checkbox/checkbox.styles.js +1 -1
  275. package/cdn/components/color-picker/color-picker.component.js +19 -18
  276. package/cdn/components/color-picker/color-picker.js +20 -19
  277. package/cdn/components/color-picker/color-picker.styles.js +1 -1
  278. package/cdn/components/copy-button/copy-button.component.js +11 -10
  279. package/cdn/components/copy-button/copy-button.js +12 -11
  280. package/cdn/components/copy-button/copy-button.styles.js +1 -1
  281. package/cdn/components/datepicker/datepicker.component.js +17 -13
  282. package/cdn/components/datepicker/datepicker.js +17 -13
  283. package/cdn/components/details/details.component.js +9 -8
  284. package/cdn/components/details/details.js +10 -9
  285. package/cdn/components/details/details.styles.js +2 -2
  286. package/cdn/components/dialog/dialog.component.js +14 -13
  287. package/cdn/components/dialog/dialog.js +15 -14
  288. package/cdn/components/dialog/dialog.styles.js +2 -2
  289. package/cdn/components/divider/divider.component.js +5 -4
  290. package/cdn/components/divider/divider.js +6 -5
  291. package/cdn/components/divider/divider.styles.js +1 -1
  292. package/cdn/components/drawer/drawer.component.js +14 -13
  293. package/cdn/components/drawer/drawer.js +15 -14
  294. package/cdn/components/drawer/drawer.styles.js +2 -2
  295. package/cdn/components/dropdown/dropdown.component.js +10 -9
  296. package/cdn/components/dropdown/dropdown.js +11 -10
  297. package/cdn/components/dropdown/dropdown.styles.js +1 -1
  298. package/cdn/components/format-bytes/format-bytes.component.js +4 -3
  299. package/cdn/components/format-bytes/format-bytes.js +5 -4
  300. package/cdn/components/format-date/format-date.component.js +4 -3
  301. package/cdn/components/format-date/format-date.js +5 -4
  302. package/cdn/components/format-number/format-number.component.js +4 -3
  303. package/cdn/components/format-number/format-number.js +5 -4
  304. package/cdn/components/icon/icon.component.js +5 -4
  305. package/cdn/components/icon/icon.js +6 -5
  306. package/cdn/components/icon/icon.styles.js +1 -1
  307. package/cdn/components/icon/library.default.js +1 -1
  308. package/cdn/components/icon/library.js +1 -1
  309. package/cdn/components/icon/library.system.js +1 -1
  310. package/cdn/components/icon-button/icon-button.component.js +6 -5
  311. package/cdn/components/icon-button/icon-button.js +7 -6
  312. package/cdn/components/icon-button/icon-button.styles.js +1 -1
  313. package/cdn/components/image-comparer/image-comparer.component.js +6 -5
  314. package/cdn/components/image-comparer/image-comparer.js +7 -6
  315. package/cdn/components/image-comparer/image-comparer.styles.js +1 -1
  316. package/cdn/components/include/include.component.js +5 -4
  317. package/cdn/components/include/include.js +6 -5
  318. package/cdn/components/include/include.styles.js +1 -1
  319. package/cdn/components/include/request.js +1 -1
  320. package/cdn/components/input/input.component.js +9 -8
  321. package/cdn/components/input/input.js +10 -9
  322. package/cdn/components/input/input.styles.js +1 -1
  323. package/cdn/components/menu/menu.component.js +4 -3
  324. package/cdn/components/menu/menu.js +5 -4
  325. package/cdn/components/menu/menu.styles.js +1 -1
  326. package/cdn/components/menu-item/menu-item.component.js +11 -9
  327. package/cdn/components/menu-item/menu-item.js +12 -10
  328. package/cdn/components/menu-item/menu-item.styles.js +1 -1
  329. package/cdn/components/menu-item/submenu-controller.js +3 -2
  330. package/cdn/components/menu-label/menu-label.component.js +4 -3
  331. package/cdn/components/menu-label/menu-label.js +5 -4
  332. package/cdn/components/menu-label/menu-label.styles.js +1 -1
  333. package/cdn/components/mutation-observer/mutation-observer.component.js +5 -4
  334. package/cdn/components/mutation-observer/mutation-observer.js +6 -5
  335. package/cdn/components/mutation-observer/mutation-observer.styles.js +1 -1
  336. package/cdn/components/option/option.component.js +6 -5
  337. package/cdn/components/option/option.js +7 -6
  338. package/cdn/components/option/option.styles.js +1 -1
  339. package/cdn/components/pagination/custom-select.js +9 -0
  340. package/cdn/components/pagination/pagination.component.js +21 -0
  341. package/cdn/components/pagination/pagination.js +25 -0
  342. package/cdn/components/pagination/pagination.styles.js +8 -0
  343. package/cdn/components/popup/popup.component.js +4 -3
  344. package/cdn/components/popup/popup.js +5 -4
  345. package/cdn/components/popup/popup.styles.js +1 -1
  346. package/cdn/components/progress-bar/progress-bar.component.js +5 -4
  347. package/cdn/components/progress-bar/progress-bar.js +6 -5
  348. package/cdn/components/progress-bar/progress-bar.styles.js +1 -1
  349. package/cdn/components/progress-ring/progress-ring.component.js +4 -3
  350. package/cdn/components/progress-ring/progress-ring.js +5 -4
  351. package/cdn/components/progress-ring/progress-ring.styles.js +1 -1
  352. package/cdn/components/qr-code/qr-code.component.js +5 -4
  353. package/cdn/components/qr-code/qr-code.js +6 -5
  354. package/cdn/components/qr-code/qr-code.styles.js +1 -1
  355. package/cdn/components/radio/radio.component.js +6 -5
  356. package/cdn/components/radio/radio.js +7 -6
  357. package/cdn/components/radio/radio.styles.js +1 -1
  358. package/cdn/components/radio-button/radio-button.component.js +5 -4
  359. package/cdn/components/radio-button/radio-button.js +6 -5
  360. package/cdn/components/radio-button/radio-button.styles.js +1 -1
  361. package/cdn/components/radio-group/radio-group.component.js +7 -6
  362. package/cdn/components/radio-group/radio-group.js +8 -7
  363. package/cdn/components/radio-group/radio-group.styles.js +1 -1
  364. package/cdn/components/range/range.component.js +8 -7
  365. package/cdn/components/range/range.js +9 -8
  366. package/cdn/components/range/range.styles.js +1 -1
  367. package/cdn/components/rating/rating.component.js +7 -6
  368. package/cdn/components/rating/rating.js +8 -7
  369. package/cdn/components/rating/rating.styles.js +1 -1
  370. package/cdn/components/relative-time/relative-time.component.js +4 -3
  371. package/cdn/components/relative-time/relative-time.js +5 -4
  372. package/cdn/components/resize-observer/resize-observer.component.js +5 -4
  373. package/cdn/components/resize-observer/resize-observer.js +6 -5
  374. package/cdn/components/resize-observer/resize-observer.styles.js +1 -1
  375. package/cdn/components/screen/gridstack.styles.js +8 -0
  376. package/cdn/components/screen/screen.component.js +14 -0
  377. package/cdn/components/screen/screen.js +15 -0
  378. package/cdn/components/screen/screen.styles.js +8 -0
  379. package/cdn/components/select/select.component.js +15 -14
  380. package/cdn/components/select/select.js +16 -15
  381. package/cdn/components/select/select.styles.js +1 -1
  382. package/cdn/components/skeleton/skeleton.component.js +4 -3
  383. package/cdn/components/skeleton/skeleton.js +5 -4
  384. package/cdn/components/skeleton/skeleton.styles.js +1 -1
  385. package/cdn/components/spinner/spinner.component.js +4 -3
  386. package/cdn/components/spinner/spinner.js +5 -4
  387. package/cdn/components/spinner/spinner.styles.js +1 -1
  388. package/cdn/components/split-panel/split-panel.component.js +6 -5
  389. package/cdn/components/split-panel/split-panel.js +7 -6
  390. package/cdn/components/split-panel/split-panel.styles.js +1 -1
  391. package/cdn/components/switch/switch.component.js +6 -5
  392. package/cdn/components/switch/switch.js +7 -6
  393. package/cdn/components/switch/switch.styles.js +1 -1
  394. package/cdn/components/tab/tab.component.js +9 -8
  395. package/cdn/components/tab/tab.js +10 -9
  396. package/cdn/components/tab/tab.styles.js +2 -2
  397. package/cdn/components/tab-group/tab-group.component.js +10 -9
  398. package/cdn/components/tab-group/tab-group.js +11 -10
  399. package/cdn/components/tab-group/tab-group.styles.js +2 -2
  400. package/cdn/components/tab-panel/tab-panel.component.js +5 -4
  401. package/cdn/components/tab-panel/tab-panel.js +6 -5
  402. package/cdn/components/tab-panel/tab-panel.styles.js +1 -1
  403. package/cdn/components/table/body-table.js +9 -7
  404. package/cdn/components/table/col-group.js +3 -2
  405. package/cdn/components/table/features/index.js +22 -0
  406. package/cdn/components/table/features/row-filtering.js +7 -0
  407. package/cdn/components/table/features/row-selection.js +5 -3
  408. package/cdn/components/table/features/row-sorting.js +7 -0
  409. package/cdn/components/table/head-table.js +56 -7
  410. package/cdn/components/table/spinner-container.js +4 -3
  411. package/cdn/components/table/table.component.js +53 -17
  412. package/cdn/components/table/table.context.js +1 -1
  413. package/cdn/components/table/table.js +54 -18
  414. package/cdn/components/table/utils.js +8 -4
  415. package/cdn/components/tag/tag.component.js +9 -8
  416. package/cdn/components/tag/tag.js +10 -9
  417. package/cdn/components/tag/tag.styles.js +2 -2
  418. package/cdn/components/textarea/textarea.component.js +7 -6
  419. package/cdn/components/textarea/textarea.js +8 -7
  420. package/cdn/components/textarea/textarea.styles.js +2 -2
  421. package/cdn/components/time-panel/time-panel.component.js +33 -0
  422. package/cdn/components/time-panel/time-panel.js +37 -0
  423. package/cdn/components/time-panel/time-panel.styles.js +8 -0
  424. package/cdn/components/timepicker/timepicker.component.js +42 -0
  425. package/cdn/components/timepicker/timepicker.js +46 -0
  426. package/cdn/components/timepicker/timepicker.styles.js +8 -0
  427. package/cdn/components/tooltip/tooltip.component.js +9 -8
  428. package/cdn/components/tooltip/tooltip.js +10 -9
  429. package/cdn/components/tooltip/tooltip.styles.js +2 -2
  430. package/cdn/components/tree/tree.component.js +15 -14
  431. package/cdn/components/tree/tree.js +16 -15
  432. package/cdn/components/tree/tree.styles.js +1 -1
  433. package/cdn/components/tree-item/tree-item.component.js +13 -12
  434. package/cdn/components/tree-item/tree-item.js +14 -13
  435. package/cdn/components/tree-item/tree-item.styles.js +1 -1
  436. package/cdn/components/visually-hidden/visually-hidden.component.js +4 -3
  437. package/cdn/components/visually-hidden/visually-hidden.js +5 -4
  438. package/cdn/components/visually-hidden/visually-hidden.styles.js +1 -1
  439. package/cdn/custom-elements.json +2298 -1014
  440. package/cdn/react/alert/index.js +13 -12
  441. package/cdn/react/animated-image/index.js +7 -6
  442. package/cdn/react/animation/index.js +7 -6
  443. package/cdn/react/avatar/index.js +7 -6
  444. package/cdn/react/badge/index.js +6 -5
  445. package/cdn/react/breadcrumb/index.js +7 -6
  446. package/cdn/react/breadcrumb-item/index.js +6 -5
  447. package/cdn/react/button/index.js +11 -10
  448. package/cdn/react/button-group/index.js +5 -4
  449. package/cdn/react/card/index.js +6 -5
  450. package/cdn/react/carousel/index.js +8 -7
  451. package/cdn/react/carousel-item/index.js +5 -4
  452. package/cdn/react/checkbox/index.js +8 -7
  453. package/cdn/react/color-picker/index.js +20 -19
  454. package/cdn/react/copy-button/index.js +12 -11
  455. package/cdn/react/datepicker/index.js +18 -14
  456. package/cdn/react/details/index.js +10 -9
  457. package/cdn/react/dialog/index.js +15 -14
  458. package/cdn/react/divider/index.js +6 -5
  459. package/cdn/react/drawer/index.js +15 -14
  460. package/cdn/react/dropdown/index.js +11 -10
  461. package/cdn/react/format-bytes/index.js +5 -4
  462. package/cdn/react/format-date/index.js +5 -4
  463. package/cdn/react/format-number/index.js +5 -4
  464. package/cdn/react/icon/index.js +6 -5
  465. package/cdn/react/icon-button/index.js +7 -6
  466. package/cdn/react/image-comparer/index.js +7 -6
  467. package/cdn/react/include/index.js +6 -5
  468. package/cdn/react/index.js +237 -202
  469. package/cdn/react/input/index.js +10 -9
  470. package/cdn/react/menu/index.js +5 -4
  471. package/cdn/react/menu-item/index.js +12 -10
  472. package/cdn/react/menu-label/index.js +5 -4
  473. package/cdn/react/mutation-observer/index.js +6 -5
  474. package/cdn/react/option/index.js +7 -6
  475. package/cdn/react/pagination/index.js +22 -0
  476. package/cdn/react/popup/index.js +5 -4
  477. package/cdn/react/progress-bar/index.js +6 -5
  478. package/cdn/react/progress-ring/index.js +5 -4
  479. package/cdn/react/qr-code/index.js +6 -5
  480. package/cdn/react/radio/index.js +7 -6
  481. package/cdn/react/radio-button/index.js +6 -5
  482. package/cdn/react/radio-group/index.js +8 -7
  483. package/cdn/react/range/index.js +9 -8
  484. package/cdn/react/rating/index.js +8 -7
  485. package/cdn/react/relative-time/index.js +5 -4
  486. package/cdn/react/resize-observer/index.js +6 -5
  487. package/cdn/react/screen/index.js +15 -0
  488. package/cdn/react/select/index.js +16 -15
  489. package/cdn/react/skeleton/index.js +5 -4
  490. package/cdn/react/spinner/index.js +5 -4
  491. package/cdn/react/split-panel/index.js +7 -6
  492. package/cdn/react/switch/index.js +7 -6
  493. package/cdn/react/tab/index.js +10 -9
  494. package/cdn/react/tab-group/index.js +11 -10
  495. package/cdn/react/tab-panel/index.js +6 -5
  496. package/cdn/react/table/index.js +54 -18
  497. package/cdn/react/tag/index.js +10 -9
  498. package/cdn/react/textarea/index.js +8 -7
  499. package/cdn/react/timepicker/index.js +43 -0
  500. package/cdn/react/tooltip/index.js +10 -9
  501. package/cdn/react/tree/index.js +16 -15
  502. package/cdn/react/tree-item/index.js +14 -13
  503. package/cdn/react/visually-hidden/index.js +5 -4
  504. package/cdn/shoelace-autoloader.js +1 -1
  505. package/cdn/shoelace.js +201 -185
  506. package/cdn/themes/dark.css +22 -1
  507. package/cdn/themes/dark.styles.js +22 -1
  508. package/cdn/themes/light.css +26 -2
  509. package/cdn/themes/light.styles.js +26 -2
  510. package/cdn/translations/ar.js +1 -1
  511. package/cdn/translations/cs.js +1 -1
  512. package/cdn/translations/da.js +1 -1
  513. package/cdn/translations/de-ch.js +1 -1
  514. package/cdn/translations/de.js +1 -1
  515. package/cdn/translations/en-gb.js +1 -1
  516. package/cdn/translations/en.js +1 -1
  517. package/cdn/translations/es.js +1 -1
  518. package/cdn/translations/fa.js +1 -1
  519. package/cdn/translations/fi.js +1 -1
  520. package/cdn/translations/fr.js +1 -1
  521. package/cdn/translations/he.js +1 -1
  522. package/cdn/translations/hr.js +1 -1
  523. package/cdn/translations/hu.js +1 -1
  524. package/cdn/translations/id.js +1 -1
  525. package/cdn/translations/it.js +1 -1
  526. package/cdn/translations/ja.js +1 -1
  527. package/cdn/translations/nb.js +1 -1
  528. package/cdn/translations/nl.js +1 -1
  529. package/cdn/translations/nn.js +1 -1
  530. package/cdn/translations/pl.js +1 -1
  531. package/cdn/translations/pt.js +1 -1
  532. package/cdn/translations/ru.js +1 -1
  533. package/cdn/translations/sl.js +1 -1
  534. package/cdn/translations/sv.js +1 -1
  535. package/cdn/translations/tr.js +1 -1
  536. package/cdn/translations/uk.js +1 -1
  537. package/cdn/translations/zh-cn.js +1 -1
  538. package/cdn/translations/zh-tw.js +1 -1
  539. package/cdn/types/vue/index.d.ts +288 -119
  540. package/cdn/utilities/animation-registry.js +2 -2
  541. package/cdn/utilities/animation.js +2 -2
  542. package/cdn/utilities/base-path.js +1 -1
  543. package/cdn/utilities/form.js +3 -3
  544. package/cdn/utilities/icon-library.js +1 -1
  545. package/cdn/utilities/localize.js +1 -1
  546. package/cdn/utilities/spread.js +8 -0
  547. package/cdn/vscode.html-custom-data.json +202 -95
  548. package/cdn/web-types.json +598 -303
  549. package/dist/chunks/chunk.23HGCLAW.js +21 -0
  550. package/dist/chunks/chunk.25TBIPFK.js +11 -0
  551. package/dist/chunks/chunk.26MJV2ME.js +17 -0
  552. package/dist/chunks/chunk.27DB7RAU.js +11 -0
  553. package/dist/chunks/chunk.2DETFS7K.js +28 -0
  554. package/dist/chunks/chunk.2FX6DNML.js +96 -0
  555. package/dist/chunks/chunk.2JAQPJLX.js +21 -0
  556. package/dist/chunks/chunk.2PMBAGTI.js +21 -0
  557. package/dist/chunks/chunk.34GOOMEW.js +11 -0
  558. package/dist/chunks/chunk.3CPJQZST.js +11 -0
  559. package/dist/chunks/chunk.3GQBJUIH.js +11 -0
  560. package/dist/chunks/chunk.3GZPCEOQ.js +73 -0
  561. package/dist/chunks/chunk.3JZN62YV.js +117 -0
  562. package/dist/chunks/chunk.3MARYRGV.js +11 -0
  563. package/dist/chunks/chunk.3NQXOVD4.js +376 -0
  564. package/dist/chunks/chunk.3W7CHXD7.js +11 -0
  565. package/dist/chunks/chunk.3WR6R76A.js +59 -0
  566. package/dist/chunks/chunk.3ZYRK7M4.js +384 -0
  567. package/dist/chunks/chunk.43LWOCQ5.js +73 -0
  568. package/dist/chunks/chunk.43PBKGUD.js +26 -0
  569. package/dist/chunks/chunk.47P2L262.js +25 -0
  570. package/dist/chunks/chunk.4A6V4OMT.js +107 -0
  571. package/dist/chunks/chunk.4C4LIIOK.js +11 -0
  572. package/dist/chunks/chunk.4DJZULKT.js +241 -0
  573. package/dist/chunks/chunk.4I7DHCAY.js +11 -0
  574. package/dist/chunks/chunk.4KMZQJPO.js +11 -0
  575. package/dist/chunks/chunk.4Y6LADJK.js +21 -0
  576. package/dist/chunks/chunk.4ZJN6EFC.js +337 -0
  577. package/dist/chunks/chunk.52ARAKCC.js +550 -0
  578. package/dist/chunks/chunk.5CMYCASF.js +24 -0
  579. package/dist/chunks/chunk.5HZWJZUO.js +434 -0
  580. package/dist/chunks/chunk.5NSTMLSM.js +28 -0
  581. package/dist/chunks/chunk.5QVXBVXA.js +11 -0
  582. package/dist/chunks/chunk.663VZMAX.js +432 -0
  583. package/dist/chunks/chunk.67J6JRJP.js +25 -0
  584. package/dist/chunks/chunk.6AYRKGUV.js +293 -0
  585. package/dist/chunks/chunk.6KDBVG3H.js +29 -0
  586. package/dist/chunks/chunk.6L2T3ALG.js +25 -0
  587. package/dist/chunks/chunk.6NENZVDS.js +29 -0
  588. package/dist/chunks/chunk.6QBRHNIF.js +0 -0
  589. package/dist/chunks/chunk.6VKVHEOL.js +27 -0
  590. package/dist/chunks/chunk.74VPT7ZS.js +83 -0
  591. package/dist/chunks/chunk.77ABNQIG.js +25 -0
  592. package/dist/chunks/chunk.7GXE3QVV.js +28 -0
  593. package/dist/chunks/chunk.7KVTWOBV.js +11 -0
  594. package/dist/chunks/chunk.7SUJ6ZAV.js +25 -0
  595. package/dist/chunks/chunk.7V7LRHSR.js +813 -0
  596. package/dist/chunks/chunk.A62CYGGP.js +22 -0
  597. package/dist/chunks/chunk.A7MTSZPU.js +11 -0
  598. package/dist/chunks/chunk.AE2BEBWF.js +25 -0
  599. package/dist/chunks/chunk.AGDVEDOE.js +797 -0
  600. package/dist/chunks/chunk.ANGH2JDN.js +11 -0
  601. package/dist/chunks/chunk.APCO7M5L.js +417 -0
  602. package/dist/chunks/chunk.AQ7VF6CF.js +22 -0
  603. package/dist/chunks/chunk.ARMOXZ76.js +192 -0
  604. package/dist/chunks/chunk.ATVF7YDX.js +949 -0
  605. package/dist/chunks/chunk.AV23FU3R.js +24 -0
  606. package/dist/chunks/chunk.BB3BYBEI.js +100 -0
  607. package/dist/chunks/chunk.BFSKWSGO.js +11 -0
  608. package/dist/chunks/chunk.BPLVMOQ5.js +134 -0
  609. package/dist/chunks/chunk.BRV7DF2B.js +26 -0
  610. package/dist/chunks/chunk.BSMAWKMA.js +259 -0
  611. package/dist/chunks/chunk.BUQDXJCJ.js +151 -0
  612. package/dist/chunks/chunk.C23O55XQ.js +80 -0
  613. package/dist/chunks/chunk.C4IK7KL2.js +21 -0
  614. package/dist/chunks/chunk.C6JULJJK.js +213 -0
  615. package/dist/chunks/chunk.CACN44PI.js +126 -0
  616. package/dist/chunks/chunk.CD53Z5GS.js +24 -0
  617. package/dist/chunks/chunk.CHOGC6ZW.js +11 -0
  618. package/dist/chunks/chunk.CKLJH3H5.js +130 -0
  619. package/dist/chunks/chunk.CNDBEOVK.js +63 -0
  620. package/dist/chunks/chunk.DC25J3FI.js +21 -0
  621. package/dist/chunks/chunk.DQSFCRBV.js +11 -0
  622. package/dist/chunks/chunk.DXJGRMX7.js +11 -0
  623. package/dist/chunks/chunk.DYI2P2LM.js +21 -0
  624. package/dist/chunks/chunk.DYSF3MT2.js +170 -0
  625. package/dist/chunks/chunk.E5JMPGIC.js +11 -0
  626. package/dist/chunks/chunk.E6Y3LBAN.js +21 -0
  627. package/dist/chunks/chunk.EBRU4F73.js +11 -0
  628. package/dist/chunks/chunk.EOAJW6SY.js +11 -0
  629. package/dist/chunks/chunk.ERPFKQYT.js +11 -0
  630. package/dist/chunks/chunk.ETNZZR4T.js +21 -0
  631. package/dist/chunks/chunk.EVL5ADO6.js +24 -0
  632. package/dist/chunks/chunk.EWH7BS7Y.js +11 -0
  633. package/dist/chunks/chunk.F7DRAXN5.js +11 -0
  634. package/dist/chunks/chunk.FBXX3XY4.js +11 -0
  635. package/dist/chunks/chunk.FKBCP6QY.js +369 -0
  636. package/dist/chunks/chunk.FLN4E53F.js +11 -0
  637. package/dist/chunks/chunk.FMCLCSAV.js +11 -0
  638. package/dist/chunks/chunk.FMTMCZSJ.js +231 -0
  639. package/dist/chunks/chunk.GJJTZHM3.js +21 -0
  640. package/dist/chunks/chunk.GQCSUCFS.js +11 -0
  641. package/dist/chunks/chunk.GVVUKL73.js +311 -0
  642. package/dist/chunks/chunk.H3IY5UJN.js +135 -0
  643. package/dist/chunks/chunk.H7ARQXI3.js +90 -0
  644. package/dist/chunks/chunk.H7VRRT3C.js +21 -0
  645. package/dist/chunks/chunk.HA5BTJ4F.js +175 -0
  646. package/dist/chunks/chunk.HT7IWHH6.js +45 -0
  647. package/dist/chunks/chunk.HVB3JVQB.js +109 -0
  648. package/dist/chunks/chunk.HVGOXH2K.js +87 -0
  649. package/dist/chunks/chunk.HXHOO4S6.js +33 -0
  650. package/dist/chunks/chunk.IXH5Q2C3.js +52 -0
  651. package/dist/chunks/chunk.IXRNHJ7C.js +11 -0
  652. package/dist/chunks/chunk.IYUIHIU3.js +21 -0
  653. package/dist/chunks/chunk.IZ533ZVC.js +11 -0
  654. package/dist/chunks/chunk.J36FPWHH.js +27 -0
  655. package/dist/chunks/chunk.J6BZX3PF.js +11 -0
  656. package/dist/chunks/chunk.J6SKUHDZ.js +25 -0
  657. package/dist/chunks/chunk.JN3E4OG5.js +25 -0
  658. package/dist/chunks/chunk.JUR6F3DD.js +21 -0
  659. package/dist/chunks/chunk.JWL32KO3.js +21 -0
  660. package/dist/chunks/chunk.JZ2YKXRJ.js +11 -0
  661. package/dist/chunks/chunk.K32V4NI2.js +116 -0
  662. package/dist/chunks/chunk.K432JYJK.js +25 -0
  663. package/dist/chunks/chunk.KHKYZHHU.js +11 -0
  664. package/dist/chunks/chunk.KMOJC6EA.js +21 -0
  665. package/dist/chunks/chunk.KOXGJSCI.js +11 -0
  666. package/dist/chunks/chunk.KQA326PG.js +25 -0
  667. package/dist/chunks/chunk.KWFSZBC2.js +11 -0
  668. package/dist/chunks/chunk.L7TBK2YN.js +50 -0
  669. package/dist/chunks/chunk.LGSMJUTO.js +29 -0
  670. package/dist/chunks/chunk.LVBOFYKS.js +120 -0
  671. package/dist/chunks/chunk.MHMANAVS.js +108 -0
  672. package/dist/chunks/chunk.MIDZO2CW.js +24 -0
  673. package/dist/chunks/chunk.MMGOYB6R.js +210 -0
  674. package/dist/chunks/chunk.MTCVEDBK.js +98 -0
  675. package/dist/chunks/chunk.MY3GNSET.js +189 -0
  676. package/dist/chunks/chunk.N2E6KOXF.js +113 -0
  677. package/dist/chunks/chunk.N2LGAJA2.js +291 -0
  678. package/dist/chunks/chunk.N4WPBYFA.js +54 -0
  679. package/dist/chunks/chunk.N63RYGSN.js +286 -0
  680. package/dist/chunks/chunk.N67I2LK5.js +24 -0
  681. package/dist/chunks/chunk.NBUPN2TY.js +11 -0
  682. package/dist/chunks/chunk.NEJH2QQL.js +75 -0
  683. package/dist/chunks/chunk.NFSCC3IK.js +167 -0
  684. package/dist/chunks/chunk.NIXTHM4P.js +21 -0
  685. package/dist/chunks/chunk.NQENY4IX.js +247 -0
  686. package/dist/chunks/chunk.NS7DILD3.js +11 -0
  687. package/dist/chunks/chunk.NSJJAQ3U.js +11 -0
  688. package/dist/chunks/chunk.NTAMDSTW.js +121 -0
  689. package/dist/chunks/chunk.O65X42L5.js +361 -0
  690. package/dist/chunks/chunk.ODVFSBOC.js +67 -0
  691. package/dist/chunks/chunk.OHFOZW2I.js +60 -0
  692. package/dist/chunks/chunk.OK67O325.js +11 -0
  693. package/dist/chunks/chunk.OQGWS5BT.js +21 -0
  694. package/dist/chunks/chunk.OQNVUOJC.js +183 -0
  695. package/dist/chunks/chunk.OS5A26DZ.js +91 -0
  696. package/dist/chunks/chunk.OSS7BSOC.js +11 -0
  697. package/dist/chunks/chunk.OTTDDVK3.js +34 -0
  698. package/dist/chunks/chunk.PD6BNQMJ.js +27 -0
  699. package/dist/chunks/chunk.PLEDBP67.js +29 -0
  700. package/dist/chunks/chunk.PLU5PS67.js +11 -0
  701. package/dist/chunks/chunk.PWOAOGM4.js +11 -0
  702. package/dist/chunks/chunk.Q3TRUHPI.js +28 -0
  703. package/dist/chunks/chunk.Q7SXFP3V.js +28 -0
  704. package/dist/chunks/chunk.QA6SOMF7.js +11 -0
  705. package/dist/chunks/chunk.QKZZ7WE2.js +21 -0
  706. package/dist/chunks/chunk.QMDSMON5.js +24 -0
  707. package/dist/chunks/chunk.QO55DMT2.js +35 -0
  708. package/dist/chunks/chunk.R4CJVDYU.js +21 -0
  709. package/dist/chunks/chunk.R6KPDXN6.js +227 -0
  710. package/dist/chunks/chunk.R7BRZJ7H.js +397 -0
  711. package/dist/chunks/chunk.RA24XFOG.js +21 -0
  712. package/dist/chunks/chunk.RB2W2JEV.js +119 -0
  713. package/dist/chunks/chunk.ROCNG3Z2.js +100 -0
  714. package/dist/chunks/chunk.RQ3CQZHW.js +22 -0
  715. package/dist/chunks/chunk.RTPIRRCU.js +280 -0
  716. package/dist/chunks/chunk.RVSWZTNX.js +11 -0
  717. package/dist/chunks/chunk.RX2IV62Q.js +11 -0
  718. package/dist/chunks/chunk.S3LB4WZD.js +21 -0
  719. package/dist/chunks/chunk.S7VNNBFG.js +11 -0
  720. package/dist/chunks/chunk.SBZ6QKSO.js +448 -0
  721. package/dist/chunks/chunk.SFYM5THF.js +26 -0
  722. package/dist/chunks/chunk.SLIHMHS3.js +315 -0
  723. package/dist/chunks/chunk.SRWQANS5.js +11 -0
  724. package/dist/chunks/chunk.SSBB5KT7.js +21 -0
  725. package/dist/chunks/chunk.T2L2MWXJ.js +45 -0
  726. package/dist/chunks/chunk.T3CTIXEX.js +96 -0
  727. package/dist/chunks/chunk.TCYF7JXX.js +24 -0
  728. package/dist/chunks/chunk.TF3IWFSX.js +26 -0
  729. package/dist/chunks/chunk.TFJC77LY.js +11 -0
  730. package/dist/chunks/chunk.TS7CT7QJ.js +75 -0
  731. package/dist/chunks/chunk.U4EZFCCR.js +11 -0
  732. package/dist/chunks/chunk.U4R3XMTE.js +11 -0
  733. package/dist/chunks/chunk.U6PRCBEA.js +21 -0
  734. package/dist/chunks/chunk.UBH6LHCJ.js +11 -0
  735. package/dist/chunks/chunk.UC4EKVMK.js +162 -0
  736. package/dist/chunks/chunk.UE45ZK4Q.js +11 -0
  737. package/dist/chunks/chunk.UFOUNVWK.js +152 -0
  738. package/dist/chunks/chunk.UKGXZZQH.js +42 -0
  739. package/dist/chunks/chunk.UUWWUAM4.js +28 -0
  740. package/dist/chunks/chunk.V4O2B7KU.js +74 -0
  741. package/dist/chunks/chunk.VPK6RGLJ.js +85 -0
  742. package/dist/chunks/chunk.WETCECT3.js +93 -0
  743. package/dist/chunks/chunk.WGXTRNRP.js +24 -0
  744. package/dist/chunks/chunk.WNM4FFE3.js +186 -0
  745. package/dist/chunks/chunk.WOZN3WMM.js +111 -0
  746. package/dist/chunks/chunk.WPDW5EMG.js +21 -0
  747. package/dist/chunks/chunk.WQTJ57OT.js +22 -0
  748. package/dist/chunks/chunk.X4LGWTV3.js +24 -0
  749. package/dist/chunks/chunk.X6SGIS5L.js +371 -0
  750. package/dist/chunks/chunk.X6VPNOV3.js +294 -0
  751. package/dist/chunks/chunk.XCFT6PZE.js +11 -0
  752. package/dist/chunks/chunk.XHOQBNMU.js +11 -0
  753. package/dist/chunks/chunk.XKD4HCYC.js +24 -0
  754. package/dist/chunks/chunk.XKJXEIIO.js +147 -0
  755. package/dist/chunks/chunk.XNP4OPE3.js +11 -0
  756. package/dist/chunks/chunk.XODYJEQZ.js +11 -0
  757. package/dist/chunks/chunk.XQ5MIFHX.js +27 -0
  758. package/dist/chunks/chunk.XR4HBT5F.js +24 -0
  759. package/dist/chunks/chunk.Y7HR6IDH.js +23 -0
  760. package/dist/chunks/chunk.YSOEBZLH.js +494 -0
  761. package/dist/chunks/chunk.YURGZ2MY.js +11 -0
  762. package/dist/chunks/chunk.Z6CT6VEF.js +11 -0
  763. package/dist/chunks/chunk.Z6PM4ZSE.js +181 -0
  764. package/dist/chunks/chunk.ZF7BTCOX.js +11 -0
  765. package/dist/chunks/chunk.ZJQALOHS.js +11 -0
  766. package/dist/chunks/chunk.ZKCCQ4BX.js +274 -0
  767. package/dist/components/alert/alert.component.js +6 -6
  768. package/dist/components/alert/alert.js +7 -7
  769. package/dist/components/alert/alert.styles.js +1 -1
  770. package/dist/components/animated-image/animated-image.component.js +3 -3
  771. package/dist/components/animated-image/animated-image.js +4 -4
  772. package/dist/components/animation/animation.component.js +2 -2
  773. package/dist/components/animation/animation.js +3 -3
  774. package/dist/components/avatar/avatar.component.js +3 -3
  775. package/dist/components/avatar/avatar.js +4 -4
  776. package/dist/components/badge/badge.component.js +3 -3
  777. package/dist/components/badge/badge.js +4 -4
  778. package/dist/components/badge/badge.styles.js +1 -1
  779. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  780. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  781. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  782. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  783. package/dist/components/button/button.component.js +5 -5
  784. package/dist/components/button/button.js +6 -6
  785. package/dist/components/button-group/button-group.component.js +2 -2
  786. package/dist/components/button-group/button-group.js +3 -3
  787. package/dist/components/calendar/calendar.component.js +9 -6
  788. package/dist/components/calendar/calendar.js +9 -6
  789. package/dist/components/card/card.component.js +3 -3
  790. package/dist/components/card/card.js +4 -4
  791. package/dist/components/card/card.styles.js +1 -1
  792. package/dist/components/carousel/carousel.component.js +3 -3
  793. package/dist/components/carousel/carousel.js +4 -4
  794. package/dist/components/carousel-item/carousel-item.component.js +2 -2
  795. package/dist/components/carousel-item/carousel-item.js +3 -3
  796. package/dist/components/checkbox/checkbox.component.js +3 -3
  797. package/dist/components/checkbox/checkbox.js +4 -4
  798. package/dist/components/color-picker/color-picker.component.js +11 -11
  799. package/dist/components/color-picker/color-picker.js +12 -12
  800. package/dist/components/copy-button/copy-button.component.js +6 -6
  801. package/dist/components/copy-button/copy-button.js +7 -7
  802. package/dist/components/datepicker/datepicker.component.js +12 -9
  803. package/dist/components/datepicker/datepicker.js +12 -9
  804. package/dist/components/details/details.component.js +4 -4
  805. package/dist/components/details/details.js +5 -5
  806. package/dist/components/details/details.styles.js +1 -1
  807. package/dist/components/dialog/dialog.component.js +6 -6
  808. package/dist/components/dialog/dialog.js +7 -7
  809. package/dist/components/dialog/dialog.styles.js +1 -1
  810. package/dist/components/divider/divider.component.js +2 -2
  811. package/dist/components/divider/divider.js +3 -3
  812. package/dist/components/drawer/drawer.component.js +6 -6
  813. package/dist/components/drawer/drawer.js +7 -7
  814. package/dist/components/drawer/drawer.styles.js +1 -1
  815. package/dist/components/dropdown/dropdown.component.js +3 -3
  816. package/dist/components/dropdown/dropdown.js +4 -4
  817. package/dist/components/format-bytes/format-bytes.component.js +2 -2
  818. package/dist/components/format-bytes/format-bytes.js +3 -3
  819. package/dist/components/format-date/format-date.component.js +2 -2
  820. package/dist/components/format-date/format-date.js +3 -3
  821. package/dist/components/format-number/format-number.component.js +2 -2
  822. package/dist/components/format-number/format-number.js +3 -3
  823. package/dist/components/icon/icon.component.js +2 -2
  824. package/dist/components/icon/icon.js +3 -3
  825. package/dist/components/icon-button/icon-button.component.js +3 -3
  826. package/dist/components/icon-button/icon-button.js +4 -4
  827. package/dist/components/image-comparer/image-comparer.component.js +3 -3
  828. package/dist/components/image-comparer/image-comparer.js +4 -4
  829. package/dist/components/include/include.component.js +2 -2
  830. package/dist/components/include/include.js +3 -3
  831. package/dist/components/input/input.component.js +4 -4
  832. package/dist/components/input/input.js +5 -5
  833. package/dist/components/menu/menu.component.js +2 -2
  834. package/dist/components/menu/menu.js +3 -3
  835. package/dist/components/menu-item/menu-item.component.js +6 -6
  836. package/dist/components/menu-item/menu-item.js +7 -7
  837. package/dist/components/menu-label/menu-label.component.js +2 -2
  838. package/dist/components/menu-label/menu-label.js +3 -3
  839. package/dist/components/mutation-observer/mutation-observer.component.js +2 -2
  840. package/dist/components/mutation-observer/mutation-observer.js +3 -3
  841. package/dist/components/option/option.component.js +3 -3
  842. package/dist/components/option/option.js +4 -4
  843. package/dist/components/pagination/custom-select.js +7 -0
  844. package/dist/components/pagination/pagination.component.js +18 -0
  845. package/dist/components/pagination/pagination.js +22 -0
  846. package/dist/components/pagination/pagination.styles.js +7 -0
  847. package/dist/components/popup/popup.component.js +2 -2
  848. package/dist/components/popup/popup.js +3 -3
  849. package/dist/components/progress-bar/progress-bar.component.js +2 -2
  850. package/dist/components/progress-bar/progress-bar.js +3 -3
  851. package/dist/components/progress-ring/progress-ring.component.js +2 -2
  852. package/dist/components/progress-ring/progress-ring.js +3 -3
  853. package/dist/components/qr-code/qr-code.component.js +2 -2
  854. package/dist/components/qr-code/qr-code.js +3 -3
  855. package/dist/components/radio/radio.component.js +3 -3
  856. package/dist/components/radio/radio.js +4 -4
  857. package/dist/components/radio-button/radio-button.component.js +2 -2
  858. package/dist/components/radio-button/radio-button.js +3 -3
  859. package/dist/components/radio-group/radio-group.component.js +3 -3
  860. package/dist/components/radio-group/radio-group.js +4 -4
  861. package/dist/components/range/range.component.js +3 -3
  862. package/dist/components/range/range.js +4 -4
  863. package/dist/components/rating/rating.component.js +3 -3
  864. package/dist/components/rating/rating.js +4 -4
  865. package/dist/components/relative-time/relative-time.component.js +2 -2
  866. package/dist/components/relative-time/relative-time.js +3 -3
  867. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  868. package/dist/components/resize-observer/resize-observer.js +3 -3
  869. package/dist/components/screen/gridstack.styles.js +7 -0
  870. package/dist/components/screen/screen.component.js +12 -0
  871. package/dist/components/screen/screen.js +13 -0
  872. package/dist/components/screen/screen.styles.js +7 -0
  873. package/dist/components/select/select.component.js +8 -8
  874. package/dist/components/select/select.js +9 -9
  875. package/dist/components/skeleton/skeleton.component.js +2 -2
  876. package/dist/components/skeleton/skeleton.js +3 -3
  877. package/dist/components/spinner/spinner.component.js +2 -2
  878. package/dist/components/spinner/spinner.js +3 -3
  879. package/dist/components/split-panel/split-panel.component.js +2 -2
  880. package/dist/components/split-panel/split-panel.js +3 -3
  881. package/dist/components/switch/switch.component.js +2 -2
  882. package/dist/components/switch/switch.js +3 -3
  883. package/dist/components/tab/tab.component.js +5 -5
  884. package/dist/components/tab/tab.js +6 -6
  885. package/dist/components/tab/tab.styles.js +1 -1
  886. package/dist/components/tab-group/tab-group.component.js +6 -6
  887. package/dist/components/tab-group/tab-group.js +7 -7
  888. package/dist/components/tab-group/tab-group.styles.js +1 -1
  889. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  890. package/dist/components/tab-panel/tab-panel.js +3 -3
  891. package/dist/components/table/body-table.js +5 -5
  892. package/dist/components/table/col-group.js +2 -1
  893. package/dist/components/table/features/index.js +20 -0
  894. package/dist/components/table/features/row-filtering.js +7 -0
  895. package/dist/components/table/features/row-selection.js +3 -1
  896. package/dist/components/table/features/row-sorting.js +7 -0
  897. package/dist/components/table/head-table.js +48 -5
  898. package/dist/components/table/spinner-container.js +2 -2
  899. package/dist/components/table/table.component.js +45 -12
  900. package/dist/components/table/table.js +46 -13
  901. package/dist/components/table/utils.js +7 -3
  902. package/dist/components/tag/tag.component.js +5 -5
  903. package/dist/components/tag/tag.js +6 -6
  904. package/dist/components/tag/tag.styles.js +1 -1
  905. package/dist/components/textarea/textarea.component.js +3 -3
  906. package/dist/components/textarea/textarea.js +4 -4
  907. package/dist/components/textarea/textarea.styles.js +1 -1
  908. package/dist/components/time-panel/time-panel.component.js +25 -0
  909. package/dist/components/time-panel/time-panel.js +29 -0
  910. package/dist/components/time-panel/time-panel.styles.js +7 -0
  911. package/dist/components/timepicker/timepicker.component.js +34 -0
  912. package/dist/components/timepicker/timepicker.js +38 -0
  913. package/dist/components/timepicker/timepicker.styles.js +7 -0
  914. package/dist/components/tooltip/tooltip.component.js +4 -4
  915. package/dist/components/tooltip/tooltip.js +5 -5
  916. package/dist/components/tooltip/tooltip.styles.js +1 -1
  917. package/dist/components/tree/tree.component.js +8 -8
  918. package/dist/components/tree/tree.js +9 -9
  919. package/dist/components/tree-item/tree-item.component.js +6 -6
  920. package/dist/components/tree-item/tree-item.js +7 -7
  921. package/dist/components/visually-hidden/visually-hidden.component.js +2 -2
  922. package/dist/components/visually-hidden/visually-hidden.js +3 -3
  923. package/dist/custom-elements.json +2298 -1014
  924. package/dist/react/alert/index.js +7 -7
  925. package/dist/react/animated-image/index.js +4 -4
  926. package/dist/react/animation/index.js +3 -3
  927. package/dist/react/avatar/index.js +4 -4
  928. package/dist/react/badge/index.js +4 -4
  929. package/dist/react/breadcrumb/index.js +4 -4
  930. package/dist/react/breadcrumb-item/index.js +3 -3
  931. package/dist/react/button/index.js +6 -6
  932. package/dist/react/button-group/index.js +3 -3
  933. package/dist/react/card/index.js +4 -4
  934. package/dist/react/carousel/index.js +4 -4
  935. package/dist/react/carousel-item/index.js +3 -3
  936. package/dist/react/checkbox/index.js +4 -4
  937. package/dist/react/color-picker/index.js +12 -12
  938. package/dist/react/copy-button/index.js +7 -7
  939. package/dist/react/datepicker/index.js +13 -10
  940. package/dist/react/details/index.js +5 -5
  941. package/dist/react/dialog/index.js +7 -7
  942. package/dist/react/divider/index.js +3 -3
  943. package/dist/react/drawer/index.js +7 -7
  944. package/dist/react/dropdown/index.js +4 -4
  945. package/dist/react/format-bytes/index.js +3 -3
  946. package/dist/react/format-date/index.js +3 -3
  947. package/dist/react/format-number/index.js +3 -3
  948. package/dist/react/icon/index.js +3 -3
  949. package/dist/react/icon-button/index.js +4 -4
  950. package/dist/react/image-comparer/index.js +4 -4
  951. package/dist/react/include/index.js +3 -3
  952. package/dist/react/index.js +223 -190
  953. package/dist/react/input/index.js +5 -5
  954. package/dist/react/menu/index.js +3 -3
  955. package/dist/react/menu-item/index.js +7 -7
  956. package/dist/react/menu-label/index.js +3 -3
  957. package/dist/react/mutation-observer/index.js +3 -3
  958. package/dist/react/option/index.js +4 -4
  959. package/dist/react/pagination/index.js +19 -0
  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 +4 -4
  965. package/dist/react/radio-button/index.js +3 -3
  966. package/dist/react/radio-group/index.js +4 -4
  967. package/dist/react/range/index.js +4 -4
  968. package/dist/react/rating/index.js +4 -4
  969. package/dist/react/relative-time/index.js +3 -3
  970. package/dist/react/resize-observer/index.js +3 -3
  971. package/dist/react/screen/index.js +13 -0
  972. package/dist/react/select/index.js +9 -9
  973. package/dist/react/skeleton/index.js +3 -3
  974. package/dist/react/spinner/index.js +3 -3
  975. package/dist/react/split-panel/index.js +3 -3
  976. package/dist/react/switch/index.js +3 -3
  977. package/dist/react/tab/index.js +6 -6
  978. package/dist/react/tab-group/index.js +7 -7
  979. package/dist/react/tab-panel/index.js +3 -3
  980. package/dist/react/table/index.js +46 -13
  981. package/dist/react/tag/index.js +6 -6
  982. package/dist/react/textarea/index.js +4 -4
  983. package/dist/react/timepicker/index.js +35 -0
  984. package/dist/react/tooltip/index.js +5 -5
  985. package/dist/react/tree/index.js +9 -9
  986. package/dist/react/tree-item/index.js +7 -7
  987. package/dist/react/visually-hidden/index.js +3 -3
  988. package/dist/shoelace.js +187 -173
  989. package/dist/themes/dark.css +22 -1
  990. package/dist/themes/dark.styles.js +22 -1
  991. package/dist/themes/light.css +26 -2
  992. package/dist/themes/light.styles.js +26 -2
  993. package/dist/types/vue/index.d.ts +288 -119
  994. package/dist/utilities/spread.js +7 -0
  995. package/dist/vscode.html-custom-data.json +202 -95
  996. package/dist/web-types.json +598 -303
  997. package/package.json +4 -1
  998. package/cdn/chunks/chunk.23LEVUAD.js +0 -11
  999. package/cdn/chunks/chunk.2DQM7KR3.js +0 -33
  1000. package/cdn/chunks/chunk.2LZSKJ2T.js +0 -11
  1001. package/cdn/chunks/chunk.2MEQUOQT.js +0 -120
  1002. package/cdn/chunks/chunk.2R5GUAS4.js +0 -93
  1003. package/cdn/chunks/chunk.2ZRKTSMX.js +0 -11
  1004. package/cdn/chunks/chunk.3AHSZRMI.js +0 -21
  1005. package/cdn/chunks/chunk.3DQ7BNHZ.js +0 -11
  1006. package/cdn/chunks/chunk.3GBNNACM.js +0 -28
  1007. package/cdn/chunks/chunk.3IN3JGBF.js +0 -21
  1008. package/cdn/chunks/chunk.3IRFJ4MS.js +0 -11
  1009. package/cdn/chunks/chunk.3QRURD7I.js +0 -391
  1010. package/cdn/chunks/chunk.3WDJGGPP.js +0 -298
  1011. package/cdn/chunks/chunk.4BOWZB3Y.js +0 -302
  1012. package/cdn/chunks/chunk.4MLXM2Q2.js +0 -21
  1013. package/cdn/chunks/chunk.57GYZVBY.js +0 -21
  1014. package/cdn/chunks/chunk.5BFPIXSL.js +0 -11
  1015. package/cdn/chunks/chunk.5GSXGIFL.js +0 -11
  1016. package/cdn/chunks/chunk.5RWZ7VI3.js +0 -244
  1017. package/cdn/chunks/chunk.5SUMIOIU.js +0 -113
  1018. package/cdn/chunks/chunk.622XCQBN.js +0 -21
  1019. package/cdn/chunks/chunk.63IG2JBO.js +0 -186
  1020. package/cdn/chunks/chunk.64HCJCNI.js +0 -255
  1021. package/cdn/chunks/chunk.6MIC4EY5.js +0 -99
  1022. package/cdn/chunks/chunk.6W7LTM2T.js +0 -11
  1023. package/cdn/chunks/chunk.72WPILAC.js +0 -197
  1024. package/cdn/chunks/chunk.7BCM4VPC.js +0 -1124
  1025. package/cdn/chunks/chunk.7FB74Q7I.js +0 -24
  1026. package/cdn/chunks/chunk.7JBGCRPU.js +0 -11
  1027. package/cdn/chunks/chunk.7X3B4SI4.js +0 -11
  1028. package/cdn/chunks/chunk.A4ELXI5A.js +0 -11
  1029. package/cdn/chunks/chunk.A67DT75I.js +0 -156
  1030. package/cdn/chunks/chunk.ADHO6CPR.js +0 -1990
  1031. package/cdn/chunks/chunk.AKG4JRVD.js +0 -11
  1032. package/cdn/chunks/chunk.AQPJESFM.js +0 -11
  1033. package/cdn/chunks/chunk.ARG2AQCR.js +0 -95
  1034. package/cdn/chunks/chunk.AVEHZ7BN.js +0 -25
  1035. package/cdn/chunks/chunk.B6UMYXUN.js +0 -367
  1036. package/cdn/chunks/chunk.BGNYIYEZ.js +0 -45
  1037. package/cdn/chunks/chunk.BIPJBNSR.js +0 -11
  1038. package/cdn/chunks/chunk.BOHUHHB2.js +0 -379
  1039. package/cdn/chunks/chunk.BQM4EFTD.js +0 -586
  1040. package/cdn/chunks/chunk.BQXFJOTS.js +0 -21
  1041. package/cdn/chunks/chunk.BTJSQVOZ.js +0 -21
  1042. package/cdn/chunks/chunk.BUARFHOC.js +0 -24
  1043. package/cdn/chunks/chunk.BWGEM2LO.js +0 -216
  1044. package/cdn/chunks/chunk.BYNKR6YM.js +0 -11
  1045. package/cdn/chunks/chunk.BYXUKV4X.js +0 -336
  1046. package/cdn/chunks/chunk.C2DY4TKR.js +0 -455
  1047. package/cdn/chunks/chunk.C764HI4L.js +0 -24
  1048. package/cdn/chunks/chunk.CAGGHZHZ.js +0 -11
  1049. package/cdn/chunks/chunk.CEKMP3GY.js +0 -28
  1050. package/cdn/chunks/chunk.CJIPDSAV.js +0 -29
  1051. package/cdn/chunks/chunk.CLM7SJO5.js +0 -25
  1052. package/cdn/chunks/chunk.CMIFVAA5.js +0 -75
  1053. package/cdn/chunks/chunk.CMVBJIRG.js +0 -11
  1054. package/cdn/chunks/chunk.D7DBWQOG.js +0 -185
  1055. package/cdn/chunks/chunk.DEAKCJ66.js +0 -16
  1056. package/cdn/chunks/chunk.DLXVTPNS.js +0 -979
  1057. package/cdn/chunks/chunk.DNJTQ2Y7.js +0 -11
  1058. package/cdn/chunks/chunk.DPQTAZXV.js +0 -11
  1059. package/cdn/chunks/chunk.DR5M3QI5.js +0 -21
  1060. package/cdn/chunks/chunk.DTUQJHP5.js +0 -42
  1061. package/cdn/chunks/chunk.DYIBSNEG.js +0 -101
  1062. package/cdn/chunks/chunk.E4IO3LPR.js +0 -24
  1063. package/cdn/chunks/chunk.EFV3N7NN.js +0 -11
  1064. package/cdn/chunks/chunk.EKVQOYN5.js +0 -11
  1065. package/cdn/chunks/chunk.EN6IZDYW.js +0 -186
  1066. package/cdn/chunks/chunk.EOLDHINP.js +0 -24
  1067. package/cdn/chunks/chunk.EPCUFOKP.js +0 -11
  1068. package/cdn/chunks/chunk.ET5BZX7S.js +0 -27
  1069. package/cdn/chunks/chunk.EUIGQH5J.js +0 -11
  1070. package/cdn/chunks/chunk.EYAZDNPG.js +0 -163
  1071. package/cdn/chunks/chunk.FAKWCEXF.js +0 -186
  1072. package/cdn/chunks/chunk.FANLTDNV.js +0 -279
  1073. package/cdn/chunks/chunk.FRQZBLKJ.js +0 -75
  1074. package/cdn/chunks/chunk.FSUIUKO5.js +0 -11
  1075. package/cdn/chunks/chunk.FTIUIMQE.js +0 -11
  1076. package/cdn/chunks/chunk.FWQLDDE5.js +0 -21
  1077. package/cdn/chunks/chunk.FYQMGS2X.js +0 -114
  1078. package/cdn/chunks/chunk.GAFRSKH4.js +0 -108
  1079. package/cdn/chunks/chunk.GB5OWZJX.js +0 -119
  1080. package/cdn/chunks/chunk.GCPKKFNW.js +0 -137
  1081. package/cdn/chunks/chunk.GKTPCOT6.js +0 -11
  1082. package/cdn/chunks/chunk.GMNTE57E.js +0 -267
  1083. package/cdn/chunks/chunk.GMZTJAZL.js +0 -25
  1084. package/cdn/chunks/chunk.GSV23YAG.js +0 -11
  1085. package/cdn/chunks/chunk.H45CY7YS.js +0 -11
  1086. package/cdn/chunks/chunk.H7PLVQKX.js +0 -821
  1087. package/cdn/chunks/chunk.H7XCAV4K.js +0 -24
  1088. package/cdn/chunks/chunk.HD2E6OHH.js +0 -49
  1089. package/cdn/chunks/chunk.HFE55EF2.js +0 -39
  1090. package/cdn/chunks/chunk.HJNGGHHJ.js +0 -11
  1091. package/cdn/chunks/chunk.HSDLV7ZD.js +0 -26
  1092. package/cdn/chunks/chunk.HYLVW7U7.js +0 -103
  1093. package/cdn/chunks/chunk.I7NPEYYT.js +0 -158
  1094. package/cdn/chunks/chunk.IAD2YVQN.js +0 -21
  1095. package/cdn/chunks/chunk.IDZPASV6.js +0 -11
  1096. package/cdn/chunks/chunk.IEBTQFLH.js +0 -21
  1097. package/cdn/chunks/chunk.IHVTSIVV.js +0 -11
  1098. package/cdn/chunks/chunk.IJVUBV4V.js +0 -97
  1099. package/cdn/chunks/chunk.ILT347FT.js +0 -11
  1100. package/cdn/chunks/chunk.IMHLNNT7.js +0 -100
  1101. package/cdn/chunks/chunk.IPM7IFNY.js +0 -11
  1102. package/cdn/chunks/chunk.IS33QEZD.js +0 -24
  1103. package/cdn/chunks/chunk.IXQLNPRF.js +0 -26
  1104. package/cdn/chunks/chunk.IY627F2O.js +0 -54
  1105. package/cdn/chunks/chunk.J2JUWNCI.js +0 -115
  1106. package/cdn/chunks/chunk.J2T3HKZH.js +0 -11
  1107. package/cdn/chunks/chunk.JHJ32V5M.js +0 -11
  1108. package/cdn/chunks/chunk.JHZUFAAR.js +0 -46
  1109. package/cdn/chunks/chunk.JKACP3UT.js +0 -11
  1110. package/cdn/chunks/chunk.JR6MLRGD.js +0 -402
  1111. package/cdn/chunks/chunk.JU77O3AK.js +0 -27
  1112. package/cdn/chunks/chunk.JVOPRJ6L.js +0 -11
  1113. package/cdn/chunks/chunk.JX756U2P.js +0 -11
  1114. package/cdn/chunks/chunk.JYYAJVMY.js +0 -27
  1115. package/cdn/chunks/chunk.K2DR372Y.js +0 -67
  1116. package/cdn/chunks/chunk.K2DTALJC.js +0 -501
  1117. package/cdn/chunks/chunk.KPR25VNY.js +0 -11
  1118. package/cdn/chunks/chunk.KWKKCBZI.js +0 -21
  1119. package/cdn/chunks/chunk.L344MXBL.js +0 -24
  1120. package/cdn/chunks/chunk.LALNQTWY.js +0 -21
  1121. package/cdn/chunks/chunk.LBBMCAAK.js +0 -11
  1122. package/cdn/chunks/chunk.LFJBLFAF.js +0 -25
  1123. package/cdn/chunks/chunk.LNXLFBJF.js +0 -25
  1124. package/cdn/chunks/chunk.LNZZQLSD.js +0 -11
  1125. package/cdn/chunks/chunk.LVLRI4FU.js +0 -153
  1126. package/cdn/chunks/chunk.M25JFF4S.js +0 -11
  1127. package/cdn/chunks/chunk.MENDJ3ES.js +0 -21
  1128. package/cdn/chunks/chunk.MMN6BEAM.js +0 -1879
  1129. package/cdn/chunks/chunk.MTNCCBBC.js +0 -127
  1130. package/cdn/chunks/chunk.MXYQ2YHB.js +0 -127
  1131. package/cdn/chunks/chunk.N46Z5XJ2.js +0 -28
  1132. package/cdn/chunks/chunk.NFYJUZ72.js +0 -27
  1133. package/cdn/chunks/chunk.NOOFLZZ3.js +0 -21
  1134. package/cdn/chunks/chunk.NRRGBRFQ.js +0 -25
  1135. package/cdn/chunks/chunk.NTQAYOOB.js +0 -724
  1136. package/cdn/chunks/chunk.OCNWVR4J.js +0 -236
  1137. package/cdn/chunks/chunk.OUYYS2WY.js +0 -21
  1138. package/cdn/chunks/chunk.OY5V3CPY.js +0 -33
  1139. package/cdn/chunks/chunk.PG3KI7CV.js +0 -233
  1140. package/cdn/chunks/chunk.PYGUMT6D.js +0 -25
  1141. package/cdn/chunks/chunk.Q6EUYTT5.js +0 -11
  1142. package/cdn/chunks/chunk.QCNRKOCR.js +0 -105
  1143. package/cdn/chunks/chunk.QRCSQLDS.js +0 -21
  1144. package/cdn/chunks/chunk.QVZCPPRX.js +0 -24
  1145. package/cdn/chunks/chunk.R5VGZ4LD.js +0 -118
  1146. package/cdn/chunks/chunk.R6B7NPKA.js +0 -11
  1147. package/cdn/chunks/chunk.RBKDUVFD.js +0 -24
  1148. package/cdn/chunks/chunk.RCZ3VAD5.js +0 -299
  1149. package/cdn/chunks/chunk.REFJADYI.js +0 -29
  1150. package/cdn/chunks/chunk.RLDNVYO6.js +0 -142
  1151. package/cdn/chunks/chunk.RNXADPVA.js +0 -11
  1152. package/cdn/chunks/chunk.S4WAIX7T.js +0 -21
  1153. package/cdn/chunks/chunk.S7JPGFFL.js +0 -26
  1154. package/cdn/chunks/chunk.SN2P3DPL.js +0 -11
  1155. package/cdn/chunks/chunk.SNJ5TWRF.js +0 -24
  1156. package/cdn/chunks/chunk.SPNXZ2JR.js +0 -11
  1157. package/cdn/chunks/chunk.SUQHAKBQ.js +0 -11
  1158. package/cdn/chunks/chunk.T2F5SLB3.js +0 -24
  1159. package/cdn/chunks/chunk.T6FDWIJB.js +0 -28
  1160. package/cdn/chunks/chunk.T6QOKWOR.js +0 -79
  1161. package/cdn/chunks/chunk.TJTSA5R4.js +0 -82
  1162. package/cdn/chunks/chunk.TLEAVCNN.js +0 -73
  1163. package/cdn/chunks/chunk.TNBXYFZT.js +0 -291
  1164. package/cdn/chunks/chunk.TSTTKLCU.js +0 -11
  1165. package/cdn/chunks/chunk.TWATOU7Q.js +0 -87
  1166. package/cdn/chunks/chunk.U2JDACQS.js +0 -123
  1167. package/cdn/chunks/chunk.U3SRV2F4.js +0 -75
  1168. package/cdn/chunks/chunk.U6LIZH2N.js +0 -258
  1169. package/cdn/chunks/chunk.UG75OYIV.js +0 -21
  1170. package/cdn/chunks/chunk.UGXEFRCT.js +0 -11
  1171. package/cdn/chunks/chunk.UPXT4IT3.js +0 -55
  1172. package/cdn/chunks/chunk.VCIOYUM7.js +0 -21
  1173. package/cdn/chunks/chunk.VEIVN3WO.js +0 -25
  1174. package/cdn/chunks/chunk.VG7IHWCP.js +0 -11
  1175. package/cdn/chunks/chunk.VJH5TNQS.js +0 -11
  1176. package/cdn/chunks/chunk.VKHUSJ7O.js +0 -25
  1177. package/cdn/chunks/chunk.VM65EBLN.js +0 -302
  1178. package/cdn/chunks/chunk.VNXQLD5E.js +0 -21
  1179. package/cdn/chunks/chunk.VT5AKGJP.js +0 -11
  1180. package/cdn/chunks/chunk.VV24KCRD.js +0 -292
  1181. package/cdn/chunks/chunk.VVX2RMFN.js +0 -24
  1182. package/cdn/chunks/chunk.W5YWNJ3F.js +0 -50
  1183. package/cdn/chunks/chunk.WDULR4A5.js +0 -63
  1184. package/cdn/chunks/chunk.WEXY47CC.js +0 -11
  1185. package/cdn/chunks/chunk.WMKP2YBP.js +0 -346
  1186. package/cdn/chunks/chunk.WOFTPMUN.js +0 -77
  1187. package/cdn/chunks/chunk.WPAIOHRM.js +0 -36
  1188. package/cdn/chunks/chunk.X2PCFGVF.js +0 -314
  1189. package/cdn/chunks/chunk.XJMOUI5V.js +0 -11
  1190. package/cdn/chunks/chunk.XK4LBXDT.js +0 -21
  1191. package/cdn/chunks/chunk.XP2SN5TY.js +0 -28
  1192. package/cdn/chunks/chunk.XQZ75PG6.js +0 -11
  1193. package/cdn/chunks/chunk.Y5DKBB6S.js +0 -29
  1194. package/cdn/chunks/chunk.YBDLYSR6.js +0 -11
  1195. package/cdn/chunks/chunk.YCOYO5Q5.js +0 -29
  1196. package/cdn/chunks/chunk.YO2RCZB4.js +0 -27
  1197. package/cdn/chunks/chunk.YPCLW4PZ.js +0 -122
  1198. package/cdn/chunks/chunk.YQCNCHZK.js +0 -2665
  1199. package/cdn/chunks/chunk.YSDEXDWJ.js +0 -63
  1200. package/cdn/chunks/chunk.YSZADQYN.js +0 -21
  1201. package/cdn/chunks/chunk.YUBWOTKQ.js +0 -135
  1202. package/cdn/chunks/chunk.Z67N6G2D.js +0 -11
  1203. package/cdn/chunks/chunk.ZBHMCLJF.js +0 -49
  1204. package/cdn/chunks/chunk.ZHDYZSPI.js +0 -361
  1205. package/cdn/chunks/chunk.ZHRDFBUU.js +0 -390
  1206. package/cdn/chunks/chunk.ZHXVLA3K.js +0 -11
  1207. package/cdn/chunks/chunk.ZNVXAGZ3.js +0 -128
  1208. package/dist/chunks/chunk.22LMB5ZP.js +0 -384
  1209. package/dist/chunks/chunk.23ZAVB4X.js +0 -388
  1210. package/dist/chunks/chunk.2FMGJK4E.js +0 -21
  1211. package/dist/chunks/chunk.2MZ7OOZO.js +0 -11
  1212. package/dist/chunks/chunk.2RFPHSI5.js +0 -11
  1213. package/dist/chunks/chunk.2ZVVWOR6.js +0 -91
  1214. package/dist/chunks/chunk.37BW2NNU.js +0 -11
  1215. package/dist/chunks/chunk.3AUHAYQF.js +0 -11
  1216. package/dist/chunks/chunk.3FSCZMKR.js +0 -11
  1217. package/dist/chunks/chunk.3N56WNRQ.js +0 -33
  1218. package/dist/chunks/chunk.3PLRXNOC.js +0 -21
  1219. package/dist/chunks/chunk.425FPMNI.js +0 -21
  1220. package/dist/chunks/chunk.44FLCGTL.js +0 -11
  1221. package/dist/chunks/chunk.4FMSGOJY.js +0 -27
  1222. package/dist/chunks/chunk.4IGL2EUS.js +0 -11
  1223. package/dist/chunks/chunk.4J5RMZ66.js +0 -21
  1224. package/dist/chunks/chunk.4NWKJATC.js +0 -274
  1225. package/dist/chunks/chunk.4UW565YL.js +0 -21
  1226. package/dist/chunks/chunk.552GI5TU.js +0 -21
  1227. package/dist/chunks/chunk.5MTSKPDY.js +0 -11
  1228. package/dist/chunks/chunk.5P75LPWV.js +0 -286
  1229. package/dist/chunks/chunk.5PSER7UV.js +0 -27
  1230. package/dist/chunks/chunk.5SW72M24.js +0 -813
  1231. package/dist/chunks/chunk.5VOJ3AWX.js +0 -21
  1232. package/dist/chunks/chunk.5XJCQVEK.js +0 -11
  1233. package/dist/chunks/chunk.6AGGHDKH.js +0 -11
  1234. package/dist/chunks/chunk.6DPE65CH.js +0 -119
  1235. package/dist/chunks/chunk.6DTQ2RST.js +0 -28
  1236. package/dist/chunks/chunk.6KE6SBMU.js +0 -182
  1237. package/dist/chunks/chunk.6MPAPKHR.js +0 -21
  1238. package/dist/chunks/chunk.6X2IWQFG.js +0 -80
  1239. package/dist/chunks/chunk.6YT6UDXE.js +0 -134
  1240. package/dist/chunks/chunk.7EXDF63O.js +0 -24
  1241. package/dist/chunks/chunk.7GJXD3DO.js +0 -28
  1242. package/dist/chunks/chunk.7NUBXZK7.js +0 -29
  1243. package/dist/chunks/chunk.A5D6FTFY.js +0 -72
  1244. package/dist/chunks/chunk.ACPYFT2E.js +0 -28
  1245. package/dist/chunks/chunk.ALA4QTHP.js +0 -21
  1246. package/dist/chunks/chunk.AWG34B4U.js +0 -11
  1247. package/dist/chunks/chunk.BLOSLBZ6.js +0 -28
  1248. package/dist/chunks/chunk.BRQKZQRB.js +0 -160
  1249. package/dist/chunks/chunk.BWI5ZFZ5.js +0 -11
  1250. package/dist/chunks/chunk.BZ2VS2FQ.js +0 -75
  1251. package/dist/chunks/chunk.BZZRVFFY.js +0 -213
  1252. package/dist/chunks/chunk.C2TY2O26.js +0 -100
  1253. package/dist/chunks/chunk.C4P7XNPA.js +0 -25
  1254. package/dist/chunks/chunk.CAYMZ4EW.js +0 -11
  1255. package/dist/chunks/chunk.CCBQATE7.js +0 -25
  1256. package/dist/chunks/chunk.CKWA764R.js +0 -11
  1257. package/dist/chunks/chunk.CMME3D5G.js +0 -25
  1258. package/dist/chunks/chunk.CNMNUZLG.js +0 -72
  1259. package/dist/chunks/chunk.CSB2UAJC.js +0 -26
  1260. package/dist/chunks/chunk.CY435P5S.js +0 -21
  1261. package/dist/chunks/chunk.D2S5RSAL.js +0 -100
  1262. package/dist/chunks/chunk.DEAKCJ66.js +0 -16
  1263. package/dist/chunks/chunk.DFNJ6YO5.js +0 -22
  1264. package/dist/chunks/chunk.DFQZR62N.js +0 -24
  1265. package/dist/chunks/chunk.DJXNG3EF.js +0 -28
  1266. package/dist/chunks/chunk.DOSUJ44B.js +0 -227
  1267. package/dist/chunks/chunk.DWC5QG4U.js +0 -26
  1268. package/dist/chunks/chunk.DWRJLFY6.js +0 -11
  1269. package/dist/chunks/chunk.DY7Q3C4A.js +0 -293
  1270. package/dist/chunks/chunk.ERF3RTMM.js +0 -11
  1271. package/dist/chunks/chunk.EXPNO7Z4.js +0 -25
  1272. package/dist/chunks/chunk.EXR7TTO7.js +0 -93
  1273. package/dist/chunks/chunk.F2MBKXHT.js +0 -29
  1274. package/dist/chunks/chunk.FBKBSND6.js +0 -42
  1275. package/dist/chunks/chunk.FEWYZRCL.js +0 -11
  1276. package/dist/chunks/chunk.FH5BAGDM.js +0 -11
  1277. package/dist/chunks/chunk.FPZJLXNX.js +0 -183
  1278. package/dist/chunks/chunk.FUZUDCOO.js +0 -11
  1279. package/dist/chunks/chunk.FYVEEY2H.js +0 -11
  1280. package/dist/chunks/chunk.G47LKPQO.js +0 -21
  1281. package/dist/chunks/chunk.G5RKA5HF.js +0 -124
  1282. package/dist/chunks/chunk.G7EHMN5V.js +0 -11
  1283. package/dist/chunks/chunk.GW7OPBRP.js +0 -21
  1284. package/dist/chunks/chunk.GZ3345ZF.js +0 -59
  1285. package/dist/chunks/chunk.H27LJJR5.js +0 -42
  1286. package/dist/chunks/chunk.H2HGAU4C.js +0 -11
  1287. package/dist/chunks/chunk.H4OCEP76.js +0 -25
  1288. package/dist/chunks/chunk.HBBG247C.js +0 -11
  1289. package/dist/chunks/chunk.HIFL5MTW.js +0 -11
  1290. package/dist/chunks/chunk.HRAFWQWD.js +0 -113
  1291. package/dist/chunks/chunk.HUI4WJKN.js +0 -105
  1292. package/dist/chunks/chunk.HV7LH2XE.js +0 -73
  1293. package/dist/chunks/chunk.HZY36HHO.js +0 -181
  1294. package/dist/chunks/chunk.I56YA2FE.js +0 -109
  1295. package/dist/chunks/chunk.I5WFQYZE.js +0 -11
  1296. package/dist/chunks/chunk.ICQBJXN3.js +0 -11
  1297. package/dist/chunks/chunk.IE4TYRVL.js +0 -11
  1298. package/dist/chunks/chunk.IFNZ32RQ.js +0 -25
  1299. package/dist/chunks/chunk.IGTQGR6B.js +0 -63
  1300. package/dist/chunks/chunk.IJKSR74B.js +0 -315
  1301. package/dist/chunks/chunk.INDYAKUU.js +0 -45
  1302. package/dist/chunks/chunk.IO6GTQTU.js +0 -21
  1303. package/dist/chunks/chunk.J5VWABYY.js +0 -90
  1304. package/dist/chunks/chunk.JK5NL6H3.js +0 -50
  1305. package/dist/chunks/chunk.JZD6EXKN.js +0 -11
  1306. package/dist/chunks/chunk.K32TBGQR.js +0 -337
  1307. package/dist/chunks/chunk.KBYTZHEC.js +0 -259
  1308. package/dist/chunks/chunk.KE2QIWDZ.js +0 -192
  1309. package/dist/chunks/chunk.KMDC56K4.js +0 -11
  1310. package/dist/chunks/chunk.KMYFAKWZ.js +0 -550
  1311. package/dist/chunks/chunk.KQLHZWQ7.js +0 -25
  1312. package/dist/chunks/chunk.KQS4F4RW.js +0 -22
  1313. package/dist/chunks/chunk.KTFDDZEN.js +0 -27
  1314. package/dist/chunks/chunk.KUQYGN2L.js +0 -113
  1315. package/dist/chunks/chunk.KV3DKCCD.js +0 -11
  1316. package/dist/chunks/chunk.L3HJRGSC.js +0 -85
  1317. package/dist/chunks/chunk.LBKZB3BB.js +0 -11
  1318. package/dist/chunks/chunk.LEQAHGT3.js +0 -1123
  1319. package/dist/chunks/chunk.LJE7KQQL.js +0 -24
  1320. package/dist/chunks/chunk.LNJ4HBRW.js +0 -11
  1321. package/dist/chunks/chunk.LQPRP3BV.js +0 -371
  1322. package/dist/chunks/chunk.LUZBSSAH.js +0 -280
  1323. package/dist/chunks/chunk.LWFN7XDP.js +0 -135
  1324. package/dist/chunks/chunk.LZCI2IZ7.js +0 -24
  1325. package/dist/chunks/chunk.M23X7ZHU.js +0 -11
  1326. package/dist/chunks/chunk.M7K53O4E.js +0 -21
  1327. package/dist/chunks/chunk.MB2BGI3T.js +0 -311
  1328. package/dist/chunks/chunk.MCQ3MIFP.js +0 -21
  1329. package/dist/chunks/chunk.MT7VKMYW.js +0 -493
  1330. package/dist/chunks/chunk.MWB25UWL.js +0 -11
  1331. package/dist/chunks/chunk.MXD5MH5O.js +0 -11
  1332. package/dist/chunks/chunk.NC5OWGIQ.js +0 -11
  1333. package/dist/chunks/chunk.NFUAPOOQ.js +0 -24
  1334. package/dist/chunks/chunk.NOWJUAPU.js +0 -122
  1335. package/dist/chunks/chunk.O37GRY54.js +0 -67
  1336. package/dist/chunks/chunk.O7FCHNBV.js +0 -24
  1337. package/dist/chunks/chunk.OFLRRM34.js +0 -21
  1338. package/dist/chunks/chunk.OJECNAFS.js +0 -11
  1339. package/dist/chunks/chunk.OOCI6WMY.js +0 -97
  1340. package/dist/chunks/chunk.OW7F7LI7.js +0 -231
  1341. package/dist/chunks/chunk.OX23FNIL.js +0 -21
  1342. package/dist/chunks/chunk.PHKH7OCN.js +0 -11
  1343. package/dist/chunks/chunk.PIMYNUWJ.js +0 -26
  1344. package/dist/chunks/chunk.PN7WYPLJ.js +0 -949
  1345. package/dist/chunks/chunk.PVSB7573.js +0 -11
  1346. package/dist/chunks/chunk.PYJTGWJI.js +0 -11
  1347. package/dist/chunks/chunk.PYPURIG4.js +0 -126
  1348. package/dist/chunks/chunk.Q2JWMPGU.js +0 -11
  1349. package/dist/chunks/chunk.QMFGY2QT.js +0 -45
  1350. package/dist/chunks/chunk.QNQR32EM.js +0 -52
  1351. package/dist/chunks/chunk.QOHGG35L.js +0 -11
  1352. package/dist/chunks/chunk.QUMJEIU5.js +0 -21
  1353. package/dist/chunks/chunk.QXJEFE7H.js +0 -11
  1354. package/dist/chunks/chunk.ROFEO45L.js +0 -25
  1355. package/dist/chunks/chunk.RPKIOXBP.js +0 -11
  1356. package/dist/chunks/chunk.RTBKCEHA.js +0 -11
  1357. package/dist/chunks/chunk.RXKXJ2SA.js +0 -397
  1358. package/dist/chunks/chunk.S57JXMIN.js +0 -11
  1359. package/dist/chunks/chunk.S6WWKWOZ.js +0 -11
  1360. package/dist/chunks/chunk.SLQ3TLSD.js +0 -11
  1361. package/dist/chunks/chunk.SMV2BLGG.js +0 -24
  1362. package/dist/chunks/chunk.SO7CGB7F.js +0 -11
  1363. package/dist/chunks/chunk.SSIK4ZGV.js +0 -291
  1364. package/dist/chunks/chunk.T45WUXF7.js +0 -11
  1365. package/dist/chunks/chunk.TDYDKTQ6.js +0 -11
  1366. package/dist/chunks/chunk.TEEYQFIV.js +0 -29
  1367. package/dist/chunks/chunk.TKM2LWRJ.js +0 -24
  1368. package/dist/chunks/chunk.TNMOEHS2.js +0 -294
  1369. package/dist/chunks/chunk.UPHI7XHQ.js +0 -147
  1370. package/dist/chunks/chunk.URUWFFVY.js +0 -75
  1371. package/dist/chunks/chunk.V2OL7VMD.js +0 -120
  1372. package/dist/chunks/chunk.V5S6DIWQ.js +0 -24
  1373. package/dist/chunks/chunk.VKZADIVB.js +0 -34
  1374. package/dist/chunks/chunk.W3F2ZIUM.js +0 -25
  1375. package/dist/chunks/chunk.W45PEBK2.js +0 -29
  1376. package/dist/chunks/chunk.W65XZQUC.js +0 -21
  1377. package/dist/chunks/chunk.WHRP6GOV.js +0 -27
  1378. package/dist/chunks/chunk.WIZKJV2W.js +0 -11
  1379. package/dist/chunks/chunk.WQC6OWUE.js +0 -96
  1380. package/dist/chunks/chunk.WS5RHS4G.js +0 -11
  1381. package/dist/chunks/chunk.XF4NXZUN.js +0 -60
  1382. package/dist/chunks/chunk.XJMVHGGE.js +0 -11
  1383. package/dist/chunks/chunk.XJU7WU2G.js +0 -241
  1384. package/dist/chunks/chunk.XLKWO55H.js +0 -21
  1385. package/dist/chunks/chunk.XMAMNYGV.js +0 -117
  1386. package/dist/chunks/chunk.XPU5YU3S.js +0 -111
  1387. package/dist/chunks/chunk.XRG4AMUL.js +0 -448
  1388. package/dist/chunks/chunk.XU4SWNZ5.js +0 -11
  1389. package/dist/chunks/chunk.XUHKT4XR.js +0 -361
  1390. package/dist/chunks/chunk.XWHXWF67.js +0 -180
  1391. package/dist/chunks/chunk.Y2LLE55K.js +0 -247
  1392. package/dist/chunks/chunk.Y3JGTJDM.js +0 -21
  1393. package/dist/chunks/chunk.Y7D4ZNRS.js +0 -21
  1394. package/dist/chunks/chunk.Y7NL3JM7.js +0 -11
  1395. package/dist/chunks/chunk.YFUR5BLL.js +0 -96
  1396. package/dist/chunks/chunk.YHRMKFU2.js +0 -417
  1397. package/dist/chunks/chunk.YOF7YCGP.js +0 -25
  1398. package/dist/chunks/chunk.YTIFDWTT.js +0 -24
  1399. package/dist/chunks/chunk.YY5HDA3O.js +0 -21
  1400. package/dist/chunks/chunk.Z2OSGQYG.js +0 -151
  1401. package/dist/chunks/chunk.ZDNHA3FE.js +0 -116
  1402. package/dist/chunks/chunk.ZFAPC5IL.js +0 -11
  1403. package/dist/chunks/chunk.ZNPUJHGL.js +0 -11
  1404. package/dist/chunks/chunk.ZO4ROWAE.js +0 -26
  1405. package/dist/chunks/chunk.ZQBGF74C.js +0 -24
  1406. package/dist/chunks/chunk.ZU34TALF.js +0 -11
@@ -1,2665 +0,0 @@
1
- import {
2
- __objRest,
3
- __publicField,
4
- __restKey,
5
- __spreadProps,
6
- __spreadValues
7
- } from "./chunk.IMHLNNT7.js";
8
-
9
- // node_modules/@tanstack/table-core/build/lib/index.mjs
10
- function createColumnHelper() {
11
- return {
12
- accessor: (accessor, column) => {
13
- return typeof accessor === "function" ? __spreadProps(__spreadValues({}, column), {
14
- accessorFn: accessor
15
- }) : __spreadProps(__spreadValues({}, column), {
16
- accessorKey: accessor
17
- });
18
- },
19
- display: (column) => column,
20
- group: (column) => column
21
- };
22
- }
23
- function functionalUpdate(updater, input) {
24
- return typeof updater === "function" ? updater(input) : updater;
25
- }
26
- function makeStateUpdater(key, instance) {
27
- return (updater) => {
28
- instance.setState((old) => {
29
- return __spreadProps(__spreadValues({}, old), {
30
- [key]: functionalUpdate(updater, old[key])
31
- });
32
- });
33
- };
34
- }
35
- function isFunction(d) {
36
- return d instanceof Function;
37
- }
38
- function isNumberArray(d) {
39
- return Array.isArray(d) && d.every((val) => typeof val === "number");
40
- }
41
- function flattenBy(arr, getChildren) {
42
- const flat = [];
43
- const recurse = (subArr) => {
44
- subArr.forEach((item) => {
45
- flat.push(item);
46
- const children = getChildren(item);
47
- if (children != null && children.length) {
48
- recurse(children);
49
- }
50
- });
51
- };
52
- recurse(arr);
53
- return flat;
54
- }
55
- function memo(getDeps, fn, opts) {
56
- let deps = [];
57
- let result;
58
- return (depArgs) => {
59
- let depTime;
60
- if (opts.key && opts.debug) depTime = Date.now();
61
- const newDeps = getDeps(depArgs);
62
- const depsChanged = newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep);
63
- if (!depsChanged) {
64
- return result;
65
- }
66
- deps = newDeps;
67
- let resultTime;
68
- if (opts.key && opts.debug) resultTime = Date.now();
69
- result = fn(...newDeps);
70
- opts == null || opts.onChange == null || opts.onChange(result);
71
- if (opts.key && opts.debug) {
72
- if (opts != null && opts.debug()) {
73
- const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
74
- const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
75
- const resultFpsPercentage = resultEndTime / 16;
76
- const pad = (str, num) => {
77
- str = String(str);
78
- while (str.length < num) {
79
- str = " " + str;
80
- }
81
- return str;
82
- };
83
- console.info(`%c\u23F1 ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
84
- font-size: .6rem;
85
- font-weight: bold;
86
- color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
87
- }
88
- }
89
- return result;
90
- };
91
- }
92
- function getMemoOptions(tableOptions, debugLevel, key, onChange) {
93
- return {
94
- debug: () => {
95
- var _tableOptions$debugAl;
96
- return (_tableOptions$debugAl = tableOptions == null ? void 0 : tableOptions.debugAll) != null ? _tableOptions$debugAl : tableOptions[debugLevel];
97
- },
98
- key: false,
99
- onChange
100
- };
101
- }
102
- function createCell(table, row, column, columnId) {
103
- const getRenderValue = () => {
104
- var _cell$getValue;
105
- return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : table.options.renderFallbackValue;
106
- };
107
- const cell = {
108
- id: `${row.id}_${column.id}`,
109
- row,
110
- column,
111
- getValue: () => row.getValue(columnId),
112
- renderValue: getRenderValue,
113
- getContext: memo(() => [table, column, row, cell], (table2, column2, row2, cell2) => ({
114
- table: table2,
115
- column: column2,
116
- row: row2,
117
- cell: cell2,
118
- getValue: cell2.getValue,
119
- renderValue: cell2.renderValue
120
- }), getMemoOptions(table.options, "debugCells", "cell.getContext"))
121
- };
122
- table._features.forEach((feature) => {
123
- feature.createCell == null || feature.createCell(cell, column, row, table);
124
- }, {});
125
- return cell;
126
- }
127
- function createColumn(table, columnDef, depth, parent) {
128
- var _ref, _resolvedColumnDef$id;
129
- const defaultColumn = table._getDefaultColumnDef();
130
- const resolvedColumnDef = __spreadValues(__spreadValues({}, defaultColumn), columnDef);
131
- const accessorKey = resolvedColumnDef.accessorKey;
132
- let id = (_ref = (_resolvedColumnDef$id = resolvedColumnDef.id) != null ? _resolvedColumnDef$id : accessorKey ? typeof String.prototype.replaceAll === "function" ? accessorKey.replaceAll(".", "_") : accessorKey.replace(/\./g, "_") : void 0) != null ? _ref : typeof resolvedColumnDef.header === "string" ? resolvedColumnDef.header : void 0;
133
- let accessorFn;
134
- if (resolvedColumnDef.accessorFn) {
135
- accessorFn = resolvedColumnDef.accessorFn;
136
- } else if (accessorKey) {
137
- if (accessorKey.includes(".")) {
138
- accessorFn = (originalRow) => {
139
- let result = originalRow;
140
- for (const key of accessorKey.split(".")) {
141
- var _result;
142
- result = (_result = result) == null ? void 0 : _result[key];
143
- if (false) {
144
- console.warn(`"${key}" in deeply nested key "${accessorKey}" returned undefined.`);
145
- }
146
- }
147
- return result;
148
- };
149
- } else {
150
- accessorFn = (originalRow) => originalRow[resolvedColumnDef.accessorKey];
151
- }
152
- }
153
- if (!id) {
154
- if (false) {
155
- throw new Error(resolvedColumnDef.accessorFn ? `Columns require an id when using an accessorFn` : `Columns require an id when using a non-string header`);
156
- }
157
- throw new Error();
158
- }
159
- let column = {
160
- id: `${String(id)}`,
161
- accessorFn,
162
- parent,
163
- depth,
164
- columnDef: resolvedColumnDef,
165
- columns: [],
166
- getFlatColumns: memo(() => [true], () => {
167
- var _column$columns;
168
- return [column, ...(_column$columns = column.columns) == null ? void 0 : _column$columns.flatMap((d) => d.getFlatColumns())];
169
- }, getMemoOptions(table.options, "debugColumns", "column.getFlatColumns")),
170
- getLeafColumns: memo(() => [table._getOrderColumnsFn()], (orderColumns2) => {
171
- var _column$columns2;
172
- if ((_column$columns2 = column.columns) != null && _column$columns2.length) {
173
- let leafColumns = column.columns.flatMap((column2) => column2.getLeafColumns());
174
- return orderColumns2(leafColumns);
175
- }
176
- return [column];
177
- }, getMemoOptions(table.options, "debugColumns", "column.getLeafColumns"))
178
- };
179
- for (const feature of table._features) {
180
- feature.createColumn == null || feature.createColumn(column, table);
181
- }
182
- return column;
183
- }
184
- var debug = "debugHeaders";
185
- function createHeader(table, column, options) {
186
- var _options$id;
187
- const id = (_options$id = options.id) != null ? _options$id : column.id;
188
- let header = {
189
- id,
190
- column,
191
- index: options.index,
192
- isPlaceholder: !!options.isPlaceholder,
193
- placeholderId: options.placeholderId,
194
- depth: options.depth,
195
- subHeaders: [],
196
- colSpan: 0,
197
- rowSpan: 0,
198
- headerGroup: null,
199
- getLeafHeaders: () => {
200
- const leafHeaders = [];
201
- const recurseHeader = (h) => {
202
- if (h.subHeaders && h.subHeaders.length) {
203
- h.subHeaders.map(recurseHeader);
204
- }
205
- leafHeaders.push(h);
206
- };
207
- recurseHeader(header);
208
- return leafHeaders;
209
- },
210
- getContext: () => ({
211
- table,
212
- header,
213
- column
214
- })
215
- };
216
- table._features.forEach((feature) => {
217
- feature.createHeader == null || feature.createHeader(header, table);
218
- });
219
- return header;
220
- }
221
- var Headers = {
222
- createTable: (table) => {
223
- table.getHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
224
- var _left$map$filter, _right$map$filter;
225
- const leftColumns = (_left$map$filter = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
226
- const rightColumns = (_right$map$filter = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
227
- const centerColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
228
- const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], table);
229
- return headerGroups;
230
- }, getMemoOptions(table.options, debug, "getHeaderGroups"));
231
- table.getCenterHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
232
- leafColumns = leafColumns.filter((column) => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
233
- return buildHeaderGroups(allColumns, leafColumns, table, "center");
234
- }, getMemoOptions(table.options, debug, "getCenterHeaderGroups"));
235
- table.getLeftHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.left], (allColumns, leafColumns, left) => {
236
- var _left$map$filter2;
237
- const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
238
- return buildHeaderGroups(allColumns, orderedLeafColumns, table, "left");
239
- }, getMemoOptions(table.options, debug, "getLeftHeaderGroups"));
240
- table.getRightHeaderGroups = memo(() => [table.getAllColumns(), table.getVisibleLeafColumns(), table.getState().columnPinning.right], (allColumns, leafColumns, right) => {
241
- var _right$map$filter2;
242
- const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map((columnId) => leafColumns.find((d) => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
243
- return buildHeaderGroups(allColumns, orderedLeafColumns, table, "right");
244
- }, getMemoOptions(table.options, debug, "getRightHeaderGroups"));
245
- table.getFooterGroups = memo(() => [table.getHeaderGroups()], (headerGroups) => {
246
- return [...headerGroups].reverse();
247
- }, getMemoOptions(table.options, debug, "getFooterGroups"));
248
- table.getLeftFooterGroups = memo(() => [table.getLeftHeaderGroups()], (headerGroups) => {
249
- return [...headerGroups].reverse();
250
- }, getMemoOptions(table.options, debug, "getLeftFooterGroups"));
251
- table.getCenterFooterGroups = memo(() => [table.getCenterHeaderGroups()], (headerGroups) => {
252
- return [...headerGroups].reverse();
253
- }, getMemoOptions(table.options, debug, "getCenterFooterGroups"));
254
- table.getRightFooterGroups = memo(() => [table.getRightHeaderGroups()], (headerGroups) => {
255
- return [...headerGroups].reverse();
256
- }, getMemoOptions(table.options, debug, "getRightFooterGroups"));
257
- table.getFlatHeaders = memo(() => [table.getHeaderGroups()], (headerGroups) => {
258
- return headerGroups.map((headerGroup) => {
259
- return headerGroup.headers;
260
- }).flat();
261
- }, getMemoOptions(table.options, debug, "getFlatHeaders"));
262
- table.getLeftFlatHeaders = memo(() => [table.getLeftHeaderGroups()], (left) => {
263
- return left.map((headerGroup) => {
264
- return headerGroup.headers;
265
- }).flat();
266
- }, getMemoOptions(table.options, debug, "getLeftFlatHeaders"));
267
- table.getCenterFlatHeaders = memo(() => [table.getCenterHeaderGroups()], (left) => {
268
- return left.map((headerGroup) => {
269
- return headerGroup.headers;
270
- }).flat();
271
- }, getMemoOptions(table.options, debug, "getCenterFlatHeaders"));
272
- table.getRightFlatHeaders = memo(() => [table.getRightHeaderGroups()], (left) => {
273
- return left.map((headerGroup) => {
274
- return headerGroup.headers;
275
- }).flat();
276
- }, getMemoOptions(table.options, debug, "getRightFlatHeaders"));
277
- table.getCenterLeafHeaders = memo(() => [table.getCenterFlatHeaders()], (flatHeaders) => {
278
- return flatHeaders.filter((header) => {
279
- var _header$subHeaders;
280
- return !((_header$subHeaders = header.subHeaders) != null && _header$subHeaders.length);
281
- });
282
- }, getMemoOptions(table.options, debug, "getCenterLeafHeaders"));
283
- table.getLeftLeafHeaders = memo(() => [table.getLeftFlatHeaders()], (flatHeaders) => {
284
- return flatHeaders.filter((header) => {
285
- var _header$subHeaders2;
286
- return !((_header$subHeaders2 = header.subHeaders) != null && _header$subHeaders2.length);
287
- });
288
- }, getMemoOptions(table.options, debug, "getLeftLeafHeaders"));
289
- table.getRightLeafHeaders = memo(() => [table.getRightFlatHeaders()], (flatHeaders) => {
290
- return flatHeaders.filter((header) => {
291
- var _header$subHeaders3;
292
- return !((_header$subHeaders3 = header.subHeaders) != null && _header$subHeaders3.length);
293
- });
294
- }, getMemoOptions(table.options, debug, "getRightLeafHeaders"));
295
- table.getLeafHeaders = memo(() => [table.getLeftHeaderGroups(), table.getCenterHeaderGroups(), table.getRightHeaderGroups()], (left, center, right) => {
296
- var _left$0$headers, _left$, _center$0$headers, _center$, _right$0$headers, _right$;
297
- return [...(_left$0$headers = (_left$ = left[0]) == null ? void 0 : _left$.headers) != null ? _left$0$headers : [], ...(_center$0$headers = (_center$ = center[0]) == null ? void 0 : _center$.headers) != null ? _center$0$headers : [], ...(_right$0$headers = (_right$ = right[0]) == null ? void 0 : _right$.headers) != null ? _right$0$headers : []].map((header) => {
298
- return header.getLeafHeaders();
299
- }).flat();
300
- }, getMemoOptions(table.options, debug, "getLeafHeaders"));
301
- }
302
- };
303
- function buildHeaderGroups(allColumns, columnsToGroup, table, headerFamily) {
304
- var _headerGroups$0$heade, _headerGroups$;
305
- let maxDepth = 0;
306
- const findMaxDepth = function(columns, depth) {
307
- if (depth === void 0) {
308
- depth = 1;
309
- }
310
- maxDepth = Math.max(maxDepth, depth);
311
- columns.filter((column) => column.getIsVisible()).forEach((column) => {
312
- var _column$columns;
313
- if ((_column$columns = column.columns) != null && _column$columns.length) {
314
- findMaxDepth(column.columns, depth + 1);
315
- }
316
- }, 0);
317
- };
318
- findMaxDepth(allColumns);
319
- let headerGroups = [];
320
- const createHeaderGroup = (headersToGroup, depth) => {
321
- const headerGroup = {
322
- depth,
323
- id: [headerFamily, `${depth}`].filter(Boolean).join("_"),
324
- headers: []
325
- };
326
- const pendingParentHeaders = [];
327
- headersToGroup.forEach((headerToGroup) => {
328
- const latestPendingParentHeader = [...pendingParentHeaders].reverse()[0];
329
- const isLeafHeader = headerToGroup.column.depth === headerGroup.depth;
330
- let column;
331
- let isPlaceholder = false;
332
- if (isLeafHeader && headerToGroup.column.parent) {
333
- column = headerToGroup.column.parent;
334
- } else {
335
- column = headerToGroup.column;
336
- isPlaceholder = true;
337
- }
338
- if (latestPendingParentHeader && (latestPendingParentHeader == null ? void 0 : latestPendingParentHeader.column) === column) {
339
- latestPendingParentHeader.subHeaders.push(headerToGroup);
340
- } else {
341
- const header = createHeader(table, column, {
342
- id: [headerFamily, depth, column.id, headerToGroup == null ? void 0 : headerToGroup.id].filter(Boolean).join("_"),
343
- isPlaceholder,
344
- placeholderId: isPlaceholder ? `${pendingParentHeaders.filter((d) => d.column === column).length}` : void 0,
345
- depth,
346
- index: pendingParentHeaders.length
347
- });
348
- header.subHeaders.push(headerToGroup);
349
- pendingParentHeaders.push(header);
350
- }
351
- headerGroup.headers.push(headerToGroup);
352
- headerToGroup.headerGroup = headerGroup;
353
- });
354
- headerGroups.push(headerGroup);
355
- if (depth > 0) {
356
- createHeaderGroup(pendingParentHeaders, depth - 1);
357
- }
358
- };
359
- const bottomHeaders = columnsToGroup.map((column, index) => createHeader(table, column, {
360
- depth: maxDepth,
361
- index
362
- }));
363
- createHeaderGroup(bottomHeaders, maxDepth - 1);
364
- headerGroups.reverse();
365
- const recurseHeadersForSpans = (headers) => {
366
- const filteredHeaders = headers.filter((header) => header.column.getIsVisible());
367
- return filteredHeaders.map((header) => {
368
- let colSpan = 0;
369
- let rowSpan = 0;
370
- let childRowSpans = [0];
371
- if (header.subHeaders && header.subHeaders.length) {
372
- childRowSpans = [];
373
- recurseHeadersForSpans(header.subHeaders).forEach((_ref) => {
374
- let {
375
- colSpan: childColSpan,
376
- rowSpan: childRowSpan
377
- } = _ref;
378
- colSpan += childColSpan;
379
- childRowSpans.push(childRowSpan);
380
- });
381
- } else {
382
- colSpan = 1;
383
- }
384
- const minChildRowSpan = Math.min(...childRowSpans);
385
- rowSpan = rowSpan + minChildRowSpan;
386
- header.colSpan = colSpan;
387
- header.rowSpan = rowSpan;
388
- return {
389
- colSpan,
390
- rowSpan
391
- };
392
- });
393
- };
394
- recurseHeadersForSpans((_headerGroups$0$heade = (_headerGroups$ = headerGroups[0]) == null ? void 0 : _headerGroups$.headers) != null ? _headerGroups$0$heade : []);
395
- return headerGroups;
396
- }
397
- var createRow = (table, id, original, rowIndex, depth, subRows, parentId) => {
398
- let row = {
399
- id,
400
- index: rowIndex,
401
- original,
402
- depth,
403
- parentId,
404
- _valuesCache: {},
405
- _uniqueValuesCache: {},
406
- getValue: (columnId) => {
407
- if (row._valuesCache.hasOwnProperty(columnId)) {
408
- return row._valuesCache[columnId];
409
- }
410
- const column = table.getColumn(columnId);
411
- if (!(column != null && column.accessorFn)) {
412
- return void 0;
413
- }
414
- row._valuesCache[columnId] = column.accessorFn(row.original, rowIndex);
415
- return row._valuesCache[columnId];
416
- },
417
- getUniqueValues: (columnId) => {
418
- if (row._uniqueValuesCache.hasOwnProperty(columnId)) {
419
- return row._uniqueValuesCache[columnId];
420
- }
421
- const column = table.getColumn(columnId);
422
- if (!(column != null && column.accessorFn)) {
423
- return void 0;
424
- }
425
- if (!column.columnDef.getUniqueValues) {
426
- row._uniqueValuesCache[columnId] = [row.getValue(columnId)];
427
- return row._uniqueValuesCache[columnId];
428
- }
429
- row._uniqueValuesCache[columnId] = column.columnDef.getUniqueValues(row.original, rowIndex);
430
- return row._uniqueValuesCache[columnId];
431
- },
432
- renderValue: (columnId) => {
433
- var _row$getValue;
434
- return (_row$getValue = row.getValue(columnId)) != null ? _row$getValue : table.options.renderFallbackValue;
435
- },
436
- subRows: subRows != null ? subRows : [],
437
- getLeafRows: () => flattenBy(row.subRows, (d) => d.subRows),
438
- getParentRow: () => row.parentId ? table.getRow(row.parentId, true) : void 0,
439
- getParentRows: () => {
440
- let parentRows = [];
441
- let currentRow = row;
442
- while (true) {
443
- const parentRow = currentRow.getParentRow();
444
- if (!parentRow) break;
445
- parentRows.push(parentRow);
446
- currentRow = parentRow;
447
- }
448
- return parentRows.reverse();
449
- },
450
- getAllCells: memo(() => [table.getAllLeafColumns()], (leafColumns) => {
451
- return leafColumns.map((column) => {
452
- return createCell(table, row, column, column.id);
453
- });
454
- }, getMemoOptions(table.options, "debugRows", "getAllCells")),
455
- _getAllCellsByColumnId: memo(() => [row.getAllCells()], (allCells) => {
456
- return allCells.reduce((acc, cell) => {
457
- acc[cell.column.id] = cell;
458
- return acc;
459
- }, {});
460
- }, getMemoOptions(table.options, "debugRows", "getAllCellsByColumnId"))
461
- };
462
- for (let i = 0; i < table._features.length; i++) {
463
- const feature = table._features[i];
464
- feature == null || feature.createRow == null || feature.createRow(row, table);
465
- }
466
- return row;
467
- };
468
- var ColumnFaceting = {
469
- createColumn: (column, table) => {
470
- column._getFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, column.id);
471
- column.getFacetedRowModel = () => {
472
- if (!column._getFacetedRowModel) {
473
- return table.getPreFilteredRowModel();
474
- }
475
- return column._getFacetedRowModel();
476
- };
477
- column._getFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, column.id);
478
- column.getFacetedUniqueValues = () => {
479
- if (!column._getFacetedUniqueValues) {
480
- return /* @__PURE__ */ new Map();
481
- }
482
- return column._getFacetedUniqueValues();
483
- };
484
- column._getFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, column.id);
485
- column.getFacetedMinMaxValues = () => {
486
- if (!column._getFacetedMinMaxValues) {
487
- return void 0;
488
- }
489
- return column._getFacetedMinMaxValues();
490
- };
491
- }
492
- };
493
- var includesString = (row, columnId, filterValue) => {
494
- var _filterValue$toString, _row$getValue;
495
- const search = filterValue == null || (_filterValue$toString = filterValue.toString()) == null ? void 0 : _filterValue$toString.toLowerCase();
496
- return Boolean((_row$getValue = row.getValue(columnId)) == null || (_row$getValue = _row$getValue.toString()) == null || (_row$getValue = _row$getValue.toLowerCase()) == null ? void 0 : _row$getValue.includes(search));
497
- };
498
- includesString.autoRemove = (val) => testFalsey(val);
499
- var includesStringSensitive = (row, columnId, filterValue) => {
500
- var _row$getValue2;
501
- return Boolean((_row$getValue2 = row.getValue(columnId)) == null || (_row$getValue2 = _row$getValue2.toString()) == null ? void 0 : _row$getValue2.includes(filterValue));
502
- };
503
- includesStringSensitive.autoRemove = (val) => testFalsey(val);
504
- var equalsString = (row, columnId, filterValue) => {
505
- var _row$getValue3;
506
- return ((_row$getValue3 = row.getValue(columnId)) == null || (_row$getValue3 = _row$getValue3.toString()) == null ? void 0 : _row$getValue3.toLowerCase()) === (filterValue == null ? void 0 : filterValue.toLowerCase());
507
- };
508
- equalsString.autoRemove = (val) => testFalsey(val);
509
- var arrIncludes = (row, columnId, filterValue) => {
510
- var _row$getValue4;
511
- return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
512
- };
513
- arrIncludes.autoRemove = (val) => testFalsey(val);
514
- var arrIncludesAll = (row, columnId, filterValue) => {
515
- return !filterValue.some((val) => {
516
- var _row$getValue5;
517
- return !((_row$getValue5 = row.getValue(columnId)) != null && _row$getValue5.includes(val));
518
- });
519
- };
520
- arrIncludesAll.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
521
- var arrIncludesSome = (row, columnId, filterValue) => {
522
- return filterValue.some((val) => {
523
- var _row$getValue6;
524
- return (_row$getValue6 = row.getValue(columnId)) == null ? void 0 : _row$getValue6.includes(val);
525
- });
526
- };
527
- arrIncludesSome.autoRemove = (val) => testFalsey(val) || !(val != null && val.length);
528
- var equals = (row, columnId, filterValue) => {
529
- return row.getValue(columnId) === filterValue;
530
- };
531
- equals.autoRemove = (val) => testFalsey(val);
532
- var weakEquals = (row, columnId, filterValue) => {
533
- return row.getValue(columnId) == filterValue;
534
- };
535
- weakEquals.autoRemove = (val) => testFalsey(val);
536
- var inNumberRange = (row, columnId, filterValue) => {
537
- let [min2, max2] = filterValue;
538
- const rowValue = row.getValue(columnId);
539
- return rowValue >= min2 && rowValue <= max2;
540
- };
541
- inNumberRange.resolveFilterValue = (val) => {
542
- let [unsafeMin, unsafeMax] = val;
543
- let parsedMin = typeof unsafeMin !== "number" ? parseFloat(unsafeMin) : unsafeMin;
544
- let parsedMax = typeof unsafeMax !== "number" ? parseFloat(unsafeMax) : unsafeMax;
545
- let min2 = unsafeMin === null || Number.isNaN(parsedMin) ? -Infinity : parsedMin;
546
- let max2 = unsafeMax === null || Number.isNaN(parsedMax) ? Infinity : parsedMax;
547
- if (min2 > max2) {
548
- const temp = min2;
549
- min2 = max2;
550
- max2 = temp;
551
- }
552
- return [min2, max2];
553
- };
554
- inNumberRange.autoRemove = (val) => testFalsey(val) || testFalsey(val[0]) && testFalsey(val[1]);
555
- var filterFns = {
556
- includesString,
557
- includesStringSensitive,
558
- equalsString,
559
- arrIncludes,
560
- arrIncludesAll,
561
- arrIncludesSome,
562
- equals,
563
- weakEquals,
564
- inNumberRange
565
- };
566
- function testFalsey(val) {
567
- return val === void 0 || val === null || val === "";
568
- }
569
- var ColumnFiltering = {
570
- getDefaultColumnDef: () => {
571
- return {
572
- filterFn: "auto"
573
- };
574
- },
575
- getInitialState: (state) => {
576
- return __spreadValues({
577
- columnFilters: []
578
- }, state);
579
- },
580
- getDefaultOptions: (table) => {
581
- return {
582
- onColumnFiltersChange: makeStateUpdater("columnFilters", table),
583
- filterFromLeafRows: false,
584
- maxLeafRowFilterDepth: 100
585
- };
586
- },
587
- createColumn: (column, table) => {
588
- column.getAutoFilterFn = () => {
589
- const firstRow = table.getCoreRowModel().flatRows[0];
590
- const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
591
- if (typeof value === "string") {
592
- return filterFns.includesString;
593
- }
594
- if (typeof value === "number") {
595
- return filterFns.inNumberRange;
596
- }
597
- if (typeof value === "boolean") {
598
- return filterFns.equals;
599
- }
600
- if (value !== null && typeof value === "object") {
601
- return filterFns.equals;
602
- }
603
- if (Array.isArray(value)) {
604
- return filterFns.arrIncludes;
605
- }
606
- return filterFns.weakEquals;
607
- };
608
- column.getFilterFn = () => {
609
- var _table$options$filter, _table$options$filter2;
610
- return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === "auto" ? column.getAutoFilterFn() : (
611
- // @ts-ignore
612
- (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn]
613
- );
614
- };
615
- column.getCanFilter = () => {
616
- var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
617
- return ((_column$columnDef$ena = column.columnDef.enableColumnFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnFilters) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && !!column.accessorFn;
618
- };
619
- column.getIsFiltered = () => column.getFilterIndex() > -1;
620
- column.getFilterValue = () => {
621
- var _table$getState$colum;
622
- return (_table$getState$colum = table.getState().columnFilters) == null || (_table$getState$colum = _table$getState$colum.find((d) => d.id === column.id)) == null ? void 0 : _table$getState$colum.value;
623
- };
624
- column.getFilterIndex = () => {
625
- var _table$getState$colum2, _table$getState$colum3;
626
- return (_table$getState$colum2 = (_table$getState$colum3 = table.getState().columnFilters) == null ? void 0 : _table$getState$colum3.findIndex((d) => d.id === column.id)) != null ? _table$getState$colum2 : -1;
627
- };
628
- column.setFilterValue = (value) => {
629
- table.setColumnFilters((old) => {
630
- const filterFn = column.getFilterFn();
631
- const previousFilter = old == null ? void 0 : old.find((d) => d.id === column.id);
632
- const newFilter = functionalUpdate(value, previousFilter ? previousFilter.value : void 0);
633
- if (shouldAutoRemoveFilter(filterFn, newFilter, column)) {
634
- var _old$filter;
635
- return (_old$filter = old == null ? void 0 : old.filter((d) => d.id !== column.id)) != null ? _old$filter : [];
636
- }
637
- const newFilterObj = {
638
- id: column.id,
639
- value: newFilter
640
- };
641
- if (previousFilter) {
642
- var _old$map;
643
- return (_old$map = old == null ? void 0 : old.map((d) => {
644
- if (d.id === column.id) {
645
- return newFilterObj;
646
- }
647
- return d;
648
- })) != null ? _old$map : [];
649
- }
650
- if (old != null && old.length) {
651
- return [...old, newFilterObj];
652
- }
653
- return [newFilterObj];
654
- });
655
- };
656
- },
657
- createRow: (row, _table) => {
658
- row.columnFilters = {};
659
- row.columnFiltersMeta = {};
660
- },
661
- createTable: (table) => {
662
- table.setColumnFilters = (updater) => {
663
- const leafColumns = table.getAllLeafColumns();
664
- const updateFn = (old) => {
665
- var _functionalUpdate;
666
- return (_functionalUpdate = functionalUpdate(updater, old)) == null ? void 0 : _functionalUpdate.filter((filter) => {
667
- const column = leafColumns.find((d) => d.id === filter.id);
668
- if (column) {
669
- const filterFn = column.getFilterFn();
670
- if (shouldAutoRemoveFilter(filterFn, filter.value, column)) {
671
- return false;
672
- }
673
- }
674
- return true;
675
- });
676
- };
677
- table.options.onColumnFiltersChange == null || table.options.onColumnFiltersChange(updateFn);
678
- };
679
- table.resetColumnFilters = (defaultState) => {
680
- var _table$initialState$c, _table$initialState;
681
- table.setColumnFilters(defaultState ? [] : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnFilters) != null ? _table$initialState$c : []);
682
- };
683
- table.getPreFilteredRowModel = () => table.getCoreRowModel();
684
- table.getFilteredRowModel = () => {
685
- if (!table._getFilteredRowModel && table.options.getFilteredRowModel) {
686
- table._getFilteredRowModel = table.options.getFilteredRowModel(table);
687
- }
688
- if (table.options.manualFiltering || !table._getFilteredRowModel) {
689
- return table.getPreFilteredRowModel();
690
- }
691
- return table._getFilteredRowModel();
692
- };
693
- }
694
- };
695
- function shouldAutoRemoveFilter(filterFn, value, column) {
696
- return (filterFn && filterFn.autoRemove ? filterFn.autoRemove(value, column) : false) || typeof value === "undefined" || typeof value === "string" && !value;
697
- }
698
- var sum = (columnId, _leafRows, childRows) => {
699
- return childRows.reduce((sum2, next) => {
700
- const nextValue = next.getValue(columnId);
701
- return sum2 + (typeof nextValue === "number" ? nextValue : 0);
702
- }, 0);
703
- };
704
- var min = (columnId, _leafRows, childRows) => {
705
- let min2;
706
- childRows.forEach((row) => {
707
- const value = row.getValue(columnId);
708
- if (value != null && (min2 > value || min2 === void 0 && value >= value)) {
709
- min2 = value;
710
- }
711
- });
712
- return min2;
713
- };
714
- var max = (columnId, _leafRows, childRows) => {
715
- let max2;
716
- childRows.forEach((row) => {
717
- const value = row.getValue(columnId);
718
- if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
719
- max2 = value;
720
- }
721
- });
722
- return max2;
723
- };
724
- var extent = (columnId, _leafRows, childRows) => {
725
- let min2;
726
- let max2;
727
- childRows.forEach((row) => {
728
- const value = row.getValue(columnId);
729
- if (value != null) {
730
- if (min2 === void 0) {
731
- if (value >= value) min2 = max2 = value;
732
- } else {
733
- if (min2 > value) min2 = value;
734
- if (max2 < value) max2 = value;
735
- }
736
- }
737
- });
738
- return [min2, max2];
739
- };
740
- var mean = (columnId, leafRows) => {
741
- let count2 = 0;
742
- let sum2 = 0;
743
- leafRows.forEach((row) => {
744
- let value = row.getValue(columnId);
745
- if (value != null && (value = +value) >= value) {
746
- ++count2, sum2 += value;
747
- }
748
- });
749
- if (count2) return sum2 / count2;
750
- return;
751
- };
752
- var median = (columnId, leafRows) => {
753
- if (!leafRows.length) {
754
- return;
755
- }
756
- const values = leafRows.map((row) => row.getValue(columnId));
757
- if (!isNumberArray(values)) {
758
- return;
759
- }
760
- if (values.length === 1) {
761
- return values[0];
762
- }
763
- const mid = Math.floor(values.length / 2);
764
- const nums = values.sort((a, b) => a - b);
765
- return values.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2;
766
- };
767
- var unique = (columnId, leafRows) => {
768
- return Array.from(new Set(leafRows.map((d) => d.getValue(columnId))).values());
769
- };
770
- var uniqueCount = (columnId, leafRows) => {
771
- return new Set(leafRows.map((d) => d.getValue(columnId))).size;
772
- };
773
- var count = (_columnId, leafRows) => {
774
- return leafRows.length;
775
- };
776
- var aggregationFns = {
777
- sum,
778
- min,
779
- max,
780
- extent,
781
- mean,
782
- median,
783
- unique,
784
- uniqueCount,
785
- count
786
- };
787
- var ColumnGrouping = {
788
- getDefaultColumnDef: () => {
789
- return {
790
- aggregatedCell: (props) => {
791
- var _toString, _props$getValue;
792
- return (_toString = (_props$getValue = props.getValue()) == null || _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _toString : null;
793
- },
794
- aggregationFn: "auto"
795
- };
796
- },
797
- getInitialState: (state) => {
798
- return __spreadValues({
799
- grouping: []
800
- }, state);
801
- },
802
- getDefaultOptions: (table) => {
803
- return {
804
- onGroupingChange: makeStateUpdater("grouping", table),
805
- groupedColumnMode: "reorder"
806
- };
807
- },
808
- createColumn: (column, table) => {
809
- column.toggleGrouping = () => {
810
- table.setGrouping((old) => {
811
- if (old != null && old.includes(column.id)) {
812
- return old.filter((d) => d !== column.id);
813
- }
814
- return [...old != null ? old : [], column.id];
815
- });
816
- };
817
- column.getCanGroup = () => {
818
- var _column$columnDef$ena, _table$options$enable;
819
- return ((_column$columnDef$ena = column.columnDef.enableGrouping) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGrouping) != null ? _table$options$enable : true) && (!!column.accessorFn || !!column.columnDef.getGroupingValue);
820
- };
821
- column.getIsGrouped = () => {
822
- var _table$getState$group;
823
- return (_table$getState$group = table.getState().grouping) == null ? void 0 : _table$getState$group.includes(column.id);
824
- };
825
- column.getGroupedIndex = () => {
826
- var _table$getState$group2;
827
- return (_table$getState$group2 = table.getState().grouping) == null ? void 0 : _table$getState$group2.indexOf(column.id);
828
- };
829
- column.getToggleGroupingHandler = () => {
830
- const canGroup = column.getCanGroup();
831
- return () => {
832
- if (!canGroup) return;
833
- column.toggleGrouping();
834
- };
835
- };
836
- column.getAutoAggregationFn = () => {
837
- const firstRow = table.getCoreRowModel().flatRows[0];
838
- const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
839
- if (typeof value === "number") {
840
- return aggregationFns.sum;
841
- }
842
- if (Object.prototype.toString.call(value) === "[object Date]") {
843
- return aggregationFns.extent;
844
- }
845
- };
846
- column.getAggregationFn = () => {
847
- var _table$options$aggreg, _table$options$aggreg2;
848
- if (!column) {
849
- throw new Error();
850
- }
851
- return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === "auto" ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
852
- };
853
- },
854
- createTable: (table) => {
855
- table.setGrouping = (updater) => table.options.onGroupingChange == null ? void 0 : table.options.onGroupingChange(updater);
856
- table.resetGrouping = (defaultState) => {
857
- var _table$initialState$g, _table$initialState;
858
- table.setGrouping(defaultState ? [] : (_table$initialState$g = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.grouping) != null ? _table$initialState$g : []);
859
- };
860
- table.getPreGroupedRowModel = () => table.getFilteredRowModel();
861
- table.getGroupedRowModel = () => {
862
- if (!table._getGroupedRowModel && table.options.getGroupedRowModel) {
863
- table._getGroupedRowModel = table.options.getGroupedRowModel(table);
864
- }
865
- if (table.options.manualGrouping || !table._getGroupedRowModel) {
866
- return table.getPreGroupedRowModel();
867
- }
868
- return table._getGroupedRowModel();
869
- };
870
- },
871
- createRow: (row, table) => {
872
- row.getIsGrouped = () => !!row.groupingColumnId;
873
- row.getGroupingValue = (columnId) => {
874
- if (row._groupingValuesCache.hasOwnProperty(columnId)) {
875
- return row._groupingValuesCache[columnId];
876
- }
877
- const column = table.getColumn(columnId);
878
- if (!(column != null && column.columnDef.getGroupingValue)) {
879
- return row.getValue(columnId);
880
- }
881
- row._groupingValuesCache[columnId] = column.columnDef.getGroupingValue(row.original);
882
- return row._groupingValuesCache[columnId];
883
- };
884
- row._groupingValuesCache = {};
885
- },
886
- createCell: (cell, column, row, table) => {
887
- cell.getIsGrouped = () => column.getIsGrouped() && column.id === row.groupingColumnId;
888
- cell.getIsPlaceholder = () => !cell.getIsGrouped() && column.getIsGrouped();
889
- cell.getIsAggregated = () => {
890
- var _row$subRows;
891
- return !cell.getIsGrouped() && !cell.getIsPlaceholder() && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
892
- };
893
- }
894
- };
895
- function orderColumns(leafColumns, grouping, groupedColumnMode) {
896
- if (!(grouping != null && grouping.length) || !groupedColumnMode) {
897
- return leafColumns;
898
- }
899
- const nonGroupingColumns = leafColumns.filter((col) => !grouping.includes(col.id));
900
- if (groupedColumnMode === "remove") {
901
- return nonGroupingColumns;
902
- }
903
- const groupingColumns = grouping.map((g) => leafColumns.find((col) => col.id === g)).filter(Boolean);
904
- return [...groupingColumns, ...nonGroupingColumns];
905
- }
906
- var ColumnOrdering = {
907
- getInitialState: (state) => {
908
- return __spreadValues({
909
- columnOrder: []
910
- }, state);
911
- },
912
- getDefaultOptions: (table) => {
913
- return {
914
- onColumnOrderChange: makeStateUpdater("columnOrder", table)
915
- };
916
- },
917
- createColumn: (column, table) => {
918
- column.getIndex = memo((position) => [_getVisibleLeafColumns(table, position)], (columns) => columns.findIndex((d) => d.id === column.id), getMemoOptions(table.options, "debugColumns", "getIndex"));
919
- column.getIsFirstColumn = (position) => {
920
- var _columns$;
921
- const columns = _getVisibleLeafColumns(table, position);
922
- return ((_columns$ = columns[0]) == null ? void 0 : _columns$.id) === column.id;
923
- };
924
- column.getIsLastColumn = (position) => {
925
- var _columns;
926
- const columns = _getVisibleLeafColumns(table, position);
927
- return ((_columns = columns[columns.length - 1]) == null ? void 0 : _columns.id) === column.id;
928
- };
929
- },
930
- createTable: (table) => {
931
- table.setColumnOrder = (updater) => table.options.onColumnOrderChange == null ? void 0 : table.options.onColumnOrderChange(updater);
932
- table.resetColumnOrder = (defaultState) => {
933
- var _table$initialState$c;
934
- table.setColumnOrder(defaultState ? [] : (_table$initialState$c = table.initialState.columnOrder) != null ? _table$initialState$c : []);
935
- };
936
- table._getOrderColumnsFn = memo(() => [table.getState().columnOrder, table.getState().grouping, table.options.groupedColumnMode], (columnOrder, grouping, groupedColumnMode) => (columns) => {
937
- let orderedColumns = [];
938
- if (!(columnOrder != null && columnOrder.length)) {
939
- orderedColumns = columns;
940
- } else {
941
- const columnOrderCopy = [...columnOrder];
942
- const columnsCopy = [...columns];
943
- while (columnsCopy.length && columnOrderCopy.length) {
944
- const targetColumnId = columnOrderCopy.shift();
945
- const foundIndex = columnsCopy.findIndex((d) => d.id === targetColumnId);
946
- if (foundIndex > -1) {
947
- orderedColumns.push(columnsCopy.splice(foundIndex, 1)[0]);
948
- }
949
- }
950
- orderedColumns = [...orderedColumns, ...columnsCopy];
951
- }
952
- return orderColumns(orderedColumns, grouping, groupedColumnMode);
953
- }, getMemoOptions(table.options, "debugTable", "_getOrderColumnsFn"));
954
- }
955
- };
956
- var getDefaultColumnPinningState = () => ({
957
- left: [],
958
- right: []
959
- });
960
- var ColumnPinning = {
961
- getInitialState: (state) => {
962
- return __spreadValues({
963
- columnPinning: getDefaultColumnPinningState()
964
- }, state);
965
- },
966
- getDefaultOptions: (table) => {
967
- return {
968
- onColumnPinningChange: makeStateUpdater("columnPinning", table)
969
- };
970
- },
971
- createColumn: (column, table) => {
972
- column.pin = (position) => {
973
- const columnIds = column.getLeafColumns().map((d) => d.id).filter(Boolean);
974
- table.setColumnPinning((old) => {
975
- var _old$left3, _old$right3;
976
- if (position === "right") {
977
- var _old$left, _old$right;
978
- return {
979
- left: ((_old$left = old == null ? void 0 : old.left) != null ? _old$left : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
980
- right: [...((_old$right = old == null ? void 0 : old.right) != null ? _old$right : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds]
981
- };
982
- }
983
- if (position === "left") {
984
- var _old$left2, _old$right2;
985
- return {
986
- left: [...((_old$left2 = old == null ? void 0 : old.left) != null ? _old$left2 : []).filter((d) => !(columnIds != null && columnIds.includes(d))), ...columnIds],
987
- right: ((_old$right2 = old == null ? void 0 : old.right) != null ? _old$right2 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
988
- };
989
- }
990
- return {
991
- left: ((_old$left3 = old == null ? void 0 : old.left) != null ? _old$left3 : []).filter((d) => !(columnIds != null && columnIds.includes(d))),
992
- right: ((_old$right3 = old == null ? void 0 : old.right) != null ? _old$right3 : []).filter((d) => !(columnIds != null && columnIds.includes(d)))
993
- };
994
- });
995
- };
996
- column.getCanPin = () => {
997
- const leafColumns = column.getLeafColumns();
998
- return leafColumns.some((d) => {
999
- var _d$columnDef$enablePi, _ref, _table$options$enable;
1000
- return ((_d$columnDef$enablePi = d.columnDef.enablePinning) != null ? _d$columnDef$enablePi : true) && ((_ref = (_table$options$enable = table.options.enableColumnPinning) != null ? _table$options$enable : table.options.enablePinning) != null ? _ref : true);
1001
- });
1002
- };
1003
- column.getIsPinned = () => {
1004
- const leafColumnIds = column.getLeafColumns().map((d) => d.id);
1005
- const {
1006
- left,
1007
- right
1008
- } = table.getState().columnPinning;
1009
- const isLeft = leafColumnIds.some((d) => left == null ? void 0 : left.includes(d));
1010
- const isRight = leafColumnIds.some((d) => right == null ? void 0 : right.includes(d));
1011
- return isLeft ? "left" : isRight ? "right" : false;
1012
- };
1013
- column.getPinnedIndex = () => {
1014
- var _table$getState$colum, _table$getState$colum2;
1015
- const position = column.getIsPinned();
1016
- return position ? (_table$getState$colum = (_table$getState$colum2 = table.getState().columnPinning) == null || (_table$getState$colum2 = _table$getState$colum2[position]) == null ? void 0 : _table$getState$colum2.indexOf(column.id)) != null ? _table$getState$colum : -1 : 0;
1017
- };
1018
- },
1019
- createRow: (row, table) => {
1020
- row.getCenterVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allCells, left, right) => {
1021
- const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1022
- return allCells.filter((d) => !leftAndRight.includes(d.column.id));
1023
- }, getMemoOptions(table.options, "debugRows", "getCenterVisibleCells"));
1024
- row.getLeftVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.left], (allCells, left) => {
1025
- const cells = (left != null ? left : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1026
- position: "left"
1027
- }));
1028
- return cells;
1029
- }, getMemoOptions(table.options, "debugRows", "getLeftVisibleCells"));
1030
- row.getRightVisibleCells = memo(() => [row._getAllVisibleCells(), table.getState().columnPinning.right], (allCells, right) => {
1031
- const cells = (right != null ? right : []).map((columnId) => allCells.find((cell) => cell.column.id === columnId)).filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1032
- position: "right"
1033
- }));
1034
- return cells;
1035
- }, getMemoOptions(table.options, "debugRows", "getRightVisibleCells"));
1036
- },
1037
- createTable: (table) => {
1038
- table.setColumnPinning = (updater) => table.options.onColumnPinningChange == null ? void 0 : table.options.onColumnPinningChange(updater);
1039
- table.resetColumnPinning = (defaultState) => {
1040
- var _table$initialState$c, _table$initialState;
1041
- return table.setColumnPinning(defaultState ? getDefaultColumnPinningState() : (_table$initialState$c = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.columnPinning) != null ? _table$initialState$c : getDefaultColumnPinningState());
1042
- };
1043
- table.getIsSomeColumnsPinned = (position) => {
1044
- var _pinningState$positio;
1045
- const pinningState = table.getState().columnPinning;
1046
- if (!position) {
1047
- var _pinningState$left, _pinningState$right;
1048
- return Boolean(((_pinningState$left = pinningState.left) == null ? void 0 : _pinningState$left.length) || ((_pinningState$right = pinningState.right) == null ? void 0 : _pinningState$right.length));
1049
- }
1050
- return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1051
- };
1052
- table.getLeftLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left], (allColumns, left) => {
1053
- return (left != null ? left : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1054
- }, getMemoOptions(table.options, "debugColumns", "getLeftLeafColumns"));
1055
- table.getRightLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.right], (allColumns, right) => {
1056
- return (right != null ? right : []).map((columnId) => allColumns.find((column) => column.id === columnId)).filter(Boolean);
1057
- }, getMemoOptions(table.options, "debugColumns", "getRightLeafColumns"));
1058
- table.getCenterLeafColumns = memo(() => [table.getAllLeafColumns(), table.getState().columnPinning.left, table.getState().columnPinning.right], (allColumns, left, right) => {
1059
- const leftAndRight = [...left != null ? left : [], ...right != null ? right : []];
1060
- return allColumns.filter((d) => !leftAndRight.includes(d.id));
1061
- }, getMemoOptions(table.options, "debugColumns", "getCenterLeafColumns"));
1062
- }
1063
- };
1064
- function safelyAccessDocument(_document) {
1065
- return _document || (typeof document !== "undefined" ? document : null);
1066
- }
1067
- var defaultColumnSizing = {
1068
- size: 150,
1069
- minSize: 20,
1070
- maxSize: Number.MAX_SAFE_INTEGER
1071
- };
1072
- var getDefaultColumnSizingInfoState = () => ({
1073
- startOffset: null,
1074
- startSize: null,
1075
- deltaOffset: null,
1076
- deltaPercentage: null,
1077
- isResizingColumn: false,
1078
- columnSizingStart: []
1079
- });
1080
- var ColumnSizing = {
1081
- getDefaultColumnDef: () => {
1082
- return defaultColumnSizing;
1083
- },
1084
- getInitialState: (state) => {
1085
- return __spreadValues({
1086
- columnSizing: {},
1087
- columnSizingInfo: getDefaultColumnSizingInfoState()
1088
- }, state);
1089
- },
1090
- getDefaultOptions: (table) => {
1091
- return {
1092
- columnResizeMode: "onEnd",
1093
- columnResizeDirection: "ltr",
1094
- onColumnSizingChange: makeStateUpdater("columnSizing", table),
1095
- onColumnSizingInfoChange: makeStateUpdater("columnSizingInfo", table)
1096
- };
1097
- },
1098
- createColumn: (column, table) => {
1099
- column.getSize = () => {
1100
- var _column$columnDef$min, _ref, _column$columnDef$max;
1101
- const columnSize = table.getState().columnSizing[column.id];
1102
- return Math.min(Math.max((_column$columnDef$min = column.columnDef.minSize) != null ? _column$columnDef$min : defaultColumnSizing.minSize, (_ref = columnSize != null ? columnSize : column.columnDef.size) != null ? _ref : defaultColumnSizing.size), (_column$columnDef$max = column.columnDef.maxSize) != null ? _column$columnDef$max : defaultColumnSizing.maxSize);
1103
- };
1104
- column.getStart = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(0, column.getIndex(position)).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getStart"));
1105
- column.getAfter = memo((position) => [position, _getVisibleLeafColumns(table, position), table.getState().columnSizing], (position, columns) => columns.slice(column.getIndex(position) + 1).reduce((sum2, column2) => sum2 + column2.getSize(), 0), getMemoOptions(table.options, "debugColumns", "getAfter"));
1106
- column.resetSize = () => {
1107
- table.setColumnSizing((_ref2) => {
1108
- var _a;
1109
- let _b = _ref2, {
1110
- [_a = column.id]: _
1111
- } = _b, rest = __objRest(_b, [
1112
- __restKey(_a)
1113
- ]);
1114
- return rest;
1115
- });
1116
- };
1117
- column.getCanResize = () => {
1118
- var _column$columnDef$ena, _table$options$enable;
1119
- return ((_column$columnDef$ena = column.columnDef.enableResizing) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableColumnResizing) != null ? _table$options$enable : true);
1120
- };
1121
- column.getIsResizing = () => {
1122
- return table.getState().columnSizingInfo.isResizingColumn === column.id;
1123
- };
1124
- },
1125
- createHeader: (header, table) => {
1126
- header.getSize = () => {
1127
- let sum2 = 0;
1128
- const recurse = (header2) => {
1129
- if (header2.subHeaders.length) {
1130
- header2.subHeaders.forEach(recurse);
1131
- } else {
1132
- var _header$column$getSiz;
1133
- sum2 += (_header$column$getSiz = header2.column.getSize()) != null ? _header$column$getSiz : 0;
1134
- }
1135
- };
1136
- recurse(header);
1137
- return sum2;
1138
- };
1139
- header.getStart = () => {
1140
- if (header.index > 0) {
1141
- const prevSiblingHeader = header.headerGroup.headers[header.index - 1];
1142
- return prevSiblingHeader.getStart() + prevSiblingHeader.getSize();
1143
- }
1144
- return 0;
1145
- };
1146
- header.getResizeHandler = (_contextDocument) => {
1147
- const column = table.getColumn(header.column.id);
1148
- const canResize = column == null ? void 0 : column.getCanResize();
1149
- return (e) => {
1150
- if (!column || !canResize) {
1151
- return;
1152
- }
1153
- e.persist == null || e.persist();
1154
- if (isTouchStartEvent(e)) {
1155
- if (e.touches && e.touches.length > 1) {
1156
- return;
1157
- }
1158
- }
1159
- const startSize = header.getSize();
1160
- const columnSizingStart = header ? header.getLeafHeaders().map((d) => [d.column.id, d.column.getSize()]) : [[column.id, column.getSize()]];
1161
- const clientX = isTouchStartEvent(e) ? Math.round(e.touches[0].clientX) : e.clientX;
1162
- const newColumnSizing = {};
1163
- const updateOffset = (eventType, clientXPos) => {
1164
- if (typeof clientXPos !== "number") {
1165
- return;
1166
- }
1167
- table.setColumnSizingInfo((old) => {
1168
- var _old$startOffset, _old$startSize;
1169
- const deltaDirection = table.options.columnResizeDirection === "rtl" ? -1 : 1;
1170
- const deltaOffset = (clientXPos - ((_old$startOffset = old == null ? void 0 : old.startOffset) != null ? _old$startOffset : 0)) * deltaDirection;
1171
- const deltaPercentage = Math.max(deltaOffset / ((_old$startSize = old == null ? void 0 : old.startSize) != null ? _old$startSize : 0), -0.999999);
1172
- old.columnSizingStart.forEach((_ref3) => {
1173
- let [columnId, headerSize] = _ref3;
1174
- newColumnSizing[columnId] = Math.round(Math.max(headerSize + headerSize * deltaPercentage, 0) * 100) / 100;
1175
- });
1176
- return __spreadProps(__spreadValues({}, old), {
1177
- deltaOffset,
1178
- deltaPercentage
1179
- });
1180
- });
1181
- if (table.options.columnResizeMode === "onChange" || eventType === "end") {
1182
- table.setColumnSizing((old) => __spreadValues(__spreadValues({}, old), newColumnSizing));
1183
- }
1184
- };
1185
- const onMove = (clientXPos) => updateOffset("move", clientXPos);
1186
- const onEnd = (clientXPos) => {
1187
- updateOffset("end", clientXPos);
1188
- table.setColumnSizingInfo((old) => __spreadProps(__spreadValues({}, old), {
1189
- isResizingColumn: false,
1190
- startOffset: null,
1191
- startSize: null,
1192
- deltaOffset: null,
1193
- deltaPercentage: null,
1194
- columnSizingStart: []
1195
- }));
1196
- };
1197
- const contextDocument = safelyAccessDocument(_contextDocument);
1198
- const mouseEvents = {
1199
- moveHandler: (e2) => onMove(e2.clientX),
1200
- upHandler: (e2) => {
1201
- contextDocument == null || contextDocument.removeEventListener("mousemove", mouseEvents.moveHandler);
1202
- contextDocument == null || contextDocument.removeEventListener("mouseup", mouseEvents.upHandler);
1203
- onEnd(e2.clientX);
1204
- }
1205
- };
1206
- const touchEvents = {
1207
- moveHandler: (e2) => {
1208
- if (e2.cancelable) {
1209
- e2.preventDefault();
1210
- e2.stopPropagation();
1211
- }
1212
- onMove(e2.touches[0].clientX);
1213
- return false;
1214
- },
1215
- upHandler: (e2) => {
1216
- var _e$touches$;
1217
- contextDocument == null || contextDocument.removeEventListener("touchmove", touchEvents.moveHandler);
1218
- contextDocument == null || contextDocument.removeEventListener("touchend", touchEvents.upHandler);
1219
- if (e2.cancelable) {
1220
- e2.preventDefault();
1221
- e2.stopPropagation();
1222
- }
1223
- onEnd((_e$touches$ = e2.touches[0]) == null ? void 0 : _e$touches$.clientX);
1224
- }
1225
- };
1226
- const passiveIfSupported = passiveEventSupported() ? {
1227
- passive: false
1228
- } : false;
1229
- if (isTouchStartEvent(e)) {
1230
- contextDocument == null || contextDocument.addEventListener("touchmove", touchEvents.moveHandler, passiveIfSupported);
1231
- contextDocument == null || contextDocument.addEventListener("touchend", touchEvents.upHandler, passiveIfSupported);
1232
- } else {
1233
- contextDocument == null || contextDocument.addEventListener("mousemove", mouseEvents.moveHandler, passiveIfSupported);
1234
- contextDocument == null || contextDocument.addEventListener("mouseup", mouseEvents.upHandler, passiveIfSupported);
1235
- }
1236
- table.setColumnSizingInfo((old) => __spreadProps(__spreadValues({}, old), {
1237
- startOffset: clientX,
1238
- startSize,
1239
- deltaOffset: 0,
1240
- deltaPercentage: 0,
1241
- columnSizingStart,
1242
- isResizingColumn: column.id
1243
- }));
1244
- };
1245
- };
1246
- },
1247
- createTable: (table) => {
1248
- table.setColumnSizing = (updater) => table.options.onColumnSizingChange == null ? void 0 : table.options.onColumnSizingChange(updater);
1249
- table.setColumnSizingInfo = (updater) => table.options.onColumnSizingInfoChange == null ? void 0 : table.options.onColumnSizingInfoChange(updater);
1250
- table.resetColumnSizing = (defaultState) => {
1251
- var _table$initialState$c;
1252
- table.setColumnSizing(defaultState ? {} : (_table$initialState$c = table.initialState.columnSizing) != null ? _table$initialState$c : {});
1253
- };
1254
- table.resetHeaderSizeInfo = (defaultState) => {
1255
- var _table$initialState$c2;
1256
- table.setColumnSizingInfo(defaultState ? getDefaultColumnSizingInfoState() : (_table$initialState$c2 = table.initialState.columnSizingInfo) != null ? _table$initialState$c2 : getDefaultColumnSizingInfoState());
1257
- };
1258
- table.getTotalSize = () => {
1259
- var _table$getHeaderGroup, _table$getHeaderGroup2;
1260
- return (_table$getHeaderGroup = (_table$getHeaderGroup2 = table.getHeaderGroups()[0]) == null ? void 0 : _table$getHeaderGroup2.headers.reduce((sum2, header) => {
1261
- return sum2 + header.getSize();
1262
- }, 0)) != null ? _table$getHeaderGroup : 0;
1263
- };
1264
- table.getLeftTotalSize = () => {
1265
- var _table$getLeftHeaderG, _table$getLeftHeaderG2;
1266
- return (_table$getLeftHeaderG = (_table$getLeftHeaderG2 = table.getLeftHeaderGroups()[0]) == null ? void 0 : _table$getLeftHeaderG2.headers.reduce((sum2, header) => {
1267
- return sum2 + header.getSize();
1268
- }, 0)) != null ? _table$getLeftHeaderG : 0;
1269
- };
1270
- table.getCenterTotalSize = () => {
1271
- var _table$getCenterHeade, _table$getCenterHeade2;
1272
- return (_table$getCenterHeade = (_table$getCenterHeade2 = table.getCenterHeaderGroups()[0]) == null ? void 0 : _table$getCenterHeade2.headers.reduce((sum2, header) => {
1273
- return sum2 + header.getSize();
1274
- }, 0)) != null ? _table$getCenterHeade : 0;
1275
- };
1276
- table.getRightTotalSize = () => {
1277
- var _table$getRightHeader, _table$getRightHeader2;
1278
- return (_table$getRightHeader = (_table$getRightHeader2 = table.getRightHeaderGroups()[0]) == null ? void 0 : _table$getRightHeader2.headers.reduce((sum2, header) => {
1279
- return sum2 + header.getSize();
1280
- }, 0)) != null ? _table$getRightHeader : 0;
1281
- };
1282
- }
1283
- };
1284
- var passiveSupported = null;
1285
- function passiveEventSupported() {
1286
- if (typeof passiveSupported === "boolean") return passiveSupported;
1287
- let supported = false;
1288
- try {
1289
- const options = {
1290
- get passive() {
1291
- supported = true;
1292
- return false;
1293
- }
1294
- };
1295
- const noop = () => {
1296
- };
1297
- window.addEventListener("test", noop, options);
1298
- window.removeEventListener("test", noop);
1299
- } catch (err) {
1300
- supported = false;
1301
- }
1302
- passiveSupported = supported;
1303
- return passiveSupported;
1304
- }
1305
- function isTouchStartEvent(e) {
1306
- return e.type === "touchstart";
1307
- }
1308
- var ColumnVisibility = {
1309
- getInitialState: (state) => {
1310
- return __spreadValues({
1311
- columnVisibility: {}
1312
- }, state);
1313
- },
1314
- getDefaultOptions: (table) => {
1315
- return {
1316
- onColumnVisibilityChange: makeStateUpdater("columnVisibility", table)
1317
- };
1318
- },
1319
- createColumn: (column, table) => {
1320
- column.toggleVisibility = (value) => {
1321
- if (column.getCanHide()) {
1322
- table.setColumnVisibility((old) => __spreadProps(__spreadValues({}, old), {
1323
- [column.id]: value != null ? value : !column.getIsVisible()
1324
- }));
1325
- }
1326
- };
1327
- column.getIsVisible = () => {
1328
- var _ref, _table$getState$colum;
1329
- const childColumns = column.columns;
1330
- return (_ref = childColumns.length ? childColumns.some((c) => c.getIsVisible()) : (_table$getState$colum = table.getState().columnVisibility) == null ? void 0 : _table$getState$colum[column.id]) != null ? _ref : true;
1331
- };
1332
- column.getCanHide = () => {
1333
- var _column$columnDef$ena, _table$options$enable;
1334
- return ((_column$columnDef$ena = column.columnDef.enableHiding) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableHiding) != null ? _table$options$enable : true);
1335
- };
1336
- column.getToggleVisibilityHandler = () => {
1337
- return (e) => {
1338
- column.toggleVisibility == null || column.toggleVisibility(e.target.checked);
1339
- };
1340
- };
1341
- },
1342
- createRow: (row, table) => {
1343
- row._getAllVisibleCells = memo(() => [row.getAllCells(), table.getState().columnVisibility], (cells) => {
1344
- return cells.filter((cell) => cell.column.getIsVisible());
1345
- }, getMemoOptions(table.options, "debugRows", "_getAllVisibleCells"));
1346
- row.getVisibleCells = memo(() => [row.getLeftVisibleCells(), row.getCenterVisibleCells(), row.getRightVisibleCells()], (left, center, right) => [...left, ...center, ...right], getMemoOptions(table.options, "debugRows", "getVisibleCells"));
1347
- },
1348
- createTable: (table) => {
1349
- const makeVisibleColumnsMethod = (key, getColumns) => {
1350
- return memo(() => [getColumns(), getColumns().filter((d) => d.getIsVisible()).map((d) => d.id).join("_")], (columns) => {
1351
- return columns.filter((d) => d.getIsVisible == null ? void 0 : d.getIsVisible());
1352
- }, getMemoOptions(table.options, "debugColumns", key));
1353
- };
1354
- table.getVisibleFlatColumns = makeVisibleColumnsMethod("getVisibleFlatColumns", () => table.getAllFlatColumns());
1355
- table.getVisibleLeafColumns = makeVisibleColumnsMethod("getVisibleLeafColumns", () => table.getAllLeafColumns());
1356
- table.getLeftVisibleLeafColumns = makeVisibleColumnsMethod("getLeftVisibleLeafColumns", () => table.getLeftLeafColumns());
1357
- table.getRightVisibleLeafColumns = makeVisibleColumnsMethod("getRightVisibleLeafColumns", () => table.getRightLeafColumns());
1358
- table.getCenterVisibleLeafColumns = makeVisibleColumnsMethod("getCenterVisibleLeafColumns", () => table.getCenterLeafColumns());
1359
- table.setColumnVisibility = (updater) => table.options.onColumnVisibilityChange == null ? void 0 : table.options.onColumnVisibilityChange(updater);
1360
- table.resetColumnVisibility = (defaultState) => {
1361
- var _table$initialState$c;
1362
- table.setColumnVisibility(defaultState ? {} : (_table$initialState$c = table.initialState.columnVisibility) != null ? _table$initialState$c : {});
1363
- };
1364
- table.toggleAllColumnsVisible = (value) => {
1365
- var _value;
1366
- value = (_value = value) != null ? _value : !table.getIsAllColumnsVisible();
1367
- table.setColumnVisibility(table.getAllLeafColumns().reduce((obj, column) => __spreadProps(__spreadValues({}, obj), {
1368
- [column.id]: !value ? !(column.getCanHide != null && column.getCanHide()) : value
1369
- }), {}));
1370
- };
1371
- table.getIsAllColumnsVisible = () => !table.getAllLeafColumns().some((column) => !(column.getIsVisible != null && column.getIsVisible()));
1372
- table.getIsSomeColumnsVisible = () => table.getAllLeafColumns().some((column) => column.getIsVisible == null ? void 0 : column.getIsVisible());
1373
- table.getToggleAllColumnsVisibilityHandler = () => {
1374
- return (e) => {
1375
- var _target;
1376
- table.toggleAllColumnsVisible((_target = e.target) == null ? void 0 : _target.checked);
1377
- };
1378
- };
1379
- }
1380
- };
1381
- function _getVisibleLeafColumns(table, position) {
1382
- return !position ? table.getVisibleLeafColumns() : position === "center" ? table.getCenterVisibleLeafColumns() : position === "left" ? table.getLeftVisibleLeafColumns() : table.getRightVisibleLeafColumns();
1383
- }
1384
- var GlobalFaceting = {
1385
- createTable: (table) => {
1386
- table._getGlobalFacetedRowModel = table.options.getFacetedRowModel && table.options.getFacetedRowModel(table, "__global__");
1387
- table.getGlobalFacetedRowModel = () => {
1388
- if (table.options.manualFiltering || !table._getGlobalFacetedRowModel) {
1389
- return table.getPreFilteredRowModel();
1390
- }
1391
- return table._getGlobalFacetedRowModel();
1392
- };
1393
- table._getGlobalFacetedUniqueValues = table.options.getFacetedUniqueValues && table.options.getFacetedUniqueValues(table, "__global__");
1394
- table.getGlobalFacetedUniqueValues = () => {
1395
- if (!table._getGlobalFacetedUniqueValues) {
1396
- return /* @__PURE__ */ new Map();
1397
- }
1398
- return table._getGlobalFacetedUniqueValues();
1399
- };
1400
- table._getGlobalFacetedMinMaxValues = table.options.getFacetedMinMaxValues && table.options.getFacetedMinMaxValues(table, "__global__");
1401
- table.getGlobalFacetedMinMaxValues = () => {
1402
- if (!table._getGlobalFacetedMinMaxValues) {
1403
- return;
1404
- }
1405
- return table._getGlobalFacetedMinMaxValues();
1406
- };
1407
- }
1408
- };
1409
- var GlobalFiltering = {
1410
- getInitialState: (state) => {
1411
- return __spreadValues({
1412
- globalFilter: void 0
1413
- }, state);
1414
- },
1415
- getDefaultOptions: (table) => {
1416
- return {
1417
- onGlobalFilterChange: makeStateUpdater("globalFilter", table),
1418
- globalFilterFn: "auto",
1419
- getColumnCanGlobalFilter: (column) => {
1420
- var _table$getCoreRowMode;
1421
- const value = (_table$getCoreRowMode = table.getCoreRowModel().flatRows[0]) == null || (_table$getCoreRowMode = _table$getCoreRowMode._getAllCellsByColumnId()[column.id]) == null ? void 0 : _table$getCoreRowMode.getValue();
1422
- return typeof value === "string" || typeof value === "number";
1423
- }
1424
- };
1425
- },
1426
- createColumn: (column, table) => {
1427
- column.getCanGlobalFilter = () => {
1428
- var _column$columnDef$ena, _table$options$enable, _table$options$enable2, _table$options$getCol;
1429
- return ((_column$columnDef$ena = column.columnDef.enableGlobalFilter) != null ? _column$columnDef$ena : true) && ((_table$options$enable = table.options.enableGlobalFilter) != null ? _table$options$enable : true) && ((_table$options$enable2 = table.options.enableFilters) != null ? _table$options$enable2 : true) && ((_table$options$getCol = table.options.getColumnCanGlobalFilter == null ? void 0 : table.options.getColumnCanGlobalFilter(column)) != null ? _table$options$getCol : true) && !!column.accessorFn;
1430
- };
1431
- },
1432
- createTable: (table) => {
1433
- table.getGlobalAutoFilterFn = () => {
1434
- return filterFns.includesString;
1435
- };
1436
- table.getGlobalFilterFn = () => {
1437
- var _table$options$filter, _table$options$filter2;
1438
- const {
1439
- globalFilterFn
1440
- } = table.options;
1441
- return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === "auto" ? table.getGlobalAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[globalFilterFn]) != null ? _table$options$filter : filterFns[globalFilterFn];
1442
- };
1443
- table.setGlobalFilter = (updater) => {
1444
- table.options.onGlobalFilterChange == null || table.options.onGlobalFilterChange(updater);
1445
- };
1446
- table.resetGlobalFilter = (defaultState) => {
1447
- table.setGlobalFilter(defaultState ? void 0 : table.initialState.globalFilter);
1448
- };
1449
- }
1450
- };
1451
- var RowExpanding = {
1452
- getInitialState: (state) => {
1453
- return __spreadValues({
1454
- expanded: {}
1455
- }, state);
1456
- },
1457
- getDefaultOptions: (table) => {
1458
- return {
1459
- onExpandedChange: makeStateUpdater("expanded", table),
1460
- paginateExpandedRows: true
1461
- };
1462
- },
1463
- createTable: (table) => {
1464
- let registered = false;
1465
- let queued = false;
1466
- table._autoResetExpanded = () => {
1467
- var _ref, _table$options$autoRe;
1468
- if (!registered) {
1469
- table._queue(() => {
1470
- registered = true;
1471
- });
1472
- return;
1473
- }
1474
- if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetExpanded) != null ? _ref : !table.options.manualExpanding) {
1475
- if (queued) return;
1476
- queued = true;
1477
- table._queue(() => {
1478
- table.resetExpanded();
1479
- queued = false;
1480
- });
1481
- }
1482
- };
1483
- table.setExpanded = (updater) => table.options.onExpandedChange == null ? void 0 : table.options.onExpandedChange(updater);
1484
- table.toggleAllRowsExpanded = (expanded) => {
1485
- if (expanded != null ? expanded : !table.getIsAllRowsExpanded()) {
1486
- table.setExpanded(true);
1487
- } else {
1488
- table.setExpanded({});
1489
- }
1490
- };
1491
- table.resetExpanded = (defaultState) => {
1492
- var _table$initialState$e, _table$initialState;
1493
- table.setExpanded(defaultState ? {} : (_table$initialState$e = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.expanded) != null ? _table$initialState$e : {});
1494
- };
1495
- table.getCanSomeRowsExpand = () => {
1496
- return table.getPrePaginationRowModel().flatRows.some((row) => row.getCanExpand());
1497
- };
1498
- table.getToggleAllRowsExpandedHandler = () => {
1499
- return (e) => {
1500
- e.persist == null || e.persist();
1501
- table.toggleAllRowsExpanded();
1502
- };
1503
- };
1504
- table.getIsSomeRowsExpanded = () => {
1505
- const expanded = table.getState().expanded;
1506
- return expanded === true || Object.values(expanded).some(Boolean);
1507
- };
1508
- table.getIsAllRowsExpanded = () => {
1509
- const expanded = table.getState().expanded;
1510
- if (typeof expanded === "boolean") {
1511
- return expanded === true;
1512
- }
1513
- if (!Object.keys(expanded).length) {
1514
- return false;
1515
- }
1516
- if (table.getRowModel().flatRows.some((row) => !row.getIsExpanded())) {
1517
- return false;
1518
- }
1519
- return true;
1520
- };
1521
- table.getExpandedDepth = () => {
1522
- let maxDepth = 0;
1523
- const rowIds = table.getState().expanded === true ? Object.keys(table.getRowModel().rowsById) : Object.keys(table.getState().expanded);
1524
- rowIds.forEach((id) => {
1525
- const splitId = id.split(".");
1526
- maxDepth = Math.max(maxDepth, splitId.length);
1527
- });
1528
- return maxDepth;
1529
- };
1530
- table.getPreExpandedRowModel = () => table.getSortedRowModel();
1531
- table.getExpandedRowModel = () => {
1532
- if (!table._getExpandedRowModel && table.options.getExpandedRowModel) {
1533
- table._getExpandedRowModel = table.options.getExpandedRowModel(table);
1534
- }
1535
- if (table.options.manualExpanding || !table._getExpandedRowModel) {
1536
- return table.getPreExpandedRowModel();
1537
- }
1538
- return table._getExpandedRowModel();
1539
- };
1540
- },
1541
- createRow: (row, table) => {
1542
- row.toggleExpanded = (expanded) => {
1543
- table.setExpanded((old) => {
1544
- var _a;
1545
- var _expanded;
1546
- const exists = old === true ? true : !!(old != null && old[row.id]);
1547
- let oldExpanded = {};
1548
- if (old === true) {
1549
- Object.keys(table.getRowModel().rowsById).forEach((rowId) => {
1550
- oldExpanded[rowId] = true;
1551
- });
1552
- } else {
1553
- oldExpanded = old;
1554
- }
1555
- expanded = (_expanded = expanded) != null ? _expanded : !exists;
1556
- if (!exists && expanded) {
1557
- return __spreadProps(__spreadValues({}, oldExpanded), {
1558
- [row.id]: true
1559
- });
1560
- }
1561
- if (exists && !expanded) {
1562
- const _b = oldExpanded, {
1563
- [_a = row.id]: _
1564
- } = _b, rest = __objRest(_b, [
1565
- __restKey(_a)
1566
- ]);
1567
- return rest;
1568
- }
1569
- return old;
1570
- });
1571
- };
1572
- row.getIsExpanded = () => {
1573
- var _table$options$getIsR;
1574
- const expanded = table.getState().expanded;
1575
- return !!((_table$options$getIsR = table.options.getIsRowExpanded == null ? void 0 : table.options.getIsRowExpanded(row)) != null ? _table$options$getIsR : expanded === true || (expanded == null ? void 0 : expanded[row.id]));
1576
- };
1577
- row.getCanExpand = () => {
1578
- var _table$options$getRow, _table$options$enable, _row$subRows;
1579
- return (_table$options$getRow = table.options.getRowCanExpand == null ? void 0 : table.options.getRowCanExpand(row)) != null ? _table$options$getRow : ((_table$options$enable = table.options.enableExpanding) != null ? _table$options$enable : true) && !!((_row$subRows = row.subRows) != null && _row$subRows.length);
1580
- };
1581
- row.getIsAllParentsExpanded = () => {
1582
- let isFullyExpanded = true;
1583
- let currentRow = row;
1584
- while (isFullyExpanded && currentRow.parentId) {
1585
- currentRow = table.getRow(currentRow.parentId, true);
1586
- isFullyExpanded = currentRow.getIsExpanded();
1587
- }
1588
- return isFullyExpanded;
1589
- };
1590
- row.getToggleExpandedHandler = () => {
1591
- const canExpand = row.getCanExpand();
1592
- return () => {
1593
- if (!canExpand) return;
1594
- row.toggleExpanded();
1595
- };
1596
- };
1597
- }
1598
- };
1599
- var defaultPageIndex = 0;
1600
- var defaultPageSize = 10;
1601
- var getDefaultPaginationState = () => ({
1602
- pageIndex: defaultPageIndex,
1603
- pageSize: defaultPageSize
1604
- });
1605
- var RowPagination = {
1606
- getInitialState: (state) => {
1607
- return __spreadProps(__spreadValues({}, state), {
1608
- pagination: __spreadValues(__spreadValues({}, getDefaultPaginationState()), state == null ? void 0 : state.pagination)
1609
- });
1610
- },
1611
- getDefaultOptions: (table) => {
1612
- return {
1613
- onPaginationChange: makeStateUpdater("pagination", table)
1614
- };
1615
- },
1616
- createTable: (table) => {
1617
- let registered = false;
1618
- let queued = false;
1619
- table._autoResetPageIndex = () => {
1620
- var _ref, _table$options$autoRe;
1621
- if (!registered) {
1622
- table._queue(() => {
1623
- registered = true;
1624
- });
1625
- return;
1626
- }
1627
- if ((_ref = (_table$options$autoRe = table.options.autoResetAll) != null ? _table$options$autoRe : table.options.autoResetPageIndex) != null ? _ref : !table.options.manualPagination) {
1628
- if (queued) return;
1629
- queued = true;
1630
- table._queue(() => {
1631
- table.resetPageIndex();
1632
- queued = false;
1633
- });
1634
- }
1635
- };
1636
- table.setPagination = (updater) => {
1637
- const safeUpdater = (old) => {
1638
- let newState = functionalUpdate(updater, old);
1639
- return newState;
1640
- };
1641
- return table.options.onPaginationChange == null ? void 0 : table.options.onPaginationChange(safeUpdater);
1642
- };
1643
- table.resetPagination = (defaultState) => {
1644
- var _table$initialState$p;
1645
- table.setPagination(defaultState ? getDefaultPaginationState() : (_table$initialState$p = table.initialState.pagination) != null ? _table$initialState$p : getDefaultPaginationState());
1646
- };
1647
- table.setPageIndex = (updater) => {
1648
- table.setPagination((old) => {
1649
- let pageIndex = functionalUpdate(updater, old.pageIndex);
1650
- const maxPageIndex = typeof table.options.pageCount === "undefined" || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
1651
- pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
1652
- return __spreadProps(__spreadValues({}, old), {
1653
- pageIndex
1654
- });
1655
- });
1656
- };
1657
- table.resetPageIndex = (defaultState) => {
1658
- var _table$initialState$p2, _table$initialState;
1659
- table.setPageIndex(defaultState ? defaultPageIndex : (_table$initialState$p2 = (_table$initialState = table.initialState) == null || (_table$initialState = _table$initialState.pagination) == null ? void 0 : _table$initialState.pageIndex) != null ? _table$initialState$p2 : defaultPageIndex);
1660
- };
1661
- table.resetPageSize = (defaultState) => {
1662
- var _table$initialState$p3, _table$initialState2;
1663
- table.setPageSize(defaultState ? defaultPageSize : (_table$initialState$p3 = (_table$initialState2 = table.initialState) == null || (_table$initialState2 = _table$initialState2.pagination) == null ? void 0 : _table$initialState2.pageSize) != null ? _table$initialState$p3 : defaultPageSize);
1664
- };
1665
- table.setPageSize = (updater) => {
1666
- table.setPagination((old) => {
1667
- const pageSize = Math.max(1, functionalUpdate(updater, old.pageSize));
1668
- const topRowIndex = old.pageSize * old.pageIndex;
1669
- const pageIndex = Math.floor(topRowIndex / pageSize);
1670
- return __spreadProps(__spreadValues({}, old), {
1671
- pageIndex,
1672
- pageSize
1673
- });
1674
- });
1675
- };
1676
- table.setPageCount = (updater) => table.setPagination((old) => {
1677
- var _table$options$pageCo;
1678
- let newPageCount = functionalUpdate(updater, (_table$options$pageCo = table.options.pageCount) != null ? _table$options$pageCo : -1);
1679
- if (typeof newPageCount === "number") {
1680
- newPageCount = Math.max(-1, newPageCount);
1681
- }
1682
- return __spreadProps(__spreadValues({}, old), {
1683
- pageCount: newPageCount
1684
- });
1685
- });
1686
- table.getPageOptions = memo(() => [table.getPageCount()], (pageCount) => {
1687
- let pageOptions = [];
1688
- if (pageCount && pageCount > 0) {
1689
- pageOptions = [...new Array(pageCount)].fill(null).map((_, i) => i);
1690
- }
1691
- return pageOptions;
1692
- }, getMemoOptions(table.options, "debugTable", "getPageOptions"));
1693
- table.getCanPreviousPage = () => table.getState().pagination.pageIndex > 0;
1694
- table.getCanNextPage = () => {
1695
- const {
1696
- pageIndex
1697
- } = table.getState().pagination;
1698
- const pageCount = table.getPageCount();
1699
- if (pageCount === -1) {
1700
- return true;
1701
- }
1702
- if (pageCount === 0) {
1703
- return false;
1704
- }
1705
- return pageIndex < pageCount - 1;
1706
- };
1707
- table.previousPage = () => {
1708
- return table.setPageIndex((old) => old - 1);
1709
- };
1710
- table.nextPage = () => {
1711
- return table.setPageIndex((old) => {
1712
- return old + 1;
1713
- });
1714
- };
1715
- table.firstPage = () => {
1716
- return table.setPageIndex(0);
1717
- };
1718
- table.lastPage = () => {
1719
- return table.setPageIndex(table.getPageCount() - 1);
1720
- };
1721
- table.getPrePaginationRowModel = () => table.getExpandedRowModel();
1722
- table.getPaginationRowModel = () => {
1723
- if (!table._getPaginationRowModel && table.options.getPaginationRowModel) {
1724
- table._getPaginationRowModel = table.options.getPaginationRowModel(table);
1725
- }
1726
- if (table.options.manualPagination || !table._getPaginationRowModel) {
1727
- return table.getPrePaginationRowModel();
1728
- }
1729
- return table._getPaginationRowModel();
1730
- };
1731
- table.getPageCount = () => {
1732
- var _table$options$pageCo2;
1733
- return (_table$options$pageCo2 = table.options.pageCount) != null ? _table$options$pageCo2 : Math.ceil(table.getRowCount() / table.getState().pagination.pageSize);
1734
- };
1735
- table.getRowCount = () => {
1736
- var _table$options$rowCou;
1737
- return (_table$options$rowCou = table.options.rowCount) != null ? _table$options$rowCou : table.getPrePaginationRowModel().rows.length;
1738
- };
1739
- }
1740
- };
1741
- var getDefaultRowPinningState = () => ({
1742
- top: [],
1743
- bottom: []
1744
- });
1745
- var RowPinning = {
1746
- getInitialState: (state) => {
1747
- return __spreadValues({
1748
- rowPinning: getDefaultRowPinningState()
1749
- }, state);
1750
- },
1751
- getDefaultOptions: (table) => {
1752
- return {
1753
- onRowPinningChange: makeStateUpdater("rowPinning", table)
1754
- };
1755
- },
1756
- createRow: (row, table) => {
1757
- row.pin = (position, includeLeafRows, includeParentRows) => {
1758
- const leafRowIds = includeLeafRows ? row.getLeafRows().map((_ref) => {
1759
- let {
1760
- id
1761
- } = _ref;
1762
- return id;
1763
- }) : [];
1764
- const parentRowIds = includeParentRows ? row.getParentRows().map((_ref2) => {
1765
- let {
1766
- id
1767
- } = _ref2;
1768
- return id;
1769
- }) : [];
1770
- const rowIds = /* @__PURE__ */ new Set([...parentRowIds, row.id, ...leafRowIds]);
1771
- table.setRowPinning((old) => {
1772
- var _old$top3, _old$bottom3;
1773
- if (position === "bottom") {
1774
- var _old$top, _old$bottom;
1775
- return {
1776
- top: ((_old$top = old == null ? void 0 : old.top) != null ? _old$top : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1777
- bottom: [...((_old$bottom = old == null ? void 0 : old.bottom) != null ? _old$bottom : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)]
1778
- };
1779
- }
1780
- if (position === "top") {
1781
- var _old$top2, _old$bottom2;
1782
- return {
1783
- top: [...((_old$top2 = old == null ? void 0 : old.top) != null ? _old$top2 : []).filter((d) => !(rowIds != null && rowIds.has(d))), ...Array.from(rowIds)],
1784
- bottom: ((_old$bottom2 = old == null ? void 0 : old.bottom) != null ? _old$bottom2 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1785
- };
1786
- }
1787
- return {
1788
- top: ((_old$top3 = old == null ? void 0 : old.top) != null ? _old$top3 : []).filter((d) => !(rowIds != null && rowIds.has(d))),
1789
- bottom: ((_old$bottom3 = old == null ? void 0 : old.bottom) != null ? _old$bottom3 : []).filter((d) => !(rowIds != null && rowIds.has(d)))
1790
- };
1791
- });
1792
- };
1793
- row.getCanPin = () => {
1794
- var _ref3;
1795
- const {
1796
- enableRowPinning,
1797
- enablePinning
1798
- } = table.options;
1799
- if (typeof enableRowPinning === "function") {
1800
- return enableRowPinning(row);
1801
- }
1802
- return (_ref3 = enableRowPinning != null ? enableRowPinning : enablePinning) != null ? _ref3 : true;
1803
- };
1804
- row.getIsPinned = () => {
1805
- const rowIds = [row.id];
1806
- const {
1807
- top,
1808
- bottom
1809
- } = table.getState().rowPinning;
1810
- const isTop = rowIds.some((d) => top == null ? void 0 : top.includes(d));
1811
- const isBottom = rowIds.some((d) => bottom == null ? void 0 : bottom.includes(d));
1812
- return isTop ? "top" : isBottom ? "bottom" : false;
1813
- };
1814
- row.getPinnedIndex = () => {
1815
- var _ref4, _visiblePinnedRowIds$;
1816
- const position = row.getIsPinned();
1817
- if (!position) return -1;
1818
- const visiblePinnedRowIds = (_ref4 = position === "top" ? table.getTopRows() : table.getBottomRows()) == null ? void 0 : _ref4.map((_ref5) => {
1819
- let {
1820
- id
1821
- } = _ref5;
1822
- return id;
1823
- });
1824
- return (_visiblePinnedRowIds$ = visiblePinnedRowIds == null ? void 0 : visiblePinnedRowIds.indexOf(row.id)) != null ? _visiblePinnedRowIds$ : -1;
1825
- };
1826
- },
1827
- createTable: (table) => {
1828
- table.setRowPinning = (updater) => table.options.onRowPinningChange == null ? void 0 : table.options.onRowPinningChange(updater);
1829
- table.resetRowPinning = (defaultState) => {
1830
- var _table$initialState$r, _table$initialState;
1831
- return table.setRowPinning(defaultState ? getDefaultRowPinningState() : (_table$initialState$r = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.rowPinning) != null ? _table$initialState$r : getDefaultRowPinningState());
1832
- };
1833
- table.getIsSomeRowsPinned = (position) => {
1834
- var _pinningState$positio;
1835
- const pinningState = table.getState().rowPinning;
1836
- if (!position) {
1837
- var _pinningState$top, _pinningState$bottom;
1838
- return Boolean(((_pinningState$top = pinningState.top) == null ? void 0 : _pinningState$top.length) || ((_pinningState$bottom = pinningState.bottom) == null ? void 0 : _pinningState$bottom.length));
1839
- }
1840
- return Boolean((_pinningState$positio = pinningState[position]) == null ? void 0 : _pinningState$positio.length);
1841
- };
1842
- table._getPinnedRows = (visibleRows, pinnedRowIds, position) => {
1843
- var _table$options$keepPi;
1844
- const rows = ((_table$options$keepPi = table.options.keepPinnedRows) != null ? _table$options$keepPi : true) ? (
1845
- //get all rows that are pinned even if they would not be otherwise visible
1846
- //account for expanded parent rows, but not pagination or filtering
1847
- (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => {
1848
- const row = table.getRow(rowId, true);
1849
- return row.getIsAllParentsExpanded() ? row : null;
1850
- })
1851
- ) : (
1852
- //else get only visible rows that are pinned
1853
- (pinnedRowIds != null ? pinnedRowIds : []).map((rowId) => visibleRows.find((row) => row.id === rowId))
1854
- );
1855
- return rows.filter(Boolean).map((d) => __spreadProps(__spreadValues({}, d), {
1856
- position
1857
- }));
1858
- };
1859
- table.getTopRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top], (allRows, topPinnedRowIds) => table._getPinnedRows(allRows, topPinnedRowIds, "top"), getMemoOptions(table.options, "debugRows", "getTopRows"));
1860
- table.getBottomRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.bottom], (allRows, bottomPinnedRowIds) => table._getPinnedRows(allRows, bottomPinnedRowIds, "bottom"), getMemoOptions(table.options, "debugRows", "getBottomRows"));
1861
- table.getCenterRows = memo(() => [table.getRowModel().rows, table.getState().rowPinning.top, table.getState().rowPinning.bottom], (allRows, top, bottom) => {
1862
- const topAndBottom = /* @__PURE__ */ new Set([...top != null ? top : [], ...bottom != null ? bottom : []]);
1863
- return allRows.filter((d) => !topAndBottom.has(d.id));
1864
- }, getMemoOptions(table.options, "debugRows", "getCenterRows"));
1865
- }
1866
- };
1867
- var RowSelection = {
1868
- getInitialState: (state) => {
1869
- return __spreadValues({
1870
- rowSelection: {}
1871
- }, state);
1872
- },
1873
- getDefaultOptions: (table) => {
1874
- return {
1875
- onRowSelectionChange: makeStateUpdater("rowSelection", table),
1876
- enableRowSelection: true,
1877
- enableMultiRowSelection: true,
1878
- enableSubRowSelection: true
1879
- // enableGroupingRowSelection: false,
1880
- // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1881
- // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1882
- };
1883
- },
1884
- createTable: (table) => {
1885
- table.setRowSelection = (updater) => table.options.onRowSelectionChange == null ? void 0 : table.options.onRowSelectionChange(updater);
1886
- table.resetRowSelection = (defaultState) => {
1887
- var _table$initialState$r;
1888
- return table.setRowSelection(defaultState ? {} : (_table$initialState$r = table.initialState.rowSelection) != null ? _table$initialState$r : {});
1889
- };
1890
- table.toggleAllRowsSelected = (value) => {
1891
- table.setRowSelection((old) => {
1892
- value = typeof value !== "undefined" ? value : !table.getIsAllRowsSelected();
1893
- const rowSelection = __spreadValues({}, old);
1894
- const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
1895
- if (value) {
1896
- preGroupedFlatRows.forEach((row) => {
1897
- if (!row.getCanSelect()) {
1898
- return;
1899
- }
1900
- rowSelection[row.id] = true;
1901
- });
1902
- } else {
1903
- preGroupedFlatRows.forEach((row) => {
1904
- delete rowSelection[row.id];
1905
- });
1906
- }
1907
- return rowSelection;
1908
- });
1909
- };
1910
- table.toggleAllPageRowsSelected = (value) => table.setRowSelection((old) => {
1911
- const resolvedValue = typeof value !== "undefined" ? value : !table.getIsAllPageRowsSelected();
1912
- const rowSelection = __spreadValues({}, old);
1913
- table.getRowModel().rows.forEach((row) => {
1914
- mutateRowIsSelected(rowSelection, row.id, resolvedValue, true, table);
1915
- });
1916
- return rowSelection;
1917
- });
1918
- table.getPreSelectedRowModel = () => table.getCoreRowModel();
1919
- table.getSelectedRowModel = memo(() => [table.getState().rowSelection, table.getCoreRowModel()], (rowSelection, rowModel) => {
1920
- if (!Object.keys(rowSelection).length) {
1921
- return {
1922
- rows: [],
1923
- flatRows: [],
1924
- rowsById: {}
1925
- };
1926
- }
1927
- return selectRowsFn(table, rowModel);
1928
- }, getMemoOptions(table.options, "debugTable", "getSelectedRowModel"));
1929
- table.getFilteredSelectedRowModel = memo(() => [table.getState().rowSelection, table.getFilteredRowModel()], (rowSelection, rowModel) => {
1930
- if (!Object.keys(rowSelection).length) {
1931
- return {
1932
- rows: [],
1933
- flatRows: [],
1934
- rowsById: {}
1935
- };
1936
- }
1937
- return selectRowsFn(table, rowModel);
1938
- }, getMemoOptions(table.options, "debugTable", "getFilteredSelectedRowModel"));
1939
- table.getGroupedSelectedRowModel = memo(() => [table.getState().rowSelection, table.getSortedRowModel()], (rowSelection, rowModel) => {
1940
- if (!Object.keys(rowSelection).length) {
1941
- return {
1942
- rows: [],
1943
- flatRows: [],
1944
- rowsById: {}
1945
- };
1946
- }
1947
- return selectRowsFn(table, rowModel);
1948
- }, getMemoOptions(table.options, "debugTable", "getGroupedSelectedRowModel"));
1949
- table.getIsAllRowsSelected = () => {
1950
- const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
1951
- const {
1952
- rowSelection
1953
- } = table.getState();
1954
- let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
1955
- if (isAllRowsSelected) {
1956
- if (preGroupedFlatRows.some((row) => row.getCanSelect() && !rowSelection[row.id])) {
1957
- isAllRowsSelected = false;
1958
- }
1959
- }
1960
- return isAllRowsSelected;
1961
- };
1962
- table.getIsAllPageRowsSelected = () => {
1963
- const paginationFlatRows = table.getPaginationRowModel().flatRows.filter((row) => row.getCanSelect());
1964
- const {
1965
- rowSelection
1966
- } = table.getState();
1967
- let isAllPageRowsSelected = !!paginationFlatRows.length;
1968
- if (isAllPageRowsSelected && paginationFlatRows.some((row) => !rowSelection[row.id])) {
1969
- isAllPageRowsSelected = false;
1970
- }
1971
- return isAllPageRowsSelected;
1972
- };
1973
- table.getIsSomeRowsSelected = () => {
1974
- var _table$getState$rowSe;
1975
- const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
1976
- return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
1977
- };
1978
- table.getIsSomePageRowsSelected = () => {
1979
- const paginationFlatRows = table.getPaginationRowModel().flatRows;
1980
- return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter((row) => row.getCanSelect()).some((d) => d.getIsSelected() || d.getIsSomeSelected());
1981
- };
1982
- table.getToggleAllRowsSelectedHandler = () => {
1983
- return (e) => {
1984
- table.toggleAllRowsSelected(e.target.checked);
1985
- };
1986
- };
1987
- table.getToggleAllPageRowsSelectedHandler = () => {
1988
- return (e) => {
1989
- table.toggleAllPageRowsSelected(e.target.checked);
1990
- };
1991
- };
1992
- },
1993
- createRow: (row, table) => {
1994
- row.toggleSelected = (value, opts) => {
1995
- const isSelected = row.getIsSelected();
1996
- table.setRowSelection((old) => {
1997
- var _opts$selectChildren;
1998
- value = typeof value !== "undefined" ? value : !isSelected;
1999
- if (row.getCanSelect() && isSelected === value) {
2000
- return old;
2001
- }
2002
- const selectedRowIds = __spreadValues({}, old);
2003
- mutateRowIsSelected(selectedRowIds, row.id, value, (_opts$selectChildren = opts == null ? void 0 : opts.selectChildren) != null ? _opts$selectChildren : true, table);
2004
- return selectedRowIds;
2005
- });
2006
- };
2007
- row.getIsSelected = () => {
2008
- const {
2009
- rowSelection
2010
- } = table.getState();
2011
- return isRowSelected(row, rowSelection);
2012
- };
2013
- row.getIsSomeSelected = () => {
2014
- const {
2015
- rowSelection
2016
- } = table.getState();
2017
- return isSubRowSelected(row, rowSelection) === "some";
2018
- };
2019
- row.getIsAllSubRowsSelected = () => {
2020
- const {
2021
- rowSelection
2022
- } = table.getState();
2023
- return isSubRowSelected(row, rowSelection) === "all";
2024
- };
2025
- row.getCanSelect = () => {
2026
- var _table$options$enable;
2027
- if (typeof table.options.enableRowSelection === "function") {
2028
- return table.options.enableRowSelection(row);
2029
- }
2030
- return (_table$options$enable = table.options.enableRowSelection) != null ? _table$options$enable : true;
2031
- };
2032
- row.getCanSelectSubRows = () => {
2033
- var _table$options$enable2;
2034
- if (typeof table.options.enableSubRowSelection === "function") {
2035
- return table.options.enableSubRowSelection(row);
2036
- }
2037
- return (_table$options$enable2 = table.options.enableSubRowSelection) != null ? _table$options$enable2 : true;
2038
- };
2039
- row.getCanMultiSelect = () => {
2040
- var _table$options$enable3;
2041
- if (typeof table.options.enableMultiRowSelection === "function") {
2042
- return table.options.enableMultiRowSelection(row);
2043
- }
2044
- return (_table$options$enable3 = table.options.enableMultiRowSelection) != null ? _table$options$enable3 : true;
2045
- };
2046
- row.getToggleSelectedHandler = () => {
2047
- const canSelect = row.getCanSelect();
2048
- return (e) => {
2049
- var _target;
2050
- if (!canSelect) return;
2051
- row.toggleSelected((_target = e.target) == null ? void 0 : _target.checked);
2052
- };
2053
- };
2054
- }
2055
- };
2056
- var mutateRowIsSelected = (selectedRowIds, id, value, includeChildren, table) => {
2057
- var _row$subRows;
2058
- const row = table.getRow(id, true);
2059
- if (value) {
2060
- if (!row.getCanMultiSelect()) {
2061
- Object.keys(selectedRowIds).forEach((key) => delete selectedRowIds[key]);
2062
- }
2063
- if (row.getCanSelect()) {
2064
- selectedRowIds[id] = true;
2065
- }
2066
- } else {
2067
- delete selectedRowIds[id];
2068
- }
2069
- if (includeChildren && (_row$subRows = row.subRows) != null && _row$subRows.length && row.getCanSelectSubRows()) {
2070
- row.subRows.forEach((row2) => mutateRowIsSelected(selectedRowIds, row2.id, value, includeChildren, table));
2071
- }
2072
- };
2073
- function selectRowsFn(table, rowModel) {
2074
- const rowSelection = table.getState().rowSelection;
2075
- const newSelectedFlatRows = [];
2076
- const newSelectedRowsById = {};
2077
- const recurseRows = function(rows, depth) {
2078
- return rows.map((row) => {
2079
- var _row$subRows2;
2080
- const isSelected = isRowSelected(row, rowSelection);
2081
- if (isSelected) {
2082
- newSelectedFlatRows.push(row);
2083
- newSelectedRowsById[row.id] = row;
2084
- }
2085
- if ((_row$subRows2 = row.subRows) != null && _row$subRows2.length) {
2086
- row = __spreadProps(__spreadValues({}, row), {
2087
- subRows: recurseRows(row.subRows)
2088
- });
2089
- }
2090
- if (isSelected) {
2091
- return row;
2092
- }
2093
- }).filter(Boolean);
2094
- };
2095
- return {
2096
- rows: recurseRows(rowModel.rows),
2097
- flatRows: newSelectedFlatRows,
2098
- rowsById: newSelectedRowsById
2099
- };
2100
- }
2101
- function isRowSelected(row, selection) {
2102
- var _selection$row$id;
2103
- return (_selection$row$id = selection[row.id]) != null ? _selection$row$id : false;
2104
- }
2105
- function isSubRowSelected(row, selection, table) {
2106
- var _row$subRows3;
2107
- if (!((_row$subRows3 = row.subRows) != null && _row$subRows3.length)) return false;
2108
- let allChildrenSelected = true;
2109
- let someSelected = false;
2110
- row.subRows.forEach((subRow) => {
2111
- if (someSelected && !allChildrenSelected) {
2112
- return;
2113
- }
2114
- if (subRow.getCanSelect()) {
2115
- if (isRowSelected(subRow, selection)) {
2116
- someSelected = true;
2117
- } else {
2118
- allChildrenSelected = false;
2119
- }
2120
- }
2121
- if (subRow.subRows && subRow.subRows.length) {
2122
- const subRowChildrenSelected = isSubRowSelected(subRow, selection);
2123
- if (subRowChildrenSelected === "all") {
2124
- someSelected = true;
2125
- } else if (subRowChildrenSelected === "some") {
2126
- someSelected = true;
2127
- allChildrenSelected = false;
2128
- } else {
2129
- allChildrenSelected = false;
2130
- }
2131
- }
2132
- });
2133
- return allChildrenSelected ? "all" : someSelected ? "some" : false;
2134
- }
2135
- var reSplitAlphaNumeric = /([0-9]+)/gm;
2136
- var alphanumeric = (rowA, rowB, columnId) => {
2137
- return compareAlphanumeric(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2138
- };
2139
- var alphanumericCaseSensitive = (rowA, rowB, columnId) => {
2140
- return compareAlphanumeric(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2141
- };
2142
- var text = (rowA, rowB, columnId) => {
2143
- return compareBasic(toString(rowA.getValue(columnId)).toLowerCase(), toString(rowB.getValue(columnId)).toLowerCase());
2144
- };
2145
- var textCaseSensitive = (rowA, rowB, columnId) => {
2146
- return compareBasic(toString(rowA.getValue(columnId)), toString(rowB.getValue(columnId)));
2147
- };
2148
- var datetime = (rowA, rowB, columnId) => {
2149
- const a = rowA.getValue(columnId);
2150
- const b = rowB.getValue(columnId);
2151
- return a > b ? 1 : a < b ? -1 : 0;
2152
- };
2153
- var basic = (rowA, rowB, columnId) => {
2154
- return compareBasic(rowA.getValue(columnId), rowB.getValue(columnId));
2155
- };
2156
- function compareBasic(a, b) {
2157
- return a === b ? 0 : a > b ? 1 : -1;
2158
- }
2159
- function toString(a) {
2160
- if (typeof a === "number") {
2161
- if (isNaN(a) || a === Infinity || a === -Infinity) {
2162
- return "";
2163
- }
2164
- return String(a);
2165
- }
2166
- if (typeof a === "string") {
2167
- return a;
2168
- }
2169
- return "";
2170
- }
2171
- function compareAlphanumeric(aStr, bStr) {
2172
- const a = aStr.split(reSplitAlphaNumeric).filter(Boolean);
2173
- const b = bStr.split(reSplitAlphaNumeric).filter(Boolean);
2174
- while (a.length && b.length) {
2175
- const aa = a.shift();
2176
- const bb = b.shift();
2177
- const an = parseInt(aa, 10);
2178
- const bn = parseInt(bb, 10);
2179
- const combo = [an, bn].sort();
2180
- if (isNaN(combo[0])) {
2181
- if (aa > bb) {
2182
- return 1;
2183
- }
2184
- if (bb > aa) {
2185
- return -1;
2186
- }
2187
- continue;
2188
- }
2189
- if (isNaN(combo[1])) {
2190
- return isNaN(an) ? -1 : 1;
2191
- }
2192
- if (an > bn) {
2193
- return 1;
2194
- }
2195
- if (bn > an) {
2196
- return -1;
2197
- }
2198
- }
2199
- return a.length - b.length;
2200
- }
2201
- var sortingFns = {
2202
- alphanumeric,
2203
- alphanumericCaseSensitive,
2204
- text,
2205
- textCaseSensitive,
2206
- datetime,
2207
- basic
2208
- };
2209
- var RowSorting = {
2210
- getInitialState: (state) => {
2211
- return __spreadValues({
2212
- sorting: []
2213
- }, state);
2214
- },
2215
- getDefaultColumnDef: () => {
2216
- return {
2217
- sortingFn: "auto",
2218
- sortUndefined: 1
2219
- };
2220
- },
2221
- getDefaultOptions: (table) => {
2222
- return {
2223
- onSortingChange: makeStateUpdater("sorting", table),
2224
- isMultiSortEvent: (e) => {
2225
- return e.shiftKey;
2226
- }
2227
- };
2228
- },
2229
- createColumn: (column, table) => {
2230
- column.getAutoSortingFn = () => {
2231
- const firstRows = table.getFilteredRowModel().flatRows.slice(10);
2232
- let isString = false;
2233
- for (const row of firstRows) {
2234
- const value = row == null ? void 0 : row.getValue(column.id);
2235
- if (Object.prototype.toString.call(value) === "[object Date]") {
2236
- return sortingFns.datetime;
2237
- }
2238
- if (typeof value === "string") {
2239
- isString = true;
2240
- if (value.split(reSplitAlphaNumeric).length > 1) {
2241
- return sortingFns.alphanumeric;
2242
- }
2243
- }
2244
- }
2245
- if (isString) {
2246
- return sortingFns.text;
2247
- }
2248
- return sortingFns.basic;
2249
- };
2250
- column.getAutoSortDir = () => {
2251
- const firstRow = table.getFilteredRowModel().flatRows[0];
2252
- const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
2253
- if (typeof value === "string") {
2254
- return "asc";
2255
- }
2256
- return "desc";
2257
- };
2258
- column.getSortingFn = () => {
2259
- var _table$options$sortin, _table$options$sortin2;
2260
- if (!column) {
2261
- throw new Error();
2262
- }
2263
- return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === "auto" ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
2264
- };
2265
- column.toggleSorting = (desc, multi) => {
2266
- const nextSortingOrder = column.getNextSortingOrder();
2267
- const hasManualValue = typeof desc !== "undefined" && desc !== null;
2268
- table.setSorting((old) => {
2269
- const existingSorting = old == null ? void 0 : old.find((d) => d.id === column.id);
2270
- const existingIndex = old == null ? void 0 : old.findIndex((d) => d.id === column.id);
2271
- let newSorting = [];
2272
- let sortAction;
2273
- let nextDesc = hasManualValue ? desc : nextSortingOrder === "desc";
2274
- if (old != null && old.length && column.getCanMultiSort() && multi) {
2275
- if (existingSorting) {
2276
- sortAction = "toggle";
2277
- } else {
2278
- sortAction = "add";
2279
- }
2280
- } else {
2281
- if (old != null && old.length && existingIndex !== old.length - 1) {
2282
- sortAction = "replace";
2283
- } else if (existingSorting) {
2284
- sortAction = "toggle";
2285
- } else {
2286
- sortAction = "replace";
2287
- }
2288
- }
2289
- if (sortAction === "toggle") {
2290
- if (!hasManualValue) {
2291
- if (!nextSortingOrder) {
2292
- sortAction = "remove";
2293
- }
2294
- }
2295
- }
2296
- if (sortAction === "add") {
2297
- var _table$options$maxMul;
2298
- newSorting = [...old, {
2299
- id: column.id,
2300
- desc: nextDesc
2301
- }];
2302
- newSorting.splice(0, newSorting.length - ((_table$options$maxMul = table.options.maxMultiSortColCount) != null ? _table$options$maxMul : Number.MAX_SAFE_INTEGER));
2303
- } else if (sortAction === "toggle") {
2304
- newSorting = old.map((d) => {
2305
- if (d.id === column.id) {
2306
- return __spreadProps(__spreadValues({}, d), {
2307
- desc: nextDesc
2308
- });
2309
- }
2310
- return d;
2311
- });
2312
- } else if (sortAction === "remove") {
2313
- newSorting = old.filter((d) => d.id !== column.id);
2314
- } else {
2315
- newSorting = [{
2316
- id: column.id,
2317
- desc: nextDesc
2318
- }];
2319
- }
2320
- return newSorting;
2321
- });
2322
- };
2323
- column.getFirstSortDir = () => {
2324
- var _ref, _column$columnDef$sor;
2325
- const sortDescFirst = (_ref = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : table.options.sortDescFirst) != null ? _ref : column.getAutoSortDir() === "desc";
2326
- return sortDescFirst ? "desc" : "asc";
2327
- };
2328
- column.getNextSortingOrder = (multi) => {
2329
- var _table$options$enable, _table$options$enable2;
2330
- const firstSortDirection = column.getFirstSortDir();
2331
- const isSorted = column.getIsSorted();
2332
- if (!isSorted) {
2333
- return firstSortDirection;
2334
- }
2335
- if (isSorted !== firstSortDirection && ((_table$options$enable = table.options.enableSortingRemoval) != null ? _table$options$enable : true) && // If enableSortRemove, enable in general
2336
- (multi ? (_table$options$enable2 = table.options.enableMultiRemove) != null ? _table$options$enable2 : true : true)) {
2337
- return false;
2338
- }
2339
- return isSorted === "desc" ? "asc" : "desc";
2340
- };
2341
- column.getCanSort = () => {
2342
- var _column$columnDef$ena, _table$options$enable3;
2343
- return ((_column$columnDef$ena = column.columnDef.enableSorting) != null ? _column$columnDef$ena : true) && ((_table$options$enable3 = table.options.enableSorting) != null ? _table$options$enable3 : true) && !!column.accessorFn;
2344
- };
2345
- column.getCanMultiSort = () => {
2346
- var _ref2, _column$columnDef$ena2;
2347
- return (_ref2 = (_column$columnDef$ena2 = column.columnDef.enableMultiSort) != null ? _column$columnDef$ena2 : table.options.enableMultiSort) != null ? _ref2 : !!column.accessorFn;
2348
- };
2349
- column.getIsSorted = () => {
2350
- var _table$getState$sorti;
2351
- const columnSort = (_table$getState$sorti = table.getState().sorting) == null ? void 0 : _table$getState$sorti.find((d) => d.id === column.id);
2352
- return !columnSort ? false : columnSort.desc ? "desc" : "asc";
2353
- };
2354
- column.getSortIndex = () => {
2355
- var _table$getState$sorti2, _table$getState$sorti3;
2356
- return (_table$getState$sorti2 = (_table$getState$sorti3 = table.getState().sorting) == null ? void 0 : _table$getState$sorti3.findIndex((d) => d.id === column.id)) != null ? _table$getState$sorti2 : -1;
2357
- };
2358
- column.clearSorting = () => {
2359
- table.setSorting((old) => old != null && old.length ? old.filter((d) => d.id !== column.id) : []);
2360
- };
2361
- column.getToggleSortingHandler = () => {
2362
- const canSort = column.getCanSort();
2363
- return (e) => {
2364
- if (!canSort) return;
2365
- e.persist == null || e.persist();
2366
- column.toggleSorting == null || column.toggleSorting(void 0, column.getCanMultiSort() ? table.options.isMultiSortEvent == null ? void 0 : table.options.isMultiSortEvent(e) : false);
2367
- };
2368
- };
2369
- },
2370
- createTable: (table) => {
2371
- table.setSorting = (updater) => table.options.onSortingChange == null ? void 0 : table.options.onSortingChange(updater);
2372
- table.resetSorting = (defaultState) => {
2373
- var _table$initialState$s, _table$initialState;
2374
- table.setSorting(defaultState ? [] : (_table$initialState$s = (_table$initialState = table.initialState) == null ? void 0 : _table$initialState.sorting) != null ? _table$initialState$s : []);
2375
- };
2376
- table.getPreSortedRowModel = () => table.getGroupedRowModel();
2377
- table.getSortedRowModel = () => {
2378
- if (!table._getSortedRowModel && table.options.getSortedRowModel) {
2379
- table._getSortedRowModel = table.options.getSortedRowModel(table);
2380
- }
2381
- if (table.options.manualSorting || !table._getSortedRowModel) {
2382
- return table.getPreSortedRowModel();
2383
- }
2384
- return table._getSortedRowModel();
2385
- };
2386
- }
2387
- };
2388
- var builtInFeatures = [
2389
- Headers,
2390
- ColumnVisibility,
2391
- ColumnOrdering,
2392
- ColumnPinning,
2393
- ColumnFaceting,
2394
- ColumnFiltering,
2395
- GlobalFaceting,
2396
- //depends on ColumnFaceting
2397
- GlobalFiltering,
2398
- //depends on ColumnFiltering
2399
- RowSorting,
2400
- ColumnGrouping,
2401
- //depends on RowSorting
2402
- RowExpanding,
2403
- RowPagination,
2404
- RowPinning,
2405
- RowSelection,
2406
- ColumnSizing
2407
- ];
2408
- function createTable(options) {
2409
- var _options$_features, _options$initialState;
2410
- if (false) {
2411
- console.info("Creating Table Instance...");
2412
- }
2413
- const _features = [...builtInFeatures, ...(_options$_features = options._features) != null ? _options$_features : []];
2414
- let table = {
2415
- _features
2416
- };
2417
- const defaultOptions = table._features.reduce((obj, feature) => {
2418
- return Object.assign(obj, feature.getDefaultOptions == null ? void 0 : feature.getDefaultOptions(table));
2419
- }, {});
2420
- const mergeOptions = (options2) => {
2421
- if (table.options.mergeOptions) {
2422
- return table.options.mergeOptions(defaultOptions, options2);
2423
- }
2424
- return __spreadValues(__spreadValues({}, defaultOptions), options2);
2425
- };
2426
- const coreInitialState = {};
2427
- let initialState = __spreadValues(__spreadValues({}, coreInitialState), (_options$initialState = options.initialState) != null ? _options$initialState : {});
2428
- table._features.forEach((feature) => {
2429
- var _feature$getInitialSt;
2430
- initialState = (_feature$getInitialSt = feature.getInitialState == null ? void 0 : feature.getInitialState(initialState)) != null ? _feature$getInitialSt : initialState;
2431
- });
2432
- const queued = [];
2433
- let queuedTimeout = false;
2434
- const coreInstance = {
2435
- _features,
2436
- options: __spreadValues(__spreadValues({}, defaultOptions), options),
2437
- initialState,
2438
- _queue: (cb) => {
2439
- queued.push(cb);
2440
- if (!queuedTimeout) {
2441
- queuedTimeout = true;
2442
- Promise.resolve().then(() => {
2443
- while (queued.length) {
2444
- queued.shift()();
2445
- }
2446
- queuedTimeout = false;
2447
- }).catch((error) => setTimeout(() => {
2448
- throw error;
2449
- }));
2450
- }
2451
- },
2452
- reset: () => {
2453
- table.setState(table.initialState);
2454
- },
2455
- setOptions: (updater) => {
2456
- const newOptions = functionalUpdate(updater, table.options);
2457
- table.options = mergeOptions(newOptions);
2458
- },
2459
- getState: () => {
2460
- return table.options.state;
2461
- },
2462
- setState: (updater) => {
2463
- table.options.onStateChange == null || table.options.onStateChange(updater);
2464
- },
2465
- _getRowId: (row, index, parent) => {
2466
- var _table$options$getRow;
2467
- return (_table$options$getRow = table.options.getRowId == null ? void 0 : table.options.getRowId(row, index, parent)) != null ? _table$options$getRow : `${parent ? [parent.id, index].join(".") : index}`;
2468
- },
2469
- getCoreRowModel: () => {
2470
- if (!table._getCoreRowModel) {
2471
- table._getCoreRowModel = table.options.getCoreRowModel(table);
2472
- }
2473
- return table._getCoreRowModel();
2474
- },
2475
- // The final calls start at the bottom of the model,
2476
- // expanded rows, which then work their way up
2477
- getRowModel: () => {
2478
- return table.getPaginationRowModel();
2479
- },
2480
- //in next version, we should just pass in the row model as the optional 2nd arg
2481
- getRow: (id, searchAll) => {
2482
- let row = (searchAll ? table.getPrePaginationRowModel() : table.getRowModel()).rowsById[id];
2483
- if (!row) {
2484
- row = table.getCoreRowModel().rowsById[id];
2485
- if (!row) {
2486
- if (false) {
2487
- throw new Error(`getRow could not find row with ID: ${id}`);
2488
- }
2489
- throw new Error();
2490
- }
2491
- }
2492
- return row;
2493
- },
2494
- _getDefaultColumnDef: memo(() => [table.options.defaultColumn], (defaultColumn) => {
2495
- var _defaultColumn;
2496
- defaultColumn = (_defaultColumn = defaultColumn) != null ? _defaultColumn : {};
2497
- return __spreadValues(__spreadValues({
2498
- header: (props) => {
2499
- const resolvedColumnDef = props.header.column.columnDef;
2500
- if (resolvedColumnDef.accessorKey) {
2501
- return resolvedColumnDef.accessorKey;
2502
- }
2503
- if (resolvedColumnDef.accessorFn) {
2504
- return resolvedColumnDef.id;
2505
- }
2506
- return null;
2507
- },
2508
- // footer: props => props.header.column.id,
2509
- cell: (props) => {
2510
- var _props$renderValue$to, _props$renderValue;
2511
- return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null || _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
2512
- }
2513
- }, table._features.reduce((obj, feature) => {
2514
- return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
2515
- }, {})), defaultColumn);
2516
- }, getMemoOptions(options, "debugColumns", "_getDefaultColumnDef")),
2517
- _getColumnDefs: () => table.options.columns,
2518
- getAllColumns: memo(() => [table._getColumnDefs()], (columnDefs) => {
2519
- const recurseColumns = function(columnDefs2, parent, depth) {
2520
- if (depth === void 0) {
2521
- depth = 0;
2522
- }
2523
- return columnDefs2.map((columnDef) => {
2524
- const column = createColumn(table, columnDef, depth, parent);
2525
- const groupingColumnDef = columnDef;
2526
- column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
2527
- return column;
2528
- });
2529
- };
2530
- return recurseColumns(columnDefs);
2531
- }, getMemoOptions(options, "debugColumns", "getAllColumns")),
2532
- getAllFlatColumns: memo(() => [table.getAllColumns()], (allColumns) => {
2533
- return allColumns.flatMap((column) => {
2534
- return column.getFlatColumns();
2535
- });
2536
- }, getMemoOptions(options, "debugColumns", "getAllFlatColumns")),
2537
- _getAllFlatColumnsById: memo(() => [table.getAllFlatColumns()], (flatColumns) => {
2538
- return flatColumns.reduce((acc, column) => {
2539
- acc[column.id] = column;
2540
- return acc;
2541
- }, {});
2542
- }, getMemoOptions(options, "debugColumns", "getAllFlatColumnsById")),
2543
- getAllLeafColumns: memo(() => [table.getAllColumns(), table._getOrderColumnsFn()], (allColumns, orderColumns2) => {
2544
- let leafColumns = allColumns.flatMap((column) => column.getLeafColumns());
2545
- return orderColumns2(leafColumns);
2546
- }, getMemoOptions(options, "debugColumns", "getAllLeafColumns")),
2547
- getColumn: (columnId) => {
2548
- const column = table._getAllFlatColumnsById()[columnId];
2549
- if (false) {
2550
- console.error(`[Table] Column with id '${columnId}' does not exist.`);
2551
- }
2552
- return column;
2553
- }
2554
- };
2555
- Object.assign(table, coreInstance);
2556
- for (let index = 0; index < table._features.length; index++) {
2557
- const feature = table._features[index];
2558
- feature == null || feature.createTable == null || feature.createTable(table);
2559
- }
2560
- return table;
2561
- }
2562
- function getCoreRowModel() {
2563
- return (table) => memo(() => [table.options.data], (data) => {
2564
- const rowModel = {
2565
- rows: [],
2566
- flatRows: [],
2567
- rowsById: {}
2568
- };
2569
- const accessRows = function(originalRows, depth, parentRow) {
2570
- if (depth === void 0) {
2571
- depth = 0;
2572
- }
2573
- const rows = [];
2574
- for (let i = 0; i < originalRows.length; i++) {
2575
- const row = createRow(table, table._getRowId(originalRows[i], i, parentRow), originalRows[i], i, depth, void 0, parentRow == null ? void 0 : parentRow.id);
2576
- rowModel.flatRows.push(row);
2577
- rowModel.rowsById[row.id] = row;
2578
- rows.push(row);
2579
- if (table.options.getSubRows) {
2580
- var _row$originalSubRows;
2581
- row.originalSubRows = table.options.getSubRows(originalRows[i], i);
2582
- if ((_row$originalSubRows = row.originalSubRows) != null && _row$originalSubRows.length) {
2583
- row.subRows = accessRows(row.originalSubRows, depth + 1, row);
2584
- }
2585
- }
2586
- }
2587
- return rows;
2588
- };
2589
- rowModel.rows = accessRows(data);
2590
- return rowModel;
2591
- }, getMemoOptions(table.options, "debugTable", "getRowModel", () => table._autoResetPageIndex()));
2592
- }
2593
-
2594
- // node_modules/@tanstack/lit-table/build/lib/index.mjs
2595
- function flexRender(Comp, props) {
2596
- if (!Comp) return null;
2597
- if (typeof Comp === "function") {
2598
- return Comp(props);
2599
- }
2600
- return Comp;
2601
- }
2602
- var TableController = class {
2603
- constructor(host) {
2604
- __publicField(this, "tableInstance", null);
2605
- __publicField(this, "_tableState", null);
2606
- (this.host = host).addController(this);
2607
- }
2608
- table(options) {
2609
- if (!this.tableInstance) {
2610
- const resolvedOptions = __spreadValues({
2611
- state: {},
2612
- onStateChange: () => {
2613
- },
2614
- // noop
2615
- renderFallbackValue: null
2616
- }, options);
2617
- this.tableInstance = createTable(resolvedOptions);
2618
- this._tableState = __spreadValues(__spreadValues({}, this.tableInstance.initialState), options.state);
2619
- }
2620
- this.tableInstance.setOptions((prev) => __spreadProps(__spreadValues(__spreadValues({}, prev), options), {
2621
- state: __spreadValues(__spreadValues({}, this._tableState), options.state),
2622
- onStateChange: (updater) => {
2623
- this._tableState = updater(this._tableState);
2624
- this.host.requestUpdate();
2625
- options.onStateChange == null || options.onStateChange(updater);
2626
- }
2627
- }));
2628
- return this.tableInstance;
2629
- }
2630
- hostDisconnected() {
2631
- }
2632
- };
2633
-
2634
- export {
2635
- createColumnHelper,
2636
- getCoreRowModel,
2637
- flexRender,
2638
- TableController
2639
- };
2640
- /*! Bundled license information:
2641
-
2642
- @tanstack/table-core/build/lib/index.mjs:
2643
- (**
2644
- * table-core
2645
- *
2646
- * Copyright (c) TanStack
2647
- *
2648
- * This source code is licensed under the MIT license found in the
2649
- * LICENSE.md file in the root directory of this source tree.
2650
- *
2651
- * @license MIT
2652
- *)
2653
-
2654
- @tanstack/lit-table/build/lib/index.mjs:
2655
- (**
2656
- * lit-table
2657
- *
2658
- * Copyright (c) TanStack
2659
- *
2660
- * This source code is licensed under the MIT license found in the
2661
- * LICENSE.md file in the root directory of this source tree.
2662
- *
2663
- * @license MIT
2664
- *)
2665
- */