@fctc/widget-logic 2.0.3 → 2.0.7

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/types.d.mts CHANGED
@@ -28,6 +28,7 @@ interface IInputFieldProps {
28
28
  domain?: any;
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
+ context?: string | Object;
31
32
  }
32
33
 
33
34
  export type { IInputFieldProps, ValuePropsType };
package/dist/types.d.ts CHANGED
@@ -28,6 +28,7 @@ interface IInputFieldProps {
28
28
  domain?: any;
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
+ context?: string | Object;
31
32
  }
32
33
 
33
34
  export type { IInputFieldProps, ValuePropsType };
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
- sessionStorageUtils: any;
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
- isDataLoading: boolean;
81
- isDataResponseFetched: boolean;
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 {
@@ -276,21 +297,28 @@ declare const tableGroupController: (props: any) => {
276
297
  setPageGroup: react.Dispatch<any>;
277
298
  };
278
299
 
279
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
280
- groupBy: any;
281
- searchBy: any;
282
- filterBy: any;
283
- selectedTags: any;
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;
284
311
  searchString: string;
285
- setFilterBy: react.Dispatch<any>;
286
- setGroupBy: react.Dispatch<any>;
287
- setSearchBy: react.Dispatch<any>;
312
+ setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
313
+ setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
314
+ setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
315
  clearSearch: () => void;
289
- setSelectedTags: react.Dispatch<any>;
316
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
290
317
  removeSearchItems: (key: string, item: any) => void;
291
318
  onSearchString: (search_string: string) => void;
292
319
  handleAddTagSearch: (tag: any) => void;
293
320
  domain: any[] | undefined;
321
+ context: any;
294
322
  };
295
323
 
296
324
  export { type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, 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
- sessionStorageUtils: any;
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
- isDataLoading: boolean;
81
- isDataResponseFetched: boolean;
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 {
@@ -276,21 +297,28 @@ declare const tableGroupController: (props: any) => {
276
297
  setPageGroup: react.Dispatch<any>;
277
298
  };
278
299
 
279
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
280
- groupBy: any;
281
- searchBy: any;
282
- filterBy: any;
283
- selectedTags: any;
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;
284
311
  searchString: string;
285
- setFilterBy: react.Dispatch<any>;
286
- setGroupBy: react.Dispatch<any>;
287
- setSearchBy: react.Dispatch<any>;
312
+ setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
313
+ setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
314
+ setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
315
  clearSearch: () => void;
289
- setSelectedTags: react.Dispatch<any>;
316
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
290
317
  removeSearchItems: (key: string, item: any) => void;
291
318
  onSearchString: (search_string: string) => void;
292
319
  handleAddTagSearch: (tag: any) => void;
293
320
  domain: any[] | undefined;
321
+ context: any;
294
322
  };
295
323
 
296
324
  export { type ISelctionStateProps, type ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };