@fctc/widget-logic 2.0.7 → 2.0.8
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/index.js +159 -149
- package/dist/index.mjs +161 -142
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/widget.d.mts +19 -58
- package/dist/widget.d.ts +19 -58
- package/dist/widget.js +159 -149
- package/dist/widget.mjs +161 -142
- package/package.json +1 -1
package/dist/widget.d.mts
CHANGED
|
@@ -59,53 +59,31 @@ declare const many2oneButtonController: (props: any) => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
62
|
+
context: any;
|
|
62
63
|
tab: any;
|
|
64
|
+
aid: number;
|
|
63
65
|
setSelectedRowKeys: any;
|
|
66
|
+
fields: any;
|
|
67
|
+
setFields: any;
|
|
64
68
|
groupByDomain: any;
|
|
69
|
+
page: number;
|
|
65
70
|
options: any;
|
|
66
|
-
|
|
67
|
-
actionData: any;
|
|
68
|
-
viewData: any;
|
|
71
|
+
sessionStorageUtils: any;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
72
75
|
handleCreateNewOnPage: () => Promise<void>;
|
|
73
76
|
optionsObject: any;
|
|
74
|
-
totalRows: any;
|
|
75
77
|
rows: any[];
|
|
76
78
|
columns: any;
|
|
77
|
-
onToggleColumnOptional: (item: any) => void;
|
|
78
79
|
typeTable: "list" | "group" | "calendar" | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
isDataLoading: boolean;
|
|
81
|
+
isDataResponseFetched: boolean;
|
|
81
82
|
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
|
-
};
|
|
104
83
|
};
|
|
105
84
|
|
|
106
85
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
107
86
|
options: any;
|
|
108
|
-
widget: string;
|
|
109
87
|
placeholderNoOption: string;
|
|
110
88
|
}
|
|
111
89
|
|
|
@@ -113,12 +91,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
113
91
|
options: any;
|
|
114
92
|
customNoOptionsMessage: () => string;
|
|
115
93
|
tranfer: (data: any) => any;
|
|
116
|
-
dataOfSelection: any;
|
|
117
94
|
isUser: boolean;
|
|
118
95
|
};
|
|
119
96
|
|
|
120
97
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
121
98
|
id: any;
|
|
99
|
+
enabled?: any;
|
|
122
100
|
}
|
|
123
101
|
|
|
124
102
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -130,25 +108,16 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
130
108
|
};
|
|
131
109
|
|
|
132
110
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
133
|
-
selection: any;
|
|
134
111
|
id: any;
|
|
135
112
|
actionData: any;
|
|
136
|
-
viewData: any;
|
|
137
113
|
context: any;
|
|
138
114
|
}
|
|
139
115
|
|
|
140
116
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
141
|
-
selection: any;
|
|
142
|
-
isForm: boolean | undefined;
|
|
143
|
-
methods: any;
|
|
144
|
-
defaultPriority: number;
|
|
145
117
|
savePriorities: ({ value, resetPriority, }: {
|
|
146
118
|
value: number;
|
|
147
119
|
resetPriority?: () => void;
|
|
148
120
|
}) => Promise<void>;
|
|
149
|
-
label: any;
|
|
150
|
-
id: any;
|
|
151
|
-
onChange: ((name: string, value: any) => void) | undefined;
|
|
152
121
|
};
|
|
153
122
|
|
|
154
123
|
declare const downloadFileController: () => {
|
|
@@ -212,11 +181,10 @@ interface ITableBodyProps {
|
|
|
212
181
|
checkedAll: any;
|
|
213
182
|
checkboxRef: any;
|
|
214
183
|
setIsAutoSelect: any;
|
|
215
|
-
selectedRowKeys: any;
|
|
216
184
|
row: any;
|
|
217
185
|
isAutoSelect: any;
|
|
218
186
|
selectedRowKeysRef: any;
|
|
219
|
-
onClickRow
|
|
187
|
+
onClickRow?: any;
|
|
220
188
|
}
|
|
221
189
|
|
|
222
190
|
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
@@ -297,28 +265,21 @@ declare const tableGroupController: (props: any) => {
|
|
|
297
265
|
setPageGroup: react.Dispatch<any>;
|
|
298
266
|
};
|
|
299
267
|
|
|
300
|
-
declare const searchController: ({ viewData,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
fieldsList: any[];
|
|
306
|
-
}) => {
|
|
307
|
-
groupBy: any[] | null;
|
|
308
|
-
searchBy: any[] | null;
|
|
309
|
-
filterBy: any[] | null;
|
|
310
|
-
selectedTags: any[] | null;
|
|
268
|
+
declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
|
|
269
|
+
groupBy: any;
|
|
270
|
+
searchBy: any;
|
|
271
|
+
filterBy: any;
|
|
272
|
+
selectedTags: any;
|
|
311
273
|
searchString: string;
|
|
312
|
-
setFilterBy: react.Dispatch<
|
|
313
|
-
setGroupBy: react.Dispatch<
|
|
314
|
-
setSearchBy: react.Dispatch<
|
|
274
|
+
setFilterBy: react.Dispatch<any>;
|
|
275
|
+
setGroupBy: react.Dispatch<any>;
|
|
276
|
+
setSearchBy: react.Dispatch<any>;
|
|
315
277
|
clearSearch: () => void;
|
|
316
|
-
setSelectedTags: react.Dispatch<
|
|
278
|
+
setSelectedTags: react.Dispatch<any>;
|
|
317
279
|
removeSearchItems: (key: string, item: any) => void;
|
|
318
280
|
onSearchString: (search_string: string) => void;
|
|
319
281
|
handleAddTagSearch: (tag: any) => void;
|
|
320
282
|
domain: any[] | undefined;
|
|
321
|
-
context: any;
|
|
322
283
|
};
|
|
323
284
|
|
|
324
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 };
|
package/dist/widget.d.ts
CHANGED
|
@@ -59,53 +59,31 @@ declare const many2oneButtonController: (props: any) => {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
interface IMany2ManyControllerProps extends IInputFieldProps {
|
|
62
|
+
context: any;
|
|
62
63
|
tab: any;
|
|
64
|
+
aid: number;
|
|
63
65
|
setSelectedRowKeys: any;
|
|
66
|
+
fields: any;
|
|
67
|
+
setFields: any;
|
|
64
68
|
groupByDomain: any;
|
|
69
|
+
page: number;
|
|
65
70
|
options: any;
|
|
66
|
-
|
|
67
|
-
actionData: any;
|
|
68
|
-
viewData: any;
|
|
71
|
+
sessionStorageUtils: any;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
72
75
|
handleCreateNewOnPage: () => Promise<void>;
|
|
73
76
|
optionsObject: any;
|
|
74
|
-
totalRows: any;
|
|
75
77
|
rows: any[];
|
|
76
78
|
columns: any;
|
|
77
|
-
onToggleColumnOptional: (item: any) => void;
|
|
78
79
|
typeTable: "list" | "group" | "calendar" | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
isDataLoading: boolean;
|
|
81
|
+
isDataResponseFetched: boolean;
|
|
81
82
|
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
|
-
};
|
|
104
83
|
};
|
|
105
84
|
|
|
106
85
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
107
86
|
options: any;
|
|
108
|
-
widget: string;
|
|
109
87
|
placeholderNoOption: string;
|
|
110
88
|
}
|
|
111
89
|
|
|
@@ -113,12 +91,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
113
91
|
options: any;
|
|
114
92
|
customNoOptionsMessage: () => string;
|
|
115
93
|
tranfer: (data: any) => any;
|
|
116
|
-
dataOfSelection: any;
|
|
117
94
|
isUser: boolean;
|
|
118
95
|
};
|
|
119
96
|
|
|
120
97
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
121
98
|
id: any;
|
|
99
|
+
enabled?: any;
|
|
122
100
|
}
|
|
123
101
|
|
|
124
102
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -130,25 +108,16 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
130
108
|
};
|
|
131
109
|
|
|
132
110
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
133
|
-
selection: any;
|
|
134
111
|
id: any;
|
|
135
112
|
actionData: any;
|
|
136
|
-
viewData: any;
|
|
137
113
|
context: any;
|
|
138
114
|
}
|
|
139
115
|
|
|
140
116
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
141
|
-
selection: any;
|
|
142
|
-
isForm: boolean | undefined;
|
|
143
|
-
methods: any;
|
|
144
|
-
defaultPriority: number;
|
|
145
117
|
savePriorities: ({ value, resetPriority, }: {
|
|
146
118
|
value: number;
|
|
147
119
|
resetPriority?: () => void;
|
|
148
120
|
}) => Promise<void>;
|
|
149
|
-
label: any;
|
|
150
|
-
id: any;
|
|
151
|
-
onChange: ((name: string, value: any) => void) | undefined;
|
|
152
121
|
};
|
|
153
122
|
|
|
154
123
|
declare const downloadFileController: () => {
|
|
@@ -212,11 +181,10 @@ interface ITableBodyProps {
|
|
|
212
181
|
checkedAll: any;
|
|
213
182
|
checkboxRef: any;
|
|
214
183
|
setIsAutoSelect: any;
|
|
215
|
-
selectedRowKeys: any;
|
|
216
184
|
row: any;
|
|
217
185
|
isAutoSelect: any;
|
|
218
186
|
selectedRowKeysRef: any;
|
|
219
|
-
onClickRow
|
|
187
|
+
onClickRow?: any;
|
|
220
188
|
}
|
|
221
189
|
|
|
222
190
|
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
@@ -297,28 +265,21 @@ declare const tableGroupController: (props: any) => {
|
|
|
297
265
|
setPageGroup: react.Dispatch<any>;
|
|
298
266
|
};
|
|
299
267
|
|
|
300
|
-
declare const searchController: ({ viewData,
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
fieldsList: any[];
|
|
306
|
-
}) => {
|
|
307
|
-
groupBy: any[] | null;
|
|
308
|
-
searchBy: any[] | null;
|
|
309
|
-
filterBy: any[] | null;
|
|
310
|
-
selectedTags: any[] | null;
|
|
268
|
+
declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
|
|
269
|
+
groupBy: any;
|
|
270
|
+
searchBy: any;
|
|
271
|
+
filterBy: any;
|
|
272
|
+
selectedTags: any;
|
|
311
273
|
searchString: string;
|
|
312
|
-
setFilterBy: react.Dispatch<
|
|
313
|
-
setGroupBy: react.Dispatch<
|
|
314
|
-
setSearchBy: react.Dispatch<
|
|
274
|
+
setFilterBy: react.Dispatch<any>;
|
|
275
|
+
setGroupBy: react.Dispatch<any>;
|
|
276
|
+
setSearchBy: react.Dispatch<any>;
|
|
315
277
|
clearSearch: () => void;
|
|
316
|
-
setSelectedTags: react.Dispatch<
|
|
278
|
+
setSelectedTags: react.Dispatch<any>;
|
|
317
279
|
removeSearchItems: (key: string, item: any) => void;
|
|
318
280
|
onSearchString: (search_string: string) => void;
|
|
319
281
|
handleAddTagSearch: (tag: any) => void;
|
|
320
282
|
domain: any[] | undefined;
|
|
321
|
-
context: any;
|
|
322
283
|
};
|
|
323
284
|
|
|
324
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 };
|