@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/types.d.mts CHANGED
@@ -29,6 +29,7 @@ interface IInputFieldProps {
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
31
  aid?: string | number;
32
+ context?: string | Object;
32
33
  }
33
34
 
34
35
  export type { IInputFieldProps, ValuePropsType };
package/dist/types.d.ts CHANGED
@@ -29,6 +29,7 @@ interface IInputFieldProps {
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
31
  aid?: string | number;
32
+ context?: string | Object;
32
33
  }
33
34
 
34
35
  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 {
@@ -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, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
269
- groupBy: any;
270
- searchBy: any;
271
- filterBy: any;
272
- selectedTags: any;
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 ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };
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
- 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 {
@@ -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, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
269
- groupBy: any;
270
- searchBy: any;
271
- filterBy: any;
272
- selectedTags: any;
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 ITableBodyProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableBodyController, tableController, tableGroupController, tableHeadController };
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 };