@fctc/widget-logic 2.2.3 → 2.2.4

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,8 @@ interface IInputFieldProps {
28
28
  domain?: any;
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
+ aid?: string | number;
32
+ context?: string | Object;
31
33
  }
32
34
 
33
35
  export type { IInputFieldProps, ValuePropsType };
package/dist/types.d.ts CHANGED
@@ -28,6 +28,8 @@ interface IInputFieldProps {
28
28
  domain?: any;
29
29
  idForm?: boolean;
30
30
  widget?: string;
31
+ aid?: string | number;
32
+ context?: string | Object;
31
33
  }
32
34
 
33
35
  export type { IInputFieldProps, ValuePropsType };
package/dist/widget.d.mts CHANGED
@@ -59,32 +59,52 @@ 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;
87
- widget: string;
88
108
  placeholderNoOption: string;
89
109
  }
90
110
 
@@ -92,12 +112,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
92
112
  options: any;
93
113
  customNoOptionsMessage: () => string;
94
114
  tranfer: (data: any) => any;
95
- dataOfSelection: any;
96
115
  isUser: boolean;
97
116
  };
98
117
 
99
118
  interface IDurationFieldProps extends IInputFieldProps {
100
119
  id: any;
120
+ enabled?: any;
101
121
  }
102
122
 
103
123
  declare const durationController: (props: IDurationFieldProps) => {
@@ -109,25 +129,18 @@ declare const durationController: (props: IDurationFieldProps) => {
109
129
  };
110
130
 
111
131
  interface IPriorityFieldProps extends IInputFieldProps {
112
- selection: any;
113
132
  id: any;
114
133
  actionData: any;
115
- viewData: any;
116
134
  context: any;
135
+ specification?: any;
136
+ index?: number;
117
137
  }
118
138
 
119
139
  declare const priorityFieldController: (props: IPriorityFieldProps) => {
120
- selection: any;
121
- isForm: boolean | undefined;
122
- methods: any;
123
- defaultPriority: number;
124
140
  savePriorities: ({ value, resetPriority, }: {
125
141
  value: number;
126
142
  resetPriority?: () => void;
127
143
  }) => Promise<void>;
128
- label: any;
129
- id: any;
130
- onChange: ((name: string, value: any) => void) | undefined;
131
144
  };
132
145
 
133
146
  declare const downloadFileController: () => {
@@ -187,23 +200,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
187
200
  getImageBase64WithMimeType: (base64: any) => string | null;
188
201
  };
189
202
 
190
- interface ITableBodyProps {
191
- checkedAll: any;
192
- checkboxRef: any;
193
- setIsAutoSelect: any;
194
- selectedRowKeys: any;
195
- row: any;
196
- isAutoSelect: any;
197
- selectedRowKeysRef: any;
198
- onClickRow: any;
199
- }
200
-
201
- declare const tableBodyController: (props: ITableBodyProps) => {
202
- handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
203
- checked: any;
204
- handleClickRow: (col: any, row: any) => void;
205
- };
206
-
207
203
  interface ITableHeadProps {
208
204
  typeTable: string;
209
205
  rows: any[];
@@ -276,21 +272,28 @@ declare const tableGroupController: (props: any) => {
276
272
  setPageGroup: react.Dispatch<any>;
277
273
  };
278
274
 
279
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
280
- groupBy: any;
281
- searchBy: any;
282
- filterBy: any;
283
- selectedTags: any;
275
+ declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
276
+ viewData: any;
277
+ model: string;
278
+ context: any;
279
+ domain: any;
280
+ fieldsList: any[];
281
+ }) => {
282
+ groupBy: any[] | null;
283
+ searchBy: any[] | null;
284
+ filterBy: any[] | null;
285
+ selectedTags: any[] | null;
284
286
  searchString: string;
285
- setFilterBy: react.Dispatch<any>;
286
- setGroupBy: react.Dispatch<any>;
287
- setSearchBy: react.Dispatch<any>;
287
+ setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
+ setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
289
+ setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
290
  clearSearch: () => void;
289
- setSelectedTags: react.Dispatch<any>;
291
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
290
292
  removeSearchItems: (key: string, item: any) => void;
291
293
  onSearchString: (search_string: string) => void;
292
294
  handleAddTagSearch: (tag: any) => void;
293
295
  domain: any[] | undefined;
296
+ context: any;
294
297
  };
295
298
 
296
- 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 };
299
+ 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,32 +59,52 @@ 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;
87
- widget: string;
88
108
  placeholderNoOption: string;
89
109
  }
90
110
 
@@ -92,12 +112,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
92
112
  options: any;
93
113
  customNoOptionsMessage: () => string;
94
114
  tranfer: (data: any) => any;
95
- dataOfSelection: any;
96
115
  isUser: boolean;
97
116
  };
98
117
 
99
118
  interface IDurationFieldProps extends IInputFieldProps {
100
119
  id: any;
120
+ enabled?: any;
101
121
  }
102
122
 
103
123
  declare const durationController: (props: IDurationFieldProps) => {
@@ -109,25 +129,18 @@ declare const durationController: (props: IDurationFieldProps) => {
109
129
  };
110
130
 
111
131
  interface IPriorityFieldProps extends IInputFieldProps {
112
- selection: any;
113
132
  id: any;
114
133
  actionData: any;
115
- viewData: any;
116
134
  context: any;
135
+ specification?: any;
136
+ index?: number;
117
137
  }
118
138
 
119
139
  declare const priorityFieldController: (props: IPriorityFieldProps) => {
120
- selection: any;
121
- isForm: boolean | undefined;
122
- methods: any;
123
- defaultPriority: number;
124
140
  savePriorities: ({ value, resetPriority, }: {
125
141
  value: number;
126
142
  resetPriority?: () => void;
127
143
  }) => Promise<void>;
128
- label: any;
129
- id: any;
130
- onChange: ((name: string, value: any) => void) | undefined;
131
144
  };
132
145
 
133
146
  declare const downloadFileController: () => {
@@ -187,23 +200,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
187
200
  getImageBase64WithMimeType: (base64: any) => string | null;
188
201
  };
189
202
 
190
- interface ITableBodyProps {
191
- checkedAll: any;
192
- checkboxRef: any;
193
- setIsAutoSelect: any;
194
- selectedRowKeys: any;
195
- row: any;
196
- isAutoSelect: any;
197
- selectedRowKeysRef: any;
198
- onClickRow: any;
199
- }
200
-
201
- declare const tableBodyController: (props: ITableBodyProps) => {
202
- handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
203
- checked: any;
204
- handleClickRow: (col: any, row: any) => void;
205
- };
206
-
207
203
  interface ITableHeadProps {
208
204
  typeTable: string;
209
205
  rows: any[];
@@ -276,21 +272,28 @@ declare const tableGroupController: (props: any) => {
276
272
  setPageGroup: react.Dispatch<any>;
277
273
  };
278
274
 
279
- declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
280
- groupBy: any;
281
- searchBy: any;
282
- filterBy: any;
283
- selectedTags: any;
275
+ declare const searchController: ({ viewData, model, domain, context, fieldsList, }: {
276
+ viewData: any;
277
+ model: string;
278
+ context: any;
279
+ domain: any;
280
+ fieldsList: any[];
281
+ }) => {
282
+ groupBy: any[] | null;
283
+ searchBy: any[] | null;
284
+ filterBy: any[] | null;
285
+ selectedTags: any[] | null;
284
286
  searchString: string;
285
- setFilterBy: react.Dispatch<any>;
286
- setGroupBy: react.Dispatch<any>;
287
- setSearchBy: react.Dispatch<any>;
287
+ setFilterBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
+ setGroupBy: react.Dispatch<react.SetStateAction<any[] | null>>;
289
+ setSearchBy: react.Dispatch<react.SetStateAction<any[] | null>>;
288
290
  clearSearch: () => void;
289
- setSelectedTags: react.Dispatch<any>;
291
+ setSelectedTags: react.Dispatch<react.SetStateAction<any[] | null>>;
290
292
  removeSearchItems: (key: string, item: any) => void;
291
293
  onSearchString: (search_string: string) => void;
292
294
  handleAddTagSearch: (tag: any) => void;
293
295
  domain: any[] | undefined;
296
+ context: any;
294
297
  };
295
298
 
296
- 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 };
299
+ export { type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };