@fctc/widget-logic 1.4.0 → 1.6.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/form.d.mts CHANGED
@@ -18,7 +18,8 @@ interface UseSaveFormProps {
18
18
  context: any;
19
19
  model: string;
20
20
  specification: any;
21
- id: number | string;
21
+ ids: any;
22
+ records: any;
22
23
  };
23
24
  onSuccess?: (res: any) => void;
24
25
  onError?: (err: any) => void;
package/dist/form.d.ts CHANGED
@@ -18,7 +18,8 @@ interface UseSaveFormProps {
18
18
  context: any;
19
19
  model: string;
20
20
  specification: any;
21
- id: number | string;
21
+ ids: any;
22
+ records: any;
22
23
  };
23
24
  onSuccess?: (res: any) => void;
24
25
  onError?: (err: any) => void;
package/dist/form.js CHANGED
@@ -67,9 +67,9 @@ var useSaveFormHandler = ({
67
67
  const handleSaveForm = () => {
68
68
  fetchSave.mutate(
69
69
  {
70
- ids: data.id ? [data.id] : [],
70
+ ids: data.ids ? [data.ids] : [],
71
71
  model: data.model,
72
- data,
72
+ data: data.records,
73
73
  specification: data.specification,
74
74
  context: data.context
75
75
  },
package/dist/form.mjs CHANGED
@@ -39,9 +39,9 @@ var useSaveFormHandler = ({
39
39
  const handleSaveForm = () => {
40
40
  fetchSave.mutate(
41
41
  {
42
- ids: data.id ? [data.id] : [],
42
+ ids: data.ids ? [data.ids] : [],
43
43
  model: data.model,
44
- data,
44
+ data: data.records,
45
45
  specification: data.specification,
46
46
  context: data.context
47
47
  },
package/dist/index.js CHANGED
@@ -190,9 +190,9 @@ var useSaveFormHandler = ({
190
190
  const handleSaveForm = () => {
191
191
  fetchSave.mutate(
192
192
  {
193
- ids: data.id ? [data.id] : [],
193
+ ids: data.ids ? [data.ids] : [],
194
194
  model: data.model,
195
- data,
195
+ data: data.records,
196
196
  specification: data.specification,
197
197
  context: data.context
198
198
  },
package/dist/index.mjs CHANGED
@@ -156,9 +156,9 @@ var useSaveFormHandler = ({
156
156
  const handleSaveForm = () => {
157
157
  fetchSave.mutate(
158
158
  {
159
- ids: data.id ? [data.id] : [],
159
+ ids: data.ids ? [data.ids] : [],
160
160
  model: data.model,
161
- data,
161
+ data: data.records,
162
162
  specification: data.specification,
163
163
  context: data.context
164
164
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",