@tulip-systems/core 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/auth/client.d.mts +3 -3
  2. package/dist/auth/client.mjs +2 -2
  3. package/dist/components/client.d.mts +2 -2
  4. package/dist/components/common/icons.d.mts +2 -2
  5. package/dist/components/common/icons.d.mts.map +1 -1
  6. package/dist/components/common/status.d.mts +3 -3
  7. package/dist/components/common/status.d.mts.map +1 -1
  8. package/dist/components/editor/components/content.client.d.mts +2 -2
  9. package/dist/components/editor/components/content.client.d.mts.map +1 -1
  10. package/dist/components/editor/components/editor.client.d.mts +6 -6
  11. package/dist/components/editor/components/editor.client.d.mts.map +1 -1
  12. package/dist/components/editor/components/menu.client.d.mts +3 -3
  13. package/dist/components/editor/components/menu.client.d.mts.map +1 -1
  14. package/dist/components/editor/extensions/file-handler/utils.mjs +1 -1
  15. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
  16. package/dist/components/editor/extensions/image/extension.mjs +0 -1
  17. package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
  18. package/dist/components/editor/extensions/skeleton/extension.mjs +1 -1
  19. package/dist/components/editor/lib/constants.d.mts +29 -29
  20. package/dist/components/editor/lib/constants.mjs +3 -3
  21. package/dist/components/editor/lib/extensions.d.mts +3 -3
  22. package/dist/components/editor/lib/helpers.d.mts.map +1 -1
  23. package/dist/components/editor/lib/helpers.mjs +38 -3
  24. package/dist/components/editor/lib/helpers.mjs.map +1 -1
  25. package/dist/components/header/back-button.client.d.mts +2 -2
  26. package/dist/components/header/back-button.client.d.mts.map +1 -1
  27. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  28. package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
  29. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  30. package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
  31. package/dist/components/header/header.client.d.mts +2 -2
  32. package/dist/components/header/header.client.d.mts.map +1 -1
  33. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  34. package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
  35. package/dist/components/header/top-bar.client.d.mts +4 -4
  36. package/dist/components/header/top-bar.client.d.mts.map +1 -1
  37. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  38. package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
  39. package/dist/components/layouts/admin-layout.d.mts +2 -2
  40. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  41. package/dist/components/layouts/admin-loading.d.mts +2 -2
  42. package/dist/components/layouts/admin-loading.d.mts.map +1 -1
  43. package/dist/components/layouts/empty-page.d.mts +4 -4
  44. package/dist/components/layouts/empty-page.d.mts.map +1 -1
  45. package/dist/components/layouts/error-page.d.mts +23 -0
  46. package/dist/components/layouts/error-page.d.mts.map +1 -0
  47. package/dist/components/layouts/error-page.mjs +58 -0
  48. package/dist/components/layouts/error-page.mjs.map +1 -0
  49. package/dist/components/layouts/list-layout.d.mts +2 -2
  50. package/dist/components/layouts/list-layout.d.mts.map +1 -1
  51. package/dist/components/layouts/not-allowed-page.d.mts +22 -0
  52. package/dist/components/layouts/not-allowed-page.d.mts.map +1 -0
  53. package/dist/components/layouts/not-allowed-page.mjs +25 -0
  54. package/dist/components/layouts/not-allowed-page.mjs.map +1 -0
  55. package/dist/components/layouts/not-found-page.d.mts +3 -3
  56. package/dist/components/layouts/not-found-page.d.mts.map +1 -1
  57. package/dist/components/layouts/providers.client.d.mts +2 -2
  58. package/dist/components/layouts/providers.client.d.mts.map +1 -1
  59. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  60. package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
  61. package/dist/components/layouts/root-loading.d.mts +2 -2
  62. package/dist/components/layouts/root-loading.d.mts.map +1 -1
  63. package/dist/components/layouts/tab-layout.d.mts +2 -2
  64. package/dist/components/layouts/tab-layout.d.mts.map +1 -1
  65. package/dist/components/lists/data-list.d.mts +5 -5
  66. package/dist/components/lists/data-list.d.mts.map +1 -1
  67. package/dist/components/lists/data-stack.d.mts +8 -8
  68. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +21 -11
  69. package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
  70. package/dist/components/navigation/admin-sidebar-paths.client.mjs +7 -5
  71. package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
  72. package/dist/components/ui/accordion.d.mts +5 -5
  73. package/dist/components/ui/alert-dialog.d.mts +12 -12
  74. package/dist/components/ui/alert.d.mts +6 -6
  75. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  76. package/dist/components/ui/avatar.client.d.mts +4 -4
  77. package/dist/components/ui/avatar.client.d.mts.map +1 -1
  78. package/dist/components/ui/badge.d.mts +4 -4
  79. package/dist/components/ui/breadcrumb.d.mts +8 -8
  80. package/dist/components/ui/button.d.mts +5 -5
  81. package/dist/components/ui/calendar.d.mts +3 -3
  82. package/dist/components/ui/card.d.mts +7 -7
  83. package/dist/components/ui/carousel.d.mts +6 -6
  84. package/dist/components/ui/chart.client.d.mts +5 -5
  85. package/dist/components/ui/chart.client.d.mts.map +1 -1
  86. package/dist/components/ui/checkbox.d.mts +2 -2
  87. package/dist/components/ui/collapsible.client.d.mts +4 -4
  88. package/dist/components/ui/collapsible.client.d.mts.map +1 -1
  89. package/dist/components/ui/color-picker.client.d.mts +2 -2
  90. package/dist/components/ui/color-picker.client.d.mts.map +1 -1
  91. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  92. package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
  93. package/dist/components/ui/combobox.client.d.mts +2 -2
  94. package/dist/components/ui/combobox.client.d.mts.map +1 -1
  95. package/dist/components/ui/command.d.mts +10 -10
  96. package/dist/components/ui/context-menu.d.mts +16 -16
  97. package/dist/components/ui/date-picker.client.d.mts +2 -2
  98. package/dist/components/ui/date-picker.client.d.mts.map +1 -1
  99. package/dist/components/ui/dialog.client.d.mts +11 -11
  100. package/dist/components/ui/dialog.client.d.mts.map +1 -1
  101. package/dist/components/ui/drawer.client.d.mts +11 -11
  102. package/dist/components/ui/drawer.client.d.mts.map +1 -1
  103. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  104. package/dist/components/ui/form.client.d.mts +7 -7
  105. package/dist/components/ui/form.client.d.mts.map +1 -1
  106. package/dist/components/ui/hover-card.client.d.mts +4 -4
  107. package/dist/components/ui/hover-card.client.d.mts.map +1 -1
  108. package/dist/components/ui/input-recipient.d.mts +2 -2
  109. package/dist/components/ui/input.d.mts +2 -2
  110. package/dist/components/ui/label.d.mts +2 -2
  111. package/dist/components/ui/navigation-menu.d.mts +11 -11
  112. package/dist/components/ui/pagination.d.mts +8 -8
  113. package/dist/components/ui/popover.d.mts +5 -5
  114. package/dist/components/ui/popover.d.mts.map +1 -1
  115. package/dist/components/ui/progress.client.d.mts +2 -2
  116. package/dist/components/ui/progress.client.d.mts.map +1 -1
  117. package/dist/components/ui/radio-group.d.mts +3 -3
  118. package/dist/components/ui/resizable.client.d.mts +4 -4
  119. package/dist/components/ui/resizable.client.d.mts.map +1 -1
  120. package/dist/components/ui/scroll-area.d.mts +3 -3
  121. package/dist/components/ui/select.client.d.mts +11 -11
  122. package/dist/components/ui/select.client.d.mts.map +1 -1
  123. package/dist/components/ui/separator.d.mts +2 -2
  124. package/dist/components/ui/sheet.client.d.mts +9 -9
  125. package/dist/components/ui/sheet.client.d.mts.map +1 -1
  126. package/dist/components/ui/sidebar.client.d.mts +26 -26
  127. package/dist/components/ui/sidebar.client.d.mts.map +1 -1
  128. package/dist/components/ui/skeleton.d.mts +2 -2
  129. package/dist/components/ui/slider.d.mts +2 -2
  130. package/dist/components/ui/sonner.client.d.mts +2 -2
  131. package/dist/components/ui/switch.d.mts +2 -2
  132. package/dist/components/ui/tabs.d.mts +5 -5
  133. package/dist/components/ui/textarea.d.mts +2 -2
  134. package/dist/components/ui/time-input.client.d.mts +2 -2
  135. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  136. package/dist/components/ui/toggle.d.mts +2 -2
  137. package/dist/components/ui/toggle.d.mts.map +1 -1
  138. package/dist/components/ui/tooltip.client.d.mts +5 -5
  139. package/dist/components/ui/tooltip.client.d.mts.map +1 -1
  140. package/dist/components/ui/tooltip.client.mjs +1 -1
  141. package/dist/components/ui/tooltip.client.mjs.map +1 -1
  142. package/dist/components.d.mts +3 -1
  143. package/dist/components.mjs +5 -3
  144. package/dist/lib/hooks/use-indicator.d.mts +2 -2
  145. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  146. package/dist/modules/auth/components/allowed.client.d.mts +21 -7
  147. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  148. package/dist/modules/auth/components/allowed.client.mjs +8 -2
  149. package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
  150. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  151. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  152. package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
  153. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  154. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  155. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  156. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  157. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  158. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  159. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  160. package/dist/modules/auth/db/schema.d.mts +73 -73
  161. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  162. package/dist/modules/auth/handler/client.client.d.mts +143 -143
  163. package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
  164. package/dist/modules/auth/handler/init.d.mts +131 -131
  165. package/dist/modules/auth/handler/init.d.mts.map +1 -1
  166. package/dist/modules/auth/hooks/use-permission.d.mts +48 -4
  167. package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
  168. package/dist/modules/auth/hooks/use-permission.mjs +51 -4
  169. package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
  170. package/dist/modules/auth/hooks/use-session.d.mts +4 -4
  171. package/dist/modules/auth/lib/helpers.server.mjs +1 -1
  172. package/dist/modules/auth/lib/validators.d.mts +2 -2
  173. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  174. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  175. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  176. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  177. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  178. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  179. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  180. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  181. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  182. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  183. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  184. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  185. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  186. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  187. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  188. package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
  189. package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
  190. package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
  191. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  192. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  193. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  194. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  195. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  196. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  197. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  198. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  199. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  200. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  201. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  202. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  203. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  204. package/dist/modules/config/db/helpers.d.mts +5 -5
  205. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  206. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  207. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  208. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  209. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  210. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  211. package/dist/modules/data-tables/components/header.d.mts +4 -4
  212. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  213. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  214. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  215. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  216. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  217. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  218. package/dist/modules/data-tables/components/table.d.mts +7 -7
  219. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  220. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  221. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  222. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  223. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  224. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  225. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  226. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  227. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  228. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  229. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  230. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  231. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  232. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  233. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
  234. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  235. package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
  236. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  237. package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
  238. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  239. package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
  240. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  241. package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
  242. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  243. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
  244. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  245. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
  246. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  247. package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
  248. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  249. package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
  250. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  251. package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
  252. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  253. package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
  254. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  255. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  256. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  257. package/dist/modules/inline-edit/lib/variants.d.mts +1 -1
  258. package/dist/modules/router/handler/init.server.d.mts +6 -6
  259. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  260. package/dist/modules/router/handler/init.server.mjs +1 -1
  261. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  262. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  263. package/dist/modules/storage/components/dropzone.client.d.mts +4 -4
  264. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  265. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  266. package/dist/modules/storage/components/image-grid.client.mjs +1 -1
  267. package/dist/modules/storage/components/upload-zone.client.d.mts +2 -2
  268. package/dist/modules/storage/lib/router.server.d.mts +2337 -2337
  269. package/dist/modules/storage/lib/router.server.mjs +1 -1
  270. package/dist/modules/storage/lib/schema.mjs +1 -1
  271. package/dist/modules/storage/lib/service.server.d.mts +15 -15
  272. package/dist/modules/storage/lib/service.server.mjs +2 -2
  273. package/dist/modules/storage/lib/validators.d.mts +14 -14
  274. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  275. package/dist/router/server.mjs +1 -1
  276. package/package.json +1 -1
  277. package/src/components/editor/extensions/file-handler/utils.ts +1 -1
  278. package/src/components/editor/extensions/image/extension.ts +0 -2
  279. package/src/components/editor/lib/helpers.ts +39 -3
  280. package/src/components/entry.ts +2 -0
  281. package/src/components/layouts/error-page.tsx +61 -0
  282. package/src/components/layouts/not-allowed-page.tsx +1 -1
  283. package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
  284. package/src/components/ui/tooltip.client.tsx +1 -1
  285. package/src/modules/auth/components/allowed.client.tsx +35 -7
  286. package/src/modules/auth/hooks/use-permission.ts +88 -2
  287. package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
  288. package/dist/modules/auth/lib/utils.mjs +0 -21
  289. package/dist/modules/auth/lib/utils.mjs.map +0 -1
  290. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +0 -97
@@ -1 +1 @@
1
- {"version":3,"file":"form-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/form-dialog-command.client.tsx"],"sourcesContent":[],"mappings":"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"}
1
+ {"version":3,"file":"form-dialog-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/components/form-dialog-command.client.tsx"],"sourcesContent":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-command-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;KAcY;EAAA,IAAA,EACJ,KADI;EACJ,QAAA,EACI,UADJ,CACe,KADf,EACsB,KADtB,CAAA,EAAA;EACe,IAAA,CAAA,EACd,KADc;CAAO"}
1
+ {"version":3,"file":"use-command-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;KAWY;QACJ;EADI,QAAA,EAEA,UAFA,CAEW,KAFW,EAEJ,KAFI,CAAA,EAAA;EAC1B,IAAA,CAAA,EAEC,KAFD;CACe"}
@@ -1,8 +1,5 @@
1
1
  "use client";
2
2
 
3
- import { mergePermissions } from "../../auth/lib/utils.mjs";
4
- import { usePermission } from "../../auth/hooks/use-permission.mjs";
5
-
6
3
  //#region src/modules/commands/hooks/use-command-menu.client.tsx
7
4
  /**
8
5
  * Check if a command has an id field in the data
@@ -37,7 +34,6 @@ function renderBulkCommand({ data, command, meta }) {
37
34
  * useSingleCommandMenu
38
35
  */
39
36
  function useSingleCommandMenu({ data, commands, meta }) {
40
- usePermission(mergePermissions(commands.map((command) => command.permission).filter(Boolean)));
41
37
  const validCommands = commands.filter((command) => command.mode === "single" ? validateSingleCommand({
42
38
  data,
43
39
  command
@@ -62,7 +58,6 @@ function useSingleCommandMenu({ data, commands, meta }) {
62
58
  * useBulkCommandMenu
63
59
  */
64
60
  function useBulkCommandMenu({ data, commands, meta }) {
65
- usePermission(mergePermissions(commands.map((command) => command.permission).filter(Boolean)));
66
61
  /**
67
62
  * Filter out commands that don't have valid conditions
68
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"use-command-menu.client.mjs","names":["data"],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { Permission } from \"@/modules/auth/entry\";\nimport { usePermission } from \"@/modules/auth/hooks/use-permission\";\nimport { mergePermissions } from \"@/modules/auth/lib/utils\";\nimport {\n type BulkCommandDefRenderParams,\n type CommandDef,\n type SingleCommandDefRenderParams,\n} from \"../lib/definitions\";\n\n/**\n * Command menu props\n */\nexport type SingleCommandMenuProps<TData, TMeta> = {\n data: TData;\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\nexport type BulkCommandMenuProps<TData, TMeta> = {\n data: TData[];\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\n/**\n * Check if a command has an id field in the data\n */\nfunction dataHasId<TData>(data: TData) {\n return data && typeof data === \"object\" && \"id\" in data && typeof data.id === \"string\";\n}\n\n/**\n * Single command validation\n */\ntype ValidateSingleCommandParams<TData, TMeta> = {\n data: TData;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction validateSingleCommand<TData, TMeta>({\n data,\n command,\n}: ValidateSingleCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Single command rendering\n */\ntype RenderSingleCommandParams<TData, TMeta> = {\n data: TData;\n meta?: TMeta;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction renderSingleCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderSingleCommandParams<TData, TMeta>) {\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(dataHasId(data) ? { id: (data as TData & { id: string }).id } : {}),\n } as SingleCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * Bulk command validation\n */\ntype ValidateBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n};\n\nfunction validateBulkCommand<TData, TMeta>({\n data,\n command,\n}: ValidateBulkCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Bulk command rendering\n */\ntype RenderBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n meta?: TMeta;\n};\n\nfunction renderBulkCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderBulkCommandParams<TData, TMeta>) {\n const ids = data.filter(dataHasId).map((data) => (data as TData & { id: string }).id);\n\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(ids.length > 0 ? { ids } : {}),\n } as BulkCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * useSingleCommandMenu\n */\nexport function useSingleCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n usePermission(mergePermissions(permissions));\n\n // filter out commands that don't have valid conditions\n const validCommands = commands.filter((command) =>\n command.mode === \"single\"\n ? validateSingleCommand({ data, command })\n : validateBulkCommand({ data: [data], command }),\n );\n\n function renderCommand(command: (typeof validCommands)[number]) {\n return command.mode === \"single\"\n ? renderSingleCommand({ command, data, meta })\n : renderBulkCommand({ command, data: [data], meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n/**\n * useBulkCommandMenu\n */\nexport function useBulkCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: BulkCommandMenuProps<TData, TMeta>) {\n const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n usePermission(mergePermissions(permissions));\n\n /**\n * Filter out commands that don't have valid conditions\n */\n const validCommands = commands\n // filter out commands that have mode \"bulk\"\n .filter((command) => command.mode === \"bulk\")\n // filter out commands that don't have valid conditions\n .filter((command) => command.mode === \"bulk\" && validateBulkCommand({ data, command }));\n\n /**\n * Render command\n */\n function renderCommand(command: (typeof commands)[number]) {\n if (command.mode === \"single\") return null;\n\n return renderBulkCommand({ command, data, meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n// export function useBulkCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: BulkCommandMenuProps<TData, TMeta>) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that have mode \"bulk\"\n// if (mode !== \"bulk\") return null;\n\n// // filter out commands that don't have valid conditions\n// if (!validateBulkCommand({ data, command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// const renderCommand = (command: (typeof validCommands)[number]) =>\n// renderBulkCommand({ command, data, meta });\n\n// return [validCommands, renderCommand] as const;\n// }\n\n// */\n// export function useSingleCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that don't have valid conditions\n// if (mode === \"single\" && !validateSingleCommand({ data, command })) return null;\n// if (mode === \"bulk\" && !validateBulkCommand({ data: [data], command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// function renderCommand(command: (typeof validCommands)[number]) {\n// return command.mode === \"single\"\n// ? renderSingleCommand({ command, data, meta })\n// : renderBulkCommand({ command, data: [data], meta });\n// }\n\n// return [validCommands, renderCommand] as const;\n// }\n"],"mappings":";;;;;;;;;AA6BA,SAAS,UAAiB,MAAa;AACrC,QAAO,QAAQ,OAAO,SAAS,YAAY,QAAQ,QAAQ,OAAO,KAAK,OAAO;;AAWhF,SAAS,sBAAoC,EAC3C,MACA,WAC4C;CAC5C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,oBAAkC,EACzC,MACA,SACA,QAC0C;AAC1C,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,UAAU,KAAK,GAAG,EAAE,IAAK,KAAgC,IAAI,GAAG,EAAE;EACvE,CAA+C;;AAWlD,SAAS,oBAAkC,EACzC,MACA,WAC0C;CAC1C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,kBAAgC,EACvC,MACA,SACA,QACwC;CACxC,MAAM,MAAM,KAAK,OAAO,UAAU,CAAC,KAAK,WAAUA,OAAgC,GAAG;AAErF,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,IAAI,SAAS,IAAI,EAAE,KAAK,GAAG,EAAE;EAClC,CAA6C;;;;;AAMhD,SAAgB,qBAAmC,EACjD,MACA,UACA,QACyD;AAEzD,eAAc,iBADM,SAAS,KAAK,YAAY,QAAQ,WAAW,CAAC,OAAO,QAAQ,CACtC,CAAC;CAG5C,MAAM,gBAAgB,SAAS,QAAQ,YACrC,QAAQ,SAAS,WACb,sBAAsB;EAAE;EAAM;EAAS,CAAC,GACxC,oBAAoB;EAAE,MAAM,CAAC,KAAK;EAAE;EAAS,CAAC,CACnD;CAED,SAAS,cAAc,SAAyC;AAC9D,SAAO,QAAQ,SAAS,WACpB,oBAAoB;GAAE;GAAS;GAAM;GAAM,CAAC,GAC5C,kBAAkB;GAAE;GAAS,MAAM,CAAC,KAAK;GAAE;GAAM,CAAC;;AAGxD,QAAO,CAAC,eAAe,cAAc;;;;;AAMvC,SAAgB,mBAAiC,EAC/C,MACA,UACA,QACqC;AAErC,eAAc,iBADM,SAAS,KAAK,YAAY,QAAQ,WAAW,CAAC,OAAO,QAAQ,CACtC,CAAC;;;;CAK5C,MAAM,gBAAgB,SAEnB,QAAQ,YAAY,QAAQ,SAAS,OAAO,CAE5C,QAAQ,YAAY,QAAQ,SAAS,UAAU,oBAAoB;EAAE;EAAM;EAAS,CAAC,CAAC;;;;CAKzF,SAAS,cAAc,SAAoC;AACzD,MAAI,QAAQ,SAAS,SAAU,QAAO;AAEtC,SAAO,kBAAkB;GAAE;GAAS;GAAM;GAAM,CAAC;;AAGnD,QAAO,CAAC,eAAe,cAAc"}
1
+ {"version":3,"file":"use-command-menu.client.mjs","names":["data"],"sources":["../../../../src/modules/commands/hooks/use-command-menu.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type BulkCommandDefRenderParams,\n type CommandDef,\n type SingleCommandDefRenderParams,\n} from \"../lib/definitions\";\n\n/**\n * Command menu props\n */\nexport type SingleCommandMenuProps<TData, TMeta> = {\n data: TData;\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\nexport type BulkCommandMenuProps<TData, TMeta> = {\n data: TData[];\n commands: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n};\n\n/**\n * Check if a command has an id field in the data\n */\nfunction dataHasId<TData>(data: TData) {\n return data && typeof data === \"object\" && \"id\" in data && typeof data.id === \"string\";\n}\n\n/**\n * Single command validation\n */\ntype ValidateSingleCommandParams<TData, TMeta> = {\n data: TData;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction validateSingleCommand<TData, TMeta>({\n data,\n command,\n}: ValidateSingleCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Single command rendering\n */\ntype RenderSingleCommandParams<TData, TMeta> = {\n data: TData;\n meta?: TMeta;\n command: CommandDef<TData, TMeta> & { mode: \"single\" };\n};\n\nfunction renderSingleCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderSingleCommandParams<TData, TMeta>) {\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(dataHasId(data) ? { id: (data as TData & { id: string }).id } : {}),\n } as SingleCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * Bulk command validation\n */\ntype ValidateBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n};\n\nfunction validateBulkCommand<TData, TMeta>({\n data,\n command,\n}: ValidateBulkCommandParams<TData, TMeta>) {\n const valid = command.conditions?.({ data });\n return Array.isArray(valid) ? valid.every(Boolean) : (valid ?? true);\n}\n\n/**\n * Bulk command rendering\n */\ntype RenderBulkCommandParams<TData, TMeta> = {\n data: TData[];\n command: CommandDef<TData, TMeta> & { mode: \"bulk\" };\n meta?: TMeta;\n};\n\nfunction renderBulkCommand<TData, TMeta>({\n data,\n command,\n meta,\n}: RenderBulkCommandParams<TData, TMeta>) {\n const ids = data.filter(dataHasId).map((data) => (data as TData & { id: string }).id);\n\n return command.render({\n data,\n meta: meta ?? ({} as TMeta),\n ...(ids.length > 0 ? { ids } : {}),\n } as BulkCommandDefRenderParams<TData, TMeta>);\n}\n\n/**\n * useSingleCommandMenu\n */\nexport function useSingleCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n // const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n // usePermission(mergePermissions(permissions));\n\n // filter out commands that don't have valid conditions\n const validCommands = commands.filter((command) =>\n command.mode === \"single\"\n ? validateSingleCommand({ data, command })\n : validateBulkCommand({ data: [data], command }),\n );\n\n function renderCommand(command: (typeof validCommands)[number]) {\n return command.mode === \"single\"\n ? renderSingleCommand({ command, data, meta })\n : renderBulkCommand({ command, data: [data], meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n/**\n * useBulkCommandMenu\n */\nexport function useBulkCommandMenu<TData, TMeta>({\n data,\n commands,\n meta,\n}: BulkCommandMenuProps<TData, TMeta>) {\n // const permissions = commands.map((command) => command.permission).filter(Boolean) as Permission[];\n // usePermission(mergePermissions(permissions));\n\n /**\n * Filter out commands that don't have valid conditions\n */\n const validCommands = commands\n // filter out commands that have mode \"bulk\"\n .filter((command) => command.mode === \"bulk\")\n // filter out commands that don't have valid conditions\n .filter((command) => command.mode === \"bulk\" && validateBulkCommand({ data, command }));\n\n /**\n * Render command\n */\n function renderCommand(command: (typeof commands)[number]) {\n if (command.mode === \"single\") return null;\n\n return renderBulkCommand({ command, data, meta });\n }\n\n return [validCommands, renderCommand] as const;\n}\n\n// export function useBulkCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: BulkCommandMenuProps<TData, TMeta>) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that have mode \"bulk\"\n// if (mode !== \"bulk\") return null;\n\n// // filter out commands that don't have valid conditions\n// if (!validateBulkCommand({ data, command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// const renderCommand = (command: (typeof validCommands)[number]) =>\n// renderBulkCommand({ command, data, meta });\n\n// return [validCommands, renderCommand] as const;\n// }\n\n// */\n// export function useSingleCommandMenu<TData, TMeta>({\n// data,\n// commands,\n// meta,\n// }: SingleCommandMenuProps<TData, TMeta> & { data: TData }) {\n// /**\n// * Filter out commands that don't have valid conditions\n// */\n// const validCommands = useSuspenseQueries({\n// queries: commands.flatMap((command) => ({\n// queryKey: [\"command\", command],\n// queryFn: async () => {\n// const { mode, permission } = command;\n\n// // filter out commands that don't have valid conditions\n// if (mode === \"single\" && !validateSingleCommand({ data, command })) return null;\n// if (mode === \"bulk\" && !validateBulkCommand({ data: [data], command })) return null;\n\n// // filter out commands that don't have a permissions defined\n// if (!permission) return command;\n\n// // filter out commands that don't have valid permissions\n// const session = await authClient.getSession();\n// const userId = session.data?.user.id;\n// const hasPermission = await authClient.admin.hasPermission({ permission, userId });\n// if (!hasPermission.data?.success) return null;\n\n// return command;\n// },\n// })),\n// combine: (items) =>\n// items.filter(({ data }) => data).map(({ data }) => data as NonNullable<typeof data>),\n// });\n\n// /**\n// * Render command\n// */\n// function renderCommand(command: (typeof validCommands)[number]) {\n// return command.mode === \"single\"\n// ? renderSingleCommand({ command, data, meta })\n// : renderBulkCommand({ command, data: [data], meta });\n// }\n\n// return [validCommands, renderCommand] as const;\n// }\n"],"mappings":";;;;;;AA0BA,SAAS,UAAiB,MAAa;AACrC,QAAO,QAAQ,OAAO,SAAS,YAAY,QAAQ,QAAQ,OAAO,KAAK,OAAO;;AAWhF,SAAS,sBAAoC,EAC3C,MACA,WAC4C;CAC5C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,oBAAkC,EACzC,MACA,SACA,QAC0C;AAC1C,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,UAAU,KAAK,GAAG,EAAE,IAAK,KAAgC,IAAI,GAAG,EAAE;EACvE,CAA+C;;AAWlD,SAAS,oBAAkC,EACzC,MACA,WAC0C;CAC1C,MAAM,QAAQ,QAAQ,aAAa,EAAE,MAAM,CAAC;AAC5C,QAAO,MAAM,QAAQ,MAAM,GAAG,MAAM,MAAM,QAAQ,GAAI,SAAS;;AAYjE,SAAS,kBAAgC,EACvC,MACA,SACA,QACwC;CACxC,MAAM,MAAM,KAAK,OAAO,UAAU,CAAC,KAAK,WAAUA,OAAgC,GAAG;AAErF,QAAO,QAAQ,OAAO;EACpB;EACA,MAAM,QAAS,EAAE;EACjB,GAAI,IAAI,SAAS,IAAI,EAAE,KAAK,GAAG,EAAE;EAClC,CAA6C;;;;;AAMhD,SAAgB,qBAAmC,EACjD,MACA,UACA,QACyD;CAKzD,MAAM,gBAAgB,SAAS,QAAQ,YACrC,QAAQ,SAAS,WACb,sBAAsB;EAAE;EAAM;EAAS,CAAC,GACxC,oBAAoB;EAAE,MAAM,CAAC,KAAK;EAAE;EAAS,CAAC,CACnD;CAED,SAAS,cAAc,SAAyC;AAC9D,SAAO,QAAQ,SAAS,WACpB,oBAAoB;GAAE;GAAS;GAAM;GAAM,CAAC,GAC5C,kBAAkB;GAAE;GAAS,MAAM,CAAC,KAAK;GAAE;GAAM,CAAC;;AAGxD,QAAO,CAAC,eAAe,cAAc;;;;;AAMvC,SAAgB,mBAAiC,EAC/C,MACA,UACA,QACqC;;;;CAOrC,MAAM,gBAAgB,SAEnB,QAAQ,YAAY,QAAQ,SAAS,OAAO,CAE5C,QAAQ,YAAY,QAAQ,SAAS,UAAU,oBAAoB;EAAE;EAAM;EAAS,CAAC,CAAC;;;;CAKzF,SAAS,cAAc,SAAoC;AACzD,MAAI,QAAQ,SAAS,SAAU,QAAO;AAEtC,SAAO,kBAAkB;GAAE;GAAS;GAAM;GAAM,CAAC;;AAGnD,QAAO,CAAC,eAAe,cAAc"}
@@ -1,4 +1,4 @@
1
- import * as _tanstack_react_query0 from "@tanstack/react-query";
1
+ import * as _tanstack_react_query6 from "@tanstack/react-query";
2
2
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
3
3
  import { useRouter } from "next/navigation";
4
4
 
@@ -11,7 +11,7 @@ type BulkCommandAction = (params: {
11
11
  type CommandMutationMeta = {
12
12
  router: ReturnType<typeof useRouter>;
13
13
  };
14
- declare function useCommandMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options?: MutationOptions<TData, TError, TVariables, TOnMutateResult>): _tanstack_react_query0.UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
14
+ declare function useCommandMutation<TData = unknown, TError = DefaultError, TVariables = void, TOnMutateResult = unknown>(options?: MutationOptions<TData, TError, TVariables, TOnMutateResult>): _tanstack_react_query6.UseMutationResult<TData, TError, TVariables, TOnMutateResult>;
15
15
  //#endregion
16
16
  export { BulkCommandAction, CommandAction, CommandActionResult, CommandMutationMeta, useCommandMutation };
17
17
  //# sourceMappingURL=use-command-mutation.client.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { ContextMenu, ContextMenuTrigger } from "../../../components/ui/context-menu.mjs";
2
2
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
3
- import * as react_jsx_runtime55 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime318 from "react/jsx-runtime";
4
4
  import { ContextMenuContentProps } from "@radix-ui/react-context-menu";
5
5
 
6
6
  //#region src/modules/commands/menus/context-menu.client.d.ts
@@ -21,7 +21,7 @@ declare function ContextCommandMenuContent<TData, TMeta>({
21
21
  meta,
22
22
  className,
23
23
  ...props
24
- }: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps): react_jsx_runtime55.JSX.Element;
24
+ }: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps): react_jsx_runtime318.JSX.Element;
25
25
  //#endregion
26
26
  export { ContextCommandMenu, ContextCommandMenuContent, ContextCommandMenuTrigger };
27
27
  //# sourceMappingURL=context-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/context-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBa,cAAA,kBAAkB,EAAA,OAAA,WAAc;AAK7C;AAKA;;AAEE,cAPW,yBAOX,EAAA,OAPoC,kBAOpC;;;;AAI+B,iBANjB,yBAMiB,CAAA,KAAA,EAAA,KAAA,CAAA,CAAA;EAAA,IAAA;EAAA,QAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA9B,sBAA8B,CAAP,KAAO,EAAA,KAAA,CAAA,GAAS,uBAAT,CAAA,EAAgC,mBAAA,CAAA,GAAA,CAAA,OAAhC"}
1
+ {"version":3,"file":"context-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/context-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAkBa,cAAA,kBAAkB,EAAA,OAAA,WAAc;AAK7C;AAKA;;AAEE,cAPW,yBAOX,EAAA,OAPoC,kBAOpC;;;;AAI+B,iBANjB,yBAMiB,CAAA,KAAA,EAAA,KAAA,CAAA,CAAA;EAAA,IAAA;EAAA,QAAA;EAAA,IAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAA9B,sBAA8B,CAAP,KAAO,EAAA,KAAA,CAAA,GAAS,uBAAT,CAAA,EAAgC,oBAAA,CAAA,GAAA,CAAA,OAAhC"}
@@ -1,5 +1,5 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime56 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime319 from "react/jsx-runtime";
3
3
  import React, { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/commands/menus/dropdown-menu.client.d.ts
@@ -9,11 +9,11 @@ declare function DropdownCommandMenu<TData, TMeta>({
9
9
  meta,
10
10
  className,
11
11
  ...props
12
- }: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>): react_jsx_runtime56.JSX.Element | null;
12
+ }: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>): react_jsx_runtime319.JSX.Element | null;
13
13
  declare function DropdownCommandMenuLoading({
14
14
  className,
15
15
  ...props
16
- }: ComponentProps<"div">): react_jsx_runtime56.JSX.Element;
16
+ }: ComponentProps<"div">): react_jsx_runtime319.JSX.Element;
17
17
  //#endregion
18
18
  export { DropdownCommandMenu, DropdownCommandMenuLoading };
19
19
  //# sourceMappingURL=dropdown-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/dropdown-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAgBgB;;;;;;GAMb,uBAAuB,OAAO,SAAS,KAAA,CAAM,eAAe,eAAY,mBAAA,CAAA,GAAA,CAAA,OAAA;iBA8B3D,0BAAA;;;GAAoD,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"dropdown-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/dropdown-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;iBAgBgB;;;;;;GAMb,uBAAuB,OAAO,SAAS,KAAA,CAAM,eAAe,eAAY,oBAAA,CAAA,GAAA,CAAA,OAAA;iBA8B3D,0BAAA;;;GAAoD,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime58 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime321 from "react/jsx-runtime";
3
3
  import React, { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/commands/menus/inline-menu.client.d.ts
@@ -10,11 +10,11 @@ declare function InlineCommandMenu<TData, TMeta>({
10
10
  commands,
11
11
  className,
12
12
  ...props
13
- }: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime58.JSX.Element | null;
13
+ }: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime321.JSX.Element | null;
14
14
  declare function InlineCommandMenuLoading({
15
15
  className,
16
16
  ...props
17
- }: ComponentProps<"div">): react_jsx_runtime58.JSX.Element;
17
+ }: ComponentProps<"div">): react_jsx_runtime321.JSX.Element;
18
18
  //#endregion
19
19
  export { InlineCommandMenu, InlineCommandMenuLoading, InlineCommandMenuProps };
20
20
  //# sourceMappingURL=inline-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inline-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/inline-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;KASY,uCAAuC,uBAAuB,OAAO,SAC/E,KAAA,CAAM,eAAe;iBAEP;;;;;;GAMb,uBAAuB,OAAO,SAAM,mBAAA,CAAA,GAAA,CAAA,OAAA;iBAkBvB,wBAAA;;;GAAkD,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"inline-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/inline-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;;KASY,uCAAuC,uBAAuB,OAAO,SAC/E,KAAA,CAAM,eAAe;iBAEP;;;;;;GAMb,uBAAuB,OAAO,SAAM,oBAAA,CAAA,GAAA,CAAA,OAAA;iBAkBvB,wBAAA;;;GAAkD,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
2
- import * as react_jsx_runtime60 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime323 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/modules/commands/menus/responsive-menu.client.d.ts
5
5
  type ResponsiveCommandMenuProps<TData, TMeta> = SingleCommandMenuProps<TData, TMeta>;
6
- declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>): react_jsx_runtime60.JSX.Element;
7
- declare function ResponsiveCommandMenuLoading(): react_jsx_runtime60.JSX.Element;
6
+ declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>): react_jsx_runtime323.JSX.Element;
7
+ declare function ResponsiveCommandMenuLoading(): react_jsx_runtime323.JSX.Element;
8
8
  //#endregion
9
9
  export { ResponsiveCommandMenu, ResponsiveCommandMenuLoading };
10
10
  //# sourceMappingURL=responsive-menu.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responsive-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/responsive-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;KAMK,2CAA2C,uBAAuB,OAAO;iBAE9D,2CACP,2BAA2B,OAAO,SAAM,mBAAA,CAAA,GAAA,CAAA;iBAUjC,4BAAA,CAAA,GAA4B,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"responsive-menu.client.d.mts","names":[],"sources":["../../../../src/modules/commands/menus/responsive-menu.client.tsx"],"sourcesContent":[],"mappings":";;;;KAMK,2CAA2C,uBAAuB,OAAO;iBAE9D,2CACP,2BAA2B,OAAO,SAAM,oBAAA,CAAA,GAAA,CAAA;iBAUjC,4BAAA,CAAA,GAA4B,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime62 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime325 from "react/jsx-runtime";
2
2
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
3
3
 
4
4
  //#region src/modules/commands/utils/archive-command.client.d.ts
@@ -17,7 +17,7 @@ declare function ArchiveCommand<TData = unknown, TError = DefaultError, TVariabl
17
17
  }, TOnMutateResult = unknown>({
18
18
  variables,
19
19
  mutation
20
- }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime62.JSX.Element;
20
+ }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime325.JSX.Element;
21
21
  /**
22
22
  * Unarchive command
23
23
  * @description command to unarchive a resource
@@ -27,7 +27,7 @@ declare function RestoreCommand<TData = unknown, TError = DefaultError, TVariabl
27
27
  }, TOnMutateResult = unknown>({
28
28
  variables,
29
29
  mutation
30
- }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime62.JSX.Element;
30
+ }: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime325.JSX.Element;
31
31
  //#endregion
32
32
  export { ArchiveCommand, ArchiveCommandProps, RestoreCommand };
33
33
  //# sourceMappingURL=archive-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"archive-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/archive-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,8CAED;;;EAFC,SAAA,EAMC,UAND;EAED,QAAA,EAKC,eALD,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA;CAIE;;;;;AACD,iBAOI,cAPJ,CAAA,QAAA,OAAA,EAAA,SASD,YATC,EAAA,aAAA;EAAe,GAAA,EAAA,MAAA,EAAA;AAO3B,CAAA,EAAA,kBAA8B,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAKH,mBALG,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA,CAAA,EAK4D,mBAAA,CAAA,GAAA,CAAA,OAL5D;;;;;AAKwB,iBAkBtC,cAlBsC,CAAA,QAAA,OAAA,EAAA,SAoB3C,YApB2C,EAAA,aAAA;EAAQ,GAAA,EAAA,MAAA,EAAA;CAAY,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAuB/C,mBAvB+C,CAuB3B,KAvB2B,EAuBpB,MAvBoB,EAuBZ,UAvBY,EAuBA,eAvBA,CAAA,CAAA,EAuBgB,mBAAA,CAAA,GAAA,CAAA,OAvBhB"}
1
+ {"version":3,"file":"archive-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/archive-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,8CAED;;;EAFC,SAAA,EAMC,UAND;EAED,QAAA,EAKC,eALD,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA;CAIE;;;;;AACD,iBAOI,cAPJ,CAAA,QAAA,OAAA,EAAA,SASD,YATC,EAAA,aAAA;EAAe,GAAA,EAAA,MAAA,EAAA;AAO3B,CAAA,EAAA,kBAA8B,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAKH,mBALG,CAKiB,KALjB,EAKwB,MALxB,EAKgC,UALhC,EAK4C,eAL5C,CAAA,CAAA,EAK4D,oBAAA,CAAA,GAAA,CAAA,OAL5D;;;;;AAKwB,iBAkBtC,cAlBsC,CAAA,QAAA,OAAA,EAAA,SAoB3C,YApB2C,EAAA,aAAA;EAAQ,GAAA,EAAA,MAAA,EAAA;CAAY,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAuB/C,mBAvB+C,CAuB3B,KAvB2B,EAuBpB,MAvBoB,EAuBZ,UAvBY,EAuBA,eAvBA,CAAA,CAAA,EAuBgB,oBAAA,CAAA,GAAA,CAAA,OAvBhB"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime64 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime327 from "react/jsx-runtime";
2
2
  import { DefaultError, MutationOptions } from "@tanstack/react-query";
3
3
 
4
4
  //#region src/modules/commands/utils/delete-command.client.d.ts
@@ -13,7 +13,7 @@ type DeleteCommandProps<TData = unknown, TError = DefaultError, TVariables = unk
13
13
  declare function DeleteCommand<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown>({
14
14
  variables,
15
15
  mutation
16
- }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime64.JSX.Element;
16
+ }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime327.JSX.Element;
17
17
  /**
18
18
  * Single Delete command
19
19
  */
@@ -22,7 +22,7 @@ declare function SingleDeleteCommand<TData = unknown, TError = DefaultError, TVa
22
22
  }, TOnMutateResult = unknown>({
23
23
  variables,
24
24
  mutation
25
- }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime64.JSX.Element;
25
+ }: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime327.JSX.Element;
26
26
  //#endregion
27
27
  export { DeleteCommand, DeleteCommandProps, SingleDeleteCommand };
28
28
  //# sourceMappingURL=delete-command.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/delete-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAiBY,6CAED;aAIE;YACD,gBAAgB,OAAO,QAAQ,YAAY;AAPvD,CAAA;;;;;AAO2C,iBAM3B,aAN2B,CAAA,QAAA,OAAA,EAAA,SAQhC,YARgC,EAAA,aAAA,OAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAWhB,kBAXgB,CAWG,KAXH,EAWU,MAXV,EAWkB,UAXlB,EAW8B,eAX9B,CAAA,CAAA,EAW8C,mBAAA,CAAA,GAAA,CAAA,OAX9C;;;;AAM3B,iBAsCA,mBAtCa,CAAA,QAAA,OAAA,EAAA,SAwClB,YAxCkB,EAAA,aAAA;EAElB,EAAA,EAAA,MAAA;CAGP,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAsCuB,kBAtCvB,CAsC0C,KAtC1C,EAsCiD,MAtCjD,EAsCyD,UAtCzD,EAsCqE,eAtCrE,CAAA,CAAA,EAsCqF,mBAAA,CAAA,GAAA,CAAA,OAtCrF"}
1
+ {"version":3,"file":"delete-command.client.d.mts","names":[],"sources":["../../../../src/modules/commands/utils/delete-command.client.tsx"],"sourcesContent":[],"mappings":";;;;KAiBY,6CAED;aAIE;YACD,gBAAgB,OAAO,QAAQ,YAAY;AAPvD,CAAA;;;;;AAO2C,iBAM3B,aAN2B,CAAA,QAAA,OAAA,EAAA,SAQhC,YARgC,EAAA,aAAA,OAAA,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAWhB,kBAXgB,CAWG,KAXH,EAWU,MAXV,EAWkB,UAXlB,EAW8B,eAX9B,CAAA,CAAA,EAW8C,oBAAA,CAAA,GAAA,CAAA,OAX9C;;;;AAM3B,iBAsCA,mBAtCa,CAAA,QAAA,OAAA,EAAA,SAwClB,YAxCkB,EAAA,aAAA;EAElB,EAAA,EAAA,MAAA;CAGP,EAAA,kBAAA,OAAA,CAAA,CAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAsCuB,kBAtCvB,CAsC0C,KAtC1C,EAsCiD,MAtCjD,EAsCyD,UAtCzD,EAsCqE,eAtCrE,CAAA,CAAA,EAsCqF,oBAAA,CAAA,GAAA,CAAA,OAtCrF"}
@@ -1,5 +1,5 @@
1
- import * as drizzle_orm_pg_core139 from "drizzle-orm/pg-core";
2
- import * as drizzle_orm17 from "drizzle-orm";
1
+ import * as drizzle_orm_pg_core1991 from "drizzle-orm/pg-core";
2
+ import * as drizzle_orm467 from "drizzle-orm";
3
3
 
4
4
  //#region src/modules/config/db/helpers.d.ts
5
5
  declare const generateDefaultUUID: () => string;
@@ -7,9 +7,9 @@ declare const generateDefaultUUID: () => string;
7
7
  * Base columns4
8
8
  */
9
9
  declare const baseColumns: {
10
- id: drizzle_orm17.HasRuntimeDefault<drizzle_orm17.HasDefault<drizzle_orm17.IsPrimaryKey<drizzle_orm17.NotNull<drizzle_orm_pg_core139.PgUUIDBuilderInitial<"">>>>>;
11
- createdAt: drizzle_orm17.NotNull<drizzle_orm17.HasDefault<drizzle_orm_pg_core139.PgTimestampBuilderInitial<"">>>;
12
- updatedAt: drizzle_orm17.HasDefault<drizzle_orm17.NotNull<drizzle_orm17.HasDefault<drizzle_orm_pg_core139.PgTimestampBuilderInitial<"">>>>;
10
+ id: drizzle_orm467.HasRuntimeDefault<drizzle_orm467.HasDefault<drizzle_orm467.IsPrimaryKey<drizzle_orm467.NotNull<drizzle_orm_pg_core1991.PgUUIDBuilderInitial<"">>>>>;
11
+ createdAt: drizzle_orm467.NotNull<drizzle_orm467.HasDefault<drizzle_orm_pg_core1991.PgTimestampBuilderInitial<"">>>;
12
+ updatedAt: drizzle_orm467.HasDefault<drizzle_orm467.NotNull<drizzle_orm467.HasDefault<drizzle_orm_pg_core1991.PgTimestampBuilderInitial<"">>>>;
13
13
  };
14
14
  //#endregion
15
15
  export { baseColumns, generateDefaultUUID };
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/modules/config/db/helpers.ts"],"sourcesContent":[],"mappings":";;;;cAGa;;;;AAAA,cAKA,WALoC,EAAA;EAKpC,EAAA,iCAWZ,yBAAA,2BAAA,sBAAA,CAAA,sBAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EAAA,SAAA,uBAAA,yBAAA,iDAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../src/modules/config/db/helpers.ts"],"sourcesContent":[],"mappings":";;;;cAGa;;;;AAAA,cAKA,WALoC,EAAA;EAKpC,EAAA,kCAWZ,0BAAA,4BAAA,uBAAA,CAAA,uBAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA;EAAA,SAAA,wBAAA,0BAAA,kDAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { TableCell } from "../table.mjs";
2
- import * as react_jsx_runtime221 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime350 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/data-tables/components/cell/common.client.d.ts
@@ -7,21 +7,21 @@ declare function TableTextCell({
7
7
  children,
8
8
  className,
9
9
  ...props
10
- }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
10
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime350.JSX.Element;
11
11
  declare function TableNumberCell({
12
12
  children,
13
13
  className,
14
14
  ...props
15
- }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
15
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime350.JSX.Element;
16
16
  declare function TableDateCell({
17
17
  children,
18
18
  className,
19
19
  ...props
20
- }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
20
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime350.JSX.Element;
21
21
  declare function TableStatusCell({
22
22
  children,
23
23
  ...props
24
- }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
24
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime350.JSX.Element;
25
25
  //#endregion
26
26
  export { TableDateCell, TableNumberCell, TableStatusCell, TableTextCell };
27
27
  //# sourceMappingURL=common.client.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime69 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime369 from "react/jsx-runtime";
2
2
  import { Column } from "@tanstack/react-table";
3
3
 
4
4
  //#region src/modules/data-tables/components/column-header.d.ts
@@ -10,7 +10,7 @@ declare function TableColumnHeader<TData, TValue>({
10
10
  column,
11
11
  title,
12
12
  className
13
- }: TableColumnHeaderProps<TData, TValue>): react_jsx_runtime69.JSX.Element;
13
+ }: TableColumnHeaderProps<TData, TValue>): react_jsx_runtime369.JSX.Element;
14
14
  //#endregion
15
15
  export { TableColumnHeader };
16
16
  //# sourceMappingURL=column-header.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"column-header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/column-header.tsx"],"sourcesContent":[],"mappings":";;;;UAYU,8CAA8C,KAAA,CAAM,eAAe;UACnE,OAAO,OAAO;;AAJ4B;AAGyB,iBAK7D,iBAL6D,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAS1E,sBAT0E,CASnD,KATmD,EAS5C,MAT4C,CAAA,CAAA,EASrC,mBAAA,CAAA,GAAA,CAAA,OATqC"}
1
+ {"version":3,"file":"column-header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/column-header.tsx"],"sourcesContent":[],"mappings":";;;;UAYU,8CAA8C,KAAA,CAAM,eAAe;UACnE,OAAO,OAAO;;AAJ4B;AAGyB,iBAK7D,iBAL6D,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAS1E,sBAT0E,CASnD,KATmD,EAS5C,MAT4C,CAAA,CAAA,EASrC,oBAAA,CAAA,GAAA,CAAA,OATqC"}
@@ -1,5 +1,5 @@
1
1
  import { LucideIcon } from "lucide-react";
2
- import * as react_jsx_runtime226 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime354 from "react/jsx-runtime";
3
3
  import { ParserBuilder } from "nuqs";
4
4
 
5
5
  //#region src/modules/data-tables/components/filters/combobox.client.d.ts
@@ -22,7 +22,7 @@ declare function TableFilterCombobox<TValue extends string>({
22
22
  title,
23
23
  filter,
24
24
  options
25
- }: TableFilterComboboxProps<TValue>): react_jsx_runtime226.JSX.Element;
25
+ }: TableFilterComboboxProps<TValue>): react_jsx_runtime354.JSX.Element;
26
26
  //#endregion
27
27
  export { TableFilterCombobox, TableFilterComboboxOption, TableFilterComboboxProps };
28
28
  //# sourceMappingURL=combobox.client.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime227 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime355 from "react/jsx-runtime";
2
2
  import { ParserBuilder } from "nuqs";
3
3
 
4
4
  //#region src/modules/data-tables/components/filters/slider.client.d.ts
@@ -17,7 +17,7 @@ declare function TableFilterSlider({
17
17
  title,
18
18
  filter,
19
19
  options
20
- }: TableFilterSliderProps): react_jsx_runtime227.JSX.Element;
20
+ }: TableFilterSliderProps): react_jsx_runtime355.JSX.Element;
21
21
  //#endregion
22
22
  export { TableFilterSlider, TableFilterSliderProps };
23
23
  //# sourceMappingURL=slider.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { TableRow } from "./table.mjs";
2
- import * as react_jsx_runtime70 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime370 from "react/jsx-runtime";
3
3
  import { Header, Table } from "@tanstack/react-table";
4
4
 
5
5
  //#region src/modules/data-tables/components/header.d.ts
@@ -15,7 +15,7 @@ type TableHeaderProps<TData> = {
15
15
  declare function TableHeader({
16
16
  className,
17
17
  ...props
18
- }: React.ComponentProps<"thead">): react_jsx_runtime70.JSX.Element;
18
+ }: React.ComponentProps<"thead">): react_jsx_runtime370.JSX.Element;
19
19
  /**
20
20
  * DataTableHeaderRow
21
21
  */
@@ -26,7 +26,7 @@ declare const TableHeaderRow: typeof TableRow;
26
26
  declare function TableHead({
27
27
  className,
28
28
  ...props
29
- }: React.ComponentProps<"th">): react_jsx_runtime70.JSX.Element;
29
+ }: React.ComponentProps<"th">): react_jsx_runtime370.JSX.Element;
30
30
  /**
31
31
  * DataTableHeaderCell
32
32
  */
@@ -35,7 +35,7 @@ type DataTableHeaderCellProps<TData> = {
35
35
  };
36
36
  declare function TableHeaderCell<TData>({
37
37
  header
38
- }: DataTableHeaderCellProps<TData>): react_jsx_runtime70.JSX.Element;
38
+ }: DataTableHeaderCellProps<TData>): react_jsx_runtime370.JSX.Element;
39
39
  //#endregion
40
40
  export { TableHead, TableHeader, TableHeaderCell, TableHeaderProps, TableHeaderRow };
41
41
  //# sourceMappingURL=header.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/header.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AASY,KAAA,gBAAgB,CAAA,KAAA,CAAA,GAAA;EAOZ,KAAA,EANP,KAMO,CAND,KAMY,CAAA;CAAG;;;;AAOjB,iBAPG,WAAA,CAOW;EAAA,SAAW;EAAA,GAAA;AAAA,CAAA,EAPe,KAAA,CAAM,cAOrB,CAAA,OAAA,CAAA,CAAA,EAP4C,mBAAA,CAAA,GAAA,CAAA,OAO5C;AAKtC;;;AAA6E,cALhE,cAKgE,EAAA,OALlD,QAKkD;;AAW5E;AASD;AAAyC,iBApBzB,SAAA,CAoByB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EApBU,KAAA,CAAM,cAoBhB,CAAA,IAAA,CAAA,CAAA,EApBoC,mBAAA,CAAA,GAAA,CAAA,OAoBpC;;;;KAJpC,wBAI6E,CAAA,KAAA,CAAA,GAAA;UAHxE,OAAO;;iBAGD;;GAAmC,yBAAyB,SAAM,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/header.tsx"],"sourcesContent":[],"mappings":";;;;;;;;AASY,KAAA,gBAAgB,CAAA,KAAA,CAAA,GAAA;EAOZ,KAAA,EANP,KAMO,CAND,KAMY,CAAA;CAAG;;;;AAOjB,iBAPG,WAAA,CAOW;EAAA,SAAW;EAAA,GAAA;AAAA,CAAA,EAPe,KAAA,CAAM,cAOrB,CAAA,OAAA,CAAA,CAAA,EAP4C,oBAAA,CAAA,GAAA,CAAA,OAO5C;AAKtC;;;AAA6E,cALhE,cAKgE,EAAA,OALlD,QAKkD;;AAW5E;AASD;AAAyC,iBApBzB,SAAA,CAoByB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EApBU,KAAA,CAAM,cAoBhB,CAAA,IAAA,CAAA,CAAA,EApBoC,oBAAA,CAAA,GAAA,CAAA,OAoBpC;;;;KAJpC,wBAI6E,CAAA,KAAA,CAAA,GAAA;UAHxE,OAAO;;iBAGD;;GAAmC,yBAAyB,SAAM,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime73 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime373 from "react/jsx-runtime";
2
2
  import { ComponentProps } from "react";
3
3
 
4
4
  //#region src/modules/data-tables/components/layout.d.ts
@@ -6,7 +6,7 @@ declare function TableLayout({
6
6
  className,
7
7
  children,
8
8
  ...props
9
- }: ComponentProps<"div">): react_jsx_runtime73.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime373.JSX.Element;
10
10
  //#endregion
11
11
  export { TableLayout };
12
12
  //# sourceMappingURL=layout.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA;;;;GAA+C,wBAAqB,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"layout.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA;;;;GAA+C,wBAAqB,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime208 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime356 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/data-tables/components/search-input.client.d.ts
4
- declare function TableSearchInput(): react_jsx_runtime208.JSX.Element;
4
+ declare function TableSearchInput(): react_jsx_runtime356.JSX.Element;
5
5
  //#endregion
6
6
  export { TableSearchInput };
7
7
  //# sourceMappingURL=search-input.client.d.mts.map
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime74 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime374 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/data-tables/components/skeleton.d.ts
4
- declare function TableSkeleton(): react_jsx_runtime74.JSX.Element;
4
+ declare function TableSkeleton(): react_jsx_runtime374.JSX.Element;
5
5
  //#endregion
6
6
  export { TableSkeleton };
7
7
  //# sourceMappingURL=skeleton.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/skeleton.tsx"],"sourcesContent":[],"mappings":";;;iBASgB,aAAA,CAAA,GAAa,mBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"skeleton.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/skeleton.tsx"],"sourcesContent":[],"mappings":";;;iBASgB,aAAA,CAAA,GAAa,oBAAA,CAAA,GAAA,CAAA"}
@@ -1,34 +1,34 @@
1
- import * as react_jsx_runtime75 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime375 from "react/jsx-runtime";
2
2
  import * as React$1 from "react";
3
3
 
4
4
  //#region src/modules/data-tables/components/table.d.ts
5
5
  declare function Table({
6
6
  className,
7
7
  ...props
8
- }: React$1.ComponentProps<"table">): react_jsx_runtime75.JSX.Element;
8
+ }: React$1.ComponentProps<"table">): react_jsx_runtime375.JSX.Element;
9
9
  declare function TableBody({
10
10
  className,
11
11
  ...props
12
- }: React$1.ComponentProps<"tbody">): react_jsx_runtime75.JSX.Element;
12
+ }: React$1.ComponentProps<"tbody">): react_jsx_runtime375.JSX.Element;
13
13
  declare function TableFooter({
14
14
  className,
15
15
  ...props
16
- }: React$1.ComponentProps<"tfoot">): react_jsx_runtime75.JSX.Element;
16
+ }: React$1.ComponentProps<"tfoot">): react_jsx_runtime375.JSX.Element;
17
17
  declare function TableRow({
18
18
  className,
19
19
  ...props
20
- }: React$1.ComponentProps<"tr">): react_jsx_runtime75.JSX.Element;
20
+ }: React$1.ComponentProps<"tr">): react_jsx_runtime375.JSX.Element;
21
21
  declare function TableCell({
22
22
  readonly,
23
23
  className,
24
24
  ...props
25
25
  }: React$1.ComponentProps<"td"> & {
26
26
  readonly?: boolean;
27
- }): react_jsx_runtime75.JSX.Element;
27
+ }): react_jsx_runtime375.JSX.Element;
28
28
  declare function TableCaption({
29
29
  className,
30
30
  ...props
31
- }: React$1.ComponentProps<"caption">): react_jsx_runtime75.JSX.Element;
31
+ }: React$1.ComponentProps<"caption">): react_jsx_runtime375.JSX.Element;
32
32
  //#endregion
33
33
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableRow };
34
34
  //# sourceMappingURL=table.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/table.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,KAAA;;;GAA+B,OAAA,CAAM,0BAAuB,mBAAA,CAAA,GAAA,CAAA;iBAY5D,SAAA;;;GAAmC,OAAA,CAAM,0BAAuB,mBAAA,CAAA,GAAA,CAAA;iBAUhE,WAAA;;;GAAqC,OAAA,CAAM,0BAAuB,mBAAA,CAAA,GAAA,CAAA;AA1B5C,iBAoCtB,QAAA,CAhCK;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgC6B,OAAA,CAAM,cAhCnC,CAAA,IAAA,CAAA,CAAA,EAgCuD,mBAAA,CAAA,GAAA,CAAA,OAhCvD;iBA6CL,SAAA,CA7CQ;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAiDd,OAAA,CAAM,cAjDQ,CAAA,IAAA,CAAA,GAAA;EAAuB,QAAM,CAAA,EAAA,OAAA;CAAuB,CAAA,EAiDf,mBAAA,CAAA,GAAA,CAAA,OAjDe;iBA+D5D,YAAA,CA/D4D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+DtB,OAAA,CAAM,cA/DgB,CAAA,SAAA,CAAA,CAAA,EA+DS,mBAAA,CAAA,GAAA,CAAA,OA/DT"}
1
+ {"version":3,"file":"table.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/table.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,KAAA;;;GAA+B,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA;iBAY5D,SAAA;;;GAAmC,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA;iBAUhE,WAAA;;;GAAqC,OAAA,CAAM,0BAAuB,oBAAA,CAAA,GAAA,CAAA;AA1B5C,iBAoCtB,QAAA,CAhCK;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgC6B,OAAA,CAAM,cAhCnC,CAAA,IAAA,CAAA,CAAA,EAgCuD,oBAAA,CAAA,GAAA,CAAA,OAhCvD;iBA6CL,SAAA,CA7CQ;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EAiDd,OAAA,CAAM,cAjDQ,CAAA,IAAA,CAAA,GAAA;EAAuB,QAAM,CAAA,EAAA,OAAA;CAAuB,CAAA,EAiDf,oBAAA,CAAA,GAAA,CAAA,OAjDe;iBA+D5D,YAAA,CA/D4D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+DtB,OAAA,CAAM,cA/DgB,CAAA,SAAA,CAAA,CAAA,EA+DS,oBAAA,CAAA,GAAA,CAAA,OA/DT"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime81 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime381 from "react/jsx-runtime";
2
2
  import { HTMLAttributes } from "react";
3
3
 
4
4
  //#region src/modules/data-tables/components/toolbar.d.ts
@@ -9,7 +9,7 @@ declare function TableToolbar({
9
9
  children,
10
10
  className,
11
11
  ...props
12
- }: TableToolbarProps): react_jsx_runtime81.JSX.Element;
12
+ }: TableToolbarProps): react_jsx_runtime381.JSX.Element;
13
13
  type TableToolbarListProps = HTMLAttributes<HTMLDivElement> & {
14
14
  children: React.ReactNode;
15
15
  };
@@ -17,7 +17,7 @@ declare function TableToolbarList({
17
17
  children,
18
18
  className,
19
19
  ...props
20
- }: TableToolbarListProps): react_jsx_runtime81.JSX.Element;
20
+ }: TableToolbarListProps): react_jsx_runtime381.JSX.Element;
21
21
  //#endregion
22
22
  export { TableToolbar, TableToolbarList };
23
23
  //# sourceMappingURL=toolbar.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/toolbar.tsx"],"sourcesContent":[],"mappings":";;;;KAGK,iBAAA,GAAoB,eAAe;YAC5B,KAAA,CAAM;;AADb,iBAIW,YAAA,CAJM;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAI0C,iBAJ1C,CAAA,EAI2D,mBAAA,CAAA,GAAA,CAAA,OAJ3D;KAejB,qBAAA,GAAwB,cAfW,CAeI,cAfJ,CAAA,GAAA;EAAf,QAAA,EAgBb,KAAA,CAAM,SAhBO;CACb;AAAe,iBAkBX,gBAAA,CAlBW;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkByC,qBAlBzC,CAAA,EAkB8D,mBAAA,CAAA,GAAA,CAAA,OAlB9D"}
1
+ {"version":3,"file":"toolbar.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/toolbar.tsx"],"sourcesContent":[],"mappings":";;;;KAGK,iBAAA,GAAoB,eAAe;YAC5B,KAAA,CAAM;;AADb,iBAIW,YAAA,CAJM;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAI0C,iBAJ1C,CAAA,EAI2D,oBAAA,CAAA,GAAA,CAAA,OAJ3D;KAejB,qBAAA,GAAwB,cAfW,CAeI,cAfJ,CAAA,GAAA;EAAf,QAAA,EAgBb,KAAA,CAAM,SAhBO;CACb;AAAe,iBAkBX,gBAAA,CAlBW;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAkByC,qBAlBzC,CAAA,EAkB8D,oBAAA,CAAA,GAAA,CAAA,OAlB9D"}
@@ -1,7 +1,7 @@
1
1
  import { CommandDef } from "../../commands/lib/definitions.mjs";
2
2
  import { TableFiltersResult } from "../lib/filters/config.mjs";
3
3
  import { Selection, TableColumnDef, TableMetaInput, TableStrategy } from "../lib/types.mjs";
4
- import * as react_jsx_runtime231 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime358 from "react/jsx-runtime";
5
5
  import { Dispatch, PropsWithChildren, SetStateAction } from "react";
6
6
  import { TableOptions, VisibilityState } from "@tanstack/react-table";
7
7
 
@@ -44,7 +44,7 @@ declare function TableConfigProvider<TData extends {
44
44
  config
45
45
  }: PropsWithChildren<{
46
46
  config: CreateTableConfigInput<TData, TFilters, TMeta>;
47
- }>): react_jsx_runtime231.JSX.Element;
47
+ }>): react_jsx_runtime358.JSX.Element;
48
48
  /**
49
49
  * Create use table config hook
50
50
  */
@@ -1,11 +1,11 @@
1
1
  import { Table } from "../../../components/table.mjs";
2
- import * as react_jsx_runtime238 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime368 from "react/jsx-runtime";
3
3
  import { ComponentProps } from "react";
4
4
 
5
5
  //#region src/modules/data-tables/tables/data-table/components/table.d.ts
6
6
  declare function DataTable<TData extends {
7
7
  id: string;
8
- }>(props: ComponentProps<typeof Table>): react_jsx_runtime238.JSX.Element;
8
+ }>(props: ComponentProps<typeof Table>): react_jsx_runtime368.JSX.Element;
9
9
  //#endregion
10
10
  export { DataTable };
11
11
  //# sourceMappingURL=table.d.mts.map