@gisce/react-ooui 1.1.16-rc.0 → 1.1.17
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/helpers/formHelper.d.ts +2 -1
- package/dist/helpers/formHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +22 -5
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +1 -1
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/widgets/views/Form.d.ts.map +1 -1
- package/dist/widgets/views/Tree.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/helpers/formHelper.ts +21 -2
- package/src/widgets/views/Form.tsx +1 -0
- package/src/widgets/views/Tree.tsx +0 -1
|
@@ -14,9 +14,10 @@ export declare const mergeFieldsDomain: ({ fieldsDomain, fields, }: {
|
|
|
14
14
|
fields: any;
|
|
15
15
|
}) => any;
|
|
16
16
|
export declare const getValuesForDomain: (domain: any[]) => any;
|
|
17
|
-
export declare const getOnChangePayload: ({ onChangeFieldActionArgs, values, }: {
|
|
17
|
+
export declare const getOnChangePayload: ({ onChangeFieldActionArgs, values, parentValues, }: {
|
|
18
18
|
onChangeFieldActionArgs: any[];
|
|
19
19
|
values: any;
|
|
20
|
+
parentValues?: any;
|
|
20
21
|
}) => any;
|
|
21
22
|
export declare const mergeSearchFields: (searchFields: any[]) => {
|
|
22
23
|
primary: never[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formHelper.d.ts","sourceRoot":"","sources":["formHelper.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,aAAa,WAAY,GAAG,UAAU,GAAG,QAGrD,CAAC;AAEF,eAAO,MAAM,gBAAgB;YAKnB,GAAG;YACH,GAAG;YACH,GAAG;SAyDZ,CAAC;AAEF,eAAO,MAAM,eAAe;mBAKX,MAAM,EAAE;YACf,GAAG;WACJ,MAAM,EAAE;aAMhB,CAAC;AAEF,eAAO,MAAM,iBAAiB;kBAId,GAAG;YACT,GAAG;SAaZ,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,GAAG,EAAE,QAc/C,CAAC;AAEF,eAAO,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"formHelper.d.ts","sourceRoot":"","sources":["formHelper.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,aAAa,WAAY,GAAG,UAAU,GAAG,QAGrD,CAAC;AAEF,eAAO,MAAM,gBAAgB;YAKnB,GAAG;YACH,GAAG;YACH,GAAG;SAyDZ,CAAC;AAEF,eAAO,MAAM,eAAe;mBAKX,MAAM,EAAE;YACf,GAAG;WACJ,MAAM,EAAE;aAMhB,CAAC;AAEF,eAAO,MAAM,iBAAiB;kBAId,GAAG;YACT,GAAG;SAaZ,CAAC;AAEF,eAAO,MAAM,kBAAkB,WAAY,GAAG,EAAE,QAc/C,CAAC;AAEF,eAAO,MAAM,kBAAkB;6BAKJ,GAAG,EAAE;YACtB,GAAG;mBACI,GAAG;SA8BnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,iBAAkB,GAAG,EAAE;;;CAqBpD,CAAC;AAMF,eAAO,MAAM,uBAAuB;YAI1B,GAAG;YACH,GAAG;;;CAqBZ,CAAC;AAGF,eAAO,MAAM,eAAe,SAAU,MAAM,WAW3C,CAAA"}
|
package/dist/react-ooui.es.js
CHANGED
|
@@ -15912,12 +15912,28 @@ const Image = (e) => {
|
|
|
15912
15912
|
}), t);
|
|
15913
15913
|
}, getOnChangePayload = ({
|
|
15914
15914
|
onChangeFieldActionArgs: e,
|
|
15915
|
-
values: t
|
|
15915
|
+
values: t,
|
|
15916
|
+
parentValues: n = {}
|
|
15916
15917
|
}) => {
|
|
15917
|
-
const
|
|
15918
|
-
return e.forEach((
|
|
15919
|
-
|
|
15920
|
-
|
|
15918
|
+
const r = {};
|
|
15919
|
+
return e.forEach((o) => {
|
|
15920
|
+
const a = o.split("");
|
|
15921
|
+
if (o === "True")
|
|
15922
|
+
r[o] = !0;
|
|
15923
|
+
else if (o === "False")
|
|
15924
|
+
r[o] = !1;
|
|
15925
|
+
else if (t[o])
|
|
15926
|
+
r[o] = t[o];
|
|
15927
|
+
else if (a[0] === "'" && a[a.length - 1] === "'" && a.filter((s) => s === "'").length === 2)
|
|
15928
|
+
r[o] = o.replace(/'/g, "");
|
|
15929
|
+
else if (a.includes("'"))
|
|
15930
|
+
r[o] = o;
|
|
15931
|
+
else if (o.indexOf("parent.") !== -1) {
|
|
15932
|
+
const s = o.replace("parent.", "");
|
|
15933
|
+
r[o] = n[s] || !1;
|
|
15934
|
+
} else
|
|
15935
|
+
r[o] = !1;
|
|
15936
|
+
}), r;
|
|
15921
15937
|
}, mergeSearchFields = (e) => {
|
|
15922
15938
|
const t = {
|
|
15923
15939
|
primary: [],
|
|
@@ -17431,6 +17447,7 @@ function Form(e, t) {
|
|
|
17431
17447
|
...N == null ? void 0 : N.context
|
|
17432
17448
|
}
|
|
17433
17449
|
},
|
|
17450
|
+
parentValues: getParentPlainValues == null ? void 0 : getParentPlainValues(),
|
|
17434
17451
|
onChangeFieldActionArgs: te.args
|
|
17435
17452
|
}), fe = await ConnectionProvider.getHandler().executeOnChange({
|
|
17436
17453
|
model: n,
|