@nocobase/client 1.6.26 → 1.6.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/es/index.mjs CHANGED
@@ -7365,7 +7365,7 @@ function getSubscriber({
7365
7365
  t.setState((p) => {
7366
7366
  p.display = "visible";
7367
7367
  });
7368
- })) : (t[l] = u == null ? void 0 : u.value, t.data = t.data || {}, t.data.hidden = !1, l === "display" && (u == null ? void 0 : u.value) === "visible" && t.data.prevRequired && (delete t.data.prevRequired, t.required = !0), requestAnimationFrame(() => {
7368
+ })) : (t[l] = u == null ? void 0 : u.value, l === "display" && (u == null ? void 0 : u.value) === "visible" && (t.data = t.data || {}, t.data.hidden = !1, t.data.prevRequired && (delete t.data.prevRequired, t.required = !0)), requestAnimationFrame(() => {
7369
7369
  t.setState((p) => {
7370
7370
  p[l] = u == null ? void 0 : u.value;
7371
7371
  });
@@ -8577,44 +8577,54 @@ function withInitializer(e) {
8577
8577
  [j]
8578
8578
  );
8579
8579
  return !o && m !== !0 ? null : /* @__PURE__ */ jsx(ErrorBoundary, { FallbackComponent: ErrorFallback.Modal, onError: console.error, children: /* @__PURE__ */ jsx(
8580
- SchemaInitializerContext.Provider,
8580
+ ConfigProvider,
8581
8581
  {
8582
- value: {
8583
- visible: T,
8584
- setVisible: D,
8585
- insert: v,
8586
- options: n
8582
+ theme: {
8583
+ token: {
8584
+ zIndexPopupBase: 9999
8585
+ }
8587
8586
  },
8588
- children: f === !1 ? React.createElement(e, N) : /* @__PURE__ */ jsx(
8589
- Popover,
8590
- P(x({
8591
- zIndex: 9999,
8592
- placement: "bottomLeft"
8593
- }, h), {
8594
- arrow: !1,
8595
- overlayClassName: B,
8596
- open: T,
8597
- onOpenChange: D,
8598
- content: F(
8599
- /* @__PURE__ */ jsx("div", { className: `${w} ${I}`, style: R, children: /* @__PURE__ */ jsx(
8600
- ConfigProvider,
8601
- {
8602
- theme: {
8603
- components: {
8604
- Menu: {
8605
- itemHeight: O.marginXL,
8606
- borderRadius: O.borderRadiusSM,
8607
- itemBorderRadius: O.borderRadiusSM,
8608
- subMenuItemBorderRadius: O.borderRadiusSM
8609
- }
8587
+ children: /* @__PURE__ */ jsx(
8588
+ SchemaInitializerContext.Provider,
8589
+ {
8590
+ value: {
8591
+ visible: T,
8592
+ setVisible: D,
8593
+ options: n,
8594
+ insert: v
8595
+ },
8596
+ children: f === !1 ? React.createElement(e, N) : /* @__PURE__ */ jsx(
8597
+ Popover,
8598
+ P(x({
8599
+ zIndex: 9999,
8600
+ placement: "bottomLeft"
8601
+ }, h), {
8602
+ arrow: !1,
8603
+ overlayClassName: B,
8604
+ open: T,
8605
+ onOpenChange: D,
8606
+ content: F(
8607
+ /* @__PURE__ */ jsx("div", { className: `${w} ${I}`, style: R, children: /* @__PURE__ */ jsx(
8608
+ ConfigProvider,
8609
+ {
8610
+ theme: {
8611
+ components: {
8612
+ Menu: {
8613
+ itemHeight: O.marginXL,
8614
+ borderRadius: O.borderRadiusSM,
8615
+ itemBorderRadius: O.borderRadiusSM,
8616
+ subMenuItemBorderRadius: O.borderRadiusSM
8617
+ }
8618
+ }
8619
+ },
8620
+ children: g
8610
8621
  }
8611
- },
8612
- children: g
8613
- }
8614
- ) })
8615
- ),
8616
- children: React.createElement(e, N)
8617
- })
8622
+ ) })
8623
+ ),
8624
+ children: React.createElement(e, N)
8625
+ })
8626
+ )
8627
+ }
8618
8628
  )
8619
8629
  }
8620
8630
  ) });
@@ -9208,7 +9218,7 @@ function addAppVersion(e, t) {
9208
9218
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
9209
9219
  }), e;
9210
9220
  }
9211
- const name = "@nocobase/client", version = "1.6.26", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9221
+ const name = "@nocobase/client", version = "1.6.28", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
9212
9222
  "@ahooksjs/use-url-state": "3.5.1",
9213
9223
  "@ant-design/cssinjs": "^1.11.1",
9214
9224
  "@ant-design/icons": "^5.6.1",
@@ -9230,9 +9240,9 @@ const name = "@nocobase/client", version = "1.6.26", license = "AGPL-3.0", main
9230
9240
  "@formily/reactive-react": "^2.2.27",
9231
9241
  "@formily/shared": "^2.2.27",
9232
9242
  "@formily/validator": "^2.2.27",
9233
- "@nocobase/evaluators": "1.6.26",
9234
- "@nocobase/sdk": "1.6.26",
9235
- "@nocobase/utils": "1.6.26",
9243
+ "@nocobase/evaluators": "1.6.28",
9244
+ "@nocobase/sdk": "1.6.28",
9245
+ "@nocobase/utils": "1.6.28",
9236
9246
  ahooks: "^3.7.2",
9237
9247
  antd: "5.12.8",
9238
9248
  "antd-style": "3.7.1",
@@ -27454,7 +27464,7 @@ function getFilteredFormValues(e) {
27454
27464
  return i.length <= 1 ? i.join(".") : i.slice(0, -1).join(".");
27455
27465
  })
27456
27466
  ).forEach((r, i) => {
27457
- (i !== 0 || r.includes(".")) && _.unset(t, r);
27467
+ (i !== 0 || r.includes(".")) && !t[r] && _.unset(t, r);
27458
27468
  }), t;
27459
27469
  }
27460
27470
  function getFormValues({
@@ -28822,16 +28832,17 @@ const SortableProvider = (e) => {
28822
28832
  }), a = useMemo(() => ({ draggable: r, droppable: i }), [r, i]);
28823
28833
  return /* @__PURE__ */ jsx(SortableContext.Provider, { value: a, children: o });
28824
28834
  }, getComputedColor = (e) => new TinyColor(e).setAlpha(0.15).toHex8String(), Sortable = (e) => {
28825
- var g, f;
28826
- const h = e, { component: t, overStyle: n, style: o, children: r, openMode: i } = h, a = Y(h, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken$1(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o);
28827
- return d && ((g = c == null ? void 0 : c.active) == null ? void 0 : g.id) !== ((f = u == null ? void 0 : u.over) == null ? void 0 : f.id) && (m[t === "a" ? "color" : "background"] = getComputedColor(l.colorSettings), Object.assign(m, n)), React.createElement(
28835
+ var C, b;
28836
+ const f = e, { component: t, overStyle: n, style: o, children: r, openMode: i } = f, a = Y(f, ["component", "overStyle", "style", "children", "openMode"]), { token: l } = useToken$1(), { draggable: c, droppable: u } = useContext(SortableContext), { isOver: d, setNodeRef: p } = u, m = x({}, o), h = useFieldSchema(), g = (h == null ? void 0 : h["x-component"]) === "Action.Link" || t === "a";
28837
+ return d && ((C = c == null ? void 0 : c.active) == null ? void 0 : C.id) !== ((b = u == null ? void 0 : u.over) == null ? void 0 : b.id) && (m[g ? "color" : "background"] = getComputedColor(l.colorSettings), Object.assign(m, n)), React.createElement(
28828
28838
  t || "div",
28829
28839
  P(x({
28830
28840
  role: "none"
28831
28841
  }, a), {
28832
28842
  className: cx("nb-sortable-designer", e.className),
28833
28843
  ref: p,
28834
- style: m
28844
+ style: m,
28845
+ setNodeRef: p
28835
28846
  }),
28836
28847
  r
28837
28848
  );