@tulip-systems/core 0.5.4 → 0.5.5
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/components/common/icons.d.mts +52 -52
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/content.client.d.mts.map +1 -1
- package/dist/components/editor/components/editor.client.d.mts +4 -4
- package/dist/components/editor/components/editor.client.d.mts.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/lib/constants.d.mts +27 -27
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/back-button.client.d.mts.map +1 -1
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.d.mts.map +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/error-page.d.mts +3 -3
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/not-allowed-page.d.mts +2 -2
- package/dist/components/layouts/not-found-page.d.mts +3 -3
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-stack.d.mts +8 -8
- 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/ui/accordion.d.mts +5 -5
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert.d.mts +4 -4
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/badge.d.mts +2 -2
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/button.d.mts +3 -3
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/drawer.client.d.mts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/form.client.d.mts.map +1 -1
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/hover-card.client.d.mts.map +1 -1
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/navigation-menu.d.mts +9 -9
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/progress.client.d.mts.map +1 -1
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/resizable.client.d.mts.map +1 -1
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/select.client.d.mts.map +1 -1
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sheet.client.d.mts.map +1 -1
- package/dist/components/ui/sidebar.client.d.mts +24 -24
- package/dist/components/ui/sidebar.client.d.mts.map +1 -1
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/time-input.client.d.mts +2 -2
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle.d.mts +2 -2
- package/dist/components/ui/toggle.d.mts.map +1 -1
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/lib/hooks/use-action.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts.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/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -0
- 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/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/handler/client.client.d.mts +10 -10
- package/dist/modules/auth/hooks/use-permission.d.mts +3 -3
- package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts +1 -1
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/auth/lib/validators.mjs +1 -1
- package/dist/modules/auth/lib/validators.mjs.map +1 -1
- package/dist/modules/commands/components/alert-dialog-command.client.d.mts +10 -10
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/command-trigger.client.d.mts +4 -4
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/config/db/helpers.d.mts +5 -5
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/header.d.mts.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/search-input.client.d.mts +2 -2
- 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/table.d.mts +7 -7
- package/dist/modules/data-tables/components/table.d.mts.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/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.mts +3 -3
- package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts.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/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-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/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/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-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.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/input.client.d.mts.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/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/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts.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/lib/variants.d.mts +1 -1
- package/dist/modules/router/lib/query-client.server.d.mts +2 -2
- package/dist/modules/router/lib/query-client.server.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.client.d.mts +5 -5
- package/dist/modules/storage/components/dropzone.client.d.mts.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/upload-zone.client.d.mts +2 -2
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/create-upload.client.d.mts.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +2321 -2321
- package/dist/modules/storage/lib/router.server.d.mts.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/service.server.d.mts +18 -18
- package/dist/modules/storage/lib/validators.d.mts +89 -89
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/package.json +1 -1
- package/src/modules/auth/components/create-first-user-page.client.tsx +4 -0
- package/src/modules/auth/lib/validators.ts +1 -1
|
@@ -36,7 +36,7 @@ declare const createUserSchema: z$1.ZodObject<{
|
|
|
36
36
|
firstName: z$1.ZodString;
|
|
37
37
|
lastName: z$1.ZodString;
|
|
38
38
|
password: z$1.ZodString;
|
|
39
|
-
role: z$1.ZodString
|
|
39
|
+
role: z$1.ZodOptional<z$1.ZodString>;
|
|
40
40
|
}, z$1.core.$strip>;
|
|
41
41
|
type CreateUserSchema = z$1.infer<typeof createUserSchema>;
|
|
42
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;AAKa,KALD,IAAA,GAcV,OAdwB,KAAA,CAAM,YAc9B;;;;AATsB,cAAX,WAAW,EAAA,GAAA,CAAA,SAAA,CAAA;EAAA,KAAA,cAAA;EAcX,QAAA,eAAA;;;;;AAAmB,cAAnB,mBAAmB,EAAA,GAAA,CAAA,SAAA,CAAA;EAmBnB,QAAA,eAAA;;;;;AAUb;cAVa,sBAAoB,GAAA,CAAA;;;;;;cAUpB,kBAAgB,GAAA,CAAA
|
|
1
|
+
{"version":3,"file":"validators.d.mts","names":[],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":[],"mappings":";;;;;;;AAQA;AAKa,KALD,IAAA,GAcV,OAdwB,KAAA,CAAM,YAc9B;;;;AATsB,cAAX,WAAW,EAAA,GAAA,CAAA,SAAA,CAAA;EAAA,KAAA,cAAA;EAcX,QAAA,eAAA;;;;;AAAmB,cAAnB,mBAAmB,EAAA,GAAA,CAAA,SAAA,CAAA;EAmBnB,QAAA,eAAA;;;;;AAUb;cAVa,sBAAoB,GAAA,CAAA;;;;;;cAUpB,kBAAgB,GAAA,CAAA;;;;;;EAAA,IAAA,iBAAA,cAAA,CAAA;CAAA,iBAAA,CAAA;AAajB,KAAA,gBAAA,GAAmB,GAAA,CAAE,KAAa,CAAA,OAAA,gBAAb,CAAA;AAKjC;;;cAAa,kBAAgB,GAAA,CAAA;;;;EAAA,QAAA,eAAA;CAAA,EAAA;EAOjB,GAAA,EAAA,CAAA,CAAA;EAKC,EAAA,EAAA,CAAA,CAAA;;KALD,gBAAA,GAAmB,GAAA,CAAE,aAAa;;;AAS9C;cAJa,sBAAoB,GAAA,CAAA;;;KAIrB,oBAAA,GAAuB,GAAA,CAAE,aAAa"}
|
|
@@ -35,7 +35,7 @@ const createUserSchema = userSchema.pick({
|
|
|
35
35
|
firstName: z$1.string().min(2, { message: "Voornaam moet langer zijn dan 2 karakters" }).max(50, { message: "Voornaam mag niet langer zijn dan 50 karakters" }),
|
|
36
36
|
lastName: z$1.string().min(2, { message: "Achternaam moet langer zijn dan 2 karakters" }).max(50, { message: "Achternaam mag niet langer zijn dan 50 karakters" }),
|
|
37
37
|
password: z$1.string().min(6, { message: "Wachtwoord moet minimaal 6 karakters hebben" }),
|
|
38
|
-
role: z$1.string()
|
|
38
|
+
role: z$1.string().optional()
|
|
39
39
|
});
|
|
40
40
|
/**
|
|
41
41
|
* Update user schema
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.mjs","names":["z"],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":["import { userSchema } from \"better-auth/db\";\nimport { createInsertSchema } from \"drizzle-zod\";\nimport { z } from \"zod\";\nimport { users } from \"../db/schema\";\n\n/**\n * User type\n */\nexport type User = typeof users.$inferSelect;\n\n/**\n * Login schema\n */\nexport const loginSchema = z.object({\n email: z\n .email({ message: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Reset password schema\n */\nexport const resetPasswordSchema = z\n .object({\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n passwordConfirmation: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n })\n .refine((data) => data.password === data.passwordConfirmation, {\n message: \"Wachtwoorden komen niet overeen\",\n path: [\"passwordConfirmation\"],\n });\n\n/**\n * Forgot password schema\n */\nexport const forgotPasswordSchema = z.object({\n email: z\n .email({ error: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Create user schema\n */\nexport const createUserSchema = userSchema.pick({ email: true, image: true }).extend({\n firstName: z\n .string()\n .min(2, { message: \"Voornaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Voornaam mag niet langer zijn dan 50 karakters\" }),\n lastName: z\n .string()\n .min(2, { message: \"Achternaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Achternaam mag niet langer zijn dan 50 karakters\" }),\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n role: z.string(),\n});\n\nexport type CreateUserSchema = z.infer<typeof createUserSchema>;\n\n/**\n * Update user schema\n */\nexport const updateUserSchema = createInsertSchema(users).pick({\n firstName: true,\n lastName: true,\n email: true,\n image: true,\n});\n\nexport type UpdateUserSchema = z.infer<typeof updateUserSchema>;\n\n/**\n * Update password input validation\n */\nexport const updatePasswordSchema = z.object({\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n});\n\nexport type UpdatePasswordSchema = z.infer<typeof updatePasswordSchema>;\n"],"mappings":";;;;;;;;;AAaA,MAAa,cAAcA,IAAE,OAAO;CAClC,OAAOA,IACJ,MAAM,EAAE,SAAS,0CAA0C,CAAC,CAC5D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC;CACtE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC;;;;AAKF,MAAa,sBAAsBA,IAChC,OAAO;CACN,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,sBAAsBA,IACnB,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC,CACD,QAAQ,SAAS,KAAK,aAAa,KAAK,sBAAsB;CAC7D,SAAS;CACT,MAAM,CAAC,uBAAuB;CAC/B,CAAC;;;;AAKJ,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,OAAOA,IACJ,MAAM,EAAE,OAAO,0CAA0C,CAAC,CAC1D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC,EACvE,CAAC;;;;AAKF,MAAa,mBAAmB,WAAW,KAAK;CAAE,OAAO;CAAM,OAAO;CAAM,CAAC,CAAC,OAAO;CACnF,WAAWA,IACR,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,6CAA6C,CAAC,CAChE,IAAI,IAAI,EAAE,SAAS,kDAAkD,CAAC;CACzE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC;CACvF,MAAMA,IAAE,QAAQ;
|
|
1
|
+
{"version":3,"file":"validators.mjs","names":["z"],"sources":["../../../../src/modules/auth/lib/validators.ts"],"sourcesContent":["import { userSchema } from \"better-auth/db\";\nimport { createInsertSchema } from \"drizzle-zod\";\nimport { z } from \"zod\";\nimport { users } from \"../db/schema\";\n\n/**\n * User type\n */\nexport type User = typeof users.$inferSelect;\n\n/**\n * Login schema\n */\nexport const loginSchema = z.object({\n email: z\n .email({ message: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Reset password schema\n */\nexport const resetPasswordSchema = z\n .object({\n password: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n passwordConfirmation: z\n .string()\n .min(2, { message: \"Wachtwoord moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Wachtwoord mag niet langer zijn dan 50 karakters\" }),\n })\n .refine((data) => data.password === data.passwordConfirmation, {\n message: \"Wachtwoorden komen niet overeen\",\n path: [\"passwordConfirmation\"],\n });\n\n/**\n * Forgot password schema\n */\nexport const forgotPasswordSchema = z.object({\n email: z\n .email({ error: \"Email moet een geldig email adres zijn\" })\n .min(2, { message: \"Email moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Email mag niet langer zijn dan 50 karakters\" }),\n});\n\n/**\n * Create user schema\n */\nexport const createUserSchema = userSchema.pick({ email: true, image: true }).extend({\n firstName: z\n .string()\n .min(2, { message: \"Voornaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Voornaam mag niet langer zijn dan 50 karakters\" }),\n lastName: z\n .string()\n .min(2, { message: \"Achternaam moet langer zijn dan 2 karakters\" })\n .max(50, { message: \"Achternaam mag niet langer zijn dan 50 karakters\" }),\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n role: z.string().optional(),\n});\n\nexport type CreateUserSchema = z.infer<typeof createUserSchema>;\n\n/**\n * Update user schema\n */\nexport const updateUserSchema = createInsertSchema(users).pick({\n firstName: true,\n lastName: true,\n email: true,\n image: true,\n});\n\nexport type UpdateUserSchema = z.infer<typeof updateUserSchema>;\n\n/**\n * Update password input validation\n */\nexport const updatePasswordSchema = z.object({\n password: z.string().min(6, { message: \"Wachtwoord moet minimaal 6 karakters hebben\" }),\n});\n\nexport type UpdatePasswordSchema = z.infer<typeof updatePasswordSchema>;\n"],"mappings":";;;;;;;;;AAaA,MAAa,cAAcA,IAAE,OAAO;CAClC,OAAOA,IACJ,MAAM,EAAE,SAAS,0CAA0C,CAAC,CAC5D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC;CACtE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC;;;;AAKF,MAAa,sBAAsBA,IAChC,OAAO;CACN,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,sBAAsBA,IACnB,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC5E,CAAC,CACD,QAAQ,SAAS,KAAK,aAAa,KAAK,sBAAsB;CAC7D,SAAS;CACT,MAAM,CAAC,uBAAuB;CAC/B,CAAC;;;;AAKJ,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,OAAOA,IACJ,MAAM,EAAE,OAAO,0CAA0C,CAAC,CAC1D,IAAI,GAAG,EAAE,SAAS,0CAA0C,CAAC,CAC7D,IAAI,IAAI,EAAE,SAAS,+CAA+C,CAAC,EACvE,CAAC;;;;AAKF,MAAa,mBAAmB,WAAW,KAAK;CAAE,OAAO;CAAM,OAAO;CAAM,CAAC,CAAC,OAAO;CACnF,WAAWA,IACR,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,6CAA6C,CAAC,CAChE,IAAI,IAAI,EAAE,SAAS,kDAAkD,CAAC;CACzE,UAAUA,IACP,QAAQ,CACR,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,CAClE,IAAI,IAAI,EAAE,SAAS,oDAAoD,CAAC;CAC3E,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC;CACvF,MAAMA,IAAE,QAAQ,CAAC,UAAU;CAC5B,CAAC;;;;AAOF,MAAa,mBAAmB,mBAAmB,MAAM,CAAC,KAAK;CAC7D,WAAW;CACX,UAAU;CACV,OAAO;CACP,OAAO;CACR,CAAC;;;;AAOF,MAAa,uBAAuBA,IAAE,OAAO,EAC3C,UAAUA,IAAE,QAAQ,CAAC,IAAI,GAAG,EAAE,SAAS,+CAA+C,CAAC,EACxF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime325 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
4
4
|
import { Keys } from "react-hotkeys-hook";
|
|
@@ -11,7 +11,7 @@ import { AlertDialogCancelProps, AlertDialogContentProps, AlertDialogProps } fro
|
|
|
11
11
|
declare function CommandAlertDialog({
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: AlertDialogProps):
|
|
14
|
+
}: AlertDialogProps): react_jsx_runtime325.JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* CommandAlertDialogTrigger
|
|
17
17
|
*/
|
|
@@ -28,49 +28,49 @@ declare function CommandAlertDialogTrigger({
|
|
|
28
28
|
children,
|
|
29
29
|
disabled,
|
|
30
30
|
...props
|
|
31
|
-
}: CommandAlertDialogTriggerProps):
|
|
31
|
+
}: CommandAlertDialogTriggerProps): react_jsx_runtime325.JSX.Element | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* CommandAlertDialogContent
|
|
34
34
|
*/
|
|
35
35
|
declare function CommandAlertDialogContent({
|
|
36
36
|
children,
|
|
37
37
|
...props
|
|
38
|
-
}: AlertDialogContentProps):
|
|
38
|
+
}: AlertDialogContentProps): react_jsx_runtime325.JSX.Element;
|
|
39
39
|
/**
|
|
40
40
|
* CommandAlertDialogHeader
|
|
41
41
|
*/
|
|
42
42
|
declare function CommandAlertDialogHeader({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
45
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime325.JSX.Element;
|
|
46
46
|
/**
|
|
47
47
|
* CommandAlertDialogTitle
|
|
48
48
|
*/
|
|
49
49
|
declare function CommandAlertDialogTitle({
|
|
50
50
|
children,
|
|
51
51
|
...props
|
|
52
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
52
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime325.JSX.Element;
|
|
53
53
|
/**
|
|
54
54
|
* CommandAlertDialogDescription
|
|
55
55
|
*/
|
|
56
56
|
declare function CommandAlertDialogDescription({
|
|
57
57
|
children,
|
|
58
58
|
...props
|
|
59
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
59
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime325.JSX.Element;
|
|
60
60
|
/**
|
|
61
61
|
* CommandAlertDialogFooter
|
|
62
62
|
*/
|
|
63
63
|
declare function CommandAlertDialogFooter({
|
|
64
64
|
children,
|
|
65
65
|
...props
|
|
66
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
66
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime325.JSX.Element;
|
|
67
67
|
/**
|
|
68
68
|
* CommandAlertDialogCancel
|
|
69
69
|
*/
|
|
70
70
|
declare function CommandAlertDialogCancel({
|
|
71
71
|
children,
|
|
72
72
|
...props
|
|
73
|
-
}: AlertDialogCancelProps):
|
|
73
|
+
}: AlertDialogCancelProps): react_jsx_runtime325.JSX.Element;
|
|
74
74
|
/**
|
|
75
75
|
* CommandAlertDialogAction
|
|
76
76
|
*/
|
|
@@ -87,7 +87,7 @@ declare function CommandAlertDialogAction<TData = unknown, TError = DefaultError
|
|
|
87
87
|
children,
|
|
88
88
|
disabled,
|
|
89
89
|
...props
|
|
90
|
-
}: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>):
|
|
90
|
+
}: CommandAlertDialogActionProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime325.JSX.Element;
|
|
91
91
|
//#endregion
|
|
92
92
|
export { CommandAlertDialog, CommandAlertDialogAction, CommandAlertDialogCancel, CommandAlertDialogContent, CommandAlertDialogDescription, CommandAlertDialogFooter, CommandAlertDialogHeader, CommandAlertDialogTitle, CommandAlertDialogTrigger };
|
|
93
93
|
//# sourceMappingURL=alert-dialog-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime334 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
4
4
|
import { Keys } from "react-hotkeys-hook";
|
|
@@ -21,7 +21,7 @@ declare function CommandClick<TData = unknown, TError = DefaultError, TVariables
|
|
|
21
21
|
hotkey,
|
|
22
22
|
disabled,
|
|
23
23
|
...props
|
|
24
|
-
}: CommandClickProps<TData, TError, TVariables, TOnMutateResult>):
|
|
24
|
+
}: CommandClickProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime334.JSX.Element | null;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { CommandClick, CommandClickProps };
|
|
27
27
|
//# sourceMappingURL=click-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime335 from "react/jsx-runtime";
|
|
2
2
|
import * as react105 from "react";
|
|
3
3
|
import { PropsWithChildren } from "react";
|
|
4
4
|
|
|
@@ -18,17 +18,17 @@ declare function CommandTrigger({
|
|
|
18
18
|
children
|
|
19
19
|
}: PropsWithChildren<{
|
|
20
20
|
label?: string;
|
|
21
|
-
}>):
|
|
21
|
+
}>): react_jsx_runtime335.JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* Command label
|
|
24
24
|
*/
|
|
25
|
-
declare function CommandLabel():
|
|
25
|
+
declare function CommandLabel(): react_jsx_runtime335.JSX.Element | null;
|
|
26
26
|
/**
|
|
27
27
|
* Command icon
|
|
28
28
|
*/
|
|
29
29
|
declare function CommandIcon({
|
|
30
30
|
children
|
|
31
|
-
}: PropsWithChildren):
|
|
31
|
+
}: PropsWithChildren): react_jsx_runtime335.JSX.Element;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { CommandIcon, CommandLabel, CommandTrigger, CommandTriggerContext };
|
|
34
34
|
//# sourceMappingURL=command-trigger.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime318 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DialogContentProps, DialogProps } from "@radix-ui/react-dialog";
|
|
4
4
|
import { Keys } from "react-hotkeys-hook";
|
|
@@ -20,7 +20,7 @@ declare function CommandDialog({
|
|
|
20
20
|
...props
|
|
21
21
|
}: Omit<DialogProps, "open" | "onOpenChange"> & {
|
|
22
22
|
openState?: CommandDialogOpenState;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime318.JSX.Element;
|
|
24
24
|
/**
|
|
25
25
|
* CommandDialogTrigger
|
|
26
26
|
*/
|
|
@@ -37,42 +37,42 @@ declare function CommandDialogTrigger({
|
|
|
37
37
|
children,
|
|
38
38
|
disabled,
|
|
39
39
|
...props
|
|
40
|
-
}: CommandDialogTriggerProps):
|
|
40
|
+
}: CommandDialogTriggerProps): react_jsx_runtime318.JSX.Element | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* CommandDialogContent
|
|
43
43
|
*/
|
|
44
44
|
declare function CommandDialogContent({
|
|
45
45
|
children,
|
|
46
46
|
...props
|
|
47
|
-
}: DialogContentProps):
|
|
47
|
+
}: DialogContentProps): react_jsx_runtime318.JSX.Element;
|
|
48
48
|
/**
|
|
49
49
|
* CommandDialogHeader
|
|
50
50
|
*/
|
|
51
51
|
declare function CommandDialogHeader({
|
|
52
52
|
children,
|
|
53
53
|
...props
|
|
54
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
54
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime318.JSX.Element;
|
|
55
55
|
/**
|
|
56
56
|
* CommandDialogTitle
|
|
57
57
|
*/
|
|
58
58
|
declare function CommandDialogTitle({
|
|
59
59
|
children,
|
|
60
60
|
...props
|
|
61
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
61
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime318.JSX.Element;
|
|
62
62
|
/**
|
|
63
63
|
* CommandDialogDescription
|
|
64
64
|
*/
|
|
65
65
|
declare function CommandDialogDescription({
|
|
66
66
|
children,
|
|
67
67
|
...props
|
|
68
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
68
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime318.JSX.Element;
|
|
69
69
|
/**
|
|
70
70
|
* CommandDialogFooter
|
|
71
71
|
*/
|
|
72
72
|
declare function CommandDialogFooter({
|
|
73
73
|
children,
|
|
74
74
|
...props
|
|
75
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
75
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime318.JSX.Element;
|
|
76
76
|
//#endregion
|
|
77
77
|
export { CommandDialog, CommandDialogContent, CommandDialogDescription, CommandDialogFooter, CommandDialogHeader, CommandDialogTitle, CommandDialogTrigger };
|
|
78
78
|
//# sourceMappingURL=dialog-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime339 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ type CommandDropdownProps = {
|
|
|
13
13
|
declare function CommandDropdown({
|
|
14
14
|
children,
|
|
15
15
|
...props
|
|
16
|
-
}: CommandDropdownProps):
|
|
16
|
+
}: CommandDropdownProps): react_jsx_runtime339.JSX.Element | null;
|
|
17
17
|
/**
|
|
18
18
|
* CommandDropdownContent
|
|
19
19
|
*/
|
|
@@ -24,7 +24,7 @@ type CommandDropdownContentProps = {
|
|
|
24
24
|
declare function CommandDropdownContent({
|
|
25
25
|
children,
|
|
26
26
|
...props
|
|
27
|
-
}: CommandDropdownContentProps):
|
|
27
|
+
}: CommandDropdownContentProps): react_jsx_runtime339.JSX.Element | null;
|
|
28
28
|
/**
|
|
29
29
|
* CommandDropdownTrigger
|
|
30
30
|
*/
|
|
@@ -39,7 +39,7 @@ declare function CommandDropdownTrigger({
|
|
|
39
39
|
disabled,
|
|
40
40
|
children,
|
|
41
41
|
...props
|
|
42
|
-
}: CommandDropdownTriggerProps):
|
|
42
|
+
}: CommandDropdownTriggerProps): react_jsx_runtime339.JSX.Element | null;
|
|
43
43
|
/**
|
|
44
44
|
* CommandDropdownItem
|
|
45
45
|
*/
|
|
@@ -54,7 +54,7 @@ declare function CommandDropdownItem<TData = unknown, TError = DefaultError, TVa
|
|
|
54
54
|
mutation,
|
|
55
55
|
children,
|
|
56
56
|
...props
|
|
57
|
-
}: CommandDropdownItemProps<TData, TError, TVariables, TOnMutateResult>):
|
|
57
|
+
}: CommandDropdownItemProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime339.JSX.Element | null;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { CommandDropdown, CommandDropdownContent, CommandDropdownItem, CommandDropdownProps, CommandDropdownTrigger };
|
|
60
60
|
//# sourceMappingURL=dropdown-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime343 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/commands/components/empty-command.client.d.ts
|
|
@@ -13,7 +13,7 @@ declare function CommandEmpty({
|
|
|
13
13
|
children,
|
|
14
14
|
disabled,
|
|
15
15
|
...props
|
|
16
|
-
}: CommandEmptyProps):
|
|
16
|
+
}: CommandEmptyProps): react_jsx_runtime343.JSX.Element | null;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { CommandEmpty, CommandEmptyProps };
|
|
19
19
|
//# sourceMappingURL=empty-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime344 from "react/jsx-runtime";
|
|
2
2
|
import React, { ComponentProps } from "react";
|
|
3
3
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
4
4
|
import { FieldValues, Form } from "react-hook-form";
|
|
@@ -12,7 +12,7 @@ import { Keys } from "react-hotkeys-hook";
|
|
|
12
12
|
declare function CommandFormDialog({
|
|
13
13
|
children,
|
|
14
14
|
...props
|
|
15
|
-
}: DialogProps):
|
|
15
|
+
}: DialogProps): react_jsx_runtime344.JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* CommandFormDialogTrigger
|
|
18
18
|
*/
|
|
@@ -29,28 +29,28 @@ declare function CommandFormDialogTrigger({
|
|
|
29
29
|
children,
|
|
30
30
|
disabled,
|
|
31
31
|
...props
|
|
32
|
-
}: CommandFormDialogTriggerProps):
|
|
32
|
+
}: CommandFormDialogTriggerProps): react_jsx_runtime344.JSX.Element | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* CommandFormDialogHeader
|
|
35
35
|
*/
|
|
36
36
|
declare function CommandFormDialogHeader({
|
|
37
37
|
children,
|
|
38
38
|
...props
|
|
39
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
39
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
40
40
|
/**
|
|
41
41
|
* CommandFormDialogTitle
|
|
42
42
|
*/
|
|
43
43
|
declare function CommandFormDialogTitle({
|
|
44
44
|
children,
|
|
45
45
|
...props
|
|
46
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
46
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* CommandFormDialogDescription
|
|
49
49
|
*/
|
|
50
50
|
declare function CommandFormDialogDescription({
|
|
51
51
|
children,
|
|
52
52
|
...props
|
|
53
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
53
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
54
54
|
declare const CommandFormDialogContentProvider: typeof Form;
|
|
55
55
|
/**
|
|
56
56
|
* CommandFormDialogContent
|
|
@@ -65,7 +65,7 @@ declare function CommandFormDialogContent<TValues extends FieldValues, TData = u
|
|
|
65
65
|
mutation,
|
|
66
66
|
children,
|
|
67
67
|
...props
|
|
68
|
-
}: CommandFormDialogContentProps<TValues, TData, TError, TVariables, TOnMutateResult>):
|
|
68
|
+
}: CommandFormDialogContentProps<TValues, TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime344.JSX.Element;
|
|
69
69
|
/**
|
|
70
70
|
* FormDialogFields
|
|
71
71
|
*/
|
|
@@ -73,28 +73,28 @@ declare function CommandFormDialogFields({
|
|
|
73
73
|
children,
|
|
74
74
|
className,
|
|
75
75
|
...props
|
|
76
|
-
}: ComponentProps<"div">):
|
|
76
|
+
}: ComponentProps<"div">): react_jsx_runtime344.JSX.Element;
|
|
77
77
|
/**
|
|
78
78
|
* CommandFormDialogFooter
|
|
79
79
|
*/
|
|
80
80
|
declare function CommandFormDialogFooter({
|
|
81
81
|
children,
|
|
82
82
|
...props
|
|
83
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
83
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
84
84
|
/**
|
|
85
85
|
* CommandFormDialogCancel
|
|
86
86
|
*/
|
|
87
87
|
declare function CommandFormDialogCancel({
|
|
88
88
|
children,
|
|
89
89
|
...props
|
|
90
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
90
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
91
91
|
/**
|
|
92
92
|
* CommandFormDialogSubmit
|
|
93
93
|
*/
|
|
94
94
|
declare function CommandFormDialogSubmit({
|
|
95
95
|
children,
|
|
96
96
|
...props
|
|
97
|
-
}: React.HTMLAttributes<HTMLElement>):
|
|
97
|
+
}: React.HTMLAttributes<HTMLElement>): react_jsx_runtime344.JSX.Element;
|
|
98
98
|
//#endregion
|
|
99
99
|
export { CommandFormDialog, CommandFormDialogCancel, CommandFormDialogContent, CommandFormDialogContentProps, CommandFormDialogContentProvider, CommandFormDialogDescription, CommandFormDialogFields, CommandFormDialogFooter, CommandFormDialogHeader, CommandFormDialogSubmit, CommandFormDialogTitle, CommandFormDialogTrigger };
|
|
100
100
|
//# sourceMappingURL=form-dialog-command.client.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContextMenu, ContextMenuTrigger } from "../../../components/ui/context-menu.mjs";
|
|
2
2
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime338 from "react/jsx-runtime";
|
|
4
4
|
import { ContextMenuContentProps } from "@radix-ui/react-context-menu";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/commands/menus/context-menu.client.d.ts
|
|
@@ -21,7 +21,7 @@ declare function ContextCommandMenuContent<TData, TMeta>({
|
|
|
21
21
|
meta,
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps):
|
|
24
|
+
}: SingleCommandMenuProps<TData, TMeta> & ContextMenuContentProps): react_jsx_runtime338.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ContextCommandMenu, ContextCommandMenuContent, ContextCommandMenuTrigger };
|
|
27
27
|
//# sourceMappingURL=context-menu.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime356 from "react/jsx-runtime";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/commands/menus/dropdown-menu.client.d.ts
|
|
@@ -9,11 +9,11 @@ declare function DropdownCommandMenu<TData, TMeta>({
|
|
|
9
9
|
meta,
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>):
|
|
12
|
+
}: SingleCommandMenuProps<TData, TMeta> & React.HTMLAttributes<HTMLElement>): react_jsx_runtime356.JSX.Element | null;
|
|
13
13
|
declare function DropdownCommandMenuLoading({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: ComponentProps<"div">):
|
|
16
|
+
}: ComponentProps<"div">): react_jsx_runtime356.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { DropdownCommandMenu, DropdownCommandMenuLoading };
|
|
19
19
|
//# sourceMappingURL=dropdown-menu.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime358 from "react/jsx-runtime";
|
|
3
3
|
import React, { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/commands/menus/inline-menu.client.d.ts
|
|
@@ -10,11 +10,11 @@ declare function InlineCommandMenu<TData, TMeta>({
|
|
|
10
10
|
commands,
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: InlineCommandMenuProps<TData, TMeta>):
|
|
13
|
+
}: InlineCommandMenuProps<TData, TMeta>): react_jsx_runtime358.JSX.Element | null;
|
|
14
14
|
declare function InlineCommandMenuLoading({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: ComponentProps<"div">):
|
|
17
|
+
}: ComponentProps<"div">): react_jsx_runtime358.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { InlineCommandMenu, InlineCommandMenuLoading, InlineCommandMenuProps };
|
|
20
20
|
//# sourceMappingURL=inline-menu.client.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SingleCommandMenuProps } from "../hooks/use-command-menu.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime354 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/commands/menus/responsive-menu.client.d.ts
|
|
5
5
|
type ResponsiveCommandMenuProps<TData, TMeta> = SingleCommandMenuProps<TData, TMeta>;
|
|
6
|
-
declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>):
|
|
7
|
-
declare function ResponsiveCommandMenuLoading():
|
|
6
|
+
declare function ResponsiveCommandMenu<TData, TMeta>(props: ResponsiveCommandMenuProps<TData, TMeta>): react_jsx_runtime354.JSX.Element;
|
|
7
|
+
declare function ResponsiveCommandMenuLoading(): react_jsx_runtime354.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { ResponsiveCommandMenu, ResponsiveCommandMenuLoading };
|
|
10
10
|
//# sourceMappingURL=responsive-menu.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime360 from "react/jsx-runtime";
|
|
2
2
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/commands/utils/archive-command.client.d.ts
|
|
@@ -17,7 +17,7 @@ declare function ArchiveCommand<TData = unknown, TError = DefaultError, TVariabl
|
|
|
17
17
|
}, TOnMutateResult = unknown>({
|
|
18
18
|
variables,
|
|
19
19
|
mutation
|
|
20
|
-
}: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>):
|
|
20
|
+
}: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime360.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Unarchive command
|
|
23
23
|
* @description command to unarchive a resource
|
|
@@ -27,7 +27,7 @@ declare function RestoreCommand<TData = unknown, TError = DefaultError, TVariabl
|
|
|
27
27
|
}, TOnMutateResult = unknown>({
|
|
28
28
|
variables,
|
|
29
29
|
mutation
|
|
30
|
-
}: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>):
|
|
30
|
+
}: ArchiveCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime360.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { ArchiveCommand, ArchiveCommandProps, RestoreCommand };
|
|
33
33
|
//# sourceMappingURL=archive-command.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime362 from "react/jsx-runtime";
|
|
2
2
|
import { DefaultError, MutationOptions } from "@tanstack/react-query";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/commands/utils/delete-command.client.d.ts
|
|
@@ -13,7 +13,7 @@ type DeleteCommandProps<TData = unknown, TError = DefaultError, TVariables = unk
|
|
|
13
13
|
declare function DeleteCommand<TData = unknown, TError = DefaultError, TVariables = unknown, TOnMutateResult = unknown>({
|
|
14
14
|
variables,
|
|
15
15
|
mutation
|
|
16
|
-
}: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>):
|
|
16
|
+
}: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime362.JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* Single Delete command
|
|
19
19
|
*/
|
|
@@ -22,7 +22,7 @@ declare function SingleDeleteCommand<TData = unknown, TError = DefaultError, TVa
|
|
|
22
22
|
}, TOnMutateResult = unknown>({
|
|
23
23
|
variables,
|
|
24
24
|
mutation
|
|
25
|
-
}: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>):
|
|
25
|
+
}: DeleteCommandProps<TData, TError, TVariables, TOnMutateResult>): react_jsx_runtime362.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { DeleteCommand, DeleteCommandProps, SingleDeleteCommand };
|
|
28
28
|
//# sourceMappingURL=delete-command.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as drizzle_orm_pg_core2049 from "drizzle-orm/pg-core";
|
|
2
|
+
import * as drizzle_orm480 from "drizzle-orm";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/config/db/helpers.d.ts
|
|
5
5
|
declare const generateDefaultUUID: () => string;
|
|
@@ -7,9 +7,9 @@ declare const generateDefaultUUID: () => string;
|
|
|
7
7
|
* Base columns4
|
|
8
8
|
*/
|
|
9
9
|
declare const baseColumns: {
|
|
10
|
-
id:
|
|
11
|
-
createdAt:
|
|
12
|
-
updatedAt:
|
|
10
|
+
id: drizzle_orm480.HasRuntimeDefault<drizzle_orm480.HasDefault<drizzle_orm480.IsPrimaryKey<drizzle_orm480.NotNull<drizzle_orm_pg_core2049.PgUUIDBuilderInitial<"">>>>>;
|
|
11
|
+
createdAt: drizzle_orm480.NotNull<drizzle_orm480.HasDefault<drizzle_orm_pg_core2049.PgTimestampBuilderInitial<"">>>;
|
|
12
|
+
updatedAt: drizzle_orm480.HasDefault<drizzle_orm480.NotNull<drizzle_orm480.HasDefault<drizzle_orm_pg_core2049.PgTimestampBuilderInitial<"">>>>;
|
|
13
13
|
};
|
|
14
14
|
//#endregion
|
|
15
15
|
export { baseColumns, generateDefaultUUID };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableCell } from "../table.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime364 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/data-tables/components/cell/common.client.d.ts
|
|
@@ -7,21 +7,21 @@ declare function TableTextCell({
|
|
|
7
7
|
children,
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: ComponentProps<typeof TableCell>):
|
|
10
|
+
}: ComponentProps<typeof TableCell>): react_jsx_runtime364.JSX.Element;
|
|
11
11
|
declare function TableNumberCell({
|
|
12
12
|
children,
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: ComponentProps<typeof TableCell>):
|
|
15
|
+
}: ComponentProps<typeof TableCell>): react_jsx_runtime364.JSX.Element;
|
|
16
16
|
declare function TableDateCell({
|
|
17
17
|
children,
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: ComponentProps<typeof TableCell>):
|
|
20
|
+
}: ComponentProps<typeof TableCell>): react_jsx_runtime364.JSX.Element;
|
|
21
21
|
declare function TableStatusCell({
|
|
22
22
|
children,
|
|
23
23
|
...props
|
|
24
|
-
}: ComponentProps<typeof TableCell>):
|
|
24
|
+
}: ComponentProps<typeof TableCell>): react_jsx_runtime364.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { TableDateCell, TableNumberCell, TableStatusCell, TableTextCell };
|
|
27
27
|
//# sourceMappingURL=common.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
2
2
|
import { Column } from "@tanstack/react-table";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/data-tables/components/column-header.d.ts
|
|
@@ -10,7 +10,7 @@ declare function TableColumnHeader<TData, TValue>({
|
|
|
10
10
|
column,
|
|
11
11
|
title,
|
|
12
12
|
className
|
|
13
|
-
}: TableColumnHeaderProps<TData, TValue>):
|
|
13
|
+
}: TableColumnHeaderProps<TData, TValue>): react_jsx_runtime41.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { TableColumnHeader };
|
|
16
16
|
//# sourceMappingURL=column-header.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/column-header.tsx"],"sourcesContent":[],"mappings":";;;;UAYU,8CAA8C,KAAA,CAAM,eAAe;UACnE,OAAO,OAAO;;AAJ4B;AAGyB,iBAK7D,iBAL6D,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAS1E,sBAT0E,CASnD,KATmD,EAS5C,MAT4C,CAAA,CAAA,EASrC,
|
|
1
|
+
{"version":3,"file":"column-header.d.mts","names":[],"sources":["../../../../src/modules/data-tables/components/column-header.tsx"],"sourcesContent":[],"mappings":";;;;UAYU,8CAA8C,KAAA,CAAM,eAAe;UACnE,OAAO,OAAO;;AAJ4B;AAGyB,iBAK7D,iBAL6D,CAAA,KAAA,EAAA,MAAA,CAAA,CAAA;EAAA,MAAA;EAAA,KAAA;EAAA;AAAA,CAAA,EAS1E,sBAT0E,CASnD,KATmD,EAS5C,MAT4C,CAAA,CAAA,EASrC,mBAAA,CAAA,GAAA,CAAA,OATqC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LucideIcon } from "lucide-react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime368 from "react/jsx-runtime";
|
|
3
3
|
import { ParserBuilder } from "nuqs";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/data-tables/components/filters/combobox.client.d.ts
|
|
@@ -22,7 +22,7 @@ declare function TableFilterCombobox<TValue extends string>({
|
|
|
22
22
|
title,
|
|
23
23
|
filter,
|
|
24
24
|
options
|
|
25
|
-
}: TableFilterComboboxProps<TValue>):
|
|
25
|
+
}: TableFilterComboboxProps<TValue>): react_jsx_runtime368.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { TableFilterCombobox, TableFilterComboboxOption, TableFilterComboboxProps };
|
|
28
28
|
//# sourceMappingURL=combobox.client.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime369 from "react/jsx-runtime";
|
|
2
2
|
import { ParserBuilder } from "nuqs";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/data-tables/components/filters/slider.client.d.ts
|
|
@@ -17,7 +17,7 @@ declare function TableFilterSlider({
|
|
|
17
17
|
title,
|
|
18
18
|
filter,
|
|
19
19
|
options
|
|
20
|
-
}: TableFilterSliderProps):
|
|
20
|
+
}: TableFilterSliderProps): react_jsx_runtime369.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { TableFilterSlider, TableFilterSliderProps };
|
|
23
23
|
//# sourceMappingURL=slider.client.d.mts.map
|