@tulip-systems/core 0.5.16 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/server.d.mts +1 -1
- package/dist/auth/server.mjs +1 -1
- package/dist/commands/client.d.mts +2 -1
- package/dist/commands/client.mjs +2 -1
- package/dist/components/client.d.mts +1 -1
- package/dist/components/client.mjs +1 -1
- package/dist/components/common/icons.d.mts +52 -52
- package/dist/components/common/icons.d.mts.map +1 -1
- package/dist/components/common/icons.mjs.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/common/status.mjs.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/content.client.mjs.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-nodes.client.mjs +3 -3
- package/dist/components/editor/components/menu-nodes.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.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.d.mts.map +1 -1
- package/dist/components/editor/extensions/file-handler/strategy.mjs.map +1 -1
- package/dist/components/editor/extensions/file-handler/utils.mjs.map +1 -1
- package/dist/components/editor/extensions/image/extension.d.mts.map +1 -1
- package/dist/components/editor/extensions/image/extension.mjs.map +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs +1 -1
- package/dist/components/editor/extensions/skeleton/renderer.mjs.map +1 -1
- package/dist/components/editor/lib/constants.d.mts +27 -27
- package/dist/components/editor/lib/constants.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.d.mts +0 -1
- package/dist/components/editor/lib/extensions.d.mts.map +1 -1
- package/dist/components/editor/lib/extensions.mjs +6 -8
- package/dist/components/editor/lib/extensions.mjs.map +1 -1
- package/dist/components/editor/lib/helpers.d.mts +0 -1
- package/dist/components/editor/lib/helpers.d.mts.map +1 -1
- package/dist/components/editor/lib/helpers.mjs.map +1 -1
- package/dist/components/editor/lib/types.d.mts +0 -1
- package/dist/components/editor/lib/types.d.mts.map +1 -1
- package/dist/components/editor/lib/variants.mjs.map +1 -1
- package/dist/components/emails/forget-password-email.mjs +1 -2
- package/dist/components/emails/forget-password-email.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/back-button.client.mjs.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/bottom-bar.client.mjs.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/breadcrumbs.client.mjs.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/header.client.mjs.map +1 -1
- package/dist/components/header/indicator.client.mjs.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/header/top-bar.client.mjs.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-content.client.mjs.map +1 -1
- package/dist/components/layouts/admin-error-pages.d.mts +4 -4
- package/dist/components/layouts/admin-error-pages.d.mts.map +1 -1
- package/dist/components/layouts/admin-error-pages.mjs.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-layout.mjs.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/admin-loading.mjs.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/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.d.mts +9 -9
- package/dist/components/layouts/error-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/error-sections.d.mts +5 -5
- package/dist/components/layouts/error-sections.d.mts.map +1 -1
- package/dist/components/layouts/error-sections.mjs.map +1 -1
- 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/list-layout.mjs.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/providers.client.mjs +1 -1
- package/dist/components/layouts/providers.client.mjs.map +1 -1
- package/dist/components/layouts/root-error-pages.d.mts +2 -2
- package/dist/components/layouts/root-error-pages.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-layout.server.mjs.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/layouts/tab-layout.mjs +3 -3
- package/dist/components/layouts/tab-layout.mjs.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-list.mjs.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/lists/data-stack.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-header.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs.map +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.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/accordion.mjs +0 -1
- package/dist/components/ui/accordion.mjs.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-dialog.mjs +0 -1
- package/dist/components/ui/alert-dialog.mjs.map +1 -1
- package/dist/components/ui/alert.d.mts +4 -4
- package/dist/components/ui/alert.d.mts.map +1 -1
- package/dist/components/ui/alert.mjs +0 -1
- package/dist/components/ui/alert.mjs.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/avatar.client.mjs +0 -1
- package/dist/components/ui/avatar.client.mjs.map +1 -1
- package/dist/components/ui/badge.d.mts +3 -3
- package/dist/components/ui/badge.d.mts.map +1 -1
- package/dist/components/ui/badge.mjs +0 -1
- package/dist/components/ui/badge.mjs.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/breadcrumb.mjs +1 -2
- package/dist/components/ui/breadcrumb.mjs.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/button.mjs +0 -1
- package/dist/components/ui/button.mjs.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/calendar.mjs +12 -12
- package/dist/components/ui/calendar.mjs.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/card.mjs +0 -1
- package/dist/components/ui/card.mjs.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/carousel.mjs +4 -4
- package/dist/components/ui/carousel.mjs.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/chart.client.mjs +6 -6
- package/dist/components/ui/chart.client.mjs.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/checkbox.mjs +0 -1
- package/dist/components/ui/checkbox.mjs.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/color-picker.client.mjs +6 -5
- package/dist/components/ui/color-picker.client.mjs.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -3
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.mjs +3 -3
- package/dist/components/ui/combobox-dropdown.client.mjs.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/combobox.client.mjs +2 -2
- package/dist/components/ui/combobox.client.mjs.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/command.mjs +0 -1
- package/dist/components/ui/command.mjs.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/context-menu.mjs +0 -1
- package/dist/components/ui/context-menu.mjs.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/date-picker.client.mjs +3 -3
- package/dist/components/ui/date-picker.client.mjs.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/dialog.client.mjs +0 -1
- package/dist/components/ui/dialog.client.mjs.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/drawer.client.mjs +0 -1
- package/dist/components/ui/drawer.client.mjs.map +1 -1
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/dropdown-menu.d.mts.map +1 -1
- package/dist/components/ui/dropdown-menu.mjs +0 -1
- package/dist/components/ui/dropdown-menu.mjs.map +1 -1
- 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/form.client.mjs.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/hover-card.client.mjs +0 -1
- package/dist/components/ui/hover-card.client.mjs.map +1 -1
- package/dist/components/ui/input-date-time.d.mts +6 -6
- package/dist/components/ui/input-date-time.d.mts.map +1 -1
- package/dist/components/ui/input-date-time.mjs +4 -6
- package/dist/components/ui/input-date-time.mjs.map +1 -1
- package/dist/components/ui/input-date.d.mts +2 -2
- package/dist/components/ui/input-date.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input-recipient.d.mts.map +1 -1
- package/dist/components/ui/input-recipient.mjs +2 -2
- package/dist/components/ui/input-recipient.mjs.map +1 -1
- package/dist/components/ui/input-time.d.mts +2 -2
- package/dist/components/ui/input-time.d.mts.map +1 -1
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/input.d.mts.map +1 -1
- package/dist/components/ui/input.mjs +0 -1
- package/dist/components/ui/input.mjs.map +1 -1
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/label.d.mts.map +1 -1
- package/dist/components/ui/label.mjs +0 -1
- package/dist/components/ui/label.mjs.map +1 -1
- package/dist/components/ui/navigation-menu.d.mts +11 -11
- package/dist/components/ui/navigation-menu.d.mts.map +1 -1
- package/dist/components/ui/navigation-menu.mjs +0 -1
- package/dist/components/ui/navigation-menu.mjs.map +1 -1
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/pagination.d.mts.map +1 -1
- package/dist/components/ui/pagination.mjs +0 -1
- package/dist/components/ui/pagination.mjs.map +1 -1
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/popover.d.mts.map +1 -1
- package/dist/components/ui/popover.mjs +0 -1
- package/dist/components/ui/popover.mjs.map +1 -1
- 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/progress.client.mjs +0 -1
- package/dist/components/ui/progress.client.mjs.map +1 -1
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/radio-group.d.mts.map +1 -1
- package/dist/components/ui/radio-group.mjs +0 -1
- package/dist/components/ui/radio-group.mjs.map +1 -1
- 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/resizable.client.mjs +0 -1
- package/dist/components/ui/resizable.client.mjs.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/scroll-area.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.mjs +0 -1
- package/dist/components/ui/scroll-area.mjs.map +1 -1
- 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/select.client.mjs +0 -1
- package/dist/components/ui/select.client.mjs.map +1 -1
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/separator.d.mts.map +1 -1
- package/dist/components/ui/separator.mjs +0 -1
- package/dist/components/ui/separator.mjs.map +1 -1
- 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/sheet.client.mjs +0 -1
- package/dist/components/ui/sheet.client.mjs.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/sidebar.client.mjs +2 -2
- package/dist/components/ui/sidebar.client.mjs.map +1 -1
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/skeleton.d.mts.map +1 -1
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/slider.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts.map +1 -1
- package/dist/components/ui/sonner.client.mjs.map +1 -1
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/switch.d.mts.map +1 -1
- package/dist/components/ui/switch.mjs +0 -1
- package/dist/components/ui/switch.mjs.map +1 -1
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/tabs.d.mts.map +1 -1
- package/dist/components/ui/tabs.mjs +0 -1
- package/dist/components/ui/tabs.mjs.map +1 -1
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/textarea.d.mts.map +1 -1
- package/dist/components/ui/textarea.mjs +0 -1
- package/dist/components/ui/textarea.mjs.map +1 -1
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle-group.client.d.mts.map +1 -1
- package/dist/components/ui/toggle-group.client.mjs.map +1 -1
- package/dist/components/ui/toggle.d.mts +4 -4
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/toggle.mjs +0 -1
- package/dist/components/ui/toggle.mjs.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 +0 -1
- package/dist/components/ui/tooltip.client.mjs.map +1 -1
- package/dist/components.d.mts +1 -1
- package/dist/components.mjs +1 -1
- package/dist/data-tables/client.d.mts +4 -4
- package/dist/data-tables/client.mjs +4 -4
- package/dist/inline-edit/client.d.mts +4 -4
- package/dist/inline-edit/client.mjs +2 -2
- package/dist/lib/config/constants.d.mts.map +1 -1
- package/dist/lib/config/constants.mjs.map +1 -1
- package/dist/lib/hooks/use-action.d.mts +0 -1
- package/dist/lib/hooks/use-action.d.mts.map +1 -1
- package/dist/lib/hooks/use-action.mjs.map +1 -1
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts.map +1 -1
- package/dist/lib/hooks/use-indicator.mjs +14 -11
- package/dist/lib/hooks/use-indicator.mjs.map +1 -1
- package/dist/lib/hooks/use-mobile.client.d.mts.map +1 -1
- package/dist/lib/types/config.d.mts.map +1 -1
- package/dist/lib/utils/array-move.d.mts.map +1 -1
- package/dist/lib/utils/cn.d.mts.map +1 -1
- package/dist/lib/utils/cn.mjs.map +1 -1
- package/dist/lib/utils/fonts.d.mts.map +1 -1
- package/dist/lib/utils/format.d.mts.map +1 -1
- package/dist/lib/utils/manifest.d.mts.map +1 -1
- package/dist/lib/utils/manifest.mjs.map +1 -1
- package/dist/lib/utils/url.d.mts.map +1 -1
- package/dist/lib/utils/url.mjs +1 -1
- package/dist/lib/utils/url.mjs.map +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +2 -2
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- 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-layout.server.mjs +1 -1
- package/dist/modules/auth/components/auth-layout.server.mjs.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/create-first-user-page.client.mjs +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs.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/forget-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/forget-password-page.client.mjs.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-first-user.server.mjs.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/guard.server.mjs.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/login-page.client.mjs +1 -1
- package/dist/modules/auth/components/login-page.client.mjs.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/reset-password-page.client.mjs +2 -2
- package/dist/modules/auth/components/reset-password-page.client.mjs.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/components/update-password-command.mjs +0 -1
- package/dist/modules/auth/components/update-password-command.mjs.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/db/schema.mjs +1 -1
- package/dist/modules/auth/db/schema.mjs.map +1 -1
- package/dist/modules/auth/handler/create-client.client.d.mts +159 -159
- package/dist/modules/auth/handler/create-client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/create-client.client.mjs.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +98 -98
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.mjs +2 -2
- package/dist/modules/auth/handler/init.mjs.map +1 -1
- package/dist/modules/auth/handler/proxy.server.d.mts +0 -1
- package/dist/modules/auth/handler/proxy.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/proxy.server.mjs +0 -1
- package/dist/modules/auth/handler/proxy.server.mjs.map +1 -1
- package/dist/modules/auth/handler/route.server.d.mts +0 -1
- package/dist/modules/auth/handler/route.server.d.mts.map +1 -1
- package/dist/modules/auth/handler/route.server.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.d.mts +4 -4
- package/dist/modules/auth/hooks/use-auth-client.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-auth-client.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.mjs +2 -2
- package/dist/modules/auth/hooks/use-permission.mjs.map +1 -1
- package/dist/modules/auth/hooks/use-session.d.mts +2 -2
- package/dist/modules/auth/hooks/use-session.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-session.mjs.map +1 -1
- package/dist/modules/auth/lib/helpers.server.d.mts.map +1 -1
- package/dist/modules/auth/lib/helpers.server.mjs +2 -2
- package/dist/modules/auth/lib/helpers.server.mjs.map +1 -1
- package/dist/modules/auth/lib/permissions.d.mts.map +1 -1
- package/dist/modules/auth/lib/validators.d.mts +2 -3
- 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/alert-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/click-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.mjs +0 -1
- package/dist/modules/commands/components/click-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.d.mts +6 -6
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.mjs.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/dropdown-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/dropdown-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/empty-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/empty-command.client.mjs +0 -1
- package/dist/modules/commands/components/empty-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.d.mts.map +1 -1
- package/dist/modules/commands/components/form-dialog-command.client.mjs.map +1 -1
- package/dist/modules/commands/components/render-command.mjs.map +1 -1
- package/dist/modules/commands/hooks/context.client.mjs.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts +8 -1
- package/dist/modules/commands/hooks/use-command-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-menu.client.mjs +1 -1
- 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/hooks/use-command-mutation.client.d.mts.map +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.mjs.map +1 -1
- package/dist/modules/commands/lib/definitions.d.mts +0 -1
- package/dist/modules/commands/lib/definitions.d.mts.map +1 -1
- package/dist/modules/commands/lib/factory.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/context-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/context-menu.client.mjs +5 -5
- package/dist/modules/commands/menus/context-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/dropdown-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/floating-menu.client.d.mts +19 -0
- package/dist/modules/commands/menus/floating-menu.client.d.mts.map +1 -0
- package/dist/modules/commands/menus/{data-table-menu.client.mjs → floating-menu.client.mjs} +10 -10
- package/dist/modules/commands/menus/floating-menu.client.mjs.map +1 -0
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs +0 -1
- package/dist/modules/commands/menus/inline-menu.client.mjs.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts.map +1 -1
- package/dist/modules/commands/menus/responsive-menu.client.mjs.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/archive-command.client.mjs.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts.map +1 -1
- package/dist/modules/commands/utils/delete-command.client.mjs.map +1 -1
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/config/db/helpers.d.mts.map +1 -1
- package/dist/modules/config/db/helpers.mjs.map +1 -1
- package/dist/modules/config/db/init.d.mts.map +1 -1
- package/dist/modules/config/db/init.mjs.map +1 -1
- package/dist/modules/config/db/types.d.mts.map +1 -1
- package/dist/modules/config/lib/config.d.mts.map +1 -1
- package/dist/modules/config/lib/context.d.mts.map +1 -1
- package/dist/modules/config/lib/context.mjs.map +1 -1
- package/dist/modules/config/paths/helpers.d.mts +0 -1
- package/dist/modules/config/paths/helpers.d.mts.map +1 -1
- package/dist/modules/config/paths/helpers.mjs.map +1 -1
- package/dist/modules/config/paths/types.d.mts +0 -1
- package/dist/modules/config/paths/types.d.mts.map +1 -1
- package/dist/modules/config/providers/email.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/common.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/cell/index.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/cell/select.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/column-header.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.mjs.map +1 -1
- package/dist/modules/data-tables/components/footer.mjs.map +1 -1
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
- package/dist/modules/data-tables/components/layout.mjs.map +1 -1
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/search-input.client.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
- package/dist/modules/data-tables/components/skeleton.mjs +4 -4
- package/dist/modules/data-tables/components/skeleton.mjs.map +1 -1
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/components/table.mjs +0 -1
- package/dist/modules/data-tables/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/hooks/use-context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-selection.client.mjs.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-table.client.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/cursor.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/cursor.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts +0 -1
- package/dist/modules/data-tables/lib/converters/dto.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/dto.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/filter.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/search.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/converters/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/config.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/helpers.mjs +4 -4
- package/dist/modules/data-tables/lib/filters/helpers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/parsers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs +1 -1
- package/dist/modules/data-tables/lib/filters/resolvers.mjs.map +1 -1
- package/dist/modules/data-tables/lib/helpers/create-column.mjs.map +1 -1
- package/dist/modules/data-tables/lib/search-params.d.mts +6 -6
- package/dist/modules/data-tables/lib/search-params.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/types.d.mts +0 -1
- package/dist/modules/data-tables/lib/types.d.mts.map +1 -1
- package/dist/modules/data-tables/lib/validators.d.mts +0 -1
- package/dist/modules/data-tables/lib/validators.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts +1 -1
- package/dist/modules/data-tables/server/get-data.server.d.mts.map +1 -1
- package/dist/modules/data-tables/server/get-data.server.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/helpers/sorting.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs +1 -1
- package/dist/modules/data-tables/strategies/infinite/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/infinite/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/components.mjs.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.d.mts.map +1 -1
- package/dist/modules/data-tables/strategies/pagination/strategy.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/body.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs +0 -1
- package/dist/modules/data-tables/tables/data-table/components/row.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/data-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/body.mjs.map +1 -1
- 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/common.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.mjs.map +1 -1
- 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/cells/drag-handle.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/header.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs +0 -1
- package/dist/modules/data-tables/tables/inline-table/components/row.client.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs +8 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.mjs.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts.map +1 -1
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs +5 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/combobox.client.mjs +8 -4
- package/dist/modules/inline-edit/components/combobox.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs +5 -1
- package/dist/modules/inline-edit/components/date-input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.mjs +8 -4
- package/dist/modules/inline-edit/components/date-picker.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-time.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs +6 -1
- package/dist/modules/inline-edit/components/date-time.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/editor.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/editor.client.mjs +7 -3
- package/dist/modules/inline-edit/components/editor.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs +5 -1
- package/dist/modules/inline-edit/components/input-recipient.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs +5 -1
- package/dist/modules/inline-edit/components/input-toggle.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/input.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/input.client.mjs +16 -4
- package/dist/modules/inline-edit/components/input.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/select.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/select.client.mjs +8 -4
- package/dist/modules/inline-edit/components/select.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/switch.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/switch.client.mjs +5 -1
- package/dist/modules/inline-edit/components/switch.client.mjs.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/components/toggle.client.mjs +8 -4
- 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/context.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs +1 -1
- package/dist/modules/inline-edit/hooks/context.client.mjs.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts +22 -7
- package/dist/modules/inline-edit/hooks/use-inline.client.d.mts.map +1 -1
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs +12 -9
- package/dist/modules/inline-edit/hooks/use-inline.client.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/validators.d.mts +0 -1
- package/dist/modules/inline-edit/lib/validators.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/validators.mjs.map +1 -1
- package/dist/modules/inline-edit/lib/variants.d.mts +3 -3
- package/dist/modules/inline-edit/lib/variants.d.mts.map +1 -1
- package/dist/modules/inline-edit/lib/variants.mjs.map +1 -1
- package/dist/modules/router/handler/caller.client.d.mts +0 -1
- package/dist/modules/router/handler/caller.client.d.mts.map +1 -1
- package/dist/modules/router/handler/caller.client.mjs.map +1 -1
- package/dist/modules/router/handler/caller.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.d.mts.map +1 -1
- package/dist/modules/router/handler/context.server.mjs.map +1 -1
- package/dist/modules/router/handler/init.server.d.mts +6 -6
- package/dist/modules/router/handler/init.server.d.mts.map +1 -1
- package/dist/modules/router/handler/init.server.mjs.map +1 -1
- package/dist/modules/router/handler/register.server.d.mts.map +1 -1
- package/dist/modules/router/handler/register.server.mjs.map +1 -1
- package/dist/modules/router/handler/route.server.d.mts +0 -1
- package/dist/modules/router/handler/route.server.d.mts.map +1 -1
- package/dist/modules/router/handler/route.server.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.d.mts +0 -1
- package/dist/modules/router/lib/query-client.d.mts.map +1 -1
- package/dist/modules/router/lib/query-client.mjs.map +1 -1
- package/dist/modules/router/lib/query-client.server.d.mts.map +1 -1
- package/dist/modules/router/lib/validators.d.mts +0 -1
- package/dist/modules/router/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/dropzone.client.d.mts +3 -3
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/dropzone.client.mjs.map +1 -1
- package/dist/modules/storage/components/image-grid.client.d.mts +3 -3
- package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +2 -0
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +1 -1
- 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 +4 -3
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +9 -7
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/config/filters.d.mts.map +1 -1
- package/dist/modules/storage/config/filters.mjs.map +1 -1
- package/dist/modules/storage/lib/constants.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-client.server.mjs.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.mjs.map +1 -1
- package/dist/modules/storage/lib/helpers.d.mts +0 -1
- package/dist/modules/storage/lib/helpers.d.mts.map +1 -1
- package/dist/modules/storage/lib/helpers.mjs.map +1 -1
- package/dist/modules/storage/lib/proxy.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/proxy.server.mjs.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +27 -27
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.mjs.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/schema.mjs.map +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +18 -18
- package/dist/modules/storage/lib/service.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/service.server.mjs.map +1 -1
- package/dist/modules/storage/lib/validators.d.mts +92 -92
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/dist/modules/storage/lib/validators.mjs.map +1 -1
- package/dist/storage/client.d.mts +1 -1
- package/package.json +89 -92
- package/src/components/common/icons.tsx +2 -2
- package/src/components/common/status.tsx +1 -1
- package/src/components/editor/components/content.client.tsx +1 -1
- package/src/components/editor/components/editor.client.tsx +6 -6
- package/src/components/editor/components/menu-nodes.client.tsx +11 -11
- package/src/components/editor/components/menu.client.tsx +5 -5
- package/src/components/editor/components/spinner.tsx +2 -8
- package/src/components/editor/extensions/file-handler/extension.ts +1 -1
- package/src/components/editor/extensions/file-handler/strategy.ts +4 -4
- package/src/components/editor/extensions/file-handler/utils.ts +4 -2
- package/src/components/editor/extensions/image/extension.ts +4 -1
- package/src/components/editor/extensions/skeleton/renderer.tsx +4 -3
- package/src/components/editor/lib/extensions.ts +23 -26
- package/src/components/editor/lib/helpers.ts +1 -1
- package/src/components/editor/lib/utils.ts +1 -33
- package/src/components/editor/lib/variants.ts +1 -1
- package/src/components/emails/forget-password-email.tsx +1 -1
- package/src/components/entry.client.ts +1 -1
- package/src/components/entry.ts +1 -1
- package/src/components/header/back-button.client.tsx +1 -1
- package/src/components/header/bottom-bar.client.tsx +3 -3
- package/src/components/header/breadcrumbs.client.tsx +2 -2
- package/src/components/header/header.client.tsx +1 -1
- package/src/components/header/indicator.client.tsx +2 -2
- package/src/components/header/top-bar.client.tsx +3 -3
- package/src/components/layouts/admin-content.client.tsx +1 -1
- package/src/components/layouts/admin-error-pages.tsx +1 -1
- package/src/components/layouts/admin-layout.tsx +1 -1
- package/src/components/layouts/admin-loading.tsx +1 -1
- package/src/components/layouts/empty-page.tsx +1 -1
- package/src/components/layouts/error-page.tsx +2 -2
- package/src/components/layouts/error-sections.tsx +1 -1
- package/src/components/layouts/list-layout.tsx +1 -1
- package/src/components/layouts/providers.client.tsx +4 -4
- package/src/components/layouts/root-layout.server.tsx +3 -3
- package/src/components/layouts/tab-layout.tsx +3 -3
- package/src/components/lists/data-list.tsx +1 -1
- package/src/components/lists/data-stack.tsx +1 -1
- package/src/components/navigation/admin-sidebar-header.client.tsx +13 -13
- package/src/components/navigation/admin-sidebar-paths.client.tsx +6 -6
- package/src/components/navigation/admin-sidebar-skeleton.tsx +1 -1
- package/src/components/navigation/admin-sidebar.client.tsx +6 -5
- package/src/components/ui/accordion.tsx +1 -2
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.client.tsx +1 -1
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/breadcrumb.tsx +4 -2
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/calendar.tsx +2 -3
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -0
- package/src/components/ui/chart.client.tsx +12 -10
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/color-picker.client.tsx +4 -3
- package/src/components/ui/combobox-dropdown.client.tsx +2 -4
- package/src/components/ui/combobox.client.tsx +2 -2
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-picker.client.tsx +2 -2
- package/src/components/ui/dialog.client.tsx +1 -1
- package/src/components/ui/drawer.client.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/form.client.tsx +4 -4
- package/src/components/ui/hover-card.client.tsx +1 -1
- package/src/components/ui/input-date-time.tsx +13 -11
- package/src/components/ui/input-recipient.tsx +6 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/pagination.tsx +4 -2
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.client.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/resizable.client.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.client.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.client.tsx +1 -1
- package/src/components/ui/sidebar.client.tsx +5 -2
- package/src/components/ui/sonner.client.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.client.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.client.tsx +1 -1
- package/src/lib/config/constants.ts +1 -1
- package/src/lib/hooks/use-action.ts +3 -3
- package/src/lib/hooks/use-indicator.tsx +17 -8
- package/src/lib/types/config.ts +1 -1
- package/src/lib/utils/cn.ts +1 -1
- package/src/lib/utils/manifest.ts +3 -2
- package/src/lib/utils/time-picker.ts +2 -2
- package/src/lib/utils/url.ts +1 -1
- package/src/modules/auth/components/allowed.client.tsx +2 -2
- package/src/modules/auth/components/auth-layout.server.tsx +2 -2
- package/src/modules/auth/components/create-first-user-page.client.tsx +10 -11
- package/src/modules/auth/components/forget-password-page.client.tsx +5 -5
- package/src/modules/auth/components/guard-first-user.server.tsx +2 -5
- package/src/modules/auth/components/guard.server.tsx +3 -3
- package/src/modules/auth/components/login-page.client.tsx +5 -5
- package/src/modules/auth/components/reset-password-page.client.tsx +7 -7
- package/src/modules/auth/components/update-password-command.tsx +5 -5
- package/src/modules/auth/db/schema.ts +2 -2
- package/src/modules/auth/entry.server.ts +1 -1
- package/src/modules/auth/handler/create-client.client.ts +3 -3
- package/src/modules/auth/handler/init.ts +6 -6
- package/src/modules/auth/handler/proxy.server.ts +1 -2
- package/src/modules/auth/handler/route.server.ts +2 -2
- package/src/modules/auth/hooks/use-auth-client.tsx +3 -3
- package/src/modules/auth/hooks/use-permission.ts +1 -1
- package/src/modules/auth/hooks/use-session.ts +1 -2
- package/src/modules/auth/lib/helpers.server.ts +4 -4
- package/src/modules/commands/components/alert-dialog-command.client.tsx +8 -8
- package/src/modules/commands/components/click-command.client.tsx +3 -3
- package/src/modules/commands/components/command-trigger.client.tsx +1 -1
- package/src/modules/commands/components/dialog-command.client.tsx +3 -3
- package/src/modules/commands/components/dropdown-command.client.tsx +2 -2
- package/src/modules/commands/components/empty-command.client.tsx +1 -1
- package/src/modules/commands/components/form-dialog-command.client.tsx +5 -5
- package/src/modules/commands/components/render-command.tsx +2 -2
- package/src/modules/commands/entry.client.ts +16 -0
- package/src/modules/commands/hooks/context.client.tsx +1 -1
- package/src/modules/commands/hooks/use-command-menu.client.tsx +6 -4
- package/src/modules/commands/hooks/use-command-mutation.client.tsx +1 -1
- package/src/modules/commands/menus/context-menu.client.tsx +20 -19
- package/src/modules/commands/menus/dropdown-menu.client.tsx +6 -3
- package/src/modules/commands/menus/floating-menu.client.tsx +54 -0
- package/src/modules/commands/menus/inline-menu.client.tsx +6 -2
- package/src/modules/commands/menus/responsive-menu.client.tsx +1 -1
- package/src/modules/commands/utils/archive-command.client.tsx +1 -1
- package/src/modules/commands/utils/delete-command.client.tsx +1 -1
- package/src/modules/config/db/helpers.ts +1 -1
- package/src/modules/config/db/init.ts +2 -2
- package/src/modules/config/lib/context.ts +5 -5
- package/src/modules/config/paths/helpers.ts +1 -1
- package/src/modules/config/paths/types.ts +4 -5
- package/src/modules/data-tables/components/cell/common.client.tsx +1 -1
- package/src/modules/data-tables/components/column-header.tsx +2 -2
- package/src/modules/data-tables/components/filters/combobox.client.tsx +3 -3
- package/src/modules/data-tables/components/filters/slider.client.tsx +5 -5
- package/src/modules/data-tables/components/footer.tsx +2 -2
- package/src/modules/data-tables/components/header.tsx +2 -2
- package/src/modules/data-tables/components/layout.tsx +1 -1
- package/src/modules/data-tables/components/skeleton.tsx +22 -29
- package/src/modules/data-tables/components/table.tsx +1 -1
- package/src/modules/data-tables/components/toolbar.tsx +1 -1
- package/src/modules/data-tables/entry.client.ts +9 -13
- package/src/modules/data-tables/hooks/use-context.client.tsx +6 -6
- package/src/modules/data-tables/hooks/use-selection.client.ts +1 -1
- package/src/modules/data-tables/hooks/use-table.client.ts +1 -1
- package/src/modules/data-tables/lib/converters/cursor.ts +1 -1
- package/src/modules/data-tables/lib/converters/dto.ts +1 -1
- package/src/modules/data-tables/lib/converters/search.ts +2 -2
- package/src/modules/data-tables/lib/converters/sorting.ts +2 -2
- package/src/modules/data-tables/lib/filters/config.ts +2 -2
- package/src/modules/data-tables/lib/filters/helpers.ts +4 -4
- package/src/modules/data-tables/lib/filters/parsers.ts +2 -2
- package/src/modules/data-tables/lib/filters/resolvers.ts +2 -2
- package/src/modules/data-tables/lib/helpers/create-column.ts +1 -1
- package/src/modules/data-tables/lib/types.ts +6 -5
- package/src/modules/data-tables/server/get-data.server.ts +8 -8
- package/src/modules/data-tables/strategies/helpers/sorting.ts +7 -3
- package/src/modules/data-tables/strategies/infinite/components.tsx +4 -4
- package/src/modules/data-tables/strategies/infinite/strategy.ts +2 -2
- package/src/modules/data-tables/strategies/pagination/components.tsx +2 -2
- package/src/modules/data-tables/strategies/pagination/strategy.ts +2 -2
- package/src/modules/data-tables/tables/data-table/components/body.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/data-table/components/row.tsx +3 -3
- package/src/modules/data-tables/tables/data-table/components/table.tsx +13 -4
- package/src/modules/data-tables/tables/inline-table/components/body.tsx +5 -5
- package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +9 -5
- package/src/modules/data-tables/tables/inline-table/components/cells/read-only.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/header.tsx +1 -1
- package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +5 -5
- package/src/modules/data-tables/tables/inline-table/components/table.tsx +14 -5
- package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +2 -2
- package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +6 -2
- package/src/modules/inline-edit/components/combobox.client.tsx +6 -2
- package/src/modules/inline-edit/components/date-input.client.tsx +8 -4
- package/src/modules/inline-edit/components/date-picker.client.tsx +7 -3
- package/src/modules/inline-edit/components/date-time.client.tsx +20 -4
- package/src/modules/inline-edit/components/editor.client.tsx +7 -3
- package/src/modules/inline-edit/components/input-recipient.client.tsx +7 -3
- package/src/modules/inline-edit/components/input-toggle.client.tsx +7 -3
- package/src/modules/inline-edit/components/input.client.tsx +15 -3
- package/src/modules/inline-edit/components/select.client.tsx +12 -8
- package/src/modules/inline-edit/components/switch.client.tsx +5 -1
- package/src/modules/inline-edit/components/toggle.client.tsx +5 -1
- package/src/modules/inline-edit/entry.client.ts +3 -2
- package/src/modules/inline-edit/hooks/context.client.tsx +3 -2
- package/src/modules/inline-edit/hooks/use-inline.client.tsx +42 -18
- package/src/modules/inline-edit/lib/parsers.ts +9 -0
- package/src/modules/inline-edit/lib/validators.ts +1 -1
- package/src/modules/inline-edit/lib/variants.ts +1 -1
- package/src/modules/router/handler/caller.client.tsx +2 -2
- package/src/modules/router/handler/context.server.ts +4 -4
- package/src/modules/router/handler/init.server.ts +3 -3
- package/src/modules/router/handler/register.server.ts +3 -3
- package/src/modules/router/handler/route.server.ts +3 -3
- package/src/modules/router/lib/query-client.ts +0 -1
- package/src/modules/storage/components/dropzone-context.client.tsx +1 -1
- package/src/modules/storage/components/dropzone.client.tsx +3 -3
- package/src/modules/storage/components/image-grid.client.tsx +23 -19
- package/src/modules/storage/components/upload-button.client.tsx +2 -2
- package/src/modules/storage/components/upload-zone-context.client.tsx +3 -2
- package/src/modules/storage/components/upload-zone.client.tsx +13 -7
- package/src/modules/storage/config/filters.ts +1 -1
- package/src/modules/storage/entry.client.ts +3 -2
- package/src/modules/storage/lib/create-client.server.ts +2 -2
- package/src/modules/storage/lib/create-upload.client.ts +2 -2
- package/src/modules/storage/lib/helpers.ts +3 -3
- package/src/modules/storage/lib/proxy.server.ts +4 -4
- package/src/modules/storage/lib/router.server.ts +5 -5
- package/src/modules/storage/lib/schema.ts +2 -2
- package/src/modules/storage/lib/service.server.ts +21 -21
- package/src/modules/storage/lib/validators.ts +3 -3
- package/src/styles.css +1 -1
- package/dist/modules/commands/menus/data-table-menu.client.mjs.map +0 -1
- package/src/modules/auth/lib/utils.ts +0 -17
- package/src/modules/commands/menus/data-table-menu.client.tsx +0 -46
- package/src/modules/config/db/create-client.ts +0 -40
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.client.mjs","names":[],"sources":["../../../../../src/modules/data-tables/components/filters/slider.client.tsx"],"sourcesContent":["\"use client\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"slider.client.mjs","names":[],"sources":["../../../../../src/modules/data-tables/components/filters/slider.client.tsx"],"sourcesContent":["\"use client\";\n\nimport { PlusCircle } from \"lucide-react\";\nimport { type ParserBuilder, useQueryState } from \"nuqs\";\nimport { startTransition, useState } from \"react\";\nimport { useDebouncedCallback } from \"use-debounce\";\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Input } from \"@/components/ui/input\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Slider } from \"@/components/ui/slider\";\n\nexport type TableFilterSliderProps = {\n title?: string;\n filter: { name: string; parser: ParserBuilder<[number, number] | null> };\n options?: { min: number; max: number };\n};\n\nexport function TableFilterSlider({\n title,\n filter,\n options = { min: 0, max: 100 },\n}: TableFilterSliderProps) {\n const [open, setOpen] = useState(false);\n const [query, setQuery] = useQueryState(filter.name, filter.parser);\n\n const [selectedValues, setSelectedValues] = useState(query);\n\n const handleSliderChange = useDebouncedCallback(\n (values: [number, number] | null) => setQuery(values, { startTransition }),\n 300,\n );\n\n const { min, max } = options;\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button type=\"button\" variant=\"outline\" size=\"sm\" className=\"h-8 border-dashed\">\n <PlusCircle className=\"mr-2 h-4 w-4\" />\n {title}\n {selectedValues && selectedValues?.length > 0 && (\n <>\n <Separator orientation=\"vertical\" className=\"mx-2 h-4\" />\n <Badge variant=\"secondary\" className=\"rounded-sm px-1 font-normal lg:hidden\">\n {selectedValues?.length}\n </Badge>\n\n <div className=\"hidden space-x-1 lg:flex\">\n <Badge variant=\"secondary\" className=\"rounded-sm px-1 font-normal\">\n {query?.[0]} tot {query?.[1]}\n </Badge>\n </div>\n </>\n )}\n </Button>\n </PopoverTrigger>\n <PopoverContent className=\"w-[20rem] p-0\" align=\"start\">\n <div className=\"space-y-8 p-4\">\n <div className=\"flex items-center gap-2\">\n <Input\n type=\"number\"\n value={selectedValues?.[0] ?? undefined}\n placeholder=\"Min\"\n onChange={(e) => {\n startTransition(() => {\n const newValues = e.target.value\n ? ([Number(e.target.value), selectedValues?.[1] ?? max] as [number, number])\n : null;\n\n setSelectedValues(newValues);\n });\n }}\n onBlur={() => handleSliderChange(selectedValues)}\n />\n <Input\n type=\"number\"\n value={selectedValues?.[1] ?? undefined}\n placeholder=\"Max\"\n max={max}\n onChange={(e) => {\n startTransition(() => {\n const newValues = e.target.value\n ? ([selectedValues?.[0] ?? min, Number(e.target.value)] as [number, number])\n : null;\n\n setSelectedValues(newValues);\n });\n }}\n onBlur={() => handleSliderChange(selectedValues)}\n />\n </div>\n\n <div className=\"space-y-3\">\n <Slider\n value={selectedValues ?? [min, max]}\n onValueChange={(values: [number, number]) =>\n startTransition(() => {\n setSelectedValues(values);\n handleSliderChange(values);\n })\n }\n step={1}\n min={min}\n max={max}\n />\n\n <div className=\"text-muted-foreground flex justify-between text-xs\">\n <span>{min}</span>\n <span>{max}</span>\n </div>\n </div>\n </div>\n\n {selectedValues && selectedValues.length > 0 && (\n <div className=\"w-full space-y-2 p-1.5\">\n <Separator />\n\n <Button\n size=\"sm\"\n type=\"button\"\n variant=\"ghost\"\n onClick={() => {\n setOpen(false);\n setSelectedValues(null);\n handleSliderChange(null);\n }}\n className=\"w-full text-center\"\n >\n Clear filters\n </Button>\n </div>\n )}\n </PopoverContent>\n </Popover>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAAgB,kBAAkB,EAChC,OACA,QACA,UAAU;CAAE,KAAK;CAAG,KAAK;CAAK,IACL;CACzB,MAAM,CAAC,MAAM,WAAW,SAAS,MAAM;CACvC,MAAM,CAAC,OAAO,YAAY,cAAc,OAAO,MAAM,OAAO,OAAO;CAEnE,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,MAAM;CAE3D,MAAM,qBAAqB,sBACxB,WAAoC,SAAS,QAAQ,EAAE,iBAAiB,CAAC,EAC1E,IACD;CAED,MAAM,EAAE,KAAK,QAAQ;AAErB,QACE,qBAAC;EAAc;EAAM,cAAc;aACjC,oBAAC;GAAe;aACd,qBAAC;IAAO,MAAK;IAAS,SAAQ;IAAU,MAAK;IAAK,WAAU;;KAC1D,oBAAC,cAAW,WAAU,iBAAiB;KACtC;KACA,kBAAkB,gBAAgB,SAAS,KAC1C;MACE,oBAAC;OAAU,aAAY;OAAW,WAAU;QAAa;MACzD,oBAAC;OAAM,SAAQ;OAAY,WAAU;iBAClC,gBAAgB;QACX;MAER,oBAAC;OAAI,WAAU;iBACb,qBAAC;QAAM,SAAQ;QAAY,WAAU;;SAClC,QAAQ;SAAG;SAAM,QAAQ;;SACpB;QACJ;SACL;;KAEE;IACM,EACjB,qBAAC;GAAe,WAAU;GAAgB,OAAM;cAC9C,qBAAC;IAAI,WAAU;eACb,qBAAC;KAAI,WAAU;gBACb,oBAAC;MACC,MAAK;MACL,OAAO,iBAAiB,MAAM;MAC9B,aAAY;MACZ,WAAW,MAAM;AACf,6BAAsB;AAKpB,0BAJkB,EAAE,OAAO,QACtB,CAAC,OAAO,EAAE,OAAO,MAAM,EAAE,iBAAiB,MAAM,IAAI,GACrD,KAEwB;SAC5B;;MAEJ,cAAc,mBAAmB,eAAe;OAChD,EACF,oBAAC;MACC,MAAK;MACL,OAAO,iBAAiB,MAAM;MAC9B,aAAY;MACP;MACL,WAAW,MAAM;AACf,6BAAsB;AAKpB,0BAJkB,EAAE,OAAO,QACtB,CAAC,iBAAiB,MAAM,KAAK,OAAO,EAAE,OAAO,MAAM,CAAC,GACrD,KAEwB;SAC5B;;MAEJ,cAAc,mBAAmB,eAAe;OAChD;MACE,EAEN,qBAAC;KAAI,WAAU;gBACb,oBAAC;MACC,OAAO,kBAAkB,CAAC,KAAK,IAAI;MACnC,gBAAgB,WACd,sBAAsB;AACpB,yBAAkB,OAAO;AACzB,0BAAmB,OAAO;QAC1B;MAEJ,MAAM;MACD;MACA;OACL,EAEF,qBAAC;MAAI,WAAU;iBACb,oBAAC,oBAAM,MAAW,EAClB,oBAAC,oBAAM,MAAW;OACd;MACF;KACF,EAEL,kBAAkB,eAAe,SAAS,KACzC,qBAAC;IAAI,WAAU;eACb,oBAAC,cAAY,EAEb,oBAAC;KACC,MAAK;KACL,MAAK;KACL,SAAQ;KACR,eAAe;AACb,cAAQ,MAAM;AACd,wBAAkB,KAAK;AACvB,yBAAmB,KAAK;;KAE1B,WAAU;eACX;MAEQ;KACL;IAEO;GACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/footer.tsx"],"sourcesContent":["\"use client\";\n\nimport { Table } from \"@tanstack/react-table\";\nimport { TableMeta } from \"../lib/types\";\nimport { InfinteTableBottombar, InfinteTableFooter } from \"../strategies/infinite/components\";\nimport { PaginationTableFooter } from \"../strategies/pagination/components\";\n\n/**\n * Table bottombar\n */\nexport function TableFooter<TData extends { id: string }>({ table }: { table: Table<TData> }) {\n const meta = table.options.meta as TableMeta<TData>;\n\n if (meta.strategy.name === \"pagination\") {\n return null;\n }\n\n if (meta.strategy.name === \"infinite\") {\n return <InfinteTableFooter table={table} />;\n }\n\n throw new Error(`Unknown strategy: ${meta.strategy.name}`);\n}\n\n/**\n * Table bottombar\n */\nexport function TableBottombar<TData extends { id: string }>({ table }: { table: Table<TData> }) {\n const meta = table.options.meta as TableMeta<TData>;\n\n if (meta.strategy.name === \"pagination\") {\n return <PaginationTableFooter table={table} />;\n }\n\n if (meta.strategy.name === \"infinite\") {\n return <InfinteTableBottombar table={table} />;\n }\n\n throw new Error(`Unknown strategy: ${meta.strategy.name}`);\n}\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,YAA0C,EAAE,SAAkC;CAC5F,MAAM,OAAO,MAAM,QAAQ;AAE3B,KAAI,KAAK,SAAS,SAAS,aACzB,QAAO;AAGT,KAAI,KAAK,SAAS,SAAS,WACzB,QAAO,oBAAC,sBAA0B,QAAS;AAG7C,OAAM,IAAI,MAAM,qBAAqB,KAAK,SAAS,OAAO;;;;;AAM5D,SAAgB,eAA6C,EAAE,SAAkC;CAC/F,MAAM,OAAO,MAAM,QAAQ;AAE3B,KAAI,KAAK,SAAS,SAAS,aACzB,QAAO,oBAAC,yBAA6B,QAAS;AAGhD,KAAI,KAAK,SAAS,SAAS,WACzB,QAAO,oBAAC,yBAA6B,QAAS;AAGhD,OAAM,IAAI,MAAM,qBAAqB,KAAK,SAAS,OAAO"}
|
|
1
|
+
{"version":3,"file":"footer.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/footer.tsx"],"sourcesContent":["\"use client\";\n\nimport type { Table } from \"@tanstack/react-table\";\nimport type { TableMeta } from \"../lib/types\";\nimport { InfinteTableBottombar, InfinteTableFooter } from \"../strategies/infinite/components\";\nimport { PaginationTableFooter } from \"../strategies/pagination/components\";\n\n/**\n * Table bottombar\n */\nexport function TableFooter<TData extends { id: string }>({ table }: { table: Table<TData> }) {\n const meta = table.options.meta as TableMeta<TData>;\n\n if (meta.strategy.name === \"pagination\") {\n return null;\n }\n\n if (meta.strategy.name === \"infinite\") {\n return <InfinteTableFooter table={table} />;\n }\n\n throw new Error(`Unknown strategy: ${meta.strategy.name}`);\n}\n\n/**\n * Table bottombar\n */\nexport function TableBottombar<TData extends { id: string }>({ table }: { table: Table<TData> }) {\n const meta = table.options.meta as TableMeta<TData>;\n\n if (meta.strategy.name === \"pagination\") {\n return <PaginationTableFooter table={table} />;\n }\n\n if (meta.strategy.name === \"infinite\") {\n return <InfinteTableBottombar table={table} />;\n }\n\n throw new Error(`Unknown strategy: ${meta.strategy.name}`);\n}\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,YAA0C,EAAE,SAAkC;CAC5F,MAAM,OAAO,MAAM,QAAQ;AAE3B,KAAI,KAAK,SAAS,SAAS,aACzB,QAAO;AAGT,KAAI,KAAK,SAAS,SAAS,WACzB,QAAO,oBAAC,sBAA0B,QAAS;AAG7C,OAAM,IAAI,MAAM,qBAAqB,KAAK,SAAS,OAAO;;;;;AAM5D,SAAgB,eAA6C,EAAE,SAAkC;CAC/F,MAAM,OAAO,MAAM,QAAQ;AAE3B,KAAI,KAAK,SAAS,SAAS,aACzB,QAAO,oBAAC,yBAA6B,QAAS;AAGhD,KAAI,KAAK,SAAS,SAAS,WACzB,QAAO,oBAAC,yBAA6B,QAAS;AAGhD,OAAM,IAAI,MAAM,qBAAqB,KAAK,SAAS,OAAO"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableRow } from "./table.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 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_runtime0.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_runtime0.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_runtime0.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"],"
|
|
1
|
+
{"version":3,"file":"header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/header.tsx"],"mappings":";;;;;;;;KASY,gBAAA;EACV,KAAA,EAAO,KAAA,CAAM,KAAA;AAAA;;;;iBAMC,WAAA,CAAA;EAAc,SAAA;EAAA,GAAc;AAAA,GAAS,KAAA,CAAM,cAAA,YAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;cAOrE,cAAA,SAAc,QAAA;;;;iBAKX,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,KAAA,CAAM,cAAA,SAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAgBxE,wBAAA;EACH,MAAA,EAAQ,MAAA,CAAO,KAAA;AAAA;AAAA,iBAGD,eAAA,OAAA,CAAA;EAAyB;AAAA,GAAU,wBAAA,CAAyB,KAAA,IAAM,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/header.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport { Allowed } from \"@/modules/auth/components/allowed.client\";\nimport { TableRow } from \"@/modules/data-tables/components/table\";\nimport
|
|
1
|
+
{"version":3,"file":"header.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/header.tsx"],"sourcesContent":["import { flexRender, type Header, type Table } from \"@tanstack/react-table\";\nimport { cn } from \"@/lib/utils/cn\";\nimport { Allowed } from \"@/modules/auth/components/allowed.client\";\nimport { TableRow } from \"@/modules/data-tables/components/table\";\nimport type { TableColumnDef } from \"../lib/types\";\n\n/**\n * TableHeaderProps\n */\nexport type TableHeaderProps<TData> = {\n table: Table<TData>;\n};\n\n/**\n * DataTableHeader\n */\nexport function TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return <thead data-slot=\"table-header\" className={cn(\"[&_tr]:border-b\", className)} {...props} />;\n}\n\n/**\n * DataTableHeaderRow\n */\nexport const TableHeaderRow = TableRow;\n\n/**\n * TableHead\n */\nexport function TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"text-muted-foreground bg-muted/70 h-10 whitespace-nowrap px-2 text-left align-middle font-medium\", //[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * DataTableHeaderCell\n */\ntype DataTableHeaderCellProps<TData> = {\n header: Header<TData, unknown>;\n};\n\nexport function TableHeaderCell<TData>({ header }: DataTableHeaderCellProps<TData>) {\n const columnDef = header.column.columnDef as TableColumnDef<TData>;\n\n const children = (\n <TableHead key={header.id}>\n {header.isPlaceholder\n ? null\n : flexRender(header.column.columnDef.header, header.getContext())}\n </TableHead>\n );\n\n if (!columnDef.permissions) return children;\n\n return (\n <Allowed key={header.id} permission={columnDef.permissions}>\n {children}\n </Allowed>\n );\n}\n"],"mappings":";;;;;;;;;;AAgBA,SAAgB,YAAY,EAAE,WAAW,GAAG,SAAwC;AAClF,QAAO,oBAAC;EAAM,aAAU;EAAe,WAAW,GAAG,mBAAmB,UAAU;EAAE,GAAI;GAAS;;;;;AAMnG,MAAa,iBAAiB;;;;AAK9B,SAAgB,UAAU,EAAE,WAAW,GAAG,SAAqC;AAC7E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,oGACA,UACD;EACD,GAAI;GACJ;;AAWN,SAAgB,gBAAuB,EAAE,UAA2C;CAClF,MAAM,YAAY,OAAO,OAAO;CAEhC,MAAM,WACJ,oBAAC,uBACE,OAAO,gBACJ,OACA,WAAW,OAAO,OAAO,UAAU,QAAQ,OAAO,YAAY,CAAC,IAHrD,OAAO,GAIX;AAGd,KAAI,CAAC,UAAU,YAAa,QAAO;AAEnC,QACE,oBAAC;EAAwB,YAAY,UAAU;EAC5C;IADW,OAAO,GAEX"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.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"],"
|
|
1
|
+
{"version":3,"file":"layout.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/layout.tsx"],"mappings":";;;;iBAGgB,WAAA,CAAA;EAAc,SAAA;EAAW,QAAA;EAAA,GAAa;AAAA,GAAS,cAAA,UAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/layout.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"layout.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/layout.tsx"],"sourcesContent":["import type { ComponentProps } from \"react\";\nimport { cn } from \"@/lib/utils/cn\";\n\nexport function TableLayout({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div className={cn(\"space-y-3\", className)} {...props}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;AAGA,SAAgB,YAAY,EAAE,WAAW,UAAU,GAAG,SAAgC;AACpF,QACE,oBAAC;EAAI,WAAW,GAAG,aAAa,UAAU;EAAE,GAAI;EAC7C;GACG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { TableSearchInput };
|
|
7
7
|
//# sourceMappingURL=search-input.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/search-input.client.tsx"],"
|
|
1
|
+
{"version":3,"file":"search-input.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/search-input.client.tsx"],"mappings":";;;iBAKgB,gBAAA,CAAA,GAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.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"],"
|
|
1
|
+
{"version":3,"file":"skeleton.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/skeleton.tsx"],"mappings":";;;iBAIgB,aAAA,CAAA,GAAa,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Skeleton } from "../../../components/ui/skeleton.mjs";
|
|
2
2
|
import { Table, TableBody, TableCell, TableRow } from "./table.mjs";
|
|
3
3
|
import { TableHead, TableHeader } from "./header.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/data-tables/components/skeleton.tsx
|
|
7
7
|
function TableSkeleton() {
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
+
return /* @__PURE__ */ jsx("div", {
|
|
9
9
|
className: "rounded-md border",
|
|
10
10
|
children: /* @__PURE__ */ jsxs(Table, { children: [/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsx(TableRow, {
|
|
11
11
|
className: "bg-muted relative",
|
|
12
12
|
children: Array.from({ length: 15 }).map((_, index) => /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(Skeleton, { className: "bg-background my-2 h-2 w-full rounded-full" }) }, index))
|
|
13
13
|
}) }), /* @__PURE__ */ jsx(TableBody, { children: Array.from({ length: 15 }).map((_, index) => /* @__PURE__ */ jsx(TableRow, {
|
|
14
14
|
className: "relative",
|
|
15
|
-
children: Array.from({ length: 15 }).map((_
|
|
15
|
+
children: Array.from({ length: 15 }).map((_, index) => /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Skeleton, { className: "my-2 h-2 w-full rounded-full" }) }, index))
|
|
16
16
|
}, index)) })] })
|
|
17
|
-
})
|
|
17
|
+
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.mjs","names":[
|
|
1
|
+
{"version":3,"file":"skeleton.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/skeleton.tsx"],"sourcesContent":["import { Skeleton } from \"@/components/ui/skeleton\";\nimport { Table, TableBody, TableCell, TableRow } from \"@/modules/data-tables/components/table\";\nimport { TableHead, TableHeader } from \"./header\";\n\nexport function TableSkeleton() {\n return (\n <div className=\"rounded-md border\">\n <Table>\n <TableHeader>\n <TableRow className=\"bg-muted relative\">\n {Array.from({ length: 15 }).map((_, index) => (\n <TableHead key={index}>\n <Skeleton className=\"bg-background my-2 h-2 w-full rounded-full\" />\n </TableHead>\n ))}\n </TableRow>\n </TableHeader>\n <TableBody>\n {Array.from({ length: 15 }).map((_, index) => (\n <TableRow key={index} className=\"relative\">\n {Array.from({ length: 15 }).map((_, index) => (\n <TableCell key={index}>\n <Skeleton className=\"my-2 h-2 w-full rounded-full\" />\n </TableCell>\n ))}\n </TableRow>\n ))}\n </TableBody>\n </Table>\n </div>\n );\n}\n"],"mappings":";;;;;;AAIA,SAAgB,gBAAgB;AAC9B,QACE,oBAAC;EAAI,WAAU;YACb,qBAAC,oBACC,oBAAC,yBACC,oBAAC;GAAS,WAAU;aACjB,MAAM,KAAK,EAAE,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,UAClC,oBAAC,uBACC,oBAAC,YAAS,WAAU,+CAA+C,IADrD,MAEJ,CACZ;IACO,GACC,EACd,oBAAC,uBACE,MAAM,KAAK,EAAE,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,UAClC,oBAAC;GAAqB,WAAU;aAC7B,MAAM,KAAK,EAAE,QAAQ,IAAI,CAAC,CAAC,KAAK,GAAG,UAClC,oBAAC,uBACC,oBAAC,YAAS,WAAU,iCAAiC,IADvC,MAEJ,CACZ;KALW,MAMJ,CACX,GACQ,IACN;GACJ"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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_runtime0.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"],"
|
|
1
|
+
{"version":3,"file":"table.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/table.tsx"],"mappings":";;;;iBAMS,KAAA,CAAA;EAAQ,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,YAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAY5D,SAAA,CAAA;EAAY,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,YAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAUhE,WAAA,CAAA;EAAc,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,YAAuB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAUlE,QAAA,CAAA;EAAW,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,SAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAa5D,SAAA,CAAA;EACP,QAAA;EACA,SAAA;EAAA,GACG;AAAA,GACF,OAAA,CAAM,cAAA;EAAyB,QAAA;AAAA,IAAoB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAc7C,YAAA,CAAA;EAAe,SAAA;EAAA,GAAc;AAAA,GAAS,OAAA,CAAM,cAAA,cAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/table.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TableCell({\n readonly,\n className,\n ...props\n}: React.ComponentProps<\"td\"> & { readonly?: boolean }) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"whitespace-nowrap p-2 align-middle\", //[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\n readonly && \"bg-muted/50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableRow };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/table.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/cn\";\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div data-slot=\"table-container\" className=\"relative w-full overflow-x-auto\">\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TableCell({\n readonly,\n className,\n ...props\n}: React.ComponentProps<\"td\"> & { readonly?: boolean }) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"whitespace-nowrap p-2 align-middle\", //[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\n readonly && \"bg-muted/50\",\n className,\n )}\n {...props}\n />\n );\n}\n\nfunction TableCaption({ className, ...props }: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport { Table, TableBody, TableCaption, TableCell, TableFooter, TableRow };\n"],"mappings":";;;;;;AAMA,SAAS,MAAM,EAAE,WAAW,GAAG,SAAwC;AACrE,QACE,oBAAC;EAAI,aAAU;EAAkB,WAAU;YACzC,oBAAC;GACC,aAAU;GACV,WAAW,GAAG,iCAAiC,UAAU;GACzD,GAAI;IACJ;GACE;;AAIV,SAAS,UAAU,EAAE,WAAW,GAAG,SAAwC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,8BAA8B,UAAU;EACtD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;AAC3E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,2DAA2D,UAAU;EACnF,GAAI;GACJ;;AAIN,SAAS,SAAS,EAAE,WAAW,GAAG,SAAqC;AACrE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,+EACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EACjB,UACA,WACA,GAAG,SACmD;AACtD,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,sCACA,YAAY,eACZ,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,aAAa,EAAE,WAAW,GAAG,SAA0C;AAC9E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,sCAAsC,UAAU;EAC9D,GAAI;GACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 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_runtime0.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_runtime0.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"],"
|
|
1
|
+
{"version":3,"file":"toolbar.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/toolbar.tsx"],"mappings":";;;;KAGK,iBAAA,GAAoB,cAAA,CAAe,cAAA;EACtC,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGF,YAAA,CAAA;EAAe,QAAA;EAAU,SAAA;EAAA,GAAc;AAAA,GAAS,iBAAA,GAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,KAW5E,qBAAA,GAAwB,cAAA,CAAe,cAAA;EAC1C,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGF,gBAAA,CAAA;EAAmB,QAAA;EAAU,SAAA;EAAA,GAAc;AAAA,GAAS,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/toolbar.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"toolbar.mjs","names":[],"sources":["../../../../src/modules/data-tables/components/toolbar.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport { cn } from \"@/lib/utils/cn\";\n\ntype TableToolbarProps = HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode;\n};\n\nexport function TableToolbar({ children, className, ...props }: TableToolbarProps) {\n return (\n <div\n {...props}\n className={cn(\"flex max-w-full justify-between gap-5 overflow-x-auto p-1\", className)}\n >\n {children}\n </div>\n );\n}\n\ntype TableToolbarListProps = HTMLAttributes<HTMLDivElement> & {\n children: React.ReactNode;\n};\n\nexport function TableToolbarList({ children, className, ...props }: TableToolbarListProps) {\n return (\n <div {...props} className={cn(\"flex flex-row gap-5\", className)}>\n {children}\n </div>\n );\n}\n"],"mappings":";;;;AAOA,SAAgB,aAAa,EAAE,UAAU,WAAW,GAAG,SAA4B;AACjF,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,GAAG,6DAA6D,UAAU;EAEpF;GACG;;AAQV,SAAgB,iBAAiB,EAAE,UAAU,WAAW,GAAG,SAAgC;AACzF,QACE,oBAAC;EAAI,GAAI;EAAO,WAAW,GAAG,uBAAuB,UAAU;EAC5D;GACG"}
|
|
@@ -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_runtime0 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_runtime0.JSX.Element;
|
|
48
48
|
/**
|
|
49
49
|
* Create use table config hook
|
|
50
50
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-context.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-context.client.tsx"],"
|
|
1
|
+
{"version":3,"file":"use-context.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-context.client.tsx"],"mappings":";;;;;;;;KAgBK,kBAAA;EAAmC,EAAA;AAAA,KAAgB,IAAA,CACtD,YAAA,CAAa,KAAA;EAGb,eAAA,GAAkB,YAAA,CAAa,KAAA;AAAA;;;;KAMrB,uBAAA;EACM,EAAA;AAAA,oBACC,kBAAA,GAAqB,kBAAA,gBACxB,cAAA,CAAe,KAAA,IAAS,cAAA,CAAe,KAAA,KACnD,kBAAA,CAAmB,KAAA;EACrB,SAAA,EAAW,KAAA;EACX,IAAA,EAAM,KAAA;EACN,OAAA,EAAS,QAAA,CAAS,cAAA,CAAe,KAAA;EACjC,OAAA,EAAS,cAAA,CAAe,KAAA;EACxB,QAAA,EAAU,aAAA;EACV,SAAA,GAAY,SAAA;EACZ,gBAAA,GAAmB,eAAA;EACnB,QAAA,GAAW,UAAA,CAAW,KAAA,EAAO,KAAA;EAC7B,IAAA,GAAO,KAAA;EACP,KAAA,GAAQ,QAAA;AAAA;;AAdV;;iBAsBgB,qBAAA;EACE,EAAA;AAAA,oBACC,kBAAA,GAAqB,kBAAA,gBACxB,cAAA,CAAe,KAAA,IAAS,cAAA,CAAe,KAAA,EAAA,CAAA,GAClD,uBAAA,CAAwB,KAAA,EAAO,QAAA,EAAU,KAAA;;;;iBAS9B,mBAAA;EACE,EAAA;AAAA,oBACC,kBAAA,GAAqB,kBAAA,gBACxB,cAAA,CAAe,KAAA,IAAS,cAAA,CAAe,KAAA,EAAA,CAAA;EAErD,QAAA;EACA;AAAA,GACC,iBAAA;EAAoB,MAAA,EAAQ,sBAAA,CAAuB,KAAA,EAAO,QAAA,EAAU,KAAA;AAAA,KAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAU3E,sBAAA;EACa,EAAA;AAAA,oBACC,kBAAA,GAAqB,kBAAA,gBACxB,cAAA,CAAe,KAAA,IAAS,cAAA,CAAe,KAAA,KACnD,IAAA,CAAK,uBAAA,CAAwB,KAAA,EAAO,QAAA,EAAU,KAAA;AAAA,cAErC,iBAAA;EACK,EAAA;AAAA,oBACC,kBAAA,GAAqB,kBAAA,gBACxB,cAAA,CAAe,KAAA,IAAS,cAAA,CAAe,KAAA,GAErD,MAAA,EAAQ,sBAAA,CAAuB,KAAA,EAAO,QAAA,EAAU,KAAA,MAAM,sBAAA,CAAA,KAAA,EAAA,QAAA,EAAA,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-context.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-context.client.tsx"],"sourcesContent":["\"use client\";\n\nimport
|
|
1
|
+
{"version":3,"file":"use-context.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-context.client.tsx"],"sourcesContent":["\"use client\";\n\nimport type { TableOptions, VisibilityState } from \"@tanstack/react-table\";\nimport {\n createContext,\n type Dispatch,\n type PropsWithChildren,\n type SetStateAction,\n use,\n useEffect,\n useState,\n} from \"react\";\nimport type { CommandDef } from \"@/modules/commands/lib/definitions\";\nimport type { TableFiltersResult } from \"../lib/filters/config\";\nimport type { Selection, TableColumnDef, TableMetaInput, TableStrategy } from \"../lib/types\";\n\ntype useReactTableProps<TData extends { id: string }> = Omit<\n TableOptions<TData>,\n \"getCoreRowModel\"\n> & {\n getCoreRowModel?: TableOptions<TData>[\"getCoreRowModel\"];\n};\n\n/**\n * Use table config\n */\nexport type TableConfigContextValue<\n TData extends { id: string },\n TFilters extends TableFiltersResult = TableFiltersResult,\n TMeta extends TableMetaInput<TData> = TableMetaInput<TData>,\n> = useReactTableProps<TData> & {\n queryData: TData[];\n data: TData[];\n setData: Dispatch<SetStateAction<TData[]>>;\n columns: TableColumnDef<TData>[];\n strategy: TableStrategy;\n selection?: Selection;\n columnVisibility?: VisibilityState;\n commands?: CommandDef<TData, TMeta>[];\n meta?: TMeta;\n where?: TFilters;\n};\n\nconst TableConfigContext = createContext({});\n\n/**\n * Table context hook\n */\nexport function useTableConfigContext<\n TData extends { id: string },\n TFilters extends TableFiltersResult = TableFiltersResult,\n TMeta extends TableMetaInput<TData> = TableMetaInput<TData>,\n>(): TableConfigContextValue<TData, TFilters, TMeta> {\n const context = use(TableConfigContext);\n if (!context) throw new Error(\"TableConfigContext not found!\");\n return context as TableConfigContextValue<TData, TFilters, TMeta>;\n}\n\n/**\n * Table context provider\n */\nexport function TableConfigProvider<\n TData extends { id: string },\n TFilters extends TableFiltersResult = TableFiltersResult,\n TMeta extends TableMetaInput<TData> = TableMetaInput<TData>,\n>({\n children,\n config,\n}: PropsWithChildren<{ config: CreateTableConfigInput<TData, TFilters, TMeta> }>) {\n const [data, setData] = useState(config.queryData);\n useEffect(() => setData(config.queryData), [config.queryData]);\n\n return <TableConfigContext value={{ ...config, data, setData }}>{children}</TableConfigContext>;\n}\n\n/**\n * Create use table config hook\n */\ntype CreateTableConfigInput<\n TData extends { id: string },\n TFilters extends TableFiltersResult = TableFiltersResult,\n TMeta extends TableMetaInput<TData> = TableMetaInput<TData>,\n> = Omit<TableConfigContextValue<TData, TFilters, TMeta>, \"data\" | \"setData\">;\n\nexport const createTableConfig = <\n TData extends { id: string },\n TFilters extends TableFiltersResult = TableFiltersResult,\n TMeta extends TableMetaInput<TData> = TableMetaInput<TData>,\n>(\n config: CreateTableConfigInput<TData, TFilters, TMeta>,\n) => config;\n"],"mappings":";;;;;;AA2CA,MAAM,qBAAqB,cAAc,EAAE,CAAC;;;;AAK5C,SAAgB,wBAIqC;CACnD,MAAM,UAAU,IAAI,mBAAmB;AACvC,KAAI,CAAC,QAAS,OAAM,IAAI,MAAM,gCAAgC;AAC9D,QAAO;;;;;AAMT,SAAgB,oBAId,EACA,UACA,UACgF;CAChF,MAAM,CAAC,MAAM,WAAW,SAAS,OAAO,UAAU;AAClD,iBAAgB,QAAQ,OAAO,UAAU,EAAE,CAAC,OAAO,UAAU,CAAC;AAE9D,QAAO,oBAAC;EAAmB,OAAO;GAAE,GAAG;GAAQ;GAAM;GAAS;EAAG;GAA8B;;AAYjG,MAAa,qBAKX,WACG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-selection.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-selection.client.ts"],"sourcesContent":["\"use client\";\n\nimport type { RowSelectionState, Updater } from \"@tanstack/react-table\";\nimport React from \"react\";\nimport { Selection } from \"../lib/types\";\n\n/**\n * Row selection props\n */\ntype UseSelectionProps<TData extends { id: string }> = {\n data: TData[];\n selection?: Selection;\n};\n\n/**\n * Row selection hook for tanstack/react-table\n * @param { UseSelectionProps<TData> } props\n */\nexport function useSelection<TData extends { id: string }>(props: UseSelectionProps<TData>) {\n const [rowSelectionState, setRowSelectionState] = React.useState({});\n const [selectedData, setSelectedData] = React.useState<TData[]>([]);\n\n const rowSelection = props.selection?.rowSelection ?? rowSelectionState;\n const setRowSelection = props.selection?.setRowSelection ?? setRowSelectionState;\n\n /**\n * Handle row selection change\n * @param { Updater<RowSelectionState> } updater\n * @returns { RowSelectionState }\n */\n function onRowSelectionChange(updater: Updater<RowSelectionState>): RowSelectionState {\n // Get the new state from the updater function\n const newState = typeof updater === \"function\" ? updater(rowSelection) : updater;\n\n // Update the state\n setRowSelection(newState);\n\n // Get the selected IDs from the new state\n const selectedIds = new Set(Object.keys(newState).filter((id) => newState[id]));\n\n // Filter out the items that are no longer selected and add the newly selected items\n setSelectedData((prevData) => {\n // Create a Set of previously selected IDs for faster lookup\n const prevSelectedIds = new Set(prevData.map((item) => item.id));\n\n return [\n ...prevData.filter(({ id }) => selectedIds.has(id)),\n ...props.data.filter(({ id }) => selectedIds.has(id) && !prevSelectedIds.has(id)),\n ];\n });\n\n // Set the row selection data\n return newState;\n }\n\n return { rowSelection, selectedData, onRowSelectionChange };\n}\n"],"mappings":";;;;;;;;;AAkBA,SAAgB,aAA2C,OAAiC;CAC1F,MAAM,CAAC,mBAAmB,wBAAwB,MAAM,SAAS,EAAE,CAAC;CACpE,MAAM,CAAC,cAAc,mBAAmB,MAAM,SAAkB,EAAE,CAAC;CAEnE,MAAM,eAAe,MAAM,WAAW,gBAAgB;CACtD,MAAM,kBAAkB,MAAM,WAAW,mBAAmB;;;;;;CAO5D,SAAS,qBAAqB,SAAwD;EAEpF,MAAM,WAAW,OAAO,YAAY,aAAa,QAAQ,aAAa,GAAG;AAGzE,kBAAgB,SAAS;EAGzB,MAAM,cAAc,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC,QAAQ,OAAO,SAAS,IAAI,CAAC;AAG/E,mBAAiB,aAAa;GAE5B,MAAM,kBAAkB,IAAI,IAAI,SAAS,KAAK,SAAS,KAAK,GAAG,CAAC;AAEhE,UAAO,CACL,GAAG,SAAS,QAAQ,EAAE,SAAS,YAAY,IAAI,GAAG,CAAC,EACnD,GAAG,MAAM,KAAK,QAAQ,EAAE,SAAS,YAAY,IAAI,GAAG,IAAI,CAAC,gBAAgB,IAAI,GAAG,CAAC,CAClF;IACD;AAGF,SAAO;;AAGT,QAAO;EAAE;EAAc;EAAc;EAAsB"}
|
|
1
|
+
{"version":3,"file":"use-selection.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-selection.client.ts"],"sourcesContent":["\"use client\";\n\nimport type { RowSelectionState, Updater } from \"@tanstack/react-table\";\nimport React from \"react\";\nimport type { Selection } from \"../lib/types\";\n\n/**\n * Row selection props\n */\ntype UseSelectionProps<TData extends { id: string }> = {\n data: TData[];\n selection?: Selection;\n};\n\n/**\n * Row selection hook for tanstack/react-table\n * @param { UseSelectionProps<TData> } props\n */\nexport function useSelection<TData extends { id: string }>(props: UseSelectionProps<TData>) {\n const [rowSelectionState, setRowSelectionState] = React.useState({});\n const [selectedData, setSelectedData] = React.useState<TData[]>([]);\n\n const rowSelection = props.selection?.rowSelection ?? rowSelectionState;\n const setRowSelection = props.selection?.setRowSelection ?? setRowSelectionState;\n\n /**\n * Handle row selection change\n * @param { Updater<RowSelectionState> } updater\n * @returns { RowSelectionState }\n */\n function onRowSelectionChange(updater: Updater<RowSelectionState>): RowSelectionState {\n // Get the new state from the updater function\n const newState = typeof updater === \"function\" ? updater(rowSelection) : updater;\n\n // Update the state\n setRowSelection(newState);\n\n // Get the selected IDs from the new state\n const selectedIds = new Set(Object.keys(newState).filter((id) => newState[id]));\n\n // Filter out the items that are no longer selected and add the newly selected items\n setSelectedData((prevData) => {\n // Create a Set of previously selected IDs for faster lookup\n const prevSelectedIds = new Set(prevData.map((item) => item.id));\n\n return [\n ...prevData.filter(({ id }) => selectedIds.has(id)),\n ...props.data.filter(({ id }) => selectedIds.has(id) && !prevSelectedIds.has(id)),\n ];\n });\n\n // Set the row selection data\n return newState;\n }\n\n return { rowSelection, selectedData, onRowSelectionChange };\n}\n"],"mappings":";;;;;;;;;AAkBA,SAAgB,aAA2C,OAAiC;CAC1F,MAAM,CAAC,mBAAmB,wBAAwB,MAAM,SAAS,EAAE,CAAC;CACpE,MAAM,CAAC,cAAc,mBAAmB,MAAM,SAAkB,EAAE,CAAC;CAEnE,MAAM,eAAe,MAAM,WAAW,gBAAgB;CACtD,MAAM,kBAAkB,MAAM,WAAW,mBAAmB;;;;;;CAO5D,SAAS,qBAAqB,SAAwD;EAEpF,MAAM,WAAW,OAAO,YAAY,aAAa,QAAQ,aAAa,GAAG;AAGzE,kBAAgB,SAAS;EAGzB,MAAM,cAAc,IAAI,IAAI,OAAO,KAAK,SAAS,CAAC,QAAQ,OAAO,SAAS,IAAI,CAAC;AAG/E,mBAAiB,aAAa;GAE5B,MAAM,kBAAkB,IAAI,IAAI,SAAS,KAAK,SAAS,KAAK,GAAG,CAAC;AAEhE,UAAO,CACL,GAAG,SAAS,QAAQ,EAAE,SAAS,YAAY,IAAI,GAAG,CAAC,EACnD,GAAG,MAAM,KAAK,QAAQ,EAAE,SAAS,YAAY,IAAI,GAAG,IAAI,CAAC,gBAAgB,IAAI,GAAG,CAAC,CAClF;IACD;AAGF,SAAO;;AAGT,QAAO;EAAE;EAAc;EAAc;EAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-table.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-table.client.ts"],"
|
|
1
|
+
{"version":3,"file":"use-table.client.d.mts","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-table.client.ts"],"mappings":";;;;;;;iBAgBgB,QAAA;EACE,EAAA;AAAA,iBACF,WAAA,CAAU,KAAA,IAAS,WAAA,CAAU,KAAA,EAAA,CAAA,GAAM,sBAAA,CAAA,KAAA,CAAA,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-table.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-table.client.ts"],"sourcesContent":["\"use client\";\n\nimport {\n
|
|
1
|
+
{"version":3,"file":"use-table.client.mjs","names":[],"sources":["../../../../src/modules/data-tables/hooks/use-table.client.ts"],"sourcesContent":["\"use client\";\n\nimport {\n type ColumnFiltersState,\n getCoreRowModel,\n useReactTable,\n type VisibilityState,\n} from \"@tanstack/react-table\";\nimport { useState } from \"react\";\nimport type { TableMeta } from \"../lib/types\";\nimport { useTableConfigContext } from \"./use-context.client\";\nimport { useSelection } from \"./use-selection.client\";\n\n/**\n * Server data table\n */\nexport function useTable<\n TData extends { id: string },\n TMeta extends TableMeta<TData> = TableMeta<TData>,\n>() {\n const { data, strategy, selection, columnVisibility, commands, ...options } =\n useTableConfigContext<TData, TMeta>();\n\n const { rowSelection, selectedData, onRowSelectionChange } = useSelection({\n data,\n selection,\n });\n const [columnFilters, setColumnFilters] = useState<ColumnFiltersState>([]);\n\n const [columnVisibilityState, setColumnVisibility] = useState<VisibilityState>(\n columnVisibility ?? {},\n );\n\n return useReactTable({\n ...options,\n data,\n rowCount: strategy.rowCount,\n state: {\n ...options.state,\n rowSelection,\n columnFilters,\n columnVisibility: columnVisibilityState,\n sorting: strategy.sortingState,\n pagination: strategy.paginationState,\n },\n getCoreRowModel: getCoreRowModel(),\n getRowId: (row) => row.id,\n manualPagination: strategy.manualPagination,\n onPaginationChange: strategy.onPaginationChange,\n manualSorting: strategy.manualSorting,\n onSortingChange: strategy.onSortingChange,\n enableRowSelection: true,\n onRowSelectionChange,\n enableColumnFilters: true,\n onColumnFiltersChange: setColumnFilters,\n enableHiding: true,\n onColumnVisibilityChange: setColumnVisibility,\n meta: { ...options.meta, selectedData, commands, strategy } satisfies TableMeta<TData, TMeta>,\n });\n}\n"],"mappings":";;;;;;;;;;;AAgBA,SAAgB,WAGZ;CACF,MAAM,EAAE,MAAM,UAAU,WAAW,kBAAkB,UAAU,GAAG,YAChE,uBAAqC;CAEvC,MAAM,EAAE,cAAc,cAAc,yBAAyB,aAAa;EACxE;EACA;EACD,CAAC;CACF,MAAM,CAAC,eAAe,oBAAoB,SAA6B,EAAE,CAAC;CAE1E,MAAM,CAAC,uBAAuB,uBAAuB,SACnD,oBAAoB,EAAE,CACvB;AAED,QAAO,cAAc;EACnB,GAAG;EACH;EACA,UAAU,SAAS;EACnB,OAAO;GACL,GAAG,QAAQ;GACX;GACA;GACA,kBAAkB;GAClB,SAAS,SAAS;GAClB,YAAY,SAAS;GACtB;EACD,iBAAiB,iBAAiB;EAClC,WAAW,QAAQ,IAAI;EACvB,kBAAkB,SAAS;EAC3B,oBAAoB,SAAS;EAC7B,eAAe,SAAS;EACxB,iBAAiB,SAAS;EAC1B,oBAAoB;EACpB;EACA,qBAAqB;EACrB,uBAAuB;EACvB,cAAc;EACd,0BAA0B;EAC1B,MAAM;GAAE,GAAG,QAAQ;GAAM;GAAc;GAAU;GAAU;EAC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/cursor.ts"],"
|
|
1
|
+
{"version":3,"file":"cursor.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/cursor.ts"],"mappings":";;;;;AAOA;;;iBAAgB,0BAAA,CAAA;EACd,KAAA;EACA;AAAA,GACC,IAAA,CAAK,gBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/cursor.ts"],"sourcesContent":["import { TableQuerySchema } from \"../validators\";\n\n/**\n * Convert pagination to DB query\n * @param {ConvertPaginationToQueryParamsInput} pagination\n * @returns {{ limit: number; offset: number; }}\n */\nexport function convertCursorToQueryParams({\n limit,\n cursor,\n}: Pick<TableQuerySchema, \"cursor\" | \"limit\">) {\n return { limit, offset: cursor * limit };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,2BAA2B,EACzC,OACA,UAC6C;AAC7C,QAAO;EAAE;EAAO,QAAQ,SAAS;EAAO"}
|
|
1
|
+
{"version":3,"file":"cursor.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/cursor.ts"],"sourcesContent":["import type { TableQuerySchema } from \"../validators\";\n\n/**\n * Convert pagination to DB query\n * @param {ConvertPaginationToQueryParamsInput} pagination\n * @returns {{ limit: number; offset: number; }}\n */\nexport function convertCursorToQueryParams({\n limit,\n cursor,\n}: Pick<TableQuerySchema, \"cursor\" | \"limit\">) {\n return { limit, offset: cursor * limit };\n}\n"],"mappings":";;;;;;AAOA,SAAgB,2BAA2B,EACzC,OACA,UAC6C;AAC7C,QAAO;EAAE;EAAO,QAAQ,SAAS;EAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/dto.ts"],"
|
|
1
|
+
{"version":3,"file":"dto.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/dto.ts"],"mappings":";;;;;AAKA;KAAY,kBAAA;EACV,IAAA,EAAM,KAAA;EACN,UAAA,EAAY,4BAAA;AAAA;AAAA,KAGF,4BAAA;EACV,KAAA;EACA,UAAA;EACA,KAAA;EACA,WAAA;EACA,eAAA;EACA,MAAA;EACA,UAAA;EACA,cAAA;AAAA;;;;KAMG,uBAAA;EACH,IAAA,EAAM,KAAA;EACN,KAAA,EAAO,gBAAA;EACP,KAAA;AAAA;;;AARA;iBAac,wBAAA,sBAAA,CAAA;EACd,IAAA;EACA,KAAA;EACA;AAAA,GACC,uBAAA,CAAwB,KAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dto.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/dto.ts"],"sourcesContent":["import { TableQuerySchema } from \"../validators\";\n\n/**\n * Data table query response\n */\nexport type TableQueryResponse<TData extends object> = {\n data: TData[];\n pagination: TableQueryPaginationResponse;\n};\n\nexport type TableQueryPaginationResponse = {\n total: number;\n totalPages: number;\n limit: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n cursor: number;\n nextCursor: number | null;\n previousCursor: number | null;\n};\n\n/**\n * Table query response input\n */\ntype TableQueryResponseProps<TData extends object> = {\n data: TData[];\n input: TableQuerySchema;\n total: number;\n};\n/**\n * Convert pagination to DB query\n */\nexport function createTableQueryResponse<TData extends object>({\n data,\n input,\n total,\n}: TableQueryResponseProps<TData>) {\n const hasNextPage = total > (input.cursor + 1) * input.limit;\n const hasPreviousPage = input.cursor > 0;\n\n return {\n data,\n pagination: {\n total: total,\n totalPages: Math.ceil(total / input.limit),\n limit: input.limit,\n hasNextPage,\n hasPreviousPage,\n cursor: input.cursor,\n nextCursor: hasNextPage ? input.cursor + 1 : null,\n previousCursor: hasPreviousPage ? input.cursor - 1 : null,\n } satisfies TableQueryPaginationResponse,\n };\n}\n"],"mappings":";;;;AAgCA,SAAgB,yBAA+C,EAC7D,MACA,OACA,SACiC;CACjC,MAAM,cAAc,SAAS,MAAM,SAAS,KAAK,MAAM;CACvD,MAAM,kBAAkB,MAAM,SAAS;AAEvC,QAAO;EACL;EACA,YAAY;GACH;GACP,YAAY,KAAK,KAAK,QAAQ,MAAM,MAAM;GAC1C,OAAO,MAAM;GACb;GACA;GACA,QAAQ,MAAM;GACd,YAAY,cAAc,MAAM,SAAS,IAAI;GAC7C,gBAAgB,kBAAkB,MAAM,SAAS,IAAI;GACtD;EACF"}
|
|
1
|
+
{"version":3,"file":"dto.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/dto.ts"],"sourcesContent":["import type { TableQuerySchema } from \"../validators\";\n\n/**\n * Data table query response\n */\nexport type TableQueryResponse<TData extends object> = {\n data: TData[];\n pagination: TableQueryPaginationResponse;\n};\n\nexport type TableQueryPaginationResponse = {\n total: number;\n totalPages: number;\n limit: number;\n hasNextPage: boolean;\n hasPreviousPage: boolean;\n cursor: number;\n nextCursor: number | null;\n previousCursor: number | null;\n};\n\n/**\n * Table query response input\n */\ntype TableQueryResponseProps<TData extends object> = {\n data: TData[];\n input: TableQuerySchema;\n total: number;\n};\n/**\n * Convert pagination to DB query\n */\nexport function createTableQueryResponse<TData extends object>({\n data,\n input,\n total,\n}: TableQueryResponseProps<TData>) {\n const hasNextPage = total > (input.cursor + 1) * input.limit;\n const hasPreviousPage = input.cursor > 0;\n\n return {\n data,\n pagination: {\n total: total,\n totalPages: Math.ceil(total / input.limit),\n limit: input.limit,\n hasNextPage,\n hasPreviousPage,\n cursor: input.cursor,\n nextCursor: hasNextPage ? input.cursor + 1 : null,\n previousCursor: hasPreviousPage ? input.cursor - 1 : null,\n } satisfies TableQueryPaginationResponse,\n };\n}\n"],"mappings":";;;;AAgCA,SAAgB,yBAA+C,EAC7D,MACA,OACA,SACiC;CACjC,MAAM,cAAc,SAAS,MAAM,SAAS,KAAK,MAAM;CACvD,MAAM,kBAAkB,MAAM,SAAS;AAEvC,QAAO;EACL;EACA,YAAY;GACH;GACP,YAAY,KAAK,KAAK,QAAQ,MAAM,MAAM;GAC1C,OAAO,MAAM;GACb;GACA;GACA,QAAQ,MAAM;GACd,YAAY,cAAc,MAAM,SAAS,IAAI;GAC7C,gBAAgB,kBAAkB,MAAM,SAAS,IAAI;GACtD;EACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/filter.ts"],"
|
|
1
|
+
{"version":3,"file":"filter.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/filter.ts"],"mappings":";;AAKA;;;;iBAAgB,kBAAA,uBAAA,CACd,WAAA,kCACC,MAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableQuerySchema } from "../validators.mjs";
|
|
2
|
-
import { PgColumn } from "drizzle-orm/pg-core";
|
|
3
2
|
import { SQL } from "drizzle-orm";
|
|
3
|
+
import { PgColumn } from "drizzle-orm/pg-core";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/data-tables/lib/converters/search.d.ts
|
|
6
6
|
type ConvertSearchToQueryParamsFields = PgColumn[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/search.ts"],"
|
|
1
|
+
{"version":3,"file":"search.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/search.ts"],"mappings":";;;;;KAIY,gCAAA,GAAmC,QAAA;;AAA/C;;;;iBAOgB,0BAAA,CAAA;EACZ;AAAA,GAAU,IAAA,CAAK,gBAAA,aACjB,MAAA,EAAQ,gCAAA,GACP,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/search.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"search.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/search.ts"],"sourcesContent":["import { ilike, or, type SQL, sql } from \"drizzle-orm\";\nimport type { PgColumn } from \"drizzle-orm/pg-core\";\nimport type { TableQuerySchema } from \"../validators\";\n\nexport type ConvertSearchToQueryParamsFields = PgColumn[];\n\n/**\n * Convert search to DB query\n * @param {ConvertSearchToQueryParamsInput}\n * @returns { { OR: Record<string, { contains: string, mode: \"insensitive\" }> } }\n */\nexport function convertSearchToQueryParams(\n { search }: Pick<TableQuerySchema, \"search\">,\n fields: ConvertSearchToQueryParamsFields,\n): SQL | undefined {\n if (!search) return undefined;\n\n // create an array of search fields with the search query applied\n const searchFields = fields.map((field) => ilike(sql`${field}::text`, `%${search}%`));\n\n // return the query with the search fields\n return or(...searchFields);\n}\n"],"mappings":";;;;;;;;AAWA,SAAgB,2BACd,EAAE,UACF,QACiB;AACjB,KAAI,CAAC,OAAQ,QAAO;AAMpB,QAAO,GAAG,GAHW,OAAO,KAAK,UAAU,MAAM,GAAG,GAAG,MAAM,SAAS,IAAI,OAAO,GAAG,CAAC,CAG3D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableQuerySchema } from "../validators.mjs";
|
|
2
|
-
import { PgTable } from "drizzle-orm/pg-core";
|
|
3
2
|
import { AnyColumn, SQL, ValueOrArray } from "drizzle-orm";
|
|
3
|
+
import { PgTable } from "drizzle-orm/pg-core";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/data-tables/lib/converters/sorting.d.ts
|
|
6
6
|
type ConvertSortToQueryParamsFallback = ValueOrArray<AnyColumn | SQL>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorting.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/sorting.ts"],"
|
|
1
|
+
{"version":3,"file":"sorting.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/sorting.ts"],"mappings":";;;;;KAIY,gCAAA,GAAmC,YAAA,CAAa,SAAA,GAAY,GAAA;;AAAxE;;;;iBAOgB,2BAAA,CACd,KAAA,EAAO,IAAA,CAAK,gBAAA,qBACZ,KAAA,EAAO,OAAA,EACP,QAAA,EAAU,gCAAA,GACT,YAAA,CAAa,SAAA,GAAY,GAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sorting.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/sorting.ts"],"sourcesContent":["import { asc, desc, type
|
|
1
|
+
{"version":3,"file":"sorting.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/converters/sorting.ts"],"sourcesContent":["import { type AnyColumn, asc, desc, type SQL, type ValueOrArray } from \"drizzle-orm\";\nimport type { PgColumn, PgTable } from \"drizzle-orm/pg-core\";\nimport type { TableQuerySchema } from \"../validators\";\n\nexport type ConvertSortToQueryParamsFallback = ValueOrArray<AnyColumn | SQL>;\n\n/**\n * Convert pagination to DB query\n * @param {ConvertSortToQueryParamsInput} pagination\n * @returns { { orderBy: Record<string, \"asc\" | \"desc\"> } }\n */\nexport function convertOrderByToQueryParams(\n query: Pick<TableQuerySchema, \"sort\" | \"order\">,\n table: PgTable,\n fallback: ConvertSortToQueryParamsFallback,\n): ValueOrArray<AnyColumn | SQL> {\n const { sort, order } = query;\n\n if (sort && sort in table) {\n const column = table[sort as keyof typeof table] as PgColumn;\n return order === \"asc\" ? asc(column) : desc(column);\n }\n\n return fallback;\n}\n"],"mappings":";;;;;;;;AAWA,SAAgB,4BACd,OACA,OACA,UAC+B;CAC/B,MAAM,EAAE,MAAM,UAAU;AAExB,KAAI,QAAQ,QAAQ,OAAO;EACzB,MAAM,SAAS,MAAM;AACrB,SAAO,UAAU,QAAQ,IAAI,OAAO,GAAG,KAAK,OAAO;;AAGrD,QAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/config.ts"],"
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/config.ts"],"mappings":";;;;KAGY,eAAA;EAAA,UAA8B,CAAA,WAAY,WAAA,CAAY,OAAA;AAAA;AAAA,KACtD,kBAAA;EAAA,UAAiC,CAAA;AAAA;AAAA,cAEhC,kBAAA,gBAAmC,eAAA,EAAiB,GAAA,EAAK,IAAA,KAAI,IAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/config.ts"],"sourcesContent":["import { ZodType } from \"zod\";\nimport { ParseFilter } from \"./parsers\";\n\nexport type TableFiltersDef = { readonly [k: string]: ParseFilter<ZodType> };\nexport type TableFiltersResult = { readonly [k: string]: unknown };\n\nexport const createTableFilters = <TDef extends TableFiltersDef>(def: TDef) => def;\n"],"mappings":";AAMA,MAAa,sBAAoD,QAAc"}
|
|
1
|
+
{"version":3,"file":"config.mjs","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/config.ts"],"sourcesContent":["import type { ZodType } from \"zod\";\nimport type { ParseFilter } from \"./parsers\";\n\nexport type TableFiltersDef = { readonly [k: string]: ParseFilter<ZodType> };\nexport type TableFiltersResult = { readonly [k: string]: unknown };\n\nexport const createTableFilters = <TDef extends TableFiltersDef>(def: TDef) => def;\n"],"mappings":";AAMA,MAAa,sBAAoD,QAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/helpers.ts"],"
|
|
1
|
+
{"version":3,"file":"helpers.d.mts","names":[],"sources":["../../../../../src/modules/data-tables/lib/filters/helpers.ts"],"mappings":";;;cAEa,YAAA,SAAY,SAAA;;AAAzB;;iBAKgB,sBAAA,qBAAA,CACd,MAAA,EAAQ,IAAA,IACR,eAAA,EAAiB,OAAA,CAAQ,MAAA,CAAO,IAAA,0BAC/B,MAAA,CAAO,IAAA"}
|
|
@@ -6,10 +6,10 @@ const mergeFilters = deepmerge;
|
|
|
6
6
|
* Converts visibility state to filter config
|
|
7
7
|
*/
|
|
8
8
|
function parseFiltersVisibility(config, visibilityState) {
|
|
9
|
-
return config.reduce((acc, key) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
9
|
+
return config.reduce((acc, key) => {
|
|
10
|
+
acc[key] = visibilityState?.[key] === void 0 ? true : visibilityState[key] ?? false;
|
|
11
|
+
return acc;
|
|
12
|
+
}, {});
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
//#endregion
|