@fctc/widget-logic 5.3.7-beta.15 → 5.3.7-beta.16
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/package.json +1 -1
- package/dist/config.d.mts +0 -5
- package/dist/config.d.ts +0 -5
- package/dist/config.js +0 -24
- package/dist/config.mjs +0 -2
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +0 -24
- package/dist/constants.mjs +0 -2
- package/dist/environment.d.mts +0 -1
- package/dist/environment.d.ts +0 -1
- package/dist/environment.js +0 -24
- package/dist/environment.mjs +0 -2
- package/dist/hooks.d.mts +0 -1179
- package/dist/hooks.d.ts +0 -1179
- package/dist/hooks.js +0 -1273
- package/dist/hooks.mjs +0 -1247
- package/dist/index.d.mts +0 -15
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -3009
- package/dist/index.mjs +0 -3089
- package/dist/provider.d.mts +0 -1
- package/dist/provider.d.ts +0 -1
- package/dist/provider.js +0 -24
- package/dist/provider.mjs +0 -2
- package/dist/services.d.mts +0 -1
- package/dist/services.d.ts +0 -1
- package/dist/services.js +0 -24
- package/dist/services.mjs +0 -2
- package/dist/types.d.mts +0 -36
- package/dist/types.d.ts +0 -36
- package/dist/types.js +0 -24
- package/dist/types.mjs +0 -2
- package/dist/utils.d.mts +0 -23
- package/dist/utils.d.ts +0 -23
- package/dist/utils.js +0 -436
- package/dist/utils.mjs +0 -389
- package/dist/widget.d.mts +0 -328
- package/dist/widget.d.ts +0 -328
- package/dist/widget.js +0 -2379
- package/dist/widget.mjs +0 -2432
package/dist/widget.d.ts
DELETED
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ChangeEvent } from 'react';
|
|
3
|
-
import { IInputFieldProps } from './types.js';
|
|
4
|
-
import '@fctc/interface-logic/types';
|
|
5
|
-
|
|
6
|
-
type TStatus = 'normal' | 'done' | 'blocked';
|
|
7
|
-
interface TStatusDropdownFieldProps extends IInputFieldProps {
|
|
8
|
-
state: any;
|
|
9
|
-
selection: any;
|
|
10
|
-
id: any;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const statusDropdownController: (props: TStatusDropdownFieldProps) => {
|
|
14
|
-
handleClick: (status: any) => Promise<void>;
|
|
15
|
-
buttonRef: react.RefObject<HTMLDivElement>;
|
|
16
|
-
isForm: boolean | undefined;
|
|
17
|
-
setIsOpen: react.Dispatch<react.SetStateAction<boolean>>;
|
|
18
|
-
isOpen: boolean;
|
|
19
|
-
selection: any;
|
|
20
|
-
state: any;
|
|
21
|
-
colors: Record<TStatus, string>;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
interface IMany2OneProps extends IInputFieldProps {
|
|
25
|
-
context?: any;
|
|
26
|
-
options?: any;
|
|
27
|
-
showDetail?: boolean;
|
|
28
|
-
actionData?: any;
|
|
29
|
-
sessionStorageUtils?: any;
|
|
30
|
-
service?: string;
|
|
31
|
-
xNode?: string;
|
|
32
|
-
in_list_view?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare const many2oneFieldController: (props: IMany2OneProps) => {
|
|
36
|
-
isShowModalMany2Many: boolean;
|
|
37
|
-
isFetching: boolean;
|
|
38
|
-
initValue: any;
|
|
39
|
-
handleChooseRecord: (idRecord: number) => void;
|
|
40
|
-
handleClose: () => void;
|
|
41
|
-
handleSelectChange: (selectedOption: any) => void;
|
|
42
|
-
domainModal: null;
|
|
43
|
-
setInputValue: react.Dispatch<react.SetStateAction<string>>;
|
|
44
|
-
allowShowDetail: any;
|
|
45
|
-
contextObject: any;
|
|
46
|
-
tempSelectedOption: any;
|
|
47
|
-
listOptions: never[];
|
|
48
|
-
fetchMoreOptions: () => void;
|
|
49
|
-
domainObject: any;
|
|
50
|
-
setIsShowModalMany2Many: react.Dispatch<react.SetStateAction<boolean>>;
|
|
51
|
-
setDomainObject: react.Dispatch<react.SetStateAction<null>>;
|
|
52
|
-
options: any;
|
|
53
|
-
relation: any;
|
|
54
|
-
service: any;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type Option = {
|
|
58
|
-
value: number;
|
|
59
|
-
label: string;
|
|
60
|
-
};
|
|
61
|
-
declare const many2oneButtonController: (props: any) => {
|
|
62
|
-
options: Option[];
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
66
|
-
relation: string;
|
|
67
|
-
domain?: any;
|
|
68
|
-
context?: any;
|
|
69
|
-
options?: any;
|
|
70
|
-
enabled?: boolean;
|
|
71
|
-
service?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
75
|
-
rows: any[];
|
|
76
|
-
columns: any;
|
|
77
|
-
optionsObject: any;
|
|
78
|
-
viewData: any;
|
|
79
|
-
totalRows: any;
|
|
80
|
-
onToggleColumnOptional: (item: any) => void;
|
|
81
|
-
typeTable: "list" | "group" | "calendar" | undefined;
|
|
82
|
-
isLoading: boolean;
|
|
83
|
-
isFetched: boolean;
|
|
84
|
-
isPlaceholderData: boolean;
|
|
85
|
-
page: number;
|
|
86
|
-
pageLimit: number;
|
|
87
|
-
groupByList: any;
|
|
88
|
-
selectedRowKeys: number[];
|
|
89
|
-
domain: any;
|
|
90
|
-
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
91
|
-
setDomain: react.Dispatch<any>;
|
|
92
|
-
setPageLimit: react.Dispatch<react.SetStateAction<number>>;
|
|
93
|
-
setGroupByList: react.Dispatch<any>;
|
|
94
|
-
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
95
|
-
searchController: {
|
|
96
|
-
groupBy: any[] | null;
|
|
97
|
-
searchBy: any[] | null;
|
|
98
|
-
filterBy: any[] | null;
|
|
99
|
-
selectedTags: any[] | null;
|
|
100
|
-
searchString: string;
|
|
101
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
102
|
-
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
103
|
-
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
104
|
-
clearSearch: () => void;
|
|
105
|
-
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
106
|
-
removeSearchItems: (key: string, item: any) => void;
|
|
107
|
-
onSearchString: (search_string: string) => void;
|
|
108
|
-
handleAddTagSearch: (tag: any) => void;
|
|
109
|
-
domain: any[] | undefined;
|
|
110
|
-
context: any;
|
|
111
|
-
onKeyDown: (e: any) => void;
|
|
112
|
-
handleMouseEnter: (index: number) => void;
|
|
113
|
-
handleMouseLeave: () => void;
|
|
114
|
-
hoveredIndexSearchList: number | null;
|
|
115
|
-
};
|
|
116
|
-
handleCreateNewOnPage: () => Promise<void>;
|
|
117
|
-
specification: Record<string, any> | null;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
121
|
-
options: any;
|
|
122
|
-
placeholderNoOption: string;
|
|
123
|
-
service?: string;
|
|
124
|
-
xNode?: string;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
128
|
-
options: any[];
|
|
129
|
-
transfer: (data: any) => any;
|
|
130
|
-
isUser: boolean;
|
|
131
|
-
isFetching: boolean;
|
|
132
|
-
fetchMoreOptions: () => void;
|
|
133
|
-
domainObject: any;
|
|
134
|
-
setDomainObject: react.Dispatch<any>;
|
|
135
|
-
handleChooseRecord: (idRecord: number) => void;
|
|
136
|
-
handleClose: () => void;
|
|
137
|
-
isShowModalMany2Many: boolean;
|
|
138
|
-
setIsShowModalMany2Many: react.Dispatch<react.SetStateAction<boolean>>;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
interface IDurationFieldProps extends IInputFieldProps {
|
|
142
|
-
id: any;
|
|
143
|
-
enabled?: any;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare const durationController: (props: IDurationFieldProps) => {
|
|
147
|
-
dataResponse: any;
|
|
148
|
-
handleClick: (stage_id: any) => Promise<void>;
|
|
149
|
-
disabled: boolean;
|
|
150
|
-
modelStatus: boolean;
|
|
151
|
-
setModalStatus: react.Dispatch<react.SetStateAction<boolean>>;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
interface IPriorityFieldProps extends IInputFieldProps {
|
|
155
|
-
id: any;
|
|
156
|
-
actionData: any;
|
|
157
|
-
context: any;
|
|
158
|
-
specification?: any;
|
|
159
|
-
index?: number;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
163
|
-
savePriorities: ({ value, resetPriority, }: {
|
|
164
|
-
value: number;
|
|
165
|
-
resetPriority?: () => void;
|
|
166
|
-
}) => Promise<void>;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
declare const downloadFileController: () => {
|
|
170
|
-
inputId: string;
|
|
171
|
-
file: any;
|
|
172
|
-
handleFileChange: (e: any) => void;
|
|
173
|
-
handleFileDownload: () => void;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
declare const downLoadBinaryController: (props: IInputFieldProps) => {
|
|
177
|
-
handleFileDownload: (e: any) => Promise<void>;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
declare const copyLinkButtonController: (props: IInputFieldProps) => {
|
|
181
|
-
isCopied: boolean;
|
|
182
|
-
handleCopyToClipboard: (value: string) => Promise<void>;
|
|
183
|
-
propValue: any;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
interface IColorFieldProps extends IInputFieldProps {
|
|
187
|
-
actionData: any;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
declare const colorFieldController: (props: IColorFieldProps) => {
|
|
191
|
-
savePickColor: (colorObject: any) => Promise<void>;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
interface IBinaryFieldProps extends IInputFieldProps {
|
|
195
|
-
service?: string;
|
|
196
|
-
xNode?: string;
|
|
197
|
-
path?: string;
|
|
198
|
-
rootField?: any;
|
|
199
|
-
index?: number;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
type FileInfor = {
|
|
203
|
-
type?: string;
|
|
204
|
-
date?: string;
|
|
205
|
-
size?: string;
|
|
206
|
-
};
|
|
207
|
-
declare const binaryFieldController: (props: IBinaryFieldProps) => {
|
|
208
|
-
onUploadFile: (formData: FormData) => Promise<any>;
|
|
209
|
-
onDeleteFile: () => void;
|
|
210
|
-
fileInfo: FileInfor | null;
|
|
211
|
-
url: any;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
type UploadDeps = {
|
|
215
|
-
service?: any;
|
|
216
|
-
xNode?: any;
|
|
217
|
-
path?: any;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
declare const many2manyBinaryController: (props: IInputFieldProps & UploadDeps & {
|
|
221
|
-
rootField?: any;
|
|
222
|
-
index?: number;
|
|
223
|
-
}) => {
|
|
224
|
-
inputId: string;
|
|
225
|
-
initialFiles: any[];
|
|
226
|
-
binaryRef: react.RefObject<HTMLDivElement>;
|
|
227
|
-
handleFileChange: (files: any, e: ChangeEvent<HTMLInputElement>, oldValues: any) => Promise<void>;
|
|
228
|
-
handleRemoveAt: (idx: number) => void;
|
|
229
|
-
handleRemoveAll: () => void;
|
|
230
|
-
checkIsImageLink: (url: string) => boolean;
|
|
231
|
-
setInitialFiles: react.Dispatch<react.SetStateAction<any[]>>;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
interface IProviderEinvoiceFieldProps extends IInputFieldProps {
|
|
235
|
-
options?: any;
|
|
236
|
-
xNode?: any;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
declare const providerEinvoiceFieldController: (props: IProviderEinvoiceFieldProps) => {
|
|
240
|
-
listDataCard: any;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
declare const tableHeadController: (props: any) => {
|
|
244
|
-
handleCheckBoxAll: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
245
|
-
checkedAll: any;
|
|
246
|
-
selectedRowKeysRef: react.MutableRefObject<any[]>;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
interface ITableHeadProps {
|
|
250
|
-
typeTable: string;
|
|
251
|
-
rows: any[];
|
|
252
|
-
tableRef: React.RefObject<HTMLTableElement | null>;
|
|
253
|
-
groupByList: any;
|
|
254
|
-
selectedRowKeys: any;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
interface ITableProps {
|
|
258
|
-
data: {
|
|
259
|
-
fields: any[];
|
|
260
|
-
records: any[];
|
|
261
|
-
dataModel: {
|
|
262
|
-
[fieldName: string]: {
|
|
263
|
-
string?: string;
|
|
264
|
-
[key: string]: any;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
context: any;
|
|
268
|
-
typeTable?: 'list' | 'group' | 'calendar';
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
interface ISelctionStateProps {
|
|
272
|
-
typeTable?: string;
|
|
273
|
-
tableRef: any;
|
|
274
|
-
rows?: any[];
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
declare const tableController: ({ data }: ITableProps) => {
|
|
278
|
-
rows: any[];
|
|
279
|
-
columns: any;
|
|
280
|
-
onToggleColumnOptional: (item: any) => void;
|
|
281
|
-
typeTable: "list" | "group" | "calendar" | undefined;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
declare const tableGroupController: (props: any) => {
|
|
285
|
-
colEmptyGroup: {
|
|
286
|
-
fromStart: number;
|
|
287
|
-
fromEnd: number;
|
|
288
|
-
};
|
|
289
|
-
isShowGroup: boolean;
|
|
290
|
-
isDataGroupFetched: boolean;
|
|
291
|
-
isDataPlaceHolder: boolean;
|
|
292
|
-
columnsGroup: any;
|
|
293
|
-
rowsGroup: any[];
|
|
294
|
-
dataGroup: any;
|
|
295
|
-
pageGroup: any;
|
|
296
|
-
setPageGroup: react.Dispatch<any>;
|
|
297
|
-
typeTableGroup: "list" | "group" | "calendar" | undefined;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
|
|
301
|
-
viewData: any;
|
|
302
|
-
model: string;
|
|
303
|
-
context: any;
|
|
304
|
-
domain: any;
|
|
305
|
-
fieldsList: any[];
|
|
306
|
-
}) => {
|
|
307
|
-
groupBy: any[] | null;
|
|
308
|
-
searchBy: any[] | null;
|
|
309
|
-
filterBy: any[] | null;
|
|
310
|
-
selectedTags: any[] | null;
|
|
311
|
-
searchString: string;
|
|
312
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
313
|
-
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
314
|
-
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
315
|
-
clearSearch: () => void;
|
|
316
|
-
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
317
|
-
removeSearchItems: (key: string, item: any) => void;
|
|
318
|
-
onSearchString: (search_string: string) => void;
|
|
319
|
-
handleAddTagSearch: (tag: any) => void;
|
|
320
|
-
domain: any[] | undefined;
|
|
321
|
-
context: any;
|
|
322
|
-
onKeyDown: (e: any) => void;
|
|
323
|
-
handleMouseEnter: (index: number) => void;
|
|
324
|
-
handleMouseLeave: () => void;
|
|
325
|
-
hoveredIndexSearchList: number | null;
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
export { type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, downLoadBinaryController, downloadFileController, durationController, many2manyBinaryController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, providerEinvoiceFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|