@tulip-systems/core 0.5.2 → 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.
- package/dist/auth/client.d.mts +3 -3
- package/dist/auth/client.mjs +2 -2
- package/dist/components/client.d.mts +2 -2
- package/dist/components/common/icons.d.mts +2 -2
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/common/status.d.mts.map +1 -1
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +6 -6
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.mjs +2 -2
- package/dist/components/editor/components/editor.client.mjs.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.mjs +3 -0
- package/dist/components/editor/components/menu.client.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts +21 -0
- package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -0
- package/dist/components/editor/extensions/file-handler/extension.mjs +40 -0
- package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -0
- package/dist/components/editor/extensions/file-handler/strategy.d.mts +29 -0
- package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -0
- package/dist/components/editor/extensions/file-handler/strategy.mjs +111 -0
- package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -0
- package/dist/components/editor/extensions/file-handler/utils.mjs +50 -0
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -0
- package/dist/components/editor/extensions/image/extension.d.mts +8 -0
- package/dist/components/editor/extensions/image/extension.d.mts.map +1 -0
- package/dist/components/editor/extensions/image/extension.mjs +51 -0
- package/dist/components/editor/extensions/image/extension.mjs.map +1 -0
- package/dist/components/editor/extensions/skeleton/extension.mjs +41 -0
- package/dist/components/editor/extensions/skeleton/extension.mjs.map +1 -0
- package/dist/components/editor/extensions/skeleton/renderer.mjs +25 -0
- package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -0
- package/dist/components/editor/lib/constants.d.mts +31 -28
- package/dist/components/editor/lib/constants.d.mts.map +1 -1
- package/dist/components/editor/lib/constants.mjs +17 -5
- package/dist/components/editor/lib/constants.mjs.map +1 -1
- package/dist/components/editor/lib/extensions.d.mts +7 -3
- package/dist/components/editor/lib/extensions.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.mjs.map +1 -1
- package/dist/components/editor/lib/helpers.d.mts.map +1 -1
- package/dist/components/editor/lib/helpers.mjs +38 -3
- package/dist/components/editor/lib/helpers.mjs.map +1 -1
- package/dist/components/editor/lib/variants.mjs +10 -2
- package/dist/components/editor/lib/variants.mjs.map +1 -1
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.d.mts.map +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/header.client.d.mts.map +1 -1
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts.map +1 -1
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-content.client.d.mts.map +1 -1
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts.map +1 -1
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.d.mts +23 -0
- package/dist/components/layouts/error-page.d.mts.map +1 -0
- package/dist/components/layouts/error-page.mjs +58 -0
- package/dist/components/layouts/error-page.mjs.map +1 -0
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/list-layout.d.mts.map +1 -1
- package/dist/components/layouts/not-allowed-page.d.mts +22 -0
- package/dist/components/layouts/not-allowed-page.d.mts.map +1 -0
- package/dist/components/layouts/not-allowed-page.mjs +25 -0
- package/dist/components/layouts/not-allowed-page.mjs.map +1 -0
- package/dist/components/layouts/not-found-page.d.mts +3 -3
- package/dist/components/layouts/not-found-page.d.mts.map +1 -1
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts.map +1 -1
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/root-loading.d.mts.map +1 -1
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts.map +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-list.d.mts.map +1 -1
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/lists/data-stack.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +21 -11
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs +7 -5
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/accordion.d.mts.map +1 -1
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert-dialog.d.mts.map +1 -1
- package/dist/components/ui/alert.d.mts +6 -6
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/aspect-ratio.d.mts.map +1 -1
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/badge.d.mts +4 -4
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/breadcrumb.d.mts.map +1 -1
- package/dist/components/ui/button.d.mts +5 -5
- package/dist/components/ui/button.d.mts.map +1 -1
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/calendar.d.mts.map +1 -1
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/card.d.mts.map +1 -1
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/carousel.d.mts.map +1 -1
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/checkbox.d.mts.map +1 -1
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/color-picker.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts.map +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/command.d.mts.map +1 -1
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/context-menu.d.mts.map +1 -1
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.d.mts.map +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/form.client.d.mts.map +1 -1
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/hover-card.client.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/progress.client.d.mts.map +1 -1
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/resizable.client.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/select.client.d.mts.map +1 -1
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sheet.client.d.mts.map +1 -1
- package/dist/components/ui/sidebar.client.d.mts +26 -26
- package/dist/components/ui/sidebar.client.d.mts.map +1 -1
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/time-input.client.d.mts +2 -2
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle.d.mts +2 -2
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.mjs +1 -1
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +4 -1
- package/dist/components.mjs +5 -2
- package/dist/data-tables.d.mts +2 -2
- package/dist/data-tables.mjs +2 -2
- package/dist/inline-edit/client.d.mts +2 -3
- package/dist/inline-edit/client.mjs +1 -2
- package/dist/lib/client.d.mts +2 -2
- package/dist/lib/client.mjs +2 -2
- package/dist/lib/hooks/use-action.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts +11 -3
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs +19 -8
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +21 -7
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- package/dist/modules/auth/components/allowed.client.mjs +8 -2
- package/dist/modules/auth/components/allowed.client.mjs.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/handler/client.client.d.mts +143 -143
- package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +131 -131
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts +48 -4
- package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.mjs +51 -4
- package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
- package/dist/modules/auth/lib/helpers.server.mjs +1 -1
- package/dist/modules/auth/lib/validators.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs +0 -5
- package/dist/modules/commands/hooks/use-command-menu.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/lib/filters/parsers.d.mts +6 -1
- package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs +6 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +11 -6
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +7 -5
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +5 -3
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs +26 -13
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +12 -7
- package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +11 -6
- package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs +11 -6
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +9 -7
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +13 -10
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +35 -19
- package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +10 -9
- package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.mjs +14 -7
- package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +5 -3
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs +8 -6
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.mts +6 -4
- package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +9 -7
- package/dist/modules/inline-edit/components/toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +35 -3
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +71 -9
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +1 -0
- package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs +12 -4
- package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
- package/dist/modules/router/handler/init.server.d.mts +4 -4
- package/dist/modules/router/handler/init.server.mjs +1 -1
- package/dist/modules/router/lib/query-client.server.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.mjs +2 -2
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +3 -11
- package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts +10 -33
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +19 -93
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/config/filters.d.mts +1 -0
- package/dist/modules/storage/config/filters.d.mts.map +1 -1
- package/dist/modules/storage/config/filters.mjs +1 -0
- package/dist/modules/storage/config/filters.mjs.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts +56 -0
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -0
- package/dist/modules/storage/lib/create-upload.client.mjs +98 -0
- package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -0
- package/dist/modules/storage/lib/helpers.d.mts +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +3239 -2319
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.mjs +5 -2
- package/dist/modules/storage/lib/router.server.mjs.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +124 -90
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +2 -1
- package/dist/modules/storage/lib/schema.mjs.map +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +28 -39
- package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/service.server.mjs +6 -6
- package/dist/modules/storage/lib/service.server.mjs.map +1 -1
- package/dist/modules/storage/lib/validators.d.mts +166 -86
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/lib/validators.mjs +2 -1
- package/dist/modules/storage/lib/validators.mjs.map +1 -1
- package/dist/router/server.mjs +1 -1
- package/dist/storage/client.d.mts +2 -1
- package/dist/storage/client.mjs +2 -8
- package/dist/storage.d.mts +2 -2
- package/dist/storage.mjs +1 -1
- package/package.json +4 -3
- package/src/components/editor/components/editor.client.tsx +7 -2
- package/src/components/editor/components/menu.client.tsx +26 -0
- package/src/components/editor/extensions/file-handler/extension.ts +69 -0
- package/src/components/editor/extensions/file-handler/strategy.ts +167 -0
- package/src/components/editor/extensions/file-handler/utils.ts +51 -0
- package/src/components/editor/extensions/image/extension.ts +55 -0
- package/src/components/editor/extensions/skeleton/extension.ts +35 -0
- package/src/components/editor/extensions/skeleton/renderer.tsx +14 -0
- package/src/components/editor/lib/constants.ts +16 -2
- package/src/components/editor/lib/extensions.ts +4 -1
- package/src/components/editor/lib/helpers.ts +39 -3
- package/src/components/editor/lib/utils.ts +32 -0
- package/src/components/editor/lib/variants.ts +72 -1
- package/src/components/entry.ts +4 -1
- package/src/components/layouts/error-page.tsx +61 -0
- package/src/components/layouts/not-allowed-page.tsx +1 -1
- package/src/components/navigation/admin-sidebar-paths.client.tsx +18 -2
- package/src/components/ui/tooltip.client.tsx +1 -1
- package/src/lib/hooks/use-indicator.tsx +27 -18
- package/src/modules/auth/components/allowed.client.tsx +35 -7
- package/src/modules/auth/hooks/use-permission.ts +88 -2
- package/src/modules/commands/hooks/use-command-menu.client.tsx +4 -7
- package/src/modules/data-tables/lib/filters/parsers.ts +14 -0
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +21 -12
- package/src/modules/inline-edit/components/combobox.client.tsx +13 -6
- package/src/modules/inline-edit/components/date-input.client.tsx +29 -13
- package/src/modules/inline-edit/components/date-picker.client.tsx +13 -9
- package/src/modules/inline-edit/components/editor.client.tsx +14 -14
- package/src/modules/inline-edit/components/input-recipient.client.tsx +15 -8
- package/src/modules/inline-edit/components/input-toggle.client.tsx +16 -9
- package/src/modules/inline-edit/components/input.client.tsx +38 -24
- package/src/modules/inline-edit/components/select.client.tsx +16 -9
- package/src/modules/inline-edit/components/switch.client.tsx +10 -6
- package/src/modules/inline-edit/components/toggle.client.tsx +13 -9
- package/src/modules/inline-edit/entry.client.ts +0 -1
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +139 -20
- package/src/modules/inline-edit/lib/variants.ts +7 -0
- package/src/modules/storage/components/image-grid.client.tsx +2 -2
- package/src/modules/storage/components/upload-zone-context.client.tsx +3 -4
- package/src/modules/storage/components/upload-zone.client.tsx +17 -116
- package/src/modules/storage/config/filters.ts +1 -0
- package/src/modules/storage/entry.client.ts +2 -1
- package/src/modules/storage/lib/create-upload.client.ts +134 -0
- package/src/modules/storage/lib/router.server.ts +1 -0
- package/src/modules/storage/lib/schema.ts +1 -0
- package/src/modules/storage/lib/service.server.ts +10 -4
- package/src/modules/storage/lib/validators.ts +1 -0
- package/dist/modules/auth/lib/utils.mjs +0 -21
- package/dist/modules/auth/lib/utils.mjs.map +0 -1
- package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts +0 -21
- package/dist/modules/inline-edit/components/deprecated-editor.client.d.mts.map +0 -1
- package/dist/modules/inline-edit/components/deprecated-editor.client.mjs +0 -37
- package/dist/modules/inline-edit/components/deprecated-editor.client.mjs.map +0 -1
- package/dist/storage/client.mjs.map +0 -1
- package/src/modules/inline-edit/components/deprecated-editor.client.tsx +0 -48
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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>):
|
|
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
|
|
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):
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
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>):
|
|
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">):
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
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>):
|
|
13
|
+
}: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime321.JSX.Element | null;
|
|
14
14
|
declare function InlineCommandMenuLoading({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: ComponentProps<"div">):
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
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>):
|
|
7
|
-
declare function ResponsiveCommandMenuLoading():
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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>):
|
|
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>):
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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>):
|
|
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>):
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
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:
|
|
11
|
-
createdAt:
|
|
12
|
-
updatedAt:
|
|
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,
|
|
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
|
|
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>):
|
|
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>):
|
|
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>):
|
|
20
|
+
}: ComponentProps<typeof TableCell>): react_jsx_runtime350.JSX.Element;
|
|
21
21
|
declare function TableStatusCell({
|
|
22
22
|
children,
|
|
23
23
|
...props
|
|
24
|
-
}: ComponentProps<typeof TableCell>):
|
|
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
|
|
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>):
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
|
-
import * as
|
|
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>):
|
|
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
|
|
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):
|
|
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
|
|
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">):
|
|
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">):
|
|
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>):
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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">):
|
|
9
|
+
}: ComponentProps<"div">): react_jsx_runtime373.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { TableLayout };
|
|
12
12
|
//# sourceMappingURL=layout.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
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():
|
|
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
|
|
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():
|
|
4
|
+
declare function TableSkeleton(): react_jsx_runtime374.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { TableSkeleton };
|
|
7
7
|
//# sourceMappingURL=skeleton.d.mts.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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">):
|
|
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
|
-
}):
|
|
27
|
+
}): react_jsx_runtime375.JSX.Element;
|
|
28
28
|
declare function TableCaption({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentProps<"caption">):
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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):
|
|
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):
|
|
20
|
+
}: TableToolbarListProps): react_jsx_runtime381.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { TableToolbar, TableToolbarList };
|
|
23
23
|
//# sourceMappingURL=toolbar.d.mts.map
|
|
@@ -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
|
|
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
|
-
}>):
|
|
47
|
+
}>): react_jsx_runtime358.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,
|
|
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
|
|
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>):
|
|
8
|
+
}>(props: ComponentProps<typeof Table>): react_jsx_runtime368.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
|
|
2
|
+
import * as react_jsx_runtime359 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>):
|
|
9
|
+
}: React$1.ComponentProps<typeof TableCell>): react_jsx_runtime359.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { TableInlineCell };
|
|
12
12
|
//# sourceMappingURL=common.d.mts.map
|
package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableColumnDef } from "../../../../lib/types.mjs";
|
|
2
2
|
import "../../../../../../data-tables.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime357 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>):
|
|
18
|
+
}: TableDragHandleProps<TData, TValue>): react_jsx_runtime357.JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* Create a new column with the drag handle
|
|
21
21
|
*/
|
package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime360 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>):
|
|
26
|
+
}: InlineDataTableAdvancedSelectProps<TData, TValue>): react_jsx_runtime360.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { AdvancedSelectItem, InlineDataTableAdvancedSelect, InlineDataTableAdvancedSelectProps };
|
|
29
29
|
//# sourceMappingURL=advanced-select.client.d.mts.map
|
package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseInlineDataTableInputParams } from "../../hooks/use-input.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime361 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>):
|
|
24
|
+
}: InlineDataTableComboboxProps<TData, TValue>): react_jsx_runtime361.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
|
|
3
|
+
import * as react_jsx_runtime362 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>):
|
|
23
|
+
}: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime362.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>):
|
|
36
|
+
}: InlineDataTableInputProps<TData, TValue>): react_jsx_runtime362.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
|
|
1
|
+
import * as react_jsx_runtime364 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>):
|
|
9
|
+
}: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime364.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
|
|
2
|
+
import * as react_jsx_runtime365 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>):
|
|
30
|
+
}: InlineDataTableSelectProps<TData, TValue>): react_jsx_runtime365.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { InlineDataTableSelect, InlineDataTableSelectProps, SelectItem };
|
|
33
33
|
//# sourceMappingURL=select.client.d.mts.map
|