@gisce/react-ooui 1.2.0-rc.83 → 1.2.0-rc.85

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.
@@ -689,78 +689,88 @@ const Button = (e) => {
689
689
  }
690
690
  $();
691
691
  }
692
- return /* @__PURE__ */ jsx(Field$1, {
693
- ooui: new Field$2({
694
- ooui: t
695
- }),
696
- children: /* @__PURE__ */ jsxs(Dropdown.Button, {
697
- disabled: !s || y,
698
- onClick: _,
699
- icon: /* @__PURE__ */ jsx(DownOutlined, {}),
700
- type: d ? "primary" : void 0,
701
- overlay: Items({
702
- ooui: n
692
+ if (t.buttons.length === 0)
693
+ return null;
694
+ if (t.buttons.length > 1)
695
+ return /* @__PURE__ */ jsx(Field$1, {
696
+ ooui: new Field$2({
697
+ ooui: t
703
698
  }),
704
- children: [x(), a]
705
- })
706
- });
699
+ children: /* @__PURE__ */ jsxs(Dropdown.Button, {
700
+ disabled: !s || y,
701
+ onClick: _,
702
+ icon: /* @__PURE__ */ jsx(DownOutlined, {}),
703
+ type: d ? "primary" : void 0,
704
+ overlay: /* @__PURE__ */ jsx(Items, {
705
+ ooui: n,
706
+ executeButtonAction: h,
707
+ lang: v
708
+ }),
709
+ children: [x(), a]
710
+ })
711
+ });
712
+ if (r)
713
+ return /* @__PURE__ */ jsx(Button, {
714
+ ooui: r
715
+ });
707
716
  }, Items = (e) => {
708
717
  const {
709
- ooui: t
710
- } = e, r = t.map((n) => {
718
+ ooui: t,
719
+ executeButtonAction: r,
720
+ lang: n
721
+ } = e;
722
+ if (!t)
723
+ return null;
724
+ const o = t.map((a) => {
711
725
  const {
712
- id: o,
713
- caption: a,
714
- activated: s,
715
- buttonType: l,
716
- confirmMessage: c,
717
- icon: u,
718
- context: d,
719
- readOnly: f,
720
- danger: p
721
- } = n, y = useContext(FormContext$2), {
722
- executeButtonAction: m
723
- } = y || {}, [h, b] = useState$1(!1), {
724
- lang: g
725
- } = useContext(LocaleContext$1);
726
- async function v() {
727
- b(!0), await m({
728
- type: l,
729
- action: o,
730
- context: d
726
+ id: s,
727
+ caption: l,
728
+ activated: c,
729
+ buttonType: u,
730
+ confirmMessage: d,
731
+ icon: f,
732
+ context: p,
733
+ readOnly: y,
734
+ danger: m
735
+ } = a, [h, b] = useState$1(!1);
736
+ async function g() {
737
+ b(!0), await r({
738
+ type: u,
739
+ action: s,
740
+ context: p
731
741
  }), b(!1);
732
742
  }
733
- function x() {
734
- if (c) {
743
+ function v() {
744
+ if (d) {
735
745
  showDialog$9({
736
- confirmMessage: c,
737
- lang: g,
746
+ confirmMessage: d,
747
+ lang: n,
738
748
  onOk: () => {
739
- v();
749
+ g();
740
750
  }
741
751
  });
742
752
  return;
743
753
  }
744
- v();
754
+ g();
745
755
  }
746
- function $() {
756
+ function x() {
747
757
  if (h)
748
758
  return /* @__PURE__ */ jsx(LoadingOutlined, {});
749
- if (u) {
750
- const _ = iconMapper(u);
751
- return _ && /* @__PURE__ */ jsx(_, {});
759
+ if (f) {
760
+ const $ = iconMapper(f);
761
+ return $ && /* @__PURE__ */ jsx($, {});
752
762
  }
753
763
  }
754
764
  return /* @__PURE__ */ jsx(Menu.Item, {
755
- disabled: !s || f,
756
- onClick: x,
757
- icon: $(),
758
- danger: p,
759
- children: a
765
+ disabled: !c || y,
766
+ onClick: v,
767
+ icon: x(),
768
+ danger: m,
769
+ children: l
760
770
  });
761
771
  });
762
772
  return /* @__PURE__ */ jsx(Menu, {
763
- children: r
773
+ children: o
764
774
  });
765
775
  }, MODAL_WIDTH_CONSTANT = 0.7;
766
776
  function getWindowDimensions() {
@@ -3926,18 +3936,18 @@ var TextArea$2 = /* @__PURE__ */ React__default.forwardRef(function(e, t) {
3926
3936
  M(""), G(), resolveOnChange(C.current.textArea, ee, l);
3927
3937
  }, le = fixControlledValue(I);
3928
3938
  !z && X && o == null && (le = fixEmojiLength(le, u));
3929
- var oe = p, ie;
3939
+ var oe = p, ae;
3930
3940
  if (b) {
3931
3941
  var de = _toConsumableArray(le).length;
3932
- _typeof$4(b) === "object" ? ie = b.formatter({
3942
+ _typeof$4(b) === "object" ? ae = b.formatter({
3933
3943
  value: le,
3934
3944
  count: de,
3935
3945
  maxLength: u
3936
- }) : ie = "".concat(de).concat(X ? " / ".concat(u) : ""), oe = /* @__PURE__ */ jsxs(Fragment, {
3946
+ }) : ae = "".concat(de).concat(X ? " / ".concat(u) : ""), oe = /* @__PURE__ */ jsxs(Fragment, {
3937
3947
  children: [oe, /* @__PURE__ */ jsx("span", {
3938
3948
  className: classNames("".concat(m, "-data-count"), _ == null ? void 0 : _.count),
3939
3949
  style: w == null ? void 0 : w.count,
3940
- children: ie
3950
+ children: ae
3941
3951
  })]
3942
3952
  });
3943
3953
  }
@@ -3960,7 +3970,7 @@ var TextArea$2 = /* @__PURE__ */ React__default.forwardRef(function(e, t) {
3960
3970
  } : {}),
3961
3971
  dataAttrs: {
3962
3972
  affixWrapper: {
3963
- "data-count": typeof ie == "string" ? ie : void 0
3973
+ "data-count": typeof ae == "string" ? ae : void 0
3964
3974
  }
3965
3975
  },
3966
3976
  hidden: $,
@@ -9257,11 +9267,11 @@ function useStatus(e, t, r, n) {
9257
9267
  function V() {
9258
9268
  L(STATUS_NONE, !0), z(null, !0);
9259
9269
  }
9260
- function F(ie) {
9270
+ function F(ae) {
9261
9271
  var de = K();
9262
- if (!(ie && !ie.deadline && ie.target !== de)) {
9272
+ if (!(ae && !ae.deadline && ae.target !== de)) {
9263
9273
  var ge = H.current, $e;
9264
- D === STATUS_APPEAR && ge ? $e = _ == null ? void 0 : _(de, ie) : D === STATUS_ENTER && ge ? $e = w == null ? void 0 : w(de, ie) : D === STATUS_LEAVE && ge && ($e = P == null ? void 0 : P(de, ie)), D !== STATUS_NONE && ge && $e !== !1 && V();
9274
+ D === STATUS_APPEAR && ge ? $e = _ == null ? void 0 : _(de, ae) : D === STATUS_ENTER && ge ? $e = w == null ? void 0 : w(de, ae) : D === STATUS_LEAVE && ge && ($e = P == null ? void 0 : P(de, ae)), D !== STATUS_NONE && ge && $e !== !1 && V();
9265
9275
  }
9266
9276
  }
9267
9277
  var k = useDomMotionEvents(F), G = _slicedToArray(k, 1), X = G[0], Q = function(de) {
@@ -9278,8 +9288,8 @@ function useStatus(e, t, r, n) {
9278
9288
  }
9279
9289
  }, A = React$s.useMemo(function() {
9280
9290
  return Q(D);
9281
- }, [D]), T = useStepQueue(D, !e, function(ie) {
9282
- if (ie === STEP_PREPARE) {
9291
+ }, [D]), T = useStepQueue(D, !e, function(ae) {
9292
+ if (ae === STEP_PREPARE) {
9283
9293
  var de = A[STEP_PREPARE];
9284
9294
  return de ? de(K()) : SkipStep;
9285
9295
  }
@@ -9295,10 +9305,10 @@ function useStatus(e, t, r, n) {
9295
9305
  }), U = _slicedToArray(T, 2), J = U[0], ne = U[1], Z = isActive(ne);
9296
9306
  H.current = Z, useIsomorphicLayoutEffect(function() {
9297
9307
  M(t);
9298
- var ie = Y.current;
9308
+ var ae = Y.current;
9299
9309
  Y.current = !0;
9300
9310
  var de;
9301
- !ie && t && l && (de = STATUS_APPEAR), ie && t && a && (de = STATUS_ENTER), (ie && !t && u || !ie && f && !t && u) && (de = STATUS_LEAVE);
9311
+ !ae && t && l && (de = STATUS_APPEAR), ae && t && a && (de = STATUS_ENTER), (ae && !t && u || !ae && f && !t && u) && (de = STATUS_LEAVE);
9302
9312
  var ge = Q(de);
9303
9313
  de && (e || ge[STEP_PREPARE]) ? (L(de), J()) : L(STATUS_NONE);
9304
9314
  }, [t]), useEffect(function() {
@@ -9621,7 +9631,7 @@ style$4.default = _default$s;
9621
9631
  parentContext: Z,
9622
9632
  iconPrefixCls: le,
9623
9633
  theme: oe,
9624
- componentDisabled: ie
9634
+ componentDisabled: ae
9625
9635
  } = W;
9626
9636
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (0, c.default)(T === void 0, "ConfigProvider", "`dropdownMatchSelectWidth` is deprecated. Please use `popupMatchSelectWidth` instead.");
9627
9637
  const de = l.useCallback((Ce, te) => {
@@ -9687,8 +9697,8 @@ style$4.default = _default$s;
9687
9697
  }, [se]);
9688
9698
  return oe && (Se = /* @__PURE__ */ l.createElement(y.DesignTokenContext.Provider, {
9689
9699
  value: je
9690
- }, Se)), ie !== void 0 && (Se = /* @__PURE__ */ l.createElement(g.DisabledContextProvider, {
9691
- disabled: ie
9700
+ }, Se)), ae !== void 0 && (Se = /* @__PURE__ */ l.createElement(g.DisabledContextProvider, {
9701
+ disabled: ae
9692
9702
  }, Se)), /* @__PURE__ */ l.createElement(h.ConfigContext.Provider, {
9693
9703
  value: he
9694
9704
  }, Se);
@@ -12818,11 +12828,11 @@ function require_stream_readable() {
12818
12828
  function oe() {
12819
12829
  c("onend"), A.end();
12820
12830
  }
12821
- var ie = Y(U);
12822
- A.on("drain", ie);
12831
+ var ae = Y(U);
12832
+ A.on("drain", ae);
12823
12833
  var de = !1;
12824
12834
  function ge() {
12825
- c("cleanup"), A.removeListener("close", ee), A.removeListener("finish", se), A.removeListener("drain", ie), A.removeListener("error", _e), A.removeListener("unpipe", le), U.removeListener("end", oe), U.removeListener("end", me), U.removeListener("data", $e), de = !0, J.awaitDrain && (!A._writableState || A._writableState.needDrain) && ie();
12835
+ c("cleanup"), A.removeListener("close", ee), A.removeListener("finish", se), A.removeListener("drain", ae), A.removeListener("error", _e), A.removeListener("unpipe", le), U.removeListener("end", oe), U.removeListener("end", me), U.removeListener("data", $e), de = !0, J.awaitDrain && (!A._writableState || A._writableState.needDrain) && ae();
12826
12836
  }
12827
12837
  U.on("data", $e);
12828
12838
  function $e(Ee) {
@@ -16104,7 +16114,7 @@ const transformPlainMany2Ones = ({
16104
16114
  context: u
16105
16115
  });
16106
16116
  if (q(Z.length), d == null || d(Z.length), Z.length > 0) {
16107
- const le = Z.map((_e) => _e == null ? void 0 : _e[0]), { colors: oe } = getTree(f), ie = await ConnectionProvider.getHandler().readEvalUiObjects({
16117
+ const le = Z.map((_e) => _e == null ? void 0 : _e[0]), { colors: oe } = getTree(f), ae = await ConnectionProvider.getHandler().readEvalUiObjects({
16108
16118
  model: t,
16109
16119
  ids: le,
16110
16120
  arch: f == null ? void 0 : f.arch,
@@ -16113,8 +16123,8 @@ const transformPlainMany2Ones = ({
16113
16123
  attrs: oe && {
16114
16124
  colors: oe
16115
16125
  }
16116
- }), de = ie[0];
16117
- V.current = [...de], K(getColorMap(ie[1]));
16126
+ }), de = ae[0];
16127
+ V.current = [...de], K(getColorMap(ae[1]));
16118
16128
  const ge = de.map((_e) => _e.id), $e = y !== void 0 ? sortResults({
16119
16129
  resultsToSort: de,
16120
16130
  sorter: y,
@@ -16138,8 +16148,8 @@ const transformPlainMany2Ones = ({
16138
16148
  d
16139
16149
  ]), X = useCallback(
16140
16150
  async (Z) => {
16141
- const { params: le, newOffset: oe } = Z || {}, ie = mergeParams(le || w, v), { colors: de } = getTree(f), { totalItems: ge, results: $e, attrsEvaluated: _e } = await ConnectionProvider.getHandler().searchForTree({
16142
- params: ie,
16151
+ const { params: le, newOffset: oe } = Z || {}, ae = mergeParams(le || w, v), { colors: de } = getTree(f), { totalItems: ge, results: $e, attrsEvaluated: _e } = await ConnectionProvider.getHandler().searchForTree({
16152
+ params: ae,
16143
16153
  limit: H.current,
16144
16154
  offset: oe || L,
16145
16155
  model: t,
@@ -16223,8 +16233,8 @@ const transformPlainMany2Ones = ({
16223
16233
  [m, k, f, p, F]
16224
16234
  ), T = useCallback(
16225
16235
  (Z) => {
16226
- const { params: le, searchValues: oe, limit: ie, offset: de } = Z;
16227
- S || (r == null || r(void 0), n == null || n([]), P == null || P(oe), o == null || o(le), a == null || a(!1), I(!0), C(void 0), D(1), ie && (H.current = ie, _ == null || _(ie)), de && N(de), Q({
16236
+ const { params: le, searchValues: oe, limit: ae, offset: de } = Z;
16237
+ S || (r == null || r(void 0), n == null || n([]), P == null || P(oe), o == null || o(le), a == null || a(!1), I(!0), C(void 0), D(1), ae && (H.current = ae, _ == null || _(ae)), de && N(de), Q({
16228
16238
  params: le,
16229
16239
  newOffset: de
16230
16240
  }));
@@ -16320,13 +16330,13 @@ const transformPlainMany2Ones = ({
16320
16330
  }, [p]), useEffect(() => {
16321
16331
  ne(E !== void 0 ? E : DEFAULT_SEARCH_LIMIT$1);
16322
16332
  }, [E]), useEffect(() => {
16323
- a.length === 1 ? A(a[0]) : a.length > 1 && A(a.filter((ie) => ie.view_id !== r.view_id)[0]);
16333
+ a.length === 1 ? A(a[0]) : a.length > 1 && A(a.filter((ae) => ae.view_id !== r.view_id)[0]);
16324
16334
  }, [a]), useEffect(() => {
16325
- (Q == null ? void 0 : Q.view_id) === r.view_id && a.length > 1 && A(a.filter((ie) => ie.view_id !== r.view_id)[0]);
16335
+ (Q == null ? void 0 : Q.view_id) === r.view_id && a.length > 1 && A(a.filter((ae) => ae.view_id !== r.view_id)[0]);
16326
16336
  }, [r]);
16327
16337
  const oe = async () => {
16328
- var ie;
16329
- return await ((ie = s.current) == null ? void 0 : ie.submitForm());
16338
+ var ae;
16339
+ return await ((ae = s.current) == null ? void 0 : ae.submitForm());
16330
16340
  };
16331
16341
  return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
16332
16342
  value: {
@@ -16789,7 +16799,7 @@ function Form(e, t) {
16789
16799
  setFormHasChanges: Z = void 0,
16790
16800
  setCurrentId: le = void 0,
16791
16801
  setFormIsLoading: oe = void 0,
16792
- setAttachments: ie = void 0,
16802
+ setAttachments: ae = void 0,
16793
16803
  title: de = void 0,
16794
16804
  setTitle: ge = void 0
16795
16805
  } = ($ ? J : {}) || {}, $e = useContext(ContentRootContext), {
@@ -16820,12 +16830,12 @@ function Form(e, t) {
16820
16830
  elementHasLostFocus: !0
16821
16831
  }), H(!1));
16822
16832
  }, [K]);
16823
- const se = (ae, re, pe) => {
16824
- Z == null || Z(!1), ne == null || ne(!1), a == null || a(ae, re, pe), le == null || le(ae);
16833
+ const se = (ie, re, pe) => {
16834
+ Z == null || Z(!1), ne == null || ne(!1), a == null || a(ie, re, pe), le == null || le(ie);
16825
16835
  }, me = () => {
16826
16836
  ne == null || ne(!1), o == null || o();
16827
- }, Ee = (ae) => {
16828
- ne == null || ne(!1), u == null || u(ae);
16837
+ }, Ee = (ie) => {
16838
+ ne == null || ne(!1), u == null || u(ie);
16829
16839
  };
16830
16840
  function he() {
16831
16841
  return n || V.current;
@@ -16834,29 +16844,29 @@ function Form(e, t) {
16834
16844
  return B;
16835
16845
  }
16836
16846
  function Se() {
16837
- const ae = {
16847
+ const ie = {
16838
16848
  ...ue(B),
16839
16849
  ...te()
16840
16850
  };
16841
- for (const re in ae)
16842
- ae[re] === void 0 && delete ae[re];
16843
- return ae;
16851
+ for (const re in ie)
16852
+ ie[re] === void 0 && delete ie[re];
16853
+ return ie;
16844
16854
  }
16845
16855
  function Ie() {
16846
- const ae = Se(), re = Me();
16856
+ const ie = Se(), re = Me();
16847
16857
  let pe = {};
16848
- return Object.keys(ae).forEach((ye) => {
16849
- const Pe = ae[ye];
16858
+ return Object.keys(ie).forEach((ye) => {
16859
+ const Pe = ie[ye];
16850
16860
  re[ye] && re[ye].type === "many2one" && Pe && Array.isArray(Pe) && Pe.length === 2 ? pe[ye] = Pe[0] : re[ye] && (re[ye].type === "one2many" || re[ye].type === "many2many") && Pe && Pe.items ? pe[ye] = Pe.items.filter((qe) => qe.operation !== "pendingRemove").map((qe) => qe.id) : pe[ye] = Pe;
16851
16861
  }), pe;
16852
16862
  }
16853
16863
  function je() {
16854
- const ae = {
16864
+ const ie = {
16855
16865
  ...ue(B)
16856
16866
  };
16857
- for (const re in ae)
16858
- ae[re] === void 0 && delete ae[re];
16859
- return ae;
16867
+ for (const re in ie)
16868
+ ie[re] === void 0 && delete ie[re];
16869
+ return ie;
16860
16870
  }
16861
16871
  function Ce() {
16862
16872
  return {
@@ -16873,11 +16883,11 @@ function Form(e, t) {
16873
16883
  ...ee
16874
16884
  };
16875
16885
  }
16876
- const fe = async (ae) => {
16886
+ const fe = async (ie) => {
16877
16887
  const re = he() ? C == null ? void 0 : C.context : {};
16878
16888
  return await ConnectionProvider.getHandler().defaultGet({
16879
16889
  model: r,
16880
- fields: ae,
16890
+ fields: ie,
16881
16891
  context: {
16882
16892
  ...g,
16883
16893
  ...re
@@ -16888,19 +16898,19 @@ function Form(e, t) {
16888
16898
  source: F.current,
16889
16899
  target: ue(B),
16890
16900
  fields: B
16891
- })).length !== 0, ue = (ae) => {
16901
+ })).length !== 0, ue = (ie) => {
16892
16902
  const re = D.getFieldsValue(!0);
16893
- return processValues(re, ae);
16894
- }, Re = (ae, re) => {
16903
+ return processValues(re, ie);
16904
+ }, Re = (ie, re) => {
16895
16905
  Be({
16896
16906
  values: {
16897
16907
  ...processValues(D.getFieldsValue(!0), B),
16898
- [ae]: re
16908
+ [ie]: re
16899
16909
  },
16900
16910
  fields: B,
16901
16911
  reset: !1
16902
16912
  });
16903
- }, we = (ae) => D.getFieldsValue(!0)[ae];
16913
+ }, we = (ie) => D.getFieldsValue(!0)[ie];
16904
16914
  async function ce() {
16905
16915
  try {
16906
16916
  return await D.validateFields(), !1;
@@ -16910,16 +16920,16 @@ function Form(e, t) {
16910
16920
  }
16911
16921
  const xe = async () => {
16912
16922
  M(void 0), oe == null || oe(!0);
16913
- let ae;
16923
+ let ie;
16914
16924
  try {
16915
- m ? ae = {
16925
+ m ? ie = {
16916
16926
  arch: m.arch,
16917
16927
  fields: m.fields
16918
- } : ae = await ke();
16928
+ } : ie = await ke();
16919
16929
  const {
16920
16930
  fields: re,
16921
16931
  arch: pe
16922
- } = ae;
16932
+ } = ie;
16923
16933
  q(re), N(pe), await Ae({
16924
16934
  fields: re,
16925
16935
  arch: pe
@@ -16927,9 +16937,9 @@ function Form(e, t) {
16927
16937
  } catch (re) {
16928
16938
  M(re != null && re.message ? re.message + re.stack : re), oe == null || oe(!1);
16929
16939
  }
16930
- }, Ae = async (ae) => {
16940
+ }, Ae = async (ie) => {
16931
16941
  let re, pe, ye, Pe;
16932
- oe == null || oe(!0), M(void 0), ae ? (pe = ae.fields, ye = ae.arch) : (pe = B, ye = L), y ? re = y : {
16942
+ oe == null || oe(!0), M(void 0), ie ? (pe = ie.fields, ye = ie.arch) : (pe = B, ye = L), y ? re = y : {
16933
16943
  values: re,
16934
16944
  defaultGetCalled: Pe
16935
16945
  } = await Je({
@@ -16948,21 +16958,21 @@ function Form(e, t) {
16948
16958
  arch: ye,
16949
16959
  values: re
16950
16960
  }), oe == null || oe(!1), Z == null || Z(!1), Pe && H(!0);
16951
- }, Oe = async () => new Promise(async (ae) => {
16961
+ }, Oe = async () => new Promise(async (ie) => {
16952
16962
  ve() ? showDialog$6({
16953
16963
  lang: S,
16954
16964
  onOk: () => {
16955
- me == null || me(), ae(!0);
16965
+ me == null || me(), ie(!0);
16956
16966
  },
16957
16967
  onCancel: () => {
16958
- ae(!1);
16968
+ ie(!1);
16959
16969
  }
16960
- }) : (me == null || me(), ae(!0));
16970
+ }) : (me == null || me(), ie(!0));
16961
16971
  }), ke = async () => {
16962
16972
  if (l) {
16963
- const ae = await ConnectionProvider.getHandler().getActionStringForModel(r);
16973
+ const ie = await ConnectionProvider.getHandler().getActionStringForModel(r);
16964
16974
  return (await ConnectionProvider.getHandler().getViewsForAction({
16965
- action: ae,
16975
+ action: ie,
16966
16976
  context: g
16967
16977
  })).views.get("form");
16968
16978
  }
@@ -16972,14 +16982,14 @@ function Form(e, t) {
16972
16982
  context: g
16973
16983
  });
16974
16984
  }, Be = ({
16975
- values: ae,
16985
+ values: ie,
16976
16986
  fields: re,
16977
16987
  reset: pe,
16978
16988
  isDefaultGet: ye = !1
16979
16989
  }) => {
16980
16990
  const qe = {
16981
16991
  ...pe ? {} : D.getFieldsValue(!0),
16982
- ...ae
16992
+ ...ie
16983
16993
  }, st = processValues(qe, re), Qe = Object.keys(re).map((He) => {
16984
16994
  const lt = st[He] !== void 0 ? st[He] : void 0;
16985
16995
  return {
@@ -16990,7 +17000,7 @@ function Form(e, t) {
16990
17000
  });
16991
17001
  ye || (k.current = st), D.setFields(Qe);
16992
17002
  }, Je = async ({
16993
- fields: ae,
17003
+ fields: ie,
16994
17004
  arch: re
16995
17005
  }) => {
16996
17006
  let pe = {}, ye = !1;
@@ -16998,7 +17008,7 @@ function Form(e, t) {
16998
17008
  pe = (await ConnectionProvider.getHandler().readObjects({
16999
17009
  model: r,
17000
17010
  ids: [he()],
17001
- fields: ae,
17011
+ fields: ie,
17002
17012
  context: g
17003
17013
  }))[0];
17004
17014
  const Pe = await ConnectionProvider.getHandler().search({
@@ -17007,17 +17017,17 @@ function Form(e, t) {
17007
17017
  context: Ce(),
17008
17018
  model: "ir.attachment"
17009
17019
  });
17010
- ie == null || ie(Pe);
17020
+ ae == null || ae(Pe);
17011
17021
  } else
17012
- ie == null || ie([]), pe = await fe(ae), ye = !0;
17022
+ ae == null || ae([]), pe = await fe(ie), ye = !0;
17013
17023
  return {
17014
17024
  values: pe,
17015
17025
  defaultGetCalled: ye
17016
17026
  };
17017
- }, rt = async (ae) => {
17027
+ }, rt = async (ie) => {
17018
17028
  const {
17019
17029
  callOnSubmitSucceed: re = !0
17020
- } = ae || {};
17030
+ } = ie || {};
17021
17031
  if (he()) {
17022
17032
  const pe = getTouchedValues({
17023
17033
  source: F.current,
@@ -17053,16 +17063,16 @@ function Form(e, t) {
17053
17063
  V.current = ye, F.current = pe;
17054
17064
  }
17055
17065
  h && await h([he()]), !b && re && (se == null || se(he(), Se(), je()));
17056
- }, nt = async (ae) => {
17066
+ }, nt = async (ie) => {
17057
17067
  const {
17058
17068
  callOnSubmitSucceed: re = !0
17059
- } = ae || {};
17069
+ } = ie || {};
17060
17070
  !b && re && (se == null || se(he(), Se(), je()));
17061
- }, Le = async (ae) => {
17071
+ }, Le = async (ie) => {
17062
17072
  let re = !1;
17063
17073
  const {
17064
17074
  callOnSubmitSucceed: pe = !0
17065
- } = ae || {};
17075
+ } = ie || {};
17066
17076
  if (X.current = !0, M(void 0), !ve() && he() && pe)
17067
17077
  return X.current = !1, Z == null || Z(!1), me == null || me(), {
17068
17078
  succeed: !0,
@@ -17075,7 +17085,7 @@ function Form(e, t) {
17075
17085
  };
17076
17086
  O(!0), ne == null || ne(!0);
17077
17087
  try {
17078
- p === "api" ? await rt(ae) : await nt(ae), f && (V.current = void 0, Be({
17088
+ p === "api" ? await rt(ie) : await nt(ie), f && (V.current = void 0, Be({
17079
17089
  values: {},
17080
17090
  fields: B,
17081
17091
  reset: !0
@@ -17090,21 +17100,21 @@ function Form(e, t) {
17090
17100
  id: he()
17091
17101
  };
17092
17102
  }, Ve = ({
17093
- fields: ae,
17103
+ fields: ie,
17094
17104
  arch: re,
17095
17105
  values: pe
17096
17106
  }) => {
17097
17107
  var Pe;
17098
- const ye = new Form$4(ae);
17108
+ const ye = new Form$4(ie);
17099
17109
  ye.parse(re, {
17100
17110
  readOnly: d,
17101
17111
  values: convertToPlain2ManyValues({
17102
17112
  ...pe,
17103
17113
  ...te()
17104
- }, ae)
17114
+ }, ie)
17105
17115
  }), j(ye), ye.string && ye.string !== de && (ge == null || ge(ye.string)), z && ye.string && ((Pe = z.setTitle) == null || Pe.call(z, ye.string));
17106
17116
  }, ze = async ({
17107
- elementHasLostFocus: ae = !1
17117
+ elementHasLostFocus: ie = !1
17108
17118
  }) => {
17109
17119
  if (X.current)
17110
17120
  return;
@@ -17118,24 +17128,24 @@ function Form(e, t) {
17118
17128
  changedFields: pe,
17119
17129
  formOoui: C,
17120
17130
  types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
17121
- }) && ae !== !0)
17131
+ }) && ie !== !0)
17122
17132
  return;
17123
17133
  {
17124
17134
  const ye = processValues(D.getFieldsValue(!0), B);
17125
17135
  k.current = ye, c == null || c(ye), Z == null || Z(!0), Ye(pe);
17126
17136
  }
17127
17137
  }
17128
- }, Ue = debounce_1(ze, 100), Ye = async (ae) => {
17138
+ }, Ue = debounce_1(ze, 100), Ye = async (ie) => {
17129
17139
  try {
17130
- for (let re = 0; re < ae.length; re += 1) {
17131
- const pe = ae[re];
17140
+ for (let re = 0; re < ie.length; re += 1) {
17141
+ const pe = ie[re];
17132
17142
  await ot(pe);
17133
17143
  }
17134
17144
  } catch (re) {
17135
17145
  showDialog$8(re);
17136
17146
  }
17137
- }, ot = async (ae) => {
17138
- const re = C == null ? void 0 : C.onChangeFields[ae];
17147
+ }, ot = async (ie) => {
17148
+ const re = C == null ? void 0 : C.onChangeFields[ie];
17139
17149
  if (!re) {
17140
17150
  Ve({
17141
17151
  fields: B,
@@ -17198,12 +17208,12 @@ function Form(e, t) {
17198
17208
  }
17199
17209
  };
17200
17210
  async function dt({
17201
- action: ae,
17211
+ action: ie,
17202
17212
  context: re
17203
17213
  }) {
17204
17214
  const pe = await ConnectionProvider.getHandler().execute({
17205
17215
  model: r,
17206
- action: ae,
17216
+ action: ie,
17207
17217
  payload: [he()],
17208
17218
  context: {
17209
17219
  ...re,
@@ -17221,7 +17231,7 @@ function Form(e, t) {
17221
17231
  context: pe.context,
17222
17232
  fields: B,
17223
17233
  values: Se()
17224
- })), await at({
17234
+ })), await it({
17225
17235
  actionData: pe,
17226
17236
  context: {
17227
17237
  ...re,
@@ -17232,37 +17242,37 @@ function Form(e, t) {
17232
17242
  await Ae();
17233
17243
  }
17234
17244
  async function Ke({
17235
- action: ae
17245
+ action: ie
17236
17246
  }) {
17237
17247
  const re = await ConnectionProvider.getHandler().executeWorkflow({
17238
17248
  model: r,
17239
- action: ae,
17249
+ action: ie,
17240
17250
  payload: he()
17241
17251
  });
17242
17252
  re.type && re.type === "ir.actions.act_window_close" ? se == null || se(he(), Se(), je()) : await Ae();
17243
17253
  }
17244
17254
  async function et({
17245
- action: ae,
17255
+ action: ie,
17246
17256
  context: re
17247
17257
  }) {
17248
17258
  const pe = (await ConnectionProvider.getHandler().readObjects({
17249
17259
  model: "ir.actions.actions",
17250
- ids: [parseInt(ae)],
17260
+ ids: [parseInt(ie)],
17251
17261
  context: g
17252
17262
  }))[0];
17253
- await at({
17263
+ await it({
17254
17264
  actionData: pe,
17255
17265
  context: re
17256
17266
  });
17257
17267
  }
17258
- async function at({
17259
- actionData: ae,
17268
+ async function it({
17269
+ actionData: ie,
17260
17270
  context: re
17261
17271
  }) {
17262
17272
  const {
17263
17273
  closeParent: pe
17264
17274
  } = await (_e == null ? void 0 : _e({
17265
- actionData: ae,
17275
+ actionData: ie,
17266
17276
  fields: B,
17267
17277
  values: Se(),
17268
17278
  context: {
@@ -17281,12 +17291,12 @@ function Form(e, t) {
17281
17291
  elementHasLostFocus: !0
17282
17292
  });
17283
17293
  }
17284
- async function it({
17285
- type: ae,
17294
+ async function at({
17295
+ type: ie,
17286
17296
  action: re,
17287
17297
  context: pe
17288
17298
  }) {
17289
- if (ae === "cancel") {
17299
+ if (ie === "cancel") {
17290
17300
  me == null || me();
17291
17301
  return;
17292
17302
  }
@@ -17297,12 +17307,12 @@ function Form(e, t) {
17297
17307
  try {
17298
17308
  (ve() || he() === void 0) && await Le({
17299
17309
  callOnSubmitSucceed: !1
17300
- }), ae === "object" ? await dt({
17310
+ }), ie === "object" ? await dt({
17301
17311
  action: re,
17302
17312
  context: pe
17303
- }) : ae === "workflow" ? await Ke({
17313
+ }) : ie === "workflow" ? await Ke({
17304
17314
  action: re
17305
- }) : ae === "action" && await et({
17315
+ }) : ie === "action" && await et({
17306
17316
  action: re,
17307
17317
  context: pe
17308
17318
  });
@@ -17320,7 +17330,7 @@ function Form(e, t) {
17320
17330
  activeModel: r,
17321
17331
  setFieldValue: Re,
17322
17332
  getFieldValue: we,
17323
- executeButtonAction: it,
17333
+ executeButtonAction: at,
17324
17334
  getContext: Ce,
17325
17335
  submitForm: Le,
17326
17336
  fetchValues: Ae,
@@ -17366,15 +17376,15 @@ function Form(e, t) {
17366
17376
  });
17367
17377
  return x ? /* @__PURE__ */ jsx(Measure, {
17368
17378
  bounds: !0,
17369
- onResize: (ae) => {
17379
+ onResize: (ie) => {
17370
17380
  var re;
17371
- W((re = ae.bounds) == null ? void 0 : re.width);
17381
+ W((re = ie.bounds) == null ? void 0 : re.width);
17372
17382
  },
17373
17383
  children: ({
17374
- measureRef: ae
17384
+ measureRef: ie
17375
17385
  }) => /* @__PURE__ */ jsxs("div", {
17376
17386
  className: "pb-2",
17377
- ref: ae,
17387
+ ref: ie,
17378
17388
  children: [I && /* @__PURE__ */ jsx(ErrorAlert, {
17379
17389
  className: "mt-10 mb-20",
17380
17390
  error: I
@@ -18759,7 +18769,7 @@ function SearchTree(e, t) {
18759
18769
  submit: Z,
18760
18770
  clear: le,
18761
18771
  fetchResults: oe,
18762
- tableRefreshing: ie,
18772
+ tableRefreshing: ae,
18763
18773
  searchFilterLoading: de,
18764
18774
  searchError: ge,
18765
18775
  page: $e,
@@ -18904,7 +18914,7 @@ function SearchTree(e, t) {
18904
18914
  treeView: $,
18905
18915
  results: ee(),
18906
18916
  onRequestPageChange: se,
18907
- loading: ie,
18917
+ loading: ae,
18908
18918
  onRowClicked: te,
18909
18919
  scrollY: l || ve(),
18910
18920
  colorsForResults: he,
@@ -19185,6 +19195,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19185
19195
  })
19186
19196
  }), /* @__PURE__ */ jsx(Col, {
19187
19197
  flex: "32px",
19198
+ style: {
19199
+ paddingRight: 0
19200
+ },
19188
19201
  children: /* @__PURE__ */ jsx(Button$1, {
19189
19202
  icon: /* @__PURE__ */ jsx(FolderOpenOutlined, {}),
19190
19203
  disabled: L === void 0 || N === "" || $ === void 0,
@@ -19199,6 +19212,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
19199
19212
  })
19200
19213
  }), /* @__PURE__ */ jsx(Col, {
19201
19214
  flex: "32px",
19215
+ style: {
19216
+ paddingLeft: 0
19217
+ },
19202
19218
  children: /* @__PURE__ */ jsx(Button$1, {
19203
19219
  icon: h ? /* @__PURE__ */ jsx(LoadingOutlined, {}) : /* @__PURE__ */ jsx(SearchOutlined, {}),
19204
19220
  disabled: s || h,
@@ -19883,7 +19899,7 @@ function useAlign(e, t, r, n, o, a, s) {
19883
19899
  var ne = toNum(Math.round(W / parseFloat(M) * 1e3) / 1e3), Z = toNum(Math.round(Y / parseFloat(C) * 1e3) / 1e3);
19884
19900
  if (ne === 0 || Z === 0 || isDOM(r) && !isVisible(r))
19885
19901
  return;
19886
- var le = P.offset, oe = P.targetOffset, ie = getNumberOffset(O, le), de = _slicedToArray(ie, 2), ge = de[0], $e = de[1], _e = getNumberOffset(S, oe), ee = _slicedToArray(_e, 2), se = ee[0], me = ee[1];
19902
+ var le = P.offset, oe = P.targetOffset, ae = getNumberOffset(O, le), de = _slicedToArray(ae, 2), ge = de[0], $e = de[1], _e = getNumberOffset(S, oe), ee = _slicedToArray(_e, 2), se = ee[0], me = ee[1];
19887
19903
  S.x -= se, S.y -= me;
19888
19904
  var Ee = P.points || [], he = _slicedToArray(Ee, 2), Me = he[0], Se = he[1], Ie = splitPoints(Se), je = splitPoints(Me), Ce = getAlignPoint(S, Ie), te = getAlignPoint(O, je), fe = _objectSpread2$2({}, P), ve = Ce.x - te.x + ge, ue = Ce.y - te.y + $e, Re = We(ve, ue), we = We(ve, ue, T), ce = getAlignPoint(S, ["t", "l"]), xe = getAlignPoint(O, ["t", "l"]), Ae = getAlignPoint(S, ["b", "r"]), Oe = getAlignPoint(O, ["b", "r"]), ke = P.overflow || {}, Be = ke.adjustX, Je = ke.adjustY, rt = ke.shiftX, nt = ke.shiftY, Le = function(Ge) {
19889
19905
  return typeof Ge == "boolean" ? Ge : Ge >= 0;
@@ -19893,25 +19909,25 @@ function useAlign(e, t, r, n, o, a, s) {
19893
19909
  if (ot && je[0] === "t" && (ze > J.bottom || y.current.bt)) {
19894
19910
  var Ke = ue;
19895
19911
  dt ? Ke -= Y - K : Ke = ce.y - Oe.y - $e;
19896
- var et = We(ve, Ke), at = We(ve, Ke, T);
19897
- et > Re || et === Re && (!Q || at >= we) ? (y.current.bt = !0, ue = Ke, fe.points = [reversePoints(je, 0), reversePoints(Ie, 0)]) : y.current.bt = !1;
19912
+ var et = We(ve, Ke), it = We(ve, Ke, T);
19913
+ et > Re || et === Re && (!Q || it >= we) ? (y.current.bt = !0, ue = Ke, fe.points = [reversePoints(je, 0), reversePoints(Ie, 0)]) : y.current.bt = !1;
19898
19914
  }
19899
19915
  if (ot && je[0] === "b" && (Ve < J.top || y.current.tb)) {
19900
19916
  var Xe = ue;
19901
19917
  dt ? Xe += Y - K : Xe = Ae.y - xe.y - $e;
19902
- var it = We(ve, Xe), ft = We(ve, Xe, T);
19903
- it > Re || it === Re && (!Q || ft >= we) ? (y.current.tb = !0, ue = Xe, fe.points = [reversePoints(je, 0), reversePoints(Ie, 0)]) : y.current.tb = !1;
19918
+ var at = We(ve, Xe), ft = We(ve, Xe, T);
19919
+ at > Re || at === Re && (!Q || ft >= we) ? (y.current.tb = !0, ue = Xe, fe.points = [reversePoints(je, 0), reversePoints(Ie, 0)]) : y.current.tb = !1;
19904
19920
  }
19905
- var pt = Le(Be), ae = je[1] === Ie[1];
19921
+ var pt = Le(Be), ie = je[1] === Ie[1];
19906
19922
  if (pt && je[1] === "l" && (Ye > J.right || y.current.rl)) {
19907
19923
  var re = ve;
19908
- ae ? re -= W - H : re = ce.x - Oe.x - ge;
19924
+ ie ? re -= W - H : re = ce.x - Oe.x - ge;
19909
19925
  var pe = We(re, ue), ye = We(re, ue, T);
19910
19926
  pe > Re || pe === Re && (!Q || ye >= we) ? (y.current.rl = !0, ve = re, fe.points = [reversePoints(je, 1), reversePoints(Ie, 1)]) : y.current.rl = !1;
19911
19927
  }
19912
19928
  if (pt && je[1] === "r" && (Ue < J.left || y.current.lr)) {
19913
19929
  var Pe = ve;
19914
- ae ? Pe += W - H : Pe = Ae.x - xe.x - ge;
19930
+ ie ? Pe += W - H : Pe = Ae.x - xe.x - ge;
19915
19931
  var qe = We(Pe, ue), st = We(Pe, ue, T);
19916
19932
  qe > Re || qe === Re && (!Q || st >= we) ? (y.current.lr = !0, ve = Pe, fe.points = [reversePoints(je, 1), reversePoints(Ie, 1)]) : y.current.lr = !1;
19917
19933
  }
@@ -20135,10 +20151,10 @@ function generateTrigger() {
20135
20151
  useLayoutEffect$2(function() {
20136
20152
  oe(isMobile());
20137
20153
  }, []);
20138
- var ie = React$s.useRef({}), de = React$s.useContext(TriggerContext), ge = React$s.useMemo(function() {
20154
+ var ae = React$s.useRef({}), de = React$s.useContext(TriggerContext), ge = React$s.useMemo(function() {
20139
20155
  return {
20140
20156
  registerSubPopup: function(Te, Fe) {
20141
- ie.current[Te] = Fe, de == null || de.registerSubPopup(Te, Fe);
20157
+ ae.current[Te] = Fe, de == null || de.registerSubPopup(Te, Fe);
20142
20158
  }
20143
20159
  };
20144
20160
  }, [de]), $e = useId(), _e = React$s.useState(null), ee = _slicedToArray(_e, 2), se = ee[0], me = ee[1], Ee = useEvent$2(function(be) {
@@ -20147,7 +20163,7 @@ function generateTrigger() {
20147
20163
  isDOM(be) && Se !== be && Ie(be);
20148
20164
  }), Ce = React$s.Children.only(s), te = (Ce == null ? void 0 : Ce.props) || {}, fe = {}, ve = useEvent$2(function(be) {
20149
20165
  var Te, Fe, Ne = Se;
20150
- return (Ne == null ? void 0 : Ne.contains(be)) || ((Te = getShadowRoot(Ne)) === null || Te === void 0 ? void 0 : Te.host) === be || be === Ne || (se == null ? void 0 : se.contains(be)) || ((Fe = getShadowRoot(se)) === null || Fe === void 0 ? void 0 : Fe.host) === be || be === se || Object.values(ie.current).some(function(De) {
20166
+ return (Ne == null ? void 0 : Ne.contains(be)) || ((Te = getShadowRoot(Ne)) === null || Te === void 0 ? void 0 : Te.host) === be || be === Ne || (se == null ? void 0 : se.contains(be)) || ((Fe = getShadowRoot(se)) === null || Fe === void 0 ? void 0 : Fe.host) === be || be === se || Object.values(ae.current).some(function(De) {
20151
20167
  return (De == null ? void 0 : De.contains(be)) || be === De;
20152
20168
  });
20153
20169
  }), ue = getMotion(a, V, G, k), Re = getMotion(a, F, Q, X), we = React$s.useState(p || !1), ce = _slicedToArray(we, 2), xe = ce[0], Ae = ce[1], Oe = f != null ? f : xe, ke = useEvent$2(function(be) {
@@ -20175,7 +20191,7 @@ function generateTrigger() {
20175
20191
  useLayoutEffect$2(function() {
20176
20192
  (!ot.current || Oe) && Ye(!0), ot.current = !0;
20177
20193
  }, [Oe]);
20178
- var dt = React$s.useState(null), Ke = _slicedToArray(dt, 2), et = Ke[0], at = Ke[1], Xe = React$s.useState([0, 0]), it = _slicedToArray(Xe, 2), ft = it[0], pt = it[1], ae = function(Te) {
20194
+ var dt = React$s.useState(null), Ke = _slicedToArray(dt, 2), et = Ke[0], it = Ke[1], Xe = React$s.useState([0, 0]), at = _slicedToArray(Xe, 2), ft = at[0], pt = at[1], ie = function(Te) {
20179
20195
  pt([Te.clientX, Te.clientY]);
20180
20196
  }, re = useAlign(Oe, se, Y ? ft : Se, j, L, N, K), pe = _slicedToArray(re, 9), ye = pe[0], Pe = pe[1], qe = pe[2], st = pe[3], Qe = pe[4], He = pe[5], lt = pe[6], mt = pe[7], ct = pe[8], tt = useEvent$2(function() {
20181
20197
  Ue || ct();
@@ -20198,13 +20214,13 @@ function generateTrigger() {
20198
20214
  Ye(!1), ct(), m == null || m(Te);
20199
20215
  }, _t = function() {
20200
20216
  return new Promise(function(Te) {
20201
- at(function() {
20217
+ it(function() {
20202
20218
  return Te;
20203
20219
  });
20204
20220
  });
20205
20221
  };
20206
20222
  useLayoutEffect$2(function() {
20207
- et && (ct(), et(), at(null));
20223
+ et && (ct(), et(), it(null));
20208
20224
  }, [et]);
20209
20225
  var Ot = React$s.useState(0), bt = _slicedToArray(Ot, 2), Pt = bt[0], At = bt[1], jt = React$s.useState(0), $t = _slicedToArray(jt, 2), Mt = $t[0], It = $t[1], Ft = function(Te, Fe) {
20210
20226
  if (tt(), q) {
@@ -20222,14 +20238,14 @@ function generateTrigger() {
20222
20238
  }, vt = ut.has("click"), gt = Ge.has("click") || Ge.has("contextMenu");
20223
20239
  (vt || gt) && (fe.onClick = function(be) {
20224
20240
  var Te;
20225
- Be.current && gt ? Le(!1) : !Be.current && vt && (ae(be), Le(!0));
20241
+ Be.current && gt ? Le(!1) : !Be.current && vt && (ie(be), Le(!0));
20226
20242
  for (var Fe = arguments.length, Ne = new Array(Fe > 1 ? Fe - 1 : 0), De = 1; De < Fe; De++)
20227
20243
  Ne[De - 1] = arguments[De];
20228
20244
  (Te = te.onClick) === null || Te === void 0 || Te.call.apply(Te, [te, be].concat(Ne));
20229
20245
  }), useWinClick(Oe, gt, Se, se, $, w, ve, Le);
20230
20246
  var Dt = ut.has("hover"), Nt = Ge.has("hover"), St, Ct;
20231
20247
  Dt && (Ze("onMouseEnter", !0, h, function(be) {
20232
- ae(be);
20248
+ ie(be);
20233
20249
  }), St = function() {
20234
20250
  Le(!0, h);
20235
20251
  }, Y && (fe.onMouseMove = function(be) {
@@ -20239,7 +20255,7 @@ function generateTrigger() {
20239
20255
  Le(!1, g);
20240
20256
  }), ut.has("focus") && Ze("onFocus", !0, v), Ge.has("focus") && Ze("onBlur", !1, x), ut.has("contextMenu") && (fe.onContextMenu = function(be) {
20241
20257
  var Te;
20242
- ae(be), Le(!0), be.preventDefault();
20258
+ ie(be), Le(!0), be.preventDefault();
20243
20259
  for (var Fe = arguments.length, Ne = new Array(Fe > 1 ? Fe - 1 : 0), De = 1; De < Fe; De++)
20244
20260
  Ne[De - 1] = arguments[De];
20245
20261
  (Te = te.onContextMenu) === null || Te === void 0 || Te.call.apply(Te, [te, be].concat(Ne));
@@ -21993,19 +22009,19 @@ const Tooltip = /* @__PURE__ */ React$a.forwardRef((e, t) => {
21993
22009
  process.env.NODE_ENV !== "production" && (0, _warning$2.default)(!1, "Tooltip", "`forcePopupAlign` is align to `forceAlign` instead."), O();
21994
22010
  }
21995
22011
  })), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow"]].forEach((oe) => {
21996
- let [ie, de] = oe;
21997
- process.env.NODE_ENV !== "production" && (0, _warning$2.default)(!(ie in e), "Tooltip", `\`${ie}\` is deprecated, please use \`${de}\` instead.`);
22012
+ let [ae, de] = oe;
22013
+ process.env.NODE_ENV !== "production" && (0, _warning$2.default)(!(ae in e), "Tooltip", `\`${ae}\` is deprecated, please use \`${de}\` instead.`);
21998
22014
  }), process.env.NODE_ENV !== "production" && (0, _warning$2.default)(!y || typeof y == "boolean", "Tooltip", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && (0, _warning$2.default)(!m || typeof m == "boolean" || !("arrowPointAtCenter" in m), "Tooltip", "`arrowPointAtCenter` in `arrow` is deprecated, please use `pointAtCenter` instead."));
21999
22015
  const [I, M] = (0, _useMergedState$1.default)(!1, {
22000
22016
  value: (r = e.open) !== null && r !== void 0 ? r : e.visible,
22001
22017
  defaultValue: (n = e.defaultOpen) !== null && n !== void 0 ? n : e.defaultVisible
22002
22018
  }), C = !h && !b && h !== 0, j = (oe) => {
22003
- var ie, de;
22004
- M(C ? !1 : oe), C || ((ie = e.onOpenChange) === null || ie === void 0 || ie.call(e, oe), (de = e.onVisibleChange) === null || de === void 0 || de.call(e, oe));
22019
+ var ae, de;
22020
+ M(C ? !1 : oe), C || ((ae = e.onOpenChange) === null || ae === void 0 || ae.call(e, oe), (de = e.onVisibleChange) === null || de === void 0 || de.call(e, oe));
22005
22021
  }, D = React$a.useMemo(() => {
22006
- var oe, ie;
22022
+ var oe, ae;
22007
22023
  let de = v;
22008
- return typeof m == "object" && (de = (ie = (oe = m.pointAtCenter) !== null && oe !== void 0 ? oe : m.arrowPointAtCenter) !== null && ie !== void 0 ? ie : v), g || (0, _placements.default)({
22024
+ return typeof m == "object" && (de = (ae = (oe = m.pointAtCenter) !== null && oe !== void 0 ? oe : m.arrowPointAtCenter) !== null && ae !== void 0 ? ae : v), g || (0, _placements.default)({
22009
22025
  arrowPointAtCenter: de,
22010
22026
  autoAdjustOverflow: x,
22011
22027
  arrowWidth: $ ? _.sizePopupArrow : 0,
@@ -23045,13 +23061,13 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React$1.forwardRef((e, t) =>
23045
23061
  React$1.useEffect(() => K, []);
23046
23062
  const [V, F] = React$1.useState(!1), [k, G] = React$1.useState(!1), [X, Q] = React$1.useState(!1), [A, T] = React$1.useState(!1), [U, J] = React$1.useState(!1), [ne, Z] = React$1.useState(!0), [le, oe] = (0, _useMergedConfig.default)(f, {
23047
23063
  expandable: !1
23048
- }), ie = le && !X, {
23064
+ }), ae = le && !X, {
23049
23065
  rows: de = 1
23050
- } = oe, ge = React$1.useMemo(() => !ie || oe.suffix !== void 0 || oe.onEllipsis || oe.expandable || S || N, [ie, oe, S, N]);
23066
+ } = oe, ge = React$1.useMemo(() => !ae || oe.suffix !== void 0 || oe.onEllipsis || oe.expandable || S || N, [ae, oe, S, N]);
23051
23067
  (0, _useLayoutEffect.default)(() => {
23052
23068
  le && !ge && (F((0, _styleChecker.isStyleSupport)("webkitLineClamp")), G((0, _styleChecker.isStyleSupport)("textOverflow")));
23053
23069
  }, [ge, le]);
23054
- const $e = React$1.useMemo(() => ge ? !1 : de === 1 ? k : V, [ge, k, V]), _e = ie && ($e ? U : A), ee = ie && de === 1 && $e, se = ie && de > 1 && $e, me = (ce) => {
23070
+ const $e = React$1.useMemo(() => ge ? !1 : de === 1 ? k : V, [ge, k, V]), _e = ae && ($e ? U : A), ee = ae && de === 1 && $e, se = ae && de > 1 && $e, me = (ce) => {
23055
23071
  var xe;
23056
23072
  Q(!0), (xe = oe.onExpand) === null || xe === void 0 || xe.call(oe, ce);
23057
23073
  }, [Ee, he] = React$1.useState(0), [Me, Se] = React$1.useState(0), Ie = (ce, xe) => {
@@ -23072,7 +23088,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React$1.forwardRef((e, t) =>
23072
23088
  }
23073
23089
  }, [le, $e, d, se, ne]), React$1.useEffect(() => {
23074
23090
  const ce = $.current;
23075
- if (typeof IntersectionObserver > "u" || !ce || !$e || !ie)
23091
+ if (typeof IntersectionObserver > "u" || !ce || !$e || !ae)
23076
23092
  return;
23077
23093
  const xe = new IntersectionObserver(() => {
23078
23094
  Z(!!ce.offsetParent);
@@ -23080,7 +23096,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React$1.forwardRef((e, t) =>
23080
23096
  return xe.observe(ce), () => {
23081
23097
  xe.disconnect();
23082
23098
  };
23083
- }, [$e, ie]);
23099
+ }, [$e, ae]);
23084
23100
  let Ce = {};
23085
23101
  oe.tooltip === !0 ? Ce = {
23086
23102
  title: (r = E.text) !== null && r !== void 0 ? r : d
@@ -23172,17 +23188,17 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React$1.forwardRef((e, t) =>
23172
23188
  }, ELLIPSIS_STR), oe.suffix, Re(ce)];
23173
23189
  return /* @__PURE__ */ React$1.createElement(_rcResizeObserver.default, {
23174
23190
  onResize: Ie,
23175
- disabled: !ie || $e
23191
+ disabled: !ae || $e
23176
23192
  }, (ce) => /* @__PURE__ */ React$1.createElement(_EllipsisTooltip.default, {
23177
23193
  tooltipProps: Ce,
23178
- enabledEllipsis: ie,
23194
+ enabledEllipsis: ae,
23179
23195
  isEllipsis: _e
23180
23196
  }, /* @__PURE__ */ React$1.createElement(_Typography.default, Object.assign({
23181
23197
  className: (0, _classnames.default)({
23182
23198
  [`${w}-${c}`]: c,
23183
23199
  [`${w}-disabled`]: u,
23184
23200
  [`${w}-ellipsis`]: le,
23185
- [`${w}-single-line`]: ie && de === 1,
23201
+ [`${w}-single-line`]: ae && de === 1,
23186
23202
  [`${w}-ellipsis-single-line`]: ee,
23187
23203
  [`${w}-ellipsis-multiple-line`]: se
23188
23204
  }, s),
@@ -23197,7 +23213,7 @@ const ELLIPSIS_STR = "...", Base = /* @__PURE__ */ React$1.forwardRef((e, t) =>
23197
23213
  "aria-label": te == null ? void 0 : te.toString(),
23198
23214
  title: h
23199
23215
  }, P), /* @__PURE__ */ React$1.createElement(_Ellipsis.default, {
23200
- enabledMeasure: ie && !$e,
23216
+ enabledMeasure: ae && !$e,
23201
23217
  text: d,
23202
23218
  rows: de,
23203
23219
  width: Ee,
@@ -24180,7 +24196,7 @@ const One2manyInput = (e) => {
24180
24196
  c > 0 && (s === "form" ? ge(() => {
24181
24197
  u(c - 1);
24182
24198
  }) : u(c - 1));
24183
- }, ie = () => {
24199
+ }, ae = () => {
24184
24200
  const te = Q.length;
24185
24201
  c < te - 1 && (s === "form" ? ge(() => {
24186
24202
  u(c + 1);
@@ -24457,7 +24473,7 @@ const One2manyInput = (e) => {
24457
24473
  onCreateItem: _e,
24458
24474
  onToggleViewMode: le,
24459
24475
  onPreviousItem: oe,
24460
- onNextItem: ie,
24476
+ onNextItem: ae,
24461
24477
  onSearchItem: ee,
24462
24478
  selectedRowKeys: j,
24463
24479
  showCreateButton: ((Ce = o.get("form")) == null ? void 0 : Ce.fields) !== void 0,
@@ -26821,6 +26837,10 @@ function SearchBar(e) {
26821
26837
  onChange: (d) => {
26822
26838
  l(d.target.value.length > 0);
26823
26839
  },
26840
+ style: {
26841
+ borderTopRightRadius: 0,
26842
+ borderBottomRightRadius: 0
26843
+ },
26824
26844
  suffix: (s || n && n.length > 0) && /* @__PURE__ */ jsx(Tooltip$3, {
26825
26845
  title: o("clear"),
26826
26846
  children: /* @__PURE__ */ jsx(CloseCircleFilled$4, {
@@ -26836,6 +26856,10 @@ function SearchBar(e) {
26836
26856
  children: /* @__PURE__ */ jsx(Button$1, {
26837
26857
  htmlType: "submit",
26838
26858
  disabled: r,
26859
+ style: {
26860
+ borderTopLeftRadius: 0,
26861
+ borderBottomLeftRadius: 0
26862
+ },
26839
26863
  children: o("search")
26840
26864
  })
26841
26865
  })]
@@ -27276,7 +27300,7 @@ function ActionView(e, t) {
27276
27300
  v(ee), Q == null || Q(ee);
27277
27301
  }
27278
27302
  useImperativeHandle(t, () => ({
27279
- canWeClose: ie
27303
+ canWeClose: ae
27280
27304
  }));
27281
27305
  const oe = async () => {
27282
27306
  w(!0);
@@ -27349,14 +27373,14 @@ Please, make sure the view ids on the fields_view_get responses are the same as
27349
27373
  };
27350
27374
  l({
27351
27375
  tabKey: c,
27352
- canWeClose: ie
27376
+ canWeClose: ae
27353
27377
  }), useEffect(() => {
27354
27378
  const ee = x.find((me) => me.type === "tree"), se = x.find((me) => u.id ? me.type === u.type && me.view_id === u.id : me.type === u.type);
27355
27379
  le(se || ee), p ? A == null || A(P) : (Z(void 0), C(void 0)), oe();
27356
27380
  }, [n, a, p]), useEffect(() => {
27357
27381
  U === c && (A == null || A(S), Q == null || Q(g));
27358
27382
  }, [T, U]);
27359
- async function ie() {
27383
+ async function ae() {
27360
27384
  return g && g.type === "form" ? await k.current.cancelUnsavedChanges() : !0;
27361
27385
  }
27362
27386
  async function de() {