@fctc/widget-logic 2.0.8 → 2.0.9

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
@@ -59,31 +59,53 @@ 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 {
86
107
  options: any;
108
+ widget: string;
87
109
  placeholderNoOption: string;
88
110
  }
89
111
 
@@ -91,12 +113,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
91
113
  options: any;
92
114
  customNoOptionsMessage: () => string;
93
115
  tranfer: (data: any) => any;
116
+ dataOfSelection: any;
94
117
  isUser: boolean;
95
118
  };
96
119
 
97
120
  interface IDurationFieldProps extends IInputFieldProps {
98
121
  id: any;
99
- enabled?: any;
100
122
  }
101
123
 
102
124
  declare const durationController: (props: IDurationFieldProps) => {
@@ -108,16 +130,25 @@ declare const durationController: (props: IDurationFieldProps) => {
108
130
  };
109
131
 
110
132
  interface IPriorityFieldProps extends IInputFieldProps {
133
+ selection: any;
111
134
  id: any;
112
135
  actionData: any;
136
+ viewData: any;
113
137
  context: any;
114
138
  }
115
139
 
116
140
  declare const priorityFieldController: (props: IPriorityFieldProps) => {
141
+ selection: any;
142
+ isForm: boolean | undefined;
143
+ methods: any;
144
+ defaultPriority: number;
117
145
  savePriorities: ({ value, resetPriority, }: {
118
146
  value: number;
119
147
  resetPriority?: () => void;
120
148
  }) => Promise<void>;
149
+ label: any;
150
+ id: any;
151
+ onChange: ((name: string, value: any) => void) | undefined;
121
152
  };
122
153
 
123
154
  declare const downloadFileController: () => {
@@ -181,10 +212,11 @@ interface ITableBodyProps {
181
212
  checkedAll: any;
182
213
  checkboxRef: any;
183
214
  setIsAutoSelect: any;
215
+ selectedRowKeys: any;
184
216
  row: any;
185
217
  isAutoSelect: any;
186
218
  selectedRowKeysRef: any;
187
- onClickRow?: any;
219
+ onClickRow: any;
188
220
  }
189
221
 
190
222
  declare const tableBodyController: (props: ITableBodyProps) => {
@@ -265,21 +297,28 @@ declare const tableGroupController: (props: any) => {
265
297
  setPageGroup: react.Dispatch<any>;
266
298
  };
267
299
 
268
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
269
- groupBy: any;
270
- searchBy: any;
271
- filterBy: any;
272
- 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;
273
311
  searchString: string;
274
- setFilterBy: react.Dispatch<any>;
275
- setGroupBy: react.Dispatch<any>;
276
- 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>>;
277
315
  clearSearch: () => void;
278
- setSelectedTags: react.Dispatch<any>;
316
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
279
317
  removeSearchItems: (key: string, item: any) => void;
280
318
  onSearchString: (search_string: string) => void;
281
319
  handleAddTagSearch: (tag: any) => void;
282
320
  domain: any[] | undefined;
321
+ context: any;
283
322
  };
284
323
 
285
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,31 +59,53 @@ 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 {
86
107
  options: any;
108
+ widget: string;
87
109
  placeholderNoOption: string;
88
110
  }
89
111
 
@@ -91,12 +113,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
91
113
  options: any;
92
114
  customNoOptionsMessage: () => string;
93
115
  tranfer: (data: any) => any;
116
+ dataOfSelection: any;
94
117
  isUser: boolean;
95
118
  };
96
119
 
97
120
  interface IDurationFieldProps extends IInputFieldProps {
98
121
  id: any;
99
- enabled?: any;
100
122
  }
101
123
 
102
124
  declare const durationController: (props: IDurationFieldProps) => {
@@ -108,16 +130,25 @@ declare const durationController: (props: IDurationFieldProps) => {
108
130
  };
109
131
 
110
132
  interface IPriorityFieldProps extends IInputFieldProps {
133
+ selection: any;
111
134
  id: any;
112
135
  actionData: any;
136
+ viewData: any;
113
137
  context: any;
114
138
  }
115
139
 
116
140
  declare const priorityFieldController: (props: IPriorityFieldProps) => {
141
+ selection: any;
142
+ isForm: boolean | undefined;
143
+ methods: any;
144
+ defaultPriority: number;
117
145
  savePriorities: ({ value, resetPriority, }: {
118
146
  value: number;
119
147
  resetPriority?: () => void;
120
148
  }) => Promise<void>;
149
+ label: any;
150
+ id: any;
151
+ onChange: ((name: string, value: any) => void) | undefined;
121
152
  };
122
153
 
123
154
  declare const downloadFileController: () => {
@@ -181,10 +212,11 @@ interface ITableBodyProps {
181
212
  checkedAll: any;
182
213
  checkboxRef: any;
183
214
  setIsAutoSelect: any;
215
+ selectedRowKeys: any;
184
216
  row: any;
185
217
  isAutoSelect: any;
186
218
  selectedRowKeysRef: any;
187
- onClickRow?: any;
219
+ onClickRow: any;
188
220
  }
189
221
 
190
222
  declare const tableBodyController: (props: ITableBodyProps) => {
@@ -265,21 +297,28 @@ declare const tableGroupController: (props: any) => {
265
297
  setPageGroup: react.Dispatch<any>;
266
298
  };
267
299
 
268
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
269
- groupBy: any;
270
- searchBy: any;
271
- filterBy: any;
272
- 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;
273
311
  searchString: string;
274
- setFilterBy: react.Dispatch<any>;
275
- setGroupBy: react.Dispatch<any>;
276
- 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>>;
277
315
  clearSearch: () => void;
278
- setSelectedTags: react.Dispatch<any>;
316
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
279
317
  removeSearchItems: (key: string, item: any) => void;
280
318
  onSearchString: (search_string: string) => void;
281
319
  handleAddTagSearch: (tag: any) => void;
282
320
  domain: any[] | undefined;
321
+ context: any;
283
322
  };
284
323
 
285
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 };