@fctc/widget-logic 5.3.7-beta.15 → 5.3.7-beta.17
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.js +3 -299
- package/dist/hooks.mjs +3 -292
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +88 -370
- package/dist/index.mjs +91 -366
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.mts +1 -3
- package/dist/utils.d.ts +1 -3
- package/dist/utils.js +1 -297
- package/dist/utils.mjs +1 -286
- package/dist/widget.d.mts +26 -22
- package/dist/widget.d.ts +26 -22
- package/dist/widget.js +170 -446
- package/dist/widget.mjs +160 -428
- package/package.json +1 -1
package/dist/widget.d.mts
CHANGED
|
@@ -69,6 +69,8 @@ interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
|
69
69
|
options?: any;
|
|
70
70
|
enabled?: boolean;
|
|
71
71
|
service?: string;
|
|
72
|
+
validateAndParseDate: any;
|
|
73
|
+
moment: any;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
@@ -93,15 +95,15 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
93
95
|
setGroupByList: react.Dispatch<any>;
|
|
94
96
|
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
95
97
|
searchController: {
|
|
96
|
-
groupBy: any
|
|
97
|
-
searchBy: any
|
|
98
|
-
filterBy: any[]
|
|
98
|
+
groupBy: any;
|
|
99
|
+
searchBy: any;
|
|
100
|
+
filterBy: any[];
|
|
99
101
|
selectedTags: any[] | null;
|
|
100
102
|
searchString: string;
|
|
101
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[]
|
|
102
|
-
setGroupBy: react.Dispatch<
|
|
103
|
-
setSearchBy: react.Dispatch<
|
|
104
|
-
|
|
103
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[]>>;
|
|
104
|
+
setGroupBy: react.Dispatch<any>;
|
|
105
|
+
setSearchBy: react.Dispatch<any>;
|
|
106
|
+
resetAllStateSearch: () => void;
|
|
105
107
|
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
106
108
|
removeSearchItems: (key: string, item: any) => void;
|
|
107
109
|
onSearchString: (search_string: string) => void;
|
|
@@ -112,8 +114,8 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
112
114
|
handleMouseEnter: (index: number) => void;
|
|
113
115
|
handleMouseLeave: () => void;
|
|
114
116
|
hoveredIndexSearchList: number | null;
|
|
117
|
+
removeSearchItemsByType: (type: string) => void;
|
|
115
118
|
};
|
|
116
|
-
handleCreateNewOnPage: () => Promise<void>;
|
|
117
119
|
specification: Record<string, any> | null;
|
|
118
120
|
};
|
|
119
121
|
|
|
@@ -297,22 +299,23 @@ declare const tableGroupController: (props: any) => {
|
|
|
297
299
|
typeTableGroup: "list" | "group" | "calendar" | undefined;
|
|
298
300
|
};
|
|
299
301
|
|
|
300
|
-
|
|
302
|
+
interface ISearchFieldProps extends IInputFieldProps {
|
|
303
|
+
fieldsList: any;
|
|
304
|
+
validateAndParseDate: any;
|
|
305
|
+
moment: any;
|
|
301
306
|
viewData: any;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
searchBy: any[] | null;
|
|
309
|
-
filterBy: any[] | null;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const searchController: ({ viewData, model, domain, context, fieldsList, validateAndParseDate, moment, }: ISearchFieldProps) => {
|
|
310
|
+
groupBy: any;
|
|
311
|
+
searchBy: any;
|
|
312
|
+
filterBy: any[];
|
|
310
313
|
selectedTags: any[] | null;
|
|
311
314
|
searchString: string;
|
|
312
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[]
|
|
313
|
-
setGroupBy: react.Dispatch<
|
|
314
|
-
setSearchBy: react.Dispatch<
|
|
315
|
-
|
|
315
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[]>>;
|
|
316
|
+
setGroupBy: react.Dispatch<any>;
|
|
317
|
+
setSearchBy: react.Dispatch<any>;
|
|
318
|
+
resetAllStateSearch: () => void;
|
|
316
319
|
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
317
320
|
removeSearchItems: (key: string, item: any) => void;
|
|
318
321
|
onSearchString: (search_string: string) => void;
|
|
@@ -323,6 +326,7 @@ declare const searchController: ({ viewData, model, domain, context, fieldsList,
|
|
|
323
326
|
handleMouseEnter: (index: number) => void;
|
|
324
327
|
handleMouseLeave: () => void;
|
|
325
328
|
hoveredIndexSearchList: number | null;
|
|
329
|
+
removeSearchItemsByType: (type: string) => void;
|
|
326
330
|
};
|
|
327
331
|
|
|
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 };
|
|
332
|
+
export { type ISearchFieldProps, type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, downLoadBinaryController, downloadFileController, durationController, many2manyBinaryController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, providerEinvoiceFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|
package/dist/widget.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
|
69
69
|
options?: any;
|
|
70
70
|
enabled?: boolean;
|
|
71
71
|
service?: string;
|
|
72
|
+
validateAndParseDate: any;
|
|
73
|
+
moment: any;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
@@ -93,15 +95,15 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
93
95
|
setGroupByList: react.Dispatch<any>;
|
|
94
96
|
setSelectedRowKeys: react.Dispatch<react.SetStateAction<number[]>>;
|
|
95
97
|
searchController: {
|
|
96
|
-
groupBy: any
|
|
97
|
-
searchBy: any
|
|
98
|
-
filterBy: any[]
|
|
98
|
+
groupBy: any;
|
|
99
|
+
searchBy: any;
|
|
100
|
+
filterBy: any[];
|
|
99
101
|
selectedTags: any[] | null;
|
|
100
102
|
searchString: string;
|
|
101
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[]
|
|
102
|
-
setGroupBy: react.Dispatch<
|
|
103
|
-
setSearchBy: react.Dispatch<
|
|
104
|
-
|
|
103
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[]>>;
|
|
104
|
+
setGroupBy: react.Dispatch<any>;
|
|
105
|
+
setSearchBy: react.Dispatch<any>;
|
|
106
|
+
resetAllStateSearch: () => void;
|
|
105
107
|
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
106
108
|
removeSearchItems: (key: string, item: any) => void;
|
|
107
109
|
onSearchString: (search_string: string) => void;
|
|
@@ -112,8 +114,8 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
112
114
|
handleMouseEnter: (index: number) => void;
|
|
113
115
|
handleMouseLeave: () => void;
|
|
114
116
|
hoveredIndexSearchList: number | null;
|
|
117
|
+
removeSearchItemsByType: (type: string) => void;
|
|
115
118
|
};
|
|
116
|
-
handleCreateNewOnPage: () => Promise<void>;
|
|
117
119
|
specification: Record<string, any> | null;
|
|
118
120
|
};
|
|
119
121
|
|
|
@@ -297,22 +299,23 @@ declare const tableGroupController: (props: any) => {
|
|
|
297
299
|
typeTableGroup: "list" | "group" | "calendar" | undefined;
|
|
298
300
|
};
|
|
299
301
|
|
|
300
|
-
|
|
302
|
+
interface ISearchFieldProps extends IInputFieldProps {
|
|
303
|
+
fieldsList: any;
|
|
304
|
+
validateAndParseDate: any;
|
|
305
|
+
moment: any;
|
|
301
306
|
viewData: any;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
searchBy: any[] | null;
|
|
309
|
-
filterBy: any[] | null;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const searchController: ({ viewData, model, domain, context, fieldsList, validateAndParseDate, moment, }: ISearchFieldProps) => {
|
|
310
|
+
groupBy: any;
|
|
311
|
+
searchBy: any;
|
|
312
|
+
filterBy: any[];
|
|
310
313
|
selectedTags: any[] | null;
|
|
311
314
|
searchString: string;
|
|
312
|
-
setFilterBy: react.Dispatch<react.SetStateAction<any[]
|
|
313
|
-
setGroupBy: react.Dispatch<
|
|
314
|
-
setSearchBy: react.Dispatch<
|
|
315
|
-
|
|
315
|
+
setFilterBy: react.Dispatch<react.SetStateAction<any[]>>;
|
|
316
|
+
setGroupBy: react.Dispatch<any>;
|
|
317
|
+
setSearchBy: react.Dispatch<any>;
|
|
318
|
+
resetAllStateSearch: () => void;
|
|
316
319
|
setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
|
|
317
320
|
removeSearchItems: (key: string, item: any) => void;
|
|
318
321
|
onSearchString: (search_string: string) => void;
|
|
@@ -323,6 +326,7 @@ declare const searchController: ({ viewData, model, domain, context, fieldsList,
|
|
|
323
326
|
handleMouseEnter: (index: number) => void;
|
|
324
327
|
handleMouseLeave: () => void;
|
|
325
328
|
hoveredIndexSearchList: number | null;
|
|
329
|
+
removeSearchItemsByType: (type: string) => void;
|
|
326
330
|
};
|
|
327
331
|
|
|
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 };
|
|
332
|
+
export { type ISearchFieldProps, type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, downLoadBinaryController, downloadFileController, durationController, many2manyBinaryController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, providerEinvoiceFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|