@soft-stech/bootsman-ui-shadcn 1.0.5-beta.0 → 1.0.5-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (637) hide show
  1. package/dist/bootsman-ui-shadcn.js +321 -0
  2. package/dist/bootsman-ui-shadcn10.js +29 -0
  3. package/dist/bootsman-ui-shadcn100.js +28 -0
  4. package/dist/bootsman-ui-shadcn101.js +23 -0
  5. package/dist/bootsman-ui-shadcn102.js +21 -0
  6. package/dist/{BuiPopoverContent.vue_vue_type_script_setup_true_lang-6Q4wDBdm.js → bootsman-ui-shadcn103.js} +6 -6
  7. package/dist/bootsman-ui-shadcn104.js +43 -0
  8. package/dist/bootsman-ui-shadcn105.js +34 -0
  9. package/dist/{BuiRadioGroupItem.vue_vue_type_script_setup_true_lang-Udw3d-uA.js → bootsman-ui-shadcn106.js} +14 -14
  10. package/dist/bootsman-ui-shadcn107.js +25 -0
  11. package/dist/{BuiSelectItemText.vue_vue_type_script_setup_true_lang-imykUnFM.js → bootsman-ui-shadcn108.js} +7 -7
  12. package/dist/bootsman-ui-shadcn109.js +26 -0
  13. package/dist/bootsman-ui-shadcn11.js +19 -0
  14. package/dist/bootsman-ui-shadcn110.js +20 -0
  15. package/dist/{BuiSeparator.vue_vue_type_script_setup_true_lang-pUN5ULqS.js → bootsman-ui-shadcn111.js} +7 -7
  16. package/dist/{BuiSwitch.vue_vue_type_script_setup_true_lang-93LvyOCb.js → bootsman-ui-shadcn112.js} +6 -6
  17. package/dist/{BuiTable.vue_vue_type_script_setup_true_lang-VjnNXySt.js → bootsman-ui-shadcn113.js} +5 -5
  18. package/dist/bootsman-ui-shadcn114.js +19 -0
  19. package/dist/{BuiTableCell.vue_vue_type_script_setup_true_lang-vc73Gfv1.js → bootsman-ui-shadcn115.js} +6 -6
  20. package/dist/{BuiTableHead.vue_vue_type_script_setup_true_lang-NgeaEnDr.js → bootsman-ui-shadcn116.js} +5 -5
  21. package/dist/{BuiTableHeader.vue_vue_type_script_setup_true_lang-RslMGWT4.js → bootsman-ui-shadcn117.js} +5 -5
  22. package/dist/bootsman-ui-shadcn118.js +24 -0
  23. package/dist/bootsman-ui-shadcn119.js +19 -0
  24. package/dist/bootsman-ui-shadcn12.js +18 -0
  25. package/dist/bootsman-ui-shadcn120.js +33 -0
  26. package/dist/{BuiTableFooter.vue_vue_type_script_setup_true_lang-_uCfOUbj.js → bootsman-ui-shadcn121.js} +5 -5
  27. package/dist/bootsman-ui-shadcn122.js +164 -0
  28. package/dist/bootsman-ui-shadcn123.js +27 -0
  29. package/dist/bootsman-ui-shadcn124.js +29 -0
  30. package/dist/bootsman-ui-shadcn125.js +28 -0
  31. package/dist/{BuiTabsContent.vue_vue_type_script_setup_true_lang-soDXdpsq.js → bootsman-ui-shadcn126.js} +11 -11
  32. package/dist/bootsman-ui-shadcn127.js +28 -0
  33. package/dist/bootsman-ui-shadcn128.js +53 -0
  34. package/dist/{BuiToastAction.vue_vue_type_script_setup_true_lang-llS2b_9p.js → bootsman-ui-shadcn129.js} +3 -3
  35. package/dist/bootsman-ui-shadcn13.js +25 -0
  36. package/dist/{BuiTooltip.vue_vue_type_script_setup_true_lang-xU8s99TK.js → bootsman-ui-shadcn130.js} +7 -7
  37. package/dist/{BuiTooltipContent.vue_vue_type_script_setup_true_lang-DJMHjE86.js → bootsman-ui-shadcn131.js} +4 -4
  38. package/dist/{BuiTooltipTrigger.vue_vue_type_script_setup_true_lang-eEgpSkCP.js → bootsman-ui-shadcn132.js} +4 -4
  39. package/dist/{BuiTooltipProvider.vue_vue_type_script_setup_true_lang-xuuT-Vvc.js → bootsman-ui-shadcn133.js} +5 -5
  40. package/dist/bootsman-ui-shadcn134.js +39 -0
  41. package/dist/{BuiSlider.vue_vue_type_script_setup_true_lang-Hx7AriVi.js → bootsman-ui-shadcn135.js} +10 -10
  42. package/dist/bootsman-ui-shadcn136.js +17 -0
  43. package/dist/bootsman-ui-shadcn137.js +28 -0
  44. package/dist/bootsman-ui-shadcn138.js +23 -0
  45. package/dist/{BuiDialogContent.vue_vue_type_script_setup_true_lang-I5zYayM5.js → bootsman-ui-shadcn139.js} +17 -17
  46. package/dist/bootsman-ui-shadcn14.js +30 -0
  47. package/dist/bootsman-ui-shadcn140.js +8426 -0
  48. package/dist/bootsman-ui-shadcn141.js +2001 -0
  49. package/dist/bootsman-ui-shadcn142.js +33 -0
  50. package/dist/bootsman-ui-shadcn143.js +33 -0
  51. package/dist/bootsman-ui-shadcn144.js +33 -0
  52. package/dist/bootsman-ui-shadcn145.js +33 -0
  53. package/dist/{BuiSelect.vue_vue_type_script_setup_true_lang-PUsMby8R.js → bootsman-ui-shadcn146.js} +7 -7
  54. package/dist/bootsman-ui-shadcn147.js +22 -0
  55. package/dist/{BuiSelectTrigger.vue_vue_type_script_setup_true_lang-7ZdAsQ2X.js → bootsman-ui-shadcn148.js} +11 -11
  56. package/dist/{BuiSelectContent.vue_vue_type_script_setup_true_lang-wEhVXi2C.js → bootsman-ui-shadcn149.js} +4 -4
  57. package/dist/{tailwind-preset.js → bootsman-ui-shadcn15.js} +1 -1
  58. package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-s1zplpT5.js → bootsman-ui-shadcn150.js} +14 -14
  59. package/dist/bootsman-ui-shadcn151.js +35 -0
  60. package/dist/bootsman-ui-shadcn152.js +22 -0
  61. package/dist/{BuiToastClose.vue_vue_type_script_setup_true_lang-WNZF2yFL.js → bootsman-ui-shadcn153.js} +9 -9
  62. package/dist/bootsman-ui-shadcn154.js +25 -0
  63. package/dist/bootsman-ui-shadcn155.js +25 -0
  64. package/dist/{BuiToastProvider.vue_vue_type_script_setup_true_lang-mpMIz4p1.js → bootsman-ui-shadcn156.js} +4 -4
  65. package/dist/bootsman-ui-shadcn158.js +37 -0
  66. package/dist/bootsman-ui-shadcn159.js +23 -0
  67. package/dist/{BuiAccordion.vue_vue_type_script_setup_true_lang-pzUlGgVr.js → bootsman-ui-shadcn16.js} +6 -6
  68. package/dist/{utils-rkbwq_XN.js → bootsman-ui-shadcn160.js} +169 -192
  69. package/dist/bootsman-ui-shadcn161.js +14 -0
  70. package/dist/bootsman-ui-shadcn162.js +14 -0
  71. package/dist/bootsman-ui-shadcn163.js +16 -0
  72. package/dist/{index-gwzIEgpq.js → bootsman-ui-shadcn164.js} +33 -81
  73. package/dist/bootsman-ui-shadcn165.js +4 -0
  74. package/dist/bootsman-ui-shadcn166.js +4 -0
  75. package/dist/bootsman-ui-shadcn167.js +4 -0
  76. package/dist/bootsman-ui-shadcn168.js +4 -0
  77. package/dist/bootsman-ui-shadcn169.js +4 -0
  78. package/dist/bootsman-ui-shadcn17.js +30 -0
  79. package/dist/bootsman-ui-shadcn170.js +4 -0
  80. package/dist/bootsman-ui-shadcn171.js +4 -0
  81. package/dist/bootsman-ui-shadcn172.js +4 -0
  82. package/dist/bootsman-ui-shadcn173.js +4 -0
  83. package/dist/bootsman-ui-shadcn174.js +4 -0
  84. package/dist/bootsman-ui-shadcn175.js +4 -0
  85. package/dist/bootsman-ui-shadcn176.js +4 -0
  86. package/dist/bootsman-ui-shadcn177.js +4 -0
  87. package/dist/bootsman-ui-shadcn178.js +22 -0
  88. package/dist/bootsman-ui-shadcn179.js +4 -0
  89. package/dist/bootsman-ui-shadcn18.js +27 -0
  90. package/dist/bootsman-ui-shadcn180.js +4 -0
  91. package/dist/bootsman-ui-shadcn181.js +4 -0
  92. package/dist/bootsman-ui-shadcn182.js +4 -0
  93. package/dist/bootsman-ui-shadcn183.js +4 -0
  94. package/dist/bootsman-ui-shadcn184.js +4 -0
  95. package/dist/bootsman-ui-shadcn185.js +126 -0
  96. package/dist/bootsman-ui-shadcn186.js +521 -0
  97. package/dist/bootsman-ui-shadcn187.js +363 -0
  98. package/dist/bootsman-ui-shadcn188.js +4 -0
  99. package/dist/bootsman-ui-shadcn189.js +4 -0
  100. package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-Psumouui.js → bootsman-ui-shadcn19.js} +18 -18
  101. package/dist/bootsman-ui-shadcn190.js +4 -0
  102. package/dist/bootsman-ui-shadcn191.js +4 -0
  103. package/dist/bootsman-ui-shadcn192.js +4 -0
  104. package/dist/bootsman-ui-shadcn193.js +4 -0
  105. package/dist/bootsman-ui-shadcn194.js +4 -0
  106. package/dist/bootsman-ui-shadcn195.js +4 -0
  107. package/dist/bootsman-ui-shadcn196.js +4 -0
  108. package/dist/bootsman-ui-shadcn197.js +4 -0
  109. package/dist/bootsman-ui-shadcn198.js +4 -0
  110. package/dist/bootsman-ui-shadcn199.js +4 -0
  111. package/dist/bootsman-ui-shadcn2.js +1 -0
  112. package/dist/bootsman-ui-shadcn20.js +22 -0
  113. package/dist/bootsman-ui-shadcn200.js +4 -0
  114. package/dist/bootsman-ui-shadcn201.js +4 -0
  115. package/dist/bootsman-ui-shadcn202.js +4 -0
  116. package/dist/bootsman-ui-shadcn203.js +4 -0
  117. package/dist/bootsman-ui-shadcn204.js +4 -0
  118. package/dist/bootsman-ui-shadcn205.js +4 -0
  119. package/dist/bootsman-ui-shadcn206.js +4 -0
  120. package/dist/bootsman-ui-shadcn207.js +4 -0
  121. package/dist/bootsman-ui-shadcn208.js +4 -0
  122. package/dist/bootsman-ui-shadcn209.js +4 -0
  123. package/dist/bootsman-ui-shadcn21.js +21 -0
  124. package/dist/bootsman-ui-shadcn210.js +4 -0
  125. package/dist/bootsman-ui-shadcn211.js +4 -0
  126. package/dist/bootsman-ui-shadcn212.js +4 -0
  127. package/dist/bootsman-ui-shadcn213.js +4 -0
  128. package/dist/bootsman-ui-shadcn214.js +4 -0
  129. package/dist/bootsman-ui-shadcn215.js +4 -0
  130. package/dist/bootsman-ui-shadcn216.js +4 -0
  131. package/dist/bootsman-ui-shadcn217.js +4 -0
  132. package/dist/bootsman-ui-shadcn218.js +4 -0
  133. package/dist/bootsman-ui-shadcn219.js +4 -0
  134. package/dist/{BuiAlertDialogContent.vue_vue_type_script_setup_true_lang-uD0g9Aau.js → bootsman-ui-shadcn22.js} +9 -9
  135. package/dist/bootsman-ui-shadcn220.js +4 -0
  136. package/dist/bootsman-ui-shadcn221.js +4 -0
  137. package/dist/bootsman-ui-shadcn222.js +4 -0
  138. package/dist/bootsman-ui-shadcn223.js +4 -0
  139. package/dist/bootsman-ui-shadcn224.js +4 -0
  140. package/dist/bootsman-ui-shadcn225.js +4 -0
  141. package/dist/bootsman-ui-shadcn226.js +4 -0
  142. package/dist/bootsman-ui-shadcn227.js +4 -0
  143. package/dist/bootsman-ui-shadcn228.js +4 -0
  144. package/dist/bootsman-ui-shadcn229.js +4 -0
  145. package/dist/{BuiAlertDialogHeader.vue_vue_type_script_setup_true_lang-ttrf73C0.js → bootsman-ui-shadcn23.js} +5 -5
  146. package/dist/bootsman-ui-shadcn230.js +19 -0
  147. package/dist/bootsman-ui-shadcn231.js +6 -0
  148. package/dist/bootsman-ui-shadcn232.js +4 -0
  149. package/dist/bootsman-ui-shadcn233.js +4 -0
  150. package/dist/bootsman-ui-shadcn234.js +4 -0
  151. package/dist/bootsman-ui-shadcn235.js +4 -0
  152. package/dist/bootsman-ui-shadcn236.js +5 -0
  153. package/dist/bootsman-ui-shadcn237.js +4 -0
  154. package/dist/bootsman-ui-shadcn238.js +4 -0
  155. package/dist/bootsman-ui-shadcn239.js +4 -0
  156. package/dist/bootsman-ui-shadcn24.js +26 -0
  157. package/dist/bootsman-ui-shadcn240.js +4 -0
  158. package/dist/bootsman-ui-shadcn241.js +4 -0
  159. package/dist/bootsman-ui-shadcn242.js +4 -0
  160. package/dist/bootsman-ui-shadcn243.js +4 -0
  161. package/dist/bootsman-ui-shadcn244.js +4 -0
  162. package/dist/bootsman-ui-shadcn245.js +4 -0
  163. package/dist/bootsman-ui-shadcn246.js +4 -0
  164. package/dist/bootsman-ui-shadcn247.js +4 -0
  165. package/dist/bootsman-ui-shadcn248.js +4 -0
  166. package/dist/bootsman-ui-shadcn249.js +4 -0
  167. package/dist/bootsman-ui-shadcn25.js +26 -0
  168. package/dist/bootsman-ui-shadcn250.js +4 -0
  169. package/dist/bootsman-ui-shadcn251.js +4 -0
  170. package/dist/bootsman-ui-shadcn252.js +4 -0
  171. package/dist/bootsman-ui-shadcn253.js +4 -0
  172. package/dist/bootsman-ui-shadcn254.js +4 -0
  173. package/dist/bootsman-ui-shadcn255.js +4 -0
  174. package/dist/bootsman-ui-shadcn256.js +4 -0
  175. package/dist/bootsman-ui-shadcn257.js +4 -0
  176. package/dist/bootsman-ui-shadcn258.js +4 -0
  177. package/dist/bootsman-ui-shadcn259.js +4 -0
  178. package/dist/{BuiAlertDialogFooter.vue_vue_type_script_setup_true_lang-HfflRuae.js → bootsman-ui-shadcn26.js} +5 -5
  179. package/dist/bootsman-ui-shadcn260.js +4 -0
  180. package/dist/bootsman-ui-shadcn261.js +4 -0
  181. package/dist/bootsman-ui-shadcn262.js +4 -0
  182. package/dist/bootsman-ui-shadcn263.js +4 -0
  183. package/dist/bootsman-ui-shadcn264.js +4 -0
  184. package/dist/bootsman-ui-shadcn265.js +4 -0
  185. package/dist/bootsman-ui-shadcn266.js +4 -0
  186. package/dist/bootsman-ui-shadcn267.js +4 -0
  187. package/dist/bootsman-ui-shadcn268.js +6 -0
  188. package/dist/bootsman-ui-shadcn269.js +7 -0
  189. package/dist/bootsman-ui-shadcn27.js +25 -0
  190. package/dist/bootsman-ui-shadcn270.js +4 -0
  191. package/dist/bootsman-ui-shadcn271.js +4 -0
  192. package/dist/bootsman-ui-shadcn272.js +4 -0
  193. package/dist/bootsman-ui-shadcn273.js +4 -0
  194. package/dist/bootsman-ui-shadcn274.js +4 -0
  195. package/dist/bootsman-ui-shadcn275.js +4 -0
  196. package/dist/bootsman-ui-shadcn276.js +4 -0
  197. package/dist/bootsman-ui-shadcn277.js +4 -0
  198. package/dist/bootsman-ui-shadcn278.js +4 -0
  199. package/dist/bootsman-ui-shadcn279.js +4 -0
  200. package/dist/bootsman-ui-shadcn28.js +25 -0
  201. package/dist/bootsman-ui-shadcn280.js +4 -0
  202. package/dist/bootsman-ui-shadcn281.js +4 -0
  203. package/dist/bootsman-ui-shadcn282.js +4 -0
  204. package/dist/bootsman-ui-shadcn283.js +4 -0
  205. package/dist/bootsman-ui-shadcn284.js +4 -0
  206. package/dist/bootsman-ui-shadcn285.js +4 -0
  207. package/dist/bootsman-ui-shadcn286.js +4 -0
  208. package/dist/bootsman-ui-shadcn287.js +4 -0
  209. package/dist/bootsman-ui-shadcn288.js +4 -0
  210. package/dist/bootsman-ui-shadcn289.js +4 -0
  211. package/dist/bootsman-ui-shadcn29.js +31 -0
  212. package/dist/bootsman-ui-shadcn290.js +4 -0
  213. package/dist/bootsman-ui-shadcn291.js +4 -0
  214. package/dist/bootsman-ui-shadcn292.js +4 -0
  215. package/dist/bootsman-ui-shadcn293.js +4 -0
  216. package/dist/bootsman-ui-shadcn294.js +4 -0
  217. package/dist/bootsman-ui-shadcn295.js +4 -0
  218. package/dist/bootsman-ui-shadcn296.js +4 -0
  219. package/dist/bootsman-ui-shadcn297.js +4 -0
  220. package/dist/bootsman-ui-shadcn298.js +4 -0
  221. package/dist/bootsman-ui-shadcn299.js +4 -0
  222. package/dist/bootsman-ui-shadcn3.js +17 -0
  223. package/dist/bootsman-ui-shadcn30.js +15 -0
  224. package/dist/bootsman-ui-shadcn300.js +4 -0
  225. package/dist/bootsman-ui-shadcn301.js +4 -0
  226. package/dist/bootsman-ui-shadcn302.js +4 -0
  227. package/dist/bootsman-ui-shadcn303.js +4 -0
  228. package/dist/bootsman-ui-shadcn304.js +4 -0
  229. package/dist/bootsman-ui-shadcn305.js +4 -0
  230. package/dist/bootsman-ui-shadcn306.js +4 -0
  231. package/dist/bootsman-ui-shadcn307.js +4 -0
  232. package/dist/{chevron-down-TrGWyZ5_.js → bootsman-ui-shadcn308.js} +3 -3
  233. package/dist/bootsman-ui-shadcn309.js +4 -0
  234. package/dist/bootsman-ui-shadcn31.js +19 -0
  235. package/dist/bootsman-ui-shadcn310.js +4 -0
  236. package/dist/bootsman-ui-shadcn311.js +14 -0
  237. package/dist/bootsman-ui-shadcn312.js +14 -0
  238. package/dist/{chevron-right-51L5aUlu.js → bootsman-ui-shadcn313.js} +3 -3
  239. package/dist/bootsman-ui-shadcn314.js +15 -0
  240. package/dist/{x-zhgLjHKV.js → bootsman-ui-shadcn315.js} +3 -3
  241. package/dist/{chevron-left-1qUPR9SE.js → bootsman-ui-shadcn316.js} +2 -2
  242. package/dist/bootsman-ui-shadcn317.js +108 -0
  243. package/dist/{check-h-4vWBNT.js → bootsman-ui-shadcn318.js} +2 -2
  244. package/dist/{circle-YBPXFnjg.js → bootsman-ui-shadcn319.js} +2 -2
  245. package/dist/{BuiAspectRatio.vue_vue_type_script_setup_true_lang--jtG2NWg.js → bootsman-ui-shadcn32.js} +4 -4
  246. package/dist/bootsman-ui-shadcn320.js +12 -0
  247. package/dist/bootsman-ui-shadcn321.js +5 -0
  248. package/dist/bootsman-ui-shadcn322.js +67 -0
  249. package/dist/bootsman-ui-shadcn323.js +25 -0
  250. package/dist/bootsman-ui-shadcn324.js +50 -0
  251. package/dist/bootsman-ui-shadcn325.js +5781 -0
  252. package/dist/bootsman-ui-shadcn326.js +14 -0
  253. package/dist/bootsman-ui-shadcn327.js +20 -0
  254. package/dist/bootsman-ui-shadcn328.js +4 -0
  255. package/dist/bootsman-ui-shadcn329.js +145 -0
  256. package/dist/bootsman-ui-shadcn33.js +26 -0
  257. package/dist/bootsman-ui-shadcn330.js +1967 -0
  258. package/dist/bootsman-ui-shadcn331.js +29 -0
  259. package/dist/bootsman-ui-shadcn332.js +28 -0
  260. package/dist/bootsman-ui-shadcn333.js +4 -0
  261. package/dist/bootsman-ui-shadcn334.js +12 -0
  262. package/dist/bootsman-ui-shadcn335.js +120 -0
  263. package/dist/bootsman-ui-shadcn336.js +20 -0
  264. package/dist/bootsman-ui-shadcn337.js +6 -0
  265. package/dist/bootsman-ui-shadcn338.js +27 -0
  266. package/dist/bootsman-ui-shadcn339.js +31 -0
  267. package/dist/bootsman-ui-shadcn34.js +17 -0
  268. package/dist/bootsman-ui-shadcn340.js +122 -0
  269. package/dist/bootsman-ui-shadcn341.js +32 -0
  270. package/dist/bootsman-ui-shadcn342.js +13 -0
  271. package/dist/bootsman-ui-shadcn343.js +16 -0
  272. package/dist/bootsman-ui-shadcn344.js +35 -0
  273. package/dist/bootsman-ui-shadcn345.js +31 -0
  274. package/dist/bootsman-ui-shadcn346.js +13 -0
  275. package/dist/bootsman-ui-shadcn347.js +15 -0
  276. package/dist/bootsman-ui-shadcn348.js +20 -0
  277. package/dist/bootsman-ui-shadcn349.js +26 -0
  278. package/dist/bootsman-ui-shadcn35.js +22 -0
  279. package/dist/bootsman-ui-shadcn350.js +20 -0
  280. package/dist/bootsman-ui-shadcn351.js +99 -0
  281. package/dist/bootsman-ui-shadcn352.js +47 -0
  282. package/dist/bootsman-ui-shadcn353.js +31 -0
  283. package/dist/bootsman-ui-shadcn354.js +75 -0
  284. package/dist/bootsman-ui-shadcn355.js +54 -0
  285. package/dist/bootsman-ui-shadcn356.js +37 -0
  286. package/dist/bootsman-ui-shadcn357.js +44 -0
  287. package/dist/bootsman-ui-shadcn358.js +12 -0
  288. package/dist/bootsman-ui-shadcn359.js +54 -0
  289. package/dist/bootsman-ui-shadcn36.js +36 -0
  290. package/dist/bootsman-ui-shadcn360.js +10 -0
  291. package/dist/bootsman-ui-shadcn361.js +7 -0
  292. package/dist/bootsman-ui-shadcn362.js +6 -0
  293. package/dist/bootsman-ui-shadcn363.js +6 -0
  294. package/dist/bootsman-ui-shadcn364.js +6 -0
  295. package/dist/bootsman-ui-shadcn365.js +6 -0
  296. package/dist/bootsman-ui-shadcn366.js +14 -0
  297. package/dist/bootsman-ui-shadcn367.js +12 -0
  298. package/dist/bootsman-ui-shadcn368.js +34 -0
  299. package/dist/bootsman-ui-shadcn369.js +27 -0
  300. package/dist/bootsman-ui-shadcn37.js +79 -0
  301. package/dist/bootsman-ui-shadcn370.js +6 -0
  302. package/dist/bootsman-ui-shadcn371.js +6 -0
  303. package/dist/bootsman-ui-shadcn372.js +12 -0
  304. package/dist/bootsman-ui-shadcn373.js +11 -0
  305. package/dist/bootsman-ui-shadcn374.js +18 -0
  306. package/dist/bootsman-ui-shadcn375.js +7 -0
  307. package/dist/bootsman-ui-shadcn376.js +8 -0
  308. package/dist/bootsman-ui-shadcn377.js +23 -0
  309. package/dist/bootsman-ui-shadcn378.js +10 -0
  310. package/dist/bootsman-ui-shadcn379.js +9 -0
  311. package/dist/bootsman-ui-shadcn38.js +1 -0
  312. package/dist/bootsman-ui-shadcn380.js +8 -0
  313. package/dist/bootsman-ui-shadcn381.js +10 -0
  314. package/dist/bootsman-ui-shadcn382.js +18 -0
  315. package/dist/bootsman-ui-shadcn383.js +7 -0
  316. package/dist/bootsman-ui-shadcn384.js +9 -0
  317. package/dist/bootsman-ui-shadcn385.js +37 -0
  318. package/dist/bootsman-ui-shadcn386.js +11 -0
  319. package/dist/bootsman-ui-shadcn387.js +7 -0
  320. package/dist/bootsman-ui-shadcn388.js +11 -0
  321. package/dist/bootsman-ui-shadcn389.js +9 -0
  322. package/dist/{BuiCard.vue_vue_type_script_setup_true_lang-o5WtGlrU.js → bootsman-ui-shadcn39.js} +7 -7
  323. package/dist/bootsman-ui-shadcn390.js +21 -0
  324. package/dist/bootsman-ui-shadcn391.js +17 -0
  325. package/dist/bootsman-ui-shadcn4.js +20 -0
  326. package/dist/bootsman-ui-shadcn40.js +22 -0
  327. package/dist/{BuiCardTitle.vue_vue_type_script_setup_true_lang-QO7CK1Xy.js → bootsman-ui-shadcn41.js} +4 -4
  328. package/dist/{BuiCardDescription.vue_vue_type_script_setup_true_lang-6jxZS6eq.js → bootsman-ui-shadcn42.js} +6 -6
  329. package/dist/{BuiCardContent.vue_vue_type_script_setup_true_lang-znCk_3Dr.js → bootsman-ui-shadcn43.js} +4 -4
  330. package/dist/bootsman-ui-shadcn44.js +22 -0
  331. package/dist/{BuiCheckbox.vue_vue_type_script_setup_true_lang-dNs7q54L.js → bootsman-ui-shadcn45.js} +9 -9
  332. package/dist/{BuiCommand.vue_vue_type_script_setup_true_lang-AX1x22o-.js → bootsman-ui-shadcn46.js} +7 -7
  333. package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-jr1bqbar.js → bootsman-ui-shadcn47.js} +10 -10
  334. package/dist/bootsman-ui-shadcn48.js +24 -0
  335. package/dist/{BuiCommandGroup.vue_vue_type_script_setup_true_lang-3rqXEZXT.js → bootsman-ui-shadcn49.js} +10 -10
  336. package/dist/bootsman-ui-shadcn5.js +17 -0
  337. package/dist/bootsman-ui-shadcn50.js +36 -0
  338. package/dist/{BuiCommandItem.vue_vue_type_script_setup_true_lang-1_kxb3jS.js → bootsman-ui-shadcn51.js} +10 -10
  339. package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-DvGESZRW.js → bootsman-ui-shadcn52.js} +8 -8
  340. package/dist/bootsman-ui-shadcn53.js +24 -0
  341. package/dist/{BuiCommandShortcut.vue_vue_type_script_setup_true_lang-z2zzZkwU.js → bootsman-ui-shadcn54.js} +5 -5
  342. package/dist/bootsman-ui-shadcn55.js +22 -0
  343. package/dist/bootsman-ui-shadcn56.js +22 -0
  344. package/dist/{BuiContextMenuContent.vue_vue_type_script_setup_true_lang-AlhPQfOo.js → bootsman-ui-shadcn57.js} +8 -8
  345. package/dist/bootsman-ui-shadcn58.js +21 -0
  346. package/dist/bootsman-ui-shadcn59.js +23 -0
  347. package/dist/{components/ui/button/index.js → bootsman-ui-shadcn6.js} +3 -27
  348. package/dist/{BuiContextMenuItem.vue_vue_type_script_setup_true_lang-sigXqqKC.js → bootsman-ui-shadcn60.js} +6 -6
  349. package/dist/{BuiContextMenuCheckboxItem.vue_vue_type_script_setup_true_lang-2DhyryRW.js → bootsman-ui-shadcn61.js} +13 -13
  350. package/dist/{BuiContextMenuRadioItem.vue_vue_type_script_setup_true_lang-YekOM40O.js → bootsman-ui-shadcn62.js} +14 -14
  351. package/dist/{BuiContextMenuShortcut.vue_vue_type_script_setup_true_lang-U0y3g-MM.js → bootsman-ui-shadcn63.js} +6 -6
  352. package/dist/bootsman-ui-shadcn64.js +19 -0
  353. package/dist/bootsman-ui-shadcn65.js +26 -0
  354. package/dist/{BuiContextMenuSub.vue_vue_type_script_setup_true_lang-PvjwcmKr.js → bootsman-ui-shadcn66.js} +7 -7
  355. package/dist/{BuiContextMenuSubTrigger.vue_vue_type_script_setup_true_lang-NoknZAAj.js → bootsman-ui-shadcn67.js} +11 -11
  356. package/dist/{BuiContextMenuSubContent.vue_vue_type_script_setup_true_lang-1XbeQmuy.js → bootsman-ui-shadcn68.js} +8 -8
  357. package/dist/bootsman-ui-shadcn69.js +21 -0
  358. package/dist/bootsman-ui-shadcn7.js +20 -0
  359. package/dist/{BuiDialogTrigger.vue_vue_type_script_setup_true_lang-eWn1mdeD.js → bootsman-ui-shadcn70.js} +5 -5
  360. package/dist/bootsman-ui-shadcn71.js +19 -0
  361. package/dist/bootsman-ui-shadcn72.js +28 -0
  362. package/dist/bootsman-ui-shadcn73.js +25 -0
  363. package/dist/{BuiDialogFooter.vue_vue_type_script_setup_true_lang-ELYZ3fUF.js → bootsman-ui-shadcn74.js} +5 -5
  364. package/dist/bootsman-ui-shadcn75.js +24 -0
  365. package/dist/{BuiDropdownMenuTrigger.vue_vue_type_script_setup_true_lang-CPwdz8pd.js → bootsman-ui-shadcn76.js} +6 -6
  366. package/dist/{BuiDropdownMenuContent.vue_vue_type_script_setup_true_lang-YataD3un.js → bootsman-ui-shadcn77.js} +12 -12
  367. package/dist/bootsman-ui-shadcn78.js +21 -0
  368. package/dist/bootsman-ui-shadcn79.js +25 -0
  369. package/dist/bootsman-ui-shadcn8.js +19 -0
  370. package/dist/{BuiDropdownMenuItem.vue_vue_type_script_setup_true_lang-XTjCTZGm.js → bootsman-ui-shadcn80.js} +9 -9
  371. package/dist/{BuiDropdownMenuCheckboxItem.vue_vue_type_script_setup_true_lang-05J63By0.js → bootsman-ui-shadcn81.js} +16 -16
  372. package/dist/bootsman-ui-shadcn82.js +41 -0
  373. package/dist/{BuiDropdownMenuShortcut.vue_vue_type_script_setup_true_lang--0WyVjX-.js → bootsman-ui-shadcn83.js} +3 -3
  374. package/dist/{BuiDropdownMenuSeparator.vue_vue_type_script_setup_true_lang-K6crSIcZ.js → bootsman-ui-shadcn84.js} +3 -3
  375. package/dist/{BuiDropdownMenuLabel.vue_vue_type_script_setup_true_lang-R6Lihsc3.js → bootsman-ui-shadcn85.js} +5 -5
  376. package/dist/bootsman-ui-shadcn86.js +22 -0
  377. package/dist/{BuiDropdownMenuSubTrigger.vue_vue_type_script_setup_true_lang-QtK9PYap.js → bootsman-ui-shadcn87.js} +10 -10
  378. package/dist/{BuiDropdownMenuSubContent.vue_vue_type_script_setup_true_lang-BXz6V5_0.js → bootsman-ui-shadcn88.js} +10 -10
  379. package/dist/bootsman-ui-shadcn89.js +21 -0
  380. package/dist/bootsman-ui-shadcn9.js +21 -0
  381. package/dist/bootsman-ui-shadcn90.js +32 -0
  382. package/dist/bootsman-ui-shadcn91.js +22 -0
  383. package/dist/bootsman-ui-shadcn92.js +18 -0
  384. package/dist/bootsman-ui-shadcn93.js +19 -0
  385. package/dist/bootsman-ui-shadcn94.js +23 -0
  386. package/dist/{BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-7sgCUl_C.js → bootsman-ui-shadcn95.js} +5 -5
  387. package/dist/{BuiHoverCardContent.vue_vue_type_script_setup_true_lang-GrytIAHH.js → bootsman-ui-shadcn96.js} +9 -9
  388. package/dist/bootsman-ui-shadcn97.js +29 -0
  389. package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-BKmthATK.js → bootsman-ui-shadcn98.js} +6 -6
  390. package/dist/bootsman-ui-shadcn99.js +103 -0
  391. package/dist/main.d.ts +3376 -0
  392. package/dist/style.css +1 -0
  393. package/package.json +6 -12
  394. package/dist/BuiAccordionContent.vue_vue_type_script_setup_true_lang-Wx65chW_.js +0 -30
  395. package/dist/BuiAccordionItem.vue_vue_type_script_setup_true_lang-yvin7wJl.js +0 -27
  396. package/dist/BuiAlertDescription.vue_vue_type_script_setup_true_lang-MxcBXDIM.js +0 -19
  397. package/dist/BuiAlertDialog.vue_vue_type_script_setup_true_lang-EUnEXpcN.js +0 -22
  398. package/dist/BuiAlertDialogAction.vue_vue_type_script_setup_true_lang-kqVCg9n0.js +0 -25
  399. package/dist/BuiAlertDialogCancel.vue_vue_type_script_setup_true_lang-h8kbdW85.js +0 -25
  400. package/dist/BuiAlertDialogDescription.vue_vue_type_script_setup_true_lang-CYHwKHzs.js +0 -26
  401. package/dist/BuiAlertDialogTitle.vue_vue_type_script_setup_true_lang-vTBDM0Ks.js +0 -26
  402. package/dist/BuiAlertDialogTrigger.vue_vue_type_script_setup_true_lang-58bLhu7U.js +0 -21
  403. package/dist/BuiAlertTitle.vue_vue_type_script_setup_true_lang-TcX3qQbd.js +0 -15
  404. package/dist/BuiAvatarFallback.vue_vue_type_script_setup_true_lang-jYHcY6Mq.js +0 -22
  405. package/dist/BuiAvatarImage.vue_vue_type_script_setup_true_lang-z6m8jhFH.js +0 -17
  406. package/dist/BuiCalendar.vue_vue_type_style_index_0_lang-g4_BV5pa.js +0 -6675
  407. package/dist/BuiCardFooter.vue_vue_type_script_setup_true_lang-PtOGB6us.js +0 -22
  408. package/dist/BuiCardHeader.vue_vue_type_script_setup_true_lang-220ywS8j.js +0 -22
  409. package/dist/BuiCommandEmpty.vue_vue_type_script_setup_true_lang-rAW_pVHz.js +0 -24
  410. package/dist/BuiCommandInput.vue_vue_type_script_setup_true_lang-BnTpCTqv.js +0 -45
  411. package/dist/BuiCommandSeparator.vue_vue_type_script_setup_true_lang-oVSGpT6k.js +0 -24
  412. package/dist/BuiContextMenu.vue_vue_type_script_setup_true_lang-lKWCa1Y8.js +0 -22
  413. package/dist/BuiContextMenuGroup.vue_vue_type_script_setup_true_lang-YvVBH3lq.js +0 -21
  414. package/dist/BuiContextMenuLabel.vue_vue_type_script_setup_true_lang-sBFhRhZ7.js +0 -26
  415. package/dist/BuiContextMenuRadioGroup.vue_vue_type_script_setup_true_lang-tfDex1zc.js +0 -23
  416. package/dist/BuiContextMenuSeparator.vue_vue_type_script_setup_true_lang-qpZaL3SK.js +0 -19
  417. package/dist/BuiContextMenuTrigger.vue_vue_type_script_setup_true_lang-VdiZ6Swn.js +0 -22
  418. package/dist/BuiDataTable.vue_vue_type_script_setup_true_lang-S6BBiyP_.js +0 -2191
  419. package/dist/BuiDialog.vue_vue_type_script_setup_true_lang-ixO45GDE.js +0 -23
  420. package/dist/BuiDialogClose.vue_vue_type_script_setup_true_lang-3atkl1Kq.js +0 -21
  421. package/dist/BuiDialogDescription.vue_vue_type_script_setup_true_lang-vd4dyEye.js +0 -25
  422. package/dist/BuiDialogHeader.vue_vue_type_script_setup_true_lang-jE9ZHLMM.js +0 -19
  423. package/dist/BuiDialogTitle.vue_vue_type_script_setup_true_lang-OvUMPrfS.js +0 -28
  424. package/dist/BuiDropdownMenu.vue_vue_type_script_setup_true_lang-8vyA586U.js +0 -24
  425. package/dist/BuiDropdownMenuGroup.vue_vue_type_script_setup_true_lang-H00EnMvB.js +0 -21
  426. package/dist/BuiDropdownMenuRadioGroup.vue_vue_type_script_setup_true_lang-txNQffvW.js +0 -25
  427. package/dist/BuiDropdownMenuRadioItem.vue_vue_type_script_setup_true_lang-a35tDJ3L.js +0 -41
  428. package/dist/BuiDropdownMenuSub.vue_vue_type_script_setup_true_lang-RqJNQEaH.js +0 -22
  429. package/dist/BuiFormControl.vue_vue_type_script_setup_true_lang-0a5oyZb-.js +0 -22
  430. package/dist/BuiFormDescription.vue_vue_type_script_setup_true_lang-_Ck0QgAK.js +0 -19
  431. package/dist/BuiFormItem.vue_vue_type_script_setup_true_lang-or1sl5lb.js +0 -21
  432. package/dist/BuiFormLabel.vue_vue_type_script_setup_true_lang-sLG4qOSe.js +0 -32
  433. package/dist/BuiFormMessage.vue_vue_type_script_setup_true_lang-Wiebjg_c.js +0 -17
  434. package/dist/BuiHoverCard.vue_vue_type_script_setup_true_lang-noOR9pSE.js +0 -23
  435. package/dist/BuiPaginationCommon.vue_vue_type_script_setup_true_lang-liWkyLRh.js +0 -105
  436. package/dist/BuiPaginationEllipsis.vue_vue_type_script_setup_true_lang-wg3wuEq4.js +0 -38
  437. package/dist/BuiPaginationFirst.vue_vue_type_script_setup_true_lang-rxgPKXGv.js +0 -42
  438. package/dist/BuiPaginationLast.vue_vue_type_script_setup_true_lang-XG1El1Sq.js +0 -42
  439. package/dist/BuiPaginationNext.vue_vue_type_script_setup_true_lang-SFMrH77A.js +0 -33
  440. package/dist/BuiPaginationPrev.vue_vue_type_script_setup_true_lang-MyaQPwEi.js +0 -33
  441. package/dist/BuiPopover.vue_vue_type_script_setup_true_lang-JxkRxlqE.js +0 -23
  442. package/dist/BuiPopoverTrigger.vue_vue_type_script_setup_true_lang-89-BuP8e.js +0 -21
  443. package/dist/BuiRadioGroup.vue_vue_type_script_setup_true_lang-BGh6SJ1l.js +0 -34
  444. package/dist/BuiSelectGroup.vue_vue_type_script_setup_true_lang-Br8BeHir.js +0 -25
  445. package/dist/BuiSelectLabel.vue_vue_type_script_setup_true_lang-B_xil7w1.js +0 -26
  446. package/dist/BuiSelectSeparator.vue_vue_type_script_setup_true_lang-K8KeMGTI.js +0 -20
  447. package/dist/BuiSelectValue.vue_vue_type_script_setup_true_lang-Ws4VxN22.js +0 -22
  448. package/dist/BuiTableBody.vue_vue_type_script_setup_true_lang-GOWdSu1R.js +0 -19
  449. package/dist/BuiTableCaption.vue_vue_type_script_setup_true_lang-I61Mpm_o.js +0 -19
  450. package/dist/BuiTableEmpty.vue_vue_type_script_setup_true_lang-haxd9XoU.js +0 -33
  451. package/dist/BuiTableRow.vue_vue_type_script_setup_true_lang-2JY6E9ZA.js +0 -24
  452. package/dist/BuiTabs.vue_vue_type_script_setup_true_lang-N_nXa4PT.js +0 -27
  453. package/dist/BuiToastDescription.vue_vue_type_script_setup_true_lang-DaGCnwFY.js +0 -25
  454. package/dist/BuiToastTitle.vue_vue_type_script_setup_true_lang-9sizhsD0.js +0 -25
  455. package/dist/BuiToastViewport.vue_vue_type_script_setup_true_lang-8FH7DBVP.js +0 -22
  456. package/dist/Skeleton.vue_vue_type_script_setup_true_lang--TBB6WPl.js +0 -17
  457. package/dist/assets/style.css +0 -1
  458. package/dist/components/ui/accordion/BuiAccordion.js +0 -4
  459. package/dist/components/ui/accordion/BuiAccordionContent.js +0 -4
  460. package/dist/components/ui/accordion/BuiAccordionItem.js +0 -4
  461. package/dist/components/ui/accordion/BuiAccordionTrigger.js +0 -4
  462. package/dist/components/ui/accordion/index.js +0 -10
  463. package/dist/components/ui/alert/BuiAlert.js +0 -4
  464. package/dist/components/ui/alert/BuiAlertDescription.js +0 -4
  465. package/dist/components/ui/alert/BuiAlertTitle.js +0 -4
  466. package/dist/components/ui/alert/index.js +0 -48
  467. package/dist/components/ui/alert-dialog/BuiAlertDialog.js +0 -4
  468. package/dist/components/ui/alert-dialog/BuiAlertDialogAction.js +0 -4
  469. package/dist/components/ui/alert-dialog/BuiAlertDialogCancel.js +0 -4
  470. package/dist/components/ui/alert-dialog/BuiAlertDialogContent.js +0 -4
  471. package/dist/components/ui/alert-dialog/BuiAlertDialogDescription.js +0 -4
  472. package/dist/components/ui/alert-dialog/BuiAlertDialogFooter.js +0 -4
  473. package/dist/components/ui/alert-dialog/BuiAlertDialogHeader.js +0 -4
  474. package/dist/components/ui/alert-dialog/BuiAlertDialogTitle.js +0 -4
  475. package/dist/components/ui/alert-dialog/BuiAlertDialogTrigger.js +0 -4
  476. package/dist/components/ui/alert-dialog/index.js +0 -20
  477. package/dist/components/ui/aspect-ratio/BuiAspectRatio.js +0 -4
  478. package/dist/components/ui/aspect-ratio/index.js +0 -4
  479. package/dist/components/ui/avatar/BuiAvatar.js +0 -4
  480. package/dist/components/ui/avatar/BuiAvatarFallback.js +0 -4
  481. package/dist/components/ui/avatar/BuiAvatarImage.js +0 -4
  482. package/dist/components/ui/avatar/index.js +0 -46
  483. package/dist/components/ui/badge/BuiBadge.js +0 -4
  484. package/dist/components/ui/badge/index.js +0 -49
  485. package/dist/components/ui/button/BuiButton.js +0 -4
  486. package/dist/components/ui/calendar/BuiCalendar.js +0 -5
  487. package/dist/components/ui/calendar/index.js +0 -96
  488. package/dist/components/ui/card/BuiCard.js +0 -4
  489. package/dist/components/ui/card/BuiCardContent.js +0 -4
  490. package/dist/components/ui/card/BuiCardDescription.js +0 -4
  491. package/dist/components/ui/card/BuiCardFooter.js +0 -4
  492. package/dist/components/ui/card/BuiCardHeader.js +0 -4
  493. package/dist/components/ui/card/BuiCardTitle.js +0 -4
  494. package/dist/components/ui/card/index.js +0 -14
  495. package/dist/components/ui/checkbox/BuiCheckbox.js +0 -4
  496. package/dist/components/ui/checkbox/index.js +0 -4
  497. package/dist/components/ui/command/BuiCommand.js +0 -4
  498. package/dist/components/ui/command/BuiCommandDialog.js +0 -4
  499. package/dist/components/ui/command/BuiCommandEmpty.js +0 -4
  500. package/dist/components/ui/command/BuiCommandGroup.js +0 -4
  501. package/dist/components/ui/command/BuiCommandInput.js +0 -4
  502. package/dist/components/ui/command/BuiCommandItem.js +0 -4
  503. package/dist/components/ui/command/BuiCommandList.js +0 -4
  504. package/dist/components/ui/command/BuiCommandSeparator.js +0 -4
  505. package/dist/components/ui/command/BuiCommandShortcut.js +0 -4
  506. package/dist/components/ui/command/index.js +0 -20
  507. package/dist/components/ui/context-menu/BuiContextMenu.js +0 -4
  508. package/dist/components/ui/context-menu/BuiContextMenuCheckboxItem.js +0 -4
  509. package/dist/components/ui/context-menu/BuiContextMenuContent.js +0 -4
  510. package/dist/components/ui/context-menu/BuiContextMenuGroup.js +0 -4
  511. package/dist/components/ui/context-menu/BuiContextMenuItem.js +0 -4
  512. package/dist/components/ui/context-menu/BuiContextMenuLabel.js +0 -4
  513. package/dist/components/ui/context-menu/BuiContextMenuPortal.js +0 -22
  514. package/dist/components/ui/context-menu/BuiContextMenuRadioGroup.js +0 -4
  515. package/dist/components/ui/context-menu/BuiContextMenuRadioItem.js +0 -4
  516. package/dist/components/ui/context-menu/BuiContextMenuSeparator.js +0 -4
  517. package/dist/components/ui/context-menu/BuiContextMenuShortcut.js +0 -4
  518. package/dist/components/ui/context-menu/BuiContextMenuSub.js +0 -4
  519. package/dist/components/ui/context-menu/BuiContextMenuSubContent.js +0 -4
  520. package/dist/components/ui/context-menu/BuiContextMenuSubTrigger.js +0 -4
  521. package/dist/components/ui/context-menu/BuiContextMenuTrigger.js +0 -4
  522. package/dist/components/ui/context-menu/index.js +0 -30
  523. package/dist/components/ui/dialog/BuiDialog.js +0 -4
  524. package/dist/components/ui/dialog/BuiDialogClose.js +0 -4
  525. package/dist/components/ui/dialog/BuiDialogContent.js +0 -4
  526. package/dist/components/ui/dialog/BuiDialogDescription.js +0 -4
  527. package/dist/components/ui/dialog/BuiDialogFooter.js +0 -4
  528. package/dist/components/ui/dialog/BuiDialogHeader.js +0 -4
  529. package/dist/components/ui/dialog/BuiDialogTitle.js +0 -4
  530. package/dist/components/ui/dialog/BuiDialogTrigger.js +0 -4
  531. package/dist/components/ui/dialog/index.js +0 -18
  532. package/dist/components/ui/dropdown-menu/BuiDropdownMenu.js +0 -4
  533. package/dist/components/ui/dropdown-menu/BuiDropdownMenuCheckboxItem.js +0 -4
  534. package/dist/components/ui/dropdown-menu/BuiDropdownMenuContent.js +0 -4
  535. package/dist/components/ui/dropdown-menu/BuiDropdownMenuGroup.js +0 -4
  536. package/dist/components/ui/dropdown-menu/BuiDropdownMenuItem.js +0 -4
  537. package/dist/components/ui/dropdown-menu/BuiDropdownMenuLabel.js +0 -4
  538. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioGroup.js +0 -4
  539. package/dist/components/ui/dropdown-menu/BuiDropdownMenuRadioItem.js +0 -4
  540. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSeparator.js +0 -4
  541. package/dist/components/ui/dropdown-menu/BuiDropdownMenuShortcut.js +0 -4
  542. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSub.js +0 -4
  543. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubContent.js +0 -4
  544. package/dist/components/ui/dropdown-menu/BuiDropdownMenuSubTrigger.js +0 -4
  545. package/dist/components/ui/dropdown-menu/BuiDropdownMenuTrigger.js +0 -4
  546. package/dist/components/ui/dropdown-menu/index.js +0 -32
  547. package/dist/components/ui/form/BuiFormControl.js +0 -4
  548. package/dist/components/ui/form/BuiFormDescription.js +0 -4
  549. package/dist/components/ui/form/BuiFormItem.js +0 -6
  550. package/dist/components/ui/form/BuiFormLabel.js +0 -4
  551. package/dist/components/ui/form/BuiFormMessage.js +0 -4
  552. package/dist/components/ui/form/index.js +0 -15
  553. package/dist/components/ui/form/useFormField.js +0 -6
  554. package/dist/components/ui/hover-card/BuiHoverCard.js +0 -4
  555. package/dist/components/ui/hover-card/BuiHoverCardContent.js +0 -4
  556. package/dist/components/ui/hover-card/BuiHoverCardTrigger.js +0 -4
  557. package/dist/components/ui/hover-card/index.js +0 -8
  558. package/dist/components/ui/input/BuiInput.js +0 -4
  559. package/dist/components/ui/input/index.js +0 -44
  560. package/dist/components/ui/label/BuiLabel.js +0 -4
  561. package/dist/components/ui/label/index.js +0 -4
  562. package/dist/components/ui/pagination/BuiPaginationCommon.js +0 -4
  563. package/dist/components/ui/pagination/BuiPaginationEllipsis.js +0 -4
  564. package/dist/components/ui/pagination/BuiPaginationFirst.js +0 -4
  565. package/dist/components/ui/pagination/BuiPaginationLast.js +0 -4
  566. package/dist/components/ui/pagination/BuiPaginationNext.js +0 -4
  567. package/dist/components/ui/pagination/BuiPaginationPrev.js +0 -4
  568. package/dist/components/ui/pagination/index.js +0 -18
  569. package/dist/components/ui/popover/BuiPopover.js +0 -4
  570. package/dist/components/ui/popover/BuiPopoverContent.js +0 -4
  571. package/dist/components/ui/popover/BuiPopoverTrigger.js +0 -4
  572. package/dist/components/ui/popover/index.js +0 -8
  573. package/dist/components/ui/progress/BuiProgress.js +0 -4
  574. package/dist/components/ui/progress/index.js +0 -60
  575. package/dist/components/ui/radio-group/BuiRadioGroup.js +0 -4
  576. package/dist/components/ui/radio-group/BuiRadioGroupItem.js +0 -4
  577. package/dist/components/ui/radio-group/index.js +0 -6
  578. package/dist/components/ui/select/Bui.js +0 -62
  579. package/dist/components/ui/select/BuiSelect.js +0 -4
  580. package/dist/components/ui/select/BuiSelectContent.js +0 -4
  581. package/dist/components/ui/select/BuiSelectGroup.js +0 -4
  582. package/dist/components/ui/select/BuiSelectItem.js +0 -4
  583. package/dist/components/ui/select/BuiSelectItemText.js +0 -4
  584. package/dist/components/ui/select/BuiSelectLabel.js +0 -4
  585. package/dist/components/ui/select/BuiSelectSeparator.js +0 -4
  586. package/dist/components/ui/select/BuiSelectTrigger.js +0 -4
  587. package/dist/components/ui/select/BuiSelectValue.js +0 -4
  588. package/dist/components/ui/select/index.js +0 -20
  589. package/dist/components/ui/separator/BuiSeparator.js +0 -4
  590. package/dist/components/ui/separator/index.js +0 -4
  591. package/dist/components/ui/skeleton/Skeleton.js +0 -4
  592. package/dist/components/ui/skeleton/index.js +0 -4
  593. package/dist/components/ui/slider/BuiSlider.js +0 -4
  594. package/dist/components/ui/slider/index.js +0 -4
  595. package/dist/components/ui/switch/BuiSwitch.js +0 -4
  596. package/dist/components/ui/switch/index.js +0 -4
  597. package/dist/components/ui/table/BuiDataTable.js +0 -4
  598. package/dist/components/ui/table/BuiTable.js +0 -4
  599. package/dist/components/ui/table/BuiTableBody.js +0 -4
  600. package/dist/components/ui/table/BuiTableCaption.js +0 -4
  601. package/dist/components/ui/table/BuiTableCell.js +0 -4
  602. package/dist/components/ui/table/BuiTableEmpty.js +0 -4
  603. package/dist/components/ui/table/BuiTableFooter.js +0 -4
  604. package/dist/components/ui/table/BuiTableHead.js +0 -4
  605. package/dist/components/ui/table/BuiTableHeader.js +0 -4
  606. package/dist/components/ui/table/BuiTableRow.js +0 -4
  607. package/dist/components/ui/table/index.js +0 -22
  608. package/dist/components/ui/tabs/BuiTabs.js +0 -4
  609. package/dist/components/ui/tabs/BuiTabsContent.js +0 -4
  610. package/dist/components/ui/tabs/BuiTabsList.js +0 -4
  611. package/dist/components/ui/tabs/BuiTabsTrigger.js +0 -4
  612. package/dist/components/ui/tabs/index.js +0 -79
  613. package/dist/components/ui/textarea/BuiTextarea.js +0 -4
  614. package/dist/components/ui/textarea/index.js +0 -43
  615. package/dist/components/ui/toast/BuiToast.js +0 -4
  616. package/dist/components/ui/toast/BuiToastAction.js +0 -4
  617. package/dist/components/ui/toast/BuiToastClose.js +0 -4
  618. package/dist/components/ui/toast/BuiToastDescription.js +0 -4
  619. package/dist/components/ui/toast/BuiToastProvider.js +0 -4
  620. package/dist/components/ui/toast/BuiToastTitle.js +0 -4
  621. package/dist/components/ui/toast/BuiToastViewport.js +0 -4
  622. package/dist/components/ui/toast/BuiToaster.js +0 -4
  623. package/dist/components/ui/toast/index.js +0 -107
  624. package/dist/components/ui/toggle/BuiToggle.js +0 -4
  625. package/dist/components/ui/toggle/index.js +0 -60
  626. package/dist/components/ui/tooltip/BuiTooltip.js +0 -4
  627. package/dist/components/ui/tooltip/BuiTooltipContent.js +0 -4
  628. package/dist/components/ui/tooltip/BuiTooltipProvider.js +0 -4
  629. package/dist/components/ui/tooltip/BuiTooltipTrigger.js +0 -4
  630. package/dist/components/ui/tooltip/index.js +0 -10
  631. package/dist/createLucideIcon-IQml5_Dw.js +0 -44
  632. package/dist/index-6ucUKbpc.js +0 -9563
  633. package/dist/index-Hbf5jnOB.js +0 -53
  634. package/dist/index-vq1WbVLY.js +0 -49
  635. package/dist/index.d.ts +0 -1
  636. package/dist/useFormField-VhVaPQS2.js +0 -2097
  637. /package/dist/{components/ui/toast/use-toast.js → bootsman-ui-shadcn157.js} +0 -0
@@ -1,2191 +0,0 @@
1
- import { defineComponent as Ce, h as ye, ref as xe, watchEffect as Ie, mergeModels as De, useModel as q, openBlock as h, createBlock as M, unref as _, withCtx as V, renderSlot as He, createCommentVNode as U, createVNode as I, createElementBlock as H, Fragment as N, renderList as O, createTextVNode as Ne } from "vue";
2
- import { _ as Oe } from "./BuiTable.vue_vue_type_script_setup_true_lang-VjnNXySt.js";
3
- import { _ as Ge } from "./BuiTableBody.vue_vue_type_script_setup_true_lang-GOWdSu1R.js";
4
- import { _ as pe } from "./BuiTableCell.vue_vue_type_script_setup_true_lang-vc73Gfv1.js";
5
- import { _ as Le } from "./BuiTableHead.vue_vue_type_script_setup_true_lang-NgeaEnDr.js";
6
- import { _ as ze } from "./BuiTableHeader.vue_vue_type_script_setup_true_lang-RslMGWT4.js";
7
- import { _ as j } from "./BuiTableRow.vue_vue_type_script_setup_true_lang-2JY6E9ZA.js";
8
- import { _ as ke } from "./BuiTableCaption.vue_vue_type_script_setup_true_lang-I61Mpm_o.js";
9
- import { _ as be } from "./BuiTableEmpty.vue_vue_type_script_setup_true_lang-haxd9XoU.js";
10
- import { _ as Be } from "./BuiTableFooter.vue_vue_type_script_setup_true_lang-_uCfOUbj.js";
11
- import { _ as Te } from "./BuiPaginationCommon.vue_vue_type_script_setup_true_lang-liWkyLRh.js";
12
- import { v as X } from "./utils-rkbwq_XN.js";
13
- /**
14
- * table-core
15
- *
16
- * Copyright (c) TanStack
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE.md file in the root directory of this source tree.
20
- *
21
- * @license MIT
22
- */
23
- function y(e, n) {
24
- return typeof e == "function" ? e(n) : e;
25
- }
26
- function $(e, n) {
27
- return (t) => {
28
- n.setState((o) => ({
29
- ...o,
30
- [e]: y(t, o[e])
31
- }));
32
- };
33
- }
34
- function B(e) {
35
- return e instanceof Function;
36
- }
37
- function qe(e) {
38
- return Array.isArray(e) && e.every((n) => typeof n == "number");
39
- }
40
- function Ue(e, n) {
41
- const t = [], o = (r) => {
42
- r.forEach((i) => {
43
- t.push(i);
44
- const l = n(i);
45
- l != null && l.length && o(l);
46
- });
47
- };
48
- return o(e), t;
49
- }
50
- function m(e, n, t) {
51
- let o = [], r;
52
- return () => {
53
- let i;
54
- t.key && t.debug && (i = Date.now());
55
- const l = e();
56
- if (!(l.length !== o.length || l.some((a, g) => o[g] !== a)))
57
- return r;
58
- o = l;
59
- let s;
60
- if (t.key && t.debug && (s = Date.now()), r = n(...l), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
61
- const a = Math.round((Date.now() - i) * 100) / 100, g = Math.round((Date.now() - s) * 100) / 100, d = g / 16, p = (c, f) => {
62
- for (c = String(c); c.length < f; )
63
- c = " " + c;
64
- return c;
65
- };
66
- console.info(`%c⏱ ${p(g, 5)} /${p(a, 5)} ms`, `
67
- font-size: .6rem;
68
- font-weight: bold;
69
- color: hsl(${Math.max(0, Math.min(120 - 120 * d, 120))}deg 100% 31%);`, t?.key);
70
- }
71
- return r;
72
- };
73
- }
74
- function je(e, n, t, o) {
75
- var r, i;
76
- const u = {
77
- ...e._getDefaultColumnDef(),
78
- ...n
79
- }, s = u.accessorKey;
80
- let a = (r = (i = u.id) != null ? i : s ? s.replace(".", "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, g;
81
- if (u.accessorFn ? g = u.accessorFn : s && (s.includes(".") ? g = (p) => {
82
- let c = p;
83
- for (const S of s.split(".")) {
84
- var f;
85
- c = (f = c) == null ? void 0 : f[S], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${S}" in deeply nested key "${s}" returned undefined.`);
86
- }
87
- return c;
88
- } : g = (p) => p[u.accessorKey]), !a)
89
- throw process.env.NODE_ENV !== "production" ? new Error(u.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
90
- let d = {
91
- id: `${String(a)}`,
92
- accessorFn: g,
93
- parent: o,
94
- depth: t,
95
- columnDef: u,
96
- columns: [],
97
- getFlatColumns: m(() => [!0], () => {
98
- var p;
99
- return [d, ...(p = d.columns) == null ? void 0 : p.flatMap((c) => c.getFlatColumns())];
100
- }, {
101
- key: process.env.NODE_ENV === "production" && "column.getFlatColumns",
102
- debug: () => {
103
- var p;
104
- return (p = e.options.debugAll) != null ? p : e.options.debugColumns;
105
- }
106
- }),
107
- getLeafColumns: m(() => [e._getOrderColumnsFn()], (p) => {
108
- var c;
109
- if ((c = d.columns) != null && c.length) {
110
- let f = d.columns.flatMap((S) => S.getLeafColumns());
111
- return p(f);
112
- }
113
- return [d];
114
- }, {
115
- key: process.env.NODE_ENV === "production" && "column.getLeafColumns",
116
- debug: () => {
117
- var p;
118
- return (p = e.options.debugAll) != null ? p : e.options.debugColumns;
119
- }
120
- })
121
- };
122
- for (const p of e._features)
123
- p.createColumn == null || p.createColumn(d, e);
124
- return d;
125
- }
126
- function fe(e, n, t) {
127
- var o;
128
- let i = {
129
- id: (o = t.id) != null ? o : n.id,
130
- column: n,
131
- index: t.index,
132
- isPlaceholder: !!t.isPlaceholder,
133
- placeholderId: t.placeholderId,
134
- depth: t.depth,
135
- subHeaders: [],
136
- colSpan: 0,
137
- rowSpan: 0,
138
- headerGroup: null,
139
- getLeafHeaders: () => {
140
- const l = [], u = (s) => {
141
- s.subHeaders && s.subHeaders.length && s.subHeaders.map(u), l.push(s);
142
- };
143
- return u(i), l;
144
- },
145
- getContext: () => ({
146
- table: e,
147
- header: i,
148
- column: n
149
- })
150
- };
151
- return e._features.forEach((l) => {
152
- l.createHeader == null || l.createHeader(i, e);
153
- }), i;
154
- }
155
- const Xe = {
156
- createTable: (e) => {
157
- e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
158
- var i, l;
159
- const u = (i = o?.map((d) => t.find((p) => p.id === d)).filter(Boolean)) != null ? i : [], s = (l = r?.map((d) => t.find((p) => p.id === d)).filter(Boolean)) != null ? l : [], a = t.filter((d) => !(o != null && o.includes(d.id)) && !(r != null && r.includes(d.id)));
160
- return G(n, [...u, ...a, ...s], e);
161
- }, {
162
- key: process.env.NODE_ENV === "development" && "getHeaderGroups",
163
- debug: () => {
164
- var n;
165
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
166
- }
167
- }), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))), G(n, t, e, "center")), {
168
- key: process.env.NODE_ENV === "development" && "getCenterHeaderGroups",
169
- debug: () => {
170
- var n;
171
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
172
- }
173
- }), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
174
- var r;
175
- const i = (r = o?.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
176
- return G(n, i, e, "left");
177
- }, {
178
- key: process.env.NODE_ENV === "development" && "getLeftHeaderGroups",
179
- debug: () => {
180
- var n;
181
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
182
- }
183
- }), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
184
- var r;
185
- const i = (r = o?.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
186
- return G(n, i, e, "right");
187
- }, {
188
- key: process.env.NODE_ENV === "development" && "getRightHeaderGroups",
189
- debug: () => {
190
- var n;
191
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
192
- }
193
- }), e.getFooterGroups = m(() => [e.getHeaderGroups()], (n) => [...n].reverse(), {
194
- key: process.env.NODE_ENV === "development" && "getFooterGroups",
195
- debug: () => {
196
- var n;
197
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
198
- }
199
- }), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), {
200
- key: process.env.NODE_ENV === "development" && "getLeftFooterGroups",
201
- debug: () => {
202
- var n;
203
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
204
- }
205
- }), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), {
206
- key: process.env.NODE_ENV === "development" && "getCenterFooterGroups",
207
- debug: () => {
208
- var n;
209
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
210
- }
211
- }), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), {
212
- key: process.env.NODE_ENV === "development" && "getRightFooterGroups",
213
- debug: () => {
214
- var n;
215
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
216
- }
217
- }), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), {
218
- key: process.env.NODE_ENV === "development" && "getFlatHeaders",
219
- debug: () => {
220
- var n;
221
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
222
- }
223
- }), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), {
224
- key: process.env.NODE_ENV === "development" && "getLeftFlatHeaders",
225
- debug: () => {
226
- var n;
227
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
228
- }
229
- }), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), {
230
- key: process.env.NODE_ENV === "development" && "getCenterFlatHeaders",
231
- debug: () => {
232
- var n;
233
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
234
- }
235
- }), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), {
236
- key: process.env.NODE_ENV === "development" && "getRightFlatHeaders",
237
- debug: () => {
238
- var n;
239
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
240
- }
241
- }), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
242
- var o;
243
- return !((o = t.subHeaders) != null && o.length);
244
- }), {
245
- key: process.env.NODE_ENV === "development" && "getCenterLeafHeaders",
246
- debug: () => {
247
- var n;
248
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
249
- }
250
- }), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
251
- var o;
252
- return !((o = t.subHeaders) != null && o.length);
253
- }), {
254
- key: process.env.NODE_ENV === "development" && "getLeftLeafHeaders",
255
- debug: () => {
256
- var n;
257
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
258
- }
259
- }), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
260
- var o;
261
- return !((o = t.subHeaders) != null && o.length);
262
- }), {
263
- key: process.env.NODE_ENV === "development" && "getRightLeafHeaders",
264
- debug: () => {
265
- var n;
266
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
267
- }
268
- }), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
269
- var r, i, l, u, s, a;
270
- return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (a = o[0]) == null ? void 0 : a.headers) != null ? s : []].map((g) => g.getLeafHeaders()).flat();
271
- }, {
272
- key: process.env.NODE_ENV === "development" && "getLeafHeaders",
273
- debug: () => {
274
- var n;
275
- return (n = e.options.debugAll) != null ? n : e.options.debugHeaders;
276
- }
277
- });
278
- }
279
- };
280
- function G(e, n, t, o) {
281
- var r, i;
282
- let l = 0;
283
- const u = function(p, c) {
284
- c === void 0 && (c = 1), l = Math.max(l, c), p.filter((f) => f.getIsVisible()).forEach((f) => {
285
- var S;
286
- (S = f.columns) != null && S.length && u(f.columns, c + 1);
287
- }, 0);
288
- };
289
- u(e);
290
- let s = [];
291
- const a = (p, c) => {
292
- const f = {
293
- depth: c,
294
- id: [o, `${c}`].filter(Boolean).join("_"),
295
- headers: []
296
- }, S = [];
297
- p.forEach((C) => {
298
- const v = [...S].reverse()[0], R = C.column.depth === f.depth;
299
- let w, F = !1;
300
- if (R && C.column.parent ? w = C.column.parent : (w = C.column, F = !0), v && v?.column === w)
301
- v.subHeaders.push(C);
302
- else {
303
- const P = fe(t, w, {
304
- id: [o, c, w.id, C?.id].filter(Boolean).join("_"),
305
- isPlaceholder: F,
306
- placeholderId: F ? `${S.filter((T) => T.column === w).length}` : void 0,
307
- depth: c,
308
- index: S.length
309
- });
310
- P.subHeaders.push(C), S.push(P);
311
- }
312
- f.headers.push(C), C.headerGroup = f;
313
- }), s.push(f), c > 0 && a(S, c - 1);
314
- }, g = n.map((p, c) => fe(t, p, {
315
- depth: l,
316
- index: c
317
- }));
318
- a(g, l - 1), s.reverse();
319
- const d = (p) => p.filter((f) => f.column.getIsVisible()).map((f) => {
320
- let S = 0, C = 0, v = [0];
321
- f.subHeaders && f.subHeaders.length ? (v = [], d(f.subHeaders).forEach((w) => {
322
- let {
323
- colSpan: F,
324
- rowSpan: P
325
- } = w;
326
- S += F, v.push(P);
327
- })) : S = 1;
328
- const R = Math.min(...v);
329
- return C = C + R, f.colSpan = S, f.rowSpan = C, {
330
- colSpan: S,
331
- rowSpan: C
332
- };
333
- });
334
- return d((r = (i = s[0]) == null ? void 0 : i.headers) != null ? r : []), s;
335
- }
336
- const L = {
337
- size: 150,
338
- minSize: 20,
339
- maxSize: Number.MAX_SAFE_INTEGER
340
- }, K = () => ({
341
- startOffset: null,
342
- startSize: null,
343
- deltaOffset: null,
344
- deltaPercentage: null,
345
- isResizingColumn: !1,
346
- columnSizingStart: []
347
- }), Ke = {
348
- getDefaultColumnDef: () => L,
349
- getInitialState: (e) => ({
350
- columnSizing: {},
351
- columnSizingInfo: K(),
352
- ...e
353
- }),
354
- getDefaultOptions: (e) => ({
355
- columnResizeMode: "onEnd",
356
- columnResizeDirection: "ltr",
357
- onColumnSizingChange: $("columnSizing", e),
358
- onColumnSizingInfoChange: $("columnSizingInfo", e)
359
- }),
360
- createColumn: (e, n) => {
361
- e.getSize = () => {
362
- var t, o, r;
363
- const i = n.getState().columnSizing[e.id];
364
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : L.minSize, (o = i ?? e.columnDef.size) != null ? o : L.size), (r = e.columnDef.maxSize) != null ? r : L.maxSize);
365
- }, e.getStart = (t) => {
366
- const o = t ? t === "left" ? n.getLeftVisibleLeafColumns() : n.getRightVisibleLeafColumns() : n.getVisibleLeafColumns(), r = o.findIndex((i) => i.id === e.id);
367
- if (r > 0) {
368
- const i = o[r - 1];
369
- return i.getStart(t) + i.getSize();
370
- }
371
- return 0;
372
- }, e.resetSize = () => {
373
- n.setColumnSizing((t) => {
374
- let {
375
- [e.id]: o,
376
- ...r
377
- } = t;
378
- return r;
379
- });
380
- }, e.getCanResize = () => {
381
- var t, o;
382
- return ((t = e.columnDef.enableResizing) != null ? t : !0) && ((o = n.options.enableColumnResizing) != null ? o : !0);
383
- }, e.getIsResizing = () => n.getState().columnSizingInfo.isResizingColumn === e.id;
384
- },
385
- createHeader: (e, n) => {
386
- e.getSize = () => {
387
- let t = 0;
388
- const o = (r) => {
389
- if (r.subHeaders.length)
390
- r.subHeaders.forEach(o);
391
- else {
392
- var i;
393
- t += (i = r.column.getSize()) != null ? i : 0;
394
- }
395
- };
396
- return o(e), t;
397
- }, e.getStart = () => {
398
- if (e.index > 0) {
399
- const t = e.headerGroup.headers[e.index - 1];
400
- return t.getStart() + t.getSize();
401
- }
402
- return 0;
403
- }, e.getResizeHandler = (t) => {
404
- const o = n.getColumn(e.column.id), r = o?.getCanResize();
405
- return (i) => {
406
- if (!o || !r || (i.persist == null || i.persist(), Y(i) && i.touches && i.touches.length > 1))
407
- return;
408
- const l = e.getSize(), u = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[o.id, o.getSize()]], s = Y(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, g = (v, R) => {
409
- typeof R == "number" && (n.setColumnSizingInfo((w) => {
410
- var F, P;
411
- const T = n.options.columnResizeDirection === "rtl" ? -1 : 1, ae = (R - ((F = w?.startOffset) != null ? F : 0)) * T, de = Math.max(ae / ((P = w?.startSize) != null ? P : 0), -0.999999);
412
- return w.columnSizingStart.forEach((Me) => {
413
- let [Ae, ce] = Me;
414
- a[Ae] = Math.round(Math.max(ce + ce * de, 0) * 100) / 100;
415
- }), {
416
- ...w,
417
- deltaOffset: ae,
418
- deltaPercentage: de
419
- };
420
- }), (n.options.columnResizeMode === "onChange" || v === "end") && n.setColumnSizing((w) => ({
421
- ...w,
422
- ...a
423
- })));
424
- }, d = (v) => g("move", v), p = (v) => {
425
- g("end", v), n.setColumnSizingInfo((R) => ({
426
- ...R,
427
- isResizingColumn: !1,
428
- startOffset: null,
429
- startSize: null,
430
- deltaOffset: null,
431
- deltaPercentage: null,
432
- columnSizingStart: []
433
- }));
434
- }, c = t || typeof document < "u" ? document : null, f = {
435
- moveHandler: (v) => d(v.clientX),
436
- upHandler: (v) => {
437
- c?.removeEventListener("mousemove", f.moveHandler), c?.removeEventListener("mouseup", f.upHandler), p(v.clientX);
438
- }
439
- }, S = {
440
- moveHandler: (v) => (v.cancelable && (v.preventDefault(), v.stopPropagation()), d(v.touches[0].clientX), !1),
441
- upHandler: (v) => {
442
- var R;
443
- c?.removeEventListener("touchmove", S.moveHandler), c?.removeEventListener("touchend", S.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), p((R = v.touches[0]) == null ? void 0 : R.clientX);
444
- }
445
- }, C = Ye() ? {
446
- passive: !1
447
- } : !1;
448
- Y(i) ? (c?.addEventListener("touchmove", S.moveHandler, C), c?.addEventListener("touchend", S.upHandler, C)) : (c?.addEventListener("mousemove", f.moveHandler, C), c?.addEventListener("mouseup", f.upHandler, C)), n.setColumnSizingInfo((v) => ({
449
- ...v,
450
- startOffset: s,
451
- startSize: l,
452
- deltaOffset: 0,
453
- deltaPercentage: 0,
454
- columnSizingStart: u,
455
- isResizingColumn: o.id
456
- }));
457
- };
458
- };
459
- },
460
- createTable: (e) => {
461
- e.setColumnSizing = (n) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(n), e.setColumnSizingInfo = (n) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(n), e.resetColumnSizing = (n) => {
462
- var t;
463
- e.setColumnSizing(n ? {} : (t = e.initialState.columnSizing) != null ? t : {});
464
- }, e.resetHeaderSizeInfo = (n) => {
465
- var t;
466
- e.setColumnSizingInfo(n ? K() : (t = e.initialState.columnSizingInfo) != null ? t : K());
467
- }, e.getTotalSize = () => {
468
- var n, t;
469
- return (n = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
470
- }, e.getLeftTotalSize = () => {
471
- var n, t;
472
- return (n = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
473
- }, e.getCenterTotalSize = () => {
474
- var n, t;
475
- return (n = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
476
- }, e.getRightTotalSize = () => {
477
- var n, t;
478
- return (n = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((o, r) => o + r.getSize(), 0)) != null ? n : 0;
479
- };
480
- }
481
- };
482
- let z = null;
483
- function Ye() {
484
- if (typeof z == "boolean")
485
- return z;
486
- let e = !1;
487
- try {
488
- const n = {
489
- get passive() {
490
- return e = !0, !1;
491
- }
492
- }, t = () => {
493
- };
494
- window.addEventListener("test", t, n), window.removeEventListener("test", t);
495
- } catch {
496
- e = !1;
497
- }
498
- return z = e, z;
499
- }
500
- function Y(e) {
501
- return e.type === "touchstart";
502
- }
503
- const Je = {
504
- getInitialState: (e) => ({
505
- expanded: {},
506
- ...e
507
- }),
508
- getDefaultOptions: (e) => ({
509
- onExpandedChange: $("expanded", e),
510
- paginateExpandedRows: !0
511
- }),
512
- createTable: (e) => {
513
- let n = !1, t = !1;
514
- e._autoResetExpanded = () => {
515
- var o, r;
516
- if (!n) {
517
- e._queue(() => {
518
- n = !0;
519
- });
520
- return;
521
- }
522
- if ((o = (r = e.options.autoResetAll) != null ? r : e.options.autoResetExpanded) != null ? o : !e.options.manualExpanding) {
523
- if (t)
524
- return;
525
- t = !0, e._queue(() => {
526
- e.resetExpanded(), t = !1;
527
- });
528
- }
529
- }, e.setExpanded = (o) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(o), e.toggleAllRowsExpanded = (o) => {
530
- o ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
531
- }, e.resetExpanded = (o) => {
532
- var r, i;
533
- e.setExpanded(o ? {} : (r = (i = e.initialState) == null ? void 0 : i.expanded) != null ? r : {});
534
- }, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((o) => o.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (o) => {
535
- o.persist == null || o.persist(), e.toggleAllRowsExpanded();
536
- }, e.getIsSomeRowsExpanded = () => {
537
- const o = e.getState().expanded;
538
- return o === !0 || Object.values(o).some(Boolean);
539
- }, e.getIsAllRowsExpanded = () => {
540
- const o = e.getState().expanded;
541
- return typeof o == "boolean" ? o === !0 : !(!Object.keys(o).length || e.getRowModel().flatRows.some((r) => !r.getIsExpanded()));
542
- }, e.getExpandedDepth = () => {
543
- let o = 0;
544
- return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
545
- const l = i.split(".");
546
- o = Math.max(o, l.length);
547
- }), o;
548
- }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
549
- },
550
- createRow: (e, n) => {
551
- e.toggleExpanded = (t) => {
552
- n.setExpanded((o) => {
553
- var r;
554
- const i = o === !0 ? !0 : !!(o != null && o[e.id]);
555
- let l = {};
556
- if (o === !0 ? Object.keys(n.getRowModel().rowsById).forEach((u) => {
557
- l[u] = !0;
558
- }) : l = o, t = (r = t) != null ? r : !i, !i && t)
559
- return {
560
- ...l,
561
- [e.id]: !0
562
- };
563
- if (i && !t) {
564
- const {
565
- [e.id]: u,
566
- ...s
567
- } = l;
568
- return s;
569
- }
570
- return o;
571
- });
572
- }, e.getIsExpanded = () => {
573
- var t;
574
- const o = n.getState().expanded;
575
- return !!((t = n.options.getIsRowExpanded == null ? void 0 : n.options.getIsRowExpanded(e)) != null ? t : o === !0 || o?.[e.id]);
576
- }, e.getCanExpand = () => {
577
- var t, o, r;
578
- return (t = n.options.getRowCanExpand == null ? void 0 : n.options.getRowCanExpand(e)) != null ? t : ((o = n.options.enableExpanding) != null ? o : !0) && !!((r = e.subRows) != null && r.length);
579
- }, e.getIsAllParentsExpanded = () => {
580
- let t = !0, o = e;
581
- for (; t && o.parentId; )
582
- o = n.getRow(o.parentId, !0), t = o.getIsExpanded();
583
- return t;
584
- }, e.getToggleExpandedHandler = () => {
585
- const t = e.getCanExpand();
586
- return () => {
587
- t && e.toggleExpanded();
588
- };
589
- };
590
- }
591
- }, _e = (e, n, t) => {
592
- var o;
593
- const r = t.toLowerCase();
594
- return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(r));
595
- };
596
- _e.autoRemove = (e) => E(e);
597
- const we = (e, n, t) => {
598
- var o;
599
- return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
600
- };
601
- we.autoRemove = (e) => E(e);
602
- const Re = (e, n, t) => {
603
- var o;
604
- return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === t?.toLowerCase();
605
- };
606
- Re.autoRemove = (e) => E(e);
607
- const he = (e, n, t) => {
608
- var o;
609
- return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
610
- };
611
- he.autoRemove = (e) => E(e) || !(e != null && e.length);
612
- const $e = (e, n, t) => !t.some((o) => {
613
- var r;
614
- return !((r = e.getValue(n)) != null && r.includes(o));
615
- });
616
- $e.autoRemove = (e) => E(e) || !(e != null && e.length);
617
- const Fe = (e, n, t) => t.some((o) => {
618
- var r;
619
- return (r = e.getValue(n)) == null ? void 0 : r.includes(o);
620
- });
621
- Fe.autoRemove = (e) => E(e) || !(e != null && e.length);
622
- const Ve = (e, n, t) => e.getValue(n) === t;
623
- Ve.autoRemove = (e) => E(e);
624
- const Ee = (e, n, t) => e.getValue(n) == t;
625
- Ee.autoRemove = (e) => E(e);
626
- const ue = (e, n, t) => {
627
- let [o, r] = t;
628
- const i = e.getValue(n);
629
- return i >= o && i <= r;
630
- };
631
- ue.resolveFilterValue = (e) => {
632
- let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, r = typeof t != "number" ? parseFloat(t) : t, i = n === null || Number.isNaN(o) ? -1 / 0 : o, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
633
- if (i > l) {
634
- const u = i;
635
- i = l, l = u;
636
- }
637
- return [i, l];
638
- };
639
- ue.autoRemove = (e) => E(e) || E(e[0]) && E(e[1]);
640
- const A = {
641
- includesString: _e,
642
- includesStringSensitive: we,
643
- equalsString: Re,
644
- arrIncludes: he,
645
- arrIncludesAll: $e,
646
- arrIncludesSome: Fe,
647
- equals: Ve,
648
- weakEquals: Ee,
649
- inNumberRange: ue
650
- };
651
- function E(e) {
652
- return e == null || e === "";
653
- }
654
- const Qe = {
655
- getDefaultColumnDef: () => ({
656
- filterFn: "auto"
657
- }),
658
- getInitialState: (e) => ({
659
- columnFilters: [],
660
- globalFilter: void 0,
661
- // filtersProgress: 1,
662
- // facetProgress: {},
663
- ...e
664
- }),
665
- getDefaultOptions: (e) => ({
666
- onColumnFiltersChange: $("columnFilters", e),
667
- onGlobalFilterChange: $("globalFilter", e),
668
- filterFromLeafRows: !1,
669
- maxLeafRowFilterDepth: 100,
670
- globalFilterFn: "auto",
671
- getColumnCanGlobalFilter: (n) => {
672
- var t;
673
- const o = (t = e.getCoreRowModel().flatRows[0]) == null || (t = t._getAllCellsByColumnId()[n.id]) == null ? void 0 : t.getValue();
674
- return typeof o == "string" || typeof o == "number";
675
- }
676
- }),
677
- createColumn: (e, n) => {
678
- e.getAutoFilterFn = () => {
679
- const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
680
- return typeof o == "string" ? A.includesString : typeof o == "number" ? A.inNumberRange : typeof o == "boolean" || o !== null && typeof o == "object" ? A.equals : Array.isArray(o) ? A.arrIncludes : A.weakEquals;
681
- }, e.getFilterFn = () => {
682
- var t, o;
683
- return B(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
684
- // @ts-ignore
685
- (t = (o = n.options.filterFns) == null ? void 0 : o[e.columnDef.filterFn]) != null ? t : A[e.columnDef.filterFn]
686
- );
687
- }, e.getCanFilter = () => {
688
- var t, o, r;
689
- return ((t = e.columnDef.enableColumnFilter) != null ? t : !0) && ((o = n.options.enableColumnFilters) != null ? o : !0) && ((r = n.options.enableFilters) != null ? r : !0) && !!e.accessorFn;
690
- }, e.getCanGlobalFilter = () => {
691
- var t, o, r, i;
692
- return ((t = e.columnDef.enableGlobalFilter) != null ? t : !0) && ((o = n.options.enableGlobalFilter) != null ? o : !0) && ((r = n.options.enableFilters) != null ? r : !0) && ((i = n.options.getColumnCanGlobalFilter == null ? void 0 : n.options.getColumnCanGlobalFilter(e)) != null ? i : !0) && !!e.accessorFn;
693
- }, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
694
- var t;
695
- return (t = n.getState().columnFilters) == null || (t = t.find((o) => o.id === e.id)) == null ? void 0 : t.value;
696
- }, e.getFilterIndex = () => {
697
- var t, o;
698
- return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
699
- }, e.setFilterValue = (t) => {
700
- n.setColumnFilters((o) => {
701
- const r = e.getFilterFn(), i = o?.find((g) => g.id === e.id), l = y(t, i ? i.value : void 0);
702
- if (me(r, l, e)) {
703
- var u;
704
- return (u = o?.filter((g) => g.id !== e.id)) != null ? u : [];
705
- }
706
- const s = {
707
- id: e.id,
708
- value: l
709
- };
710
- if (i) {
711
- var a;
712
- return (a = o?.map((g) => g.id === e.id ? s : g)) != null ? a : [];
713
- }
714
- return o != null && o.length ? [...o, s] : [s];
715
- });
716
- }, e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
717
- if (e._getFacetedMinMaxValues)
718
- return e._getFacetedMinMaxValues();
719
- };
720
- },
721
- createRow: (e, n) => {
722
- e.columnFilters = {}, e.columnFiltersMeta = {};
723
- },
724
- createTable: (e) => {
725
- e.getGlobalAutoFilterFn = () => A.includesString, e.getGlobalFilterFn = () => {
726
- var n, t;
727
- const {
728
- globalFilterFn: o
729
- } = e.options;
730
- return B(o) ? o : o === "auto" ? e.getGlobalAutoFilterFn() : (
731
- // @ts-ignore
732
- (n = (t = e.options.filterFns) == null ? void 0 : t[o]) != null ? n : A[o]
733
- );
734
- }, e.setColumnFilters = (n) => {
735
- const t = e.getAllLeafColumns(), o = (r) => {
736
- var i;
737
- return (i = y(n, r)) == null ? void 0 : i.filter((l) => {
738
- const u = t.find((s) => s.id === l.id);
739
- if (u) {
740
- const s = u.getFilterFn();
741
- if (me(s, l.value, u))
742
- return !1;
743
- }
744
- return !0;
745
- });
746
- };
747
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(o);
748
- }, e.setGlobalFilter = (n) => {
749
- e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(n);
750
- }, e.resetGlobalFilter = (n) => {
751
- e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
752
- }, e.resetColumnFilters = (n) => {
753
- var t, o;
754
- e.setColumnFilters(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.columnFilters) != null ? t : []);
755
- }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel()), e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
756
- if (e._getGlobalFacetedMinMaxValues)
757
- return e._getGlobalFacetedMinMaxValues();
758
- };
759
- }
760
- };
761
- function me(e, n, t) {
762
- return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
763
- }
764
- const We = (e, n, t) => t.reduce((o, r) => {
765
- const i = r.getValue(e);
766
- return o + (typeof i == "number" ? i : 0);
767
- }, 0), Ze = (e, n, t) => {
768
- let o;
769
- return t.forEach((r) => {
770
- const i = r.getValue(e);
771
- i != null && (o > i || o === void 0 && i >= i) && (o = i);
772
- }), o;
773
- }, et = (e, n, t) => {
774
- let o;
775
- return t.forEach((r) => {
776
- const i = r.getValue(e);
777
- i != null && (o < i || o === void 0 && i >= i) && (o = i);
778
- }), o;
779
- }, tt = (e, n, t) => {
780
- let o, r;
781
- return t.forEach((i) => {
782
- const l = i.getValue(e);
783
- l != null && (o === void 0 ? l >= l && (o = r = l) : (o > l && (o = l), r < l && (r = l)));
784
- }), [o, r];
785
- }, nt = (e, n) => {
786
- let t = 0, o = 0;
787
- if (n.forEach((r) => {
788
- let i = r.getValue(e);
789
- i != null && (i = +i) >= i && (++t, o += i);
790
- }), t)
791
- return o / t;
792
- }, ot = (e, n) => {
793
- if (!n.length)
794
- return;
795
- const t = n.map((i) => i.getValue(e));
796
- if (!qe(t))
797
- return;
798
- if (t.length === 1)
799
- return t[0];
800
- const o = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
801
- return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
802
- }, rt = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), it = (e, n) => new Set(n.map((t) => t.getValue(e))).size, lt = (e, n) => n.length, J = {
803
- sum: We,
804
- min: Ze,
805
- max: et,
806
- extent: tt,
807
- mean: nt,
808
- median: ot,
809
- unique: rt,
810
- uniqueCount: it,
811
- count: lt
812
- }, ut = {
813
- getDefaultColumnDef: () => ({
814
- aggregatedCell: (e) => {
815
- var n, t;
816
- return (n = (t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) != null ? n : null;
817
- },
818
- aggregationFn: "auto"
819
- }),
820
- getInitialState: (e) => ({
821
- grouping: [],
822
- ...e
823
- }),
824
- getDefaultOptions: (e) => ({
825
- onGroupingChange: $("grouping", e),
826
- groupedColumnMode: "reorder"
827
- }),
828
- createColumn: (e, n) => {
829
- e.toggleGrouping = () => {
830
- n.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((o) => o !== e.id) : [...t ?? [], e.id]);
831
- }, e.getCanGroup = () => {
832
- var t, o, r, i;
833
- return (t = (o = (r = (i = e.columnDef.enableGrouping) != null ? i : !0) != null ? r : n.options.enableGrouping) != null ? o : !0) != null ? t : !!e.accessorFn;
834
- }, e.getIsGrouped = () => {
835
- var t;
836
- return (t = n.getState().grouping) == null ? void 0 : t.includes(e.id);
837
- }, e.getGroupedIndex = () => {
838
- var t;
839
- return (t = n.getState().grouping) == null ? void 0 : t.indexOf(e.id);
840
- }, e.getToggleGroupingHandler = () => {
841
- const t = e.getCanGroup();
842
- return () => {
843
- t && e.toggleGrouping();
844
- };
845
- }, e.getAutoAggregationFn = () => {
846
- const t = n.getCoreRowModel().flatRows[0], o = t?.getValue(e.id);
847
- if (typeof o == "number")
848
- return J.sum;
849
- if (Object.prototype.toString.call(o) === "[object Date]")
850
- return J.extent;
851
- }, e.getAggregationFn = () => {
852
- var t, o;
853
- if (!e)
854
- throw new Error();
855
- return B(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (o = n.options.aggregationFns) == null ? void 0 : o[e.columnDef.aggregationFn]) != null ? t : J[e.columnDef.aggregationFn];
856
- };
857
- },
858
- createTable: (e) => {
859
- e.setGrouping = (n) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(n), e.resetGrouping = (n) => {
860
- var t, o;
861
- e.setGrouping(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.grouping) != null ? t : []);
862
- }, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
863
- },
864
- createRow: (e, n) => {
865
- e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
866
- if (e._groupingValuesCache.hasOwnProperty(t))
867
- return e._groupingValuesCache[t];
868
- const o = n.getColumn(t);
869
- return o != null && o.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = o.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
870
- }, e._groupingValuesCache = {};
871
- },
872
- createCell: (e, n, t, o) => {
873
- e.getIsGrouped = () => n.getIsGrouped() && n.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && n.getIsGrouped(), e.getIsAggregated = () => {
874
- var r;
875
- return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((r = t.subRows) != null && r.length);
876
- };
877
- }
878
- };
879
- function st(e, n, t) {
880
- if (!(n != null && n.length) || !t)
881
- return e;
882
- const o = e.filter((i) => !n.includes(i.id));
883
- return t === "remove" ? o : [...n.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...o];
884
- }
885
- const gt = {
886
- getInitialState: (e) => ({
887
- columnOrder: [],
888
- ...e
889
- }),
890
- getDefaultOptions: (e) => ({
891
- onColumnOrderChange: $("columnOrder", e)
892
- }),
893
- createTable: (e) => {
894
- e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
895
- var t;
896
- e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
897
- }, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, o) => (r) => {
898
- let i = [];
899
- if (!(n != null && n.length))
900
- i = r;
901
- else {
902
- const l = [...n], u = [...r];
903
- for (; u.length && l.length; ) {
904
- const s = l.shift(), a = u.findIndex((g) => g.id === s);
905
- a > -1 && i.push(u.splice(a, 1)[0]);
906
- }
907
- i = [...i, ...u];
908
- }
909
- return st(i, t, o);
910
- }, {
911
- key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
912
- // debug: () => table.options.debugAll ?? table.options.debugTable,
913
- });
914
- }
915
- }, ne = 0, oe = 10, Q = () => ({
916
- pageIndex: ne,
917
- pageSize: oe
918
- }), at = {
919
- getInitialState: (e) => ({
920
- ...e,
921
- pagination: {
922
- ...Q(),
923
- ...e?.pagination
924
- }
925
- }),
926
- getDefaultOptions: (e) => ({
927
- onPaginationChange: $("pagination", e)
928
- }),
929
- createTable: (e) => {
930
- let n = !1, t = !1;
931
- e._autoResetPageIndex = () => {
932
- var o, r;
933
- if (!n) {
934
- e._queue(() => {
935
- n = !0;
936
- });
937
- return;
938
- }
939
- if ((o = (r = e.options.autoResetAll) != null ? r : e.options.autoResetPageIndex) != null ? o : !e.options.manualPagination) {
940
- if (t)
941
- return;
942
- t = !0, e._queue(() => {
943
- e.resetPageIndex(), t = !1;
944
- });
945
- }
946
- }, e.setPagination = (o) => {
947
- const r = (i) => y(o, i);
948
- return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
949
- }, e.resetPagination = (o) => {
950
- var r;
951
- e.setPagination(o ? Q() : (r = e.initialState.pagination) != null ? r : Q());
952
- }, e.setPageIndex = (o) => {
953
- e.setPagination((r) => {
954
- let i = y(o, r.pageIndex);
955
- const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
956
- return i = Math.max(0, Math.min(i, l)), {
957
- ...r,
958
- pageIndex: i
959
- };
960
- });
961
- }, e.resetPageIndex = (o) => {
962
- var r, i;
963
- e.setPageIndex(o ? ne : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : ne);
964
- }, e.resetPageSize = (o) => {
965
- var r, i;
966
- e.setPageSize(o ? oe : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : oe);
967
- }, e.setPageSize = (o) => {
968
- e.setPagination((r) => {
969
- const i = Math.max(1, y(o, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
970
- return {
971
- ...r,
972
- pageIndex: u,
973
- pageSize: i
974
- };
975
- });
976
- }, e.setPageCount = (o) => e.setPagination((r) => {
977
- var i;
978
- let l = y(o, (i = e.options.pageCount) != null ? i : -1);
979
- return typeof l == "number" && (l = Math.max(-1, l)), {
980
- ...r,
981
- pageCount: l
982
- };
983
- }), e.getPageOptions = m(() => [e.getPageCount()], (o) => {
984
- let r = [];
985
- return o && o > 0 && (r = [...new Array(o)].fill(null).map((i, l) => l)), r;
986
- }, {
987
- key: process.env.NODE_ENV === "development" && "getPageOptions",
988
- debug: () => {
989
- var o;
990
- return (o = e.options.debugAll) != null ? o : e.options.debugTable;
991
- }
992
- }), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
993
- const {
994
- pageIndex: o
995
- } = e.getState().pagination, r = e.getPageCount();
996
- return r === -1 ? !0 : r === 0 ? !1 : o < r - 1;
997
- }, e.previousPage = () => e.setPageIndex((o) => o - 1), e.nextPage = () => e.setPageIndex((o) => o + 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => {
998
- var o;
999
- return (o = e.options.pageCount) != null ? o : Math.ceil(e.getPrePaginationRowModel().rows.length / e.getState().pagination.pageSize);
1000
- };
1001
- }
1002
- }, W = () => ({
1003
- left: [],
1004
- right: []
1005
- }), Z = () => ({
1006
- top: [],
1007
- bottom: []
1008
- }), dt = {
1009
- getInitialState: (e) => ({
1010
- columnPinning: W(),
1011
- rowPinning: Z(),
1012
- ...e
1013
- }),
1014
- getDefaultOptions: (e) => ({
1015
- onColumnPinningChange: $("columnPinning", e),
1016
- onRowPinningChange: $("rowPinning", e)
1017
- }),
1018
- createColumn: (e, n) => {
1019
- e.pin = (t) => {
1020
- const o = e.getLeafColumns().map((r) => r.id).filter(Boolean);
1021
- n.setColumnPinning((r) => {
1022
- var i, l;
1023
- if (t === "right") {
1024
- var u, s;
1025
- return {
1026
- left: ((u = r?.left) != null ? u : []).filter((d) => !(o != null && o.includes(d))),
1027
- right: [...((s = r?.right) != null ? s : []).filter((d) => !(o != null && o.includes(d))), ...o]
1028
- };
1029
- }
1030
- if (t === "left") {
1031
- var a, g;
1032
- return {
1033
- left: [...((a = r?.left) != null ? a : []).filter((d) => !(o != null && o.includes(d))), ...o],
1034
- right: ((g = r?.right) != null ? g : []).filter((d) => !(o != null && o.includes(d)))
1035
- };
1036
- }
1037
- return {
1038
- left: ((i = r?.left) != null ? i : []).filter((d) => !(o != null && o.includes(d))),
1039
- right: ((l = r?.right) != null ? l : []).filter((d) => !(o != null && o.includes(d)))
1040
- };
1041
- });
1042
- }, e.getCanPin = () => e.getLeafColumns().some((o) => {
1043
- var r, i, l;
1044
- return ((r = o.columnDef.enablePinning) != null ? r : !0) && ((i = (l = n.options.enableColumnPinning) != null ? l : n.options.enablePinning) != null ? i : !0);
1045
- }), e.getIsPinned = () => {
1046
- const t = e.getLeafColumns().map((u) => u.id), {
1047
- left: o,
1048
- right: r
1049
- } = n.getState().columnPinning, i = t.some((u) => o?.includes(u)), l = t.some((u) => r?.includes(u));
1050
- return i ? "left" : l ? "right" : !1;
1051
- }, e.getPinnedIndex = () => {
1052
- var t, o;
1053
- const r = e.getIsPinned();
1054
- return r ? (t = (o = n.getState().columnPinning) == null || (o = o[r]) == null ? void 0 : o.indexOf(e.id)) != null ? t : -1 : 0;
1055
- };
1056
- },
1057
- createRow: (e, n) => {
1058
- e.pin = (t, o, r) => {
1059
- const i = o ? e.getLeafRows().map((s) => {
1060
- let {
1061
- id: a
1062
- } = s;
1063
- return a;
1064
- }) : [], l = r ? e.getParentRows().map((s) => {
1065
- let {
1066
- id: a
1067
- } = s;
1068
- return a;
1069
- }) : [], u = /* @__PURE__ */ new Set([...l, e.id, ...i]);
1070
- n.setRowPinning((s) => {
1071
- var a, g;
1072
- if (t === "bottom") {
1073
- var d, p;
1074
- return {
1075
- top: ((d = s?.top) != null ? d : []).filter((S) => !(u != null && u.has(S))),
1076
- bottom: [...((p = s?.bottom) != null ? p : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)]
1077
- };
1078
- }
1079
- if (t === "top") {
1080
- var c, f;
1081
- return {
1082
- top: [...((c = s?.top) != null ? c : []).filter((S) => !(u != null && u.has(S))), ...Array.from(u)],
1083
- bottom: ((f = s?.bottom) != null ? f : []).filter((S) => !(u != null && u.has(S)))
1084
- };
1085
- }
1086
- return {
1087
- top: ((a = s?.top) != null ? a : []).filter((S) => !(u != null && u.has(S))),
1088
- bottom: ((g = s?.bottom) != null ? g : []).filter((S) => !(u != null && u.has(S)))
1089
- };
1090
- });
1091
- }, e.getCanPin = () => {
1092
- var t;
1093
- const {
1094
- enableRowPinning: o,
1095
- enablePinning: r
1096
- } = n.options;
1097
- return typeof o == "function" ? o(e) : (t = o ?? r) != null ? t : !0;
1098
- }, e.getIsPinned = () => {
1099
- const t = [e.id], {
1100
- top: o,
1101
- bottom: r
1102
- } = n.getState().rowPinning, i = t.some((u) => o?.includes(u)), l = t.some((u) => r?.includes(u));
1103
- return i ? "top" : l ? "bottom" : !1;
1104
- }, e.getPinnedIndex = () => {
1105
- var t, o;
1106
- const r = e.getIsPinned();
1107
- if (!r)
1108
- return -1;
1109
- const i = (t = n._getPinnedRows(r)) == null ? void 0 : t.map((l) => {
1110
- let {
1111
- id: u
1112
- } = l;
1113
- return u;
1114
- });
1115
- return (o = i?.indexOf(e.id)) != null ? o : -1;
1116
- }, e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
1117
- const i = [...o ?? [], ...r ?? []];
1118
- return t.filter((l) => !i.includes(l.column.id));
1119
- }, {
1120
- key: process.env.NODE_ENV === "development" && "row.getCenterVisibleCells",
1121
- debug: () => {
1122
- var t;
1123
- return (t = n.options.debugAll) != null ? t : n.options.debugRows;
1124
- }
1125
- }), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, ,], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1126
- ...i,
1127
- position: "left"
1128
- })), {
1129
- key: process.env.NODE_ENV === "development" && "row.getLeftVisibleCells",
1130
- debug: () => {
1131
- var t;
1132
- return (t = n.options.debugAll) != null ? t : n.options.debugRows;
1133
- }
1134
- }), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1135
- ...i,
1136
- position: "right"
1137
- })), {
1138
- key: process.env.NODE_ENV === "development" && "row.getRightVisibleCells",
1139
- debug: () => {
1140
- var t;
1141
- return (t = n.options.debugAll) != null ? t : n.options.debugRows;
1142
- }
1143
- });
1144
- },
1145
- createTable: (e) => {
1146
- e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
1147
- var t, o;
1148
- return e.setColumnPinning(n ? W() : (t = (o = e.initialState) == null ? void 0 : o.columnPinning) != null ? t : W());
1149
- }, e.getIsSomeColumnsPinned = (n) => {
1150
- var t;
1151
- const o = e.getState().columnPinning;
1152
- if (!n) {
1153
- var r, i;
1154
- return !!((r = o.left) != null && r.length || (i = o.right) != null && i.length);
1155
- }
1156
- return !!((t = o[n]) != null && t.length);
1157
- }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), {
1158
- key: process.env.NODE_ENV === "development" && "getLeftLeafColumns",
1159
- debug: () => {
1160
- var n;
1161
- return (n = e.options.debugAll) != null ? n : e.options.debugColumns;
1162
- }
1163
- }), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), {
1164
- key: process.env.NODE_ENV === "development" && "getRightLeafColumns",
1165
- debug: () => {
1166
- var n;
1167
- return (n = e.options.debugAll) != null ? n : e.options.debugColumns;
1168
- }
1169
- }), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
1170
- const r = [...t ?? [], ...o ?? []];
1171
- return n.filter((i) => !r.includes(i.id));
1172
- }, {
1173
- key: process.env.NODE_ENV === "development" && "getCenterLeafColumns",
1174
- debug: () => {
1175
- var n;
1176
- return (n = e.options.debugAll) != null ? n : e.options.debugColumns;
1177
- }
1178
- }), e.setRowPinning = (n) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(n), e.resetRowPinning = (n) => {
1179
- var t, o;
1180
- return e.setRowPinning(n ? Z() : (t = (o = e.initialState) == null ? void 0 : o.rowPinning) != null ? t : Z());
1181
- }, e.getIsSomeRowsPinned = (n) => {
1182
- var t;
1183
- const o = e.getState().rowPinning;
1184
- if (!n) {
1185
- var r, i;
1186
- return !!((r = o.top) != null && r.length || (i = o.bottom) != null && i.length);
1187
- }
1188
- return !!((t = o[n]) != null && t.length);
1189
- }, e._getPinnedRows = (n) => m(() => [e.getRowModel().rows, e.getState().rowPinning[n]], (t, o) => {
1190
- var r;
1191
- return ((r = e.options.keepPinnedRows) == null || r ? (
1192
- //get all rows that are pinned even if they would not be otherwise visible
1193
- //account for expanded parent rows, but not pagination or filtering
1194
- (o ?? []).map((l) => {
1195
- const u = e.getRow(l, !0);
1196
- return u.getIsAllParentsExpanded() ? u : null;
1197
- })
1198
- ) : (
1199
- //else get only visible rows that are pinned
1200
- (o ?? []).map((l) => t.find((u) => u.id === l))
1201
- )).filter(Boolean).map((l) => ({
1202
- ...l,
1203
- position: n
1204
- }));
1205
- }, {
1206
- key: process.env.NODE_ENV === "development" && `row.get${n === "top" ? "Top" : "Bottom"}Rows`,
1207
- debug: () => {
1208
- var t;
1209
- return (t = e.options.debugAll) != null ? t : e.options.debugRows;
1210
- }
1211
- })(), e.getTopRows = () => e._getPinnedRows("top"), e.getBottomRows = () => e._getPinnedRows("bottom"), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
1212
- const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
1213
- return n.filter((i) => !r.has(i.id));
1214
- }, {
1215
- key: process.env.NODE_ENV === "development" && "row.getCenterRows",
1216
- debug: () => {
1217
- var n;
1218
- return (n = e.options.debugAll) != null ? n : e.options.debugRows;
1219
- }
1220
- });
1221
- }
1222
- }, ct = {
1223
- getInitialState: (e) => ({
1224
- rowSelection: {},
1225
- ...e
1226
- }),
1227
- getDefaultOptions: (e) => ({
1228
- onRowSelectionChange: $("rowSelection", e),
1229
- enableRowSelection: !0,
1230
- enableMultiRowSelection: !0,
1231
- enableSubRowSelection: !0
1232
- // enableGroupingRowSelection: false,
1233
- // isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
1234
- // isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
1235
- }),
1236
- createTable: (e) => {
1237
- e.setRowSelection = (n) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(n), e.resetRowSelection = (n) => {
1238
- var t;
1239
- return e.setRowSelection(n ? {} : (t = e.initialState.rowSelection) != null ? t : {});
1240
- }, e.toggleAllRowsSelected = (n) => {
1241
- e.setRowSelection((t) => {
1242
- n = typeof n < "u" ? n : !e.getIsAllRowsSelected();
1243
- const o = {
1244
- ...t
1245
- }, r = e.getPreGroupedRowModel().flatRows;
1246
- return n ? r.forEach((i) => {
1247
- i.getCanSelect() && (o[i.id] = !0);
1248
- }) : r.forEach((i) => {
1249
- delete o[i.id];
1250
- }), o;
1251
- });
1252
- }, e.toggleAllPageRowsSelected = (n) => e.setRowSelection((t) => {
1253
- const o = typeof n < "u" ? n : !e.getIsAllPageRowsSelected(), r = {
1254
- ...t
1255
- };
1256
- return e.getRowModel().rows.forEach((i) => {
1257
- re(r, i.id, o, !0, e);
1258
- }), r;
1259
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? ee(e, t) : {
1260
- rows: [],
1261
- flatRows: [],
1262
- rowsById: {}
1263
- }, {
1264
- key: process.env.NODE_ENV === "development" && "getSelectedRowModel",
1265
- debug: () => {
1266
- var n;
1267
- return (n = e.options.debugAll) != null ? n : e.options.debugTable;
1268
- }
1269
- }), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? ee(e, t) : {
1270
- rows: [],
1271
- flatRows: [],
1272
- rowsById: {}
1273
- }, {
1274
- key: process.env.NODE_ENV === "production" && "getFilteredSelectedRowModel",
1275
- debug: () => {
1276
- var n;
1277
- return (n = e.options.debugAll) != null ? n : e.options.debugTable;
1278
- }
1279
- }), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? ee(e, t) : {
1280
- rows: [],
1281
- flatRows: [],
1282
- rowsById: {}
1283
- }, {
1284
- key: process.env.NODE_ENV === "production" && "getGroupedSelectedRowModel",
1285
- debug: () => {
1286
- var n;
1287
- return (n = e.options.debugAll) != null ? n : e.options.debugTable;
1288
- }
1289
- }), e.getIsAllRowsSelected = () => {
1290
- const n = e.getFilteredRowModel().flatRows, {
1291
- rowSelection: t
1292
- } = e.getState();
1293
- let o = !!(n.length && Object.keys(t).length);
1294
- return o && n.some((r) => r.getCanSelect() && !t[r.id]) && (o = !1), o;
1295
- }, e.getIsAllPageRowsSelected = () => {
1296
- const n = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
1297
- rowSelection: t
1298
- } = e.getState();
1299
- let o = !!n.length;
1300
- return o && n.some((r) => !t[r.id]) && (o = !1), o;
1301
- }, e.getIsSomeRowsSelected = () => {
1302
- var n;
1303
- const t = Object.keys((n = e.getState().rowSelection) != null ? n : {}).length;
1304
- return t > 0 && t < e.getFilteredRowModel().flatRows.length;
1305
- }, e.getIsSomePageRowsSelected = () => {
1306
- const n = e.getPaginationRowModel().flatRows;
1307
- return e.getIsAllPageRowsSelected() ? !1 : n.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
1308
- }, e.getToggleAllRowsSelectedHandler = () => (n) => {
1309
- e.toggleAllRowsSelected(n.target.checked);
1310
- }, e.getToggleAllPageRowsSelectedHandler = () => (n) => {
1311
- e.toggleAllPageRowsSelected(n.target.checked);
1312
- };
1313
- },
1314
- createRow: (e, n) => {
1315
- e.toggleSelected = (t, o) => {
1316
- const r = e.getIsSelected();
1317
- n.setRowSelection((i) => {
1318
- var l;
1319
- if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
1320
- return i;
1321
- const u = {
1322
- ...i
1323
- };
1324
- return re(u, e.id, t, (l = o?.selectChildren) != null ? l : !0, n), u;
1325
- });
1326
- }, e.getIsSelected = () => {
1327
- const {
1328
- rowSelection: t
1329
- } = n.getState();
1330
- return se(e, t);
1331
- }, e.getIsSomeSelected = () => {
1332
- const {
1333
- rowSelection: t
1334
- } = n.getState();
1335
- return ie(e, t) === "some";
1336
- }, e.getIsAllSubRowsSelected = () => {
1337
- const {
1338
- rowSelection: t
1339
- } = n.getState();
1340
- return ie(e, t) === "all";
1341
- }, e.getCanSelect = () => {
1342
- var t;
1343
- return typeof n.options.enableRowSelection == "function" ? n.options.enableRowSelection(e) : (t = n.options.enableRowSelection) != null ? t : !0;
1344
- }, e.getCanSelectSubRows = () => {
1345
- var t;
1346
- return typeof n.options.enableSubRowSelection == "function" ? n.options.enableSubRowSelection(e) : (t = n.options.enableSubRowSelection) != null ? t : !0;
1347
- }, e.getCanMultiSelect = () => {
1348
- var t;
1349
- return typeof n.options.enableMultiRowSelection == "function" ? n.options.enableMultiRowSelection(e) : (t = n.options.enableMultiRowSelection) != null ? t : !0;
1350
- }, e.getToggleSelectedHandler = () => {
1351
- const t = e.getCanSelect();
1352
- return (o) => {
1353
- var r;
1354
- t && e.toggleSelected((r = o.target) == null ? void 0 : r.checked);
1355
- };
1356
- };
1357
- }
1358
- }, re = (e, n, t, o, r) => {
1359
- var i;
1360
- const l = r.getRow(n, !0);
1361
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => re(e, u.id, t, o, r));
1362
- };
1363
- function ee(e, n) {
1364
- const t = e.getState().rowSelection, o = [], r = {}, i = function(l, u) {
1365
- return l.map((s) => {
1366
- var a;
1367
- const g = se(s, t);
1368
- if (g && (o.push(s), r[s.id] = s), (a = s.subRows) != null && a.length && (s = {
1369
- ...s,
1370
- subRows: i(s.subRows)
1371
- }), g)
1372
- return s;
1373
- }).filter(Boolean);
1374
- };
1375
- return {
1376
- rows: i(n.rows),
1377
- flatRows: o,
1378
- rowsById: r
1379
- };
1380
- }
1381
- function se(e, n) {
1382
- var t;
1383
- return (t = n[e.id]) != null ? t : !1;
1384
- }
1385
- function ie(e, n, t) {
1386
- var o;
1387
- if (!((o = e.subRows) != null && o.length))
1388
- return !1;
1389
- let r = !0, i = !1;
1390
- return e.subRows.forEach((l) => {
1391
- if (!(i && !r) && (l.getCanSelect() && (se(l, n) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1392
- const u = ie(l, n);
1393
- u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
1394
- }
1395
- }), r ? "all" : i ? "some" : !1;
1396
- }
1397
- const le = /([0-9]+)/gm, pt = (e, n, t) => Pe(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), ft = (e, n, t) => Pe(x(e.getValue(t)), x(n.getValue(t))), mt = (e, n, t) => ge(x(e.getValue(t)).toLowerCase(), x(n.getValue(t)).toLowerCase()), St = (e, n, t) => ge(x(e.getValue(t)), x(n.getValue(t))), vt = (e, n, t) => {
1398
- const o = e.getValue(t), r = n.getValue(t);
1399
- return o > r ? 1 : o < r ? -1 : 0;
1400
- }, Ct = (e, n, t) => ge(e.getValue(t), n.getValue(t));
1401
- function ge(e, n) {
1402
- return e === n ? 0 : e > n ? 1 : -1;
1403
- }
1404
- function x(e) {
1405
- return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1406
- }
1407
- function Pe(e, n) {
1408
- const t = e.split(le).filter(Boolean), o = n.split(le).filter(Boolean);
1409
- for (; t.length && o.length; ) {
1410
- const r = t.shift(), i = o.shift(), l = parseInt(r, 10), u = parseInt(i, 10), s = [l, u].sort();
1411
- if (isNaN(s[0])) {
1412
- if (r > i)
1413
- return 1;
1414
- if (i > r)
1415
- return -1;
1416
- continue;
1417
- }
1418
- if (isNaN(s[1]))
1419
- return isNaN(l) ? -1 : 1;
1420
- if (l > u)
1421
- return 1;
1422
- if (u > l)
1423
- return -1;
1424
- }
1425
- return t.length - o.length;
1426
- }
1427
- const D = {
1428
- alphanumeric: pt,
1429
- alphanumericCaseSensitive: ft,
1430
- text: mt,
1431
- textCaseSensitive: St,
1432
- datetime: vt,
1433
- basic: Ct
1434
- }, _t = {
1435
- getInitialState: (e) => ({
1436
- sorting: [],
1437
- ...e
1438
- }),
1439
- getDefaultColumnDef: () => ({
1440
- sortingFn: "auto",
1441
- sortUndefined: 1
1442
- }),
1443
- getDefaultOptions: (e) => ({
1444
- onSortingChange: $("sorting", e),
1445
- isMultiSortEvent: (n) => n.shiftKey
1446
- }),
1447
- createColumn: (e, n) => {
1448
- e.getAutoSortingFn = () => {
1449
- const t = n.getFilteredRowModel().flatRows.slice(10);
1450
- let o = !1;
1451
- for (const r of t) {
1452
- const i = r?.getValue(e.id);
1453
- if (Object.prototype.toString.call(i) === "[object Date]")
1454
- return D.datetime;
1455
- if (typeof i == "string" && (o = !0, i.split(le).length > 1))
1456
- return D.alphanumeric;
1457
- }
1458
- return o ? D.text : D.basic;
1459
- }, e.getAutoSortDir = () => {
1460
- const t = n.getFilteredRowModel().flatRows[0];
1461
- return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
1462
- }, e.getSortingFn = () => {
1463
- var t, o;
1464
- if (!e)
1465
- throw new Error();
1466
- return B(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : D[e.columnDef.sortingFn];
1467
- }, e.toggleSorting = (t, o) => {
1468
- const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1469
- n.setSorting((l) => {
1470
- const u = l?.find((c) => c.id === e.id), s = l?.findIndex((c) => c.id === e.id);
1471
- let a = [], g, d = i ? t : r === "desc";
1472
- if (l != null && l.length && e.getCanMultiSort() && o ? u ? g = "toggle" : g = "add" : l != null && l.length && s !== l.length - 1 ? g = "replace" : u ? g = "toggle" : g = "replace", g === "toggle" && (i || r || (g = "remove")), g === "add") {
1473
- var p;
1474
- a = [...l, {
1475
- id: e.id,
1476
- desc: d
1477
- }], a.splice(0, a.length - ((p = n.options.maxMultiSortColCount) != null ? p : Number.MAX_SAFE_INTEGER));
1478
- } else
1479
- g === "toggle" ? a = l.map((c) => c.id === e.id ? {
1480
- ...c,
1481
- desc: d
1482
- } : c) : g === "remove" ? a = l.filter((c) => c.id !== e.id) : a = [{
1483
- id: e.id,
1484
- desc: d
1485
- }];
1486
- return a;
1487
- });
1488
- }, e.getFirstSortDir = () => {
1489
- var t, o;
1490
- return ((t = (o = e.columnDef.sortDescFirst) != null ? o : n.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
1491
- }, e.getNextSortingOrder = (t) => {
1492
- var o, r;
1493
- const i = e.getFirstSortDir(), l = e.getIsSorted();
1494
- return l ? l !== i && ((o = n.options.enableSortingRemoval) == null || o) && // If enableSortRemove, enable in general
1495
- (!(t && (r = n.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
1496
- }, e.getCanSort = () => {
1497
- var t, o;
1498
- return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((o = n.options.enableSorting) != null ? o : !0) && !!e.accessorFn;
1499
- }, e.getCanMultiSort = () => {
1500
- var t, o;
1501
- return (t = (o = e.columnDef.enableMultiSort) != null ? o : n.options.enableMultiSort) != null ? t : !!e.accessorFn;
1502
- }, e.getIsSorted = () => {
1503
- var t;
1504
- const o = (t = n.getState().sorting) == null ? void 0 : t.find((r) => r.id === e.id);
1505
- return o ? o.desc ? "desc" : "asc" : !1;
1506
- }, e.getSortIndex = () => {
1507
- var t, o;
1508
- return (t = (o = n.getState().sorting) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
1509
- }, e.clearSorting = () => {
1510
- n.setSorting((t) => t != null && t.length ? t.filter((o) => o.id !== e.id) : []);
1511
- }, e.getToggleSortingHandler = () => {
1512
- const t = e.getCanSort();
1513
- return (o) => {
1514
- t && (o.persist == null || o.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? n.options.isMultiSortEvent == null ? void 0 : n.options.isMultiSortEvent(o) : !1));
1515
- };
1516
- };
1517
- },
1518
- createTable: (e) => {
1519
- e.setSorting = (n) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(n), e.resetSorting = (n) => {
1520
- var t, o;
1521
- e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
1522
- }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1523
- }
1524
- }, wt = {
1525
- getInitialState: (e) => ({
1526
- columnVisibility: {},
1527
- ...e
1528
- }),
1529
- getDefaultOptions: (e) => ({
1530
- onColumnVisibilityChange: $("columnVisibility", e)
1531
- }),
1532
- createColumn: (e, n) => {
1533
- e.toggleVisibility = (t) => {
1534
- e.getCanHide() && n.setColumnVisibility((o) => ({
1535
- ...o,
1536
- [e.id]: t ?? !e.getIsVisible()
1537
- }));
1538
- }, e.getIsVisible = () => {
1539
- var t, o;
1540
- return (t = (o = n.getState().columnVisibility) == null ? void 0 : o[e.id]) != null ? t : !0;
1541
- }, e.getCanHide = () => {
1542
- var t, o;
1543
- return ((t = e.columnDef.enableHiding) != null ? t : !0) && ((o = n.options.enableHiding) != null ? o : !0);
1544
- }, e.getToggleVisibilityHandler = () => (t) => {
1545
- e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
1546
- };
1547
- },
1548
- createRow: (e, n) => {
1549
- e._getAllVisibleCells = m(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), {
1550
- key: process.env.NODE_ENV === "production" && "row._getAllVisibleCells",
1551
- debug: () => {
1552
- var t;
1553
- return (t = n.options.debugAll) != null ? t : n.options.debugRows;
1554
- }
1555
- }), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], {
1556
- key: process.env.NODE_ENV === "development" && "row.getVisibleCells",
1557
- debug: () => {
1558
- var t;
1559
- return (t = n.options.debugAll) != null ? t : n.options.debugRows;
1560
- }
1561
- });
1562
- },
1563
- createTable: (e) => {
1564
- const n = (t, o) => m(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), {
1565
- key: t,
1566
- debug: () => {
1567
- var r;
1568
- return (r = e.options.debugAll) != null ? r : e.options.debugColumns;
1569
- }
1570
- });
1571
- e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
1572
- var o;
1573
- e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
1574
- }, e.toggleAllColumnsVisible = (t) => {
1575
- var o;
1576
- t = (o = t) != null ? o : !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((r, i) => ({
1577
- ...r,
1578
- [i.id]: t || !(i.getCanHide != null && i.getCanHide())
1579
- }), {}));
1580
- }, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((t) => !(t.getIsVisible != null && t.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((t) => t.getIsVisible == null ? void 0 : t.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
1581
- var o;
1582
- e.toggleAllColumnsVisible((o = t.target) == null ? void 0 : o.checked);
1583
- };
1584
- }
1585
- }, Se = [Xe, wt, gt, dt, Qe, _t, ut, Je, at, ct, Ke];
1586
- function Rt(e) {
1587
- var n;
1588
- (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1589
- let t = {
1590
- _features: Se
1591
- };
1592
- const o = t._features.reduce((g, d) => Object.assign(g, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(t)), {}), r = (g) => t.options.mergeOptions ? t.options.mergeOptions(o, g) : {
1593
- ...o,
1594
- ...g
1595
- };
1596
- let l = {
1597
- ...{},
1598
- ...(n = e.initialState) != null ? n : {}
1599
- };
1600
- t._features.forEach((g) => {
1601
- var d;
1602
- l = (d = g.getInitialState == null ? void 0 : g.getInitialState(l)) != null ? d : l;
1603
- });
1604
- const u = [];
1605
- let s = !1;
1606
- const a = {
1607
- _features: Se,
1608
- options: {
1609
- ...o,
1610
- ...e
1611
- },
1612
- initialState: l,
1613
- _queue: (g) => {
1614
- u.push(g), s || (s = !0, Promise.resolve().then(() => {
1615
- for (; u.length; )
1616
- u.shift()();
1617
- s = !1;
1618
- }).catch((d) => setTimeout(() => {
1619
- throw d;
1620
- })));
1621
- },
1622
- reset: () => {
1623
- t.setState(t.initialState);
1624
- },
1625
- setOptions: (g) => {
1626
- const d = y(g, t.options);
1627
- t.options = r(d);
1628
- },
1629
- getState: () => t.options.state,
1630
- setState: (g) => {
1631
- t.options.onStateChange == null || t.options.onStateChange(g);
1632
- },
1633
- _getRowId: (g, d, p) => {
1634
- var c;
1635
- return (c = t.options.getRowId == null ? void 0 : t.options.getRowId(g, d, p)) != null ? c : `${p ? [p.id, d].join(".") : d}`;
1636
- },
1637
- getCoreRowModel: () => (t._getCoreRowModel || (t._getCoreRowModel = t.options.getCoreRowModel(t)), t._getCoreRowModel()),
1638
- // The final calls start at the bottom of the model,
1639
- // expanded rows, which then work their way up
1640
- getRowModel: () => t.getPaginationRowModel(),
1641
- //in next version, we should just pass in the row model as the optional 2nd arg
1642
- getRow: (g, d) => {
1643
- let p = (d ? t.getPrePaginationRowModel() : t.getRowModel()).rowsById[g];
1644
- if (!p && (p = t.getCoreRowModel().rowsById[g], !p))
1645
- throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
1646
- return p;
1647
- },
1648
- _getDefaultColumnDef: m(() => [t.options.defaultColumn], (g) => {
1649
- var d;
1650
- return g = (d = g) != null ? d : {}, {
1651
- header: (p) => {
1652
- const c = p.header.column.columnDef;
1653
- return c.accessorKey ? c.accessorKey : c.accessorFn ? c.id : null;
1654
- },
1655
- // footer: props => props.header.column.id,
1656
- cell: (p) => {
1657
- var c, f;
1658
- return (c = (f = p.renderValue()) == null || f.toString == null ? void 0 : f.toString()) != null ? c : null;
1659
- },
1660
- ...t._features.reduce((p, c) => Object.assign(p, c.getDefaultColumnDef == null ? void 0 : c.getDefaultColumnDef()), {}),
1661
- ...g
1662
- };
1663
- }, {
1664
- debug: () => {
1665
- var g;
1666
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1667
- },
1668
- key: process.env.NODE_ENV === "development" && "getDefaultColumnDef"
1669
- }),
1670
- _getColumnDefs: () => t.options.columns,
1671
- getAllColumns: m(() => [t._getColumnDefs()], (g) => {
1672
- const d = function(p, c, f) {
1673
- return f === void 0 && (f = 0), p.map((S) => {
1674
- const C = je(t, S, f, c), v = S;
1675
- return C.columns = v.columns ? d(v.columns, C, f + 1) : [], C;
1676
- });
1677
- };
1678
- return d(g);
1679
- }, {
1680
- key: process.env.NODE_ENV === "development" && "getAllColumns",
1681
- debug: () => {
1682
- var g;
1683
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1684
- }
1685
- }),
1686
- getAllFlatColumns: m(() => [t.getAllColumns()], (g) => g.flatMap((d) => d.getFlatColumns()), {
1687
- key: process.env.NODE_ENV === "development" && "getAllFlatColumns",
1688
- debug: () => {
1689
- var g;
1690
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1691
- }
1692
- }),
1693
- _getAllFlatColumnsById: m(() => [t.getAllFlatColumns()], (g) => g.reduce((d, p) => (d[p.id] = p, d), {}), {
1694
- key: process.env.NODE_ENV === "development" && "getAllFlatColumnsById",
1695
- debug: () => {
1696
- var g;
1697
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1698
- }
1699
- }),
1700
- getAllLeafColumns: m(() => [t.getAllColumns(), t._getOrderColumnsFn()], (g, d) => {
1701
- let p = g.flatMap((c) => c.getLeafColumns());
1702
- return d(p);
1703
- }, {
1704
- key: process.env.NODE_ENV === "development" && "getAllLeafColumns",
1705
- debug: () => {
1706
- var g;
1707
- return (g = t.options.debugAll) != null ? g : t.options.debugColumns;
1708
- }
1709
- }),
1710
- getColumn: (g) => {
1711
- const d = t._getAllFlatColumnsById()[g];
1712
- return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${g}' does not exist.`), d;
1713
- }
1714
- };
1715
- Object.assign(t, a);
1716
- for (let g = 0; g < t._features.length; g++) {
1717
- const d = t._features[g];
1718
- d == null || d.createTable == null || d.createTable(t);
1719
- }
1720
- return t;
1721
- }
1722
- function ht(e, n, t, o) {
1723
- const r = () => {
1724
- var l;
1725
- return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
1726
- }, i = {
1727
- id: `${n.id}_${t.id}`,
1728
- row: n,
1729
- column: t,
1730
- getValue: () => n.getValue(o),
1731
- renderValue: r,
1732
- getContext: m(() => [e, t, n, i], (l, u, s, a) => ({
1733
- table: l,
1734
- column: u,
1735
- row: s,
1736
- cell: a,
1737
- getValue: a.getValue,
1738
- renderValue: a.renderValue
1739
- }), {
1740
- key: process.env.NODE_ENV === "development" && "cell.getContext",
1741
- debug: () => e.options.debugAll
1742
- })
1743
- };
1744
- return e._features.forEach((l) => {
1745
- l.createCell == null || l.createCell(i, t, n, e);
1746
- }, {}), i;
1747
- }
1748
- const $t = (e, n, t, o, r, i, l) => {
1749
- let u = {
1750
- id: n,
1751
- index: o,
1752
- original: t,
1753
- depth: r,
1754
- parentId: l,
1755
- _valuesCache: {},
1756
- _uniqueValuesCache: {},
1757
- getValue: (s) => {
1758
- if (u._valuesCache.hasOwnProperty(s))
1759
- return u._valuesCache[s];
1760
- const a = e.getColumn(s);
1761
- if (a != null && a.accessorFn)
1762
- return u._valuesCache[s] = a.accessorFn(u.original, o), u._valuesCache[s];
1763
- },
1764
- getUniqueValues: (s) => {
1765
- if (u._uniqueValuesCache.hasOwnProperty(s))
1766
- return u._uniqueValuesCache[s];
1767
- const a = e.getColumn(s);
1768
- if (a != null && a.accessorFn)
1769
- return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = a.columnDef.getUniqueValues(u.original, o), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
1770
- },
1771
- renderValue: (s) => {
1772
- var a;
1773
- return (a = u.getValue(s)) != null ? a : e.options.renderFallbackValue;
1774
- },
1775
- subRows: i ?? [],
1776
- getLeafRows: () => Ue(u.subRows, (s) => s.subRows),
1777
- getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
1778
- getParentRows: () => {
1779
- let s = [], a = u;
1780
- for (; ; ) {
1781
- const g = a.getParentRow();
1782
- if (!g)
1783
- break;
1784
- s.push(g), a = g;
1785
- }
1786
- return s.reverse();
1787
- },
1788
- getAllCells: m(() => [e.getAllLeafColumns()], (s) => s.map((a) => ht(e, u, a, a.id)), {
1789
- key: process.env.NODE_ENV === "development" && "row.getAllCells",
1790
- debug: () => {
1791
- var s;
1792
- return (s = e.options.debugAll) != null ? s : e.options.debugRows;
1793
- }
1794
- }),
1795
- _getAllCellsByColumnId: m(() => [u.getAllCells()], (s) => s.reduce((a, g) => (a[g.column.id] = g, a), {}), {
1796
- key: process.env.NODE_ENV === "production" && "row.getAllCellsByColumnId",
1797
- debug: () => {
1798
- var s;
1799
- return (s = e.options.debugAll) != null ? s : e.options.debugRows;
1800
- }
1801
- })
1802
- };
1803
- for (let s = 0; s < e._features.length; s++) {
1804
- const a = e._features[s];
1805
- a == null || a.createRow == null || a.createRow(u, e);
1806
- }
1807
- return u;
1808
- };
1809
- function Ft() {
1810
- return (e) => m(() => [e.options.data], (n) => {
1811
- const t = {
1812
- rows: [],
1813
- flatRows: [],
1814
- rowsById: {}
1815
- }, o = function(r, i, l) {
1816
- i === void 0 && (i = 0);
1817
- const u = [];
1818
- for (let a = 0; a < r.length; a++) {
1819
- const g = $t(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l?.id);
1820
- if (t.flatRows.push(g), t.rowsById[g.id] = g, u.push(g), e.options.getSubRows) {
1821
- var s;
1822
- g.originalSubRows = e.options.getSubRows(r[a], a), (s = g.originalSubRows) != null && s.length && (g.subRows = o(g.originalSubRows, i + 1, g));
1823
- }
1824
- }
1825
- return u;
1826
- };
1827
- return t.rows = o(n), t;
1828
- }, {
1829
- key: process.env.NODE_ENV === "development" && "getRowModel",
1830
- debug: () => {
1831
- var n;
1832
- return (n = e.options.debugAll) != null ? n : e.options.debugTable;
1833
- },
1834
- onChange: () => {
1835
- e._autoResetPageIndex();
1836
- }
1837
- });
1838
- }
1839
- function Vt() {
1840
- return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (n, t) => {
1841
- if (!t.rows.length || !(n != null && n.length))
1842
- return t;
1843
- const o = e.getState().sorting, r = [], i = o.filter((s) => {
1844
- var a;
1845
- return (a = e.getColumn(s.id)) == null ? void 0 : a.getCanSort();
1846
- }), l = {};
1847
- i.forEach((s) => {
1848
- const a = e.getColumn(s.id);
1849
- a && (l[s.id] = {
1850
- sortUndefined: a.columnDef.sortUndefined,
1851
- invertSorting: a.columnDef.invertSorting,
1852
- sortingFn: a.getSortingFn()
1853
- });
1854
- });
1855
- const u = (s) => {
1856
- const a = s.map((g) => ({
1857
- ...g
1858
- }));
1859
- return a.sort((g, d) => {
1860
- for (let c = 0; c < i.length; c += 1) {
1861
- var p;
1862
- const f = i[c], S = l[f.id], C = (p = f?.desc) != null ? p : !1;
1863
- let v = 0;
1864
- if (S.sortUndefined) {
1865
- const R = g.getValue(f.id), w = d.getValue(f.id), F = R === void 0, P = w === void 0;
1866
- (F || P) && (v = F && P ? 0 : F ? S.sortUndefined : -S.sortUndefined);
1867
- }
1868
- if (v === 0 && (v = S.sortingFn(g, d, f.id)), v !== 0)
1869
- return C && (v *= -1), S.invertSorting && (v *= -1), v;
1870
- }
1871
- return g.index - d.index;
1872
- }), a.forEach((g) => {
1873
- var d;
1874
- r.push(g), (d = g.subRows) != null && d.length && (g.subRows = u(g.subRows));
1875
- }), a;
1876
- };
1877
- return {
1878
- rows: u(t.rows),
1879
- flatRows: r,
1880
- rowsById: t.rowsById
1881
- };
1882
- }, {
1883
- key: process.env.NODE_ENV === "development" && "getSortedRowModel",
1884
- debug: () => {
1885
- var n;
1886
- return (n = e.options.debugAll) != null ? n : e.options.debugTable;
1887
- },
1888
- onChange: () => {
1889
- e._autoResetPageIndex();
1890
- }
1891
- });
1892
- }
1893
- function Et(e) {
1894
- const n = [], t = (o) => {
1895
- var r;
1896
- n.push(o), (r = o.subRows) != null && r.length && o.getIsExpanded() && o.subRows.forEach(t);
1897
- };
1898
- return e.rows.forEach(t), {
1899
- rows: n,
1900
- flatRows: e.flatRows,
1901
- rowsById: e.rowsById
1902
- };
1903
- }
1904
- function Pt(e) {
1905
- return (n) => m(() => [n.getState().pagination, n.getPrePaginationRowModel(), n.options.paginateExpandedRows ? void 0 : n.getState().expanded], (t, o) => {
1906
- if (!o.rows.length)
1907
- return o;
1908
- const {
1909
- pageSize: r,
1910
- pageIndex: i
1911
- } = t;
1912
- let {
1913
- rows: l,
1914
- flatRows: u,
1915
- rowsById: s
1916
- } = o;
1917
- const a = r * i, g = a + r;
1918
- l = l.slice(a, g);
1919
- let d;
1920
- n.options.paginateExpandedRows ? d = {
1921
- rows: l,
1922
- flatRows: u,
1923
- rowsById: s
1924
- } : d = Et({
1925
- rows: l,
1926
- flatRows: u,
1927
- rowsById: s
1928
- }), d.flatRows = [];
1929
- const p = (c) => {
1930
- d.flatRows.push(c), c.subRows.length && c.subRows.forEach(p);
1931
- };
1932
- return d.rows.forEach(p), d;
1933
- }, {
1934
- key: process.env.NODE_ENV === "development" && "getPaginationRowModel",
1935
- debug: () => {
1936
- var t;
1937
- return (t = n.options.debugAll) != null ? t : n.options.debugTable;
1938
- }
1939
- });
1940
- }
1941
- /**
1942
- * vue-table
1943
- *
1944
- * Copyright (c) TanStack
1945
- *
1946
- * This source code is licensed under the MIT license found in the
1947
- * LICENSE.md file in the root directory of this source tree.
1948
- *
1949
- * @license MIT
1950
- */
1951
- function k() {
1952
- return !0;
1953
- }
1954
- const Mt = Symbol("merge-proxy"), At = {
1955
- get(e, n, t) {
1956
- return n === Mt ? t : e.get(n);
1957
- },
1958
- has(e, n) {
1959
- return e.has(n);
1960
- },
1961
- set: k,
1962
- deleteProperty: k,
1963
- getOwnPropertyDescriptor(e, n) {
1964
- return {
1965
- configurable: !0,
1966
- enumerable: !0,
1967
- get() {
1968
- return e.get(n);
1969
- },
1970
- set: k,
1971
- deleteProperty: k
1972
- };
1973
- },
1974
- ownKeys(e) {
1975
- return e.keys();
1976
- }
1977
- };
1978
- function te(e) {
1979
- return "value" in e ? e.value : e;
1980
- }
1981
- function b() {
1982
- for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
1983
- n[t] = arguments[t];
1984
- return new Proxy({
1985
- get(o) {
1986
- for (let r = n.length - 1; r >= 0; r--) {
1987
- const i = te(n[r])[o];
1988
- if (i !== void 0)
1989
- return i;
1990
- }
1991
- },
1992
- has(o) {
1993
- for (let r = n.length - 1; r >= 0; r--)
1994
- if (o in te(n[r]))
1995
- return !0;
1996
- return !1;
1997
- },
1998
- keys() {
1999
- const o = [];
2000
- for (let r = 0; r < n.length; r++)
2001
- o.push(...Object.keys(te(n[r])));
2002
- return [...Array.from(new Set(o))];
2003
- }
2004
- }, At);
2005
- }
2006
- const ve = Ce({
2007
- props: ["render", "props"],
2008
- setup: (e) => () => typeof e.render == "function" || typeof e.render == "object" ? ye(e.render, e.props) : e.render
2009
- });
2010
- function yt(e) {
2011
- const n = b({
2012
- state: {},
2013
- // Dummy state
2014
- onStateChange: () => {
2015
- },
2016
- // noop
2017
- renderFallbackValue: null,
2018
- mergeOptions(r, i) {
2019
- return b(r, i);
2020
- }
2021
- }, e), t = Rt(n), o = xe(t.initialState);
2022
- return Ie(() => {
2023
- t.setOptions((r) => {
2024
- var i;
2025
- const l = new Proxy({}, {
2026
- get: (u, s) => o.value[s]
2027
- });
2028
- return b(r, e, {
2029
- // merge the initialState and `options.state`
2030
- // create a new proxy on each `setOptions` call
2031
- // and get the value from state on each property access
2032
- state: b(l, (i = e.state) != null ? i : {}),
2033
- // Similarly, we'll maintain both our internal state and any user-provided
2034
- // state.
2035
- onStateChange: (u) => {
2036
- u instanceof Function ? o.value = u(o.value) : o.value = u, e.onStateChange == null || e.onStateChange(u);
2037
- }
2038
- });
2039
- });
2040
- }), t;
2041
- }
2042
- const Tt = /* @__PURE__ */ Ce({
2043
- __name: "BuiDataTable",
2044
- props: /* @__PURE__ */ De({
2045
- columns: {},
2046
- data: {},
2047
- pageSize: { default: 10 },
2048
- showPagination: { type: Boolean, default: !0 }
2049
- }, {
2050
- sorting: {},
2051
- sortingModifiers: {},
2052
- pagination: {},
2053
- paginationModifiers: {},
2054
- selection: {},
2055
- selectionModifiers: {}
2056
- }),
2057
- emits: ["update:sorting", "update:pagination", "update:selection"],
2058
- setup(e) {
2059
- const n = e, t = q(e, "sorting"), o = q(e, "pagination"), r = q(e, "selection"), i = yt({
2060
- initialState: { pagination: { pageSize: n.pageSize } },
2061
- get data() {
2062
- return n.data;
2063
- },
2064
- get columns() {
2065
- return n.columns;
2066
- },
2067
- getCoreRowModel: Ft(),
2068
- getPaginationRowModel: Pt(),
2069
- getSortedRowModel: Vt(),
2070
- onSortingChange: (l) => {
2071
- X(l, t);
2072
- },
2073
- onPaginationChange: (l) => {
2074
- X(l, o);
2075
- },
2076
- onRowSelectionChange: (l) => {
2077
- X(l, r);
2078
- },
2079
- manualPagination: !0,
2080
- manualSorting: !0,
2081
- state: {
2082
- get sorting() {
2083
- return t.value;
2084
- },
2085
- get pagination() {
2086
- return o.value;
2087
- },
2088
- get rowSelection() {
2089
- return r.value;
2090
- }
2091
- }
2092
- });
2093
- return (l, u) => (h(), M(_(Oe), null, {
2094
- default: V(() => [
2095
- l.$slots.caption ? (h(), M(_(ke), { key: 0 }, {
2096
- default: V(() => [
2097
- He(l.$slots, "caption", { table: _(i) })
2098
- ]),
2099
- _: 3
2100
- })) : U("", !0),
2101
- I(_(ze), null, {
2102
- default: V(() => [
2103
- (h(!0), H(N, null, O(_(i).getHeaderGroups(), (s) => (h(), M(_(j), {
2104
- key: s.id
2105
- }, {
2106
- default: V(() => [
2107
- (h(!0), H(N, null, O(s.headers, (a) => (h(), M(_(Le), {
2108
- key: a.id
2109
- }, {
2110
- default: V(() => [
2111
- a.isPlaceholder ? U("", !0) : (h(), M(_(ve), {
2112
- key: 0,
2113
- render: a.column.columnDef.header,
2114
- props: a.getContext()
2115
- }, null, 8, ["render", "props"]))
2116
- ]),
2117
- _: 2
2118
- }, 1024))), 128))
2119
- ]),
2120
- _: 2
2121
- }, 1024))), 128))
2122
- ]),
2123
- _: 1
2124
- }),
2125
- I(_(Ge), null, {
2126
- default: V(() => [
2127
- _(i).getRowModel().rows?.length ? (h(!0), H(N, { key: 0 }, O(_(i).getRowModel().rows, (s) => (h(), M(_(j), {
2128
- key: s.id,
2129
- "data-state": s.getIsSelected() ? "selected" : void 0
2130
- }, {
2131
- default: V(() => [
2132
- (h(!0), H(N, null, O(s.getVisibleCells(), (a) => (h(), M(_(pe), {
2133
- key: a.id
2134
- }, {
2135
- default: V(() => [
2136
- I(_(ve), {
2137
- render: a.column.columnDef.cell,
2138
- props: a.getContext()
2139
- }, null, 8, ["render", "props"])
2140
- ]),
2141
- _: 2
2142
- }, 1024))), 128))
2143
- ]),
2144
- _: 2
2145
- }, 1032, ["data-state"]))), 128)) : (h(), M(_(be), {
2146
- key: 1,
2147
- colspan: l.columns.length
2148
- }, {
2149
- default: V(() => [
2150
- Ne("No data")
2151
- ]),
2152
- _: 1
2153
- }, 8, ["colspan"]))
2154
- ]),
2155
- _: 1
2156
- }),
2157
- l.showPagination && _(i).getPageCount() ? (h(), M(_(Be), { key: 1 }, {
2158
- default: V(() => [
2159
- I(_(j), null, {
2160
- default: V(() => [
2161
- I(_(pe), {
2162
- colspan: l.columns.length
2163
- }, {
2164
- default: V(() => [
2165
- I(_(Te), {
2166
- class: "float-right",
2167
- total: _(i).getFilteredRowModel().rows.length,
2168
- pageIndex: _(i).getState().pagination.pageIndex,
2169
- pageSize: _(i).getState().pagination.pageSize,
2170
- setPageIndex: (s) => _(i).setPageIndex(s),
2171
- setPageSize: (s) => {
2172
- _(i).setPageSize(s), _(i).setPageIndex(0);
2173
- }
2174
- }, null, 8, ["total", "pageIndex", "pageSize", "setPageIndex", "setPageSize"])
2175
- ]),
2176
- _: 1
2177
- }, 8, ["colspan"])
2178
- ]),
2179
- _: 1
2180
- })
2181
- ]),
2182
- _: 1
2183
- })) : U("", !0)
2184
- ]),
2185
- _: 3
2186
- }));
2187
- }
2188
- });
2189
- export {
2190
- Tt as _
2191
- };