@carlonicora/nextjs-jsonapi 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +889 -0
- package/dist/AbstractService-BKlpJA61.d.mts +109 -0
- package/dist/AbstractService-D9eSVKNa.d.ts +109 -0
- package/dist/ApiData-DPKNfY-9.d.mts +10 -0
- package/dist/ApiData-DPKNfY-9.d.ts +10 -0
- package/dist/ApiDataInterface-DPP8s46n.d.mts +21 -0
- package/dist/ApiDataInterface-DPP8s46n.d.ts +21 -0
- package/dist/ApiRequestDataTypeInterface-CUKFDBx2.d.mts +20 -0
- package/dist/ApiRequestDataTypeInterface-CUKFDBx2.d.ts +20 -0
- package/dist/ApiResponseInterface-BHN5D9r5.d.mts +16 -0
- package/dist/ApiResponseInterface-DDI7QQPR.d.ts +16 -0
- package/dist/BlockNoteEditor-UVO3VZZE.mjs +396 -0
- package/dist/BlockNoteEditor-UVO3VZZE.mjs.map +1 -0
- package/dist/BlockNoteEditor-VFWG6LXI.js +396 -0
- package/dist/BlockNoteEditor-VFWG6LXI.js.map +1 -0
- package/dist/JsonApiRequest-S3ICLM7B.mjs +20 -0
- package/dist/JsonApiRequest-S3ICLM7B.mjs.map +1 -0
- package/dist/JsonApiRequest-ZZLSP26T.js +20 -0
- package/dist/JsonApiRequest-ZZLSP26T.js.map +1 -0
- package/dist/atoms/index.d.mts +12 -0
- package/dist/atoms/index.d.ts +12 -0
- package/dist/atoms/index.js +9 -0
- package/dist/atoms/index.js.map +1 -0
- package/dist/atoms/index.mjs +9 -0
- package/dist/atoms/index.mjs.map +1 -0
- package/dist/breadcrumb.item.data.interface-CgB4_1EE.d.mts +6 -0
- package/dist/breadcrumb.item.data.interface-CgB4_1EE.d.ts +6 -0
- package/dist/chunk-2K3Q24UF.js +89 -0
- package/dist/chunk-2K3Q24UF.js.map +1 -0
- package/dist/chunk-2LM6LCJW.mjs +1091 -0
- package/dist/chunk-2LM6LCJW.mjs.map +1 -0
- package/dist/chunk-366S2JCC.mjs +31 -0
- package/dist/chunk-366S2JCC.mjs.map +1 -0
- package/dist/chunk-3FBCC4G3.js +8 -0
- package/dist/chunk-3FBCC4G3.js.map +1 -0
- package/dist/chunk-4HCRAOS5.js +28 -0
- package/dist/chunk-4HCRAOS5.js.map +1 -0
- package/dist/chunk-5W6AKZE6.mjs +131 -0
- package/dist/chunk-5W6AKZE6.mjs.map +1 -0
- package/dist/chunk-6GKHCVF6.js +98 -0
- package/dist/chunk-6GKHCVF6.js.map +1 -0
- package/dist/chunk-7QVYU63E.js +7 -0
- package/dist/chunk-7QVYU63E.js.map +1 -0
- package/dist/chunk-A3J3AAYM.mjs +97 -0
- package/dist/chunk-A3J3AAYM.mjs.map +1 -0
- package/dist/chunk-A5DDIABK.js +4209 -0
- package/dist/chunk-A5DDIABK.js.map +1 -0
- package/dist/chunk-AUXK7QSA.mjs +15 -0
- package/dist/chunk-AUXK7QSA.mjs.map +1 -0
- package/dist/chunk-AWONBQQP.js +97 -0
- package/dist/chunk-AWONBQQP.js.map +1 -0
- package/dist/chunk-BLWVZK6J.mjs +28 -0
- package/dist/chunk-BLWVZK6J.mjs.map +1 -0
- package/dist/chunk-C7C7VY4F.mjs +77 -0
- package/dist/chunk-C7C7VY4F.mjs.map +1 -0
- package/dist/chunk-CXQOWQSY.js +55 -0
- package/dist/chunk-CXQOWQSY.js.map +1 -0
- package/dist/chunk-DD3KISNB.mjs +98 -0
- package/dist/chunk-DD3KISNB.mjs.map +1 -0
- package/dist/chunk-DKKMWBP4.mjs +1 -0
- package/dist/chunk-DKKMWBP4.mjs.map +1 -0
- package/dist/chunk-DO2HLAZO.js +48 -0
- package/dist/chunk-DO2HLAZO.js.map +1 -0
- package/dist/chunk-DZXDB3K2.mjs +17 -0
- package/dist/chunk-DZXDB3K2.mjs.map +1 -0
- package/dist/chunk-ECDTZBYO.mjs +230 -0
- package/dist/chunk-ECDTZBYO.mjs.map +1 -0
- package/dist/chunk-EFJEWLRL.js +16 -0
- package/dist/chunk-EFJEWLRL.js.map +1 -0
- package/dist/chunk-FY4SXJGU.js +806 -0
- package/dist/chunk-FY4SXJGU.js.map +1 -0
- package/dist/chunk-GYWPEPOH.mjs +1354 -0
- package/dist/chunk-GYWPEPOH.mjs.map +1 -0
- package/dist/chunk-H6FMOA6B.js +1 -0
- package/dist/chunk-H6FMOA6B.js.map +1 -0
- package/dist/chunk-HR4H2FP7.mjs +89 -0
- package/dist/chunk-HR4H2FP7.mjs.map +1 -0
- package/dist/chunk-I2REI7OA.js +462 -0
- package/dist/chunk-I2REI7OA.js.map +1 -0
- package/dist/chunk-IBS6NI7D.js +77 -0
- package/dist/chunk-IBS6NI7D.js.map +1 -0
- package/dist/chunk-IWFGEPAA.mjs +4209 -0
- package/dist/chunk-IWFGEPAA.mjs.map +1 -0
- package/dist/chunk-J4Q36PMP.js +31 -0
- package/dist/chunk-J4Q36PMP.js.map +1 -0
- package/dist/chunk-JC3WJK65.js +1091 -0
- package/dist/chunk-JC3WJK65.js.map +1 -0
- package/dist/chunk-L6EQEAXU.mjs +462 -0
- package/dist/chunk-L6EQEAXU.mjs.map +1 -0
- package/dist/chunk-LXKSUWAV.js +15 -0
- package/dist/chunk-LXKSUWAV.js.map +1 -0
- package/dist/chunk-MFO27OHB.mjs +48 -0
- package/dist/chunk-MFO27OHB.mjs.map +1 -0
- package/dist/chunk-PAWJFY3S.mjs +7 -0
- package/dist/chunk-PAWJFY3S.mjs.map +1 -0
- package/dist/chunk-Q2N6SQYW.mjs +8 -0
- package/dist/chunk-Q2N6SQYW.mjs.map +1 -0
- package/dist/chunk-RAF7PNLG.js +131 -0
- package/dist/chunk-RAF7PNLG.js.map +1 -0
- package/dist/chunk-RUR22SVM.js +17 -0
- package/dist/chunk-RUR22SVM.js.map +1 -0
- package/dist/chunk-TEGF6ZWG.js +109 -0
- package/dist/chunk-TEGF6ZWG.js.map +1 -0
- package/dist/chunk-TMVHSY3Y.js +230 -0
- package/dist/chunk-TMVHSY3Y.js.map +1 -0
- package/dist/chunk-V2JJPI7N.js +1354 -0
- package/dist/chunk-V2JJPI7N.js.map +1 -0
- package/dist/chunk-WWWMJZEF.mjs +806 -0
- package/dist/chunk-WWWMJZEF.mjs.map +1 -0
- package/dist/chunk-X4BIHJ2B.mjs +55 -0
- package/dist/chunk-X4BIHJ2B.mjs.map +1 -0
- package/dist/chunk-YDVTFM7X.mjs +109 -0
- package/dist/chunk-YDVTFM7X.mjs.map +1 -0
- package/dist/chunk-YF5XQZDR.mjs +16 -0
- package/dist/chunk-YF5XQZDR.mjs.map +1 -0
- package/dist/client/index.d.mts +252 -0
- package/dist/client/index.d.ts +252 -0
- package/dist/client/index.js +275 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/index.mjs +274 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/components/index.d.mts +441 -0
- package/dist/components/index.d.ts +441 -0
- package/dist/components/index.js +2474 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +2474 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/config-hXufftVS.d.mts +34 -0
- package/dist/config-hXufftVS.d.ts +34 -0
- package/dist/content.interface-BhyAiOFq.d.ts +35 -0
- package/dist/content.interface-Dg2lt_An.d.mts +35 -0
- package/dist/contexts/index.d.mts +56 -0
- package/dist/contexts/index.d.ts +56 -0
- package/dist/contexts/index.js +21 -0
- package/dist/contexts/index.js.map +1 -0
- package/dist/contexts/index.mjs +21 -0
- package/dist/contexts/index.mjs.map +1 -0
- package/dist/core/index.d.mts +152 -0
- package/dist/core/index.d.ts +152 -0
- package/dist/core/index.js +47 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +47 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/d3.link.interface-QMdB22bC.d.mts +20 -0
- package/dist/d3.link.interface-QMdB22bC.d.ts +20 -0
- package/dist/features/index.d.mts +553 -0
- package/dist/features/index.d.ts +553 -0
- package/dist/features/index.js +94 -0
- package/dist/features/index.js.map +1 -0
- package/dist/features/index.mjs +94 -0
- package/dist/features/index.mjs.map +1 -0
- package/dist/hooks/index.d.mts +94 -0
- package/dist/hooks/index.d.ts +94 -0
- package/dist/hooks/index.js +43 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +43 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/index.d.mts +72 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.js +84 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +84 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/index.d.mts +3 -0
- package/dist/interfaces/index.d.ts +3 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/index.mjs +2 -0
- package/dist/interfaces/index.mjs.map +1 -0
- package/dist/permissions/index.d.mts +41 -0
- package/dist/permissions/index.d.ts +41 -0
- package/dist/permissions/index.js +14 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/permissions/index.mjs +14 -0
- package/dist/permissions/index.mjs.map +1 -0
- package/dist/request-7FE3LJLV.mjs +9 -0
- package/dist/request-7FE3LJLV.mjs.map +1 -0
- package/dist/request-FYMQK5CX.mjs +9 -0
- package/dist/request-FYMQK5CX.mjs.map +1 -0
- package/dist/request-QFS7NEIE.js +9 -0
- package/dist/request-QFS7NEIE.js.map +1 -0
- package/dist/request-ZYY6RI5X.js +9 -0
- package/dist/request-ZYY6RI5X.js.map +1 -0
- package/dist/roles/index.d.mts +33 -0
- package/dist/roles/index.d.ts +33 -0
- package/dist/roles/index.js +12 -0
- package/dist/roles/index.js.map +1 -0
- package/dist/roles/index.mjs +12 -0
- package/dist/roles/index.mjs.map +1 -0
- package/dist/server/index.d.mts +44 -0
- package/dist/server/index.d.ts +44 -0
- package/dist/server/index.js +29 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +29 -0
- package/dist/server/index.mjs.map +1 -0
- package/dist/shadcnui/index.d.mts +698 -0
- package/dist/shadcnui/index.d.ts +698 -0
- package/dist/shadcnui/index.js +466 -0
- package/dist/shadcnui/index.js.map +1 -0
- package/dist/shadcnui/index.mjs +465 -0
- package/dist/shadcnui/index.mjs.map +1 -0
- package/dist/token-IJSPOMW6.mjs +9 -0
- package/dist/token-IJSPOMW6.mjs.map +1 -0
- package/dist/token-MJMC26ON.js +9 -0
- package/dist/token-MJMC26ON.js.map +1 -0
- package/dist/token-UADJQ7VC.mjs +9 -0
- package/dist/token-UADJQ7VC.mjs.map +1 -0
- package/dist/token-UYE7CV6X.js +9 -0
- package/dist/token-UYE7CV6X.js.map +1 -0
- package/dist/types-DluCaP1I.d.ts +95 -0
- package/dist/types-lQVA8d_P.d.mts +95 -0
- package/dist/useDataListRetriever-futhx3OP.d.mts +32 -0
- package/dist/useDataListRetriever-futhx3OP.d.ts +32 -0
- package/dist/user.interface-CAsTIbuQ.d.mts +85 -0
- package/dist/user.interface-CbWqMaaU.d.ts +85 -0
- package/dist/utils/index.d.mts +201 -0
- package/dist/utils/index.d.ts +201 -0
- package/dist/utils/index.js +32 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +32 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +205 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { ReactElement, ReactNode, Dispatch, SetStateAction } from 'react';
|
|
4
|
+
import { f as ModuleWithPermissions, A as Action } from '../types-lQVA8d_P.mjs';
|
|
5
|
+
import { C as ContentInterface } from '../content.interface-Dg2lt_An.mjs';
|
|
6
|
+
export { b as ContributorsList, U as UserAvatar } from '../content.interface-Dg2lt_An.mjs';
|
|
7
|
+
import { PartialBlock } from '@blocknote/core';
|
|
8
|
+
import { D as DataListRetriever } from '../useDataListRetriever-futhx3OP.mjs';
|
|
9
|
+
import { DateRange } from 'react-day-picker';
|
|
10
|
+
import { DropzoneState, DropzoneOptions } from 'react-dropzone';
|
|
11
|
+
import { B as BreadcrumbItemData } from '../breadcrumb.item.data.interface-CgB4_1EE.mjs';
|
|
12
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
13
|
+
import '../ApiRequestDataTypeInterface-CUKFDBx2.mjs';
|
|
14
|
+
import '../ApiDataInterface-DPP8s46n.mjs';
|
|
15
|
+
import '../user.interface-CAsTIbuQ.mjs';
|
|
16
|
+
|
|
17
|
+
type PageContainerProps = {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
testId?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
declare function PageContainer({ children, testId, className }: PageContainerProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
type ReactMarkdownContainerProps = {
|
|
25
|
+
content: string;
|
|
26
|
+
collapsible?: boolean;
|
|
27
|
+
initialLines?: number;
|
|
28
|
+
size?: "small" | "normal";
|
|
29
|
+
};
|
|
30
|
+
declare function ReactMarkdownContainer({ content, collapsible, initialLines, size, }: ReactMarkdownContainerProps): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
type Tab = {
|
|
33
|
+
label: string;
|
|
34
|
+
contentLabel?: React.ReactNode;
|
|
35
|
+
content: React.ReactNode;
|
|
36
|
+
modules?: ModuleWithPermissions[];
|
|
37
|
+
action?: Action;
|
|
38
|
+
};
|
|
39
|
+
type TabsContainerProps = {
|
|
40
|
+
tabs: Tab[];
|
|
41
|
+
defaultTab?: string;
|
|
42
|
+
tabsListClassName?: string;
|
|
43
|
+
tabsTriggerClassName?: string;
|
|
44
|
+
scrollAreaClassName?: string;
|
|
45
|
+
style?: "navigation";
|
|
46
|
+
additionalComponent?: React.ReactNode;
|
|
47
|
+
};
|
|
48
|
+
declare function TabsContainer({ tabs, defaultTab, tabsListClassName, tabsTriggerClassName, scrollAreaClassName, style, additionalComponent, }: TabsContainerProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
49
|
+
|
|
50
|
+
type AttributeElementProps = {
|
|
51
|
+
inline?: boolean;
|
|
52
|
+
title?: string | ReactElement<any>;
|
|
53
|
+
value?: string | ReactElement<any>;
|
|
54
|
+
className?: string;
|
|
55
|
+
};
|
|
56
|
+
declare function AttributeElement({ inline, title, value, className }: AttributeElementProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
type AllowedUsersDetailsProps = {
|
|
59
|
+
showTitle?: boolean;
|
|
60
|
+
content: ContentInterface;
|
|
61
|
+
};
|
|
62
|
+
declare function AllowedUsersDetails({ showTitle, content }: AllowedUsersDetailsProps): react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
type BlockNoteEditorProps = {
|
|
65
|
+
id: string;
|
|
66
|
+
type: string;
|
|
67
|
+
initialContent?: PartialBlock[];
|
|
68
|
+
onChange?: (content: any, isEmpty: boolean, hasUnresolvedDiff: boolean) => void;
|
|
69
|
+
size?: "sm" | "md";
|
|
70
|
+
className?: string;
|
|
71
|
+
markdownContent?: string;
|
|
72
|
+
diffContent?: PartialBlock[];
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
bordered?: boolean;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
declare const BlockNoteEditorContainer: React__default.NamedExoticComponent<BlockNoteEditorProps>;
|
|
78
|
+
|
|
79
|
+
declare function ErrorDetails({ title, message, code }: {
|
|
80
|
+
title?: string;
|
|
81
|
+
message: string;
|
|
82
|
+
code: number;
|
|
83
|
+
}): react_jsx_runtime.JSX.Element;
|
|
84
|
+
|
|
85
|
+
declare function errorToast(params: {
|
|
86
|
+
title?: string;
|
|
87
|
+
error: any;
|
|
88
|
+
}): void;
|
|
89
|
+
|
|
90
|
+
type CommonAssociationTriggerProps = {
|
|
91
|
+
sourceType: string;
|
|
92
|
+
destinationType: string;
|
|
93
|
+
hasDestination?: boolean;
|
|
94
|
+
onTrigger: () => void;
|
|
95
|
+
};
|
|
96
|
+
declare function CommonAssociationTrigger({ sourceType, destinationType, hasDestination, onTrigger, }: CommonAssociationTriggerProps): react_jsx_runtime.JSX.Element;
|
|
97
|
+
type CommonAssociationCommandDialogProps = {
|
|
98
|
+
show: boolean;
|
|
99
|
+
setShow: (show: boolean) => void;
|
|
100
|
+
data: DataListRetriever<any>;
|
|
101
|
+
source: string;
|
|
102
|
+
destination: string;
|
|
103
|
+
destinationName: string;
|
|
104
|
+
children: ReactNode;
|
|
105
|
+
};
|
|
106
|
+
declare function CommonAssociationCommandDialog({ show, setShow, data, source, destination, destinationName, children, }: CommonAssociationCommandDialogProps): react_jsx_runtime.JSX.Element;
|
|
107
|
+
declare const triggerAssociationToast: (params: {
|
|
108
|
+
t: any;
|
|
109
|
+
source: string;
|
|
110
|
+
destination: string;
|
|
111
|
+
source_name: string;
|
|
112
|
+
destination_name: string;
|
|
113
|
+
level?: string;
|
|
114
|
+
}) => void;
|
|
115
|
+
|
|
116
|
+
type CommonDeleterProps = {
|
|
117
|
+
type: string;
|
|
118
|
+
deleteFunction: () => Promise<void>;
|
|
119
|
+
redirectTo?: string;
|
|
120
|
+
forceShow?: boolean;
|
|
121
|
+
};
|
|
122
|
+
declare function CommonDeleter({ deleteFunction, redirectTo, type, forceShow }: CommonDeleterProps): react_jsx_runtime.JSX.Element;
|
|
123
|
+
|
|
124
|
+
type CommonEditorButtonsProps = {
|
|
125
|
+
isEdit: boolean;
|
|
126
|
+
form: any;
|
|
127
|
+
disabled?: boolean;
|
|
128
|
+
setOpen: (open: boolean) => void;
|
|
129
|
+
};
|
|
130
|
+
declare function CommonEditorButtons({ isEdit, form, disabled, setOpen }: CommonEditorButtonsProps): react_jsx_runtime.JSX.Element;
|
|
131
|
+
|
|
132
|
+
type CommonEditorHeaderProps = {
|
|
133
|
+
type: string;
|
|
134
|
+
name?: string;
|
|
135
|
+
};
|
|
136
|
+
declare function CommonEditorHeader({ type, name }: CommonEditorHeaderProps): react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
type CommonEditorTriggerProps = {
|
|
139
|
+
isEdit: boolean;
|
|
140
|
+
edit?: string;
|
|
141
|
+
create?: string;
|
|
142
|
+
};
|
|
143
|
+
declare function CommonEditorTrigger({ isEdit, edit, create }: CommonEditorTriggerProps): react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
type DatePickerPopoverProps = {
|
|
146
|
+
children: ReactNode;
|
|
147
|
+
value?: Date;
|
|
148
|
+
onSelect: (date?: Date) => void;
|
|
149
|
+
minDate?: Date;
|
|
150
|
+
align?: "start" | "center" | "end";
|
|
151
|
+
className?: string;
|
|
152
|
+
};
|
|
153
|
+
declare const DatePickerPopover: ({ children, value, onSelect, minDate, align, className, }: DatePickerPopoverProps) => react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
type DateRangeSelectorProps = {
|
|
156
|
+
onDateChange: (date?: DateRange) => void;
|
|
157
|
+
avoidSettingDates?: boolean;
|
|
158
|
+
showPreviousMonth?: boolean;
|
|
159
|
+
};
|
|
160
|
+
declare function DateRangeSelector({ onDateChange, avoidSettingDates, showPreviousMonth }: DateRangeSelectorProps): react_jsx_runtime.JSX.Element;
|
|
161
|
+
|
|
162
|
+
type DirectionOptions = "rtl" | "ltr" | undefined;
|
|
163
|
+
type FileUploaderContextType = {
|
|
164
|
+
dropzoneState: DropzoneState;
|
|
165
|
+
isLOF: boolean;
|
|
166
|
+
isFileTooBig: boolean;
|
|
167
|
+
removeFileFromSet: (index: number) => void;
|
|
168
|
+
activeIndex: number;
|
|
169
|
+
setActiveIndex: Dispatch<SetStateAction<number>>;
|
|
170
|
+
orientation: "horizontal" | "vertical";
|
|
171
|
+
direction: DirectionOptions;
|
|
172
|
+
};
|
|
173
|
+
declare const useFileUpload: () => FileUploaderContextType;
|
|
174
|
+
type FileUploaderProps = {
|
|
175
|
+
value: File[] | null;
|
|
176
|
+
reSelect?: boolean;
|
|
177
|
+
onValueChange: (value: File[] | null) => void;
|
|
178
|
+
dropzoneOptions: DropzoneOptions;
|
|
179
|
+
orientation?: "horizontal" | "vertical";
|
|
180
|
+
};
|
|
181
|
+
declare const FileUploader: React$1.ForwardRefExoticComponent<FileUploaderProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
182
|
+
declare const FileUploaderContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
183
|
+
declare const FileUploaderItem: React$1.ForwardRefExoticComponent<{
|
|
184
|
+
index: number;
|
|
185
|
+
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
186
|
+
declare const FileInput: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
187
|
+
|
|
188
|
+
type FormCheckboxProps = {
|
|
189
|
+
form: any;
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
labelBefore?: boolean;
|
|
193
|
+
description?: string;
|
|
194
|
+
isRequired?: boolean;
|
|
195
|
+
};
|
|
196
|
+
declare function FormCheckbox({ form, id, name, labelBefore, description, isRequired }: FormCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
|
|
198
|
+
declare function FormContainerGeneric({ form, id, name, children, isRequired, }: {
|
|
199
|
+
form: any;
|
|
200
|
+
id: string;
|
|
201
|
+
name?: string;
|
|
202
|
+
children: ReactElement<any>;
|
|
203
|
+
isRequired?: boolean;
|
|
204
|
+
}): react_jsx_runtime.JSX.Element;
|
|
205
|
+
|
|
206
|
+
declare function FormDate({ form, id, name, minDate, onChange, isRequired, }: {
|
|
207
|
+
form: any;
|
|
208
|
+
id: string;
|
|
209
|
+
name?: string;
|
|
210
|
+
placeholder?: string;
|
|
211
|
+
minDate?: Date;
|
|
212
|
+
onChange?: (date?: Date) => Promise<void>;
|
|
213
|
+
isRequired?: boolean;
|
|
214
|
+
}): react_jsx_runtime.JSX.Element;
|
|
215
|
+
|
|
216
|
+
declare function FormDateTime({ form, id, name, minDate, onChange, allowEmpty, }: {
|
|
217
|
+
form: any;
|
|
218
|
+
id: string;
|
|
219
|
+
name?: string;
|
|
220
|
+
placeholder?: string;
|
|
221
|
+
minDate?: Date;
|
|
222
|
+
onChange?: (date?: Date) => Promise<void>;
|
|
223
|
+
allowEmpty?: boolean;
|
|
224
|
+
}): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
226
|
+
declare function FormInput({ form, id, name, placeholder, type, onBlur, disabled, onKeyDown, autoFocus, onChange, testId, isRequired, }: {
|
|
227
|
+
form: any;
|
|
228
|
+
id: string;
|
|
229
|
+
name?: string;
|
|
230
|
+
placeholder?: string;
|
|
231
|
+
type?: "text" | "number" | "currency" | "password" | "link";
|
|
232
|
+
onBlur?: () => Promise<void>;
|
|
233
|
+
disabled?: boolean;
|
|
234
|
+
onKeyDown?: (event: React__default.KeyboardEvent) => void;
|
|
235
|
+
autoFocus?: boolean;
|
|
236
|
+
onChange?: (value: string | number) => Promise<void>;
|
|
237
|
+
testId?: string;
|
|
238
|
+
isRequired?: boolean;
|
|
239
|
+
}): react_jsx_runtime.JSX.Element;
|
|
240
|
+
|
|
241
|
+
declare function FormPassword({ form, id, name, placeholder, onBlur, disabled, testId, isRequired, }: {
|
|
242
|
+
form: any;
|
|
243
|
+
id: string;
|
|
244
|
+
name?: string;
|
|
245
|
+
placeholder?: string;
|
|
246
|
+
onBlur?: () => Promise<void>;
|
|
247
|
+
disabled?: boolean;
|
|
248
|
+
testId?: string;
|
|
249
|
+
isRequired?: boolean;
|
|
250
|
+
}): react_jsx_runtime.JSX.Element;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* FormPlaceAutocomplete component integrates Google Places API (New)
|
|
254
|
+
* to provide address suggestions as the user types.
|
|
255
|
+
*
|
|
256
|
+
* Prerequisites:
|
|
257
|
+
* 1. Set NEXT_PUBLIC_GOOGLE_MAPS_API_KEY environment variable
|
|
258
|
+
* 2. Enable Places API (New) in Google Cloud Console
|
|
259
|
+
* 3. Configure API key restrictions as needed
|
|
260
|
+
*
|
|
261
|
+
* Note: This uses the new Places API via REST calls, not the legacy JavaScript API
|
|
262
|
+
*/
|
|
263
|
+
interface PlaceSuggestion {
|
|
264
|
+
place_id: string;
|
|
265
|
+
description: string;
|
|
266
|
+
structured_formatting: {
|
|
267
|
+
main_text: string;
|
|
268
|
+
secondary_text: string;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
interface PlaceAutocompleteProps {
|
|
272
|
+
form: any;
|
|
273
|
+
id: string;
|
|
274
|
+
name?: string;
|
|
275
|
+
placeholder?: string;
|
|
276
|
+
disabled?: boolean;
|
|
277
|
+
testId?: string;
|
|
278
|
+
isRequired?: boolean;
|
|
279
|
+
onPlaceSelect?: (place: PlaceSuggestion) => void;
|
|
280
|
+
className?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Optional array of place types to include in search results.
|
|
283
|
+
* When not specified, defaults to address types: ["street_address", "premise", "subpremise"]
|
|
284
|
+
* For cities, use: ["locality", "administrative_area_level_3"]
|
|
285
|
+
* For regions, use: ["administrative_area_level_1", "administrative_area_level_2"]
|
|
286
|
+
*/
|
|
287
|
+
includeTypes?: string[];
|
|
288
|
+
}
|
|
289
|
+
declare function FormPlaceAutocomplete({ form, id, name, placeholder, disabled, testId, isRequired, onPlaceSelect, className, includeTypes, }: PlaceAutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
290
|
+
|
|
291
|
+
declare function FormSelect({ form, id, name, placeholder, disabled, values, onChange, useRows, testId, }: {
|
|
292
|
+
form: any;
|
|
293
|
+
id: string;
|
|
294
|
+
name?: string;
|
|
295
|
+
placeholder?: string;
|
|
296
|
+
disabled?: boolean;
|
|
297
|
+
values: {
|
|
298
|
+
id: string;
|
|
299
|
+
text: string;
|
|
300
|
+
}[];
|
|
301
|
+
onChange?: (value: string) => void;
|
|
302
|
+
useRows?: boolean;
|
|
303
|
+
testId?: string;
|
|
304
|
+
}): react_jsx_runtime.JSX.Element;
|
|
305
|
+
|
|
306
|
+
declare function FormSlider({ form, id, name, disabled, showPercentage, }: {
|
|
307
|
+
form: any;
|
|
308
|
+
id: string;
|
|
309
|
+
name?: string;
|
|
310
|
+
placeholder?: string;
|
|
311
|
+
disabled?: boolean;
|
|
312
|
+
showPercentage?: boolean;
|
|
313
|
+
}): react_jsx_runtime.JSX.Element;
|
|
314
|
+
|
|
315
|
+
declare function FormSwitch({ form, id, name, disabled }: {
|
|
316
|
+
form: any;
|
|
317
|
+
id: string;
|
|
318
|
+
name?: string;
|
|
319
|
+
disabled?: boolean;
|
|
320
|
+
}): react_jsx_runtime.JSX.Element;
|
|
321
|
+
|
|
322
|
+
declare function FormTextarea({ form, id, name, className, placeholder, testId, }: {
|
|
323
|
+
form: any;
|
|
324
|
+
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
placeholder?: string;
|
|
327
|
+
className?: string;
|
|
328
|
+
testId?: string;
|
|
329
|
+
}): react_jsx_runtime.JSX.Element;
|
|
330
|
+
|
|
331
|
+
interface PasswordInputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
332
|
+
}
|
|
333
|
+
declare const PasswordInput: React$1.ForwardRefExoticComponent<PasswordInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
334
|
+
|
|
335
|
+
type BreadcrumbProps = {
|
|
336
|
+
items: BreadcrumbItemData[];
|
|
337
|
+
};
|
|
338
|
+
declare function Breadcrumb({ items }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
339
|
+
|
|
340
|
+
type TitleProps = {
|
|
341
|
+
type?: string | string[];
|
|
342
|
+
element?: string;
|
|
343
|
+
functions?: ReactNode;
|
|
344
|
+
className?: string;
|
|
345
|
+
};
|
|
346
|
+
declare function ContentTitle({ type, element, functions, className }: TitleProps): react_jsx_runtime.JSX.Element | null;
|
|
347
|
+
|
|
348
|
+
type HeaderProps = {
|
|
349
|
+
children?: React.ReactNode;
|
|
350
|
+
};
|
|
351
|
+
declare function Header({ children }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare function ModeToggleSwitch(): react_jsx_runtime.JSX.Element;
|
|
354
|
+
|
|
355
|
+
type PageSectionProps = {
|
|
356
|
+
children: ReactNode;
|
|
357
|
+
title?: string;
|
|
358
|
+
options?: ReactNode[];
|
|
359
|
+
open?: boolean;
|
|
360
|
+
small?: boolean;
|
|
361
|
+
onToggle?: (isOpen: boolean) => void;
|
|
362
|
+
};
|
|
363
|
+
declare function PageSection({ children, title, options, open, small, onToggle }: PageSectionProps): react_jsx_runtime.JSX.Element;
|
|
364
|
+
|
|
365
|
+
declare function RecentPagesNavigator(): react_jsx_runtime.JSX.Element | null;
|
|
366
|
+
|
|
367
|
+
type PageContainerItems = {
|
|
368
|
+
title: string;
|
|
369
|
+
content: ReactNode;
|
|
370
|
+
};
|
|
371
|
+
type PageContainerContentDetailsProps = {
|
|
372
|
+
items: PageContainerItems[];
|
|
373
|
+
section?: string;
|
|
374
|
+
module: ModuleWithPermissions;
|
|
375
|
+
id: string;
|
|
376
|
+
};
|
|
377
|
+
declare function PageContainerContentDetails({ items, section, module, id }: PageContainerContentDetailsProps): react_jsx_runtime.JSX.Element;
|
|
378
|
+
|
|
379
|
+
type PageContentContainerProps = {
|
|
380
|
+
details: ReactNode;
|
|
381
|
+
footer?: ReactNode;
|
|
382
|
+
content?: ReactNode;
|
|
383
|
+
};
|
|
384
|
+
declare function PageContentContainer({ details, footer, content }: PageContentContainerProps): react_jsx_runtime.JSX.Element;
|
|
385
|
+
|
|
386
|
+
declare const cellComponent: (params: {
|
|
387
|
+
id: string;
|
|
388
|
+
name: string;
|
|
389
|
+
title: string;
|
|
390
|
+
component: React__default.ReactNode;
|
|
391
|
+
}) => ColumnDef<any>;
|
|
392
|
+
|
|
393
|
+
declare const cellDate: (params: {
|
|
394
|
+
name: string;
|
|
395
|
+
title: string;
|
|
396
|
+
}) => ColumnDef<any>;
|
|
397
|
+
|
|
398
|
+
declare const cellId: (params: {
|
|
399
|
+
name: string;
|
|
400
|
+
checkedIds?: string[];
|
|
401
|
+
toggleId?: (id: string) => void;
|
|
402
|
+
}) => ColumnDef<any>;
|
|
403
|
+
|
|
404
|
+
declare const cellLink: <T>(params: {
|
|
405
|
+
id: string;
|
|
406
|
+
name: string;
|
|
407
|
+
title: string;
|
|
408
|
+
generateUrl: (id: string) => string;
|
|
409
|
+
}) => ColumnDef<T>;
|
|
410
|
+
|
|
411
|
+
declare const cellUrl: (params: {
|
|
412
|
+
name: string;
|
|
413
|
+
title: string;
|
|
414
|
+
}) => ColumnDef<any>;
|
|
415
|
+
|
|
416
|
+
type GenerateTableStructureParams = {
|
|
417
|
+
data: any[];
|
|
418
|
+
toggleValueToFormIdsId: (id: string, name: string) => void;
|
|
419
|
+
isSelected: (id: string) => boolean;
|
|
420
|
+
};
|
|
421
|
+
type ContentListTableProps = {
|
|
422
|
+
title?: string;
|
|
423
|
+
data: DataListRetriever<any>;
|
|
424
|
+
tableGenerator?: never;
|
|
425
|
+
tableGeneratorType: ModuleWithPermissions;
|
|
426
|
+
fields: any[];
|
|
427
|
+
checkedIds?: string[];
|
|
428
|
+
toggleId?: (id: string) => void;
|
|
429
|
+
functions?: ReactNode;
|
|
430
|
+
filters?: ReactNode;
|
|
431
|
+
allowSearch?: boolean;
|
|
432
|
+
context?: Record<string, any>;
|
|
433
|
+
};
|
|
434
|
+
declare const ContentListTable: React$1.NamedExoticComponent<ContentListTableProps>;
|
|
435
|
+
|
|
436
|
+
type ContentTableSearchProps = {
|
|
437
|
+
data: DataListRetriever<any>;
|
|
438
|
+
};
|
|
439
|
+
declare function ContentTableSearch({ data }: ContentTableSearchProps): react_jsx_runtime.JSX.Element;
|
|
440
|
+
|
|
441
|
+
export { AllowedUsersDetails, AttributeElement, BlockNoteEditorContainer, Breadcrumb, CommonAssociationCommandDialog, CommonAssociationTrigger, CommonDeleter, CommonEditorButtons, CommonEditorHeader, CommonEditorTrigger, ContentListTable, ContentTableSearch, ContentTitle, DatePickerPopover, DateRangeSelector, ErrorDetails, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FormCheckbox, FormContainerGeneric, FormDate, FormDateTime, FormInput, FormPassword, FormPlaceAutocomplete, FormSelect, FormSlider, FormSwitch, FormTextarea, type GenerateTableStructureParams, Header, ModeToggleSwitch, PageContainer, PageContainerContentDetails, type PageContainerItems, PageContentContainer, PageSection, PasswordInput, type PasswordInputProps, ReactMarkdownContainer, RecentPagesNavigator, type Tab, TabsContainer, cellComponent, cellDate, cellId, cellLink, cellUrl, errorToast, triggerAssociationToast, useFileUpload };
|