@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.
@@ -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, fields, types, }: {
8
+ export declare const checkFieldsType: ({ changedFields, formOoui, types, }: {
8
9
  changedFields: string[];
9
- fields: any;
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":"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"}
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"}
@@ -15898,11 +15898,12 @@ const Image = (e) => {
15898
15898
  }), r;
15899
15899
  }, checkFieldsType = ({
15900
15900
  changedFields: e,
15901
- fields: t,
15901
+ formOoui: t,
15902
15902
  types: n
15903
15903
  }) => e.map((o) => {
15904
- var a;
15905
- return n.includes((a = t[o]) == null ? void 0 : a.type);
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
- fields: M,
17423
+ formOoui: k,
17423
17424
  types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
17424
17425
  }) && oe !== !0)
17425
17426
  return;