@alneas/appkit-react 0.1.0 → 0.2.0
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/CHANGELOG.md +53 -0
- package/README.md +85 -15
- package/consumer-ai/SKILL.md +12 -0
- package/consumer-ai/api-index.json +103754 -0
- package/consumer-ai/package-context.json +409 -0
- package/dist/ai/action/ExecutionHistory.cjs.map +1 -1
- package/dist/ai/action/ExecutionHistory.d.cts +32 -2
- package/dist/ai/action/ExecutionHistory.d.ts +32 -2
- package/dist/ai/action/ExecutionHistory.js.map +1 -1
- package/dist/ai/action/ScreenActionContext.cjs.map +1 -1
- package/dist/ai/action/ScreenActionContext.d.cts +15 -2
- package/dist/ai/action/ScreenActionContext.d.ts +15 -2
- package/dist/ai/action/ScreenActionContext.js.map +1 -1
- package/dist/ai/action/context.cjs.map +1 -1
- package/dist/ai/action/context.d.cts +19 -3
- package/dist/ai/action/context.d.ts +19 -3
- package/dist/ai/action/context.js.map +1 -1
- package/dist/ai/action/types.d.cts +35 -3
- package/dist/ai/action/types.d.ts +35 -3
- package/dist/ai/action/use-execution-session.cjs.map +1 -1
- package/dist/ai/action/use-execution-session.d.cts +17 -1
- package/dist/ai/action/use-execution-session.d.ts +17 -1
- package/dist/ai/action/use-execution-session.js.map +1 -1
- package/dist/ai/action/use-screen-action-registry.cjs.map +1 -1
- package/dist/ai/action/use-screen-action-registry.d.cts +77 -8
- package/dist/ai/action/use-screen-action-registry.d.ts +77 -8
- package/dist/ai/action/use-screen-action-registry.js.map +1 -1
- package/dist/ai/action/use-screen-action.cjs.map +1 -1
- package/dist/ai/action/use-screen-action.d.cts +23 -6
- package/dist/ai/action/use-screen-action.d.ts +23 -6
- package/dist/ai/action/use-screen-action.js.map +1 -1
- package/dist/ai/action/use-screen-context.cjs.map +1 -1
- package/dist/ai/action/use-screen-context.d.cts +42 -5
- package/dist/ai/action/use-screen-context.d.ts +42 -5
- package/dist/ai/action/use-screen-context.js.map +1 -1
- package/dist/ai/ai-chat/transport.cjs.map +1 -1
- package/dist/ai/ai-chat/transport.d.cts +35 -8
- package/dist/ai/ai-chat/transport.d.ts +35 -8
- package/dist/ai/ai-chat/transport.js.map +1 -1
- package/dist/ai/generative-ui/GenerativeUIRenderer.cjs.map +1 -1
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.cts +21 -3
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.ts +21 -3
- package/dist/ai/generative-ui/GenerativeUIRenderer.js.map +1 -1
- package/dist/ai/generative-ui/error-boundary.cjs.map +1 -1
- package/dist/ai/generative-ui/error-boundary.d.cts +98 -2
- package/dist/ai/generative-ui/error-boundary.d.ts +98 -2
- package/dist/ai/generative-ui/error-boundary.js.map +1 -1
- package/dist/ai/generative-ui/registry.cjs.map +1 -1
- package/dist/ai/generative-ui/registry.d.cts +96 -7
- package/dist/ai/generative-ui/registry.d.ts +96 -7
- package/dist/ai/generative-ui/registry.js.map +1 -1
- package/dist/ai/proposal/ProposalFieldReview.cjs.map +1 -1
- package/dist/ai/proposal/ProposalFieldReview.d.cts +170 -8
- package/dist/ai/proposal/ProposalFieldReview.d.ts +170 -8
- package/dist/ai/proposal/ProposalFieldReview.js.map +1 -1
- package/dist/ai/proposal/types.d.cts +97 -26
- package/dist/ai/proposal/types.d.ts +97 -26
- package/dist/ai/proposal/use-proposal-batch-review.cjs.map +1 -1
- package/dist/ai/proposal/use-proposal-batch-review.d.cts +133 -7
- package/dist/ai/proposal/use-proposal-batch-review.d.ts +133 -7
- package/dist/ai/proposal/use-proposal-batch-review.js.map +1 -1
- package/dist/ai/proposal/use-proposal-review.cjs.map +1 -1
- package/dist/ai/proposal/use-proposal-review.d.cts +47 -5
- package/dist/ai/proposal/use-proposal-review.d.ts +47 -5
- package/dist/ai/proposal/use-proposal-review.js.map +1 -1
- package/dist/avatar.svg +1 -0
- package/dist/consumer-ai/SKILL.md +6 -0
- package/dist/consumer-ai/api-index.json +103754 -0
- package/dist/consumer-ai/package-context.json +5 -3
- package/dist/mockServiceWorker.js +361 -0
- package/dist/styles.css +1 -1
- package/dist/tools/components/auth/AuthForms.cjs.map +1 -1
- package/dist/tools/components/auth/AuthForms.d.cts +131 -81
- package/dist/tools/components/auth/AuthForms.d.ts +131 -81
- package/dist/tools/components/auth/AuthForms.js.map +1 -1
- package/dist/tools/components/auth/AuthGuard.cjs.map +1 -1
- package/dist/tools/components/auth/AuthGuard.d.cts +31 -4
- package/dist/tools/components/auth/AuthGuard.d.ts +31 -4
- package/dist/tools/components/auth/AuthGuard.js.map +1 -1
- package/dist/tools/components/auth/AuthProvider.cjs.map +1 -1
- package/dist/tools/components/auth/AuthProvider.d.cts +39 -42
- package/dist/tools/components/auth/AuthProvider.d.ts +39 -42
- package/dist/tools/components/auth/AuthProvider.js.map +1 -1
- package/dist/tools/components/auth/ProtectedRoute.cjs.map +1 -1
- package/dist/tools/components/auth/ProtectedRoute.d.cts +75 -60
- package/dist/tools/components/auth/ProtectedRoute.d.ts +75 -60
- package/dist/tools/components/auth/ProtectedRoute.js.map +1 -1
- package/dist/tools/components/auth/SignInButton.cjs.map +1 -1
- package/dist/tools/components/auth/SignInButton.d.cts +26 -18
- package/dist/tools/components/auth/SignInButton.d.ts +26 -18
- package/dist/tools/components/auth/SignInButton.js.map +1 -1
- package/dist/tools/components/auth/UserProfileProvider.cjs.map +1 -1
- package/dist/tools/components/auth/UserProfileProvider.d.cts +48 -20
- package/dist/tools/components/auth/UserProfileProvider.d.ts +48 -20
- package/dist/tools/components/auth/UserProfileProvider.js.map +1 -1
- package/dist/tools/components/auth/adapters/better-auth-adapter.cjs.map +1 -1
- package/dist/tools/components/auth/adapters/better-auth-adapter.d.cts +371 -51
- package/dist/tools/components/auth/adapters/better-auth-adapter.d.ts +371 -51
- package/dist/tools/components/auth/adapters/better-auth-adapter.js.map +1 -1
- package/dist/tools/components/auth/adapters/mock-adapter.cjs.map +1 -1
- package/dist/tools/components/auth/adapters/mock-adapter.d.cts +149 -28
- package/dist/tools/components/auth/adapters/mock-adapter.d.ts +149 -28
- package/dist/tools/components/auth/adapters/mock-adapter.js.map +1 -1
- package/dist/tools/components/auth/auth-session.cjs.map +1 -1
- package/dist/tools/components/auth/auth-session.d.cts +147 -1
- package/dist/tools/components/auth/auth-session.d.ts +147 -1
- package/dist/tools/components/auth/auth-session.js.map +1 -1
- package/dist/tools/components/auth/session-cache.cjs.map +1 -1
- package/dist/tools/components/auth/session-cache.d.cts +88 -24
- package/dist/tools/components/auth/session-cache.d.ts +88 -24
- package/dist/tools/components/auth/session-cache.js.map +1 -1
- package/dist/tools/components/auth/types.cjs.map +1 -1
- package/dist/tools/components/auth/types.d.cts +329 -106
- package/dist/tools/components/auth/types.d.ts +329 -106
- package/dist/tools/components/auth/types.js.map +1 -1
- package/dist/tools/components/auth/useAuth.cjs.map +1 -1
- package/dist/tools/components/auth/useAuth.d.cts +110 -17
- package/dist/tools/components/auth/useAuth.d.ts +110 -17
- package/dist/tools/components/auth/useAuth.js.map +1 -1
- package/dist/tools/components/auth/useAuthGuard.cjs.map +1 -1
- package/dist/tools/components/auth/useAuthGuard.d.cts +49 -38
- package/dist/tools/components/auth/useAuthGuard.d.ts +49 -38
- package/dist/tools/components/auth/useAuthGuard.js.map +1 -1
- package/dist/tools/components/auth/useRoleCheck.cjs.map +1 -1
- package/dist/tools/components/auth/useRoleCheck.d.cts +48 -1
- package/dist/tools/components/auth/useRoleCheck.d.ts +48 -1
- package/dist/tools/components/auth/useRoleCheck.js.map +1 -1
- package/dist/tools/components/auth/useUserProfile.cjs.map +1 -1
- package/dist/tools/components/auth/useUserProfile.d.cts +66 -1
- package/dist/tools/components/auth/useUserProfile.d.ts +66 -1
- package/dist/tools/components/auth/useUserProfile.js.map +1 -1
- package/dist/tools/components/barcode/BarcodeGenerator.cjs.map +1 -1
- package/dist/tools/components/barcode/BarcodeGenerator.d.cts +32 -18
- package/dist/tools/components/barcode/BarcodeGenerator.d.ts +32 -18
- package/dist/tools/components/barcode/BarcodeGenerator.js.map +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.cjs +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.cjs.map +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.d.cts +20 -13
- package/dist/tools/components/barcode/QRCodeGenerator.d.ts +20 -13
- package/dist/tools/components/barcode/QRCodeGenerator.js +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.js.map +1 -1
- package/dist/tools/components/barcode/QRCodeScanner.cjs.map +1 -1
- package/dist/tools/components/barcode/QRCodeScanner.d.cts +32 -1
- package/dist/tools/components/barcode/QRCodeScanner.d.ts +32 -1
- package/dist/tools/components/barcode/QRCodeScanner.js.map +1 -1
- package/dist/tools/components/calendar/ResourceCalendar.cjs.map +1 -1
- package/dist/tools/components/calendar/ResourceCalendar.d.cts +17 -42
- package/dist/tools/components/calendar/ResourceCalendar.d.ts +17 -42
- package/dist/tools/components/calendar/ResourceCalendar.js.map +1 -1
- package/dist/tools/components/calendar/views/ResourceView.cjs +1 -1
- package/dist/tools/components/calendar/views/ResourceView.cjs.map +1 -1
- package/dist/tools/components/calendar/views/ResourceView.js +2 -2
- package/dist/tools/components/calendar/views/ResourceView.js.map +1 -1
- package/dist/tools/components/chart/ComposedChart.cjs.map +1 -1
- package/dist/tools/components/chart/ComposedChart.d.cts +54 -1
- package/dist/tools/components/chart/ComposedChart.d.ts +54 -1
- package/dist/tools/components/chart/ComposedChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleAreaChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleAreaChart.d.cts +41 -1
- package/dist/tools/components/chart/SimpleAreaChart.d.ts +41 -1
- package/dist/tools/components/chart/SimpleAreaChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleBarChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleBarChart.d.cts +34 -24
- package/dist/tools/components/chart/SimpleBarChart.d.ts +34 -24
- package/dist/tools/components/chart/SimpleBarChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleLineChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleLineChart.d.cts +31 -28
- package/dist/tools/components/chart/SimpleLineChart.d.ts +31 -28
- package/dist/tools/components/chart/SimpleLineChart.js.map +1 -1
- package/dist/tools/components/chart/SimplePieChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimplePieChart.d.cts +28 -22
- package/dist/tools/components/chart/SimplePieChart.d.ts +28 -22
- package/dist/tools/components/chart/SimplePieChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleRadarChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleRadarChart.d.cts +38 -1
- package/dist/tools/components/chart/SimpleRadarChart.d.ts +38 -1
- package/dist/tools/components/chart/SimpleRadarChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleScatterChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleScatterChart.d.cts +44 -1
- package/dist/tools/components/chart/SimpleScatterChart.d.ts +44 -1
- package/dist/tools/components/chart/SimpleScatterChart.js.map +1 -1
- package/dist/tools/components/chart/StackedBarChart.cjs.map +1 -1
- package/dist/tools/components/chart/StackedBarChart.d.cts +38 -1
- package/dist/tools/components/chart/StackedBarChart.d.ts +38 -1
- package/dist/tools/components/chart/StackedBarChart.js.map +1 -1
- package/dist/tools/components/data-table/data-table.cjs +1 -1
- package/dist/tools/components/data-table/data-table.cjs.map +1 -1
- package/dist/tools/components/data-table/data-table.js +286 -263
- package/dist/tools/components/data-table/data-table.js.map +1 -1
- package/dist/tools/components/data-table/table-utils.cjs.map +1 -1
- package/dist/tools/components/data-table/table-utils.d.cts +45 -35
- package/dist/tools/components/data-table/table-utils.d.ts +45 -35
- package/dist/tools/components/data-table/table-utils.js.map +1 -1
- package/dist/tools/components/editable-table/editable-table.cjs +1 -1
- package/dist/tools/components/editable-table/editable-table.cjs.map +1 -1
- package/dist/tools/components/editable-table/editable-table.js +15 -2
- package/dist/tools/components/editable-table/editable-table.js.map +1 -1
- package/dist/tools/components/error/ErrorDialog.cjs +1 -1
- package/dist/tools/components/error/ErrorDialog.cjs.map +1 -1
- package/dist/tools/components/error/ErrorDialog.js +1 -1
- package/dist/tools/components/error/ErrorDialog.js.map +1 -1
- package/dist/tools/components/error/ErrorInline.cjs +1 -1
- package/dist/tools/components/error/ErrorInline.cjs.map +1 -1
- package/dist/tools/components/error/ErrorInline.js +1 -1
- package/dist/tools/components/error/ErrorInline.js.map +1 -1
- package/dist/tools/components/error/ErrorNotification.cjs +1 -1
- package/dist/tools/components/error/ErrorNotification.cjs.map +1 -1
- package/dist/tools/components/error/ErrorNotification.js +10 -10
- package/dist/tools/components/error/ErrorNotification.js.map +1 -1
- package/dist/tools/components/file-browser/FilePreview.cjs +1 -1
- package/dist/tools/components/file-browser/FilePreview.cjs.map +1 -1
- package/dist/tools/components/file-browser/FilePreview.js +28 -26
- package/dist/tools/components/file-browser/FilePreview.js.map +1 -1
- package/dist/tools/components/filter/filter.cjs.map +1 -1
- package/dist/tools/components/filter/filter.d.cts +23 -34
- package/dist/tools/components/filter/filter.d.ts +23 -34
- package/dist/tools/components/filter/filter.js.map +1 -1
- package/dist/tools/components/form/EnhancedDetailPage.cjs.map +1 -1
- package/dist/tools/components/form/EnhancedDetailPage.d.cts +47 -42
- package/dist/tools/components/form/EnhancedDetailPage.d.ts +47 -42
- package/dist/tools/components/form/EnhancedDetailPage.js.map +1 -1
- package/dist/tools/components/form/form-grid.cjs.map +1 -1
- package/dist/tools/components/form/form-grid.d.cts +44 -22
- package/dist/tools/components/form/form-grid.d.ts +44 -22
- package/dist/tools/components/form/form-grid.js.map +1 -1
- package/dist/tools/components/gantt/GanttChart.cjs +1 -1
- package/dist/tools/components/gantt/GanttChart.cjs.map +1 -1
- package/dist/tools/components/gantt/GanttChart.d.cts +20 -1
- package/dist/tools/components/gantt/GanttChart.d.ts +20 -1
- package/dist/tools/components/gantt/GanttChart.js +3 -0
- package/dist/tools/components/gantt/GanttChart.js.map +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.cjs +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.cjs.map +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.js +2 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.js.map +1 -1
- package/dist/tools/components/header/header.cjs +1 -1
- package/dist/tools/components/header/header.cjs.map +1 -1
- package/dist/tools/components/header/header.d.cts +103 -40
- package/dist/tools/components/header/header.d.ts +103 -40
- package/dist/tools/components/header/header.js +1 -1
- package/dist/tools/components/header/header.js.map +1 -1
- package/dist/tools/components/i18n/LanguageSwitcher.cjs.map +1 -1
- package/dist/tools/components/i18n/LanguageSwitcher.d.cts +18 -14
- package/dist/tools/components/i18n/LanguageSwitcher.d.ts +18 -14
- package/dist/tools/components/i18n/LanguageSwitcher.js.map +1 -1
- package/dist/tools/components/kanban/KanbanBoard.cjs +1 -1
- package/dist/tools/components/kanban/KanbanBoard.cjs.map +1 -1
- package/dist/tools/components/kanban/KanbanBoard.d.cts +16 -34
- package/dist/tools/components/kanban/KanbanBoard.d.ts +16 -34
- package/dist/tools/components/kanban/KanbanBoard.js +3 -0
- package/dist/tools/components/kanban/KanbanBoard.js.map +1 -1
- package/dist/tools/components/kanban/KanbanColumn.cjs +1 -1
- package/dist/tools/components/kanban/KanbanColumn.cjs.map +1 -1
- package/dist/tools/components/kanban/KanbanColumn.js +1 -1
- package/dist/tools/components/kanban/KanbanColumn.js.map +1 -1
- package/dist/tools/components/kanban/kanban-compound.cjs +1 -1
- package/dist/tools/components/kanban/kanban-compound.cjs.map +1 -1
- package/dist/tools/components/kanban/kanban-compound.js +4 -1
- package/dist/tools/components/kanban/kanban-compound.js.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.js +0 -1
- package/dist/tools/components/kanban/kanban-primitives.js.map +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.cjs +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.cjs.map +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.js +3 -1
- package/dist/tools/components/priority-queue/PriorityCard.js.map +1 -1
- package/dist/tools/components/sidebar/SmartSidebar.cjs.map +1 -1
- package/dist/tools/components/sidebar/SmartSidebar.d.cts +41 -43
- package/dist/tools/components/sidebar/SmartSidebar.d.ts +41 -43
- package/dist/tools/components/sidebar/SmartSidebar.js.map +1 -1
- package/dist/tools/components/splash/SplashScreen.cjs.map +1 -1
- package/dist/tools/components/splash/SplashScreen.d.cts +43 -68
- package/dist/tools/components/splash/SplashScreen.d.ts +43 -68
- package/dist/tools/components/splash/SplashScreen.js.map +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.cjs +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.cjs.map +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.js +2 -2
- package/dist/tools/components/workflow/WorkflowStatusPanel.js.map +1 -1
- package/dist/tools/lib/data-access/data-access-context.cjs.map +1 -1
- package/dist/tools/lib/data-access/data-access-context.d.cts +15 -6
- package/dist/tools/lib/data-access/data-access-context.d.ts +15 -6
- package/dist/tools/lib/data-access/data-access-context.js.map +1 -1
- package/dist/tools/lib/data-access/react-query-provider.cjs.map +1 -1
- package/dist/tools/lib/data-access/react-query-provider.d.cts +19 -2
- package/dist/tools/lib/data-access/react-query-provider.d.ts +19 -2
- package/dist/tools/lib/data-access/react-query-provider.js.map +1 -1
- package/dist/tools/lib/data-access/react-query.cjs.map +1 -1
- package/dist/tools/lib/data-access/react-query.d.cts +365 -90
- package/dist/tools/lib/data-access/react-query.d.ts +365 -90
- package/dist/tools/lib/data-access/react-query.js.map +1 -1
- package/dist/tools/lib/error/AppError.cjs.map +1 -1
- package/dist/tools/lib/error/AppError.d.cts +157 -63
- package/dist/tools/lib/error/AppError.d.ts +157 -63
- package/dist/tools/lib/error/AppError.js.map +1 -1
- package/dist/tools/lib/hooks/useAsyncWithTimeout.cjs.map +1 -1
- package/dist/tools/lib/hooks/useAsyncWithTimeout.d.cts +79 -26
- package/dist/tools/lib/hooks/useAsyncWithTimeout.d.ts +79 -26
- package/dist/tools/lib/hooks/useAsyncWithTimeout.js.map +1 -1
- package/dist/tools/lib/hooks/useError.cjs.map +1 -1
- package/dist/tools/lib/hooks/useError.d.cts +51 -16
- package/dist/tools/lib/hooks/useError.d.ts +51 -16
- package/dist/tools/lib/hooks/useError.js.map +1 -1
- package/dist/tools/lib/schema/ajv.cjs +1 -1
- package/dist/tools/lib/schema/ajv.cjs.map +1 -1
- package/dist/tools/lib/schema/ajv.d.cts +19 -8
- package/dist/tools/lib/schema/ajv.d.ts +19 -8
- package/dist/tools/lib/schema/ajv.js +2 -1
- package/dist/tools/lib/schema/ajv.js.map +1 -1
- package/dist/tools/lib/state/error-store.cjs.map +1 -1
- package/dist/tools/lib/state/error-store.d.cts +61 -10
- package/dist/tools/lib/state/error-store.d.ts +61 -10
- package/dist/tools/lib/state/error-store.js.map +1 -1
- package/dist/tools/lib/state/store-factory.cjs.map +1 -1
- package/dist/tools/lib/state/store-factory.d.cts +25 -4
- package/dist/tools/lib/state/store-factory.d.ts +25 -4
- package/dist/tools/lib/state/store-factory.js.map +1 -1
- package/dist/tools/lib/state/ui-store.cjs.map +1 -1
- package/dist/tools/lib/state/ui-store.d.cts +39 -0
- package/dist/tools/lib/state/ui-store.d.ts +39 -0
- package/dist/tools/lib/state/ui-store.js.map +1 -1
- package/dist/ui/components/theme/theme-context.cjs.map +1 -1
- package/dist/ui/components/theme/theme-context.d.cts +171 -1
- package/dist/ui/components/theme/theme-context.d.ts +171 -1
- package/dist/ui/components/theme/theme-context.js.map +1 -1
- package/dist/ui/components/theme/theme-provider.cjs.map +1 -1
- package/dist/ui/components/theme/theme-provider.d.cts +31 -19
- package/dist/ui/components/theme/theme-provider.d.ts +31 -19
- package/dist/ui/components/theme/theme-provider.js.map +1 -1
- package/dist/ui/components/theme/theme-script.cjs.map +1 -1
- package/dist/ui/components/theme/theme-script.d.cts +16 -1
- package/dist/ui/components/theme/theme-script.d.ts +16 -1
- package/dist/ui/components/theme/theme-script.js.map +1 -1
- package/dist/ui/components/theme/theme-switcher.cjs +1 -1
- package/dist/ui/components/theme/theme-switcher.cjs.map +1 -1
- package/dist/ui/components/theme/theme-switcher.d.cts +82 -13
- package/dist/ui/components/theme/theme-switcher.d.ts +82 -13
- package/dist/ui/components/theme/theme-switcher.js +8 -0
- package/dist/ui/components/theme/theme-switcher.js.map +1 -1
- package/dist/ui/components/ui/accordion.cjs.map +1 -1
- package/dist/ui/components/ui/accordion.d.cts +60 -0
- package/dist/ui/components/ui/accordion.d.ts +60 -0
- package/dist/ui/components/ui/accordion.js.map +1 -1
- package/dist/ui/components/ui/adjustable-pane.cjs.map +1 -1
- package/dist/ui/components/ui/adjustable-pane.d.cts +44 -26
- package/dist/ui/components/ui/adjustable-pane.d.ts +44 -26
- package/dist/ui/components/ui/adjustable-pane.js.map +1 -1
- package/dist/ui/components/ui/alert-dialog.cjs.map +1 -1
- package/dist/ui/components/ui/alert-dialog.d.cts +179 -2
- package/dist/ui/components/ui/alert-dialog.d.ts +179 -2
- package/dist/ui/components/ui/alert-dialog.js.map +1 -1
- package/dist/ui/components/ui/alert.cjs.map +1 -1
- package/dist/ui/components/ui/alert.d.cts +52 -4
- package/dist/ui/components/ui/alert.d.ts +52 -4
- package/dist/ui/components/ui/alert.js.map +1 -1
- package/dist/ui/components/ui/aspect-ratio.cjs.map +1 -1
- package/dist/ui/components/ui/aspect-ratio.d.cts +16 -1
- package/dist/ui/components/ui/aspect-ratio.d.ts +16 -1
- package/dist/ui/components/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/components/ui/avatar.cjs.map +1 -1
- package/dist/ui/components/ui/avatar.d.cts +87 -3
- package/dist/ui/components/ui/avatar.d.ts +87 -3
- package/dist/ui/components/ui/avatar.js.map +1 -1
- package/dist/ui/components/ui/badge-components.cjs.map +1 -1
- package/dist/ui/components/ui/badge-components.d.cts +13 -1
- package/dist/ui/components/ui/badge-components.d.ts +13 -1
- package/dist/ui/components/ui/badge-components.js.map +1 -1
- package/dist/ui/components/ui/badge-variants.cjs.map +1 -1
- package/dist/ui/components/ui/badge-variants.d.cts +15 -0
- package/dist/ui/components/ui/badge-variants.d.ts +15 -0
- package/dist/ui/components/ui/badge-variants.js.map +1 -1
- package/dist/ui/components/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/components/ui/breadcrumb.d.cts +91 -7
- package/dist/ui/components/ui/breadcrumb.d.ts +91 -7
- package/dist/ui/components/ui/breadcrumb.js.map +1 -1
- package/dist/ui/components/ui/button-components.cjs.map +1 -1
- package/dist/ui/components/ui/button-components.d.cts +18 -6
- package/dist/ui/components/ui/button-components.d.ts +18 -6
- package/dist/ui/components/ui/button-components.js.map +1 -1
- package/dist/ui/components/ui/button-group-components.cjs.map +1 -1
- package/dist/ui/components/ui/button-group-components.d.cts +39 -3
- package/dist/ui/components/ui/button-group-components.d.ts +39 -3
- package/dist/ui/components/ui/button-group-components.js.map +1 -1
- package/dist/ui/components/ui/button-group-variants.cjs.map +1 -1
- package/dist/ui/components/ui/button-group-variants.d.cts +15 -0
- package/dist/ui/components/ui/button-group-variants.d.ts +15 -0
- package/dist/ui/components/ui/button-group-variants.js.map +1 -1
- package/dist/ui/components/ui/button-variants.cjs.map +1 -1
- package/dist/ui/components/ui/button-variants.d.cts +13 -2
- package/dist/ui/components/ui/button-variants.d.ts +13 -2
- package/dist/ui/components/ui/button-variants.js.map +1 -1
- package/dist/ui/components/ui/card.cjs.map +1 -1
- package/dist/ui/components/ui/card.d.cts +106 -2
- package/dist/ui/components/ui/card.d.ts +106 -2
- package/dist/ui/components/ui/card.js.map +1 -1
- package/dist/ui/components/ui/checkbox-group.cjs.map +1 -1
- package/dist/ui/components/ui/checkbox-group.d.cts +13 -1
- package/dist/ui/components/ui/checkbox-group.d.ts +13 -1
- package/dist/ui/components/ui/checkbox-group.js.map +1 -1
- package/dist/ui/components/ui/checkbox.cjs.map +1 -1
- package/dist/ui/components/ui/checkbox.d.cts +17 -6
- package/dist/ui/components/ui/checkbox.d.ts +17 -6
- package/dist/ui/components/ui/checkbox.js.map +1 -1
- package/dist/ui/components/ui/collapsible.cjs.map +1 -1
- package/dist/ui/components/ui/collapsible.d.cts +39 -3
- package/dist/ui/components/ui/collapsible.d.ts +39 -3
- package/dist/ui/components/ui/collapsible.js.map +1 -1
- package/dist/ui/components/ui/combobox-components.cjs.map +1 -1
- package/dist/ui/components/ui/combobox-components.d.cts +209 -14
- package/dist/ui/components/ui/combobox-components.d.ts +209 -14
- package/dist/ui/components/ui/combobox-components.js.map +1 -1
- package/dist/ui/components/ui/combobox-hooks.cjs.map +1 -1
- package/dist/ui/components/ui/combobox-hooks.d.cts +13 -1
- package/dist/ui/components/ui/combobox-hooks.d.ts +13 -1
- package/dist/ui/components/ui/combobox-hooks.js.map +1 -1
- package/dist/ui/components/ui/command.cjs.map +1 -1
- package/dist/ui/components/ui/command.d.cts +132 -9
- package/dist/ui/components/ui/command.d.ts +132 -9
- package/dist/ui/components/ui/command.js.map +1 -1
- package/dist/ui/components/ui/context-menu.cjs.map +1 -1
- package/dist/ui/components/ui/context-menu.d.cts +233 -2
- package/dist/ui/components/ui/context-menu.d.ts +233 -2
- package/dist/ui/components/ui/context-menu.js.map +1 -1
- package/dist/ui/components/ui/dialog.cjs.map +1 -1
- package/dist/ui/components/ui/dialog.d.cts +157 -5
- package/dist/ui/components/ui/dialog.d.ts +157 -5
- package/dist/ui/components/ui/dialog.js.map +1 -1
- package/dist/ui/components/ui/drawer.cjs.map +1 -1
- package/dist/ui/components/ui/drawer.d.cts +130 -10
- package/dist/ui/components/ui/drawer.d.ts +130 -10
- package/dist/ui/components/ui/drawer.js.map +1 -1
- package/dist/ui/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/ui/components/ui/dropdown-menu.d.cts +225 -6
- package/dist/ui/components/ui/dropdown-menu.d.ts +225 -6
- package/dist/ui/components/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/components/ui/empty.cjs.map +1 -1
- package/dist/ui/components/ui/empty.d.cts +78 -6
- package/dist/ui/components/ui/empty.d.ts +78 -6
- package/dist/ui/components/ui/empty.js.map +1 -1
- package/dist/ui/components/ui/field.cjs.map +1 -1
- package/dist/ui/components/ui/field.d.cts +180 -6
- package/dist/ui/components/ui/field.d.ts +180 -6
- package/dist/ui/components/ui/field.js.map +1 -1
- package/dist/ui/components/ui/file-icon.cjs.map +1 -1
- package/dist/ui/components/ui/file-icon.d.cts +32 -4
- package/dist/ui/components/ui/file-icon.d.ts +32 -4
- package/dist/ui/components/ui/file-icon.js.map +1 -1
- package/dist/ui/components/ui/hover-card.cjs.map +1 -1
- package/dist/ui/components/ui/hover-card.d.cts +39 -3
- package/dist/ui/components/ui/hover-card.d.ts +39 -3
- package/dist/ui/components/ui/hover-card.js.map +1 -1
- package/dist/ui/components/ui/input-group.cjs.map +1 -1
- package/dist/ui/components/ui/input-group.d.cts +84 -6
- package/dist/ui/components/ui/input-group.d.ts +84 -6
- package/dist/ui/components/ui/input-group.js.map +1 -1
- package/dist/ui/components/ui/input-otp.cjs.map +1 -1
- package/dist/ui/components/ui/input-otp.d.cts +58 -4
- package/dist/ui/components/ui/input-otp.d.ts +58 -4
- package/dist/ui/components/ui/input-otp.js.map +1 -1
- package/dist/ui/components/ui/input.cjs.map +1 -1
- package/dist/ui/components/ui/input.d.cts +18 -10
- package/dist/ui/components/ui/input.d.ts +18 -10
- package/dist/ui/components/ui/input.js.map +1 -1
- package/dist/ui/components/ui/item.cjs.map +1 -1
- package/dist/ui/components/ui/item.d.cts +130 -10
- package/dist/ui/components/ui/item.d.ts +130 -10
- package/dist/ui/components/ui/item.js.map +1 -1
- package/dist/ui/components/ui/kbd.cjs.map +1 -1
- package/dist/ui/components/ui/kbd.d.cts +26 -2
- package/dist/ui/components/ui/kbd.d.ts +26 -2
- package/dist/ui/components/ui/kbd.js.map +1 -1
- package/dist/ui/components/ui/label.cjs.map +1 -1
- package/dist/ui/components/ui/label.d.cts +15 -0
- package/dist/ui/components/ui/label.d.ts +15 -0
- package/dist/ui/components/ui/label.js.map +1 -1
- package/dist/ui/components/ui/layout.cjs +1 -1
- package/dist/ui/components/ui/layout.cjs.map +1 -1
- package/dist/ui/components/ui/layout.d.cts +45 -11
- package/dist/ui/components/ui/layout.d.ts +45 -11
- package/dist/ui/components/ui/layout.js +22 -20
- package/dist/ui/components/ui/layout.js.map +1 -1
- package/dist/ui/components/ui/menubar.cjs.map +1 -1
- package/dist/ui/components/ui/menubar.d.cts +220 -16
- package/dist/ui/components/ui/menubar.d.ts +220 -16
- package/dist/ui/components/ui/menubar.js.map +1 -1
- package/dist/ui/components/ui/meter.cjs.map +1 -1
- package/dist/ui/components/ui/meter.d.cts +52 -4
- package/dist/ui/components/ui/meter.d.ts +52 -4
- package/dist/ui/components/ui/meter.js.map +1 -1
- package/dist/ui/components/ui/mobile-form-variants.cjs.map +1 -1
- package/dist/ui/components/ui/mobile-form-variants.d.cts +30 -0
- package/dist/ui/components/ui/mobile-form-variants.d.ts +30 -0
- package/dist/ui/components/ui/mobile-form-variants.js.map +1 -1
- package/dist/ui/components/ui/mobile-form.cjs.map +1 -1
- package/dist/ui/components/ui/mobile-form.d.cts +186 -9
- package/dist/ui/components/ui/mobile-form.d.ts +186 -9
- package/dist/ui/components/ui/mobile-form.js.map +1 -1
- package/dist/ui/components/ui/navigation-menu-components.cjs.map +1 -1
- package/dist/ui/components/ui/navigation-menu-components.d.cts +104 -8
- package/dist/ui/components/ui/navigation-menu-components.d.ts +104 -8
- package/dist/ui/components/ui/navigation-menu-components.js.map +1 -1
- package/dist/ui/components/ui/navigation-menu-variants.cjs.map +1 -1
- package/dist/ui/components/ui/navigation-menu-variants.d.cts +15 -0
- package/dist/ui/components/ui/navigation-menu-variants.d.ts +15 -0
- package/dist/ui/components/ui/navigation-menu-variants.js.map +1 -1
- package/dist/ui/components/ui/number-field.cjs.map +1 -1
- package/dist/ui/components/ui/number-field.d.cts +78 -6
- package/dist/ui/components/ui/number-field.d.ts +78 -6
- package/dist/ui/components/ui/number-field.js.map +1 -1
- package/dist/ui/components/ui/pagination.cjs.map +1 -1
- package/dist/ui/components/ui/pagination.d.cts +99 -7
- package/dist/ui/components/ui/pagination.d.ts +99 -7
- package/dist/ui/components/ui/pagination.js.map +1 -1
- package/dist/ui/components/ui/password-input.cjs.map +1 -1
- package/dist/ui/components/ui/password-input.d.cts +10 -7
- package/dist/ui/components/ui/password-input.d.ts +10 -7
- package/dist/ui/components/ui/password-input.js.map +1 -1
- package/dist/ui/components/ui/popover.cjs.map +1 -1
- package/dist/ui/components/ui/popover.d.cts +86 -2
- package/dist/ui/components/ui/popover.d.ts +86 -2
- package/dist/ui/components/ui/popover.js.map +1 -1
- package/dist/ui/components/ui/progress.cjs.map +1 -1
- package/dist/ui/components/ui/progress.d.cts +72 -2
- package/dist/ui/components/ui/progress.d.ts +72 -2
- package/dist/ui/components/ui/progress.js.map +1 -1
- package/dist/ui/components/ui/radio-card.cjs.map +1 -1
- package/dist/ui/components/ui/radio-card.d.cts +32 -4
- package/dist/ui/components/ui/radio-card.d.ts +32 -4
- package/dist/ui/components/ui/radio-card.js.map +1 -1
- package/dist/ui/components/ui/radio-group.cjs.map +1 -1
- package/dist/ui/components/ui/radio-group.d.cts +28 -2
- package/dist/ui/components/ui/radio-group.d.ts +28 -2
- package/dist/ui/components/ui/radio-group.js.map +1 -1
- package/dist/ui/components/ui/resizable.cjs.map +1 -1
- package/dist/ui/components/ui/resizable.d.cts +42 -3
- package/dist/ui/components/ui/resizable.d.ts +42 -3
- package/dist/ui/components/ui/resizable.js.map +1 -1
- package/dist/ui/components/ui/responsive-list.cjs.map +1 -1
- package/dist/ui/components/ui/responsive-list.d.cts +176 -13
- package/dist/ui/components/ui/responsive-list.d.ts +176 -13
- package/dist/ui/components/ui/responsive-list.js.map +1 -1
- package/dist/ui/components/ui/scroll-area.cjs.map +1 -1
- package/dist/ui/components/ui/scroll-area.d.cts +28 -1
- package/dist/ui/components/ui/scroll-area.d.ts +28 -1
- package/dist/ui/components/ui/scroll-area.js.map +1 -1
- package/dist/ui/components/ui/searchable-select-input.cjs.map +1 -1
- package/dist/ui/components/ui/searchable-select-input.d.cts +199 -49
- package/dist/ui/components/ui/searchable-select-input.d.ts +199 -49
- package/dist/ui/components/ui/searchable-select-input.js.map +1 -1
- package/dist/ui/components/ui/select.cjs.map +1 -1
- package/dist/ui/components/ui/select.d.cts +205 -40
- package/dist/ui/components/ui/select.d.ts +205 -40
- package/dist/ui/components/ui/select.js.map +1 -1
- package/dist/ui/components/ui/separator.cjs.map +1 -1
- package/dist/ui/components/ui/separator.d.cts +13 -2
- package/dist/ui/components/ui/separator.d.ts +13 -2
- package/dist/ui/components/ui/separator.js.map +1 -1
- package/dist/ui/components/ui/sheet.cjs.map +1 -1
- package/dist/ui/components/ui/sheet.d.cts +128 -3
- package/dist/ui/components/ui/sheet.d.ts +128 -3
- package/dist/ui/components/ui/sheet.js.map +1 -1
- package/dist/ui/components/ui/skeleton.cjs.map +1 -1
- package/dist/ui/components/ui/skeleton.d.cts +13 -1
- package/dist/ui/components/ui/skeleton.d.ts +13 -1
- package/dist/ui/components/ui/skeleton.js.map +1 -1
- package/dist/ui/components/ui/slider.cjs.map +1 -1
- package/dist/ui/components/ui/slider.d.cts +13 -7
- package/dist/ui/components/ui/slider.d.ts +13 -7
- package/dist/ui/components/ui/slider.js.map +1 -1
- package/dist/ui/components/ui/spinner.cjs.map +1 -1
- package/dist/ui/components/ui/spinner.d.cts +13 -1
- package/dist/ui/components/ui/spinner.d.ts +13 -1
- package/dist/ui/components/ui/spinner.js.map +1 -1
- package/dist/ui/components/ui/switch.cjs.map +1 -1
- package/dist/ui/components/ui/switch.d.cts +26 -0
- package/dist/ui/components/ui/switch.d.ts +26 -0
- package/dist/ui/components/ui/switch.js.map +1 -1
- package/dist/ui/components/ui/table.cjs.map +1 -1
- package/dist/ui/components/ui/table.d.cts +118 -2
- package/dist/ui/components/ui/table.d.ts +118 -2
- package/dist/ui/components/ui/table.js.map +1 -1
- package/dist/ui/components/ui/tabs-components.cjs.map +1 -1
- package/dist/ui/components/ui/tabs-components.d.cts +52 -5
- package/dist/ui/components/ui/tabs-components.d.ts +52 -5
- package/dist/ui/components/ui/tabs-components.js.map +1 -1
- package/dist/ui/components/ui/tabs-variants.cjs.map +1 -1
- package/dist/ui/components/ui/tabs-variants.d.cts +15 -0
- package/dist/ui/components/ui/tabs-variants.d.ts +15 -0
- package/dist/ui/components/ui/tabs-variants.js.map +1 -1
- package/dist/ui/components/ui/textarea.cjs.map +1 -1
- package/dist/ui/components/ui/textarea.d.cts +23 -0
- package/dist/ui/components/ui/textarea.d.ts +23 -0
- package/dist/ui/components/ui/textarea.js.map +1 -1
- package/dist/ui/components/ui/toast.cjs.map +1 -1
- package/dist/ui/components/ui/toast.d.cts +136 -0
- package/dist/ui/components/ui/toast.d.ts +136 -0
- package/dist/ui/components/ui/toast.js.map +1 -1
- package/dist/ui/components/ui/toaster.cjs.map +1 -1
- package/dist/ui/components/ui/toaster.d.cts +12 -3
- package/dist/ui/components/ui/toaster.d.ts +12 -3
- package/dist/ui/components/ui/toaster.js.map +1 -1
- package/dist/ui/components/ui/toggle-components.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-components.d.cts +15 -0
- package/dist/ui/components/ui/toggle-components.d.ts +15 -0
- package/dist/ui/components/ui/toggle-components.js.map +1 -1
- package/dist/ui/components/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-group.d.cts +33 -0
- package/dist/ui/components/ui/toggle-group.d.ts +33 -0
- package/dist/ui/components/ui/toggle-group.js.map +1 -1
- package/dist/ui/components/ui/toggle-variants.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-variants.d.cts +15 -0
- package/dist/ui/components/ui/toggle-variants.d.ts +15 -0
- package/dist/ui/components/ui/toggle-variants.js.map +1 -1
- package/dist/ui/components/ui/toolbar.cjs.map +1 -1
- package/dist/ui/components/ui/toolbar.d.cts +94 -7
- package/dist/ui/components/ui/toolbar.d.ts +94 -7
- package/dist/ui/components/ui/toolbar.js.map +1 -1
- package/dist/ui/components/ui/tooltip.cjs.map +1 -1
- package/dist/ui/components/ui/tooltip.d.cts +54 -3
- package/dist/ui/components/ui/tooltip.d.ts +54 -3
- package/dist/ui/components/ui/tooltip.js.map +1 -1
- package/dist/ui/lib/hooks/use-gps.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-gps.d.cts +29 -4
- package/dist/ui/lib/hooks/use-gps.d.ts +29 -4
- package/dist/ui/lib/hooks/use-gps.js.map +1 -1
- package/dist/ui/lib/hooks/use-is-client.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-is-client.d.cts +11 -2
- package/dist/ui/lib/hooks/use-is-client.d.ts +11 -2
- package/dist/ui/lib/hooks/use-is-client.js.map +1 -1
- package/dist/ui/lib/hooks/use-keyboard-shortcut.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-keyboard-shortcut.d.cts +48 -18
- package/dist/ui/lib/hooks/use-keyboard-shortcut.d.ts +48 -18
- package/dist/ui/lib/hooks/use-keyboard-shortcut.js.map +1 -1
- package/dist/ui/lib/hooks/use-mobile.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-mobile.d.cts +11 -3
- package/dist/ui/lib/hooks/use-mobile.d.ts +11 -3
- package/dist/ui/lib/hooks/use-mobile.js.map +1 -1
- package/dist/ui/lib/hooks/use-toast.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-toast.d.cts +184 -15
- package/dist/ui/lib/hooks/use-toast.d.ts +184 -15
- package/dist/ui/lib/hooks/use-toast.js.map +1 -1
- package/dist/ui/lib/ime-utils.cjs.map +1 -1
- package/dist/ui/lib/ime-utils.d.cts +40 -13
- package/dist/ui/lib/ime-utils.d.ts +40 -13
- package/dist/ui/lib/ime-utils.js.map +1 -1
- package/dist/ui/lib/utils.cjs.map +1 -1
- package/dist/ui/lib/utils.d.cts +9 -6
- package/dist/ui/lib/utils.d.ts +9 -6
- package/dist/ui/lib/utils.js.map +1 -1
- package/docs/ai.md +34 -1
- package/docs/exports.md +5 -1
- package/docs/index.md +89 -16
- package/docs/migration.md +268 -0
- package/docs/request-form.md +4 -1
- package/docs/tools.md +4 -1
- package/docs/ui.md +4 -1
- package/llms-full.txt +499 -36
- package/llms.txt +4 -0
- package/package.json +35 -5
|
@@ -4,112 +4,126 @@ import { buttonVariants as t } from "../../../ui/components/ui/button-variants.j
|
|
|
4
4
|
import { Button as n } from "../../../ui/components/ui/button-components.js";
|
|
5
5
|
import { Input as r } from "../../../ui/components/ui/input.js";
|
|
6
6
|
import { DropdownMenu as i, DropdownMenuCheckboxItem as a, DropdownMenuContent as o, DropdownMenuGroup as s, DropdownMenuLabel as c, DropdownMenuSeparator as l, DropdownMenuTrigger as u } from "../../../ui/components/ui/dropdown-menu.js";
|
|
7
|
-
import { Table as d, TableBody as f, TableCell as p, TableHead as
|
|
8
|
-
import { dataTable_filterPlaceholder as
|
|
9
|
-
import { dataTable_goToFirstPage as
|
|
10
|
-
import { dataTable_goToLastPage as
|
|
11
|
-
import { dataTable_goToNextPage as
|
|
12
|
-
import { dataTable_goToPreviousPage as
|
|
13
|
-
import { dataTable_items as
|
|
14
|
-
import { dataTable_noResults as
|
|
15
|
-
import { dataTable_page as
|
|
16
|
-
import { dataTable_rowsPerPage as
|
|
17
|
-
import { dataTable_rowsSelected as
|
|
18
|
-
import { dataTable_toggleColumns as
|
|
19
|
-
import { dataTable_view as
|
|
20
|
-
import { dataTableFeatures as
|
|
21
|
-
import { useDataTableStore as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import * as
|
|
24
|
-
import { ChevronDown as
|
|
25
|
-
import { DndContext as
|
|
26
|
-
import { SortableContext as
|
|
27
|
-
import { CSS as
|
|
7
|
+
import { Table as d, TableBody as f, TableCell as p, TableHead as ee, TableHeader as te, TableRow as m } from "../../../ui/components/ui/table.js";
|
|
8
|
+
import { dataTable_filterPlaceholder as ne } from "../../paraglide/messages/datatable_filterplaceholder2.js";
|
|
9
|
+
import { dataTable_goToFirstPage as h } from "../../paraglide/messages/datatable_gotofirstpage4.js";
|
|
10
|
+
import { dataTable_goToLastPage as g } from "../../paraglide/messages/datatable_gotolastpage4.js";
|
|
11
|
+
import { dataTable_goToNextPage as _ } from "../../paraglide/messages/datatable_gotonextpage4.js";
|
|
12
|
+
import { dataTable_goToPreviousPage as v } from "../../paraglide/messages/datatable_gotopreviouspage4.js";
|
|
13
|
+
import { dataTable_items as re } from "../../paraglide/messages/datatable_items1.js";
|
|
14
|
+
import { dataTable_noResults as ie } from "../../paraglide/messages/datatable_noresults2.js";
|
|
15
|
+
import { dataTable_page as ae } from "../../paraglide/messages/datatable_page1.js";
|
|
16
|
+
import { dataTable_rowsPerPage as y } from "../../paraglide/messages/datatable_rowsperpage3.js";
|
|
17
|
+
import { dataTable_rowsSelected as b } from "../../paraglide/messages/datatable_rowsselected2.js";
|
|
18
|
+
import { dataTable_toggleColumns as x } from "../../paraglide/messages/datatable_togglecolumns2.js";
|
|
19
|
+
import { dataTable_view as S } from "../../paraglide/messages/datatable_view1.js";
|
|
20
|
+
import { dataTableFeatures as oe, flexRender as se, useTable as ce } from "./table-engine.js";
|
|
21
|
+
import { useDataTableStore as C } from "./table-store.js";
|
|
22
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
23
|
+
import * as D from "react";
|
|
24
|
+
import { ChevronDown as le, ChevronLeft as O, ChevronRight as k, ChevronUp as A, ChevronsLeft as j, ChevronsRight as M, Filter as ue, GripVertical as N, Plus as de, Settings2 as P } from "lucide-react";
|
|
25
|
+
import { DndContext as fe, KeyboardSensor as pe, PointerSensor as me, closestCenter as he, useSensor as ge, useSensors as _e } from "@dnd-kit/core";
|
|
26
|
+
import { SortableContext as ve, arrayMove as ye, horizontalListSortingStrategy as be, sortableKeyboardCoordinates as xe, useSortable as F } from "@dnd-kit/sortable";
|
|
27
|
+
import { CSS as I } from "@dnd-kit/utilities";
|
|
28
28
|
//#region src/tools/components/data-table/data-table.tsx
|
|
29
|
-
function
|
|
30
|
-
let { attributes: a, listeners: o, setNodeRef: s,
|
|
29
|
+
function Se({ header: t, enableColumnOrdering: n = !0, enableMultiSort: r = !1, sortIndex: i }) {
|
|
30
|
+
let { attributes: a, listeners: o, setNodeRef: s, setActivatorNodeRef: c, transform: l, transition: u, isDragging: d } = F({
|
|
31
31
|
id: t.column.id,
|
|
32
32
|
disabled: !n
|
|
33
|
-
}),
|
|
34
|
-
transform:
|
|
35
|
-
transition:
|
|
36
|
-
opacity:
|
|
37
|
-
zIndex: +!!
|
|
33
|
+
}), f = t.column.getCanSort(), p = t.column.getIsSorted(), te = p !== !1, m = f && typeof t.column.columnDef.header != "function" ? "button" : "span", ne = n ? {
|
|
34
|
+
transform: I.Translate.toString(l),
|
|
35
|
+
transition: u,
|
|
36
|
+
opacity: d ? .8 : 1,
|
|
37
|
+
zIndex: +!!d,
|
|
38
38
|
position: "relative",
|
|
39
39
|
cursor: "move"
|
|
40
|
-
} : {}
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ C(m, {
|
|
40
|
+
} : {};
|
|
41
|
+
return /* @__PURE__ */ E(ee, {
|
|
44
42
|
ref: n ? s : void 0,
|
|
45
|
-
style:
|
|
46
|
-
|
|
43
|
+
style: ne,
|
|
44
|
+
"aria-sort": f ? p === "asc" ? "ascending" : p === "desc" ? "descending" : "none" : void 0,
|
|
45
|
+
className: e("bg-primary/10 text-primary font-bold border-b border-primary/20", f && "cursor-pointer select-none hover:bg-primary/20 transition-colors"),
|
|
46
|
+
onClick: f ? (e) => {
|
|
47
|
+
f && !e.target.closest("button, input, select, [role=checkbox]") && (r && e.shiftKey ? t.column.toggleSorting(void 0, !0) : t.column.toggleSorting());
|
|
48
|
+
} : void 0,
|
|
49
|
+
children: [n && !t.isPlaceholder && /* @__PURE__ */ T("button", {
|
|
50
|
+
type: "button",
|
|
51
|
+
ref: c,
|
|
47
52
|
...a,
|
|
48
|
-
...o
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
...o,
|
|
54
|
+
"aria-label": `Reorder column ${t.column.id}`,
|
|
55
|
+
className: "inline-flex h-6 w-6 items-center justify-center cursor-grab",
|
|
56
|
+
children: /* @__PURE__ */ T(N, {
|
|
57
|
+
className: "h-3 w-3",
|
|
58
|
+
"aria-hidden": "true"
|
|
59
|
+
})
|
|
60
|
+
}), t.isPlaceholder ? null : /* @__PURE__ */ E("span", {
|
|
53
61
|
className: "inline-flex items-center gap-1",
|
|
54
|
-
children: [/* @__PURE__ */
|
|
55
|
-
className: e(
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
children: [/* @__PURE__ */ T(m, {
|
|
63
|
+
className: e(te && "font-semibold"),
|
|
64
|
+
...m === "button" ? {
|
|
65
|
+
type: "button",
|
|
66
|
+
onClick: (e) => {
|
|
67
|
+
e.stopPropagation(), t.column.toggleSorting(void 0, r && e.shiftKey);
|
|
68
|
+
}
|
|
69
|
+
} : {},
|
|
70
|
+
children: se(t.column.columnDef.header, t.getContext())
|
|
71
|
+
}), te && /* @__PURE__ */ E("span", {
|
|
58
72
|
className: "inline-flex items-center text-xs",
|
|
59
|
-
children: [
|
|
73
|
+
children: [T(p === "asc" ? A : le, { className: "h-3.5 w-3.5" }), r && i !== void 0 && i >= 0 && /* @__PURE__ */ T("span", {
|
|
60
74
|
className: "text-[10px] ml-0.5",
|
|
61
75
|
children: i + 1
|
|
62
76
|
})]
|
|
63
77
|
})]
|
|
64
|
-
})
|
|
78
|
+
})]
|
|
65
79
|
});
|
|
66
80
|
}
|
|
67
|
-
function
|
|
81
|
+
function Ce({ columns: t, data: i, variant: a = "default", filterContent: o, storageKey: s, enableSortingByDefault: c = !0, enableMultiSort: l = !1, showRowNumber: u = !1, itemCount: ee, onAdd: h, pageCount: g, rowCount: _, onPaginationChange: v, onSortingChange: ae, onColumnFiltersChange: y, onRowClick: b, onSelectionChange: x, rowIdField: S = "id", manualPagination: w = !1, manualSorting: le = !1, manualFiltering: O = !1, filterColumn: k, sorting: A, pagination: j, enableColumnOrdering: M = !0, containerClassName: N, tableClassName: P, pageSizeOptions: F = [
|
|
68
82
|
10,
|
|
69
83
|
20,
|
|
70
84
|
30,
|
|
71
85
|
50,
|
|
72
86
|
100
|
|
73
|
-
], filterLayout:
|
|
87
|
+
], filterLayout: I = "inline", defaultFilterOpen: Ce = !1, activeFiltersContent: z }) {
|
|
74
88
|
"use no memo";
|
|
75
|
-
let
|
|
89
|
+
let Te = C((e) => e.getTableSettings), Ee = C((e) => e.setTableSettings), B = C((e) => e._hasHydrated), V = D.useSyncExternalStore(D.useCallback(() => () => {}, []), () => !0, () => !1), [H, De] = D.useState(Ce), [Oe, ke] = D.useState(A || []), [U, Ae] = D.useState([]), [W, je] = D.useState({}), [Me, Ne] = D.useState({}), [Pe, Fe] = D.useState(j || {
|
|
76
90
|
pageIndex: 0,
|
|
77
91
|
pageSize: 10
|
|
78
|
-
}), [
|
|
79
|
-
let t = typeof e == "function" ? e(
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
let t = typeof e == "function" ? e(
|
|
83
|
-
|
|
84
|
-
}, [
|
|
92
|
+
}), [G, K] = D.useState(t.map((e) => e.id || e.accessorKey)), Ie = j !== void 0, q = A ?? Oe, J = j ?? Pe, Le = (e) => {
|
|
93
|
+
let t = typeof e == "function" ? e(q) : e;
|
|
94
|
+
A === void 0 && ke(t), ae?.(t);
|
|
95
|
+
}, Re = (e) => {
|
|
96
|
+
let t = typeof e == "function" ? e(J) : e;
|
|
97
|
+
j === void 0 && Fe(t), v?.(t);
|
|
98
|
+
}, [ze, Be] = D.useState(null), Y = D.useMemo(() => t.map((e) => e.id || e.accessorKey || "").join("|"), [t]), X = D.useMemo(() => new Set(Y.split("|").filter(Boolean)), [Y]), Z = s ? JSON.stringify([
|
|
85
99
|
s,
|
|
86
|
-
|
|
87
|
-
!!
|
|
88
|
-
!!
|
|
100
|
+
Y,
|
|
101
|
+
!!A,
|
|
102
|
+
!!j
|
|
89
103
|
]) : null;
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
let e =
|
|
104
|
+
if (B && s && ze !== Z) {
|
|
105
|
+
Be(Z);
|
|
106
|
+
let e = Te(s);
|
|
93
107
|
if (e) {
|
|
94
|
-
if (!
|
|
95
|
-
let t = e.sorting.filter((e) =>
|
|
96
|
-
t.length > 0 &&
|
|
108
|
+
if (!A && e.sorting && e.sorting.length > 0) {
|
|
109
|
+
let t = e.sorting.filter((e) => X.has(e.id));
|
|
110
|
+
t.length > 0 && ke(t);
|
|
97
111
|
}
|
|
98
112
|
if (e.columnVisibility && Object.keys(e.columnVisibility).length > 0) {
|
|
99
113
|
let t = {};
|
|
100
|
-
for (let [n, r] of Object.entries(e.columnVisibility))
|
|
101
|
-
Object.keys(t).length > 0 &&
|
|
114
|
+
for (let [n, r] of Object.entries(e.columnVisibility)) X.has(n) && (t[n] = r);
|
|
115
|
+
Object.keys(t).length > 0 && je(t);
|
|
102
116
|
}
|
|
103
|
-
if (!
|
|
117
|
+
if (!j && e.pageSize && e.pageSize !== 10 && Fe((t) => ({
|
|
104
118
|
...t,
|
|
105
119
|
pageSize: e.pageSize
|
|
106
120
|
})), e.columnOrder && e.columnOrder.length > 0) {
|
|
107
|
-
let t = e.columnOrder.filter((e) =>
|
|
108
|
-
i.length > 0 &&
|
|
121
|
+
let t = e.columnOrder.filter((e) => X.has(e)), n = new Set(t), r = Array.from(X).filter((e) => !n.has(e)), i = [...t, ...r];
|
|
122
|
+
i.length > 0 && K(i);
|
|
109
123
|
}
|
|
110
124
|
}
|
|
111
125
|
}
|
|
112
|
-
let
|
|
126
|
+
let Ve = D.useMemo(() => ({
|
|
113
127
|
id: "rowNumber",
|
|
114
128
|
header: "No",
|
|
115
129
|
enableSorting: !1,
|
|
@@ -117,8 +131,8 @@ function P({ columns: t, data: i, variant: a = "default", filterContent: o, stor
|
|
|
117
131
|
let n = t.store.state.pagination;
|
|
118
132
|
return n ? n.pageIndex * n.pageSize + e.index + 1 : e.index + 1;
|
|
119
133
|
}
|
|
120
|
-
}), []),
|
|
121
|
-
let e = u ? [
|
|
134
|
+
}), []), He = D.useMemo(() => {
|
|
135
|
+
let e = u ? [Ve, ...t] : t;
|
|
122
136
|
return c ? e.map((e) => ({
|
|
123
137
|
...e,
|
|
124
138
|
enableSorting: e.enableSorting !== !1
|
|
@@ -126,247 +140,248 @@ function P({ columns: t, data: i, variant: a = "default", filterContent: o, stor
|
|
|
126
140
|
}, [
|
|
127
141
|
u,
|
|
128
142
|
t,
|
|
129
|
-
|
|
143
|
+
Ve,
|
|
130
144
|
c
|
|
131
|
-
]),
|
|
132
|
-
if (
|
|
145
|
+
]), Ue = D.useCallback((e) => {
|
|
146
|
+
if (S) return S.split("_").reduce((e, t) => {
|
|
133
147
|
if (e && typeof e == "object" && t !== "__proto__" && t !== "constructor" && t !== "prototype" && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
|
|
134
148
|
}, e);
|
|
135
|
-
}, [
|
|
136
|
-
|
|
137
|
-
s &&
|
|
138
|
-
columnOrder:
|
|
139
|
-
columnVisibility:
|
|
140
|
-
sorting:
|
|
141
|
-
pageSize:
|
|
149
|
+
}, [S]);
|
|
150
|
+
D.useEffect(() => {
|
|
151
|
+
s && B && ze === Z && Ee(s, {
|
|
152
|
+
columnOrder: G,
|
|
153
|
+
columnVisibility: W,
|
|
154
|
+
sorting: q,
|
|
155
|
+
pageSize: J.pageSize
|
|
142
156
|
});
|
|
143
157
|
}, [
|
|
144
158
|
s,
|
|
145
|
-
|
|
146
|
-
V,
|
|
159
|
+
G,
|
|
147
160
|
W,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
K,
|
|
152
|
-
Y
|
|
153
|
-
]), T.useEffect(() => {
|
|
154
|
-
E && _ && _(B);
|
|
155
|
-
}, [
|
|
161
|
+
q,
|
|
162
|
+
J.pageSize,
|
|
163
|
+
Ee,
|
|
156
164
|
B,
|
|
157
|
-
|
|
158
|
-
|
|
165
|
+
ze,
|
|
166
|
+
Z
|
|
167
|
+
]), D.useEffect(() => {
|
|
168
|
+
O && y && y(U);
|
|
169
|
+
}, [
|
|
170
|
+
U,
|
|
171
|
+
O,
|
|
172
|
+
y
|
|
159
173
|
]);
|
|
160
|
-
let
|
|
161
|
-
features:
|
|
174
|
+
let Q = ce({
|
|
175
|
+
features: oe,
|
|
162
176
|
data: i,
|
|
163
|
-
columns:
|
|
164
|
-
pageCount:
|
|
165
|
-
rowCount:
|
|
166
|
-
getRowId:
|
|
167
|
-
let n =
|
|
177
|
+
columns: He,
|
|
178
|
+
pageCount: w ? g : void 0,
|
|
179
|
+
rowCount: w ? _ : void 0,
|
|
180
|
+
getRowId: S ? (e, t) => {
|
|
181
|
+
let n = S.split("_").reduce((e, t) => {
|
|
168
182
|
if (e && typeof e == "object" && t in e) return e[t];
|
|
169
183
|
}, e);
|
|
170
184
|
return String(n === void 0 ? t : n);
|
|
171
185
|
} : void 0,
|
|
172
186
|
state: {
|
|
173
|
-
sorting:
|
|
174
|
-
columnFilters:
|
|
175
|
-
columnVisibility:
|
|
176
|
-
rowSelection:
|
|
177
|
-
pagination:
|
|
178
|
-
columnOrder:
|
|
187
|
+
sorting: q,
|
|
188
|
+
columnFilters: U,
|
|
189
|
+
columnVisibility: W,
|
|
190
|
+
rowSelection: Me,
|
|
191
|
+
pagination: J,
|
|
192
|
+
columnOrder: G
|
|
179
193
|
},
|
|
180
194
|
enableRowSelection: !0,
|
|
181
195
|
enableMultiSort: l,
|
|
182
|
-
onRowSelectionChange:
|
|
183
|
-
onSortingChange:
|
|
184
|
-
onColumnFiltersChange:
|
|
185
|
-
onColumnVisibilityChange:
|
|
186
|
-
onPaginationChange:
|
|
187
|
-
onColumnOrderChange:
|
|
188
|
-
autoResetPageIndex:
|
|
189
|
-
manualPagination:
|
|
190
|
-
manualSorting:
|
|
191
|
-
manualFiltering:
|
|
196
|
+
onRowSelectionChange: Ne,
|
|
197
|
+
onSortingChange: Le,
|
|
198
|
+
onColumnFiltersChange: Ae,
|
|
199
|
+
onColumnVisibilityChange: je,
|
|
200
|
+
onPaginationChange: Re,
|
|
201
|
+
onColumnOrderChange: K,
|
|
202
|
+
autoResetPageIndex: w || Ie ? !1 : void 0,
|
|
203
|
+
manualPagination: w,
|
|
204
|
+
manualSorting: le,
|
|
205
|
+
manualFiltering: O
|
|
192
206
|
});
|
|
193
|
-
|
|
194
|
-
|
|
207
|
+
D.useEffect(() => {
|
|
208
|
+
x && x(Q.getFilteredSelectedRowModel().rows.map((e) => e.original));
|
|
195
209
|
}, [
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
210
|
+
Me,
|
|
211
|
+
Q,
|
|
212
|
+
x
|
|
199
213
|
]);
|
|
200
|
-
let
|
|
214
|
+
let We = _e(ge(me, { activationConstraint: { distance: 8 } }), ge(pe, { coordinateGetter: xe })), Ge = D.useCallback((e) => {
|
|
201
215
|
let { active: t, over: n } = e;
|
|
202
|
-
t && n && t.id !== n.id &&
|
|
216
|
+
t && n && t.id !== n.id && K((e) => {
|
|
203
217
|
let r = e.indexOf(t.id), i = e.indexOf(n.id);
|
|
204
|
-
return
|
|
218
|
+
return ye(e, r, i);
|
|
205
219
|
});
|
|
206
|
-
}, []),
|
|
207
|
-
sensors:
|
|
208
|
-
collisionDetection:
|
|
209
|
-
onDragEnd:
|
|
210
|
-
children: /* @__PURE__ */
|
|
211
|
-
className: e("rounded-md border",
|
|
212
|
-
children: /* @__PURE__ */
|
|
213
|
-
items:
|
|
214
|
-
strategy:
|
|
215
|
-
children: /* @__PURE__ */
|
|
220
|
+
}, []), Ke = D.useCallback((e) => q.findIndex((t) => t.id === e), [q]), qe = D.useCallback(() => /* @__PURE__ */ T(fe, {
|
|
221
|
+
sensors: We,
|
|
222
|
+
collisionDetection: he,
|
|
223
|
+
onDragEnd: Ge,
|
|
224
|
+
children: /* @__PURE__ */ T("div", {
|
|
225
|
+
className: e("rounded-md border", P),
|
|
226
|
+
children: /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(te, { children: Q.getHeaderGroups().map((e) => /* @__PURE__ */ T(ve, {
|
|
227
|
+
items: G,
|
|
228
|
+
strategy: be,
|
|
229
|
+
children: /* @__PURE__ */ T(m, { children: e.headers.map((e) => /* @__PURE__ */ T(Se, {
|
|
216
230
|
header: e,
|
|
217
|
-
enableColumnOrdering:
|
|
231
|
+
enableColumnOrdering: M,
|
|
218
232
|
enableMultiSort: l,
|
|
219
|
-
sortIndex:
|
|
233
|
+
sortIndex: Ke(e.column.id)
|
|
220
234
|
}, e.id)) })
|
|
221
|
-
}, e.id)) }), /* @__PURE__ */
|
|
235
|
+
}, e.id)) }), /* @__PURE__ */ T(f, { children: Q.getRowModel().rows?.length ? Q.getRowModel().rows.map((e) => /* @__PURE__ */ T(m, {
|
|
222
236
|
"data-state": e.getIsSelected() && "selected",
|
|
223
|
-
onClick: () =>
|
|
224
|
-
className:
|
|
225
|
-
children: e.getVisibleCells().map((e) => /* @__PURE__ */
|
|
226
|
-
}, e.id)) : /* @__PURE__ */
|
|
227
|
-
colSpan:
|
|
237
|
+
onClick: () => b && b(Ue(e.original)),
|
|
238
|
+
className: b ? "cursor-pointer hover:bg-muted/50" : void 0,
|
|
239
|
+
children: e.getVisibleCells().map((e) => /* @__PURE__ */ T(p, { children: se(e.column.columnDef.cell, e.getContext()) }, e.id))
|
|
240
|
+
}, e.id)) : /* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, {
|
|
241
|
+
colSpan: He.length,
|
|
228
242
|
className: "h-24 text-center",
|
|
229
|
-
children:
|
|
243
|
+
children: ie()
|
|
230
244
|
}) }) })] })
|
|
231
245
|
})
|
|
232
246
|
}), [
|
|
247
|
+
We,
|
|
233
248
|
Ge,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
A,
|
|
249
|
+
Q,
|
|
250
|
+
He,
|
|
251
|
+
G,
|
|
252
|
+
M,
|
|
239
253
|
l,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
]), $ = () => /* @__PURE__ */
|
|
245
|
-
className: e("rounded-md border",
|
|
246
|
-
children: /* @__PURE__ */
|
|
254
|
+
Ke,
|
|
255
|
+
b,
|
|
256
|
+
Ue,
|
|
257
|
+
P
|
|
258
|
+
]), $ = () => /* @__PURE__ */ T("div", {
|
|
259
|
+
className: e("rounded-md border", P),
|
|
260
|
+
children: /* @__PURE__ */ T(d, { children: /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, {
|
|
247
261
|
className: "h-24 text-center",
|
|
248
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ T("div", {
|
|
249
263
|
className: "text-muted-foreground",
|
|
250
264
|
children: "Loading..."
|
|
251
265
|
})
|
|
252
266
|
}) }) }) })
|
|
253
267
|
});
|
|
254
|
-
return a === "minimal" ? /* @__PURE__ */
|
|
255
|
-
className: e("space-y-4",
|
|
256
|
-
children: [
|
|
257
|
-
table:
|
|
258
|
-
pageSizeOptions:
|
|
268
|
+
return a === "minimal" ? /* @__PURE__ */ E("div", {
|
|
269
|
+
className: e("space-y-4", N),
|
|
270
|
+
children: [V ? qe() : $(), /* @__PURE__ */ T(R, {
|
|
271
|
+
table: Q,
|
|
272
|
+
pageSizeOptions: F
|
|
259
273
|
})]
|
|
260
|
-
}) : a === "toolbar" ? /* @__PURE__ */
|
|
261
|
-
className: e("relative h-full",
|
|
262
|
-
children: [
|
|
274
|
+
}) : a === "toolbar" ? /* @__PURE__ */ E("div", {
|
|
275
|
+
className: e("relative h-full", N),
|
|
276
|
+
children: [h && /* @__PURE__ */ T("div", {
|
|
263
277
|
className: "absolute left-0 top-0 w-full h-full z-10 pointer-events-none",
|
|
264
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ T("div", {
|
|
265
279
|
className: "fixed right-4 bottom-10 pointer-events-auto",
|
|
266
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ T(n, {
|
|
267
281
|
type: "button",
|
|
268
282
|
size: "icon",
|
|
269
|
-
|
|
283
|
+
"aria-label": "Add row",
|
|
284
|
+
onClick: h,
|
|
270
285
|
className: "w-12 h-12 rounded-full shadow-lg",
|
|
271
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ T(de, { className: "w-6 h-6" })
|
|
272
287
|
})
|
|
273
288
|
})
|
|
274
|
-
}), /* @__PURE__ */
|
|
289
|
+
}), /* @__PURE__ */ E("div", {
|
|
275
290
|
className: "relative h-full flex flex-col",
|
|
276
291
|
children: [
|
|
277
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ E("div", {
|
|
278
293
|
className: "bg-muted p-2 rounded-t-md grid grid-cols-1 sm:grid-cols-[1fr_minmax(0,auto)_1fr] items-center gap-2",
|
|
279
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ E("div", {
|
|
280
295
|
className: "flex flex-wrap justify-center items-center gap-2 sm:col-start-2 sm:col-end-3",
|
|
281
296
|
children: [
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
o &&
|
|
284
|
-
o &&
|
|
297
|
+
/* @__PURE__ */ T(L, { table: Q }),
|
|
298
|
+
o && I === "inline" && o,
|
|
299
|
+
o && I === "panel" && /* @__PURE__ */ E(n, {
|
|
285
300
|
type: "button",
|
|
286
|
-
variant:
|
|
301
|
+
variant: H ? "default" : "outline",
|
|
287
302
|
size: "sm",
|
|
288
|
-
onClick: () =>
|
|
303
|
+
onClick: () => De(!H),
|
|
289
304
|
className: "h-8 gap-1.5",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ T(ue, { className: "h-4 w-4" }), /* @__PURE__ */ T("span", { children: "フィルター" })]
|
|
291
306
|
})
|
|
292
307
|
]
|
|
293
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ E("div", {
|
|
294
309
|
className: "flex items-center gap-3 justify-center sm:justify-end sm:col-start-3 sm:col-end-4",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
296
|
-
table:
|
|
297
|
-
pageSizeOptions:
|
|
298
|
-
}), typeof
|
|
310
|
+
children: [/* @__PURE__ */ T(we, {
|
|
311
|
+
table: Q,
|
|
312
|
+
pageSizeOptions: F
|
|
313
|
+
}), typeof ee == "number" && /* @__PURE__ */ T("span", {
|
|
299
314
|
className: "text-sm text-muted-foreground whitespace-nowrap",
|
|
300
|
-
children: `${
|
|
315
|
+
children: `${ee.toLocaleString()} ${re()}`
|
|
301
316
|
})]
|
|
302
317
|
})]
|
|
303
318
|
}),
|
|
304
|
-
o &&
|
|
305
|
-
className: e("border-b transition-all duration-200 ease-in-out overflow-hidden bg-background",
|
|
319
|
+
o && I === "panel" && /* @__PURE__ */ T("div", {
|
|
320
|
+
className: e("border-b transition-all duration-200 ease-in-out overflow-hidden bg-background", H ? "max-h-[500px] p-4" : "max-h-0 p-0 border-none"),
|
|
306
321
|
children: o
|
|
307
322
|
}),
|
|
308
|
-
|
|
323
|
+
z && /* @__PURE__ */ T("div", {
|
|
309
324
|
className: "bg-background px-4 py-1.5 border-b",
|
|
310
|
-
children:
|
|
325
|
+
children: z
|
|
311
326
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ T("div", {
|
|
313
328
|
className: "flex-1 overflow-auto",
|
|
314
|
-
children:
|
|
329
|
+
children: V ? qe() : $()
|
|
315
330
|
})
|
|
316
331
|
]
|
|
317
332
|
})]
|
|
318
|
-
}) : /* @__PURE__ */
|
|
319
|
-
className: e("space-y-4",
|
|
333
|
+
}) : /* @__PURE__ */ E("div", {
|
|
334
|
+
className: e("space-y-4", N),
|
|
320
335
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ E("div", {
|
|
322
337
|
className: "flex items-center justify-between",
|
|
323
|
-
children: [/* @__PURE__ */
|
|
338
|
+
children: [/* @__PURE__ */ T("div", {
|
|
324
339
|
className: "flex items-center py-4",
|
|
325
|
-
children:
|
|
326
|
-
placeholder:
|
|
327
|
-
value:
|
|
328
|
-
onChange: (e) =>
|
|
340
|
+
children: k && /* @__PURE__ */ T(r, {
|
|
341
|
+
placeholder: ne({ column: k }),
|
|
342
|
+
value: Q.getColumn(k)?.getFilterValue() ?? "",
|
|
343
|
+
onChange: (e) => Q.getColumn(k)?.setFilterValue(e.target.value),
|
|
329
344
|
className: "max-w-sm"
|
|
330
345
|
})
|
|
331
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ T(L, { table: Q })]
|
|
332
347
|
}),
|
|
333
|
-
|
|
348
|
+
z && /* @__PURE__ */ T("div", {
|
|
334
349
|
className: "border rounded-md bg-background px-3 py-1",
|
|
335
|
-
children:
|
|
350
|
+
children: z
|
|
336
351
|
}),
|
|
337
|
-
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
table:
|
|
340
|
-
pageSizeOptions:
|
|
352
|
+
V ? qe() : $(),
|
|
353
|
+
/* @__PURE__ */ T(R, {
|
|
354
|
+
table: Q,
|
|
355
|
+
pageSizeOptions: F
|
|
341
356
|
}),
|
|
342
|
-
|
|
357
|
+
h && /* @__PURE__ */ T("div", {
|
|
343
358
|
className: "fixed right-4 bottom-10 z-10",
|
|
344
|
-
children: /* @__PURE__ */
|
|
359
|
+
children: /* @__PURE__ */ T(n, {
|
|
345
360
|
type: "button",
|
|
346
361
|
size: "icon",
|
|
347
|
-
onClick:
|
|
362
|
+
onClick: h,
|
|
348
363
|
className: "w-12 h-12 rounded-full shadow-lg",
|
|
349
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ T(de, { className: "w-6 h-6" })
|
|
350
365
|
})
|
|
351
366
|
})
|
|
352
367
|
]
|
|
353
368
|
});
|
|
354
369
|
}
|
|
355
|
-
function
|
|
356
|
-
return /* @__PURE__ */
|
|
370
|
+
function L({ table: e }) {
|
|
371
|
+
return /* @__PURE__ */ E(i, { children: [/* @__PURE__ */ E(u, {
|
|
357
372
|
className: t({
|
|
358
373
|
variant: "default",
|
|
359
374
|
size: "sm",
|
|
360
375
|
className: "h-8"
|
|
361
376
|
}),
|
|
362
|
-
children: [/* @__PURE__ */
|
|
363
|
-
}), /* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ T(P, { className: "mr-2 h-4 w-4" }), S()]
|
|
378
|
+
}), /* @__PURE__ */ T(o, {
|
|
364
379
|
align: "end",
|
|
365
380
|
className: "w-40",
|
|
366
|
-
children: /* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
e.getAllColumns().filter((e) => e.accessorFn !== void 0 && e.getCanHide()).map((e) => /* @__PURE__ */
|
|
381
|
+
children: /* @__PURE__ */ E(s, { children: [
|
|
382
|
+
/* @__PURE__ */ T(c, { children: x() }),
|
|
383
|
+
/* @__PURE__ */ T(l, {}),
|
|
384
|
+
e.getAllColumns().filter((e) => e.accessorFn !== void 0 && e.getCanHide()).map((e) => /* @__PURE__ */ T(a, {
|
|
370
385
|
className: "capitalize",
|
|
371
386
|
checked: e.getIsVisible(),
|
|
372
387
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
@@ -375,95 +390,99 @@ function F({ table: e }) {
|
|
|
375
390
|
] })
|
|
376
391
|
})] });
|
|
377
392
|
}
|
|
378
|
-
function
|
|
393
|
+
function R({ table: e, pageSizeOptions: t = [
|
|
379
394
|
10,
|
|
380
395
|
20,
|
|
381
396
|
30,
|
|
382
397
|
50,
|
|
383
398
|
100
|
|
384
399
|
] }) {
|
|
385
|
-
return /* @__PURE__ */
|
|
400
|
+
return /* @__PURE__ */ E("div", {
|
|
386
401
|
className: "flex items-center justify-between px-2",
|
|
387
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ T("div", {
|
|
388
403
|
className: "flex-1 text-sm text-muted-foreground",
|
|
389
|
-
children:
|
|
404
|
+
children: b({
|
|
390
405
|
selected: e.getFilteredSelectedRowModel().rows.length,
|
|
391
406
|
total: e.getFilteredRowModel().rows.length
|
|
392
407
|
})
|
|
393
|
-
}), /* @__PURE__ */
|
|
408
|
+
}), /* @__PURE__ */ E("div", {
|
|
394
409
|
className: "flex items-center space-x-6 lg:space-x-8",
|
|
395
410
|
children: [
|
|
396
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ E("div", {
|
|
397
412
|
className: "flex items-center space-x-2",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ T("p", {
|
|
399
414
|
className: "text-sm font-medium",
|
|
400
|
-
children:
|
|
401
|
-
}), /* @__PURE__ */
|
|
402
|
-
"aria-label":
|
|
415
|
+
children: y()
|
|
416
|
+
}), /* @__PURE__ */ T("select", {
|
|
417
|
+
"aria-label": y(),
|
|
403
418
|
value: `${e.store.state.pagination.pageSize}`,
|
|
404
419
|
onChange: (t) => {
|
|
405
420
|
e.setPageSize(Number(t.target.value));
|
|
406
421
|
},
|
|
407
422
|
className: "h-8 w-fit min-w-16 rounded-md border border-input bg-background px-2 py-1 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
408
|
-
children: t.map((e) => /* @__PURE__ */
|
|
423
|
+
children: t.map((e) => /* @__PURE__ */ T("option", {
|
|
409
424
|
value: `${e}`,
|
|
410
425
|
children: e
|
|
411
426
|
}, e))
|
|
412
427
|
})]
|
|
413
428
|
}),
|
|
414
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ T("div", {
|
|
415
430
|
className: "flex w-24 items-center justify-center text-sm font-medium",
|
|
416
|
-
children:
|
|
431
|
+
children: ae({
|
|
417
432
|
current: e.store.state.pagination.pageIndex + 1,
|
|
418
433
|
total: e.getPageCount()
|
|
419
434
|
})
|
|
420
435
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ E("div", {
|
|
422
437
|
className: "flex items-center space-x-2",
|
|
423
438
|
children: [
|
|
424
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ E(n, {
|
|
425
440
|
variant: "default",
|
|
426
441
|
size: "icon",
|
|
427
442
|
className: "hidden h-8 w-8 lg:flex hover:bg-primary/90",
|
|
443
|
+
"aria-label": h(),
|
|
428
444
|
onClick: () => e.setPageIndex(0),
|
|
429
445
|
disabled: !e.getCanPreviousPage(),
|
|
430
|
-
children: [/* @__PURE__ */
|
|
446
|
+
children: [/* @__PURE__ */ T("span", {
|
|
431
447
|
className: "sr-only",
|
|
432
|
-
children:
|
|
433
|
-
}), /* @__PURE__ */
|
|
448
|
+
children: h()
|
|
449
|
+
}), /* @__PURE__ */ T(j, { className: "h-4 w-4" })]
|
|
434
450
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ E(n, {
|
|
436
452
|
variant: "default",
|
|
437
453
|
size: "icon",
|
|
438
454
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
455
|
+
"aria-label": v(),
|
|
439
456
|
onClick: () => e.previousPage(),
|
|
440
457
|
disabled: !e.getCanPreviousPage(),
|
|
441
|
-
children: [/* @__PURE__ */
|
|
458
|
+
children: [/* @__PURE__ */ T("span", {
|
|
442
459
|
className: "sr-only",
|
|
443
|
-
children:
|
|
444
|
-
}), /* @__PURE__ */
|
|
460
|
+
children: v()
|
|
461
|
+
}), /* @__PURE__ */ T(O, { className: "h-4 w-4" })]
|
|
445
462
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ E(n, {
|
|
447
464
|
variant: "default",
|
|
448
465
|
size: "icon",
|
|
449
466
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
467
|
+
"aria-label": _(),
|
|
450
468
|
onClick: () => e.nextPage(),
|
|
451
469
|
disabled: !e.getCanNextPage(),
|
|
452
|
-
children: [/* @__PURE__ */
|
|
470
|
+
children: [/* @__PURE__ */ T("span", {
|
|
453
471
|
className: "sr-only",
|
|
454
|
-
children:
|
|
455
|
-
}), /* @__PURE__ */
|
|
472
|
+
children: _()
|
|
473
|
+
}), /* @__PURE__ */ T(k, { className: "h-4 w-4" })]
|
|
456
474
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ E(n, {
|
|
458
476
|
variant: "default",
|
|
459
477
|
size: "icon",
|
|
460
478
|
className: "hidden h-8 w-8 lg:flex hover:bg-primary/90",
|
|
479
|
+
"aria-label": g(),
|
|
461
480
|
onClick: () => e.setPageIndex(e.getPageCount() - 1),
|
|
462
481
|
disabled: !e.getCanNextPage(),
|
|
463
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ T("span", {
|
|
464
483
|
className: "sr-only",
|
|
465
|
-
children:
|
|
466
|
-
}), /* @__PURE__ */
|
|
484
|
+
children: g()
|
|
485
|
+
}), /* @__PURE__ */ T(M, { className: "h-4 w-4" })]
|
|
467
486
|
})
|
|
468
487
|
]
|
|
469
488
|
})
|
|
@@ -471,7 +490,7 @@ function I({ table: e, pageSizeOptions: t = [
|
|
|
471
490
|
})]
|
|
472
491
|
});
|
|
473
492
|
}
|
|
474
|
-
function
|
|
493
|
+
function we({ table: e, pageSizeOptions: t = [
|
|
475
494
|
10,
|
|
476
495
|
20,
|
|
477
496
|
30,
|
|
@@ -479,37 +498,39 @@ function Te({ table: e, pageSizeOptions: t = [
|
|
|
479
498
|
100
|
|
480
499
|
] }) {
|
|
481
500
|
let r = e.getPageCount();
|
|
482
|
-
return /* @__PURE__ */
|
|
501
|
+
return /* @__PURE__ */ E("div", {
|
|
483
502
|
className: "flex items-center gap-1",
|
|
484
|
-
children: [/* @__PURE__ */
|
|
485
|
-
"aria-label":
|
|
503
|
+
children: [/* @__PURE__ */ T("select", {
|
|
504
|
+
"aria-label": y(),
|
|
486
505
|
value: `${e.store.state.pagination.pageSize}`,
|
|
487
506
|
onChange: (t) => {
|
|
488
507
|
e.setPageSize(Number(t.target.value));
|
|
489
508
|
},
|
|
490
509
|
className: "h-8 w-fit min-w-16 rounded-md border border-input bg-background px-2 py-1 text-sm",
|
|
491
|
-
children: t.map((e) => /* @__PURE__ */
|
|
510
|
+
children: t.map((e) => /* @__PURE__ */ T("option", {
|
|
492
511
|
value: `${e}`,
|
|
493
512
|
children: e
|
|
494
513
|
}, e))
|
|
495
|
-
}), r > 1 && /* @__PURE__ */ w
|
|
496
|
-
/* @__PURE__ */
|
|
514
|
+
}), r > 1 && /* @__PURE__ */ E(w, { children: [
|
|
515
|
+
/* @__PURE__ */ T(n, {
|
|
497
516
|
variant: "default",
|
|
498
517
|
size: "icon",
|
|
499
518
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
519
|
+
"aria-label": h(),
|
|
500
520
|
onClick: () => e.setPageIndex(0),
|
|
501
521
|
disabled: e.store.state.pagination.pageIndex === 0,
|
|
502
|
-
children: /* @__PURE__ */
|
|
522
|
+
children: /* @__PURE__ */ T(j, { className: "h-4 w-4" })
|
|
503
523
|
}),
|
|
504
|
-
/* @__PURE__ */
|
|
524
|
+
/* @__PURE__ */ T(n, {
|
|
505
525
|
variant: "default",
|
|
506
526
|
size: "icon",
|
|
507
527
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
528
|
+
"aria-label": v(),
|
|
508
529
|
onClick: () => e.previousPage(),
|
|
509
530
|
disabled: !e.getCanPreviousPage(),
|
|
510
|
-
children: /* @__PURE__ */
|
|
531
|
+
children: /* @__PURE__ */ T(O, { className: "h-4 w-4" })
|
|
511
532
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ E("span", {
|
|
513
534
|
className: "text-sm text-muted-foreground whitespace-nowrap px-1",
|
|
514
535
|
children: [
|
|
515
536
|
e.store.state.pagination.pageIndex + 1,
|
|
@@ -517,26 +538,28 @@ function Te({ table: e, pageSizeOptions: t = [
|
|
|
517
538
|
r
|
|
518
539
|
]
|
|
519
540
|
}),
|
|
520
|
-
/* @__PURE__ */
|
|
541
|
+
/* @__PURE__ */ T(n, {
|
|
521
542
|
variant: "default",
|
|
522
543
|
size: "icon",
|
|
523
544
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
545
|
+
"aria-label": _(),
|
|
524
546
|
onClick: () => e.nextPage(),
|
|
525
547
|
disabled: !e.getCanNextPage(),
|
|
526
|
-
children: /* @__PURE__ */
|
|
548
|
+
children: /* @__PURE__ */ T(k, { className: "h-4 w-4" })
|
|
527
549
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ T(n, {
|
|
529
551
|
variant: "default",
|
|
530
552
|
size: "icon",
|
|
531
553
|
className: "h-8 w-8 hover:bg-primary/90",
|
|
554
|
+
"aria-label": g(),
|
|
532
555
|
onClick: () => e.setPageIndex(r - 1),
|
|
533
556
|
disabled: e.store.state.pagination.pageIndex === r - 1,
|
|
534
|
-
children: /* @__PURE__ */
|
|
557
|
+
children: /* @__PURE__ */ T(M, { className: "h-4 w-4" })
|
|
535
558
|
})
|
|
536
559
|
] })]
|
|
537
560
|
});
|
|
538
561
|
}
|
|
539
562
|
//#endregion
|
|
540
|
-
export {
|
|
563
|
+
export { Ce as DataTable, R as DataTablePagination, we as DataTablePaginationCompact, L as DataTableViewOptions };
|
|
541
564
|
|
|
542
565
|
//# sourceMappingURL=data-table.js.map
|