@fctc/widget-logic 2.2.2 → 2.2.3
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +271 -153
- package/dist/index.mjs +264 -142
- package/dist/types.d.mts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/widget.d.mts +46 -49
- package/dist/widget.d.ts +46 -49
- package/dist/widget.js +271 -153
- package/dist/widget.mjs +263 -142
- package/package.json +96 -96
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/widget.d.mts
CHANGED
|
@@ -59,52 +59,32 @@ 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;
|
|
87
|
+
widget: string;
|
|
108
88
|
placeholderNoOption: string;
|
|
109
89
|
}
|
|
110
90
|
|
|
@@ -112,12 +92,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
112
92
|
options: any;
|
|
113
93
|
customNoOptionsMessage: () => string;
|
|
114
94
|
tranfer: (data: any) => any;
|
|
95
|
+
dataOfSelection: any;
|
|
115
96
|
isUser: boolean;
|
|
116
97
|
};
|
|
117
98
|
|
|
118
99
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
119
100
|
id: any;
|
|
120
|
-
enabled?: any;
|
|
121
101
|
}
|
|
122
102
|
|
|
123
103
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -129,18 +109,25 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
129
109
|
};
|
|
130
110
|
|
|
131
111
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
112
|
+
selection: any;
|
|
132
113
|
id: any;
|
|
133
114
|
actionData: any;
|
|
115
|
+
viewData: any;
|
|
134
116
|
context: any;
|
|
135
|
-
specification?: any;
|
|
136
|
-
index?: number;
|
|
137
117
|
}
|
|
138
118
|
|
|
139
119
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
120
|
+
selection: any;
|
|
121
|
+
isForm: boolean | undefined;
|
|
122
|
+
methods: any;
|
|
123
|
+
defaultPriority: number;
|
|
140
124
|
savePriorities: ({ value, resetPriority, }: {
|
|
141
125
|
value: number;
|
|
142
126
|
resetPriority?: () => void;
|
|
143
127
|
}) => Promise<void>;
|
|
128
|
+
label: any;
|
|
129
|
+
id: any;
|
|
130
|
+
onChange: ((name: string, value: any) => void) | undefined;
|
|
144
131
|
};
|
|
145
132
|
|
|
146
133
|
declare const downloadFileController: () => {
|
|
@@ -200,6 +187,23 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
200
187
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
201
188
|
};
|
|
202
189
|
|
|
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
|
+
|
|
203
207
|
interface ITableHeadProps {
|
|
204
208
|
typeTable: string;
|
|
205
209
|
rows: any[];
|
|
@@ -272,28 +276,21 @@ declare const tableGroupController: (props: any) => {
|
|
|
272
276
|
setPageGroup: react.Dispatch<any>;
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
declare const searchController: ({ viewData,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
fieldsList: any[];
|
|
281
|
-
}) => {
|
|
282
|
-
groupBy: any[] | null;
|
|
283
|
-
searchBy: any[] | null;
|
|
284
|
-
filterBy: any[] | null;
|
|
285
|
-
selectedTags: any[] | null;
|
|
279
|
+
declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
|
|
280
|
+
groupBy: any;
|
|
281
|
+
searchBy: any;
|
|
282
|
+
filterBy: any;
|
|
283
|
+
selectedTags: any;
|
|
286
284
|
searchString: string;
|
|
287
|
-
setFilterBy: react.Dispatch<
|
|
288
|
-
setGroupBy: react.Dispatch<
|
|
289
|
-
setSearchBy: react.Dispatch<
|
|
285
|
+
setFilterBy: react.Dispatch<any>;
|
|
286
|
+
setGroupBy: react.Dispatch<any>;
|
|
287
|
+
setSearchBy: react.Dispatch<any>;
|
|
290
288
|
clearSearch: () => void;
|
|
291
|
-
setSelectedTags: react.Dispatch<
|
|
289
|
+
setSelectedTags: react.Dispatch<any>;
|
|
292
290
|
removeSearchItems: (key: string, item: any) => void;
|
|
293
291
|
onSearchString: (search_string: string) => void;
|
|
294
292
|
handleAddTagSearch: (tag: any) => void;
|
|
295
293
|
domain: any[] | undefined;
|
|
296
|
-
context: any;
|
|
297
294
|
};
|
|
298
295
|
|
|
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 };
|
|
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 };
|
package/dist/widget.d.ts
CHANGED
|
@@ -59,52 +59,32 @@ 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;
|
|
87
|
+
widget: string;
|
|
108
88
|
placeholderNoOption: string;
|
|
109
89
|
}
|
|
110
90
|
|
|
@@ -112,12 +92,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
112
92
|
options: any;
|
|
113
93
|
customNoOptionsMessage: () => string;
|
|
114
94
|
tranfer: (data: any) => any;
|
|
95
|
+
dataOfSelection: any;
|
|
115
96
|
isUser: boolean;
|
|
116
97
|
};
|
|
117
98
|
|
|
118
99
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
119
100
|
id: any;
|
|
120
|
-
enabled?: any;
|
|
121
101
|
}
|
|
122
102
|
|
|
123
103
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -129,18 +109,25 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
129
109
|
};
|
|
130
110
|
|
|
131
111
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
112
|
+
selection: any;
|
|
132
113
|
id: any;
|
|
133
114
|
actionData: any;
|
|
115
|
+
viewData: any;
|
|
134
116
|
context: any;
|
|
135
|
-
specification?: any;
|
|
136
|
-
index?: number;
|
|
137
117
|
}
|
|
138
118
|
|
|
139
119
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
120
|
+
selection: any;
|
|
121
|
+
isForm: boolean | undefined;
|
|
122
|
+
methods: any;
|
|
123
|
+
defaultPriority: number;
|
|
140
124
|
savePriorities: ({ value, resetPriority, }: {
|
|
141
125
|
value: number;
|
|
142
126
|
resetPriority?: () => void;
|
|
143
127
|
}) => Promise<void>;
|
|
128
|
+
label: any;
|
|
129
|
+
id: any;
|
|
130
|
+
onChange: ((name: string, value: any) => void) | undefined;
|
|
144
131
|
};
|
|
145
132
|
|
|
146
133
|
declare const downloadFileController: () => {
|
|
@@ -200,6 +187,23 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
200
187
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
201
188
|
};
|
|
202
189
|
|
|
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
|
+
|
|
203
207
|
interface ITableHeadProps {
|
|
204
208
|
typeTable: string;
|
|
205
209
|
rows: any[];
|
|
@@ -272,28 +276,21 @@ declare const tableGroupController: (props: any) => {
|
|
|
272
276
|
setPageGroup: react.Dispatch<any>;
|
|
273
277
|
};
|
|
274
278
|
|
|
275
|
-
declare const searchController: ({ viewData,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
fieldsList: any[];
|
|
281
|
-
}) => {
|
|
282
|
-
groupBy: any[] | null;
|
|
283
|
-
searchBy: any[] | null;
|
|
284
|
-
filterBy: any[] | null;
|
|
285
|
-
selectedTags: any[] | null;
|
|
279
|
+
declare const searchController: ({ viewData, actionData, fieldsList, contextSearch, setSearchMap, searchMap, }: any) => {
|
|
280
|
+
groupBy: any;
|
|
281
|
+
searchBy: any;
|
|
282
|
+
filterBy: any;
|
|
283
|
+
selectedTags: any;
|
|
286
284
|
searchString: string;
|
|
287
|
-
setFilterBy: react.Dispatch<
|
|
288
|
-
setGroupBy: react.Dispatch<
|
|
289
|
-
setSearchBy: react.Dispatch<
|
|
285
|
+
setFilterBy: react.Dispatch<any>;
|
|
286
|
+
setGroupBy: react.Dispatch<any>;
|
|
287
|
+
setSearchBy: react.Dispatch<any>;
|
|
290
288
|
clearSearch: () => void;
|
|
291
|
-
setSelectedTags: react.Dispatch<
|
|
289
|
+
setSelectedTags: react.Dispatch<any>;
|
|
292
290
|
removeSearchItems: (key: string, item: any) => void;
|
|
293
291
|
onSearchString: (search_string: string) => void;
|
|
294
292
|
handleAddTagSearch: (tag: any) => void;
|
|
295
293
|
domain: any[] | undefined;
|
|
296
|
-
context: any;
|
|
297
294
|
};
|
|
298
295
|
|
|
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 };
|
|
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 };
|