@fctc/widget-logic 1.8.0 → 1.10.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
@@ -3,7 +3,7 @@ interface UseSaveFormProps$1 {
3
3
  context: any;
4
4
  model: string;
5
5
  specification: any;
6
- id: any;
6
+ ids: any;
7
7
  nameField?: any;
8
8
  object?: any;
9
9
  };
package/dist/form.d.ts CHANGED
@@ -3,7 +3,7 @@ interface UseSaveFormProps$1 {
3
3
  context: any;
4
4
  model: string;
5
5
  specification: any;
6
- id: any;
6
+ ids: any;
7
7
  nameField?: any;
8
8
  object?: any;
9
9
  };
package/dist/form.js CHANGED
@@ -38,12 +38,12 @@ var UseOnChangeFormHandler = ({
38
38
  const handleOnChangeForm = () => {
39
39
  fetchOnchange.mutate(
40
40
  {
41
- ids: data.id ? data.id : [],
41
+ ids: data.ids,
42
42
  model: data.model,
43
43
  specification: data.specification,
44
44
  context: data.context,
45
45
  object: data.object,
46
- fieldChange: [data.nameField]
46
+ fieldChange: data.nameField
47
47
  },
48
48
  {
49
49
  onSuccess,
package/dist/form.mjs CHANGED
@@ -10,12 +10,12 @@ var UseOnChangeFormHandler = ({
10
10
  const handleOnChangeForm = () => {
11
11
  fetchOnchange.mutate(
12
12
  {
13
- ids: data.id ? data.id : [],
13
+ ids: data.ids,
14
14
  model: data.model,
15
15
  specification: data.specification,
16
16
  context: data.context,
17
17
  object: data.object,
18
- fieldChange: [data.nameField]
18
+ fieldChange: data.nameField
19
19
  },
20
20
  {
21
21
  onSuccess,
package/dist/index.js CHANGED
@@ -161,12 +161,12 @@ var UseOnChangeFormHandler = ({
161
161
  const handleOnChangeForm = () => {
162
162
  fetchOnchange.mutate(
163
163
  {
164
- ids: data.id ? data.id : [],
164
+ ids: data.ids,
165
165
  model: data.model,
166
166
  specification: data.specification,
167
167
  context: data.context,
168
168
  object: data.object,
169
- fieldChange: [data.nameField]
169
+ fieldChange: data.nameField
170
170
  },
171
171
  {
172
172
  onSuccess,
package/dist/index.mjs CHANGED
@@ -127,12 +127,12 @@ var UseOnChangeFormHandler = ({
127
127
  const handleOnChangeForm = () => {
128
128
  fetchOnchange.mutate(
129
129
  {
130
- ids: data.id ? data.id : [],
130
+ ids: data.ids,
131
131
  model: data.model,
132
132
  specification: data.specification,
133
133
  context: data.context,
134
134
  object: data.object,
135
- fieldChange: [data.nameField]
135
+ fieldChange: data.nameField
136
136
  },
137
137
  {
138
138
  onSuccess,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/widget-logic",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",