@fctc/widget-logic 2.0.8 → 2.0.10
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/hooks.d.mts +12 -1
- package/dist/hooks.d.ts +12 -1
- package/dist/hooks.js +179 -6
- package/dist/hooks.mjs +179 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +256 -310
- package/dist/index.mjs +229 -292
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widget.d.mts +46 -34
- package/dist/widget.d.ts +46 -34
- package/dist/widget.js +246 -302
- package/dist/widget.mjs +223 -287
- package/package.json +2 -2
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/widget.d.mts
CHANGED
|
@@ -59,27 +59,48 @@ declare const many2oneButtonController: (props: any) => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
62
|
-
context: any;
|
|
63
62
|
tab: any;
|
|
64
|
-
aid: number;
|
|
65
63
|
setSelectedRowKeys: any;
|
|
66
|
-
fields: any;
|
|
67
|
-
setFields: any;
|
|
68
64
|
groupByDomain: any;
|
|
69
|
-
page: number;
|
|
70
65
|
options: any;
|
|
71
|
-
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
actionData: any;
|
|
68
|
+
viewData: any;
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
75
72
|
handleCreateNewOnPage: () => Promise<void>;
|
|
76
73
|
optionsObject: any;
|
|
74
|
+
totalRows: any;
|
|
77
75
|
rows: any[];
|
|
78
76
|
columns: any;
|
|
77
|
+
onToggleColumnOptional: (item: any) => void;
|
|
79
78
|
typeTable: "list" | "group" | "calendar" | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
isLoading: boolean;
|
|
80
|
+
isFetched: boolean;
|
|
82
81
|
isPlaceholderData: boolean;
|
|
82
|
+
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
83
|
+
page: number;
|
|
84
|
+
viewData: any;
|
|
85
|
+
domain: any;
|
|
86
|
+
setDomain: react.Dispatch<any>;
|
|
87
|
+
searchController: {
|
|
88
|
+
groupBy: any[] | null;
|
|
89
|
+
searchBy: any[] | null;
|
|
90
|
+
filterBy: any[] | null;
|
|
91
|
+
selectedTags: any[] | null;
|
|
92
|
+
searchString: string;
|
|
93
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
94
|
+
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
95
|
+
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
96
|
+
clearSearch: () => void;
|
|
97
|
+
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
98
|
+
removeSearchItems: (key: string, item: any) => void;
|
|
99
|
+
onSearchString: (search_string: string) => void;
|
|
100
|
+
handleAddTagSearch: (tag: any) => void;
|
|
101
|
+
domain: any[] | undefined;
|
|
102
|
+
context: any;
|
|
103
|
+
};
|
|
83
104
|
};
|
|
84
105
|
|
|
85
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
@@ -177,22 +198,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
177
198
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
178
199
|
};
|
|
179
200
|
|
|
180
|
-
interface ITableBodyProps {
|
|
181
|
-
checkedAll: any;
|
|
182
|
-
checkboxRef: any;
|
|
183
|
-
setIsAutoSelect: any;
|
|
184
|
-
row: any;
|
|
185
|
-
isAutoSelect: any;
|
|
186
|
-
selectedRowKeysRef: any;
|
|
187
|
-
onClickRow?: any;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
191
|
-
handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
192
|
-
checked: any;
|
|
193
|
-
handleClickRow: (col: any, row: any) => void;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
201
|
interface ITableHeadProps {
|
|
197
202
|
typeTable: string;
|
|
198
203
|
rows: any[];
|
|
@@ -265,21 +270,28 @@ declare const tableGroupController: (props: any) => {
|
|
|
265
270
|
setPageGroup: react.Dispatch<any>;
|
|
266
271
|
};
|
|
267
272
|
|
|
268
|
-
declare const searchController: ({ viewData,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
+
declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
|
|
274
|
+
viewData: any;
|
|
275
|
+
model: string;
|
|
276
|
+
context: any;
|
|
277
|
+
domain: any;
|
|
278
|
+
fieldsList: any[];
|
|
279
|
+
}) => {
|
|
280
|
+
groupBy: any[] | null;
|
|
281
|
+
searchBy: any[] | null;
|
|
282
|
+
filterBy: any[] | null;
|
|
283
|
+
selectedTags: any[] | null;
|
|
273
284
|
searchString: string;
|
|
274
|
-
setFilterBy: react.Dispatch<any
|
|
275
|
-
setGroupBy: react.Dispatch<any
|
|
276
|
-
setSearchBy: react.Dispatch<any
|
|
285
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
286
|
+
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
287
|
+
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
277
288
|
clearSearch: () => void;
|
|
278
|
-
setSelectedTags: react.Dispatch<any
|
|
289
|
+
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
279
290
|
removeSearchItems: (key: string, item: any) => void;
|
|
280
291
|
onSearchString: (search_string: string) => void;
|
|
281
292
|
handleAddTagSearch: (tag: any) => void;
|
|
282
293
|
domain: any[] | undefined;
|
|
294
|
+
context: any;
|
|
283
295
|
};
|
|
284
296
|
|
|
285
|
-
export { type ISelctionStateProps, type
|
|
297
|
+
export { type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|
package/dist/widget.d.ts
CHANGED
|
@@ -59,27 +59,48 @@ declare const many2oneButtonController: (props: any) => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
62
|
-
context: any;
|
|
63
62
|
tab: any;
|
|
64
|
-
aid: number;
|
|
65
63
|
setSelectedRowKeys: any;
|
|
66
|
-
fields: any;
|
|
67
|
-
setFields: any;
|
|
68
64
|
groupByDomain: any;
|
|
69
|
-
page: number;
|
|
70
65
|
options: any;
|
|
71
|
-
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
actionData: any;
|
|
68
|
+
viewData: any;
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
75
72
|
handleCreateNewOnPage: () => Promise<void>;
|
|
76
73
|
optionsObject: any;
|
|
74
|
+
totalRows: any;
|
|
77
75
|
rows: any[];
|
|
78
76
|
columns: any;
|
|
77
|
+
onToggleColumnOptional: (item: any) => void;
|
|
79
78
|
typeTable: "list" | "group" | "calendar" | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
isLoading: boolean;
|
|
80
|
+
isFetched: boolean;
|
|
82
81
|
isPlaceholderData: boolean;
|
|
82
|
+
setPage: react.Dispatch<react.SetStateAction<number>>;
|
|
83
|
+
page: number;
|
|
84
|
+
viewData: any;
|
|
85
|
+
domain: any;
|
|
86
|
+
setDomain: react.Dispatch<any>;
|
|
87
|
+
searchController: {
|
|
88
|
+
groupBy: any[] | null;
|
|
89
|
+
searchBy: any[] | null;
|
|
90
|
+
filterBy: any[] | null;
|
|
91
|
+
selectedTags: any[] | null;
|
|
92
|
+
searchString: string;
|
|
93
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
94
|
+
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
95
|
+
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
96
|
+
clearSearch: () => void;
|
|
97
|
+
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
98
|
+
removeSearchItems: (key: string, item: any) => void;
|
|
99
|
+
onSearchString: (search_string: string) => void;
|
|
100
|
+
handleAddTagSearch: (tag: any) => void;
|
|
101
|
+
domain: any[] | undefined;
|
|
102
|
+
context: any;
|
|
103
|
+
};
|
|
83
104
|
};
|
|
84
105
|
|
|
85
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
@@ -177,22 +198,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
177
198
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
178
199
|
};
|
|
179
200
|
|
|
180
|
-
interface ITableBodyProps {
|
|
181
|
-
checkedAll: any;
|
|
182
|
-
checkboxRef: any;
|
|
183
|
-
setIsAutoSelect: any;
|
|
184
|
-
row: any;
|
|
185
|
-
isAutoSelect: any;
|
|
186
|
-
selectedRowKeysRef: any;
|
|
187
|
-
onClickRow?: any;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
191
|
-
handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
192
|
-
checked: any;
|
|
193
|
-
handleClickRow: (col: any, row: any) => void;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
201
|
interface ITableHeadProps {
|
|
197
202
|
typeTable: string;
|
|
198
203
|
rows: any[];
|
|
@@ -265,21 +270,28 @@ declare const tableGroupController: (props: any) => {
|
|
|
265
270
|
setPageGroup: react.Dispatch<any>;
|
|
266
271
|
};
|
|
267
272
|
|
|
268
|
-
declare const searchController: ({ viewData,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
+
declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
|
|
274
|
+
viewData: any;
|
|
275
|
+
model: string;
|
|
276
|
+
context: any;
|
|
277
|
+
domain: any;
|
|
278
|
+
fieldsList: any[];
|
|
279
|
+
}) => {
|
|
280
|
+
groupBy: any[] | null;
|
|
281
|
+
searchBy: any[] | null;
|
|
282
|
+
filterBy: any[] | null;
|
|
283
|
+
selectedTags: any[] | null;
|
|
273
284
|
searchString: string;
|
|
274
|
-
setFilterBy: react.Dispatch<any
|
|
275
|
-
setGroupBy: react.Dispatch<any
|
|
276
|
-
setSearchBy: react.Dispatch<any
|
|
285
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
286
|
+
setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
287
|
+
setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
277
288
|
clearSearch: () => void;
|
|
278
|
-
setSelectedTags: react.Dispatch<any
|
|
289
|
+
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
279
290
|
removeSearchItems: (key: string, item: any) => void;
|
|
280
291
|
onSearchString: (search_string: string) => void;
|
|
281
292
|
handleAddTagSearch: (tag: any) => void;
|
|
282
293
|
domain: any[] | undefined;
|
|
294
|
+
context: any;
|
|
283
295
|
};
|
|
284
296
|
|
|
285
|
-
export { type ISelctionStateProps, type
|
|
297
|
+
export { type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|