@gisce/react-ooui 1.4.11-rc.1 → 1.4.11
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/react-ooui.es.js +2156 -2159
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +8 -8
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/base/many2one/Many2oneSuffix.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/widgets/base/many2one/Many2oneSuffix.tsx +12 -27
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Many2oneSuffix.d.ts","sourceRoot":"","sources":["Many2oneSuffix.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Many2oneSuffix.d.ts","sourceRoot":"","sources":["Many2oneSuffix.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAuB/D,aAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,KAAK,6BAmL1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gisce/react-ooui",
|
|
3
|
-
"version": "1.4.11
|
|
3
|
+
"version": "1.4.11",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"src",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/plots": "^1.0.9",
|
|
35
35
|
"@gisce/fiber-diagram": "^1.1.0-rc.3",
|
|
36
|
-
"@gisce/ooui": "^0.22.
|
|
36
|
+
"@gisce/ooui": "^0.22.2",
|
|
37
37
|
"@gisce/react-formiga-components": "^1.0.9-rc.21",
|
|
38
38
|
"@gisce/react-formiga-table": "^0.8.5",
|
|
39
39
|
"@monaco-editor/react": "^4.4.5",
|
|
@@ -20,7 +20,6 @@ import ConnectionProvider from "@/ConnectionProvider";
|
|
|
20
20
|
import { processValues } from "@/helpers/formHelper";
|
|
21
21
|
import showErrorDialog from "@/ui/ActionErrorDialog";
|
|
22
22
|
import { LocaleContext, LocaleContextType } from "@/context/LocaleContext";
|
|
23
|
-
import { parseContextFields, parseDomainFields } from "@gisce/ooui";
|
|
24
23
|
|
|
25
24
|
type Props = {
|
|
26
25
|
id: number;
|
|
@@ -61,30 +60,18 @@ export const Many2oneSuffix = (props: Props) => {
|
|
|
61
60
|
context,
|
|
62
61
|
}) as FormView;
|
|
63
62
|
setFormView(formView);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
values = (
|
|
77
|
-
await ConnectionProvider.getHandler().readObjects({
|
|
78
|
-
model,
|
|
79
|
-
ids: [id],
|
|
80
|
-
fieldsToRetrieve: fields,
|
|
81
|
-
context,
|
|
82
|
-
})
|
|
83
|
-
)[0];
|
|
84
|
-
}
|
|
85
|
-
values = { ...processValues(values, fields), active_id: id };
|
|
86
|
-
setTargetValues(values);
|
|
87
|
-
console.log('Values', targetValues, values);
|
|
63
|
+
const { fields, arch } = formView;
|
|
64
|
+
|
|
65
|
+
const values = (
|
|
66
|
+
await ConnectionProvider.getHandler().readObjects({
|
|
67
|
+
model,
|
|
68
|
+
ids: [id],
|
|
69
|
+
fields,
|
|
70
|
+
context,
|
|
71
|
+
})
|
|
72
|
+
)[0];
|
|
73
|
+
|
|
74
|
+
setTargetValues({ ...processValues(values, fields), active_id: id });
|
|
88
75
|
|
|
89
76
|
setIsLoading(false);
|
|
90
77
|
} catch (err) {
|
|
@@ -162,8 +149,6 @@ export const Many2oneSuffix = (props: Props) => {
|
|
|
162
149
|
return;
|
|
163
150
|
}
|
|
164
151
|
|
|
165
|
-
console.log(targetValues);
|
|
166
|
-
|
|
167
152
|
openRelate({
|
|
168
153
|
relateData: relateItemClicked,
|
|
169
154
|
values: targetValues,
|