@tulip-systems/core 0.5.2 → 0.5.3

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 (366) hide show
  1. package/dist/components/common/icons.d.mts +2 -2
  2. package/dist/components/common/status.d.mts +3 -3
  3. package/dist/components/editor/components/content.client.d.mts +2 -2
  4. package/dist/components/editor/components/editor.client.d.mts +2 -2
  5. package/dist/components/editor/components/editor.client.mjs +2 -2
  6. package/dist/components/editor/components/editor.client.mjs.map +1 -1
  7. package/dist/components/editor/components/menu.client.d.mts +3 -3
  8. package/dist/components/editor/components/menu.client.mjs +3 -0
  9. package/dist/components/editor/components/menu.client.mjs.map +1 -1
  10. package/dist/components/editor/extensions/file-handler/extension.d.mts +21 -0
  11. package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -0
  12. package/dist/components/editor/extensions/file-handler/extension.mjs +40 -0
  13. package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -0
  14. package/dist/components/editor/extensions/file-handler/strategy.d.mts +29 -0
  15. package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -0
  16. package/dist/components/editor/extensions/file-handler/strategy.mjs +111 -0
  17. package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -0
  18. package/dist/components/editor/extensions/file-handler/utils.mjs +50 -0
  19. package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -0
  20. package/dist/components/editor/extensions/image/extension.d.mts +8 -0
  21. package/dist/components/editor/extensions/image/extension.d.mts.map +1 -0
  22. package/dist/components/editor/extensions/image/extension.mjs +52 -0
  23. package/dist/components/editor/extensions/image/extension.mjs.map +1 -0
  24. package/dist/components/editor/extensions/skeleton/extension.mjs +41 -0
  25. package/dist/components/editor/extensions/skeleton/extension.mjs.map +1 -0
  26. package/dist/components/editor/extensions/skeleton/renderer.mjs +25 -0
  27. package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -0
  28. package/dist/components/editor/lib/constants.d.mts +29 -26
  29. package/dist/components/editor/lib/constants.d.mts.map +1 -1
  30. package/dist/components/editor/lib/constants.mjs +14 -2
  31. package/dist/components/editor/lib/constants.mjs.map +1 -1
  32. package/dist/components/editor/lib/extensions.d.mts +5 -1
  33. package/dist/components/editor/lib/extensions.d.mts.map +1 -1
  34. package/dist/components/editor/lib/extensions.mjs.map +1 -1
  35. package/dist/components/editor/lib/variants.mjs +10 -2
  36. package/dist/components/editor/lib/variants.mjs.map +1 -1
  37. package/dist/components/header/back-button.client.d.mts +2 -2
  38. package/dist/components/header/bottom-bar.client.d.mts +3 -3
  39. package/dist/components/header/breadcrumbs.client.d.mts +7 -7
  40. package/dist/components/header/header.client.d.mts +2 -2
  41. package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
  42. package/dist/components/header/top-bar.client.d.mts +4 -4
  43. package/dist/components/layouts/admin-content.client.d.mts +2 -2
  44. package/dist/components/layouts/admin-layout.d.mts +2 -2
  45. package/dist/components/layouts/admin-layout.d.mts.map +1 -1
  46. package/dist/components/layouts/admin-loading.d.mts +2 -2
  47. package/dist/components/layouts/empty-page.d.mts +4 -4
  48. package/dist/components/layouts/list-layout.d.mts +2 -2
  49. package/dist/components/layouts/not-found-page.d.mts +3 -3
  50. package/dist/components/layouts/providers.client.d.mts +2 -2
  51. package/dist/components/layouts/root-layout.server.d.mts +2 -2
  52. package/dist/components/layouts/root-loading.d.mts +2 -2
  53. package/dist/components/layouts/tab-layout.d.mts +2 -2
  54. package/dist/components/lists/data-list.d.mts +5 -5
  55. package/dist/components/lists/data-stack.d.mts +8 -8
  56. package/dist/components/lists/data-stack.d.mts.map +1 -1
  57. package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
  58. package/dist/components/ui/accordion.d.mts +5 -5
  59. package/dist/components/ui/accordion.d.mts.map +1 -1
  60. package/dist/components/ui/alert-dialog.d.mts +12 -12
  61. package/dist/components/ui/alert-dialog.d.mts.map +1 -1
  62. package/dist/components/ui/alert.d.mts +4 -4
  63. package/dist/components/ui/alert.d.mts.map +1 -1
  64. package/dist/components/ui/aspect-ratio.d.mts +2 -2
  65. package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
  66. package/dist/components/ui/avatar.client.d.mts +4 -4
  67. package/dist/components/ui/badge.d.mts +2 -2
  68. package/dist/components/ui/badge.d.mts.map +1 -1
  69. package/dist/components/ui/breadcrumb.d.mts +8 -8
  70. package/dist/components/ui/breadcrumb.d.mts.map +1 -1
  71. package/dist/components/ui/button.d.mts +2 -2
  72. package/dist/components/ui/button.d.mts.map +1 -1
  73. package/dist/components/ui/calendar.d.mts +3 -3
  74. package/dist/components/ui/calendar.d.mts.map +1 -1
  75. package/dist/components/ui/card.d.mts +7 -7
  76. package/dist/components/ui/card.d.mts.map +1 -1
  77. package/dist/components/ui/carousel.d.mts +6 -6
  78. package/dist/components/ui/carousel.d.mts.map +1 -1
  79. package/dist/components/ui/chart.client.d.mts +5 -5
  80. package/dist/components/ui/checkbox.d.mts +2 -2
  81. package/dist/components/ui/checkbox.d.mts.map +1 -1
  82. package/dist/components/ui/collapsible.client.d.mts +4 -4
  83. package/dist/components/ui/color-picker.client.d.mts +2 -2
  84. package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
  85. package/dist/components/ui/combobox.client.d.mts +2 -2
  86. package/dist/components/ui/command.d.mts +10 -10
  87. package/dist/components/ui/command.d.mts.map +1 -1
  88. package/dist/components/ui/context-menu.d.mts +16 -16
  89. package/dist/components/ui/context-menu.d.mts.map +1 -1
  90. package/dist/components/ui/date-picker.client.d.mts +2 -2
  91. package/dist/components/ui/dialog.client.d.mts +11 -11
  92. package/dist/components/ui/drawer.client.d.mts +11 -11
  93. package/dist/components/ui/dropdown-menu.d.mts +16 -16
  94. package/dist/components/ui/form.client.d.mts +7 -7
  95. package/dist/components/ui/hover-card.client.d.mts +4 -4
  96. package/dist/components/ui/input-recipient.d.mts +2 -2
  97. package/dist/components/ui/input.d.mts +2 -2
  98. package/dist/components/ui/label.d.mts +2 -2
  99. package/dist/components/ui/navigation-menu.d.mts +9 -9
  100. package/dist/components/ui/pagination.d.mts +8 -8
  101. package/dist/components/ui/popover.d.mts +5 -5
  102. package/dist/components/ui/popover.d.mts.map +1 -1
  103. package/dist/components/ui/progress.client.d.mts +2 -2
  104. package/dist/components/ui/radio-group.d.mts +3 -3
  105. package/dist/components/ui/resizable.client.d.mts +4 -4
  106. package/dist/components/ui/scroll-area.d.mts +3 -3
  107. package/dist/components/ui/select.client.d.mts +11 -11
  108. package/dist/components/ui/separator.d.mts +2 -2
  109. package/dist/components/ui/sheet.client.d.mts +9 -9
  110. package/dist/components/ui/sidebar.client.d.mts +24 -24
  111. package/dist/components/ui/skeleton.d.mts +2 -2
  112. package/dist/components/ui/slider.d.mts +2 -2
  113. package/dist/components/ui/sonner.client.d.mts +2 -2
  114. package/dist/components/ui/switch.d.mts +2 -2
  115. package/dist/components/ui/tabs.d.mts +5 -5
  116. package/dist/components/ui/textarea.d.mts +2 -2
  117. package/dist/components/ui/time-input.client.d.mts +2 -2
  118. package/dist/components/ui/toggle-group.client.d.mts +3 -3
  119. package/dist/components/ui/toggle.d.mts +2 -2
  120. package/dist/components/ui/tooltip.client.d.mts +5 -5
  121. package/dist/components.d.mts +2 -1
  122. package/dist/components.mjs +3 -2
  123. package/dist/data-tables.d.mts +2 -2
  124. package/dist/data-tables.mjs +2 -2
  125. package/dist/inline-edit/client.d.mts +2 -3
  126. package/dist/inline-edit/client.mjs +1 -2
  127. package/dist/lib/client.d.mts +2 -2
  128. package/dist/lib/client.mjs +2 -2
  129. package/dist/lib/hooks/use-action.d.mts +2 -2
  130. package/dist/lib/hooks/use-indicator.d.mts +11 -3
  131. package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
  132. package/dist/lib/hooks/use-indicator.mjs +19 -8
  133. package/dist/lib/hooks/use-indicator.mjs.map +1 -1
  134. package/dist/modules/auth/components/allowed.client.d.mts +2 -2
  135. package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
  136. package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
  137. package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
  138. package/dist/modules/auth/components/auth-loading.d.mts +2 -2
  139. package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
  140. package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
  141. package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
  142. package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
  143. package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
  144. package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
  145. package/dist/modules/auth/components/guard.server.d.mts +2 -2
  146. package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
  147. package/dist/modules/auth/components/login-page.client.d.mts +2 -2
  148. package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
  149. package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
  150. package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
  151. package/dist/modules/auth/components/update-password-command.d.mts +2 -2
  152. package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
  153. package/dist/modules/auth/db/schema.d.mts +73 -73
  154. package/dist/modules/auth/db/schema.d.mts.map +1 -1
  155. package/dist/modules/auth/handler/client.client.d.mts +6 -6
  156. package/dist/modules/auth/hooks/use-permission.d.mts +2 -2
  157. package/dist/modules/auth/hooks/use-session.d.mts +4 -4
  158. package/dist/modules/auth/lib/validators.d.mts +2 -2
  159. package/dist/modules/auth/lib/validators.d.mts.map +1 -1
  160. package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
  161. package/dist/modules/commands/components/alert-dialog-command.client.d.mts.map +1 -1
  162. package/dist/modules/commands/components/click-command.client.d.mts +2 -2
  163. package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
  164. package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
  165. package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
  166. package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
  167. package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
  168. package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
  169. package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
  170. package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
  171. package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
  172. package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
  173. package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
  174. package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
  175. package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
  176. package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
  177. package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
  178. package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
  179. package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
  180. package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
  181. package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
  182. package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
  183. package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
  184. package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
  185. package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
  186. package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
  187. package/dist/modules/config/db/helpers.d.mts +5 -5
  188. package/dist/modules/config/db/helpers.d.mts.map +1 -1
  189. package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
  190. package/dist/modules/data-tables/components/column-header.d.mts +2 -2
  191. package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
  192. package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
  193. package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
  194. package/dist/modules/data-tables/components/header.d.mts +4 -4
  195. package/dist/modules/data-tables/components/header.d.mts.map +1 -1
  196. package/dist/modules/data-tables/components/layout.d.mts +2 -2
  197. package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
  198. package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
  199. package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
  200. package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
  201. package/dist/modules/data-tables/components/table.d.mts +7 -7
  202. package/dist/modules/data-tables/components/table.d.mts.map +1 -1
  203. package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
  204. package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
  205. package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
  206. package/dist/modules/data-tables/lib/filters/parsers.d.mts +6 -1
  207. package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
  208. package/dist/modules/data-tables/lib/filters/parsers.mjs +6 -1
  209. package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
  210. package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
  211. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
  212. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
  213. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
  214. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
  215. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
  216. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
  217. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
  218. package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
  219. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
  220. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +6 -4
  221. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
  222. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +11 -6
  223. package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
  224. package/dist/modules/inline-edit/components/combobox.client.d.mts +6 -4
  225. package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
  226. package/dist/modules/inline-edit/components/combobox.client.mjs +7 -5
  227. package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
  228. package/dist/modules/inline-edit/components/date-input.client.d.mts +5 -3
  229. package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
  230. package/dist/modules/inline-edit/components/date-input.client.mjs +26 -13
  231. package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
  232. package/dist/modules/inline-edit/components/date-picker.client.d.mts +6 -4
  233. package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
  234. package/dist/modules/inline-edit/components/date-picker.client.mjs +12 -7
  235. package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
  236. package/dist/modules/inline-edit/components/editor.client.d.mts +6 -4
  237. package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
  238. package/dist/modules/inline-edit/components/editor.client.mjs +11 -6
  239. package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
  240. package/dist/modules/inline-edit/components/input-recipient.client.d.mts +6 -4
  241. package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
  242. package/dist/modules/inline-edit/components/input-recipient.client.mjs +11 -6
  243. package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
  244. package/dist/modules/inline-edit/components/input-toggle.client.d.mts +6 -4
  245. package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
  246. package/dist/modules/inline-edit/components/input-toggle.client.mjs +9 -7
  247. package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
  248. package/dist/modules/inline-edit/components/input.client.d.mts +13 -10
  249. package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
  250. package/dist/modules/inline-edit/components/input.client.mjs +35 -19
  251. package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
  252. package/dist/modules/inline-edit/components/select.client.d.mts +10 -9
  253. package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
  254. package/dist/modules/inline-edit/components/select.client.mjs +14 -7
  255. package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
  256. package/dist/modules/inline-edit/components/switch.client.d.mts +5 -3
  257. package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
  258. package/dist/modules/inline-edit/components/switch.client.mjs +8 -6
  259. package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
  260. package/dist/modules/inline-edit/components/toggle.client.d.mts +6 -4
  261. package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
  262. package/dist/modules/inline-edit/components/toggle.client.mjs +9 -7
  263. package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
  264. package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
  265. package/dist/modules/inline-edit/hooks/context.client.d.mts.map +1 -1
  266. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +35 -3
  267. package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
  268. package/dist/modules/inline-edit/hooks/use-inline.client.mjs +71 -9
  269. package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
  270. package/dist/modules/inline-edit/lib/variants.d.mts +1 -0
  271. package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
  272. package/dist/modules/inline-edit/lib/variants.mjs +12 -4
  273. package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
  274. package/dist/modules/router/handler/init.server.d.mts +6 -6
  275. package/dist/modules/router/handler/init.server.d.mts.map +1 -1
  276. package/dist/modules/router/lib/query-client.server.d.mts +2 -2
  277. package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
  278. package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
  279. package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
  280. package/dist/modules/storage/components/dropzone.client.mjs +1 -1
  281. package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
  282. package/dist/modules/storage/components/image-grid.client.mjs +3 -3
  283. package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
  284. package/dist/modules/storage/components/upload-zone-context.client.d.mts +3 -11
  285. package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
  286. package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
  287. package/dist/modules/storage/components/upload-zone.client.d.mts +10 -33
  288. package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
  289. package/dist/modules/storage/components/upload-zone.client.mjs +19 -93
  290. package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
  291. package/dist/modules/storage/config/filters.d.mts +1 -0
  292. package/dist/modules/storage/config/filters.d.mts.map +1 -1
  293. package/dist/modules/storage/config/filters.mjs +1 -0
  294. package/dist/modules/storage/config/filters.mjs.map +1 -1
  295. package/dist/modules/storage/lib/create-upload.client.d.mts +56 -0
  296. package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -0
  297. package/dist/modules/storage/lib/create-upload.client.mjs +98 -0
  298. package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -0
  299. package/dist/modules/storage/lib/helpers.d.mts +1 -1
  300. package/dist/modules/storage/lib/router.server.d.mts +3265 -2345
  301. package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
  302. package/dist/modules/storage/lib/router.server.mjs +5 -2
  303. package/dist/modules/storage/lib/router.server.mjs.map +1 -1
  304. package/dist/modules/storage/lib/schema.d.mts +124 -90
  305. package/dist/modules/storage/lib/schema.d.mts.map +1 -1
  306. package/dist/modules/storage/lib/schema.mjs +2 -1
  307. package/dist/modules/storage/lib/schema.mjs.map +1 -1
  308. package/dist/modules/storage/lib/service.server.d.mts +31 -42
  309. package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
  310. package/dist/modules/storage/lib/service.server.mjs +5 -5
  311. package/dist/modules/storage/lib/service.server.mjs.map +1 -1
  312. package/dist/modules/storage/lib/validators.d.mts +170 -90
  313. package/dist/modules/storage/lib/validators.d.mts.map +1 -1
  314. package/dist/modules/storage/lib/validators.mjs +2 -1
  315. package/dist/modules/storage/lib/validators.mjs.map +1 -1
  316. package/dist/storage/client.d.mts +2 -1
  317. package/dist/storage/client.mjs +2 -8
  318. package/dist/storage.d.mts +2 -2
  319. package/dist/storage.mjs +1 -1
  320. package/package.json +4 -3
  321. package/src/components/editor/components/editor.client.tsx +7 -2
  322. package/src/components/editor/components/menu.client.tsx +26 -0
  323. package/src/components/editor/extensions/file-handler/extension.ts +69 -0
  324. package/src/components/editor/extensions/file-handler/strategy.ts +167 -0
  325. package/src/components/editor/extensions/file-handler/utils.ts +51 -0
  326. package/src/components/editor/extensions/image/extension.ts +57 -0
  327. package/src/components/editor/extensions/skeleton/extension.ts +35 -0
  328. package/src/components/editor/extensions/skeleton/renderer.tsx +14 -0
  329. package/src/components/editor/lib/constants.ts +16 -2
  330. package/src/components/editor/lib/extensions.ts +4 -1
  331. package/src/components/editor/lib/utils.ts +32 -0
  332. package/src/components/editor/lib/variants.ts +72 -1
  333. package/src/components/entry.ts +2 -1
  334. package/src/lib/hooks/use-indicator.tsx +27 -18
  335. package/src/modules/data-tables/lib/filters/parsers.ts +14 -0
  336. package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +21 -12
  337. package/src/modules/inline-edit/components/combobox.client.tsx +13 -6
  338. package/src/modules/inline-edit/components/date-input.client.tsx +29 -13
  339. package/src/modules/inline-edit/components/date-picker.client.tsx +13 -9
  340. package/src/modules/inline-edit/components/editor.client.tsx +14 -14
  341. package/src/modules/inline-edit/components/input-recipient.client.tsx +15 -8
  342. package/src/modules/inline-edit/components/input-toggle.client.tsx +16 -9
  343. package/src/modules/inline-edit/components/input.client.tsx +38 -24
  344. package/src/modules/inline-edit/components/select.client.tsx +16 -9
  345. package/src/modules/inline-edit/components/switch.client.tsx +10 -6
  346. package/src/modules/inline-edit/components/toggle.client.tsx +13 -9
  347. package/src/modules/inline-edit/entry.client.ts +0 -1
  348. package/src/modules/inline-edit/hooks/use-inline.client copy.tsx +97 -0
  349. package/src/modules/inline-edit/hooks/use-inline.client.tsx +139 -20
  350. package/src/modules/inline-edit/lib/variants.ts +7 -0
  351. package/src/modules/storage/components/image-grid.client.tsx +2 -2
  352. package/src/modules/storage/components/upload-zone-context.client.tsx +3 -4
  353. package/src/modules/storage/components/upload-zone.client.tsx +17 -116
  354. package/src/modules/storage/config/filters.ts +1 -0
  355. package/src/modules/storage/entry.client.ts +2 -1
  356. package/src/modules/storage/lib/create-upload.client.ts +134 -0
  357. package/src/modules/storage/lib/router.server.ts +1 -0
  358. package/src/modules/storage/lib/schema.ts +1 -0
  359. package/src/modules/storage/lib/service.server.ts +10 -4
  360. package/src/modules/storage/lib/validators.ts +1 -0
  361. package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts +0 -21
  362. package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts.map +0 -1
  363. package/dist/modules/inline-edit/components/deprecated-editor.client.mjs +0 -37
  364. package/dist/modules/inline-edit/components/deprecated-editor.client.mjs.map +0 -1
  365. package/dist/storage/client.mjs.map +0 -1
  366. package/src/modules/inline-edit/components/deprecated-editor.client.tsx +0 -48
@@ -1,5 +1,5 @@
1
1
  import { TableCell } from "../table.mjs";
2
- import * as react_jsx_runtime181 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime221 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_runtime181.JSX.Element;
10
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
11
11
  declare function TableNumberCell({
12
12
  children,
13
13
  className,
14
14
  ...props
15
- }: ComponentProps<typeof TableCell>): react_jsx_runtime181.JSX.Element;
15
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
16
16
  declare function TableDateCell({
17
17
  children,
18
18
  className,
19
19
  ...props
20
- }: ComponentProps<typeof TableCell>): react_jsx_runtime181.JSX.Element;
20
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime221.JSX.Element;
21
21
  declare function TableStatusCell({
22
22
  children,
23
23
  ...props
24
- }: ComponentProps<typeof TableCell>): react_jsx_runtime181.JSX.Element;
24
+ }: ComponentProps<typeof TableCell>): react_jsx_runtime221.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_runtime200 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime69 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_runtime200.JSX.Element;
13
+ }: TableColumnHeaderProps<TData, TValue>): react_jsx_runtime69.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,oBAAA,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,mBAAA,CAAA,GAAA,CAAA,OATqC"}
@@ -1,5 +1,5 @@
1
1
  import { LucideIcon } from "lucide-react";
2
- import * as react_jsx_runtime185 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime226 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_runtime185.JSX.Element;
25
+ }: TableFilterComboboxProps<TValue>): react_jsx_runtime226.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_runtime186 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime227 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_runtime186.JSX.Element;
20
+ }: TableFilterSliderProps): react_jsx_runtime227.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_runtime201 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime70 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_runtime201.JSX.Element;
18
+ }: React.ComponentProps<"thead">): react_jsx_runtime70.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_runtime201.JSX.Element;
29
+ }: React.ComponentProps<"th">): react_jsx_runtime70.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_runtime201.JSX.Element;
38
+ }: DataTableHeaderCellProps<TData>): react_jsx_runtime70.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,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
+ {"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,4 +1,4 @@
1
- import * as react_jsx_runtime204 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime73 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_runtime204.JSX.Element;
9
+ }: ComponentProps<"div">): react_jsx_runtime73.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,oBAAA,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,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,7 +1,7 @@
1
- import * as react_jsx_runtime187 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime208 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_runtime187.JSX.Element;
4
+ declare function TableSearchInput(): react_jsx_runtime208.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_runtime205 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime74 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/modules/data-tables/components/skeleton.d.ts
4
- declare function TableSkeleton(): react_jsx_runtime205.JSX.Element;
4
+ declare function TableSkeleton(): react_jsx_runtime74.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,oBAAA,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,mBAAA,CAAA,GAAA,CAAA"}
@@ -1,34 +1,34 @@
1
- import * as react_jsx_runtime206 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime75 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_runtime206.JSX.Element;
8
+ }: React$1.ComponentProps<"table">): react_jsx_runtime75.JSX.Element;
9
9
  declare function TableBody({
10
10
  className,
11
11
  ...props
12
- }: React$1.ComponentProps<"tbody">): react_jsx_runtime206.JSX.Element;
12
+ }: React$1.ComponentProps<"tbody">): react_jsx_runtime75.JSX.Element;
13
13
  declare function TableFooter({
14
14
  className,
15
15
  ...props
16
- }: React$1.ComponentProps<"tfoot">): react_jsx_runtime206.JSX.Element;
16
+ }: React$1.ComponentProps<"tfoot">): react_jsx_runtime75.JSX.Element;
17
17
  declare function TableRow({
18
18
  className,
19
19
  ...props
20
- }: React$1.ComponentProps<"tr">): react_jsx_runtime206.JSX.Element;
20
+ }: React$1.ComponentProps<"tr">): react_jsx_runtime75.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_runtime206.JSX.Element;
27
+ }): react_jsx_runtime75.JSX.Element;
28
28
  declare function TableCaption({
29
29
  className,
30
30
  ...props
31
- }: React$1.ComponentProps<"caption">): react_jsx_runtime206.JSX.Element;
31
+ }: React$1.ComponentProps<"caption">): react_jsx_runtime75.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,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
+ {"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,4 +1,4 @@
1
- import * as react_jsx_runtime212 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime81 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_runtime212.JSX.Element;
12
+ }: TableToolbarProps): react_jsx_runtime81.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_runtime212.JSX.Element;
20
+ }: TableToolbarListProps): react_jsx_runtime81.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,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
+ {"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,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_runtime189 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime231 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_runtime189.JSX.Element;
47
+ }>): react_jsx_runtime231.JSX.Element;
48
48
  /**
49
49
  * Create use table config hook
50
50
  */
@@ -27,11 +27,16 @@ declare const parseFilterEnum: <TSchema extends ZodEnum>(schema: TSchema) => Par
27
27
  */
28
28
  type ParseFilterBooleanSchema = z.ZodBoolean;
29
29
  declare const parseFilterBoolean: <TSchema extends z.ZodType<boolean>>(schema: TSchema) => ParseFilter<TSchema>;
30
+ /**
31
+ * Filter datetime value
32
+ */
33
+ type ParseFilterDatetimeSchema = z.ZodDate;
34
+ declare const parseFilterDatetime: <TSchema extends ParseFilterDatetimeSchema>(schema: TSchema) => ParseFilter<TSchema>;
30
35
  /**
31
36
  * Filter range value
32
37
  */
33
38
  type ParseFilterTupleSchema = z.ZodTuple<[ZodType, ZodType]>;
34
39
  declare const parseFilterTuple: <TSchema extends ParseFilterTupleSchema>(schema: TSchema) => ParseFilter<TSchema>;
35
40
  //#endregion
36
- export { ParseFilter, ParseFilterArraySchema, ParseFilterBooleanSchema, ParseFilterEnumSchema, ParseFilterStringSchema, ParseFilterTupleSchema, parseFilterArray, parseFilterBoolean, parseFilterEnum, parseFilterString, parseFilterTuple };
41
+ export { ParseFilter, ParseFilterArraySchema, ParseFilterBooleanSchema, ParseFilterDatetimeSchema, ParseFilterEnumSchema, ParseFilterStringSchema, ParseFilterTupleSchema, parseFilterArray, parseFilterBoolean, parseFilterDatetime, parseFilterEnum, parseFilterString, parseFilterTuple };
37
42
  //# sourceMappingURL=parsers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/parsers.ts"],"sourcesContent":[],"mappings":";;;KAEY,4BAA4B,CAAA,CAAE;UAChC,YAAY;EADV,MAAA,EAAA,CAAA,KAAW,EAAA,MAAA,EAAA,GAEM,CAAA,CAAE,KAFR,CAEc,OAFd,CAAA;EAAmB,MAAA,EAAA,CAAA,KAAA,EAGxB,CAAA,CAAE,KAHsB,CAGhB,OAHgB,CAAA,EAAA,GAAA,MAAA;EACpB,EAAA,CAAA,EAAA,CAAA,CAAA,EAGX,CAAA,CAAE,MAHS,CAGF,OAHE,CAAA,EAAA,CAAA,EAGW,CAAA,CAAE,MAHb,CAGoB,OAHpB,CAAA,EAAA,GAAA,OAAA;CAAZ;;;;AAEU,KAOR,uBAAA,GAA0B,CAAA,CAAE,SAPpB;AACA,cAQP,iBARO,EAAA,CAAA,gBAQ8B,uBAR9B,CAAA,CAAA,MAAA,EASV,OATU,EAAA,GAUjB,WAViB,CAUL,OAVK,CAAA;;;;AAAqB,KAmB7B,sBAAA,GAAyB,CAAA,CAAE,QAnBE,CAmBO,OAnBP,CAAA;AAM7B,cAeC,gBAfsB,EAAA,CAAA,gBAec,sBAfA,CAAA,CAAA,MAAA,EAgBvC,OAhBuC,EAAA,GAiB9C,WAjB8C,CAiBlC,OAjBkC,CAAA;AAEjD;;;AAEe,KAsBH,qBAAA,GAAwB,OAtBrB;AAAZ,cAwBU,eAxBV,EAAA,CAAA,gBAwB6C,OAxB7C,CAAA,CAAA,MAAA,EAyBO,OAzBP,EAAA,GA0BA,WA1BA,CA0BY,OA1BZ,CAAA;;AASH;AAEA;AAAiD,KA2BrC,wBAAA,GAA2B,CAAA,CAAE,UA3BQ;AACvC,cA4BG,kBA5BH,EAAA,CAAA,gBA4ByC,CAAA,CAAE,OA5B3C,CAAA,OAAA,CAAA,CAAA,CAAA,MAAA,EA6BA,OA7BA,EAAA,GA8BP,WA9BO,CA8BK,OA9BL,CAAA;;;;AAUE,KAgCA,sBAAA,GAAyB,CAAA,CAAE,QAhCH,CAAA,CAgCa,OAhCN,EAgCe,OAhCf,CAAA,CAAA;AAE9B,cAgCA,gBAvBX,EAAA,CAAA,gBAuB+C,sBAvB/C,CAAA,CAAA,MAAA,EAwBQ,OAxBR,EAAA,GAyBC,WAzBD,CAyBa,OAzBb,CAAA"}
1
+ {"version":3,"file":"parsers.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/parsers.ts"],"sourcesContent":[],"mappings":";;;KAEY,4BAA4B,CAAA,CAAE;UAChC,YAAY;EADV,MAAA,EAAA,CAAA,KAAW,EAAA,MAAA,EAAA,GAEM,CAAA,CAAE,KAFR,CAEc,OAFd,CAAA;EAAmB,MAAA,EAAA,CAAA,KAAA,EAGxB,CAAA,CAAE,KAHsB,CAGhB,OAHgB,CAAA,EAAA,GAAA,MAAA;EACpB,EAAA,CAAA,EAAA,CAAA,CAAA,EAGX,CAAA,CAAE,MAHS,CAGF,OAHE,CAAA,EAAA,CAAA,EAGW,CAAA,CAAE,MAHb,CAGoB,OAHpB,CAAA,EAAA,GAAA,OAAA;CAAZ;;;;AAEU,KAOR,uBAAA,GAA0B,CAAA,CAAE,SAPpB;AACA,cAQP,iBARO,EAAA,CAAA,gBAQ8B,uBAR9B,CAAA,CAAA,MAAA,EASV,OATU,EAAA,GAUjB,WAViB,CAUL,OAVK,CAAA;;;;AAAqB,KAmB7B,sBAAA,GAAyB,CAAA,CAAE,QAnBE,CAmBO,OAnBP,CAAA;AAM7B,cAeC,gBAfsB,EAAA,CAAA,gBAec,sBAfA,CAAA,CAAA,MAAA,EAgBvC,OAhBuC,EAAA,GAiB9C,WAjB8C,CAiBlC,OAjBkC,CAAA;AAEjD;;;AAEe,KAsBH,qBAAA,GAAwB,OAtBrB;AAAZ,cAwBU,eAxBV,EAAA,CAAA,gBAwB6C,OAxB7C,CAAA,CAAA,MAAA,EAyBO,OAzBP,EAAA,GA0BA,WA1BA,CA0BY,OA1BZ,CAAA;;AASH;AAEA;AAAiD,KA2BrC,wBAAA,GAA2B,CAAA,CAAE,UA3BQ;AACvC,cA4BG,kBA5BH,EAAA,CAAA,gBA4ByC,CAAA,CAAE,OA5B3C,CAAA,OAAA,CAAA,CAAA,CAAA,MAAA,EA6BA,OA7BA,EAAA,GA8BP,WA9BO,CA8BK,OA9BL,CAAA;;;;AAUE,KAgCA,yBAAA,GAA4B,CAAA,CAAE,OAhCC;AAE9B,cAgCA,mBAvBX,EAAA,CAAA,gBAuBkD,yBAvBlD,CAAA,CAAA,MAAA,EAwBQ,OAxBR,EAAA,GAyBC,WAzBD,CAyBa,OAzBb,CAAA;;;;AAPC,KA0CS,sBAAA,GAAyB,CAAA,CAAE,QA1CpC,CAAA,CA0C8C,OA1C9C,EA0CuD,OA1CvD,CAAA,CAAA;AAAW,cA4CD,gBA5CC,EAAA,CAAA,gBA4CmC,sBA5CnC,CAAA,CAAA,MAAA,EA6CJ,OA7CI,EAAA,GA8CX,WA9CW,CA8CC,OA9CD,CAAA"}
@@ -23,6 +23,11 @@ const parseFilterBoolean = (schema) => ({
23
23
  },
24
24
  encode: (decoded) => decoded ? "true" : "false"
25
25
  });
26
+ const parseFilterDatetime = (schema) => ({
27
+ schema: schema.nullable(),
28
+ decode: (encoded) => encoded ? new Date(encoded) : null,
29
+ encode: (decoded) => decoded ? decoded.toISOString() : ""
30
+ });
26
31
  const parseFilterTuple = (schema) => ({
27
32
  schema: schema.nullable(),
28
33
  decode: (encoded) => encoded?.split("_") ?? [],
@@ -30,5 +35,5 @@ const parseFilterTuple = (schema) => ({
30
35
  });
31
36
 
32
37
  //#endregion
33
- export { parseFilterArray, parseFilterBoolean, parseFilterEnum, parseFilterString, parseFilterTuple };
38
+ export { parseFilterArray, parseFilterBoolean, parseFilterDatetime, parseFilterEnum, parseFilterString, parseFilterTuple };
34
39
  //# sourceMappingURL=parsers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/parsers.ts"],"sourcesContent":["import z, { ZodEnum, ZodNullable, ZodType } from \"zod\";\n\nexport type ParseFilter<TSchema extends z.ZodType> = {\n schema: ZodNullable<TSchema>;\n decode: (value: string) => z.input<TSchema>;\n encode: (value: z.input<TSchema>) => string;\n eq?: (a: z.output<TSchema>, b: z.output<TSchema>) => boolean;\n};\n\n/**\n * Filter string\n */\nexport type ParseFilterStringSchema = z.ZodString;\n\nexport const parseFilterString = <TSchema extends ParseFilterStringSchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.trim() ?? null) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded ?? \"\",\n});\n\n/**\n * Filter string array\n */\nexport type ParseFilterArraySchema = z.ZodArray<ZodType>;\n\nexport const parseFilterArray = <TSchema extends ParseFilterArraySchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.split(\",\").filter(Boolean) ?? []) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded?.join(\",\") ?? \"\",\n});\n\n/**\n * Filter enum\n */\nexport type ParseFilterEnumSchema = ZodEnum;\n\nexport const parseFilterEnum = <TSchema extends ZodEnum>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => {\n const value = encoded?.trim().toLowerCase();\n return value as unknown as z.input<TSchema>;\n },\n encode: (decoded) => decoded as unknown as string,\n});\n\n/**\n * Filter boolean value\n */\nexport type ParseFilterBooleanSchema = z.ZodBoolean;\n\nexport const parseFilterBoolean = <TSchema extends z.ZodType<boolean>>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => {\n const value = encoded?.trim().toLowerCase();\n return (value === \"true\") as unknown as z.input<TSchema>;\n },\n encode: (decoded) => (decoded ? \"true\" : \"false\"),\n});\n\n/**\n * Filter range value\n */\nexport type ParseFilterTupleSchema = z.ZodTuple<[ZodType, ZodType]>;\n\nexport const parseFilterTuple = <TSchema extends ParseFilterTupleSchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.split(\"_\") ?? []) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded?.join(\"_\") ?? \"\",\n});\n"],"mappings":";AAcA,MAAa,qBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI;CACzC,SAAS,YAAY,WAAW;CACjC;AAOD,MAAa,oBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ,IAAI,EAAE;CAC/D,SAAS,YAAY,SAAS,KAAK,IAAI,IAAI;CAC5C;AAOD,MAAa,mBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAY;AAEnB,SADc,SAAS,MAAM,CAAC,aAAa;;CAG7C,SAAS,YAAY;CACtB;AAOD,MAAa,sBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAY;AAEnB,SADc,SAAS,MAAM,CAAC,aAAa,KACzB;;CAEpB,SAAS,YAAa,UAAU,SAAS;CAC1C;AAOD,MAAa,oBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI,IAAI,EAAE;CAC/C,SAAS,YAAY,SAAS,KAAK,IAAI,IAAI;CAC5C"}
1
+ {"version":3,"file":"parsers.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/parsers.ts"],"sourcesContent":["import z, { ZodEnum, ZodNullable, ZodType } from \"zod\";\n\nexport type ParseFilter<TSchema extends z.ZodType> = {\n schema: ZodNullable<TSchema>;\n decode: (value: string) => z.input<TSchema>;\n encode: (value: z.input<TSchema>) => string;\n eq?: (a: z.output<TSchema>, b: z.output<TSchema>) => boolean;\n};\n\n/**\n * Filter string\n */\nexport type ParseFilterStringSchema = z.ZodString;\n\nexport const parseFilterString = <TSchema extends ParseFilterStringSchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.trim() ?? null) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded ?? \"\",\n});\n\n/**\n * Filter string array\n */\nexport type ParseFilterArraySchema = z.ZodArray<ZodType>;\n\nexport const parseFilterArray = <TSchema extends ParseFilterArraySchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.split(\",\").filter(Boolean) ?? []) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded?.join(\",\") ?? \"\",\n});\n\n/**\n * Filter enum\n */\nexport type ParseFilterEnumSchema = ZodEnum;\n\nexport const parseFilterEnum = <TSchema extends ZodEnum>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => {\n const value = encoded?.trim().toLowerCase();\n return value as unknown as z.input<TSchema>;\n },\n encode: (decoded) => decoded as unknown as string,\n});\n\n/**\n * Filter boolean value\n */\nexport type ParseFilterBooleanSchema = z.ZodBoolean;\n\nexport const parseFilterBoolean = <TSchema extends z.ZodType<boolean>>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => {\n const value = encoded?.trim().toLowerCase();\n return (value === \"true\") as unknown as z.input<TSchema>;\n },\n encode: (decoded) => (decoded ? \"true\" : \"false\"),\n});\n\n/**\n * Filter datetime value\n */\nexport type ParseFilterDatetimeSchema = z.ZodDate;\n\nexport const parseFilterDatetime = <TSchema extends ParseFilterDatetimeSchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded ? new Date(encoded) : null) as unknown as z.input<TSchema>,\n encode: (decoded) => (decoded ? decoded.toISOString() : \"\"),\n});\n\n\n/**\n * Filter range value\n */\nexport type ParseFilterTupleSchema = z.ZodTuple<[ZodType, ZodType]>;\n\nexport const parseFilterTuple = <TSchema extends ParseFilterTupleSchema>(\n schema: TSchema,\n): ParseFilter<TSchema> => ({\n schema: schema.nullable(),\n decode: (encoded) => (encoded?.split(\"_\") ?? []) as unknown as z.input<TSchema>,\n encode: (decoded) => decoded?.join(\"_\") ?? \"\",\n});\n"],"mappings":";AAcA,MAAa,qBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI;CACzC,SAAS,YAAY,WAAW;CACjC;AAOD,MAAa,oBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ,IAAI,EAAE;CAC/D,SAAS,YAAY,SAAS,KAAK,IAAI,IAAI;CAC5C;AAOD,MAAa,mBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAY;AAEnB,SADc,SAAS,MAAM,CAAC,aAAa;;CAG7C,SAAS,YAAY;CACtB;AAOD,MAAa,sBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAY;AAEnB,SADc,SAAS,MAAM,CAAC,aAAa,KACzB;;CAEpB,SAAS,YAAa,UAAU,SAAS;CAC1C;AAOD,MAAa,uBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,UAAU,IAAI,KAAK,QAAQ,GAAG;CACpD,SAAS,YAAa,UAAU,QAAQ,aAAa,GAAG;CACzD;AAQD,MAAa,oBACX,YAC0B;CAC1B,QAAQ,OAAO,UAAU;CACzB,SAAS,YAAa,SAAS,MAAM,IAAI,IAAI,EAAE;CAC/C,SAAS,YAAY,SAAS,KAAK,IAAI,IAAI;CAC5C"}
@@ -1,11 +1,11 @@
1
1
  import { Table } from "../../../components/table.mjs";
2
- import * as react_jsx_runtime199 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime238 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_runtime199.JSX.Element;
8
+ }>(props: ComponentProps<typeof Table>): react_jsx_runtime238.JSX.Element;
9
9
  //#endregion
10
10
  export { DataTable };
11
11
  //# sourceMappingURL=table.d.mts.map
@@ -1,12 +1,12 @@
1
1
  import { TableCell } from "../../../../components/table.mjs";
2
- import * as react_jsx_runtime190 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime232 from "react/jsx-runtime";
3
3
  import * as React$1 from "react";
4
4
 
5
5
  //#region src/modules/data-tables/tables/inline-table/components/cells/common.d.ts
6
6
  declare function TableInlineCell({
7
7
  className,
8
8
  ...props
9
- }: React$1.ComponentProps<typeof TableCell>): react_jsx_runtime190.JSX.Element;
9
+ }: React$1.ComponentProps<typeof TableCell>): react_jsx_runtime232.JSX.Element;
10
10
  //#endregion
11
11
  export { TableInlineCell };
12
12
  //# sourceMappingURL=common.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { TableColumnDef } from "../../../../lib/types.mjs";
2
2
  import "../../../../../../data-tables.mjs";
3
- import * as react_jsx_runtime188 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime230 from "react/jsx-runtime";
4
4
  import { CellContext } from "@tanstack/react-table";
5
5
 
6
6
  //#region src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.ts
@@ -15,7 +15,7 @@ declare function TableDragHandle<TData, TValue>({
15
15
  row,
16
16
  className,
17
17
  disabled
18
- }: TableDragHandleProps<TData, TValue>): react_jsx_runtime188.JSX.Element;
18
+ }: TableDragHandleProps<TData, TValue>): react_jsx_runtime230.JSX.Element;
19
19
  /**
20
20
  * Create a new column with the drag handle
21
21
  */
@@ -1,5 +1,5 @@
1
1
  import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
2
- import * as react_jsx_runtime191 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime233 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts
5
5
  type AdvancedSelectItem = {
@@ -23,7 +23,7 @@ declare function InlineDataTableAdvancedSelect<TData extends {
23
23
  disabled,
24
24
  autoSelect,
25
25
  className
26
- }: InlineDataTableAdvancedSelectProps<TData, TValue>): react_jsx_runtime191.JSX.Element;
26
+ }: InlineDataTableAdvancedSelectProps<TData, TValue>): react_jsx_runtime233.JSX.Element;
27
27
  //#endregion
28
28
  export { AdvancedSelectItem, InlineDataTableAdvancedSelect, InlineDataTableAdvancedSelectProps };
29
29
  //# sourceMappingURL=advanced-select.client.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
2
- import * as react_jsx_runtime192 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime234 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts
5
5
  type ComboboxItem = {
@@ -21,7 +21,7 @@ declare function InlineDataTableCombobox<TData extends {
21
21
  permission,
22
22
  disabled,
23
23
  ...props
24
- }: InlineDataTableComboboxProps<TData, TValue>): react_jsx_runtime192.JSX.Element;
24
+ }: InlineDataTableComboboxProps<TData, TValue>): react_jsx_runtime234.JSX.Element;
25
25
  //#endregion
26
26
  export { ComboboxItem, InlineDataTableCombobox };
27
27
  //# sourceMappingURL=combobox.client.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { Input } from "../../../../../../components/ui/input.mjs";
2
2
  import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
3
- import * as react_jsx_runtime193 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime228 from "react/jsx-runtime";
4
4
  import { ComponentProps } from "react";
5
5
 
6
6
  //#region src/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts
@@ -20,7 +20,7 @@ declare function InlineDataTableStringInput<TData extends {
20
20
  disabled,
21
21
  className,
22
22
  ...props
23
- }: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime193.JSX.Element;
23
+ }: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime228.JSX.Element;
24
24
  declare function InlineDataTableNumberInput<TData extends {
25
25
  id: string;
26
26
  }, TValue>({
@@ -33,7 +33,7 @@ declare function InlineDataTableNumberInput<TData extends {
33
33
  disabled,
34
34
  className,
35
35
  ...props
36
- }: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime193.JSX.Element;
36
+ }: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime228.JSX.Element;
37
37
  //#endregion
38
38
  export { InlineDataTableInputProps, InlineDataTableNumberInput, InlineDataTableStringInput };
39
39
  //# sourceMappingURL=input.client.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime195 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime235 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts
@@ -6,7 +6,7 @@ declare function InlineDataTableReadOnly({
6
6
  className,
7
7
  children,
8
8
  ...props
9
- }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime195.JSX.Element;
9
+ }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime235.JSX.Element;
10
10
  //#endregion
11
11
  export { InlineDataTableReadOnly };
12
12
  //# sourceMappingURL=read-only.d.mts.map
@@ -1,5 +1,5 @@
1
1
  import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
2
- import * as react_jsx_runtime196 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime237 from "react/jsx-runtime";
3
3
  import React from "react";
4
4
 
5
5
  //#region src/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts
@@ -27,7 +27,7 @@ declare function InlineDataTableSelect<TData extends {
27
27
  renderSelectedItem,
28
28
  disabled,
29
29
  className
30
- }: InlineDataTableSelectProps<TData, TValue>): react_jsx_runtime196.JSX.Element;
30
+ }: InlineDataTableSelectProps<TData, TValue>): react_jsx_runtime237.JSX.Element;
31
31
  //#endregion
32
32
  export { InlineDataTableSelect, InlineDataTableSelectProps, SelectItem };
33
33
  //# sourceMappingURL=select.client.d.mts.map
@@ -1,6 +1,6 @@
1
1
  import { Table } from "../../../components/table.mjs";
2
2
  import { InlineTableProvider } from "../hooks/context.client.mjs";
3
- import * as react_jsx_runtime197 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime236 from "react/jsx-runtime";
4
4
  import { ComponentProps } from "react";
5
5
 
6
6
  //#region src/modules/data-tables/tables/inline-table/components/table.d.ts
@@ -10,7 +10,7 @@ declare function InlineTable<TData extends {
10
10
  disabledColumns,
11
11
  moveRowAction,
12
12
  ...props
13
- }: ComponentProps<typeof Table> & ComponentProps<typeof InlineTableProvider>): react_jsx_runtime197.JSX.Element;
13
+ }: ComponentProps<typeof Table> & ComponentProps<typeof InlineTableProvider>): react_jsx_runtime236.JSX.Element;
14
14
  //#endregion
15
15
  export { InlineTable };
16
16
  //# sourceMappingURL=table.d.mts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime198 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime239 from "react/jsx-runtime";
2
2
  import { PropsWithChildren } from "react";
3
3
  import { VisibilityState } from "@tanstack/react-table";
4
4
 
@@ -41,7 +41,7 @@ declare function InlineTableProvider<TData extends {
41
41
  fromIndex: number;
42
42
  toIndex: number;
43
43
  }) => Promise<unknown>;
44
- }>): react_jsx_runtime198.JSX.Element;
44
+ }>): react_jsx_runtime239.JSX.Element;
45
45
  //#endregion
46
46
  export { InlineTableContextValue, InlineTableProvider, useInlineTableContext };
47
47
  //# sourceMappingURL=context.client.d.mts.map
@@ -1,13 +1,13 @@
1
1
  import { ComboboxDropdownItem, ComboboxDropdownProps } from "../../../components/ui/combobox-dropdown.client.mjs";
2
2
  import { useInlineEditOptions } from "../hooks/use-inline.client.mjs";
3
3
  import { InlineEditVariantsProps } from "../lib/variants.mjs";
4
- import * as react_jsx_runtime159 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
5
5
 
6
6
  //#region src/modules/inline-edit/components/combobox-dropdown.client.d.ts
7
- type InlineEditComboboxDropdownProps<TValue extends ComboboxDropdownItem> = useInlineEditOptions<string> & InlineEditVariantsProps & Omit<ComboboxDropdownProps<TValue>, "onSelect"> & {
7
+ type InlineEditComboboxDropdownProps<TValue extends ComboboxDropdownItem, Required extends boolean = false> = useInlineEditOptions<string, Required> & InlineEditVariantsProps & Omit<ComboboxDropdownProps<TValue>, "onSelect"> & {
8
8
  onSelect?: ComboboxDropdownProps<TValue>["onSelect"];
9
9
  };
10
- declare function InlineComboboxDropdown<TValue extends ComboboxDropdownItem>({
10
+ declare function InlineComboboxDropdown<TValue extends ComboboxDropdownItem, Required extends boolean>({
11
11
  selectedItem,
12
12
  variant,
13
13
  className,
@@ -15,9 +15,11 @@ declare function InlineComboboxDropdown<TValue extends ComboboxDropdownItem>({
15
15
  initialValue,
16
16
  action,
17
17
  permission,
18
+ updateStrategy,
19
+ isRequired,
18
20
  disabled,
19
21
  ...props
20
- }: InlineEditComboboxDropdownProps<TValue>): react_jsx_runtime159.JSX.Element;
22
+ }: InlineEditComboboxDropdownProps<TValue, Required>): react_jsx_runtime1.JSX.Element;
21
23
  //#endregion
22
24
  export { InlineComboboxDropdown, InlineEditComboboxDropdownProps };
23
25
  //# sourceMappingURL=combobox-dropdown.client.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-dropdown.client.d.mts","names":[],"sources":["../../../../src/modules/inline-edit/components/combobox-dropdown.client.tsx"],"sourcesContent":[],"mappings":";;;;;;KAWY,+CAA+C,wBACzD,+BACE,0BACA,KAAK,sBAAsB;aACd,sBAAsB;;AAJ3B,iBAOI,sBAP2B,CAAA,eAOW,oBAPX,CAAA,CAAA;EAAA,YAAA;EAAA,OAAA;EAAA,SAAA;EAAA,QAAA;EAAA,YAAA;EAAA,MAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAiBxC,+BAjBwC,CAiBR,MAjBQ,CAAA,CAAA,EAiBD,oBAAA,CAAA,GAAA,CAAA,OAjBC"}
1
+ {"version":3,"file":"combobox-dropdown.client.d.mts","names":[],"sources":["../../../../src/modules/inline-edit/components/combobox-dropdown.client.tsx"],"sourcesContent":[],"mappings":";;;;;;KAWY,+CACK,0DAEb,6BAA6B,YAC/B,0BACA,KAAK,sBAAsB;aACd,sBAAsB;;AANzB,iBASI,sBAT2B,CAAA,eAU1B,oBAV0B,EAAA,iBAAA,OAAA,CAAA,CAAA;EAAA,YAAA;EAAA,OAAA;EAAA,SAAA;EAAA,QAAA;EAAA,YAAA;EAAA,MAAA;EAAA,UAAA;EAAA,cAAA;EAAA,UAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAwBxC,+BAxBwC,CAwBR,MAxBQ,EAwBA,QAxBA,CAAA,CAAA,EAwBS,kBAAA,CAAA,GAAA,CAAA,OAxBT"}
@@ -7,21 +7,26 @@ import { inlineEditVariants } from "../lib/variants.mjs";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
 
9
9
  //#region src/modules/inline-edit/components/combobox-dropdown.client.tsx
10
- function InlineComboboxDropdown({ selectedItem, variant, className, onSelect, initialValue, action, permission, disabled, ...props }) {
11
- const { setValue, handleUpdate, isAllowed } = useInlineEdit({
10
+ function InlineComboboxDropdown({ selectedItem, variant, className, onSelect, initialValue, action, permission, updateStrategy, isRequired, disabled, ...props }) {
11
+ const { handleChange, handleBlur, isAllowed, status } = useInlineEdit({
12
12
  initialValue,
13
13
  action,
14
- permission
14
+ permission,
15
+ updateStrategy,
16
+ isRequired
15
17
  });
16
18
  const initialSelectedItem = props.items.find((item) => item.id === initialValue);
17
19
  return /* @__PURE__ */ jsx(ComboboxDropdown, {
18
20
  ...props,
19
- className: cn(inlineEditVariants({ variant }), className),
21
+ className: cn(inlineEditVariants({
22
+ variant,
23
+ status
24
+ }), className),
20
25
  disabled: disabled || !isAllowed,
21
26
  selectedItem: selectedItem ?? initialSelectedItem,
22
27
  onSelect: (event) => {
23
- setValue(event.id);
24
- handleUpdate(event.id);
28
+ handleChange(event.id ?? null);
29
+ handleBlur(event.id ?? null);
25
30
  onSelect?.(event);
26
31
  }
27
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"combobox-dropdown.client.mjs","names":[],"sources":["../../../../src/modules/inline-edit/components/combobox-dropdown.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n ComboboxDropdown,\n ComboboxDropdownItem,\n type ComboboxDropdownProps,\n} from \"@/components/ui/combobox-dropdown.client\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { useInlineEdit, type useInlineEditOptions } from \"../hooks/use-inline.client\";\nimport { inlineEditVariants, InlineEditVariantsProps } from \"../lib/variants\";\n\nexport type InlineEditComboboxDropdownProps<TValue extends ComboboxDropdownItem> =\n useInlineEditOptions<string> &\n InlineEditVariantsProps &\n Omit<ComboboxDropdownProps<TValue>, \"onSelect\"> & {\n onSelect?: ComboboxDropdownProps<TValue>[\"onSelect\"];\n };\n\nexport function InlineComboboxDropdown<TValue extends ComboboxDropdownItem>({\n selectedItem,\n variant,\n className,\n onSelect,\n initialValue,\n action,\n permission,\n disabled,\n ...props\n}: InlineEditComboboxDropdownProps<TValue>) {\n const { setValue, handleUpdate, isAllowed } = useInlineEdit({\n initialValue,\n action,\n permission,\n });\n\n const initialSelectedItem = props.items.find((item) => item.id === initialValue);\n\n return (\n <ComboboxDropdown\n {...props}\n className={cn(inlineEditVariants({ variant }), className)}\n disabled={disabled || !isAllowed}\n selectedItem={selectedItem ?? initialSelectedItem}\n onSelect={(event) => {\n setValue(event.id);\n handleUpdate(event.id);\n onSelect?.(event);\n }}\n />\n );\n}\n"],"mappings":";;;;;;;;;AAkBA,SAAgB,uBAA4D,EAC1E,cACA,SACA,WACA,UACA,cACA,QACA,YACA,UACA,GAAG,SACuC;CAC1C,MAAM,EAAE,UAAU,cAAc,cAAc,cAAc;EAC1D;EACA;EACA;EACD,CAAC;CAEF,MAAM,sBAAsB,MAAM,MAAM,MAAM,SAAS,KAAK,OAAO,aAAa;AAEhF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GAAG,mBAAmB,EAAE,SAAS,CAAC,EAAE,UAAU;EACzD,UAAU,YAAY,CAAC;EACvB,cAAc,gBAAgB;EAC9B,WAAW,UAAU;AACnB,YAAS,MAAM,GAAG;AAClB,gBAAa,MAAM,GAAG;AACtB,cAAW,MAAM;;GAEnB"}
1
+ {"version":3,"file":"combobox-dropdown.client.mjs","names":[],"sources":["../../../../src/modules/inline-edit/components/combobox-dropdown.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n ComboboxDropdown,\n ComboboxDropdownItem,\n type ComboboxDropdownProps,\n} from \"@/components/ui/combobox-dropdown.client\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { useInlineEdit, type useInlineEditOptions } from \"../hooks/use-inline.client\";\nimport { inlineEditVariants, InlineEditVariantsProps } from \"../lib/variants\";\n\nexport type InlineEditComboboxDropdownProps<\n TValue extends ComboboxDropdownItem,\n Required extends boolean = false,\n> = useInlineEditOptions<string, Required> &\n InlineEditVariantsProps &\n Omit<ComboboxDropdownProps<TValue>, \"onSelect\"> & {\n onSelect?: ComboboxDropdownProps<TValue>[\"onSelect\"];\n };\n\nexport function InlineComboboxDropdown<\n TValue extends ComboboxDropdownItem,\n Required extends boolean,\n>({\n selectedItem,\n variant,\n className,\n onSelect,\n initialValue,\n action,\n permission,\n updateStrategy,\n isRequired,\n disabled,\n ...props\n}: InlineEditComboboxDropdownProps<TValue, Required>) {\n const { handleChange, handleBlur, isAllowed, status } = useInlineEdit({\n initialValue,\n action,\n permission,\n updateStrategy,\n isRequired,\n });\n\n const initialSelectedItem = props.items.find((item) => item.id === initialValue);\n\n return (\n <ComboboxDropdown\n {...props}\n className={cn(inlineEditVariants({ variant, status }), className)}\n disabled={disabled || !isAllowed}\n selectedItem={selectedItem ?? initialSelectedItem}\n onSelect={(event) => {\n handleChange(event.id ?? null);\n handleBlur(event.id ?? null);\n onSelect?.(event);\n }}\n />\n );\n}\n"],"mappings":";;;;;;;;;AAoBA,SAAgB,uBAGd,EACA,cACA,SACA,WACA,UACA,cACA,QACA,YACA,gBACA,YACA,UACA,GAAG,SACiD;CACpD,MAAM,EAAE,cAAc,YAAY,WAAW,WAAW,cAAc;EACpE;EACA;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,sBAAsB,MAAM,MAAM,MAAM,SAAS,KAAK,OAAO,aAAa;AAEhF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GAAG,mBAAmB;GAAE;GAAS;GAAQ,CAAC,EAAE,UAAU;EACjE,UAAU,YAAY,CAAC;EACvB,cAAc,gBAAgB;EAC9B,WAAW,UAAU;AACnB,gBAAa,MAAM,MAAM,KAAK;AAC9B,cAAW,MAAM,MAAM,KAAK;AAC5B,cAAW,MAAM;;GAEnB"}