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