@gisce/react-ooui 1.1.34 → 1.1.35-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 +1 @@
1
- {"version":3,"file":"FormActionBar.d.ts","sourceRoot":"","sources":["FormActionBar.tsx"],"names":[],"mappings":";AA0CA,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,sBAsbnD;AAyBD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"FormActionBar.d.ts","sourceRoot":"","sources":["FormActionBar.tsx"],"names":[],"mappings":";AA0CA,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,sBAganD;AAMD,eAAe,aAAa,CAAC"}
@@ -9,10 +9,7 @@ export declare type ActionViewContextType = {
9
9
  setFormIsSaving?: (value: boolean) => void;
10
10
  formHasChanges?: boolean;
11
11
  setFormHasChanges?: (value: boolean) => void;
12
- onFormSave?: () => Promise<{
13
- succeed: boolean;
14
- id: number;
15
- }>;
12
+ onFormSave?: () => Promise<void>;
16
13
  formRef?: any;
17
14
  searchTreeRef?: any;
18
15
  onNewClicked: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionViewContext.d.ts","sourceRoot":"","sources":["ActionViewContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,oBAAY,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,IAAI,EAAE,CAAC;IACvB,WAAW,EAAE,IAAI,CAAC;IAClB,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK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,IAAI,CAAC;IAC5C,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAC2B,CAAC;AAE1D,aAAK,uBAAuB,GAAG,qBAAqB,GAAG;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,kBAAkB,UAAW,uBAAuB,KAAG,GA6I5D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -19,10 +19,7 @@ export declare type FormContextType = {
19
19
  domain: any[];
20
20
  submitForm?: (options?: {
21
21
  callOnSubmitSucceed?: boolean;
22
- }) => Promise<{
23
- succeed: boolean;
24
- id: number;
25
- }>;
22
+ }) => Promise<boolean>;
26
23
  fetchValues?: () => void;
27
24
  formHasChanges?: () => boolean;
28
25
  elementHasLostFocus?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"FormContext.d.ts","sourceRoot":"","sources":["FormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,oBAAY,eAAe,GAAG;IAC5B,QAAQ,CAAC,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AAO,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,WAAW,uCAAoD,CAAC;AAE7E,aAAK,iBAAiB,GAAG,eAAe,GAAG;IACzC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,YAAY,UAAW,iBAAiB,KAAG,GA2ChD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -9774,8 +9774,8 @@ function require_stream_readable() {
9774
9774
  J.pipesCount += 1, l("pipe count=%d opts=%j", J.pipesCount, O);
9775
9775
  var ee = (!O || O.end !== !1) && P !== process.stdout && P !== process.stderr, Q = ee ? te : he;
9776
9776
  J.endEmitted ? process.nextTick(Q) : X.once("end", Q), P.on("unpipe", ie);
9777
- function ie(ge, fe) {
9778
- l("onunpipe"), ge === X && fe && fe.hasUnpiped === !1 && (fe.hasUnpiped = !0, _e());
9777
+ function ie(ge, pe) {
9778
+ l("onunpipe"), ge === X && pe && pe.hasUnpiped === !1 && (pe.hasUnpiped = !0, _e());
9779
9779
  }
9780
9780
  function te() {
9781
9781
  l("onend"), P.end();
@@ -9784,26 +9784,26 @@ function require_stream_readable() {
9784
9784
  P.on("drain", oe);
9785
9785
  var se = !1;
9786
9786
  function _e() {
9787
- l("cleanup"), P.removeListener("close", me), P.removeListener("finish", pe), P.removeListener("drain", oe), P.removeListener("error", ae), P.removeListener("unpipe", ie), X.removeListener("end", te), X.removeListener("end", he), X.removeListener("data", Ce), se = !0, J.awaitDrain && (!P._writableState || P._writableState.needDrain) && oe();
9787
+ l("cleanup"), P.removeListener("close", me), P.removeListener("finish", fe), P.removeListener("drain", oe), P.removeListener("error", ae), P.removeListener("unpipe", ie), X.removeListener("end", te), X.removeListener("end", he), X.removeListener("data", Ce), se = !0, J.awaitDrain && (!P._writableState || P._writableState.needDrain) && oe();
9788
9788
  }
9789
9789
  X.on("data", Ce);
9790
9790
  function Ce(ge) {
9791
9791
  l("ondata");
9792
- var fe = P.write(ge);
9793
- l("dest.write", fe), fe === !1 && ((J.pipesCount === 1 && J.pipes === P || J.pipesCount > 1 && Z(J.pipes, P) !== -1) && !se && (l("false write response, pause", J.awaitDrain), J.awaitDrain++), X.pause());
9792
+ var pe = P.write(ge);
9793
+ l("dest.write", pe), pe === !1 && ((J.pipesCount === 1 && J.pipes === P || J.pipesCount > 1 && Z(J.pipes, P) !== -1) && !se && (l("false write response, pause", J.awaitDrain), J.awaitDrain++), X.pause());
9794
9794
  }
9795
9795
  function ae(ge) {
9796
9796
  l("onerror", ge), he(), P.removeListener("error", ae), t(P, "error") === 0 && C(P, ge);
9797
9797
  }
9798
9798
  F(P, "error", ae);
9799
9799
  function me() {
9800
- P.removeListener("finish", pe), he();
9800
+ P.removeListener("finish", fe), he();
9801
9801
  }
9802
9802
  P.once("close", me);
9803
- function pe() {
9803
+ function fe() {
9804
9804
  l("onfinish"), P.removeListener("close", me), he();
9805
9805
  }
9806
- P.once("finish", pe);
9806
+ P.once("finish", fe);
9807
9807
  function he() {
9808
9808
  l("unpipe"), X.unpipe(P);
9809
9809
  }
@@ -13076,8 +13076,8 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
13076
13076
  he === -1 ? y == null || y(0) : y == null || y(he);
13077
13077
  } else
13078
13078
  y == null || y(void 0);
13079
- const pe = await _e;
13080
- W(pe), d == null || d(pe);
13079
+ const fe = await _e;
13080
+ W(fe), d == null || d(fe);
13081
13081
  },
13082
13082
  [
13083
13083
  y,
@@ -13671,14 +13671,14 @@ function Form(e, t) {
13671
13671
  elementHasLostFocus: !0
13672
13672
  }), U(!1));
13673
13673
  }, [K]);
13674
- const pe = (ne, re, ce) => {
13674
+ const fe = (ne, re, ce) => {
13675
13675
  Q == null || Q(!1), ee == null || ee(!1), o == null || o(ne, re, ce), ie == null || ie(ne);
13676
13676
  }, he = () => {
13677
13677
  ee == null || ee(!1), a == null || a();
13678
13678
  }, ge = (ne) => {
13679
13679
  ee == null || ee(!1), c == null || c(ne);
13680
13680
  };
13681
- function fe() {
13681
+ function pe() {
13682
13682
  return n || B.current;
13683
13683
  }
13684
13684
  function Te() {
@@ -13717,15 +13717,15 @@ function Form(e, t) {
13717
13717
  }
13718
13718
  function ve() {
13719
13719
  return {
13720
- id: fe(),
13721
- active_id: fe(),
13722
- active_ids: [fe()],
13720
+ id: pe(),
13721
+ active_id: pe(),
13722
+ active_ids: [pe()],
13723
13723
  parent_id: O,
13724
13724
  ...me
13725
13725
  };
13726
13726
  }
13727
13727
  const we = async (ne) => {
13728
- const re = fe() ? M == null ? void 0 : M.context : {};
13728
+ const re = pe() ? M == null ? void 0 : M.context : {};
13729
13729
  return await ConnectionProvider.getHandler().defaultGet({
13730
13730
  model: r,
13731
13731
  fields: ne,
@@ -13849,15 +13849,15 @@ function Form(e, t) {
13849
13849
  arch: re
13850
13850
  }) => {
13851
13851
  let ce = {}, de = !1;
13852
- if (fe()) {
13852
+ if (pe()) {
13853
13853
  ce = (await ConnectionProvider.getHandler().readObjects({
13854
13854
  model: r,
13855
- ids: [fe()],
13855
+ ids: [pe()],
13856
13856
  fields: ne,
13857
13857
  context: g
13858
13858
  }))[0];
13859
13859
  const xe = await ConnectionProvider.getHandler().search({
13860
- params: [["res_model", "=", r], ["res_id", "=", fe()]],
13860
+ params: [["res_model", "=", r], ["res_id", "=", pe()]],
13861
13861
  fields: ["id", "name"],
13862
13862
  context: ye(),
13863
13863
  model: "ir.attachment"
@@ -13873,7 +13873,7 @@ function Form(e, t) {
13873
13873
  const {
13874
13874
  callOnSubmitSucceed: re = !0
13875
13875
  } = ne || {};
13876
- if (fe()) {
13876
+ if (pe()) {
13877
13877
  const ce = getTouchedValues({
13878
13878
  source: k.current,
13879
13879
  target: Ee(A),
@@ -13881,7 +13881,7 @@ function Form(e, t) {
13881
13881
  });
13882
13882
  await ConnectionProvider.getHandler().update({
13883
13883
  model: r,
13884
- id: fe(),
13884
+ id: pe(),
13885
13885
  values: {
13886
13886
  ...ce,
13887
13887
  ...E
@@ -13907,27 +13907,21 @@ function Form(e, t) {
13907
13907
  });
13908
13908
  B.current = de, k.current = ce;
13909
13909
  }
13910
- y && await y([fe()]), !b && re && (pe == null || pe(fe(), be(), ue()));
13910
+ y && await y([pe()]), !b && re && (fe == null || fe(pe(), be(), ue()));
13911
13911
  }, He = async (ne) => {
13912
13912
  const {
13913
13913
  callOnSubmitSucceed: re = !0
13914
13914
  } = ne || {};
13915
- !b && re && (pe == null || pe(fe(), be(), ue()));
13915
+ !b && re && (fe == null || fe(pe(), be(), ue()));
13916
13916
  }, Ae = async (ne) => {
13917
13917
  let re = !1;
13918
13918
  const {
13919
13919
  callOnSubmitSucceed: ce = !0
13920
13920
  } = ne || {};
13921
- if (G.current = !0, q(void 0), !Re() && fe() && ce)
13922
- return G.current = !1, Q == null || Q(!1), he == null || he(), {
13923
- succeed: !0,
13924
- id: fe()
13925
- };
13921
+ if (G.current = !0, q(void 0), !Re() && pe() && ce)
13922
+ return G.current = !1, Q == null || Q(!1), he == null || he(), !0;
13926
13923
  if (await Oe())
13927
- return G.current = !1, showDialog$5(w), {
13928
- succeed: !1,
13929
- id: fe()
13930
- };
13924
+ return G.current = !1, showDialog$5(w), !1;
13931
13925
  T(!0), ee == null || ee(!0);
13932
13926
  try {
13933
13927
  p === "api" ? await Be(ne) : await He(ne), f && (B.current = void 0, Me({
@@ -13940,10 +13934,7 @@ function Form(e, t) {
13940
13934
  } finally {
13941
13935
  G.current = !1, ee == null || ee(!1), T(!1);
13942
13936
  }
13943
- return {
13944
- succeed: re,
13945
- id: fe()
13946
- };
13937
+ return re;
13947
13938
  }, Ie = ({
13948
13939
  fields: ne,
13949
13940
  arch: re,
@@ -14012,7 +14003,7 @@ function Form(e, t) {
14012
14003
  }), de = await ConnectionProvider.getHandler().executeOnChange({
14013
14004
  model: r,
14014
14005
  action: re.method,
14015
- ids: fe() ? [fe()] : [],
14006
+ ids: pe() ? [pe()] : [],
14016
14007
  payload: ce,
14017
14008
  fields: A
14018
14009
  });
@@ -14059,7 +14050,7 @@ function Form(e, t) {
14059
14050
  const ce = await ConnectionProvider.getHandler().execute({
14060
14051
  model: r,
14061
14052
  action: ne,
14062
- payload: [fe()],
14053
+ payload: [pe()],
14063
14054
  context: {
14064
14055
  ...re,
14065
14056
  ...M == null ? void 0 : M.context,
@@ -14067,9 +14058,9 @@ function Form(e, t) {
14067
14058
  }
14068
14059
  });
14069
14060
  if (typeof ce == "object" && ce !== null && Object.keys(ce).length === 0 && b)
14070
- pe == null || pe(fe(), be(), ue());
14061
+ fe == null || fe(pe(), be(), ue());
14071
14062
  else if (ce.type && ce.type === "ir.actions.act_window_close")
14072
- pe == null || pe(fe(), be(), ue());
14063
+ fe == null || fe(pe(), be(), ue());
14073
14064
  else if (ce.type) {
14074
14065
  let de = {};
14075
14066
  ce.context && (de = parseContext({
@@ -14092,9 +14083,9 @@ function Form(e, t) {
14092
14083
  const re = await ConnectionProvider.getHandler().executeWorkflow({
14093
14084
  model: r,
14094
14085
  action: ne,
14095
- payload: fe()
14086
+ payload: pe()
14096
14087
  });
14097
- re.type && re.type === "ir.actions.act_window_close" ? pe == null || pe(fe(), be(), ue()) : await Fe();
14088
+ re.type && re.type === "ir.actions.act_window_close" ? fe == null || fe(pe(), be(), ue()) : await Fe();
14098
14089
  }
14099
14090
  async function Ze({
14100
14091
  action: ne,
@@ -14129,7 +14120,7 @@ function Form(e, t) {
14129
14120
  Fe();
14130
14121
  }
14131
14122
  })) || {};
14132
- !_ && ce && (pe == null || pe(fe(), be(), ue()));
14123
+ !_ && ce && (fe == null || fe(pe(), be(), ue()));
14133
14124
  }
14134
14125
  function Qe() {
14135
14126
  De({
@@ -15318,10 +15309,10 @@ function SearchTree(e, t) {
15318
15309
  page: Ce,
15319
15310
  offset: ae,
15320
15311
  getResults: me,
15321
- requestPageChange: pe,
15312
+ requestPageChange: fe,
15322
15313
  changeSort: he,
15323
15314
  fetchChildrenForRecord: ge,
15324
- colorsForResults: fe,
15315
+ colorsForResults: pe,
15325
15316
  totalItems: Te
15326
15317
  } = useSearch({
15327
15318
  model: v,
@@ -15453,11 +15444,11 @@ function SearchTree(e, t) {
15453
15444
  page: Ce,
15454
15445
  treeView: _,
15455
15446
  results: me(),
15456
- onRequestPageChange: pe,
15447
+ onRequestPageChange: fe,
15457
15448
  loading: oe,
15458
15449
  onRowClicked: ve,
15459
15450
  scrollY: u || Re(),
15460
- colorsForResults: fe,
15451
+ colorsForResults: pe,
15461
15452
  rowSelection: {
15462
15453
  selectedRowKeys: z == null ? void 0 : z.map((Se) => Se.id),
15463
15454
  onChange: we
@@ -18524,18 +18515,18 @@ function requireBase() {
18524
18515
  }, {
18525
18516
  key: "renderContent",
18526
18517
  value: function() {
18527
- var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component, O = Z.children, X = Z.className, J = Z.type, ee = Z.disabled, Q = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, _e = oe.suffix, Ce = oe.tooltip, ae = this.getPrefixCls(), me = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(_.configConsumerProps))), pe = this.canUseCSSEllipsis(), he = se === 1 && pe, ge = se && se > 1 && pe, fe = O;
18528
- if (se && L && !G && !pe) {
18518
+ var B = this, k = this.state, $ = k.ellipsisContent, L = k.isEllipsis, G = k.expanded, Z = this.props, P = Z.component, O = Z.children, X = Z.className, J = Z.type, ee = Z.disabled, Q = Z.style, ie = D(Z, ["component", "children", "className", "type", "disabled", "style"]), te = this.context.direction, oe = this.getEllipsis(), se = oe.rows, _e = oe.suffix, Ce = oe.tooltip, ae = this.getPrefixCls(), me = (0, y.default)(ie, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, a.default)(_.configConsumerProps))), fe = this.canUseCSSEllipsis(), he = se === 1 && fe, ge = se && se > 1 && fe, pe = O;
18519
+ if (se && L && !G && !fe) {
18529
18520
  var Te = ie.title, be = Te || "";
18530
- !Te && (typeof O == "string" || typeof O == "number") && (be = String(O)), be = be == null ? void 0 : be.slice(String($ || "").length), fe = /* @__PURE__ */ f.createElement(f.Fragment, null, $, /* @__PURE__ */ f.createElement("span", {
18521
+ !Te && (typeof O == "string" || typeof O == "number") && (be = String(O)), be = be == null ? void 0 : be.slice(String($ || "").length), pe = /* @__PURE__ */ f.createElement(f.Fragment, null, $, /* @__PURE__ */ f.createElement("span", {
18531
18522
  title: be,
18532
18523
  "aria-hidden": "true"
18533
- }, A), _e), Ce && (fe = /* @__PURE__ */ f.createElement(T.default, {
18524
+ }, A), _e), Ce && (pe = /* @__PURE__ */ f.createElement(T.default, {
18534
18525
  title: Ce === !0 ? O : Ce
18535
- }, /* @__PURE__ */ f.createElement("span", null, fe)));
18526
+ }, /* @__PURE__ */ f.createElement("span", null, pe)));
18536
18527
  } else
18537
- fe = /* @__PURE__ */ f.createElement(f.Fragment, null, O, _e);
18538
- return fe = V(this.props, fe), /* @__PURE__ */ f.createElement(C.default, {
18528
+ pe = /* @__PURE__ */ f.createElement(f.Fragment, null, O, _e);
18529
+ return pe = V(this.props, pe), /* @__PURE__ */ f.createElement(C.default, {
18539
18530
  componentName: "Text"
18540
18531
  }, function(le) {
18541
18532
  var ue, ye = le.edit, ve = le.copy, we = le.copied, Re = le.expand;
@@ -18550,7 +18541,7 @@ function requireBase() {
18550
18541
  component: P,
18551
18542
  ref: B.contentRef,
18552
18543
  direction: te
18553
- }, me), fe, B.renderOperations()));
18544
+ }, me), pe, B.renderOperations()));
18554
18545
  });
18555
18546
  }
18556
18547
  }, {
@@ -19554,7 +19545,7 @@ const One2manyInput = (e) => {
19554
19545
  });
19555
19546
  }
19556
19547
  Z(ve), V || T(!1);
19557
- }, pe = (le) => {
19548
+ }, fe = (le) => {
19558
19549
  const {
19559
19550
  id: ue
19560
19551
  } = le;
@@ -19605,7 +19596,7 @@ const One2manyInput = (e) => {
19605
19596
  return ue.parse(a.get(s).arch), ue.string;
19606
19597
  }
19607
19598
  }
19608
- const fe = () => {
19599
+ const pe = () => {
19609
19600
  var ue, ye, ve, we;
19610
19601
  if (s === "form")
19611
19602
  return G.length === 0 ? g("noCurrentEntries") : /* @__PURE__ */ jsx(Form$1, {
@@ -19652,7 +19643,7 @@ const One2manyInput = (e) => {
19652
19643
  treeView: a.get("tree"),
19653
19644
  results: le,
19654
19645
  loading: C,
19655
- onRowClicked: ((we = a.get("form")) == null ? void 0 : we.fields) !== void 0 ? pe : void 0,
19646
+ onRowClicked: ((we = a.get("form")) == null ? void 0 : we.fields) !== void 0 ? fe : void 0,
19656
19647
  showPagination: !1,
19657
19648
  rowSelection: {
19658
19649
  selectedRowKeys: j,
@@ -19705,7 +19696,7 @@ const One2manyInput = (e) => {
19705
19696
  selectedRowKeys: j,
19706
19697
  showCreateButton: ((be = a.get("form")) == null ? void 0 : be.fields) !== void 0,
19707
19698
  showToggleButton: a.size > 1
19708
- }), fe(), /* @__PURE__ */ jsx(FormModal, {
19699
+ }), pe(), /* @__PURE__ */ jsx(FormModal, {
19709
19700
  formView: a.get("form"),
19710
19701
  model: U,
19711
19702
  id: M == null ? void 0 : M.id,
@@ -23383,10 +23374,7 @@ function FormActionBar({
23383
23374
  tooltip: S("actions"),
23384
23375
  items: e == null ? void 0 : e.action,
23385
23376
  onItemClick: async (k) => {
23386
- !k || !(await saveNewDocumentIfNeeded({
23387
- onFormSave: a,
23388
- currentId: u
23389
- })).succeed || B(k);
23377
+ !k || !await (a == null ? void 0 : a()) || B(k);
23390
23378
  }
23391
23379
  }), /* @__PURE__ */ jsx(DropdownButton, {
23392
23380
  icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
@@ -23394,17 +23382,11 @@ function FormActionBar({
23394
23382
  tooltip: S("reports"),
23395
23383
  items: e == null ? void 0 : e.print,
23396
23384
  onItemClick: async (k) => {
23397
- if (!k)
23398
- return;
23399
- const $ = await saveNewDocumentIfNeeded({
23400
- onFormSave: a,
23401
- currentId: u
23402
- });
23403
- !$.succeed || B({
23385
+ !k || !await (a == null ? void 0 : a()) || B({
23404
23386
  ...k,
23405
23387
  datas: {
23406
23388
  ...k.datas || {},
23407
- ids: [$.currentId]
23389
+ ids: [u]
23408
23390
  }
23409
23391
  });
23410
23392
  }
@@ -23414,10 +23396,7 @@ function FormActionBar({
23414
23396
  tooltip: S("related"),
23415
23397
  items: e == null ? void 0 : e.relate,
23416
23398
  onItemClick: async (k) => {
23417
- !k || !(await saveNewDocumentIfNeeded({
23418
- onFormSave: a,
23419
- currentId: u
23420
- })).succeed || D({
23399
+ !k || !await (a == null ? void 0 : a()) || D({
23421
23400
  relateData: k,
23422
23401
  values: _.current.getValues(),
23423
23402
  fields: _.current.getFields(),
@@ -23429,13 +23408,9 @@ function FormActionBar({
23429
23408
  disabled: U,
23430
23409
  attachments: x,
23431
23410
  onAddNewAttachment: async () => {
23432
- const k = await saveNewDocumentIfNeeded({
23433
- onFormSave: a,
23434
- currentId: u
23435
- });
23436
- if (!k.succeed)
23411
+ if (!await (a == null ? void 0 : a()))
23437
23412
  return;
23438
- const $ = k.currentId, L = p;
23413
+ const $ = u, L = p;
23439
23414
  j({
23440
23415
  model: "ir.attachment",
23441
23416
  values: {
@@ -23449,13 +23424,9 @@ function FormActionBar({
23449
23424
  });
23450
23425
  },
23451
23426
  onListAllAttachments: async () => {
23452
- const k = await saveNewDocumentIfNeeded({
23453
- onFormSave: a,
23454
- currentId: u
23455
- });
23456
- if (!k.succeed)
23427
+ if (!await (a == null ? void 0 : a()))
23457
23428
  return;
23458
- const $ = k.currentId;
23429
+ const $ = u;
23459
23430
  j({
23460
23431
  model: "ir.attachment",
23461
23432
  domain: [["res_model", "=", `${p}`], ["res_id", "=", `${$}`]],
@@ -23463,10 +23434,7 @@ function FormActionBar({
23463
23434
  });
23464
23435
  },
23465
23436
  onViewAttachmentDetails: async (k) => {
23466
- !(await saveNewDocumentIfNeeded({
23467
- onFormSave: a,
23468
- currentId: u
23469
- })).succeed || j({
23437
+ !await (a == null ? void 0 : a()) || j({
23470
23438
  model: "ir.attachment",
23471
23439
  res_id: k.id,
23472
23440
  initialViewType: "form"
@@ -23480,24 +23448,6 @@ function separator$2() {
23480
23448
  className: "inline-block w-2"
23481
23449
  });
23482
23450
  }
23483
- async function saveNewDocumentIfNeeded({
23484
- onFormSave: e,
23485
- currentId: t
23486
- }) {
23487
- if (t !== void 0)
23488
- return {
23489
- succeed: !0,
23490
- currentId: t
23491
- };
23492
- const r = await (e == null ? void 0 : e());
23493
- return r != null && r.succeed ? {
23494
- succeed: !0,
23495
- currentId: r.id
23496
- } : {
23497
- succeed: !1,
23498
- currentId: void 0
23499
- };
23500
- }
23501
23451
  var isURL$1 = { exports: {} }, assertString = { exports: {} };
23502
23452
  (function(e, t) {
23503
23453
  Object.defineProperty(t, "__esModule", {
@@ -24693,11 +24643,11 @@ function ActionView(e, t) {
24693
24643
  const ie = async () => {
24694
24644
  E(!0);
24695
24645
  const ae = [];
24696
- for (const pe of o) {
24697
- const [he, ge] = pe;
24698
- let fe;
24646
+ for (const fe of o) {
24647
+ const [he, ge] = fe;
24648
+ let pe;
24699
24649
  try {
24700
- ge !== "dashboard" && (fe = await ConnectionProvider.getHandler().getView({
24650
+ ge !== "dashboard" && (pe = await ConnectionProvider.getHandler().getView({
24701
24651
  model: n,
24702
24652
  type: ge,
24703
24653
  id: he,
@@ -24733,14 +24683,14 @@ function ActionView(e, t) {
24733
24683
  }
24734
24684
  case "form": {
24735
24685
  ae.push({
24736
- ...fe,
24686
+ ...pe,
24737
24687
  type: ge
24738
24688
  });
24739
24689
  break;
24740
24690
  }
24741
24691
  case "tree": {
24742
24692
  ae.push({
24743
- ...fe,
24693
+ ...pe,
24744
24694
  isExpandable: y,
24745
24695
  type: ge
24746
24696
  });
@@ -24748,7 +24698,7 @@ function ActionView(e, t) {
24748
24698
  }
24749
24699
  case "graph": {
24750
24700
  ae.push({
24751
- ...fe,
24701
+ ...pe,
24752
24702
  type: ge
24753
24703
  });
24754
24704
  break;
@@ -24756,14 +24706,14 @@ function ActionView(e, t) {
24756
24706
  }
24757
24707
  }
24758
24708
  let me;
24759
- !c && ae.find((pe) => pe.type === "tree") ? me = ae.find((he) => he.type === "tree") : c ? me = ae.find((he) => c.id ? he.type === c.type && he.view_id === c.id : he.type === c.type) : me = ae.find((he) => he.type === "form"), me || showDialog$8(`Error determining the first view to show.
24709
+ !c && ae.find((fe) => fe.type === "tree") ? me = ae.find((he) => he.type === "tree") : c ? me = ae.find((he) => c.id ? he.type === c.type && he.view_id === c.id : he.type === c.type) : me = ae.find((he) => he.type === "form"), me || showDialog$8(`Error determining the first view to show.
24760
24710
  Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), Q(me), _(ae), E(!1);
24761
24711
  };
24762
24712
  u({
24763
24713
  tabKey: l,
24764
24714
  canWeClose: te
24765
24715
  }), useEffect(() => {
24766
- const ae = x.find((pe) => pe.type === "tree"), me = x.find((pe) => c.id ? pe.type === c.type && pe.view_id === c.id : pe.type === c.type);
24716
+ const ae = x.find((fe) => fe.type === "tree"), me = x.find((fe) => c.id ? fe.type === c.type && fe.view_id === c.id : fe.type === c.type);
24767
24717
  Q(me || ae), p ? P == null || P(F) : (ee(void 0), M(void 0)), ie();
24768
24718
  }, [n, o, p]), useEffect(() => {
24769
24719
  X === l && (P == null || P(w), Z == null || Z(g));
@@ -24777,25 +24727,25 @@ Please, make sure the view ids on the fields_view_get responses are the same as
24777
24727
  async function se(ae) {
24778
24728
  var ge;
24779
24729
  K(!0);
24780
- const me = D.findIndex((fe) => fe.id === ae);
24781
- let pe;
24730
+ const me = D.findIndex((pe) => pe.id === ae);
24731
+ let fe;
24782
24732
  if (me === -1) {
24783
24733
  try {
24784
- pe = (ge = await ConnectionProvider.getHandler().readObjects({
24734
+ fe = (ge = await ConnectionProvider.getHandler().readObjects({
24785
24735
  model: n,
24786
24736
  ids: [ae],
24787
24737
  context: a
24788
24738
  })) == null ? void 0 : ge[0];
24789
24739
  } catch {
24790
24740
  }
24791
- if (!pe) {
24741
+ if (!fe) {
24792
24742
  K(!1), z(!1), showDialog$7(k("idNotFound"));
24793
24743
  return;
24794
24744
  }
24795
24745
  } else
24796
- pe = D[me];
24746
+ fe = D[me];
24797
24747
  K(!1), z(!1);
24798
- const he = o.find((fe) => fe[1] === "form");
24748
+ const he = o.find((pe) => pe[1] === "form");
24799
24749
  J({
24800
24750
  domain: [],
24801
24751
  context: a,