@gisce/react-ooui 1.2.0-rc.27 → 1.2.0-rc.28
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 +1 -1
- 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
|
@@ -17238,11 +17238,12 @@ const Image = (e) => {
|
|
|
17238
17238
|
}), a;
|
|
17239
17239
|
}, checkFieldsType = ({
|
|
17240
17240
|
changedFields: e,
|
|
17241
|
-
|
|
17241
|
+
formOoui: r,
|
|
17242
17242
|
types: o
|
|
17243
17243
|
}) => e.map((s) => {
|
|
17244
|
-
var
|
|
17245
|
-
|
|
17244
|
+
var c;
|
|
17245
|
+
const l = (c = r == null ? void 0 : r.findById(s)) == null ? void 0 : c.type;
|
|
17246
|
+
return o.includes(l);
|
|
17246
17247
|
}).some((s) => s === !0), mergeFieldsDomain = ({
|
|
17247
17248
|
fieldsDomain: e,
|
|
17248
17249
|
fields: r
|
|
@@ -18759,7 +18760,7 @@ function Form(e, r) {
|
|
|
18759
18760
|
if (Pt.length !== 0) {
|
|
18760
18761
|
if (checkFieldsType({
|
|
18761
18762
|
changedFields: Pt,
|
|
18762
|
-
|
|
18763
|
+
formOoui: L,
|
|
18763
18764
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
18764
18765
|
}) && qe !== !0)
|
|
18765
18766
|
return;
|