@fctc/widget-logic 2.0.9 → 2.1.0
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/hooks.d.mts +12 -1
- package/dist/hooks.d.ts +12 -1
- package/dist/hooks.js +179 -6
- package/dist/hooks.mjs +179 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +204 -246
- package/dist/index.mjs +157 -199
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/widget.d.mts +3 -29
- package/dist/widget.d.ts +3 -29
- package/dist/widget.js +194 -238
- package/dist/widget.mjs +151 -194
- package/package.json +2 -2
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/widget.d.mts
CHANGED
|
@@ -105,7 +105,6 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
105
105
|
|
|
106
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
107
107
|
options: any;
|
|
108
|
-
widget: string;
|
|
109
108
|
placeholderNoOption: string;
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -113,12 +112,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
113
112
|
options: any;
|
|
114
113
|
customNoOptionsMessage: () => string;
|
|
115
114
|
tranfer: (data: any) => any;
|
|
116
|
-
dataOfSelection: any;
|
|
117
115
|
isUser: boolean;
|
|
118
116
|
};
|
|
119
117
|
|
|
120
118
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
121
119
|
id: any;
|
|
120
|
+
enabled?: any;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -130,25 +129,17 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
130
129
|
};
|
|
131
130
|
|
|
132
131
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
133
|
-
selection: any;
|
|
134
132
|
id: any;
|
|
135
133
|
actionData: any;
|
|
136
|
-
viewData: any;
|
|
137
134
|
context: any;
|
|
135
|
+
specification?: any;
|
|
138
136
|
}
|
|
139
137
|
|
|
140
138
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
141
|
-
selection: any;
|
|
142
|
-
isForm: boolean | undefined;
|
|
143
|
-
methods: any;
|
|
144
|
-
defaultPriority: number;
|
|
145
139
|
savePriorities: ({ value, resetPriority, }: {
|
|
146
140
|
value: number;
|
|
147
141
|
resetPriority?: () => void;
|
|
148
142
|
}) => Promise<void>;
|
|
149
|
-
label: any;
|
|
150
|
-
id: any;
|
|
151
|
-
onChange: ((name: string, value: any) => void) | undefined;
|
|
152
143
|
};
|
|
153
144
|
|
|
154
145
|
declare const downloadFileController: () => {
|
|
@@ -208,23 +199,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
208
199
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
209
200
|
};
|
|
210
201
|
|
|
211
|
-
interface ITableBodyProps {
|
|
212
|
-
checkedAll: any;
|
|
213
|
-
checkboxRef: any;
|
|
214
|
-
setIsAutoSelect: any;
|
|
215
|
-
selectedRowKeys: any;
|
|
216
|
-
row: any;
|
|
217
|
-
isAutoSelect: any;
|
|
218
|
-
selectedRowKeysRef: any;
|
|
219
|
-
onClickRow: any;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
223
|
-
handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
224
|
-
checked: any;
|
|
225
|
-
handleClickRow: (col: any, row: any) => void;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
202
|
interface ITableHeadProps {
|
|
229
203
|
typeTable: string;
|
|
230
204
|
rows: any[];
|
|
@@ -321,4 +295,4 @@ declare const searchController: ({ viewData, model, domain, context, fieldsList,
|
|
|
321
295
|
context: any;
|
|
322
296
|
};
|
|
323
297
|
|
|
324
|
-
export { type ISelctionStateProps, type
|
|
298
|
+
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
|
@@ -105,7 +105,6 @@ declare const many2manyFieldController: (props: IMany2ManyControllerProps) => {
|
|
|
105
105
|
|
|
106
106
|
interface IMany2ManyTagFieldProps extends IInputFieldProps {
|
|
107
107
|
options: any;
|
|
108
|
-
widget: string;
|
|
109
108
|
placeholderNoOption: string;
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -113,12 +112,12 @@ declare const many2manyTagsController: (props: IMany2ManyTagFieldProps) => {
|
|
|
113
112
|
options: any;
|
|
114
113
|
customNoOptionsMessage: () => string;
|
|
115
114
|
tranfer: (data: any) => any;
|
|
116
|
-
dataOfSelection: any;
|
|
117
115
|
isUser: boolean;
|
|
118
116
|
};
|
|
119
117
|
|
|
120
118
|
interface IDurationFieldProps extends IInputFieldProps {
|
|
121
119
|
id: any;
|
|
120
|
+
enabled?: any;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
declare const durationController: (props: IDurationFieldProps) => {
|
|
@@ -130,25 +129,17 @@ declare const durationController: (props: IDurationFieldProps) => {
|
|
|
130
129
|
};
|
|
131
130
|
|
|
132
131
|
interface IPriorityFieldProps extends IInputFieldProps {
|
|
133
|
-
selection: any;
|
|
134
132
|
id: any;
|
|
135
133
|
actionData: any;
|
|
136
|
-
viewData: any;
|
|
137
134
|
context: any;
|
|
135
|
+
specification?: any;
|
|
138
136
|
}
|
|
139
137
|
|
|
140
138
|
declare const priorityFieldController: (props: IPriorityFieldProps) => {
|
|
141
|
-
selection: any;
|
|
142
|
-
isForm: boolean | undefined;
|
|
143
|
-
methods: any;
|
|
144
|
-
defaultPriority: number;
|
|
145
139
|
savePriorities: ({ value, resetPriority, }: {
|
|
146
140
|
value: number;
|
|
147
141
|
resetPriority?: () => void;
|
|
148
142
|
}) => Promise<void>;
|
|
149
|
-
label: any;
|
|
150
|
-
id: any;
|
|
151
|
-
onChange: ((name: string, value: any) => void) | undefined;
|
|
152
143
|
};
|
|
153
144
|
|
|
154
145
|
declare const downloadFileController: () => {
|
|
@@ -208,23 +199,6 @@ declare const binaryFieldController: (props: IInputFieldProps) => {
|
|
|
208
199
|
getImageBase64WithMimeType: (base64: any) => string | null;
|
|
209
200
|
};
|
|
210
201
|
|
|
211
|
-
interface ITableBodyProps {
|
|
212
|
-
checkedAll: any;
|
|
213
|
-
checkboxRef: any;
|
|
214
|
-
setIsAutoSelect: any;
|
|
215
|
-
selectedRowKeys: any;
|
|
216
|
-
row: any;
|
|
217
|
-
isAutoSelect: any;
|
|
218
|
-
selectedRowKeysRef: any;
|
|
219
|
-
onClickRow: any;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
declare const tableBodyController: (props: ITableBodyProps) => {
|
|
223
|
-
handleCheckBoxSingle: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
224
|
-
checked: any;
|
|
225
|
-
handleClickRow: (col: any, row: any) => void;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
202
|
interface ITableHeadProps {
|
|
229
203
|
typeTable: string;
|
|
230
204
|
rows: any[];
|
|
@@ -321,4 +295,4 @@ declare const searchController: ({ viewData, model, domain, context, fieldsList,
|
|
|
321
295
|
context: any;
|
|
322
296
|
};
|
|
323
297
|
|
|
324
|
-
export { type ISelctionStateProps, type
|
|
298
|
+
export { type ISelctionStateProps, type ITableHeadProps, type ITableProps, binaryFieldController, colorFieldController, copyLinkButtonController, dateFieldController, downLoadBinaryController, downloadFileController, durationController, many2manyFieldController, many2manyTagsController, many2oneButtonController, many2oneFieldController, priorityFieldController, searchController, statusDropdownController, tableController, tableGroupController, tableHeadController };
|