@carlonicora/nextjs-jsonapi 1.4.0 → 1.6.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/README.md +208 -127
- package/dist/{ApiResponseInterface-DDI7QQPR.d.ts → ApiResponseInterface-CfcC7pPC.d.mts} +11 -2
- package/dist/{ApiResponseInterface-BHN5D9r5.d.mts → ApiResponseInterface-DTBJaV5R.d.ts} +11 -2
- package/dist/{BlockNoteEditor-QV6ESIQA.js → BlockNoteEditor-7FM7B737.js} +19 -24
- package/dist/BlockNoteEditor-7FM7B737.js.map +1 -0
- package/dist/{BlockNoteEditor-U2IHUVUF.mjs → BlockNoteEditor-RVL76ZAS.mjs} +11 -16
- package/dist/BlockNoteEditor-RVL76ZAS.mjs.map +1 -0
- package/dist/JsonApiRequest-KOKGVPBI.js +25 -0
- package/dist/{JsonApiRequest-UJ7FGIVI.js.map → JsonApiRequest-KOKGVPBI.js.map} +1 -1
- package/dist/{JsonApiRequest-6UR7DIAR.mjs → JsonApiRequest-VCCRO732.mjs} +2 -2
- package/dist/chunk-2Z56AS2S.js +2723 -0
- package/dist/chunk-2Z56AS2S.js.map +1 -0
- package/dist/{chunk-HTLEKZND.mjs → chunk-37NJZ2VD.mjs} +281 -1019
- package/dist/chunk-37NJZ2VD.mjs.map +1 -0
- package/dist/{chunk-2K3Q24UF.js → chunk-3ZPK4QOB.js} +24 -14
- package/dist/chunk-3ZPK4QOB.js.map +1 -0
- package/dist/chunk-AGWQ75PQ.js +142 -0
- package/dist/chunk-AGWQ75PQ.js.map +1 -0
- package/dist/{chunk-32HM6MDD.js → chunk-CSM6AIAP.js} +1 -1
- package/dist/{chunk-32HM6MDD.js.map → chunk-CSM6AIAP.js.map} +1 -1
- package/dist/{chunk-IKBA4AHN.mjs → chunk-F4Y3GZG4.mjs} +3 -3
- package/dist/{chunk-YF5XQZDR.mjs → chunk-F5UNXZ3J.mjs} +1 -1
- package/dist/chunk-F5UNXZ3J.mjs.map +1 -0
- package/dist/chunk-IGOWVLJH.mjs +142 -0
- package/dist/chunk-IGOWVLJH.mjs.map +1 -0
- package/dist/{chunk-HAG77QBV.mjs → chunk-K4W5QXL5.mjs} +1 -1
- package/dist/chunk-KFL5ZFM4.mjs +2723 -0
- package/dist/chunk-KFL5ZFM4.mjs.map +1 -0
- package/dist/{chunk-HR4H2FP7.mjs → chunk-KJ4ETLJB.mjs} +24 -14
- package/dist/chunk-KJ4ETLJB.mjs.map +1 -0
- package/dist/chunk-LOSPCUCF.js +637 -0
- package/dist/chunk-LOSPCUCF.js.map +1 -0
- package/dist/{chunk-E2HRC2OG.js → chunk-SVX7E6RR.js} +10360 -6256
- package/dist/chunk-SVX7E6RR.js.map +1 -0
- package/dist/{chunk-EFJEWLRL.js → chunk-YUO55Q5A.js} +1 -1
- package/dist/chunk-YUO55Q5A.js.map +1 -0
- package/dist/chunk-ZQTFZKLJ.mjs +12089 -0
- package/dist/chunk-ZQTFZKLJ.mjs.map +1 -0
- package/dist/{chunk-PMXG5WBC.js → chunk-ZUEEIQHW.js} +3 -3
- package/dist/{chunk-PMXG5WBC.js.map → chunk-ZUEEIQHW.js.map} +1 -1
- package/dist/client/index.d.mts +161 -11
- package/dist/client/index.d.ts +161 -11
- package/dist/client/index.js +74 -12
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +73 -11
- package/dist/components/index.d.mts +762 -73
- package/dist/components/index.d.ts +762 -73
- package/dist/components/index.js +465 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +466 -13
- package/dist/config-B43zxEvn.d.mts +69 -0
- package/dist/config-D2OUrI_G.d.ts +69 -0
- package/dist/content.fields-Ck5lkQ5d.d.mts +47 -0
- package/dist/content.fields-Ck5lkQ5d.d.ts +47 -0
- package/dist/{content.interface-C_PGZMuy.d.ts → content.interface-Bs8a7uW6.d.mts} +2 -3
- package/dist/{content.interface-D_WS6CrB.d.mts → content.interface-UtsJ-mzs.d.ts} +2 -3
- package/dist/contexts/index.d.mts +13 -6
- package/dist/contexts/index.d.ts +13 -6
- package/dist/contexts/index.js +10 -12
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +9 -11
- package/dist/core/index.d.mts +539 -8
- package/dist/core/index.d.ts +539 -8
- package/dist/core/index.js +104 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +105 -3
- package/dist/index.d.mts +131 -70
- package/dist/index.d.ts +131 -70
- package/dist/index.js +97 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -28
- package/dist/notification.interface-BdcwkuQE.d.mts +228 -0
- package/dist/notification.interface-BdcwkuQE.d.ts +228 -0
- package/dist/request-GBLBPYFM.js +8 -0
- package/dist/request-GBLBPYFM.js.map +1 -0
- package/dist/request-XABCMU25.mjs +8 -0
- package/dist/{AbstractService-wLid8dB0.d.ts → s3.interface-D7ttGatc.d.ts} +36 -26
- package/dist/{AbstractService-BsY6W3Ej.d.mts → s3.interface-DlaMDRTn.d.mts} +36 -26
- package/dist/scripts/generate-web-module/generator.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/generator.js +8 -5
- package/dist/scripts/generate-web-module/generator.js.map +1 -1
- package/dist/scripts/generate-web-module/index.js +1 -1
- package/dist/scripts/generate-web-module/index.js.map +1 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js +8 -1
- package/dist/scripts/generate-web-module/templates/components/editor.template.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts +4 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/parent-detector.js +9 -3
- package/dist/scripts/generate-web-module/transformers/parent-detector.js.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts +11 -0
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js +36 -9
- package/dist/scripts/generate-web-module/transformers/relationship-resolver.js.map +1 -1
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts +2 -0
- package/dist/scripts/generate-web-module/types/json-schema.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts +1 -0
- package/dist/scripts/generate-web-module/types/template-data.interface.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts +4 -3
- package/dist/scripts/generate-web-module/utils/i18n-updater.d.ts.map +1 -1
- package/dist/scripts/generate-web-module/utils/i18n-updater.js +9 -9
- package/dist/scripts/generate-web-module/utils/i18n-updater.js.map +1 -1
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js +3 -3
- package/dist/scripts/generate-web-module/validators/json-schema-validator.js.map +1 -1
- package/dist/server/index.d.mts +299 -4
- package/dist/server/index.d.ts +299 -4
- package/dist/server/index.js +215 -5
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +214 -4
- package/dist/server/index.mjs.map +1 -1
- package/dist/token-2UWQJY5T.js +8 -0
- package/dist/token-2UWQJY5T.js.map +1 -0
- package/dist/token-EOK3N45S.mjs +8 -0
- package/dist/{useSocket-DzMKRKCA.d.ts → useSocket-8vwK_R_c.d.ts} +1 -1
- package/dist/{useSocket-Cn7fB_B1.d.mts → useSocket-BWJUXuOl.d.mts} +1 -1
- package/package.json +12 -52
- package/scripts/generate-web-module/generator.ts +8 -5
- package/scripts/generate-web-module/index.ts +1 -1
- package/scripts/generate-web-module/templates/components/editor.template.ts +7 -2
- package/scripts/generate-web-module/transformers/parent-detector.ts +10 -3
- package/scripts/generate-web-module/transformers/relationship-resolver.ts +36 -9
- package/scripts/generate-web-module/types/json-schema.interface.ts +2 -0
- package/scripts/generate-web-module/types/template-data.interface.ts +1 -0
- package/scripts/generate-web-module/utils/i18n-updater.ts +9 -9
- package/scripts/generate-web-module/validators/json-schema-validator.ts +3 -3
- package/src/client/JsonApiClient.ts +248 -0
- package/src/client/config.ts +78 -0
- package/src/client/index.ts +6 -1
- package/src/components/containers/TabsContainer.tsx +1 -1
- package/src/components/editors/BlockNoteEditor.tsx +3 -1
- package/src/components/index.ts +4 -0
- package/src/components/navigations/Breadcrumb.tsx +1 -1
- package/src/components/navigations/Header.tsx +2 -2
- package/src/contexts/CommonContext.tsx +1 -1
- package/src/contexts/SocketContext.tsx +1 -1
- package/src/contexts/index.ts +3 -0
- package/src/core/abstracts/ClientAbstractService.ts +255 -0
- package/src/core/abstracts/ServerAbstractService.ts +180 -0
- package/src/core/abstracts/index.ts +2 -0
- package/src/core/index.ts +32 -3
- package/src/discord/config.ts +15 -0
- package/src/discord/index.ts +1 -0
- package/src/features/auth/components/details/LandingComponent.tsx +2 -2
- package/src/features/auth/components/forms/AcceptInvitation.tsx +1 -1
- package/src/features/auth/components/forms/ActivateAccount.tsx +1 -1
- package/src/features/auth/components/forms/Cookies.tsx +2 -1
- package/src/features/auth/components/forms/ForgotPassword.tsx +1 -1
- package/src/features/auth/components/forms/Login.tsx +1 -1
- package/src/features/auth/components/forms/Logout.tsx +1 -1
- package/src/features/auth/components/forms/RefreshUser.tsx +2 -1
- package/src/features/auth/components/forms/Register.tsx +1 -1
- package/src/features/auth/components/forms/ResetPassword.tsx +1 -1
- package/src/features/auth/data/auth.service.ts +1 -1
- package/src/features/auth/data/index.ts +0 -1
- package/src/features/auth/utils/AuthCookies.ts +1 -1
- package/src/features/company/components/forms/CompanyConfigurationEditor.tsx +4 -2
- package/src/features/company/components/forms/CompanyDeleter.tsx +2 -1
- package/src/features/company/components/forms/CompanyEditor.tsx +6 -3
- package/src/features/company/components/forms/CompanyLicense.tsx +4 -2
- package/src/features/company/components/lists/CompaniesList.tsx +2 -1
- package/src/features/company/data/index.ts +0 -1
- package/src/features/content/components/lists/ContentsListById.tsx +2 -1
- package/src/features/content/components/lists/RelevantContentsList.tsx +2 -1
- package/src/features/content/data/index.ts +0 -1
- package/src/features/feature/data/index.ts +0 -1
- package/src/features/notification/components/lists/NotificationsList.tsx +2 -1
- package/src/features/notification/contexts/NotificationContext.tsx +2 -1
- package/src/features/notification/data/index.ts +0 -1
- package/src/features/push/data/index.ts +0 -1
- package/src/features/role/components/forms/RemoveUserFromRole.tsx +4 -2
- package/src/features/role/components/forms/UserRoleAdd.tsx +2 -1
- package/src/features/role/components/lists/RolesList.tsx +2 -1
- package/src/features/role/components/lists/UserRolesList.tsx +2 -1
- package/src/features/role/data/index.ts +0 -1
- package/src/features/s3/data/index.ts +0 -1
- package/src/features/user/components/forms/RoleUserAdd.tsx +4 -2
- package/src/features/user/components/forms/UserDeleter.tsx +2 -1
- package/src/features/user/components/forms/UserEditor.tsx +6 -3
- package/src/features/user/components/forms/UserMultiSelect.tsx +2 -1
- package/src/features/user/components/forms/UserReactivator.tsx +2 -1
- package/src/features/user/components/forms/UserResentInvitationEmail.tsx +2 -1
- package/src/features/user/components/forms/UserSelector.tsx +2 -1
- package/src/features/user/components/lists/AdminUsersList.tsx +2 -1
- package/src/features/user/components/lists/CompanyUsersList.tsx +2 -1
- package/src/features/user/components/lists/RelevantUsersList.tsx +2 -1
- package/src/features/user/components/lists/RoleUsersList.tsx +2 -1
- package/src/features/user/components/lists/UsersListByContentIds.tsx +2 -1
- package/src/features/user/data/index.ts +0 -1
- package/src/features/user/hooks/useUserSearch.ts +2 -1
- package/src/features/user/index.ts +1 -0
- package/src/hooks/useDataListRetriever.ts +4 -4
- package/src/hooks/usePageTracker.ts +1 -1
- package/src/hooks/usePushNotifications.ts +3 -2
- package/src/hooks/useSocket.ts +1 -1
- package/src/index.ts +7 -2
- package/src/roles/config.ts +0 -15
- package/src/roles/index.ts +1 -9
- package/src/server/JsonApiServer.ts +249 -0
- package/src/server/cache.ts +1 -1
- package/src/server/index.ts +13 -0
- package/src/server/request.ts +32 -18
- package/src/server/token.ts +1 -1
- package/dist/ApiData-DPKNfY-9.d.mts +0 -10
- package/dist/ApiData-DPKNfY-9.d.ts +0 -10
- package/dist/ApiDataInterface-DPP8s46n.d.mts +0 -21
- package/dist/ApiDataInterface-DPP8s46n.d.ts +0 -21
- package/dist/BlockNoteEditor-QV6ESIQA.js.map +0 -1
- package/dist/BlockNoteEditor-U2IHUVUF.mjs.map +0 -1
- package/dist/JsonApiRequest-UJ7FGIVI.js +0 -25
- package/dist/atoms/index.d.mts +0 -12
- package/dist/atoms/index.d.ts +0 -12
- package/dist/atoms/index.js +0 -9
- package/dist/atoms/index.js.map +0 -1
- package/dist/atoms/index.mjs +0 -9
- package/dist/chunk-2K3Q24UF.js.map +0 -1
- package/dist/chunk-3FBCC4G3.js +0 -8
- package/dist/chunk-3FBCC4G3.js.map +0 -1
- package/dist/chunk-3UELCPIN.js +0 -46
- package/dist/chunk-3UELCPIN.js.map +0 -1
- package/dist/chunk-5IET37O4.js +0 -4210
- package/dist/chunk-5IET37O4.js.map +0 -1
- package/dist/chunk-AYHKQWHH.js +0 -68
- package/dist/chunk-AYHKQWHH.js.map +0 -1
- package/dist/chunk-DEYKTLA3.js +0 -1131
- package/dist/chunk-DEYKTLA3.js.map +0 -1
- package/dist/chunk-E2HRC2OG.js.map +0 -1
- package/dist/chunk-EFJEWLRL.js.map +0 -1
- package/dist/chunk-FMBQZAIP.mjs +0 -490
- package/dist/chunk-FMBQZAIP.mjs.map +0 -1
- package/dist/chunk-HR4H2FP7.mjs.map +0 -1
- package/dist/chunk-HTLEKZND.mjs.map +0 -1
- package/dist/chunk-JGFWIT2E.mjs +0 -1131
- package/dist/chunk-JGFWIT2E.mjs.map +0 -1
- package/dist/chunk-P2F54I7Q.mjs +0 -4210
- package/dist/chunk-P2F54I7Q.mjs.map +0 -1
- package/dist/chunk-PO5Q3H5I.js +0 -1375
- package/dist/chunk-PO5Q3H5I.js.map +0 -1
- package/dist/chunk-Q2N6SQYW.mjs +0 -8
- package/dist/chunk-Q2N6SQYW.mjs.map +0 -1
- package/dist/chunk-Q4FXESVT.js +0 -490
- package/dist/chunk-Q4FXESVT.js.map +0 -1
- package/dist/chunk-R2ONK22M.mjs +0 -7985
- package/dist/chunk-R2ONK22M.mjs.map +0 -1
- package/dist/chunk-SM63SZCP.mjs +0 -68
- package/dist/chunk-SM63SZCP.mjs.map +0 -1
- package/dist/chunk-SZZYEG3P.mjs +0 -46
- package/dist/chunk-SZZYEG3P.mjs.map +0 -1
- package/dist/chunk-YF5XQZDR.mjs.map +0 -1
- package/dist/config-BmnK65TD.d.mts +0 -35
- package/dist/config-BmnK65TD.d.ts +0 -35
- package/dist/config-DQeAo9Kf.d.mts +0 -49
- package/dist/config-DQeAo9Kf.d.ts +0 -49
- package/dist/content.fields-cHPdM8GJ.d.mts +0 -27
- package/dist/content.fields-cHPdM8GJ.d.ts +0 -27
- package/dist/d3.link.interface-ClC4Irqp.d.mts +0 -21
- package/dist/d3.link.interface-ClC4Irqp.d.ts +0 -21
- package/dist/features/index.d.mts +0 -476
- package/dist/features/index.d.ts +0 -476
- package/dist/features/index.js +0 -87
- package/dist/features/index.js.map +0 -1
- package/dist/features/index.mjs +0 -87
- package/dist/hooks/index.d.mts +0 -69
- package/dist/hooks/index.d.ts +0 -69
- package/dist/hooks/index.js +0 -56
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -56
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/interfaces/index.d.mts +0 -4
- package/dist/interfaces/index.d.ts +0 -4
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/index.mjs +0 -2
- package/dist/interfaces/index.mjs.map +0 -1
- package/dist/notification.interface-BBgMUdLR.d.mts +0 -14
- package/dist/notification.interface-gyvT-Z2F.d.ts +0 -14
- package/dist/permissions/index.d.mts +0 -41
- package/dist/permissions/index.d.ts +0 -41
- package/dist/permissions/index.js +0 -14
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/index.mjs +0 -14
- package/dist/permissions/index.mjs.map +0 -1
- package/dist/request-7FE3LJLV.mjs +0 -9
- package/dist/request-7FE3LJLV.mjs.map +0 -1
- package/dist/request-QFS7NEIE.js +0 -9
- package/dist/request-QFS7NEIE.js.map +0 -1
- package/dist/roles/index.d.mts +0 -39
- package/dist/roles/index.d.ts +0 -39
- package/dist/roles/index.js +0 -18
- package/dist/roles/index.js.map +0 -1
- package/dist/roles/index.mjs +0 -18
- package/dist/roles/index.mjs.map +0 -1
- package/dist/shadcnui/index.d.mts +0 -698
- package/dist/shadcnui/index.d.ts +0 -698
- package/dist/shadcnui/index.js +0 -468
- package/dist/shadcnui/index.js.map +0 -1
- package/dist/shadcnui/index.mjs +0 -467
- package/dist/shadcnui/index.mjs.map +0 -1
- package/dist/token-IJSPOMW6.mjs +0 -9
- package/dist/token-IJSPOMW6.mjs.map +0 -1
- package/dist/token-UYE7CV6X.js +0 -9
- package/dist/token-UYE7CV6X.js.map +0 -1
- package/dist/types-B2QRyqyK.d.ts +0 -39
- package/dist/types-CgvNmxTd.d.mts +0 -39
- package/dist/types-t2PyXhDu.d.mts +0 -116
- package/dist/types-t2PyXhDu.d.ts +0 -116
- package/dist/user.interface-CAsTIbuQ.d.mts +0 -85
- package/dist/user.interface-CbWqMaaU.d.ts +0 -85
- package/dist/utils/index.d.mts +0 -224
- package/dist/utils/index.d.ts +0 -224
- package/dist/utils/index.js +0 -46
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -46
- package/dist/utils/index.mjs.map +0 -1
- /package/dist/{JsonApiRequest-6UR7DIAR.mjs.map → JsonApiRequest-VCCRO732.mjs.map} +0 -0
- /package/dist/{chunk-IKBA4AHN.mjs.map → chunk-F4Y3GZG4.mjs.map} +0 -0
- /package/dist/{chunk-HAG77QBV.mjs.map → chunk-K4W5QXL5.mjs.map} +0 -0
- /package/dist/{atoms/index.mjs.map → request-XABCMU25.mjs.map} +0 -0
- /package/dist/{features/index.mjs.map → token-EOK3N45S.mjs.map} +0 -0
package/dist/shadcnui/index.mjs
DELETED
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Accordion,
|
|
4
|
-
AccordionContent,
|
|
5
|
-
AccordionItem,
|
|
6
|
-
AccordionTrigger,
|
|
7
|
-
Alert,
|
|
8
|
-
AlertDescription,
|
|
9
|
-
AlertDialog,
|
|
10
|
-
AlertDialogAction,
|
|
11
|
-
AlertDialogCancel,
|
|
12
|
-
AlertDialogContent,
|
|
13
|
-
AlertDialogDescription,
|
|
14
|
-
AlertDialogFooter,
|
|
15
|
-
AlertDialogHeader,
|
|
16
|
-
AlertDialogOverlay,
|
|
17
|
-
AlertDialogPortal,
|
|
18
|
-
AlertDialogTitle,
|
|
19
|
-
AlertDialogTrigger,
|
|
20
|
-
AlertTitle,
|
|
21
|
-
Avatar,
|
|
22
|
-
AvatarFallback,
|
|
23
|
-
AvatarImage,
|
|
24
|
-
Badge,
|
|
25
|
-
Breadcrumb,
|
|
26
|
-
BreadcrumbEllipsis,
|
|
27
|
-
BreadcrumbItem,
|
|
28
|
-
BreadcrumbLink,
|
|
29
|
-
BreadcrumbList,
|
|
30
|
-
BreadcrumbPage,
|
|
31
|
-
BreadcrumbSeparator,
|
|
32
|
-
Button,
|
|
33
|
-
Calendar,
|
|
34
|
-
Card,
|
|
35
|
-
CardContent,
|
|
36
|
-
CardDescription,
|
|
37
|
-
CardFooter,
|
|
38
|
-
CardHeader,
|
|
39
|
-
CardTitle,
|
|
40
|
-
Carousel,
|
|
41
|
-
CarouselContent,
|
|
42
|
-
CarouselItem,
|
|
43
|
-
CarouselNext,
|
|
44
|
-
CarouselPrevious,
|
|
45
|
-
ChartContainer,
|
|
46
|
-
ChartLegend,
|
|
47
|
-
ChartLegendContent,
|
|
48
|
-
ChartStyle,
|
|
49
|
-
ChartTooltip,
|
|
50
|
-
ChartTooltipContent,
|
|
51
|
-
Checkbox,
|
|
52
|
-
Collapsible,
|
|
53
|
-
CollapsibleContent,
|
|
54
|
-
CollapsibleTrigger,
|
|
55
|
-
Command,
|
|
56
|
-
CommandDialog,
|
|
57
|
-
CommandEmpty,
|
|
58
|
-
CommandGroup,
|
|
59
|
-
CommandInput,
|
|
60
|
-
CommandItem,
|
|
61
|
-
CommandList,
|
|
62
|
-
CommandSeparator,
|
|
63
|
-
CommandShortcut,
|
|
64
|
-
ContextMenu,
|
|
65
|
-
ContextMenuCheckboxItem,
|
|
66
|
-
ContextMenuContent,
|
|
67
|
-
ContextMenuGroup,
|
|
68
|
-
ContextMenuItem,
|
|
69
|
-
ContextMenuLabel,
|
|
70
|
-
ContextMenuPortal,
|
|
71
|
-
ContextMenuRadioGroup,
|
|
72
|
-
ContextMenuRadioItem,
|
|
73
|
-
ContextMenuSeparator,
|
|
74
|
-
ContextMenuShortcut,
|
|
75
|
-
ContextMenuSub,
|
|
76
|
-
ContextMenuSubContent,
|
|
77
|
-
ContextMenuSubTrigger,
|
|
78
|
-
ContextMenuTrigger,
|
|
79
|
-
Dialog,
|
|
80
|
-
DialogClose,
|
|
81
|
-
DialogContent,
|
|
82
|
-
DialogDescription,
|
|
83
|
-
DialogFooter,
|
|
84
|
-
DialogHeader,
|
|
85
|
-
DialogOverlay,
|
|
86
|
-
DialogPortal,
|
|
87
|
-
DialogTitle,
|
|
88
|
-
DialogTrigger,
|
|
89
|
-
Drawer,
|
|
90
|
-
DrawerClose,
|
|
91
|
-
DrawerContent,
|
|
92
|
-
DrawerDescription,
|
|
93
|
-
DrawerFooter,
|
|
94
|
-
DrawerHeader,
|
|
95
|
-
DrawerOverlay,
|
|
96
|
-
DrawerPortal,
|
|
97
|
-
DrawerTitle,
|
|
98
|
-
DrawerTrigger,
|
|
99
|
-
DropdownMenu,
|
|
100
|
-
DropdownMenuCheckboxItem,
|
|
101
|
-
DropdownMenuContent,
|
|
102
|
-
DropdownMenuGroup,
|
|
103
|
-
DropdownMenuItem,
|
|
104
|
-
DropdownMenuLabel,
|
|
105
|
-
DropdownMenuPortal,
|
|
106
|
-
DropdownMenuRadioGroup,
|
|
107
|
-
DropdownMenuRadioItem,
|
|
108
|
-
DropdownMenuSeparator,
|
|
109
|
-
DropdownMenuShortcut,
|
|
110
|
-
DropdownMenuSub,
|
|
111
|
-
DropdownMenuSubContent,
|
|
112
|
-
DropdownMenuSubTrigger,
|
|
113
|
-
DropdownMenuTrigger,
|
|
114
|
-
Form,
|
|
115
|
-
FormControl,
|
|
116
|
-
FormDescription,
|
|
117
|
-
FormField,
|
|
118
|
-
FormItem,
|
|
119
|
-
FormLabel,
|
|
120
|
-
FormMessage,
|
|
121
|
-
HoverCard,
|
|
122
|
-
HoverCardContent,
|
|
123
|
-
HoverCardTrigger,
|
|
124
|
-
Input,
|
|
125
|
-
KanbanBoard,
|
|
126
|
-
KanbanColumn,
|
|
127
|
-
KanbanColumnHandle,
|
|
128
|
-
KanbanItem,
|
|
129
|
-
KanbanItemHandle,
|
|
130
|
-
KanbanOverlay,
|
|
131
|
-
KanbanRoot,
|
|
132
|
-
Label,
|
|
133
|
-
Link,
|
|
134
|
-
MultiSelect,
|
|
135
|
-
NavigationMenu,
|
|
136
|
-
NavigationMenuContent,
|
|
137
|
-
NavigationMenuIndicator,
|
|
138
|
-
NavigationMenuItem,
|
|
139
|
-
NavigationMenuLink,
|
|
140
|
-
NavigationMenuList,
|
|
141
|
-
NavigationMenuTrigger,
|
|
142
|
-
NavigationMenuViewport,
|
|
143
|
-
Popover,
|
|
144
|
-
PopoverAnchor,
|
|
145
|
-
PopoverContent,
|
|
146
|
-
PopoverTrigger,
|
|
147
|
-
Progress,
|
|
148
|
-
RadioGroup,
|
|
149
|
-
RadioGroupItem,
|
|
150
|
-
ResizableHandle,
|
|
151
|
-
ResizablePanel,
|
|
152
|
-
ResizablePanelGroup,
|
|
153
|
-
SIDEBAR_WIDTH,
|
|
154
|
-
SIDEBAR_WIDTH_ICON,
|
|
155
|
-
SIDEBAR_WIDTH_MOBILE,
|
|
156
|
-
ScrollArea,
|
|
157
|
-
ScrollBar,
|
|
158
|
-
Select,
|
|
159
|
-
SelectContent,
|
|
160
|
-
SelectGroup,
|
|
161
|
-
SelectItem,
|
|
162
|
-
SelectLabel,
|
|
163
|
-
SelectScrollDownButton,
|
|
164
|
-
SelectScrollUpButton,
|
|
165
|
-
SelectSeparator,
|
|
166
|
-
SelectTrigger,
|
|
167
|
-
SelectValue,
|
|
168
|
-
Separator,
|
|
169
|
-
Sheet,
|
|
170
|
-
SheetClose,
|
|
171
|
-
SheetContent,
|
|
172
|
-
SheetDescription,
|
|
173
|
-
SheetFooter,
|
|
174
|
-
SheetHeader,
|
|
175
|
-
SheetTitle,
|
|
176
|
-
SheetTrigger,
|
|
177
|
-
Sidebar,
|
|
178
|
-
SidebarContent,
|
|
179
|
-
SidebarFooter,
|
|
180
|
-
SidebarGroup,
|
|
181
|
-
SidebarGroupAction,
|
|
182
|
-
SidebarGroupContent,
|
|
183
|
-
SidebarGroupLabel,
|
|
184
|
-
SidebarHeader,
|
|
185
|
-
SidebarInput,
|
|
186
|
-
SidebarInset,
|
|
187
|
-
SidebarMenu,
|
|
188
|
-
SidebarMenuAction,
|
|
189
|
-
SidebarMenuBadge,
|
|
190
|
-
SidebarMenuButton,
|
|
191
|
-
SidebarMenuItem,
|
|
192
|
-
SidebarMenuSkeleton,
|
|
193
|
-
SidebarMenuSub,
|
|
194
|
-
SidebarMenuSubButton,
|
|
195
|
-
SidebarMenuSubItem,
|
|
196
|
-
SidebarProvider,
|
|
197
|
-
SidebarRail,
|
|
198
|
-
SidebarSeparator,
|
|
199
|
-
SidebarTrigger,
|
|
200
|
-
Skeleton,
|
|
201
|
-
Slider,
|
|
202
|
-
Switch,
|
|
203
|
-
Table,
|
|
204
|
-
TableBody,
|
|
205
|
-
TableCaption,
|
|
206
|
-
TableCell,
|
|
207
|
-
TableFooter,
|
|
208
|
-
TableHead,
|
|
209
|
-
TableHeader,
|
|
210
|
-
TableRow,
|
|
211
|
-
Tabs,
|
|
212
|
-
TabsContent,
|
|
213
|
-
TabsList,
|
|
214
|
-
TabsTrigger,
|
|
215
|
-
Textarea,
|
|
216
|
-
Toaster,
|
|
217
|
-
Toggle,
|
|
218
|
-
Tooltip,
|
|
219
|
-
TooltipContent,
|
|
220
|
-
TooltipProvider,
|
|
221
|
-
TooltipTrigger,
|
|
222
|
-
badgeVariants,
|
|
223
|
-
buttonVariants,
|
|
224
|
-
navigationMenuTriggerStyle,
|
|
225
|
-
toggleVariants,
|
|
226
|
-
useFormField,
|
|
227
|
-
useSidebar
|
|
228
|
-
} from "../chunk-P2F54I7Q.mjs";
|
|
229
|
-
import "../chunk-JGFWIT2E.mjs";
|
|
230
|
-
import "../chunk-FMBQZAIP.mjs";
|
|
231
|
-
import "../chunk-RBIVEH2K.mjs";
|
|
232
|
-
import "../chunk-PAWJFY3S.mjs";
|
|
233
|
-
export {
|
|
234
|
-
Accordion,
|
|
235
|
-
AccordionContent,
|
|
236
|
-
AccordionItem,
|
|
237
|
-
AccordionTrigger,
|
|
238
|
-
Alert,
|
|
239
|
-
AlertDescription,
|
|
240
|
-
AlertDialog,
|
|
241
|
-
AlertDialogAction,
|
|
242
|
-
AlertDialogCancel,
|
|
243
|
-
AlertDialogContent,
|
|
244
|
-
AlertDialogDescription,
|
|
245
|
-
AlertDialogFooter,
|
|
246
|
-
AlertDialogHeader,
|
|
247
|
-
AlertDialogOverlay,
|
|
248
|
-
AlertDialogPortal,
|
|
249
|
-
AlertDialogTitle,
|
|
250
|
-
AlertDialogTrigger,
|
|
251
|
-
AlertTitle,
|
|
252
|
-
Avatar,
|
|
253
|
-
AvatarFallback,
|
|
254
|
-
AvatarImage,
|
|
255
|
-
Badge,
|
|
256
|
-
KanbanBoard as Board,
|
|
257
|
-
Breadcrumb,
|
|
258
|
-
BreadcrumbEllipsis,
|
|
259
|
-
BreadcrumbItem,
|
|
260
|
-
BreadcrumbLink,
|
|
261
|
-
BreadcrumbList,
|
|
262
|
-
BreadcrumbPage,
|
|
263
|
-
BreadcrumbSeparator,
|
|
264
|
-
Button,
|
|
265
|
-
Calendar,
|
|
266
|
-
Card,
|
|
267
|
-
CardContent,
|
|
268
|
-
CardDescription,
|
|
269
|
-
CardFooter,
|
|
270
|
-
CardHeader,
|
|
271
|
-
CardTitle,
|
|
272
|
-
Carousel,
|
|
273
|
-
CarouselContent,
|
|
274
|
-
CarouselItem,
|
|
275
|
-
CarouselNext,
|
|
276
|
-
CarouselPrevious,
|
|
277
|
-
ChartContainer,
|
|
278
|
-
ChartLegend,
|
|
279
|
-
ChartLegendContent,
|
|
280
|
-
ChartStyle,
|
|
281
|
-
ChartTooltip,
|
|
282
|
-
ChartTooltipContent,
|
|
283
|
-
Checkbox,
|
|
284
|
-
Collapsible,
|
|
285
|
-
CollapsibleContent,
|
|
286
|
-
CollapsibleTrigger,
|
|
287
|
-
KanbanColumn as Column,
|
|
288
|
-
KanbanColumnHandle as ColumnHandle,
|
|
289
|
-
Command,
|
|
290
|
-
CommandDialog,
|
|
291
|
-
CommandEmpty,
|
|
292
|
-
CommandGroup,
|
|
293
|
-
CommandInput,
|
|
294
|
-
CommandItem,
|
|
295
|
-
CommandList,
|
|
296
|
-
CommandSeparator,
|
|
297
|
-
CommandShortcut,
|
|
298
|
-
ContextMenu,
|
|
299
|
-
ContextMenuCheckboxItem,
|
|
300
|
-
ContextMenuContent,
|
|
301
|
-
ContextMenuGroup,
|
|
302
|
-
ContextMenuItem,
|
|
303
|
-
ContextMenuLabel,
|
|
304
|
-
ContextMenuPortal,
|
|
305
|
-
ContextMenuRadioGroup,
|
|
306
|
-
ContextMenuRadioItem,
|
|
307
|
-
ContextMenuSeparator,
|
|
308
|
-
ContextMenuShortcut,
|
|
309
|
-
ContextMenuSub,
|
|
310
|
-
ContextMenuSubContent,
|
|
311
|
-
ContextMenuSubTrigger,
|
|
312
|
-
ContextMenuTrigger,
|
|
313
|
-
Dialog,
|
|
314
|
-
DialogClose,
|
|
315
|
-
DialogContent,
|
|
316
|
-
DialogDescription,
|
|
317
|
-
DialogFooter,
|
|
318
|
-
DialogHeader,
|
|
319
|
-
DialogOverlay,
|
|
320
|
-
DialogPortal,
|
|
321
|
-
DialogTitle,
|
|
322
|
-
DialogTrigger,
|
|
323
|
-
Drawer,
|
|
324
|
-
DrawerClose,
|
|
325
|
-
DrawerContent,
|
|
326
|
-
DrawerDescription,
|
|
327
|
-
DrawerFooter,
|
|
328
|
-
DrawerHeader,
|
|
329
|
-
DrawerOverlay,
|
|
330
|
-
DrawerPortal,
|
|
331
|
-
DrawerTitle,
|
|
332
|
-
DrawerTrigger,
|
|
333
|
-
DropdownMenu,
|
|
334
|
-
DropdownMenuCheckboxItem,
|
|
335
|
-
DropdownMenuContent,
|
|
336
|
-
DropdownMenuGroup,
|
|
337
|
-
DropdownMenuItem,
|
|
338
|
-
DropdownMenuLabel,
|
|
339
|
-
DropdownMenuPortal,
|
|
340
|
-
DropdownMenuRadioGroup,
|
|
341
|
-
DropdownMenuRadioItem,
|
|
342
|
-
DropdownMenuSeparator,
|
|
343
|
-
DropdownMenuShortcut,
|
|
344
|
-
DropdownMenuSub,
|
|
345
|
-
DropdownMenuSubContent,
|
|
346
|
-
DropdownMenuSubTrigger,
|
|
347
|
-
DropdownMenuTrigger,
|
|
348
|
-
Form,
|
|
349
|
-
FormControl,
|
|
350
|
-
FormDescription,
|
|
351
|
-
FormField,
|
|
352
|
-
FormItem,
|
|
353
|
-
FormLabel,
|
|
354
|
-
FormMessage,
|
|
355
|
-
HoverCard,
|
|
356
|
-
HoverCardContent,
|
|
357
|
-
HoverCardTrigger,
|
|
358
|
-
Input,
|
|
359
|
-
KanbanItem as Item,
|
|
360
|
-
KanbanItemHandle as ItemHandle,
|
|
361
|
-
KanbanRoot as Kanban,
|
|
362
|
-
KanbanBoard,
|
|
363
|
-
KanbanColumn,
|
|
364
|
-
KanbanColumnHandle,
|
|
365
|
-
KanbanItem,
|
|
366
|
-
KanbanItemHandle,
|
|
367
|
-
KanbanOverlay,
|
|
368
|
-
Label,
|
|
369
|
-
Link,
|
|
370
|
-
MultiSelect,
|
|
371
|
-
NavigationMenu,
|
|
372
|
-
NavigationMenuContent,
|
|
373
|
-
NavigationMenuIndicator,
|
|
374
|
-
NavigationMenuItem,
|
|
375
|
-
NavigationMenuLink,
|
|
376
|
-
NavigationMenuList,
|
|
377
|
-
NavigationMenuTrigger,
|
|
378
|
-
NavigationMenuViewport,
|
|
379
|
-
KanbanOverlay as Overlay,
|
|
380
|
-
Popover,
|
|
381
|
-
PopoverAnchor,
|
|
382
|
-
PopoverContent,
|
|
383
|
-
PopoverTrigger,
|
|
384
|
-
Progress,
|
|
385
|
-
RadioGroup,
|
|
386
|
-
RadioGroupItem,
|
|
387
|
-
ResizableHandle,
|
|
388
|
-
ResizablePanel,
|
|
389
|
-
ResizablePanelGroup,
|
|
390
|
-
KanbanRoot as Root,
|
|
391
|
-
SIDEBAR_WIDTH,
|
|
392
|
-
SIDEBAR_WIDTH_ICON,
|
|
393
|
-
SIDEBAR_WIDTH_MOBILE,
|
|
394
|
-
ScrollArea,
|
|
395
|
-
ScrollBar,
|
|
396
|
-
Select,
|
|
397
|
-
SelectContent,
|
|
398
|
-
SelectGroup,
|
|
399
|
-
SelectItem,
|
|
400
|
-
SelectLabel,
|
|
401
|
-
SelectScrollDownButton,
|
|
402
|
-
SelectScrollUpButton,
|
|
403
|
-
SelectSeparator,
|
|
404
|
-
SelectTrigger,
|
|
405
|
-
SelectValue,
|
|
406
|
-
Separator,
|
|
407
|
-
Sheet,
|
|
408
|
-
SheetClose,
|
|
409
|
-
SheetContent,
|
|
410
|
-
SheetDescription,
|
|
411
|
-
SheetFooter,
|
|
412
|
-
SheetHeader,
|
|
413
|
-
SheetTitle,
|
|
414
|
-
SheetTrigger,
|
|
415
|
-
Sidebar,
|
|
416
|
-
SidebarContent,
|
|
417
|
-
SidebarFooter,
|
|
418
|
-
SidebarGroup,
|
|
419
|
-
SidebarGroupAction,
|
|
420
|
-
SidebarGroupContent,
|
|
421
|
-
SidebarGroupLabel,
|
|
422
|
-
SidebarHeader,
|
|
423
|
-
SidebarInput,
|
|
424
|
-
SidebarInset,
|
|
425
|
-
SidebarMenu,
|
|
426
|
-
SidebarMenuAction,
|
|
427
|
-
SidebarMenuBadge,
|
|
428
|
-
SidebarMenuButton,
|
|
429
|
-
SidebarMenuItem,
|
|
430
|
-
SidebarMenuSkeleton,
|
|
431
|
-
SidebarMenuSub,
|
|
432
|
-
SidebarMenuSubButton,
|
|
433
|
-
SidebarMenuSubItem,
|
|
434
|
-
SidebarProvider,
|
|
435
|
-
SidebarRail,
|
|
436
|
-
SidebarSeparator,
|
|
437
|
-
SidebarTrigger,
|
|
438
|
-
Skeleton,
|
|
439
|
-
Slider,
|
|
440
|
-
Switch,
|
|
441
|
-
Table,
|
|
442
|
-
TableBody,
|
|
443
|
-
TableCaption,
|
|
444
|
-
TableCell,
|
|
445
|
-
TableFooter,
|
|
446
|
-
TableHead,
|
|
447
|
-
TableHeader,
|
|
448
|
-
TableRow,
|
|
449
|
-
Tabs,
|
|
450
|
-
TabsContent,
|
|
451
|
-
TabsList,
|
|
452
|
-
TabsTrigger,
|
|
453
|
-
Textarea,
|
|
454
|
-
Toaster,
|
|
455
|
-
Toggle,
|
|
456
|
-
Tooltip,
|
|
457
|
-
TooltipContent,
|
|
458
|
-
TooltipProvider,
|
|
459
|
-
TooltipTrigger,
|
|
460
|
-
badgeVariants,
|
|
461
|
-
buttonVariants,
|
|
462
|
-
navigationMenuTriggerStyle,
|
|
463
|
-
toggleVariants,
|
|
464
|
-
useFormField,
|
|
465
|
-
useSidebar
|
|
466
|
-
};
|
|
467
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/token-IJSPOMW6.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/token-UYE7CV6X.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use server";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkEFJEWLRLjs = require('./chunk-EFJEWLRL.js');
|
|
5
|
-
require('./chunk-7QVYU63E.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.getServerToken = _chunkEFJEWLRLjs.getServerToken;
|
|
9
|
-
//# sourceMappingURL=token-UYE7CV6X.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/token-UYE7CV6X.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,yDAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/token-UYE7CV6X.js"}
|
package/dist/types-B2QRyqyK.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
import { b as PageUrl } from './types-t2PyXhDu.js';
|
|
3
|
-
import { D as DataListRetriever } from './useDataListRetriever-futhx3OP.js';
|
|
4
|
-
|
|
5
|
-
type TableContent<T> = {
|
|
6
|
-
jsonApiData: T;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
interface TableStructureGeneratorInterface<T, U> {
|
|
10
|
-
generateTableStructure: (params: {
|
|
11
|
-
t: (key: string) => string;
|
|
12
|
-
generateUrl: (params: {
|
|
13
|
-
page: string | PageUrl | string;
|
|
14
|
-
id?: string;
|
|
15
|
-
}) => string;
|
|
16
|
-
data: T[];
|
|
17
|
-
fields: Array<U>;
|
|
18
|
-
checkedIds?: string[];
|
|
19
|
-
toggleId?: (id: string) => void;
|
|
20
|
-
}) => {
|
|
21
|
-
data: TableContent<T>[];
|
|
22
|
-
columns: ColumnDef<TableContent<T>>[];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
type UseTableStructureHookParams<T, U> = {
|
|
26
|
-
data: T[];
|
|
27
|
-
fields: Array<U>;
|
|
28
|
-
checkedIds?: string[];
|
|
29
|
-
toggleId?: (id: string) => void;
|
|
30
|
-
dataRetriever?: DataListRetriever<T>;
|
|
31
|
-
context?: Record<string, any>;
|
|
32
|
-
};
|
|
33
|
-
type UseTableStructureHookReturn<T> = {
|
|
34
|
-
data: TableContent<T>[];
|
|
35
|
-
columns: ColumnDef<TableContent<T>>[];
|
|
36
|
-
};
|
|
37
|
-
type UseTableStructureHook<T, U> = (params: UseTableStructureHookParams<T, U>) => UseTableStructureHookReturn<T>;
|
|
38
|
-
|
|
39
|
-
export type { TableContent as T, UseTableStructureHook as U, UseTableStructureHookParams as a, UseTableStructureHookReturn as b, TableStructureGeneratorInterface as c };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
import { b as PageUrl } from './types-t2PyXhDu.mjs';
|
|
3
|
-
import { D as DataListRetriever } from './useDataListRetriever-futhx3OP.mjs';
|
|
4
|
-
|
|
5
|
-
type TableContent<T> = {
|
|
6
|
-
jsonApiData: T;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
interface TableStructureGeneratorInterface<T, U> {
|
|
10
|
-
generateTableStructure: (params: {
|
|
11
|
-
t: (key: string) => string;
|
|
12
|
-
generateUrl: (params: {
|
|
13
|
-
page: string | PageUrl | string;
|
|
14
|
-
id?: string;
|
|
15
|
-
}) => string;
|
|
16
|
-
data: T[];
|
|
17
|
-
fields: Array<U>;
|
|
18
|
-
checkedIds?: string[];
|
|
19
|
-
toggleId?: (id: string) => void;
|
|
20
|
-
}) => {
|
|
21
|
-
data: TableContent<T>[];
|
|
22
|
-
columns: ColumnDef<TableContent<T>>[];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
type UseTableStructureHookParams<T, U> = {
|
|
26
|
-
data: T[];
|
|
27
|
-
fields: Array<U>;
|
|
28
|
-
checkedIds?: string[];
|
|
29
|
-
toggleId?: (id: string) => void;
|
|
30
|
-
dataRetriever?: DataListRetriever<T>;
|
|
31
|
-
context?: Record<string, any>;
|
|
32
|
-
};
|
|
33
|
-
type UseTableStructureHookReturn<T> = {
|
|
34
|
-
data: TableContent<T>[];
|
|
35
|
-
columns: ColumnDef<TableContent<T>>[];
|
|
36
|
-
};
|
|
37
|
-
type UseTableStructureHook<T, U> = (params: UseTableStructureHookParams<T, U>) => UseTableStructureHookReturn<T>;
|
|
38
|
-
|
|
39
|
-
export type { TableContent as T, UseTableStructureHook as U, UseTableStructureHookParams as a, UseTableStructureHookReturn as b, TableStructureGeneratorInterface as c };
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
|
|
3
|
-
type GetterKeys<T> = {
|
|
4
|
-
[K in keyof T]: T[K] extends () => any ? never : K;
|
|
5
|
-
}[keyof T];
|
|
6
|
-
type FieldSelector<T> = {
|
|
7
|
-
type: string;
|
|
8
|
-
fields: ReadonlyArray<GetterKeys<T>>;
|
|
9
|
-
};
|
|
10
|
-
declare function createJsonApiInclusion<T>(dataType: string, fields: ReadonlyArray<GetterKeys<T>>): FieldSelector<T>;
|
|
11
|
-
|
|
12
|
-
type ApiRequestDataTypeInterface = {
|
|
13
|
-
name: string;
|
|
14
|
-
cache?: string;
|
|
15
|
-
inclusions?: Record<string, {
|
|
16
|
-
types?: string[];
|
|
17
|
-
fields?: FieldSelector<any>[];
|
|
18
|
-
}>;
|
|
19
|
-
model: new () => any;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Permission actions
|
|
24
|
-
*/
|
|
25
|
-
declare enum Action {
|
|
26
|
-
Read = "read",
|
|
27
|
-
Create = "create",
|
|
28
|
-
Update = "update",
|
|
29
|
-
Delete = "delete"
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Generic permission check type.
|
|
33
|
-
* Can be a boolean or a function that checks permissions dynamically.
|
|
34
|
-
* @template T - The data type being checked
|
|
35
|
-
* @template U - The user type (defaults to PermissionUser)
|
|
36
|
-
*/
|
|
37
|
-
type PermissionCheck<T, U = PermissionUser> = boolean | ((user?: U | string, data?: T) => boolean);
|
|
38
|
-
/**
|
|
39
|
-
* Page URL configuration for modules
|
|
40
|
-
*/
|
|
41
|
-
type PageUrl = {
|
|
42
|
-
pageUrl?: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Module permission definition wrapper
|
|
46
|
-
*/
|
|
47
|
-
type ModulePermissionDefinition<T> = {
|
|
48
|
-
interface: T;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Base module definition
|
|
52
|
-
*/
|
|
53
|
-
type ModuleDefinition = {
|
|
54
|
-
pageUrl?: string;
|
|
55
|
-
name: string;
|
|
56
|
-
model: any;
|
|
57
|
-
feature?: string;
|
|
58
|
-
moduleId?: string;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Permission configuration for a module.
|
|
62
|
-
* Can be a boolean (allow/deny all) or a string path for dynamic checks.
|
|
63
|
-
*/
|
|
64
|
-
interface PermissionConfig {
|
|
65
|
-
create: boolean | string;
|
|
66
|
-
read: boolean | string;
|
|
67
|
-
update: boolean | string;
|
|
68
|
-
delete: boolean | string;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Generic interface for a module that has permissions.
|
|
72
|
-
* Apps should ensure their Module class implements this.
|
|
73
|
-
*/
|
|
74
|
-
interface PermissionModule {
|
|
75
|
-
id: string;
|
|
76
|
-
permissions: PermissionConfig;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Generic interface for a user that has modules with permissions.
|
|
80
|
-
* Apps should ensure their User class implements this.
|
|
81
|
-
*/
|
|
82
|
-
interface PermissionUser {
|
|
83
|
-
id: string;
|
|
84
|
-
modules: PermissionModule[];
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Module definition with permissions - extends ApiRequestDataTypeInterface
|
|
88
|
-
*/
|
|
89
|
-
type ModuleWithPermissions = ApiRequestDataTypeInterface & {
|
|
90
|
-
pageUrl?: string;
|
|
91
|
-
feature?: string;
|
|
92
|
-
moduleId?: string;
|
|
93
|
-
icon?: LucideIcon;
|
|
94
|
-
inclusions?: Record<string, {
|
|
95
|
-
types?: string[];
|
|
96
|
-
fields?: FieldSelector<any>[];
|
|
97
|
-
}>;
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Factory type for creating module definitions
|
|
101
|
-
*/
|
|
102
|
-
type ModuleFactory = (params: {
|
|
103
|
-
pageUrl?: string;
|
|
104
|
-
name: string;
|
|
105
|
-
cache?: string | "days" | "default" | "hours" | "max" | "minutes" | "seconds" | "weeks";
|
|
106
|
-
model: any;
|
|
107
|
-
feature?: string;
|
|
108
|
-
moduleId?: string;
|
|
109
|
-
icon?: LucideIcon;
|
|
110
|
-
inclusions?: Record<string, {
|
|
111
|
-
types?: string[];
|
|
112
|
-
fields?: FieldSelector<any>[];
|
|
113
|
-
}>;
|
|
114
|
-
}) => ModuleWithPermissions;
|
|
115
|
-
|
|
116
|
-
export { type ApiRequestDataTypeInterface as A, type FieldSelector as F, type GetterKeys as G, type ModuleWithPermissions as M, type PermissionCheck as P, Action as a, type PageUrl as b, createJsonApiInclusion as c, type ModulePermissionDefinition as d, type ModuleDefinition as e, type PermissionConfig as f, type PermissionModule as g, type PermissionUser as h, type ModuleFactory as i };
|