@buildocsdev/sdk 1.1.54 → 1.1.56
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/chunk-A6VFMC4D.js +5 -0
- package/dist/chunk-EPMMOUGS.js +2 -0
- package/dist/{chunk-2YPJR6YZ.js → chunk-WNDOHYWO.js} +2 -2
- package/dist/chunk-WPUZPO7K.js +3 -0
- package/dist/datatable-F6MDB67P.js +1 -0
- package/dist/form.d.ts +11 -10
- package/dist/form.js +1 -1
- package/dist/formeditor-EEKQMXE5.js +1 -0
- package/dist/formeditor.d.ts +8 -8
- package/dist/formeditor.js +1 -1
- package/dist/index.d.ts +1027 -1027
- package/dist/index.js +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tabulator-VPAARBJR.js +1 -0
- package/package.json +3 -4
- package/dist/chunk-BGDGPSP6.js +0 -2
- package/dist/chunk-DDJ5DSC5.js +0 -5
- package/dist/chunk-XGV2DLQ2.js +0 -4
- package/dist/datatable-XLBZ44SS.js +0 -1
- package/dist/formeditor-N5NOVKT4.js +0 -1
- package/dist/tabulator-VDKE2CC5.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,1086 +4,1086 @@ import { FieldValues } from 'react-hook-form';
|
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { CancelTokenSource } from 'axios';
|
|
6
6
|
|
|
7
|
-
type TAutoSave = {
|
|
8
|
-
pluginCode: string;
|
|
9
|
-
formCode: string;
|
|
10
|
-
guid: string;
|
|
11
|
-
projectGuid?: string;
|
|
12
|
-
pGuid?: string;
|
|
13
|
-
fieldName: string;
|
|
14
|
-
value: string;
|
|
15
|
-
tabId?: string;
|
|
16
|
-
widgetEvent: string;
|
|
17
|
-
widgetValue: string;
|
|
18
|
-
formData: Record<string, any> | {};
|
|
19
|
-
};
|
|
20
|
-
type TFormEvent = {
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
widgetName: string;
|
|
23
|
-
widgetValue?: string | [] | null;
|
|
24
|
-
widgetEvent?: string | null;
|
|
25
|
-
widgetContext?: string | null;
|
|
26
|
-
feCommand?: {} | null;
|
|
27
|
-
skipFormDataItem?: boolean;
|
|
28
|
-
autoSave?: TAutoSave;
|
|
29
|
-
};
|
|
30
|
-
type TWidgetContext = {
|
|
31
|
-
referer: string;
|
|
32
|
-
parentWidgetId: string | null;
|
|
33
|
-
};
|
|
34
|
-
type TRowItemResult = {
|
|
35
|
-
item: any;
|
|
36
|
-
component: any;
|
|
37
|
-
index: string;
|
|
38
|
-
path: [];
|
|
39
|
-
hasChildren: boolean;
|
|
40
|
-
};
|
|
41
|
-
type TSegmentItemResult = {
|
|
42
|
-
item: any;
|
|
43
|
-
index: number;
|
|
44
|
-
};
|
|
45
|
-
type WidgetItemResult = {
|
|
46
|
-
item: any;
|
|
47
|
-
index: number;
|
|
48
|
-
path: [];
|
|
49
|
-
count: number;
|
|
50
|
-
};
|
|
51
|
-
type THotReloadContext = {
|
|
52
|
-
maxAttempts: number;
|
|
53
|
-
pluginCode: string;
|
|
54
|
-
formCode: string;
|
|
55
|
-
guid?: string | null;
|
|
56
|
-
};
|
|
57
|
-
type TBuildPlugin = {
|
|
58
|
-
guid?: string | undefined;
|
|
59
|
-
maxattempts?: string | undefined;
|
|
60
|
-
plugincode: string | undefined;
|
|
61
|
-
referer?: string | undefined;
|
|
62
|
-
url?: string | undefined;
|
|
63
|
-
open?: boolean;
|
|
64
|
-
modalCloseCallBack?: Function;
|
|
65
|
-
redraw?: boolean | null;
|
|
66
|
-
};
|
|
67
|
-
type TCommandCollection = {
|
|
68
|
-
AfterRecordSave?: {
|
|
69
|
-
guid: string;
|
|
70
|
-
};
|
|
71
|
-
BuildPlugin?: TBuildPlugin;
|
|
72
|
-
CloseDisplayComponent?: {
|
|
73
|
-
componentName: string;
|
|
74
|
-
options?: object;
|
|
75
|
-
};
|
|
76
|
-
DisplayButtonLoader?: boolean;
|
|
77
|
-
DisplayComponent?: {
|
|
78
|
-
componentName: string;
|
|
79
|
-
options?: object;
|
|
80
|
-
};
|
|
81
|
-
DisplayErrorPage?: null;
|
|
82
|
-
ReplaceContextRecordGuid?: {
|
|
83
|
-
guid: string;
|
|
84
|
-
};
|
|
85
|
-
Cancel?: null;
|
|
86
|
-
CloseForm?: null;
|
|
87
|
-
FetchUserMenu?: {
|
|
88
|
-
projectGuid?: string | null;
|
|
89
|
-
};
|
|
90
|
-
FormValidationData?: Record<string, string>;
|
|
91
|
-
Messages?: [];
|
|
92
|
-
MoveToTab?: {
|
|
93
|
-
widgetName: string;
|
|
94
|
-
};
|
|
95
|
-
MoveToPreviousTab?: null;
|
|
96
|
-
OpenModal?: TModalWindow;
|
|
97
|
-
PreviewDocument?: TPreviewDocument;
|
|
98
|
-
Redirect?: {
|
|
99
|
-
context?: {
|
|
100
|
-
referer: string;
|
|
101
|
-
widgetName: string;
|
|
102
|
-
parentWidgetId: string;
|
|
103
|
-
} | null;
|
|
104
|
-
url: string;
|
|
105
|
-
};
|
|
106
|
-
RedrawScreen?: boolean;
|
|
107
|
-
RedrawFolders?: TFolderId;
|
|
108
|
-
SetActivePageData?: {
|
|
109
|
-
[key: string]: {
|
|
110
|
-
pageIndex: number;
|
|
111
|
-
pageSize: number;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
UpdateFieldAllowedValues?: object;
|
|
115
|
-
UpdateFormData?: object;
|
|
116
|
-
UpdateFormDataItem?: {
|
|
117
|
-
name: string;
|
|
118
|
-
value: object;
|
|
119
|
-
};
|
|
120
|
-
UpdateWidgetsState?: TWidgetsState;
|
|
121
|
-
HotReloadEnabled?: THotReloadContext;
|
|
122
|
-
Login?: FieldValues;
|
|
123
|
-
Logout?: null;
|
|
124
|
-
};
|
|
125
|
-
type TFolderId = {
|
|
126
|
-
folderId: string | null;
|
|
127
|
-
isRoot?: string;
|
|
128
|
-
captions: [];
|
|
129
|
-
};
|
|
130
|
-
type TMessage = {
|
|
131
|
-
code: string;
|
|
132
|
-
text: string;
|
|
133
|
-
};
|
|
134
|
-
type TDeleteRecordPrompt = {
|
|
135
|
-
delete: {
|
|
136
|
-
buttonAgree: string;
|
|
137
|
-
buttonDisagree: string;
|
|
138
|
-
dialogTitle: string;
|
|
139
|
-
dialogContent: string;
|
|
140
|
-
showDialog: boolean;
|
|
141
|
-
callBackFunc: any;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
type TParent = {
|
|
145
|
-
widgetName: string;
|
|
146
|
-
params: TOriginatorParams;
|
|
147
|
-
};
|
|
148
|
-
type TOriginator = {
|
|
149
|
-
params: TOriginatorParams;
|
|
150
|
-
};
|
|
151
|
-
type TOriginatorParams = {
|
|
152
|
-
pluginCode: string;
|
|
153
|
-
formCode: string;
|
|
154
|
-
guid?: string;
|
|
155
|
-
};
|
|
156
|
-
type TModalWindow = {
|
|
157
|
-
component?: React.ReactElement;
|
|
158
|
-
folderData?: TFolderData;
|
|
159
|
-
prefillData?: object;
|
|
160
|
-
id?: string | null;
|
|
161
|
-
parentId?: string | null;
|
|
162
|
-
pluginCode?: string;
|
|
163
|
-
formCode?: string;
|
|
164
|
-
guid?: string | null;
|
|
165
|
-
pGuid?: string | null | undefined;
|
|
166
|
-
onCloseModal?: Function | null;
|
|
167
|
-
originator?: TOriginator;
|
|
168
|
-
parent?: TParent;
|
|
169
|
-
isFormEditorMode?: boolean;
|
|
170
|
-
windowMode?: "fullWindow" | "halfWindow" | string | null;
|
|
171
|
-
};
|
|
172
|
-
type TMethodProvider = {
|
|
173
|
-
eventDispatcher: (args: TFormEvent) => Function;
|
|
174
|
-
findRowItem: (tabId: string, panelId: string, id: string) => TRowItemResult;
|
|
175
|
-
findSegmentItem: (tabId: string, panelId: string, rowId: string, segmentId: string) => TSegmentItemResult;
|
|
176
|
-
findWidgetItem: (widgetId: string) => WidgetItemResult;
|
|
177
|
-
getActiveTabIndex: (parentTabId: string, tabId: string) => number | null;
|
|
178
|
-
setActiveTabIndex: (parentTabId: string, tabId: string, panelIndex: number) => void;
|
|
179
|
-
setRedrawComponent: () => void;
|
|
180
|
-
execCommands: (command: TCommandCollection) => void;
|
|
181
|
-
};
|
|
182
|
-
type TPreviewDocument = {
|
|
183
|
-
context: {
|
|
184
|
-
pluginCode: string;
|
|
185
|
-
formCode: string;
|
|
186
|
-
guid?: string;
|
|
187
|
-
pGuid?: string;
|
|
188
|
-
} | null;
|
|
189
|
-
fileId: string;
|
|
190
|
-
data: string;
|
|
191
|
-
type: string;
|
|
192
|
-
fieldName: string;
|
|
193
|
-
};
|
|
194
|
-
type TWidgetsState = {
|
|
195
|
-
visibility: {
|
|
196
|
-
[key: string]: boolean;
|
|
197
|
-
};
|
|
198
|
-
readonly: {
|
|
199
|
-
[key: string]: boolean;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
type TFieldValues = Record<string, any>;
|
|
203
|
-
type TFolderData = {
|
|
204
|
-
id: string;
|
|
205
|
-
captions: string[];
|
|
206
|
-
label?: string;
|
|
207
|
-
addedFolderId?: string;
|
|
208
|
-
isRoot?: string;
|
|
209
|
-
};
|
|
210
|
-
type TRedrawFolders = {
|
|
211
|
-
folderId?: string;
|
|
212
|
-
};
|
|
213
|
-
type TContextType = {
|
|
214
|
-
activeWidgetId?: string;
|
|
215
|
-
command: TCommandCollection;
|
|
216
|
-
containerSetup?: any;
|
|
217
|
-
displayButtonLoader?: boolean;
|
|
218
|
-
doValidateForm: boolean;
|
|
219
|
-
enableEventHandlers: boolean;
|
|
220
|
-
fieldAllowedValues: any;
|
|
221
|
-
formData: Record<string, any>;
|
|
222
|
-
widgetRelatedData: string[];
|
|
223
|
-
widgetsState: TWidgetsState;
|
|
224
|
-
formDimension: {
|
|
225
|
-
width: number;
|
|
226
|
-
height: number;
|
|
227
|
-
};
|
|
228
|
-
formValidationData?: object;
|
|
229
|
-
isModal: boolean;
|
|
230
|
-
hasParentForm: boolean;
|
|
231
|
-
formLayout: string | null;
|
|
232
|
-
requiredFields?: Record<string, string>;
|
|
233
|
-
params: {
|
|
234
|
-
id: string | null;
|
|
235
|
-
parentId: string | null;
|
|
236
|
-
guid: string;
|
|
237
|
-
pGuid: string;
|
|
238
|
-
formCode: string;
|
|
239
|
-
pluginCode: string;
|
|
240
|
-
modal: boolean;
|
|
241
|
-
modalCloseFn: Function;
|
|
242
|
-
modalCloseAndOpenFn?: Function;
|
|
243
|
-
originator?: TOriginator;
|
|
244
|
-
parent?: TParent;
|
|
245
|
-
hasParentForm: boolean;
|
|
246
|
-
folderData: TFolderData;
|
|
247
|
-
prefillData?: object;
|
|
248
|
-
};
|
|
249
|
-
redrawComponent: boolean;
|
|
250
|
-
redrawFoldersComponent: boolean;
|
|
251
|
-
tabIndex?: number;
|
|
252
|
-
};
|
|
253
|
-
type TDataTableMeta = {
|
|
254
|
-
rowsPerPage: number;
|
|
255
|
-
pageIndex: number;
|
|
256
|
-
serverPaginationEnabled: boolean;
|
|
257
|
-
nextToken?: string;
|
|
258
|
-
paginationDirection?: "first" | "next" | "previous" | "last";
|
|
259
|
-
previousToken?: string;
|
|
260
|
-
rowCount: number;
|
|
261
|
-
qId?: string;
|
|
262
|
-
lastRequestLimit?: number;
|
|
7
|
+
type TAutoSave = {
|
|
8
|
+
pluginCode: string;
|
|
9
|
+
formCode: string;
|
|
10
|
+
guid: string;
|
|
11
|
+
projectGuid?: string;
|
|
12
|
+
pGuid?: string;
|
|
13
|
+
fieldName: string;
|
|
14
|
+
value: string;
|
|
15
|
+
tabId?: string;
|
|
16
|
+
widgetEvent: string;
|
|
17
|
+
widgetValue: string;
|
|
18
|
+
formData: Record<string, any> | {};
|
|
19
|
+
};
|
|
20
|
+
type TFormEvent = {
|
|
21
|
+
tabIndex?: number;
|
|
22
|
+
widgetName: string;
|
|
23
|
+
widgetValue?: string | [] | null;
|
|
24
|
+
widgetEvent?: string | null;
|
|
25
|
+
widgetContext?: string | null;
|
|
26
|
+
feCommand?: {} | null;
|
|
27
|
+
skipFormDataItem?: boolean;
|
|
28
|
+
autoSave?: TAutoSave;
|
|
29
|
+
};
|
|
30
|
+
type TWidgetContext = {
|
|
31
|
+
referer: string;
|
|
32
|
+
parentWidgetId: string | null;
|
|
33
|
+
};
|
|
34
|
+
type TRowItemResult = {
|
|
35
|
+
item: any;
|
|
36
|
+
component: any;
|
|
37
|
+
index: string;
|
|
38
|
+
path: [];
|
|
39
|
+
hasChildren: boolean;
|
|
40
|
+
};
|
|
41
|
+
type TSegmentItemResult = {
|
|
42
|
+
item: any;
|
|
43
|
+
index: number;
|
|
44
|
+
};
|
|
45
|
+
type WidgetItemResult = {
|
|
46
|
+
item: any;
|
|
47
|
+
index: number;
|
|
48
|
+
path: [];
|
|
49
|
+
count: number;
|
|
50
|
+
};
|
|
51
|
+
type THotReloadContext = {
|
|
52
|
+
maxAttempts: number;
|
|
53
|
+
pluginCode: string;
|
|
54
|
+
formCode: string;
|
|
55
|
+
guid?: string | null;
|
|
56
|
+
};
|
|
57
|
+
type TBuildPlugin = {
|
|
58
|
+
guid?: string | undefined;
|
|
59
|
+
maxattempts?: string | undefined;
|
|
60
|
+
plugincode: string | undefined;
|
|
61
|
+
referer?: string | undefined;
|
|
62
|
+
url?: string | undefined;
|
|
63
|
+
open?: boolean;
|
|
64
|
+
modalCloseCallBack?: Function;
|
|
65
|
+
redraw?: boolean | null;
|
|
66
|
+
};
|
|
67
|
+
type TCommandCollection = {
|
|
68
|
+
AfterRecordSave?: {
|
|
69
|
+
guid: string;
|
|
70
|
+
};
|
|
71
|
+
BuildPlugin?: TBuildPlugin;
|
|
72
|
+
CloseDisplayComponent?: {
|
|
73
|
+
componentName: string;
|
|
74
|
+
options?: object;
|
|
75
|
+
};
|
|
76
|
+
DisplayButtonLoader?: boolean;
|
|
77
|
+
DisplayComponent?: {
|
|
78
|
+
componentName: string;
|
|
79
|
+
options?: object;
|
|
80
|
+
};
|
|
81
|
+
DisplayErrorPage?: null;
|
|
82
|
+
ReplaceContextRecordGuid?: {
|
|
83
|
+
guid: string;
|
|
84
|
+
};
|
|
85
|
+
Cancel?: null;
|
|
86
|
+
CloseForm?: null;
|
|
87
|
+
FetchUserMenu?: {
|
|
88
|
+
projectGuid?: string | null;
|
|
89
|
+
};
|
|
90
|
+
FormValidationData?: Record<string, string>;
|
|
91
|
+
Messages?: [];
|
|
92
|
+
MoveToTab?: {
|
|
93
|
+
widgetName: string;
|
|
94
|
+
};
|
|
95
|
+
MoveToPreviousTab?: null;
|
|
96
|
+
OpenModal?: TModalWindow;
|
|
97
|
+
PreviewDocument?: TPreviewDocument;
|
|
98
|
+
Redirect?: {
|
|
99
|
+
context?: {
|
|
100
|
+
referer: string;
|
|
101
|
+
widgetName: string;
|
|
102
|
+
parentWidgetId: string;
|
|
103
|
+
} | null;
|
|
104
|
+
url: string;
|
|
105
|
+
};
|
|
106
|
+
RedrawScreen?: boolean;
|
|
107
|
+
RedrawFolders?: TFolderId;
|
|
108
|
+
SetActivePageData?: {
|
|
109
|
+
[key: string]: {
|
|
110
|
+
pageIndex: number;
|
|
111
|
+
pageSize: number;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
UpdateFieldAllowedValues?: object;
|
|
115
|
+
UpdateFormData?: object;
|
|
116
|
+
UpdateFormDataItem?: {
|
|
117
|
+
name: string;
|
|
118
|
+
value: object;
|
|
119
|
+
};
|
|
120
|
+
UpdateWidgetsState?: TWidgetsState;
|
|
121
|
+
HotReloadEnabled?: THotReloadContext;
|
|
122
|
+
Login?: FieldValues;
|
|
123
|
+
Logout?: null;
|
|
124
|
+
};
|
|
125
|
+
type TFolderId = {
|
|
126
|
+
folderId: string | null;
|
|
127
|
+
isRoot?: string;
|
|
128
|
+
captions: [];
|
|
129
|
+
};
|
|
130
|
+
type TMessage = {
|
|
131
|
+
code: string;
|
|
132
|
+
text: string;
|
|
133
|
+
};
|
|
134
|
+
type TDeleteRecordPrompt = {
|
|
135
|
+
delete: {
|
|
136
|
+
buttonAgree: string;
|
|
137
|
+
buttonDisagree: string;
|
|
138
|
+
dialogTitle: string;
|
|
139
|
+
dialogContent: string;
|
|
140
|
+
showDialog: boolean;
|
|
141
|
+
callBackFunc: any;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
type TParent = {
|
|
145
|
+
widgetName: string;
|
|
146
|
+
params: TOriginatorParams;
|
|
147
|
+
};
|
|
148
|
+
type TOriginator = {
|
|
149
|
+
params: TOriginatorParams;
|
|
150
|
+
};
|
|
151
|
+
type TOriginatorParams = {
|
|
152
|
+
pluginCode: string;
|
|
153
|
+
formCode: string;
|
|
154
|
+
guid?: string;
|
|
155
|
+
};
|
|
156
|
+
type TModalWindow = {
|
|
157
|
+
component?: React.ReactElement;
|
|
158
|
+
folderData?: TFolderData;
|
|
159
|
+
prefillData?: object;
|
|
160
|
+
id?: string | null;
|
|
161
|
+
parentId?: string | null;
|
|
162
|
+
pluginCode?: string;
|
|
163
|
+
formCode?: string;
|
|
164
|
+
guid?: string | null;
|
|
165
|
+
pGuid?: string | null | undefined;
|
|
166
|
+
onCloseModal?: Function | null;
|
|
167
|
+
originator?: TOriginator;
|
|
168
|
+
parent?: TParent;
|
|
169
|
+
isFormEditorMode?: boolean;
|
|
170
|
+
windowMode?: "fullWindow" | "halfWindow" | string | null;
|
|
171
|
+
};
|
|
172
|
+
type TMethodProvider = {
|
|
173
|
+
eventDispatcher: (args: TFormEvent) => Function;
|
|
174
|
+
findRowItem: (tabId: string, panelId: string, id: string) => TRowItemResult;
|
|
175
|
+
findSegmentItem: (tabId: string, panelId: string, rowId: string, segmentId: string) => TSegmentItemResult;
|
|
176
|
+
findWidgetItem: (widgetId: string) => WidgetItemResult;
|
|
177
|
+
getActiveTabIndex: (parentTabId: string, tabId: string) => number | null;
|
|
178
|
+
setActiveTabIndex: (parentTabId: string, tabId: string, panelIndex: number) => void;
|
|
179
|
+
setRedrawComponent: () => void;
|
|
180
|
+
execCommands: (command: TCommandCollection) => void;
|
|
181
|
+
};
|
|
182
|
+
type TPreviewDocument = {
|
|
183
|
+
context: {
|
|
184
|
+
pluginCode: string;
|
|
185
|
+
formCode: string;
|
|
186
|
+
guid?: string;
|
|
187
|
+
pGuid?: string;
|
|
188
|
+
} | null;
|
|
189
|
+
fileId: string;
|
|
190
|
+
data: string;
|
|
191
|
+
type: string;
|
|
192
|
+
fieldName: string;
|
|
193
|
+
};
|
|
194
|
+
type TWidgetsState = {
|
|
195
|
+
visibility: {
|
|
196
|
+
[key: string]: boolean;
|
|
197
|
+
};
|
|
198
|
+
readonly: {
|
|
199
|
+
[key: string]: boolean;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
type TFieldValues = Record<string, any>;
|
|
203
|
+
type TFolderData = {
|
|
204
|
+
id: string;
|
|
205
|
+
captions: string[];
|
|
206
|
+
label?: string;
|
|
207
|
+
addedFolderId?: string;
|
|
208
|
+
isRoot?: string;
|
|
209
|
+
};
|
|
210
|
+
type TRedrawFolders = {
|
|
211
|
+
folderId?: string;
|
|
212
|
+
};
|
|
213
|
+
type TContextType = {
|
|
214
|
+
activeWidgetId?: string;
|
|
215
|
+
command: TCommandCollection;
|
|
216
|
+
containerSetup?: any;
|
|
217
|
+
displayButtonLoader?: boolean;
|
|
218
|
+
doValidateForm: boolean;
|
|
219
|
+
enableEventHandlers: boolean;
|
|
220
|
+
fieldAllowedValues: any;
|
|
221
|
+
formData: Record<string, any>;
|
|
222
|
+
widgetRelatedData: string[];
|
|
223
|
+
widgetsState: TWidgetsState;
|
|
224
|
+
formDimension: {
|
|
225
|
+
width: number;
|
|
226
|
+
height: number;
|
|
227
|
+
};
|
|
228
|
+
formValidationData?: object;
|
|
229
|
+
isModal: boolean;
|
|
230
|
+
hasParentForm: boolean;
|
|
231
|
+
formLayout: string | null;
|
|
232
|
+
requiredFields?: Record<string, string>;
|
|
233
|
+
params: {
|
|
234
|
+
id: string | null;
|
|
235
|
+
parentId: string | null;
|
|
236
|
+
guid: string;
|
|
237
|
+
pGuid: string;
|
|
238
|
+
formCode: string;
|
|
239
|
+
pluginCode: string;
|
|
240
|
+
modal: boolean;
|
|
241
|
+
modalCloseFn: Function;
|
|
242
|
+
modalCloseAndOpenFn?: Function;
|
|
243
|
+
originator?: TOriginator;
|
|
244
|
+
parent?: TParent;
|
|
245
|
+
hasParentForm: boolean;
|
|
246
|
+
folderData: TFolderData;
|
|
247
|
+
prefillData?: object;
|
|
248
|
+
};
|
|
249
|
+
redrawComponent: boolean;
|
|
250
|
+
redrawFoldersComponent: boolean;
|
|
251
|
+
tabIndex?: number;
|
|
252
|
+
};
|
|
253
|
+
type TDataTableMeta = {
|
|
254
|
+
rowsPerPage: number;
|
|
255
|
+
pageIndex: number;
|
|
256
|
+
serverPaginationEnabled: boolean;
|
|
257
|
+
nextToken?: string;
|
|
258
|
+
paginationDirection?: "first" | "next" | "previous" | "last";
|
|
259
|
+
previousToken?: string;
|
|
260
|
+
rowCount: number;
|
|
261
|
+
qId?: string;
|
|
262
|
+
lastRequestLimit?: number;
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
-
interface IFormRequest {
|
|
266
|
-
pluginCode: string;
|
|
267
|
-
formCode: string;
|
|
268
|
-
guid?: string | null | undefined;
|
|
269
|
-
originator?: TOriginator;
|
|
270
|
-
pGuid?: string;
|
|
271
|
-
folderData?: TFolderData;
|
|
265
|
+
interface IFormRequest {
|
|
266
|
+
pluginCode: string;
|
|
267
|
+
formCode: string;
|
|
268
|
+
guid?: string | null | undefined;
|
|
269
|
+
originator?: TOriginator;
|
|
270
|
+
pGuid?: string;
|
|
271
|
+
folderData?: TFolderData;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
type TDynProps = {
|
|
275
|
-
modalCloseFn: () => void;
|
|
276
|
-
modalCloseAndOpenFn?: (formData: IFormRequest) => void;
|
|
277
|
-
params?: any;
|
|
278
|
-
options?: any;
|
|
279
|
-
formData?: object;
|
|
280
|
-
execCommands: (command: TCommandCollection) => void;
|
|
281
|
-
};
|
|
282
|
-
interface DynamicComponentProps {
|
|
283
|
-
componentName: string;
|
|
284
|
-
options?: object;
|
|
285
|
-
params?: TDynProps;
|
|
286
|
-
fallback?: React__default.ReactNode;
|
|
287
|
-
}
|
|
274
|
+
type TDynProps = {
|
|
275
|
+
modalCloseFn: () => void;
|
|
276
|
+
modalCloseAndOpenFn?: (formData: IFormRequest) => void;
|
|
277
|
+
params?: any;
|
|
278
|
+
options?: any;
|
|
279
|
+
formData?: object;
|
|
280
|
+
execCommands: (command: TCommandCollection) => void;
|
|
281
|
+
};
|
|
282
|
+
interface DynamicComponentProps {
|
|
283
|
+
componentName: string;
|
|
284
|
+
options?: object;
|
|
285
|
+
params?: TDynProps;
|
|
286
|
+
fallback?: React__default.ReactNode;
|
|
287
|
+
}
|
|
288
288
|
declare const DynamicComponent: React__default.FC<DynamicComponentProps>;
|
|
289
289
|
|
|
290
|
-
/**
|
|
291
|
-
* Initialize dayjs with required plugins for buildocsformviewer
|
|
292
|
-
* Call this function in your parent project before using form components with date fields
|
|
293
|
-
*
|
|
294
|
-
* @example
|
|
295
|
-
* // In your parent project's index.tsx or App.tsx:
|
|
296
|
-
* import { initializeDayjs } from '@alexrussdev/buildocsformviewer/utils/dayjsConfig';
|
|
297
|
-
* import 'dayjs/locale/en';
|
|
298
|
-
* import 'dayjs/locale/de';
|
|
299
|
-
* import 'dayjs/locale/fr';
|
|
300
|
-
* // ... import other locales you need
|
|
301
|
-
*
|
|
302
|
-
* initializeDayjs();
|
|
303
|
-
*/
|
|
304
|
-
declare const initializeDayjs: () => void;
|
|
305
|
-
/**
|
|
306
|
-
* Check if dayjs has been initialized
|
|
307
|
-
*/
|
|
290
|
+
/**
|
|
291
|
+
* Initialize dayjs with required plugins for buildocsformviewer
|
|
292
|
+
* Call this function in your parent project before using form components with date fields
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* // In your parent project's index.tsx or App.tsx:
|
|
296
|
+
* import { initializeDayjs } from '@alexrussdev/buildocsformviewer/utils/dayjsConfig';
|
|
297
|
+
* import 'dayjs/locale/en';
|
|
298
|
+
* import 'dayjs/locale/de';
|
|
299
|
+
* import 'dayjs/locale/fr';
|
|
300
|
+
* // ... import other locales you need
|
|
301
|
+
*
|
|
302
|
+
* initializeDayjs();
|
|
303
|
+
*/
|
|
304
|
+
declare const initializeDayjs: () => void;
|
|
305
|
+
/**
|
|
306
|
+
* Check if dayjs has been initialized
|
|
307
|
+
*/
|
|
308
308
|
declare const isDayjsInitialized: () => boolean;
|
|
309
309
|
|
|
310
|
-
/**
|
|
311
|
-
* Dynamically loads a dayjs locale on demand
|
|
312
|
-
* @param locale - The locale code (e.g., 'en', 'de', 'fr')
|
|
313
|
-
* @returns Promise that resolves when locale is loaded
|
|
314
|
-
*/
|
|
315
|
-
declare const loadLocale: (locale: string) => Promise<boolean>;
|
|
316
|
-
/**
|
|
317
|
-
* Check if a locale has been loaded
|
|
318
|
-
* @param locale - The locale code to check
|
|
319
|
-
*/
|
|
320
|
-
declare const isLocaleLoaded: (locale: string) => boolean;
|
|
321
|
-
/**
|
|
322
|
-
* Preload multiple locales at once
|
|
323
|
-
* @param locales - Array of locale codes to preload
|
|
324
|
-
* @example
|
|
325
|
-
* preloadLocales(['de', 'fr', 'es']);
|
|
326
|
-
*/
|
|
327
|
-
declare const preloadLocales: (locales: string[]) => Promise<void>;
|
|
328
|
-
/**
|
|
329
|
-
* Get list of all loaded locales
|
|
330
|
-
*/
|
|
310
|
+
/**
|
|
311
|
+
* Dynamically loads a dayjs locale on demand
|
|
312
|
+
* @param locale - The locale code (e.g., 'en', 'de', 'fr')
|
|
313
|
+
* @returns Promise that resolves when locale is loaded
|
|
314
|
+
*/
|
|
315
|
+
declare const loadLocale: (locale: string) => Promise<boolean>;
|
|
316
|
+
/**
|
|
317
|
+
* Check if a locale has been loaded
|
|
318
|
+
* @param locale - The locale code to check
|
|
319
|
+
*/
|
|
320
|
+
declare const isLocaleLoaded: (locale: string) => boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Preload multiple locales at once
|
|
323
|
+
* @param locales - Array of locale codes to preload
|
|
324
|
+
* @example
|
|
325
|
+
* preloadLocales(['de', 'fr', 'es']);
|
|
326
|
+
*/
|
|
327
|
+
declare const preloadLocales: (locales: string[]) => Promise<void>;
|
|
328
|
+
/**
|
|
329
|
+
* Get list of all loaded locales
|
|
330
|
+
*/
|
|
331
331
|
declare const getLoadedLocales: () => string[];
|
|
332
332
|
|
|
333
|
-
interface LanguageOption {
|
|
334
|
-
code: string;
|
|
335
|
-
label: string;
|
|
336
|
-
flag?: string;
|
|
337
|
-
}
|
|
338
|
-
interface LanguageSwitcherProps {
|
|
339
|
-
/** Custom list of available languages (defaults to all supported) */
|
|
340
|
-
languages?: LanguageOption[];
|
|
341
|
-
/** Show flags next to language names */
|
|
342
|
-
showFlags?: boolean;
|
|
343
|
-
/** Label for the select input */
|
|
344
|
-
label?: string;
|
|
345
|
-
/** Variant of the select input */
|
|
346
|
-
variant?: 'outlined' | 'filled' | 'standard';
|
|
347
|
-
/** Size of the select input */
|
|
348
|
-
size?: 'small' | 'medium';
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Language switcher component for testing different locales
|
|
352
|
-
* Changes both i18next language and preloads dayjs locales
|
|
353
|
-
*/
|
|
333
|
+
interface LanguageOption {
|
|
334
|
+
code: string;
|
|
335
|
+
label: string;
|
|
336
|
+
flag?: string;
|
|
337
|
+
}
|
|
338
|
+
interface LanguageSwitcherProps {
|
|
339
|
+
/** Custom list of available languages (defaults to all supported) */
|
|
340
|
+
languages?: LanguageOption[];
|
|
341
|
+
/** Show flags next to language names */
|
|
342
|
+
showFlags?: boolean;
|
|
343
|
+
/** Label for the select input */
|
|
344
|
+
label?: string;
|
|
345
|
+
/** Variant of the select input */
|
|
346
|
+
variant?: 'outlined' | 'filled' | 'standard';
|
|
347
|
+
/** Size of the select input */
|
|
348
|
+
size?: 'small' | 'medium';
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Language switcher component for testing different locales
|
|
352
|
+
* Changes both i18next language and preloads dayjs locales
|
|
353
|
+
*/
|
|
354
354
|
declare const LanguageSwitcher: React__default.FC<LanguageSwitcherProps>;
|
|
355
355
|
|
|
356
|
-
interface UploadArgs {
|
|
357
|
-
content: FormData;
|
|
358
|
-
onUploadProgress?: (e: ProgressEvent) => void;
|
|
359
|
-
cancelTokenSource?: CancelTokenSource;
|
|
360
|
-
headers?: Record<string, string>;
|
|
361
|
-
}
|
|
362
|
-
interface DataTableMeta {
|
|
363
|
-
serverPaginationEnabled: boolean;
|
|
364
|
-
rowsPerPage: number;
|
|
365
|
-
pageIndex: number;
|
|
366
|
-
nextToken?: string;
|
|
367
|
-
previousToken?: string;
|
|
368
|
-
paginationDirection?: string;
|
|
369
|
-
rowCount?: number;
|
|
370
|
-
qId?: string;
|
|
371
|
-
lastRequestLimit?: number;
|
|
372
|
-
oppositeDirection?: boolean;
|
|
373
|
-
}
|
|
374
|
-
type RunEventArgs = {
|
|
375
|
-
DataTableMeta?: DataTableMeta;
|
|
376
|
-
pluginCode: string;
|
|
377
|
-
formCode: string;
|
|
378
|
-
guid?: string;
|
|
379
|
-
projectGuid?: string;
|
|
380
|
-
pGuid?: string;
|
|
381
|
-
formData?: Record<string, any>;
|
|
382
|
-
widgetContext?: string | null | undefined;
|
|
383
|
-
widgetEvent: string | undefined;
|
|
384
|
-
widgetName?: string | null;
|
|
385
|
-
widgetValue?: string | null;
|
|
386
|
-
widgetsState?: TWidgetsState;
|
|
387
|
-
};
|
|
388
|
-
type TLoadForm = {
|
|
389
|
-
pluginCode: string;
|
|
390
|
-
formCode: string;
|
|
391
|
-
guid?: string;
|
|
392
|
-
originator?: {};
|
|
393
|
-
parent?: {};
|
|
394
|
-
isFormEditor?: boolean;
|
|
395
|
-
eventWidgetName?: string;
|
|
396
|
-
projectGuid?: string;
|
|
397
|
-
pGuid?: string;
|
|
398
|
-
previewMode?: any;
|
|
399
|
-
widgetContext?: string;
|
|
400
|
-
definition?: any;
|
|
401
|
-
formData?: Record<string, any>;
|
|
402
|
-
fieldAllowedValues?: Record<string, any>;
|
|
403
|
-
requiredFields?: Record<string, string>;
|
|
404
|
-
widgetsState?: TWidgetsState;
|
|
405
|
-
};
|
|
406
|
-
type TPingArgs = {
|
|
407
|
-
cmd: string;
|
|
408
|
-
};
|
|
409
|
-
interface FileEventArgs {
|
|
410
|
-
pluginCode: string;
|
|
411
|
-
formCode: string;
|
|
412
|
-
guid?: string;
|
|
413
|
-
projectGuid?: string;
|
|
414
|
-
pGuid?: string;
|
|
415
|
-
fieldName: string;
|
|
416
|
-
fileId: string;
|
|
417
|
-
}
|
|
418
|
-
interface FileMetaEventArgs extends FileEventArgs {
|
|
419
|
-
context: {
|
|
420
|
-
action: string;
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
interface DeleteFileEventArgs extends FileEventArgs {
|
|
424
|
-
}
|
|
425
|
-
interface DownloadFileEventArgs extends FileEventArgs {
|
|
426
|
-
}
|
|
427
|
-
interface GetLinkedFileMetaEventArgs extends FileMetaEventArgs {
|
|
428
|
-
}
|
|
429
|
-
interface ChunkRequestArgs extends DownloadFileEventArgs {
|
|
430
|
-
range: string;
|
|
431
|
-
}
|
|
432
|
-
interface ChunkPayload$1 {
|
|
433
|
-
payload: ArrayBuffer;
|
|
434
|
-
contentRange?: string;
|
|
435
|
-
etag?: string;
|
|
436
|
-
lastModified?: string;
|
|
437
|
-
headers: Record<string, string>;
|
|
438
|
-
}
|
|
439
|
-
type MenuItemType = {
|
|
440
|
-
title: string;
|
|
441
|
-
link?: string;
|
|
442
|
-
icon?: string;
|
|
443
|
-
subMenus?: MenuItemType[];
|
|
444
|
-
};
|
|
445
|
-
type TProjectItem = {
|
|
446
|
-
guid: string;
|
|
447
|
-
title: string;
|
|
448
|
-
desc?: string;
|
|
449
|
-
dashboardLink?: string;
|
|
450
|
-
settingsLink?: string;
|
|
451
|
-
icon?: string;
|
|
452
|
-
};
|
|
453
|
-
type TProjectMeta = {
|
|
454
|
-
pluginCode: string;
|
|
455
|
-
formCode: string;
|
|
456
|
-
};
|
|
457
|
-
type TProjectRights = {
|
|
458
|
-
adminRights: boolean;
|
|
459
|
-
};
|
|
460
|
-
type TUserMenuRequest = {
|
|
461
|
-
ProjectGuid: string | null;
|
|
462
|
-
pGuid?: string | null;
|
|
463
|
-
};
|
|
464
|
-
interface IUserMenu {
|
|
465
|
-
loadingUserMenu: boolean;
|
|
466
|
-
userMenuData: {
|
|
467
|
-
mainMenu: MenuItemType[];
|
|
468
|
-
loginMenu: MenuItemType[];
|
|
469
|
-
projectMenu: MenuItemType[];
|
|
470
|
-
};
|
|
471
|
-
userProjectData: {
|
|
472
|
-
meta: TProjectMeta;
|
|
473
|
-
data: TProjectItem[];
|
|
474
|
-
rights: TProjectRights;
|
|
475
|
-
prjEntryCode?: string;
|
|
476
|
-
};
|
|
477
|
-
redirectOnLoginUrl?: string;
|
|
478
|
-
error?: string | null | undefined;
|
|
479
|
-
}
|
|
480
|
-
interface IUser {
|
|
481
|
-
email: string;
|
|
482
|
-
fullName: string;
|
|
483
|
-
token: string;
|
|
484
|
-
roles?: string[];
|
|
485
|
-
userEnv?: IUserEnv[] | null;
|
|
486
|
-
currentCulture: string;
|
|
487
|
-
}
|
|
488
|
-
interface IUserEnv {
|
|
489
|
-
TenantUrl: string;
|
|
490
|
-
EnvUrl: string;
|
|
491
|
-
}
|
|
492
|
-
interface HostBridge {
|
|
493
|
-
apiConfig?: {
|
|
494
|
-
token?: string;
|
|
495
|
-
baseURL: string;
|
|
496
|
-
iframeMode?: boolean;
|
|
497
|
-
lang?: string;
|
|
498
|
-
};
|
|
499
|
-
appSettings?: {
|
|
500
|
-
MAX_DOWNLOAD_NOCHUNK_FILESIZE: number;
|
|
501
|
-
SCREEN_WIDTH_TABLET: number;
|
|
502
|
-
TOASTER_AUTOCLOSE: number;
|
|
503
|
-
};
|
|
504
|
-
viewPort: {
|
|
505
|
-
isMobileDevice: boolean;
|
|
506
|
-
width: number;
|
|
507
|
-
height: number;
|
|
508
|
-
};
|
|
509
|
-
runFormEvent: (args: RunEventArgs) => Promise<any>;
|
|
510
|
-
runFormUploadFiles: (args: UploadArgs) => Promise<any>;
|
|
511
|
-
runFormDeleteFileEvent: (args: DeleteFileEventArgs) => Promise<any>;
|
|
512
|
-
runFormDownloadFileEvent: (args: DownloadFileEventArgs) => Promise<Blob>;
|
|
513
|
-
runFormGetLinkedFileEvent: (args: GetLinkedFileMetaEventArgs) => Promise<any>;
|
|
514
|
-
runFormGetLinkedFileMetaEvent: (args: GetLinkedFileMetaEventArgs) => Promise<any>;
|
|
515
|
-
runFormGetLinkedFileByChunks: (args: ChunkRequestArgs) => Promise<ChunkPayload$1>;
|
|
516
|
-
runFormGetPresignedUrl: (args: FileMetaEventArgs) => Promise<any>;
|
|
517
|
-
runFormGetMdaUrn?: (args: FileMetaEventArgs) => Promise<any>;
|
|
518
|
-
runServerPingEvent?: (args: TPingArgs) => Promise<any>;
|
|
519
|
-
runLoadFormEvent: (args: TLoadForm) => Promise<any>;
|
|
520
|
-
fetchUserMenu?: (args: TUserMenuRequest) => Promise<IUserMenu>;
|
|
521
|
-
signInUser?: (args: TFieldValues) => Promise<IUser>;
|
|
522
|
-
signOut?: () => void;
|
|
523
|
-
loadForm?: (args: any) => Promise<any>;
|
|
524
|
-
saveForm?: (args: any) => Promise<any>;
|
|
525
|
-
loadFields?: (args: any) => Promise<any>;
|
|
526
|
-
buildPlugin?: (args: any) => Promise<any>;
|
|
527
|
-
ping?: (args: any) => Promise<any>;
|
|
528
|
-
}
|
|
529
|
-
declare function HostBridgeProvider({ value, children }: Readonly<{
|
|
530
|
-
value: HostBridge;
|
|
531
|
-
children: React__default.ReactNode;
|
|
532
|
-
}>): react_jsx_runtime.JSX.Element;
|
|
356
|
+
interface UploadArgs {
|
|
357
|
+
content: FormData;
|
|
358
|
+
onUploadProgress?: (e: ProgressEvent) => void;
|
|
359
|
+
cancelTokenSource?: CancelTokenSource;
|
|
360
|
+
headers?: Record<string, string>;
|
|
361
|
+
}
|
|
362
|
+
interface DataTableMeta {
|
|
363
|
+
serverPaginationEnabled: boolean;
|
|
364
|
+
rowsPerPage: number;
|
|
365
|
+
pageIndex: number;
|
|
366
|
+
nextToken?: string;
|
|
367
|
+
previousToken?: string;
|
|
368
|
+
paginationDirection?: string;
|
|
369
|
+
rowCount?: number;
|
|
370
|
+
qId?: string;
|
|
371
|
+
lastRequestLimit?: number;
|
|
372
|
+
oppositeDirection?: boolean;
|
|
373
|
+
}
|
|
374
|
+
type RunEventArgs = {
|
|
375
|
+
DataTableMeta?: DataTableMeta;
|
|
376
|
+
pluginCode: string;
|
|
377
|
+
formCode: string;
|
|
378
|
+
guid?: string;
|
|
379
|
+
projectGuid?: string;
|
|
380
|
+
pGuid?: string;
|
|
381
|
+
formData?: Record<string, any>;
|
|
382
|
+
widgetContext?: string | null | undefined;
|
|
383
|
+
widgetEvent: string | undefined;
|
|
384
|
+
widgetName?: string | null;
|
|
385
|
+
widgetValue?: string | null;
|
|
386
|
+
widgetsState?: TWidgetsState;
|
|
387
|
+
};
|
|
388
|
+
type TLoadForm = {
|
|
389
|
+
pluginCode: string;
|
|
390
|
+
formCode: string;
|
|
391
|
+
guid?: string;
|
|
392
|
+
originator?: {};
|
|
393
|
+
parent?: {};
|
|
394
|
+
isFormEditor?: boolean;
|
|
395
|
+
eventWidgetName?: string;
|
|
396
|
+
projectGuid?: string;
|
|
397
|
+
pGuid?: string;
|
|
398
|
+
previewMode?: any;
|
|
399
|
+
widgetContext?: string;
|
|
400
|
+
definition?: any;
|
|
401
|
+
formData?: Record<string, any>;
|
|
402
|
+
fieldAllowedValues?: Record<string, any>;
|
|
403
|
+
requiredFields?: Record<string, string>;
|
|
404
|
+
widgetsState?: TWidgetsState;
|
|
405
|
+
};
|
|
406
|
+
type TPingArgs = {
|
|
407
|
+
cmd: string;
|
|
408
|
+
};
|
|
409
|
+
interface FileEventArgs {
|
|
410
|
+
pluginCode: string;
|
|
411
|
+
formCode: string;
|
|
412
|
+
guid?: string;
|
|
413
|
+
projectGuid?: string;
|
|
414
|
+
pGuid?: string;
|
|
415
|
+
fieldName: string;
|
|
416
|
+
fileId: string;
|
|
417
|
+
}
|
|
418
|
+
interface FileMetaEventArgs extends FileEventArgs {
|
|
419
|
+
context: {
|
|
420
|
+
action: string;
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
interface DeleteFileEventArgs extends FileEventArgs {
|
|
424
|
+
}
|
|
425
|
+
interface DownloadFileEventArgs extends FileEventArgs {
|
|
426
|
+
}
|
|
427
|
+
interface GetLinkedFileMetaEventArgs extends FileMetaEventArgs {
|
|
428
|
+
}
|
|
429
|
+
interface ChunkRequestArgs extends DownloadFileEventArgs {
|
|
430
|
+
range: string;
|
|
431
|
+
}
|
|
432
|
+
interface ChunkPayload$1 {
|
|
433
|
+
payload: ArrayBuffer;
|
|
434
|
+
contentRange?: string;
|
|
435
|
+
etag?: string;
|
|
436
|
+
lastModified?: string;
|
|
437
|
+
headers: Record<string, string>;
|
|
438
|
+
}
|
|
439
|
+
type MenuItemType = {
|
|
440
|
+
title: string;
|
|
441
|
+
link?: string;
|
|
442
|
+
icon?: string;
|
|
443
|
+
subMenus?: MenuItemType[];
|
|
444
|
+
};
|
|
445
|
+
type TProjectItem = {
|
|
446
|
+
guid: string;
|
|
447
|
+
title: string;
|
|
448
|
+
desc?: string;
|
|
449
|
+
dashboardLink?: string;
|
|
450
|
+
settingsLink?: string;
|
|
451
|
+
icon?: string;
|
|
452
|
+
};
|
|
453
|
+
type TProjectMeta = {
|
|
454
|
+
pluginCode: string;
|
|
455
|
+
formCode: string;
|
|
456
|
+
};
|
|
457
|
+
type TProjectRights = {
|
|
458
|
+
adminRights: boolean;
|
|
459
|
+
};
|
|
460
|
+
type TUserMenuRequest = {
|
|
461
|
+
ProjectGuid: string | null;
|
|
462
|
+
pGuid?: string | null;
|
|
463
|
+
};
|
|
464
|
+
interface IUserMenu {
|
|
465
|
+
loadingUserMenu: boolean;
|
|
466
|
+
userMenuData: {
|
|
467
|
+
mainMenu: MenuItemType[];
|
|
468
|
+
loginMenu: MenuItemType[];
|
|
469
|
+
projectMenu: MenuItemType[];
|
|
470
|
+
};
|
|
471
|
+
userProjectData: {
|
|
472
|
+
meta: TProjectMeta;
|
|
473
|
+
data: TProjectItem[];
|
|
474
|
+
rights: TProjectRights;
|
|
475
|
+
prjEntryCode?: string;
|
|
476
|
+
};
|
|
477
|
+
redirectOnLoginUrl?: string;
|
|
478
|
+
error?: string | null | undefined;
|
|
479
|
+
}
|
|
480
|
+
interface IUser {
|
|
481
|
+
email: string;
|
|
482
|
+
fullName: string;
|
|
483
|
+
token: string;
|
|
484
|
+
roles?: string[];
|
|
485
|
+
userEnv?: IUserEnv[] | null;
|
|
486
|
+
currentCulture: string;
|
|
487
|
+
}
|
|
488
|
+
interface IUserEnv {
|
|
489
|
+
TenantUrl: string;
|
|
490
|
+
EnvUrl: string;
|
|
491
|
+
}
|
|
492
|
+
interface HostBridge {
|
|
493
|
+
apiConfig?: {
|
|
494
|
+
token?: string;
|
|
495
|
+
baseURL: string;
|
|
496
|
+
iframeMode?: boolean;
|
|
497
|
+
lang?: string;
|
|
498
|
+
};
|
|
499
|
+
appSettings?: {
|
|
500
|
+
MAX_DOWNLOAD_NOCHUNK_FILESIZE: number;
|
|
501
|
+
SCREEN_WIDTH_TABLET: number;
|
|
502
|
+
TOASTER_AUTOCLOSE: number;
|
|
503
|
+
};
|
|
504
|
+
viewPort: {
|
|
505
|
+
isMobileDevice: boolean;
|
|
506
|
+
width: number;
|
|
507
|
+
height: number;
|
|
508
|
+
};
|
|
509
|
+
runFormEvent: (args: RunEventArgs) => Promise<any>;
|
|
510
|
+
runFormUploadFiles: (args: UploadArgs) => Promise<any>;
|
|
511
|
+
runFormDeleteFileEvent: (args: DeleteFileEventArgs) => Promise<any>;
|
|
512
|
+
runFormDownloadFileEvent: (args: DownloadFileEventArgs) => Promise<Blob>;
|
|
513
|
+
runFormGetLinkedFileEvent: (args: GetLinkedFileMetaEventArgs) => Promise<any>;
|
|
514
|
+
runFormGetLinkedFileMetaEvent: (args: GetLinkedFileMetaEventArgs) => Promise<any>;
|
|
515
|
+
runFormGetLinkedFileByChunks: (args: ChunkRequestArgs) => Promise<ChunkPayload$1>;
|
|
516
|
+
runFormGetPresignedUrl: (args: FileMetaEventArgs) => Promise<any>;
|
|
517
|
+
runFormGetMdaUrn?: (args: FileMetaEventArgs) => Promise<any>;
|
|
518
|
+
runServerPingEvent?: (args: TPingArgs) => Promise<any>;
|
|
519
|
+
runLoadFormEvent: (args: TLoadForm) => Promise<any>;
|
|
520
|
+
fetchUserMenu?: (args: TUserMenuRequest) => Promise<IUserMenu>;
|
|
521
|
+
signInUser?: (args: TFieldValues) => Promise<IUser>;
|
|
522
|
+
signOut?: () => void;
|
|
523
|
+
loadForm?: (args: any) => Promise<any>;
|
|
524
|
+
saveForm?: (args: any) => Promise<any>;
|
|
525
|
+
loadFields?: (args: any) => Promise<any>;
|
|
526
|
+
buildPlugin?: (args: any) => Promise<any>;
|
|
527
|
+
ping?: (args: any) => Promise<any>;
|
|
528
|
+
}
|
|
529
|
+
declare function HostBridgeProvider({ value, children }: Readonly<{
|
|
530
|
+
value: HostBridge;
|
|
531
|
+
children: React__default.ReactNode;
|
|
532
|
+
}>): react_jsx_runtime.JSX.Element;
|
|
533
533
|
declare function useHostBridgeProvider(): HostBridge;
|
|
534
534
|
|
|
535
|
-
interface UserDialogProps {
|
|
536
|
-
buttonAgree: string;
|
|
537
|
-
buttonDisagree: string;
|
|
538
|
-
dialogTitle: string;
|
|
539
|
-
dialogContent: string;
|
|
540
|
-
handleDialogClose: (result: boolean) => void;
|
|
541
|
-
showDialog: boolean;
|
|
542
|
-
}
|
|
543
|
-
type UserDialogComponent = React__default.ComponentType<UserDialogProps>;
|
|
544
|
-
interface UiComponents {
|
|
545
|
-
UserDialog: UserDialogComponent;
|
|
546
|
-
}
|
|
547
|
-
declare function UiComponentsProvider({ value, children }: {
|
|
548
|
-
value: UiComponents;
|
|
549
|
-
children: React__default.ReactNode;
|
|
550
|
-
}): react_jsx_runtime.JSX.Element;
|
|
535
|
+
interface UserDialogProps {
|
|
536
|
+
buttonAgree: string;
|
|
537
|
+
buttonDisagree: string;
|
|
538
|
+
dialogTitle: string;
|
|
539
|
+
dialogContent: string;
|
|
540
|
+
handleDialogClose: (result: boolean) => void;
|
|
541
|
+
showDialog: boolean;
|
|
542
|
+
}
|
|
543
|
+
type UserDialogComponent = React__default.ComponentType<UserDialogProps>;
|
|
544
|
+
interface UiComponents {
|
|
545
|
+
UserDialog: UserDialogComponent;
|
|
546
|
+
}
|
|
547
|
+
declare function UiComponentsProvider({ value, children }: {
|
|
548
|
+
value: UiComponents;
|
|
549
|
+
children: React__default.ReactNode;
|
|
550
|
+
}): react_jsx_runtime.JSX.Element;
|
|
551
551
|
declare function useUiComponents(): UiComponents;
|
|
552
552
|
|
|
553
|
-
declare const HostUserDialog: React__default.
|
|
553
|
+
declare const HostUserDialog: React__default.MemoExoticComponent<(props: UserDialogProps) => react_jsx_runtime.JSX.Element>;
|
|
554
554
|
|
|
555
|
-
interface ToastMessageProps {
|
|
556
|
-
msg: string;
|
|
557
|
-
toastID?: string | number;
|
|
558
|
-
clearQueue?: boolean;
|
|
559
|
-
hideProgressBar?: boolean;
|
|
560
|
-
}
|
|
561
|
-
type ToastFn = (p: ToastMessageProps) => void;
|
|
562
|
-
interface ToastApi {
|
|
563
|
-
warn: ToastFn;
|
|
564
|
-
success: ToastFn;
|
|
565
|
-
info: ToastFn;
|
|
566
|
-
error: ToastFn;
|
|
567
|
-
dismissAll?: () => void;
|
|
568
|
-
}
|
|
569
|
-
declare const ToastFnsProvider: React$1.Provider<ToastApi>;
|
|
570
|
-
declare function useToast(): ToastApi;
|
|
571
|
-
declare function useWarningMessage(): ToastFn;
|
|
572
|
-
declare function useSuccessMessage(): ToastFn;
|
|
573
|
-
declare function useInfoMessage(): ToastFn;
|
|
555
|
+
interface ToastMessageProps {
|
|
556
|
+
msg: string;
|
|
557
|
+
toastID?: string | number;
|
|
558
|
+
clearQueue?: boolean;
|
|
559
|
+
hideProgressBar?: boolean;
|
|
560
|
+
}
|
|
561
|
+
type ToastFn = (p: ToastMessageProps) => void;
|
|
562
|
+
interface ToastApi {
|
|
563
|
+
warn: ToastFn;
|
|
564
|
+
success: ToastFn;
|
|
565
|
+
info: ToastFn;
|
|
566
|
+
error: ToastFn;
|
|
567
|
+
dismissAll?: () => void;
|
|
568
|
+
}
|
|
569
|
+
declare const ToastFnsProvider: React$1.Provider<ToastApi>;
|
|
570
|
+
declare function useToast(): ToastApi;
|
|
571
|
+
declare function useWarningMessage(): ToastFn;
|
|
572
|
+
declare function useSuccessMessage(): ToastFn;
|
|
573
|
+
declare function useInfoMessage(): ToastFn;
|
|
574
574
|
declare function useErrorMessage(): ToastFn;
|
|
575
575
|
|
|
576
|
-
declare function ErrorMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
577
|
-
declare function InfoMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
578
|
-
declare function SuccessMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
579
|
-
declare function WarningMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
576
|
+
declare function ErrorMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
577
|
+
declare function InfoMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
578
|
+
declare function SuccessMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
579
|
+
declare function WarningMessage({ toastID, msg, clearQueue, hideProgressBar, }: ToastMessageProps): void;
|
|
580
580
|
declare const ToastNotification: React__default.FC;
|
|
581
581
|
|
|
582
|
-
interface FormParams {
|
|
583
|
-
pluginCode: string;
|
|
584
|
-
formCode: string;
|
|
585
|
-
guid?: string;
|
|
586
|
-
pGuid?: string;
|
|
587
|
-
[k: string]: any;
|
|
588
|
-
}
|
|
589
|
-
interface FormLayoutProps {
|
|
590
|
-
children: React__default.ReactNode;
|
|
591
|
-
formlayout: string | null;
|
|
592
|
-
params: FormParams;
|
|
593
|
-
onFolderSelected: Function;
|
|
594
|
-
onFolderAdded: Function;
|
|
595
|
-
redrawComponent: boolean;
|
|
596
|
-
eventDispatcher?: (event: any) => void;
|
|
597
|
-
formData: object;
|
|
598
|
-
execCommands: (command: TCommandCollection) => void;
|
|
599
|
-
}
|
|
600
|
-
type FormLayoutComponent = React__default.ComponentType<FormLayoutProps>;
|
|
601
|
-
declare const FormLayoutProviderBridge: React__default.Provider<FormLayoutComponent>;
|
|
582
|
+
interface FormParams {
|
|
583
|
+
pluginCode: string;
|
|
584
|
+
formCode: string;
|
|
585
|
+
guid?: string;
|
|
586
|
+
pGuid?: string;
|
|
587
|
+
[k: string]: any;
|
|
588
|
+
}
|
|
589
|
+
interface FormLayoutProps {
|
|
590
|
+
children: React__default.ReactNode;
|
|
591
|
+
formlayout: string | null;
|
|
592
|
+
params: FormParams;
|
|
593
|
+
onFolderSelected: Function;
|
|
594
|
+
onFolderAdded: Function;
|
|
595
|
+
redrawComponent: boolean;
|
|
596
|
+
eventDispatcher?: (event: any) => void;
|
|
597
|
+
formData: object;
|
|
598
|
+
execCommands: (command: TCommandCollection) => void;
|
|
599
|
+
}
|
|
600
|
+
type FormLayoutComponent = React__default.ComponentType<FormLayoutProps>;
|
|
601
|
+
declare const FormLayoutProviderBridge: React__default.Provider<FormLayoutComponent>;
|
|
602
602
|
declare function useFormLayoutComponent(): FormLayoutComponent;
|
|
603
603
|
|
|
604
|
-
/** A dynamically imported module that exposes a default React component */
|
|
605
|
-
type LoadedModule = {
|
|
606
|
-
default: React__default.ComponentType<any>;
|
|
607
|
-
};
|
|
608
|
-
/** Loader function that resolves a component module by name */
|
|
609
|
-
type ComponentLoader = (name: string) => Promise<LoadedModule>;
|
|
610
|
-
/** Optional map of known components to importers (host/package/remote) */
|
|
611
|
-
type Registry = Record<string, () => Promise<LoadedModule>>;
|
|
612
|
-
declare const DynamicComponentLoaderProvider: React__default.Provider<ComponentLoader>;
|
|
613
|
-
declare function useComponentLoader(): ComponentLoader;
|
|
614
|
-
type CreateLoaderOptions = {
|
|
615
|
-
/** Time-to-live for cache entries in ms (default: Infinity = never expire) */
|
|
616
|
-
ttl?: number;
|
|
617
|
-
/** Called when a load fails (centralized logging) */
|
|
618
|
-
onError?: (name: string, error: unknown) => void;
|
|
619
|
-
};
|
|
620
|
-
/**
|
|
621
|
-
* Factory: create a cached loader from a registry and optional fallback importer.
|
|
622
|
-
* - registry[name] wins; fallback is used only if not in registry.
|
|
623
|
-
* - fallback receives the name (handy for templated paths).
|
|
624
|
-
*/
|
|
625
|
-
declare function createCachedComponentLoader(registry: Registry, fallback?: (name: string) => Promise<LoadedModule>, opts?: CreateLoaderOptions): ComponentLoader & {
|
|
626
|
-
preload: (name: string) => Promise<LoadedModule | undefined>;
|
|
627
|
-
warm: (names: string[]) => Promise<undefined>;
|
|
628
|
-
evict: (name: string) => undefined;
|
|
629
|
-
clear: () => undefined;
|
|
604
|
+
/** A dynamically imported module that exposes a default React component */
|
|
605
|
+
type LoadedModule = {
|
|
606
|
+
default: React__default.ComponentType<any>;
|
|
607
|
+
};
|
|
608
|
+
/** Loader function that resolves a component module by name */
|
|
609
|
+
type ComponentLoader = (name: string) => Promise<LoadedModule>;
|
|
610
|
+
/** Optional map of known components to importers (host/package/remote) */
|
|
611
|
+
type Registry = Record<string, () => Promise<LoadedModule>>;
|
|
612
|
+
declare const DynamicComponentLoaderProvider: React__default.Provider<ComponentLoader>;
|
|
613
|
+
declare function useComponentLoader(): ComponentLoader;
|
|
614
|
+
type CreateLoaderOptions = {
|
|
615
|
+
/** Time-to-live for cache entries in ms (default: Infinity = never expire) */
|
|
616
|
+
ttl?: number;
|
|
617
|
+
/** Called when a load fails (centralized logging) */
|
|
618
|
+
onError?: (name: string, error: unknown) => void;
|
|
619
|
+
};
|
|
620
|
+
/**
|
|
621
|
+
* Factory: create a cached loader from a registry and optional fallback importer.
|
|
622
|
+
* - registry[name] wins; fallback is used only if not in registry.
|
|
623
|
+
* - fallback receives the name (handy for templated paths).
|
|
624
|
+
*/
|
|
625
|
+
declare function createCachedComponentLoader(registry: Registry, fallback?: (name: string) => Promise<LoadedModule>, opts?: CreateLoaderOptions): ComponentLoader & {
|
|
626
|
+
preload: (name: string) => Promise<LoadedModule | undefined>;
|
|
627
|
+
warm: (names: string[]) => Promise<undefined>;
|
|
628
|
+
evict: (name: string) => undefined;
|
|
629
|
+
clear: () => undefined;
|
|
630
630
|
};
|
|
631
631
|
|
|
632
|
-
interface ApiConfig {
|
|
633
|
-
token?: string;
|
|
634
|
-
/** Separate token for form events, file uploads, and other consumer-facing operations.
|
|
635
|
-
* When set, event/file methods use this token while form-definition loading uses `token`.
|
|
636
|
-
* Falls back to `token` if not provided. */
|
|
637
|
-
eventToken?: string;
|
|
638
|
-
lang?: string;
|
|
639
|
-
baseURL?: string;
|
|
640
|
-
iframeMode?: boolean;
|
|
641
|
-
}
|
|
642
|
-
declare function useApiConfig(): ApiConfig;
|
|
643
|
-
interface ApiConfigProviderProps {
|
|
644
|
-
readonly token?: string;
|
|
645
|
-
readonly eventToken?: string;
|
|
646
|
-
readonly lang?: string;
|
|
647
|
-
readonly baseURL?: string;
|
|
648
|
-
readonly iframeMode?: boolean;
|
|
649
|
-
readonly children: React__default.ReactNode;
|
|
650
|
-
}
|
|
632
|
+
interface ApiConfig {
|
|
633
|
+
token?: string;
|
|
634
|
+
/** Separate token for form events, file uploads, and other consumer-facing operations.
|
|
635
|
+
* When set, event/file methods use this token while form-definition loading uses `token`.
|
|
636
|
+
* Falls back to `token` if not provided. */
|
|
637
|
+
eventToken?: string;
|
|
638
|
+
lang?: string;
|
|
639
|
+
baseURL?: string;
|
|
640
|
+
iframeMode?: boolean;
|
|
641
|
+
}
|
|
642
|
+
declare function useApiConfig(): ApiConfig;
|
|
643
|
+
interface ApiConfigProviderProps {
|
|
644
|
+
readonly token?: string;
|
|
645
|
+
readonly eventToken?: string;
|
|
646
|
+
readonly lang?: string;
|
|
647
|
+
readonly baseURL?: string;
|
|
648
|
+
readonly iframeMode?: boolean;
|
|
649
|
+
readonly children: React__default.ReactNode;
|
|
650
|
+
}
|
|
651
651
|
declare function ApiConfigProvider({ token, eventToken, lang, baseURL, iframeMode, children }: ApiConfigProviderProps): react_jsx_runtime.JSX.Element;
|
|
652
652
|
|
|
653
|
-
/**
|
|
654
|
-
* Generic persistent state store for widgets.
|
|
655
|
-
* Allows any widget to store and retrieve state by widget name.
|
|
656
|
-
* State persists across component remounts as long as the provider stays mounted.
|
|
657
|
-
*/
|
|
658
|
-
type WidgetState = Record<string, any>;
|
|
659
|
-
interface PersistentStateContextValue {
|
|
660
|
-
getState: <T = any>(widgetName: string, key: string, defaultValue?: T) => T;
|
|
661
|
-
setState: <T = any>(widgetName: string, key: string, value: T) => void;
|
|
662
|
-
resetState: (widgetName: string) => void;
|
|
663
|
-
getWidgetState: <T extends WidgetState = WidgetState>(widgetName: string) => T | undefined;
|
|
664
|
-
setWidgetState: <T extends WidgetState = WidgetState>(widgetName: string, state: T) => void;
|
|
665
|
-
pagination: {
|
|
666
|
-
getPageIndex: (widgetName: string) => number;
|
|
667
|
-
getPageSize: (widgetName: string, defaultSize?: number) => number;
|
|
668
|
-
setPageIndex: (widgetName: string, index: number) => void;
|
|
669
|
-
setPageSize: (widgetName: string, size: number) => void;
|
|
670
|
-
getLastEvaluatedKey: (widgetName: string, pageIndex: number) => string | null;
|
|
671
|
-
setLastEvaluatedKey: (widgetName: string, pageIndex: number, key: string | null) => void;
|
|
672
|
-
reset: (widgetName: string, initialPageSize?: number) => void;
|
|
673
|
-
};
|
|
674
|
-
}
|
|
675
|
-
declare function PersistentStateProvider({ children }: {
|
|
676
|
-
children: React__default.ReactNode;
|
|
677
|
-
}): react_jsx_runtime.JSX.Element;
|
|
678
|
-
/**
|
|
679
|
-
* Hook to access the persistent state store.
|
|
680
|
-
* Must be used within a PersistentStateProvider.
|
|
681
|
-
*/
|
|
682
|
-
declare function usePersistentState(): PersistentStateContextValue;
|
|
683
|
-
/**
|
|
684
|
-
* Hook to get/set state for a specific widget.
|
|
685
|
-
* Convenience wrapper around usePersistentState for a single widget.
|
|
686
|
-
*/
|
|
687
|
-
declare function useWidgetPersistentState<T extends WidgetState = WidgetState>(widgetName: string): {
|
|
688
|
-
get: <V = any>(key: string, defaultValue?: V
|
|
689
|
-
set: <
|
|
690
|
-
reset: () => void;
|
|
691
|
-
getAll: () => T | undefined;
|
|
692
|
-
setAll: (state: T) => void;
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* Hook specifically for datatable pagination state.
|
|
696
|
-
* Convenience wrapper for pagination operations.
|
|
697
|
-
*/
|
|
698
|
-
declare function useDatatablePagination(widgetName: string, defaultPageSize?: number): {
|
|
699
|
-
pageIndex: number;
|
|
700
|
-
pageSize: number;
|
|
701
|
-
setPageIndex: (index: number) => void;
|
|
702
|
-
setPageSize: (size: number) => void;
|
|
703
|
-
getLastEvaluatedKey: (pageIndex: number) => string | null;
|
|
704
|
-
setLastEvaluatedKey: (pageIndex: number, key: string | null) => void;
|
|
705
|
-
reset: (initialPageSize?: number) => void;
|
|
653
|
+
/**
|
|
654
|
+
* Generic persistent state store for widgets.
|
|
655
|
+
* Allows any widget to store and retrieve state by widget name.
|
|
656
|
+
* State persists across component remounts as long as the provider stays mounted.
|
|
657
|
+
*/
|
|
658
|
+
type WidgetState = Record<string, any>;
|
|
659
|
+
interface PersistentStateContextValue {
|
|
660
|
+
getState: <T = any>(widgetName: string, key: string, defaultValue?: T) => T;
|
|
661
|
+
setState: <T = any>(widgetName: string, key: string, value: T) => void;
|
|
662
|
+
resetState: (widgetName: string) => void;
|
|
663
|
+
getWidgetState: <T extends WidgetState = WidgetState>(widgetName: string) => T | undefined;
|
|
664
|
+
setWidgetState: <T extends WidgetState = WidgetState>(widgetName: string, state: T) => void;
|
|
665
|
+
pagination: {
|
|
666
|
+
getPageIndex: (widgetName: string) => number;
|
|
667
|
+
getPageSize: (widgetName: string, defaultSize?: number) => number;
|
|
668
|
+
setPageIndex: (widgetName: string, index: number) => void;
|
|
669
|
+
setPageSize: (widgetName: string, size: number) => void;
|
|
670
|
+
getLastEvaluatedKey: (widgetName: string, pageIndex: number) => string | null;
|
|
671
|
+
setLastEvaluatedKey: (widgetName: string, pageIndex: number, key: string | null) => void;
|
|
672
|
+
reset: (widgetName: string, initialPageSize?: number) => void;
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
declare function PersistentStateProvider({ children }: {
|
|
676
|
+
children: React__default.ReactNode;
|
|
677
|
+
}): react_jsx_runtime.JSX.Element;
|
|
678
|
+
/**
|
|
679
|
+
* Hook to access the persistent state store.
|
|
680
|
+
* Must be used within a PersistentStateProvider.
|
|
681
|
+
*/
|
|
682
|
+
declare function usePersistentState(): PersistentStateContextValue;
|
|
683
|
+
/**
|
|
684
|
+
* Hook to get/set state for a specific widget.
|
|
685
|
+
* Convenience wrapper around usePersistentState for a single widget.
|
|
686
|
+
*/
|
|
687
|
+
declare function useWidgetPersistentState<T extends WidgetState = WidgetState>(widgetName: string): {
|
|
688
|
+
get: <V = any>(key: string, defaultValue?: V) => V;
|
|
689
|
+
set: <V = any>(key: string, value: V) => void;
|
|
690
|
+
reset: () => void;
|
|
691
|
+
getAll: () => T | undefined;
|
|
692
|
+
setAll: (state: T) => void;
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* Hook specifically for datatable pagination state.
|
|
696
|
+
* Convenience wrapper for pagination operations.
|
|
697
|
+
*/
|
|
698
|
+
declare function useDatatablePagination(widgetName: string, defaultPageSize?: number): {
|
|
699
|
+
pageIndex: number;
|
|
700
|
+
pageSize: number;
|
|
701
|
+
setPageIndex: (index: number) => void;
|
|
702
|
+
setPageSize: (size: number) => void;
|
|
703
|
+
getLastEvaluatedKey: (pageIndex: number) => string | null;
|
|
704
|
+
setLastEvaluatedKey: (pageIndex: number, key: string | null) => void;
|
|
705
|
+
reset: (initialPageSize?: number) => void;
|
|
706
706
|
};
|
|
707
707
|
|
|
708
|
-
interface FormThemeProviderProps {
|
|
709
|
-
readonly children: React__default.ReactNode;
|
|
710
|
-
readonly enabled?: boolean;
|
|
711
|
-
}
|
|
712
|
-
declare function useThemeEnabled(): boolean;
|
|
708
|
+
interface FormThemeProviderProps {
|
|
709
|
+
readonly children: React__default.ReactNode;
|
|
710
|
+
readonly enabled?: boolean;
|
|
711
|
+
}
|
|
712
|
+
declare function useThemeEnabled(): boolean;
|
|
713
713
|
declare function FormThemeProvider({ children, enabled, }: FormThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
714
714
|
|
|
715
|
-
type IModalState = {
|
|
716
|
-
pluginCode: string;
|
|
717
|
-
formCode: string;
|
|
718
|
-
guid: string | null;
|
|
719
|
-
};
|
|
720
|
-
type ICurrentModalContext = [IModalState, React__default.Dispatch<React__default.SetStateAction<IModalState>>];
|
|
721
|
-
declare const ModalContext: React__default.Context<ICurrentModalContext>;
|
|
722
|
-
declare const ModalProvider: ({ children }: {
|
|
723
|
-
children: React__default.ReactNode;
|
|
715
|
+
type IModalState = {
|
|
716
|
+
pluginCode: string;
|
|
717
|
+
formCode: string;
|
|
718
|
+
guid: string | null;
|
|
719
|
+
};
|
|
720
|
+
type ICurrentModalContext = [IModalState, React__default.Dispatch<React__default.SetStateAction<IModalState>>];
|
|
721
|
+
declare const ModalContext: React__default.Context<ICurrentModalContext>;
|
|
722
|
+
declare const ModalProvider: ({ children }: {
|
|
723
|
+
children: React__default.ReactNode;
|
|
724
724
|
}) => react_jsx_runtime.JSX.Element;
|
|
725
725
|
|
|
726
|
-
declare const ViewportProvider: ({ children }: {
|
|
727
|
-
children: React__default.ReactNode;
|
|
728
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
729
|
-
declare const useViewport: () => {
|
|
730
|
-
width: number;
|
|
731
|
-
height: number;
|
|
732
|
-
isMobileDevice: boolean;
|
|
726
|
+
declare const ViewportProvider: ({ children }: {
|
|
727
|
+
children: React__default.ReactNode;
|
|
728
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
729
|
+
declare const useViewport: () => {
|
|
730
|
+
width: number;
|
|
731
|
+
height: number;
|
|
732
|
+
isMobileDevice: boolean;
|
|
733
733
|
};
|
|
734
734
|
|
|
735
|
-
interface ThemeConfig {
|
|
736
|
-
palette: {
|
|
737
|
-
primary: {
|
|
738
|
-
main: string;
|
|
739
|
-
dark: string;
|
|
740
|
-
light: string;
|
|
741
|
-
};
|
|
742
|
-
secondary: {
|
|
743
|
-
main: string;
|
|
744
|
-
dark: string;
|
|
745
|
-
};
|
|
746
|
-
background: {
|
|
747
|
-
default: string;
|
|
748
|
-
paper: string;
|
|
749
|
-
};
|
|
750
|
-
text: {
|
|
751
|
-
primary: string;
|
|
752
|
-
secondary: string;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
customColors: {
|
|
756
|
-
elBgClass: string;
|
|
757
|
-
elBorderClass: string;
|
|
758
|
-
elTextClass: string;
|
|
759
|
-
disabledElBgClass: string;
|
|
760
|
-
disabledElBorderClass: string;
|
|
761
|
-
disabledElTextClass: string;
|
|
762
|
-
};
|
|
763
|
-
typography: {
|
|
764
|
-
fontFamily: string;
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
declare const fetchProjectTheme: (baseURL: string, token: string) => Promise<ThemeConfig | null>;
|
|
768
|
-
declare const applyThemeToDom: (theme: ThemeConfig) => void;
|
|
735
|
+
interface ThemeConfig {
|
|
736
|
+
palette: {
|
|
737
|
+
primary: {
|
|
738
|
+
main: string;
|
|
739
|
+
dark: string;
|
|
740
|
+
light: string;
|
|
741
|
+
};
|
|
742
|
+
secondary: {
|
|
743
|
+
main: string;
|
|
744
|
+
dark: string;
|
|
745
|
+
};
|
|
746
|
+
background: {
|
|
747
|
+
default: string;
|
|
748
|
+
paper: string;
|
|
749
|
+
};
|
|
750
|
+
text: {
|
|
751
|
+
primary: string;
|
|
752
|
+
secondary: string;
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
customColors: {
|
|
756
|
+
elBgClass: string;
|
|
757
|
+
elBorderClass: string;
|
|
758
|
+
elTextClass: string;
|
|
759
|
+
disabledElBgClass: string;
|
|
760
|
+
disabledElBorderClass: string;
|
|
761
|
+
disabledElTextClass: string;
|
|
762
|
+
};
|
|
763
|
+
typography: {
|
|
764
|
+
fontFamily: string;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
declare const fetchProjectTheme: (baseURL: string, token: string) => Promise<ThemeConfig | null>;
|
|
768
|
+
declare const applyThemeToDom: (theme: ThemeConfig) => void;
|
|
769
769
|
declare const removeThemeFromDom: () => void;
|
|
770
770
|
|
|
771
|
-
interface ChunkPayload {
|
|
772
|
-
payload: ArrayBuffer;
|
|
773
|
-
contentRange?: string;
|
|
774
|
-
etag?: string;
|
|
775
|
-
lastModified?: string;
|
|
776
|
-
headers: Record<string, string>;
|
|
777
|
-
}
|
|
778
|
-
type TFile = {
|
|
779
|
-
pluginCode: string;
|
|
780
|
-
formCode: string;
|
|
781
|
-
guid?: string;
|
|
782
|
-
projectGuid?: string;
|
|
783
|
-
fieldName: string;
|
|
784
|
-
fileId: string;
|
|
785
|
-
};
|
|
786
|
-
type TGetLinkedFileMetaEvent = TFile & {
|
|
787
|
-
context: {
|
|
788
|
-
action: string;
|
|
789
|
-
};
|
|
790
|
-
};
|
|
791
|
-
type TGetFileByChunks = TFile & {
|
|
792
|
-
range: string;
|
|
793
|
-
};
|
|
794
|
-
type TGetPresignedUrlEvent = TFile & {
|
|
795
|
-
context: {
|
|
796
|
-
action: string;
|
|
797
|
-
};
|
|
798
|
-
};
|
|
799
|
-
declare function useBuildocsApi(customApiUrl?: string, tokenOverride?: string, langOverride?: string): {
|
|
800
|
-
fetchFormDefinitionWithMeta: (formId: string, data?: object) => Promise<{
|
|
801
|
-
type: string;
|
|
802
|
-
payload: any;
|
|
803
|
-
meta: {
|
|
804
|
-
requestStatus: string;
|
|
805
|
-
};
|
|
806
|
-
error?: undefined;
|
|
807
|
-
} | {
|
|
808
|
-
type: string;
|
|
809
|
-
payload: undefined;
|
|
810
|
-
error: any;
|
|
811
|
-
meta: {
|
|
812
|
-
requestStatus: string;
|
|
813
|
-
};
|
|
814
|
-
}>;
|
|
815
|
-
fetchFormDefinitionApi: (formId: string, data?: object) => Promise<any>;
|
|
816
|
-
uploadFiles: (params: {
|
|
817
|
-
content: FormData;
|
|
818
|
-
onUploadProgress?: Function;
|
|
819
|
-
cancelTokenSource?: CancelTokenSource;
|
|
820
|
-
}, customPath?: string) => Promise<{
|
|
821
|
-
type: string;
|
|
822
|
-
payload: any;
|
|
823
|
-
meta: {
|
|
824
|
-
requestStatus: string;
|
|
825
|
-
};
|
|
826
|
-
error?: undefined;
|
|
827
|
-
} | {
|
|
828
|
-
type: string;
|
|
829
|
-
payload: undefined;
|
|
830
|
-
error: any;
|
|
831
|
-
meta: {
|
|
832
|
-
requestStatus: string;
|
|
833
|
-
};
|
|
834
|
-
}>;
|
|
835
|
-
deleteFile: (payload: TFile, customPath?: string) => Promise<{
|
|
836
|
-
type: string;
|
|
837
|
-
payload: any;
|
|
838
|
-
meta: {
|
|
839
|
-
requestStatus: string;
|
|
840
|
-
};
|
|
841
|
-
error?: undefined;
|
|
842
|
-
} | {
|
|
843
|
-
type: string;
|
|
844
|
-
payload: undefined;
|
|
845
|
-
error: any;
|
|
846
|
-
meta: {
|
|
847
|
-
requestStatus: string;
|
|
848
|
-
};
|
|
849
|
-
}>;
|
|
850
|
-
getLinkedFile: (payload: TGetLinkedFileMetaEvent, customPath?: string) => Promise<{
|
|
851
|
-
type: string;
|
|
852
|
-
payload: any;
|
|
853
|
-
meta: {
|
|
854
|
-
requestStatus: string;
|
|
855
|
-
};
|
|
856
|
-
error?: undefined;
|
|
857
|
-
} | {
|
|
858
|
-
type: string;
|
|
859
|
-
payload: undefined;
|
|
860
|
-
error: any;
|
|
861
|
-
meta: {
|
|
862
|
-
requestStatus: string;
|
|
863
|
-
};
|
|
864
|
-
}>;
|
|
865
|
-
getLinkedFileByChunks: (payload: TGetFileByChunks, customPath?: string) => Promise<ChunkPayload>;
|
|
866
|
-
getPresignedUrl: (payload: TGetPresignedUrlEvent, customPath?: string) => Promise<{
|
|
867
|
-
type: string;
|
|
868
|
-
payload: any;
|
|
869
|
-
meta: {
|
|
870
|
-
requestStatus: string;
|
|
871
|
-
};
|
|
872
|
-
error?: undefined;
|
|
873
|
-
} | {
|
|
874
|
-
type: string;
|
|
875
|
-
payload: undefined;
|
|
876
|
-
error: any;
|
|
877
|
-
meta: {
|
|
878
|
-
requestStatus: string;
|
|
879
|
-
};
|
|
880
|
-
}>;
|
|
881
|
-
downloadFile: (payload: TFile, customPath?: string) => Promise<any>;
|
|
882
|
-
getLinkedFileMetaEvent: (payload: TGetLinkedFileMetaEvent, customPath?: string) => Promise<{
|
|
883
|
-
type: string;
|
|
884
|
-
payload: any;
|
|
885
|
-
meta: {
|
|
886
|
-
requestStatus: string;
|
|
887
|
-
};
|
|
888
|
-
error?: undefined;
|
|
889
|
-
} | {
|
|
890
|
-
type: string;
|
|
891
|
-
payload: undefined;
|
|
892
|
-
error: any;
|
|
893
|
-
meta: {
|
|
894
|
-
requestStatus: string;
|
|
895
|
-
};
|
|
896
|
-
}>;
|
|
897
|
-
checkFormAccess: (formId: string) => Promise<any>;
|
|
898
|
-
registerFormSubmitEvent: (formId: string) => Promise<any>;
|
|
899
|
-
submitForm: (formId: string, data: Record<string, any>, customPath?: string) => Promise<{
|
|
900
|
-
type: string;
|
|
901
|
-
payload: any;
|
|
902
|
-
meta: {
|
|
903
|
-
requestStatus: string;
|
|
904
|
-
};
|
|
905
|
-
error?: undefined;
|
|
906
|
-
} | {
|
|
907
|
-
type: string;
|
|
908
|
-
payload: undefined;
|
|
909
|
-
error: any;
|
|
910
|
-
meta: {
|
|
911
|
-
requestStatus: string;
|
|
912
|
-
};
|
|
913
|
-
}>;
|
|
914
|
-
runLoadForm: (payload: TLoadForm, customPath?: string) => Promise<{
|
|
915
|
-
type: string;
|
|
916
|
-
payload: any;
|
|
917
|
-
meta: {
|
|
918
|
-
requestStatus: string;
|
|
919
|
-
};
|
|
920
|
-
error?: undefined;
|
|
921
|
-
} | {
|
|
922
|
-
type: string;
|
|
923
|
-
payload: undefined;
|
|
924
|
-
error: any;
|
|
925
|
-
meta: {
|
|
926
|
-
requestStatus: string;
|
|
927
|
-
};
|
|
928
|
-
}>;
|
|
929
|
-
runEvent: (payload: RunEventArgs, customPath?: string) => Promise<{
|
|
930
|
-
type: string;
|
|
931
|
-
payload: any;
|
|
932
|
-
meta: {
|
|
933
|
-
requestStatus: string;
|
|
934
|
-
};
|
|
935
|
-
error?: undefined;
|
|
936
|
-
} | {
|
|
937
|
-
type: string;
|
|
938
|
-
payload: undefined;
|
|
939
|
-
error: any;
|
|
940
|
-
meta: {
|
|
941
|
-
requestStatus: string;
|
|
942
|
-
};
|
|
943
|
-
}>;
|
|
944
|
-
createCancelToken: () => CancelTokenSource;
|
|
771
|
+
interface ChunkPayload {
|
|
772
|
+
payload: ArrayBuffer;
|
|
773
|
+
contentRange?: string;
|
|
774
|
+
etag?: string;
|
|
775
|
+
lastModified?: string;
|
|
776
|
+
headers: Record<string, string>;
|
|
777
|
+
}
|
|
778
|
+
type TFile = {
|
|
779
|
+
pluginCode: string;
|
|
780
|
+
formCode: string;
|
|
781
|
+
guid?: string;
|
|
782
|
+
projectGuid?: string;
|
|
783
|
+
fieldName: string;
|
|
784
|
+
fileId: string;
|
|
785
|
+
};
|
|
786
|
+
type TGetLinkedFileMetaEvent = TFile & {
|
|
787
|
+
context: {
|
|
788
|
+
action: string;
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
type TGetFileByChunks = TFile & {
|
|
792
|
+
range: string;
|
|
793
|
+
};
|
|
794
|
+
type TGetPresignedUrlEvent = TFile & {
|
|
795
|
+
context: {
|
|
796
|
+
action: string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
declare function useBuildocsApi(customApiUrl?: string, tokenOverride?: string, langOverride?: string): {
|
|
800
|
+
fetchFormDefinitionWithMeta: (formId: string, data?: object) => Promise<{
|
|
801
|
+
type: string;
|
|
802
|
+
payload: any;
|
|
803
|
+
meta: {
|
|
804
|
+
requestStatus: string;
|
|
805
|
+
};
|
|
806
|
+
error?: undefined;
|
|
807
|
+
} | {
|
|
808
|
+
type: string;
|
|
809
|
+
payload: undefined;
|
|
810
|
+
error: any;
|
|
811
|
+
meta: {
|
|
812
|
+
requestStatus: string;
|
|
813
|
+
};
|
|
814
|
+
}>;
|
|
815
|
+
fetchFormDefinitionApi: (formId: string, data?: object) => Promise<any>;
|
|
816
|
+
uploadFiles: (params: {
|
|
817
|
+
content: FormData;
|
|
818
|
+
onUploadProgress?: Function;
|
|
819
|
+
cancelTokenSource?: CancelTokenSource;
|
|
820
|
+
}, customPath?: string) => Promise<{
|
|
821
|
+
type: string;
|
|
822
|
+
payload: any;
|
|
823
|
+
meta: {
|
|
824
|
+
requestStatus: string;
|
|
825
|
+
};
|
|
826
|
+
error?: undefined;
|
|
827
|
+
} | {
|
|
828
|
+
type: string;
|
|
829
|
+
payload: undefined;
|
|
830
|
+
error: any;
|
|
831
|
+
meta: {
|
|
832
|
+
requestStatus: string;
|
|
833
|
+
};
|
|
834
|
+
}>;
|
|
835
|
+
deleteFile: (payload: TFile, customPath?: string) => Promise<{
|
|
836
|
+
type: string;
|
|
837
|
+
payload: any;
|
|
838
|
+
meta: {
|
|
839
|
+
requestStatus: string;
|
|
840
|
+
};
|
|
841
|
+
error?: undefined;
|
|
842
|
+
} | {
|
|
843
|
+
type: string;
|
|
844
|
+
payload: undefined;
|
|
845
|
+
error: any;
|
|
846
|
+
meta: {
|
|
847
|
+
requestStatus: string;
|
|
848
|
+
};
|
|
849
|
+
}>;
|
|
850
|
+
getLinkedFile: (payload: TGetLinkedFileMetaEvent, customPath?: string) => Promise<{
|
|
851
|
+
type: string;
|
|
852
|
+
payload: any;
|
|
853
|
+
meta: {
|
|
854
|
+
requestStatus: string;
|
|
855
|
+
};
|
|
856
|
+
error?: undefined;
|
|
857
|
+
} | {
|
|
858
|
+
type: string;
|
|
859
|
+
payload: undefined;
|
|
860
|
+
error: any;
|
|
861
|
+
meta: {
|
|
862
|
+
requestStatus: string;
|
|
863
|
+
};
|
|
864
|
+
}>;
|
|
865
|
+
getLinkedFileByChunks: (payload: TGetFileByChunks, customPath?: string) => Promise<ChunkPayload>;
|
|
866
|
+
getPresignedUrl: (payload: TGetPresignedUrlEvent, customPath?: string) => Promise<{
|
|
867
|
+
type: string;
|
|
868
|
+
payload: any;
|
|
869
|
+
meta: {
|
|
870
|
+
requestStatus: string;
|
|
871
|
+
};
|
|
872
|
+
error?: undefined;
|
|
873
|
+
} | {
|
|
874
|
+
type: string;
|
|
875
|
+
payload: undefined;
|
|
876
|
+
error: any;
|
|
877
|
+
meta: {
|
|
878
|
+
requestStatus: string;
|
|
879
|
+
};
|
|
880
|
+
}>;
|
|
881
|
+
downloadFile: (payload: TFile, customPath?: string) => Promise<any>;
|
|
882
|
+
getLinkedFileMetaEvent: (payload: TGetLinkedFileMetaEvent, customPath?: string) => Promise<{
|
|
883
|
+
type: string;
|
|
884
|
+
payload: any;
|
|
885
|
+
meta: {
|
|
886
|
+
requestStatus: string;
|
|
887
|
+
};
|
|
888
|
+
error?: undefined;
|
|
889
|
+
} | {
|
|
890
|
+
type: string;
|
|
891
|
+
payload: undefined;
|
|
892
|
+
error: any;
|
|
893
|
+
meta: {
|
|
894
|
+
requestStatus: string;
|
|
895
|
+
};
|
|
896
|
+
}>;
|
|
897
|
+
checkFormAccess: (formId: string) => Promise<any>;
|
|
898
|
+
registerFormSubmitEvent: (formId: string) => Promise<any>;
|
|
899
|
+
submitForm: (formId: string, data: Record<string, any>, customPath?: string) => Promise<{
|
|
900
|
+
type: string;
|
|
901
|
+
payload: any;
|
|
902
|
+
meta: {
|
|
903
|
+
requestStatus: string;
|
|
904
|
+
};
|
|
905
|
+
error?: undefined;
|
|
906
|
+
} | {
|
|
907
|
+
type: string;
|
|
908
|
+
payload: undefined;
|
|
909
|
+
error: any;
|
|
910
|
+
meta: {
|
|
911
|
+
requestStatus: string;
|
|
912
|
+
};
|
|
913
|
+
}>;
|
|
914
|
+
runLoadForm: (payload: TLoadForm, customPath?: string) => Promise<{
|
|
915
|
+
type: string;
|
|
916
|
+
payload: any;
|
|
917
|
+
meta: {
|
|
918
|
+
requestStatus: string;
|
|
919
|
+
};
|
|
920
|
+
error?: undefined;
|
|
921
|
+
} | {
|
|
922
|
+
type: string;
|
|
923
|
+
payload: undefined;
|
|
924
|
+
error: any;
|
|
925
|
+
meta: {
|
|
926
|
+
requestStatus: string;
|
|
927
|
+
};
|
|
928
|
+
}>;
|
|
929
|
+
runEvent: (payload: RunEventArgs, customPath?: string) => Promise<{
|
|
930
|
+
type: string;
|
|
931
|
+
payload: any;
|
|
932
|
+
meta: {
|
|
933
|
+
requestStatus: string;
|
|
934
|
+
};
|
|
935
|
+
error?: undefined;
|
|
936
|
+
} | {
|
|
937
|
+
type: string;
|
|
938
|
+
payload: undefined;
|
|
939
|
+
error: any;
|
|
940
|
+
meta: {
|
|
941
|
+
requestStatus: string;
|
|
942
|
+
};
|
|
943
|
+
}>;
|
|
944
|
+
createCancelToken: () => CancelTokenSource;
|
|
945
945
|
};
|
|
946
946
|
|
|
947
947
|
declare function useSubscriptionPlan(): string | null;
|
|
948
948
|
|
|
949
|
-
interface BuildocsProviderProps {
|
|
950
|
-
readonly children: React__default.ReactNode;
|
|
951
|
-
readonly apiKey: string;
|
|
952
|
-
readonly themeEnabled?: boolean;
|
|
953
|
-
}
|
|
949
|
+
interface BuildocsProviderProps {
|
|
950
|
+
readonly children: React__default.ReactNode;
|
|
951
|
+
readonly apiKey: string;
|
|
952
|
+
readonly themeEnabled?: boolean;
|
|
953
|
+
}
|
|
954
954
|
declare function BuildocsProvider({ children, apiKey, themeEnabled, }: BuildocsProviderProps): react_jsx_runtime.JSX.Element;
|
|
955
955
|
|
|
956
|
-
interface BuildocsHostProviderProps {
|
|
957
|
-
readonly children: React__default.ReactNode;
|
|
958
|
-
readonly hostBridge: HostBridge;
|
|
959
|
-
}
|
|
956
|
+
interface BuildocsHostProviderProps {
|
|
957
|
+
readonly children: React__default.ReactNode;
|
|
958
|
+
readonly hostBridge: HostBridge;
|
|
959
|
+
}
|
|
960
960
|
declare function BuildocsHostProvider({ children, hostBridge, }: BuildocsHostProviderProps): react_jsx_runtime.JSX.Element;
|
|
961
961
|
|
|
962
|
-
interface BuildocsExtendedEditorContextType {
|
|
963
|
-
isBuildocsExtendedEditor: boolean;
|
|
964
|
-
}
|
|
965
|
-
interface BuildocsExtendedEditorProviderProps {
|
|
966
|
-
children: ReactNode;
|
|
967
|
-
isBuildocsExtendedEditor?: boolean;
|
|
968
|
-
}
|
|
969
|
-
declare const BuildocsExtendedEditorProvider: React__default.FC<BuildocsExtendedEditorProviderProps>;
|
|
962
|
+
interface BuildocsExtendedEditorContextType {
|
|
963
|
+
isBuildocsExtendedEditor: boolean;
|
|
964
|
+
}
|
|
965
|
+
interface BuildocsExtendedEditorProviderProps {
|
|
966
|
+
children: ReactNode;
|
|
967
|
+
isBuildocsExtendedEditor?: boolean;
|
|
968
|
+
}
|
|
969
|
+
declare const BuildocsExtendedEditorProvider: React__default.FC<BuildocsExtendedEditorProviderProps>;
|
|
970
970
|
declare const useBuildocsExtendedEditor: () => BuildocsExtendedEditorContextType;
|
|
971
971
|
|
|
972
|
-
interface IFormEditor {
|
|
973
|
-
formDefinition: {} | null;
|
|
972
|
+
interface IFormEditor {
|
|
973
|
+
formDefinition: {} | null;
|
|
974
974
|
}
|
|
975
975
|
|
|
976
|
-
declare const PluginWaitForm: React$1.
|
|
976
|
+
declare const PluginWaitForm: React$1.MemoExoticComponent<(props: TBuildPlugin) => react_jsx_runtime.JSX.Element>;
|
|
977
977
|
|
|
978
|
-
declare class FormCommon {
|
|
979
|
-
static debounce<T extends (...args: any[]) => void>(fn: T, wait?: number): T & {
|
|
980
|
-
cancel: () => void;
|
|
981
|
-
flush: () => void;
|
|
982
|
-
};
|
|
983
|
-
static getDefaultTabIndex: (formData: any) => number;
|
|
984
|
-
static getComponentByStrictType: (stricttype: string) => React$1.
|
|
985
|
-
static getItemDefaultName: (component: any, nodeData: any) => string;
|
|
986
|
-
static getTypeAsString: (component: any) => string | undefined;
|
|
987
|
-
static getItemCount: (component: any, nodeData: any, ElCounter: any) => any;
|
|
988
|
-
/**
|
|
989
|
-
* Returns container data (recursion)
|
|
990
|
-
* @param nodeData
|
|
991
|
-
* @param widgetId
|
|
992
|
-
* @param path
|
|
993
|
-
* @returns {{path: *[], data}|{path: *[], data: *}|{path: *[], data: *}|*|{path: *[], data: [], index: *}|{path: *[], data: [], index: *}|{path: *[], data: [], index}}
|
|
994
|
-
* @private
|
|
995
|
-
*/
|
|
996
|
-
static getTabContainerChildrens: (nodeData: any, widgetId: any, path?: any) => any;
|
|
997
|
-
static mapComponents: (data: []) => void;
|
|
998
|
-
/**
|
|
999
|
-
* Returns the widget item (recursion)
|
|
1000
|
-
* @param nodeData
|
|
1001
|
-
* @param widgetId
|
|
1002
|
-
* @returns {*|{item: *, index: *}|{item: *, index: *}|{item, index}}
|
|
1003
|
-
* @private
|
|
1004
|
-
*/
|
|
1005
|
-
static findWidgetByIdRecursive: (nodeData: any, widgetId: any, path?: any) => WidgetItemResult | undefined;
|
|
1006
|
-
static findPanelItem: (tabId: string, panelId: string, data: any) => {
|
|
1007
|
-
item: any;
|
|
1008
|
-
index: any;
|
|
1009
|
-
};
|
|
1010
|
-
static findRowItem: (tabId: string | null, panelId: string | null, id: string, data: any) => TRowItemResult;
|
|
1011
|
-
static findTableCellItem: (tabId: string, panelId: string, rowId: string, segmentId: string, data: any) => {
|
|
1012
|
-
item: any;
|
|
1013
|
-
index: any;
|
|
1014
|
-
};
|
|
1015
|
-
static findSegmentItem: (tabId: string, panelId: string, rowId: string, segmentId: string, data: any) => {
|
|
1016
|
-
item: any;
|
|
1017
|
-
index: any;
|
|
1018
|
-
};
|
|
1019
|
-
static GetParentTabId(nodeData: any, tabId: string, tabIndex?: {
|
|
1020
|
-
[key: string]: number;
|
|
1021
|
-
}): {
|
|
1022
|
-
tabId: string;
|
|
1023
|
-
index: number;
|
|
1024
|
-
} | null;
|
|
1025
|
-
static getTabWidgetByFieldName(fieldName: string, nodeData: any, tabIndex?: {
|
|
1026
|
-
[key: string]: number;
|
|
1027
|
-
}): {
|
|
1028
|
-
tabId: any;
|
|
1029
|
-
index: number;
|
|
1030
|
-
} | null;
|
|
1031
|
-
/**
|
|
1032
|
-
* Returns the correct container widget (recursion)
|
|
1033
|
-
* @param nodeData
|
|
1034
|
-
* @param tabId
|
|
1035
|
-
* @returns {{path: *[], item, index}|*|{path: [], item: *, index: *}|{path: [], item: *, index: *}|null}
|
|
1036
|
-
* @private
|
|
1037
|
-
*/
|
|
1038
|
-
static getTabContainer: (nodeData: any, tabId: string, path?: any) => any;
|
|
1039
|
-
/**
|
|
1040
|
-
* Returns an element update path for immutable (nested position in form widgets data object)
|
|
1041
|
-
* @param pos
|
|
1042
|
-
* @param path
|
|
1043
|
-
* @param experssion
|
|
1044
|
-
* @returns {{}}
|
|
1045
|
-
* @private
|
|
1046
|
-
*/
|
|
1047
|
-
static getNodeUpdatePath: (path: any, experssion: any) => {};
|
|
1048
|
-
static getActiveTabIndex: (data: any, tabId: string) => number | null;
|
|
1049
|
-
static getActiveTabPanelId: (data: any, tabId: string) => any;
|
|
1050
|
-
static isChildrenTab: (formData: any, targetId: string, tabId: string) => boolean;
|
|
1051
|
-
static getAllTabIdInChain: (formData: any, result?: any) => any;
|
|
1052
|
-
static getUrlParameter: (parameterName: string) => string | null;
|
|
1053
|
-
static hasParentForm2: () => boolean;
|
|
1054
|
-
static hasParentForm: () => boolean;
|
|
1055
|
-
static extractProjectGuid: (url: string) => string | null;
|
|
978
|
+
declare class FormCommon {
|
|
979
|
+
static debounce<T extends (...args: any[]) => void>(fn: T, wait?: number): T & {
|
|
980
|
+
cancel: () => void;
|
|
981
|
+
flush: () => void;
|
|
982
|
+
};
|
|
983
|
+
static getDefaultTabIndex: (formData: any) => number;
|
|
984
|
+
static getComponentByStrictType: (stricttype: string) => React$1.MemoExoticComponent<({ tabId, panelId, rowId, segmentId, id, properties, onPointerUp, getSelectedWidgetId, findWidgetItem, moveWidgetItem, }: any) => react_jsx_runtime.JSX.Element> | undefined;
|
|
985
|
+
static getItemDefaultName: (component: any, nodeData: any) => string;
|
|
986
|
+
static getTypeAsString: (component: any) => string | undefined;
|
|
987
|
+
static getItemCount: (component: any, nodeData: any, ElCounter: any) => any;
|
|
988
|
+
/**
|
|
989
|
+
* Returns container data (recursion)
|
|
990
|
+
* @param nodeData
|
|
991
|
+
* @param widgetId
|
|
992
|
+
* @param path
|
|
993
|
+
* @returns {{path: *[], data}|{path: *[], data: *}|{path: *[], data: *}|*|{path: *[], data: [], index: *}|{path: *[], data: [], index: *}|{path: *[], data: [], index}}
|
|
994
|
+
* @private
|
|
995
|
+
*/
|
|
996
|
+
static getTabContainerChildrens: (nodeData: any, widgetId: any, path?: any) => any;
|
|
997
|
+
static mapComponents: (data: []) => void;
|
|
998
|
+
/**
|
|
999
|
+
* Returns the widget item (recursion)
|
|
1000
|
+
* @param nodeData
|
|
1001
|
+
* @param widgetId
|
|
1002
|
+
* @returns {*|{item: *, index: *}|{item: *, index: *}|{item, index}}
|
|
1003
|
+
* @private
|
|
1004
|
+
*/
|
|
1005
|
+
static findWidgetByIdRecursive: (nodeData: any, widgetId: any, path?: any) => WidgetItemResult | undefined;
|
|
1006
|
+
static findPanelItem: (tabId: string, panelId: string, data: any) => {
|
|
1007
|
+
item: any;
|
|
1008
|
+
index: any;
|
|
1009
|
+
};
|
|
1010
|
+
static findRowItem: (tabId: string | null, panelId: string | null, id: string, data: any) => TRowItemResult;
|
|
1011
|
+
static findTableCellItem: (tabId: string, panelId: string, rowId: string, segmentId: string, data: any) => {
|
|
1012
|
+
item: any;
|
|
1013
|
+
index: any;
|
|
1014
|
+
};
|
|
1015
|
+
static findSegmentItem: (tabId: string, panelId: string, rowId: string, segmentId: string, data: any) => {
|
|
1016
|
+
item: any;
|
|
1017
|
+
index: any;
|
|
1018
|
+
};
|
|
1019
|
+
static GetParentTabId(nodeData: any, tabId: string, tabIndex?: {
|
|
1020
|
+
[key: string]: number;
|
|
1021
|
+
}): {
|
|
1022
|
+
tabId: string;
|
|
1023
|
+
index: number;
|
|
1024
|
+
} | null;
|
|
1025
|
+
static getTabWidgetByFieldName(fieldName: string, nodeData: any, tabIndex?: {
|
|
1026
|
+
[key: string]: number;
|
|
1027
|
+
}): {
|
|
1028
|
+
tabId: any;
|
|
1029
|
+
index: number;
|
|
1030
|
+
} | null;
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns the correct container widget (recursion)
|
|
1033
|
+
* @param nodeData
|
|
1034
|
+
* @param tabId
|
|
1035
|
+
* @returns {{path: *[], item, index}|*|{path: [], item: *, index: *}|{path: [], item: *, index: *}|null}
|
|
1036
|
+
* @private
|
|
1037
|
+
*/
|
|
1038
|
+
static getTabContainer: (nodeData: any, tabId: string, path?: any) => any;
|
|
1039
|
+
/**
|
|
1040
|
+
* Returns an element update path for immutable (nested position in form widgets data object)
|
|
1041
|
+
* @param pos
|
|
1042
|
+
* @param path
|
|
1043
|
+
* @param experssion
|
|
1044
|
+
* @returns {{}}
|
|
1045
|
+
* @private
|
|
1046
|
+
*/
|
|
1047
|
+
static getNodeUpdatePath: (path: any, experssion: any) => {};
|
|
1048
|
+
static getActiveTabIndex: (data: any, tabId: string) => number | null;
|
|
1049
|
+
static getActiveTabPanelId: (data: any, tabId: string) => any;
|
|
1050
|
+
static isChildrenTab: (formData: any, targetId: string, tabId: string) => boolean;
|
|
1051
|
+
static getAllTabIdInChain: (formData: any, result?: any) => any;
|
|
1052
|
+
static getUrlParameter: (parameterName: string) => string | null;
|
|
1053
|
+
static hasParentForm2: () => boolean;
|
|
1054
|
+
static hasParentForm: () => boolean;
|
|
1055
|
+
static extractProjectGuid: (url: string) => string | null;
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
|
-
declare const ModalWindow: React__default.
|
|
1058
|
+
declare const ModalWindow: React__default.MemoExoticComponent<(props: TModalWindow) => react_jsx_runtime.JSX.Element>;
|
|
1059
1059
|
|
|
1060
|
-
declare class FormEvents {
|
|
1061
|
-
static readonly onChange = "onChange";
|
|
1062
|
-
static readonly onClick = "onClick";
|
|
1063
|
-
static readonly onCancel = "onCancel";
|
|
1064
|
-
static readonly onDelete = "onDelete";
|
|
1065
|
-
static readonly onPrint = "onPrint";
|
|
1066
|
-
static readonly onSave = "onSave";
|
|
1067
|
-
static readonly onRefresh = "onRefresh";
|
|
1068
|
-
static readonly onTableDataLoad = "onTableLoadData";
|
|
1069
|
-
static readonly onTableEditDataLoad = "onTableEditLoadData";
|
|
1070
|
-
static readonly onTableCreateRecordEvent = "onTableCreateRecordEvent";
|
|
1071
|
-
static readonly onFolderCreateRecordEvent = "onFolderCreateRecordEvent";
|
|
1072
|
-
static readonly onFolderEditRecordEvent = "onFolderEditRecordEvent";
|
|
1073
|
-
static readonly onFolderShareRecordEvent = "onFolderShareRecordEvent";
|
|
1074
|
-
static readonly onTableSelectRowEvent = "onTableSelectRowEvent";
|
|
1075
|
-
static readonly onTableRunActionEvent = "onTableRunActionEvent";
|
|
1076
|
-
static readonly onTableRunBatchActionEvent = "onTableRunBatchActionEvent";
|
|
1077
|
-
static readonly onTableEditRunActionEvent = "onTableEditRunActionEvent";
|
|
1078
|
-
static readonly onFoldersDataLoad = "onFoldersLoadData";
|
|
1079
|
-
static readonly onFileUploadEvent = "onFileUpload";
|
|
1080
|
-
static readonly onFileUploadCreateDocumentEvent = "onFileUploadCreateDocument";
|
|
1081
|
-
static readonly onStartSignProcess = "onStartSignProcess";
|
|
1082
|
-
static readonly onFinishSignProcess = "onFinishSignProcess";
|
|
1083
|
-
static readonly onLoadNewRecordTemplates = "onLoadNewRecordTemplates";
|
|
1084
|
-
static readonly onDirectRunFormEvent = "onDirectRunFormEvent";
|
|
1085
|
-
static readonly onGetCustomResponse = "onGetCustomResponse";
|
|
1086
|
-
static getFormButtonEvent(type: string): string | null;
|
|
1060
|
+
declare class FormEvents {
|
|
1061
|
+
static readonly onChange = "onChange";
|
|
1062
|
+
static readonly onClick = "onClick";
|
|
1063
|
+
static readonly onCancel = "onCancel";
|
|
1064
|
+
static readonly onDelete = "onDelete";
|
|
1065
|
+
static readonly onPrint = "onPrint";
|
|
1066
|
+
static readonly onSave = "onSave";
|
|
1067
|
+
static readonly onRefresh = "onRefresh";
|
|
1068
|
+
static readonly onTableDataLoad = "onTableLoadData";
|
|
1069
|
+
static readonly onTableEditDataLoad = "onTableEditLoadData";
|
|
1070
|
+
static readonly onTableCreateRecordEvent = "onTableCreateRecordEvent";
|
|
1071
|
+
static readonly onFolderCreateRecordEvent = "onFolderCreateRecordEvent";
|
|
1072
|
+
static readonly onFolderEditRecordEvent = "onFolderEditRecordEvent";
|
|
1073
|
+
static readonly onFolderShareRecordEvent = "onFolderShareRecordEvent";
|
|
1074
|
+
static readonly onTableSelectRowEvent = "onTableSelectRowEvent";
|
|
1075
|
+
static readonly onTableRunActionEvent = "onTableRunActionEvent";
|
|
1076
|
+
static readonly onTableRunBatchActionEvent = "onTableRunBatchActionEvent";
|
|
1077
|
+
static readonly onTableEditRunActionEvent = "onTableEditRunActionEvent";
|
|
1078
|
+
static readonly onFoldersDataLoad = "onFoldersLoadData";
|
|
1079
|
+
static readonly onFileUploadEvent = "onFileUpload";
|
|
1080
|
+
static readonly onFileUploadCreateDocumentEvent = "onFileUploadCreateDocument";
|
|
1081
|
+
static readonly onStartSignProcess = "onStartSignProcess";
|
|
1082
|
+
static readonly onFinishSignProcess = "onFinishSignProcess";
|
|
1083
|
+
static readonly onLoadNewRecordTemplates = "onLoadNewRecordTemplates";
|
|
1084
|
+
static readonly onDirectRunFormEvent = "onDirectRunFormEvent";
|
|
1085
|
+
static readonly onGetCustomResponse = "onGetCustomResponse";
|
|
1086
|
+
static getFormButtonEvent(type: string): string | null;
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
1089
|
export { type ApiConfig, ApiConfigProvider, BuildocsExtendedEditorProvider, BuildocsHostProvider, type BuildocsHostProviderProps, BuildocsProvider, type BuildocsProviderProps, type ChunkPayload$1 as ChunkPayload, type ChunkRequestArgs, type ComponentLoader, type DataTableMeta, type DeleteFileEventArgs, type DownloadFileEventArgs, DynamicComponent, DynamicComponentLoaderProvider, type FileMetaEventArgs, FormCommon, FormEvents, FormLayoutProviderBridge, FormThemeProvider, type FormThemeProviderProps, type GetLinkedFileMetaEventArgs, type HostBridge, HostBridgeProvider, type ICurrentModalContext, type IFormEditor, type IFormRequest, type IModalState, type IUser, type IUserEnv, type IUserMenu, LanguageSwitcher, type LoadedModule, ModalContext, ModalProvider, ModalWindow, PersistentStateProvider, PluginWaitForm, type RunEventArgs, type TAutoSave, type TBuildPlugin, type TCommandCollection, type TContextType, type TDataTableMeta, type TDeleteRecordPrompt, type TFieldValues, type TFolderData, type TFolderId, type TFormEvent, type THotReloadContext, type TLoadForm, type TMessage, type TMethodProvider, type TModalWindow, type TOriginator, type TOriginatorParams, type TParent, type TPingArgs, type TPreviewDocument, type TProjectItem, type TProjectMeta, type TProjectRights, type TRedrawFolders, type TRowItemResult, type TSegmentItemResult, type TUserMenuRequest, type TWidgetContext, type TWidgetsState, type ThemeConfig, type ToastApi, ErrorMessage as ToastErrorMessage, ToastFnsProvider, InfoMessage as ToastInfoMessage, type ToastMessageProps, ToastNotification as ToastNotificationAdapter, SuccessMessage as ToastSuccessMessage, WarningMessage as ToastWarningMessage, UiComponentsProvider, type UploadArgs, HostUserDialog as UserDialogAdapter, type UserDialogProps, ViewportProvider, type WidgetItemResult, applyThemeToDom, createCachedComponentLoader, fetchProjectTheme, getLoadedLocales, initializeDayjs, isDayjsInitialized, isLocaleLoaded, loadLocale, preloadLocales, removeThemeFromDom, useApiConfig, useBuildocsApi, useBuildocsExtendedEditor, useComponentLoader, useDatatablePagination, useErrorMessage, useFormLayoutComponent, useHostBridgeProvider, useInfoMessage, usePersistentState, useSubscriptionPlan, useSuccessMessage, useThemeEnabled, useToast, useUiComponents, useViewport, useWarningMessage, useWidgetPersistentState };
|