@gisce/react-ooui 1.1.20 → 1.1.22-rc.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/helpers/formHelper.d.ts +3 -2
- package/dist/helpers/formHelper.d.ts.map +1 -1
- package/dist/react-ooui.es.js +5 -4
- 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/package.json +2 -2
- package/src/helpers/formHelper.ts +5 -3
- package/src/widgets/views/Form.tsx +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { Form as FormOoui } from "@gisce/ooui";
|
|
1
2
|
export declare const processValues: (values: any, fields: any) => any;
|
|
2
3
|
export declare const getTouchedValues: ({ source, target, fields, }: {
|
|
3
4
|
source: any;
|
|
4
5
|
target: any;
|
|
5
6
|
fields: any;
|
|
6
7
|
}) => any;
|
|
7
|
-
export declare const checkFieldsType: ({ changedFields,
|
|
8
|
+
export declare const checkFieldsType: ({ changedFields, formOoui, types, }: {
|
|
8
9
|
changedFields: string[];
|
|
9
|
-
|
|
10
|
+
formOoui: FormOoui;
|
|
10
11
|
types: string[];
|
|
11
12
|
}) => boolean;
|
|
12
13
|
export declare const mergeFieldsDomain: ({ fieldsDomain, fields, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formHelper.d.ts","sourceRoot":"","sources":["formHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formHelper.d.ts","sourceRoot":"","sources":["formHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AA6B/C,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;cACb,QAAQ;WACX,MAAM,EAAE;aAOhB,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
|
@@ -15898,11 +15898,12 @@ const Image = (e) => {
|
|
|
15898
15898
|
}), r;
|
|
15899
15899
|
}, checkFieldsType = ({
|
|
15900
15900
|
changedFields: e,
|
|
15901
|
-
|
|
15901
|
+
formOoui: t,
|
|
15902
15902
|
types: n
|
|
15903
15903
|
}) => e.map((o) => {
|
|
15904
|
-
var
|
|
15905
|
-
|
|
15904
|
+
var s;
|
|
15905
|
+
const a = (s = t == null ? void 0 : t.findById(o)) == null ? void 0 : s.type;
|
|
15906
|
+
return n.includes(a);
|
|
15906
15907
|
}).some((o) => o === !0), mergeFieldsDomain = ({
|
|
15907
15908
|
fieldsDomain: e,
|
|
15908
15909
|
fields: t
|
|
@@ -17419,7 +17420,7 @@ function Form(e, t) {
|
|
|
17419
17420
|
if (ce.length !== 0) {
|
|
17420
17421
|
if (checkFieldsType({
|
|
17421
17422
|
changedFields: ce,
|
|
17422
|
-
|
|
17423
|
+
formOoui: k,
|
|
17423
17424
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
17424
17425
|
}) && oe !== !0)
|
|
17425
17426
|
return;
|