@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/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[] | null;
97
- searchBy: any[] | null;
98
- filterBy: any[] | null;
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[] | null>>;
102
- setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
103
- setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
104
- clearSearch: () => void;
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
- declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
302
+ interface ISearchFieldProps extends IInputFieldProps {
303
+ fieldsList: any;
304
+ validateAndParseDate: any;
305
+ moment: any;
301
306
  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;
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[] | null>>;
313
- setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
314
- setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
315
- clearSearch: () => void;
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[] | null;
97
- searchBy: any[] | null;
98
- filterBy: any[] | null;
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[] | null>>;
102
- setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
103
- setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
104
- clearSearch: () => void;
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
- declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
302
+ interface ISearchFieldProps extends IInputFieldProps {
303
+ fieldsList: any;
304
+ validateAndParseDate: any;
305
+ moment: any;
301
306
  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;
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[] | null>>;
313
- setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
314
- setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
315
- clearSearch: () => void;
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 };