@gisce/react-ooui 2.84.0-alpha.2 → 2.84.0-alpha.4

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.
@@ -6953,10 +6953,10 @@ const _p = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(Za,
6953
6953
  ...new Set(r.filter((o) => o in e.fields))
6954
6954
  ];
6955
6955
  }, Mp = (e) => {
6956
- const { m2oField: t } = e;
6956
+ const { m2oField: t, ooui: n } = e;
6957
6957
  return t ? /* @__PURE__ */ $(it, { children: [
6958
6958
  /* @__PURE__ */ s(ce, { children: t.value }),
6959
- /* @__PURE__ */ s(qr, { id: t.id, model: t.model })
6959
+ n.showMenu && /* @__PURE__ */ s(qr, { id: t.id, model: t.model })
6960
6960
  ] }) : /* @__PURE__ */ s(ce, {});
6961
6961
  }, $p = (e) => {
6962
6962
  const { value: t, context: n, selectionValues: r } = e, [o, i] = I(), [a, l] = I(!1), [c, d] = t ? t.split(",") : [], m = parseInt(d), u = D(async () => {
@@ -7239,7 +7239,10 @@ const Lp = (e) => /* @__PURE__ */ s(He, { ...e, children: /* @__PURE__ */ s(el,
7239
7239
  [e]
7240
7240
  ), Yp = ({
7241
7241
  value: e
7242
- }) => X(() => /* @__PURE__ */ s(tl, { emails: e }), [e]), Gp = ({ value: e }) => X(() => /* @__PURE__ */ s(Mp, { m2oField: e }), [e]), qp = ({ value: e }) => {
7242
+ }) => X(() => /* @__PURE__ */ s(tl, { emails: e }), [e]), Gp = ({
7243
+ value: e,
7244
+ ooui: t
7245
+ }) => X(() => /* @__PURE__ */ s(Mp, { m2oField: e, ooui: t }), [e]), qp = ({ value: e }) => {
7243
7246
  const { treeType: t } = bn(), { treeType: n } = rl() || {}, r = (n || t) === "infinite";
7244
7247
  return X(() => {
7245
7248
  const o = /* @__PURE__ */ s(
@@ -11585,12 +11588,11 @@ const Yn = $t(Kh), Gn = (e) => {
11585
11588
  onChange: B,
11586
11589
  style: {
11587
11590
  ...m,
11588
- borderTopRightRadius: 0,
11589
- borderBottomRightRadius: 0
11591
+ ...r.showSearch || r.showFolder ? { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
11590
11592
  },
11591
11593
  onBlur: K,
11592
11594
  onKeyDown: ge,
11593
- suffix: /* @__PURE__ */ s(
11595
+ suffix: r.showMenu && /* @__PURE__ */ s(
11594
11596
  qr,
11595
11597
  {
11596
11598
  id: N,
@@ -11600,7 +11602,7 @@ const Yn = $t(Kh), Gn = (e) => {
11600
11602
  )
11601
11603
  }
11602
11604
  ) }),
11603
- /* @__PURE__ */ s(Ie, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ s(
11605
+ r.showFolder && /* @__PURE__ */ s(Ie, { flex: "none", style: { paddingRight: 0, paddingLeft: 0 }, children: /* @__PURE__ */ s(
11604
11606
  Ge,
11605
11607
  {
11606
11608
  icon: /* @__PURE__ */ s(Eo, {}),
@@ -11612,7 +11614,7 @@ const Yn = $t(Kh), Gn = (e) => {
11612
11614
  tabIndex: -1
11613
11615
  }
11614
11616
  ) }),
11615
- /* @__PURE__ */ s(Ie, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ s(
11617
+ r.showSearch && /* @__PURE__ */ s(Ie, { flex: "none", style: { paddingLeft: 0 }, children: /* @__PURE__ */ s(
11616
11618
  Ge,
11617
11619
  {
11618
11620
  icon: g ? /* @__PURE__ */ s(Ht, {}) : /* @__PURE__ */ s(ar, {}),