@nocobase/client 1.5.0 → 1.5.2

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
@@ -7489,11 +7489,15 @@ function getSubscriber({
7489
7489
  let l = t.stateOfLinkageRules[a];
7490
7490
  l = yield Promise.all(l), l = l.filter((d) => d.condition);
7491
7491
  const c = l[l.length - 1];
7492
- a === "value" ? l.length > 1 && (t.value = c.value) : (t[a] = c == null ? void 0 : c.value, requestAnimationFrame(() => {
7492
+ a === "value" ? l.length > 1 && (t.value = c.value) : (a === "display" && (c == null ? void 0 : c.value) === "hidden" ? (t.display = "visible", t.data = t.data || {}, t.data.hidden = !0, requestAnimationFrame(() => {
7493
+ t.setState((d) => {
7494
+ d.display = "visible";
7495
+ });
7496
+ })) : (t[a] = c == null ? void 0 : c.value, requestAnimationFrame(() => {
7493
7497
  t.setState((d) => {
7494
7498
  d[a] = c == null ? void 0 : c.value;
7495
7499
  });
7496
- }), a === "display" && (c == null ? void 0 : c.value) === "none" && (t.value = null)), t.stateOfLinkageRules[a] = null;
7500
+ })), a === "display" && (c == null ? void 0 : c.value) === "none" && (t.value = null)), t.stateOfLinkageRules[a] = null;
7497
7501
  }));
7498
7502
  };
7499
7503
  }
@@ -27579,7 +27583,7 @@ const formItemWrapCss = css`
27579
27583
  }
27580
27584
  `, FormItem = withDynamicSchemaProps(
27581
27585
  observer$1((e) => {
27582
- var c, u;
27586
+ var c, u, d;
27583
27587
  useEnsureOperatorsValid();
27584
27588
  const t = useField(), n = useFieldSchema(), { addActiveFieldName: o } = useFormActiveFields() || {}, { wrapperStyle: r } = useDataFormItemProps();
27585
27589
  useParseDefaultValue(), useLazyLoadDisplayAssociationFieldsOfForm(), useLinkageRulesForSubTableOrSubForm(), useEffect(() => {
@@ -27599,7 +27603,7 @@ const formItemWrapCss = css`
27599
27603
  }, [t.description]), l = useMemo(() => cx(formItemWrapCss, {
27600
27604
  [formItemLabelCss]: i === !1
27601
27605
  }), [i]);
27602
- return /* @__PURE__ */ jsx(CollectionFieldProvider, { allowNull: !0, children: /* @__PURE__ */ jsx(
27606
+ return (d = t.data) != null && d.hidden ? null : /* @__PURE__ */ jsx(CollectionFieldProvider, { allowNull: !0, children: /* @__PURE__ */ jsx(
27603
27607
  BlockItem,
27604
27608
  {
27605
27609
  className: cx(
@@ -35181,7 +35185,7 @@ function addAppVersion(e, t) {
35181
35185
  addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
35182
35186
  }), e;
35183
35187
  }
35184
- const name = "@nocobase/client", version = "1.5.0", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35188
+ const name = "@nocobase/client", version = "1.5.2", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
35185
35189
  "@ahooksjs/use-url-state": "3.5.1",
35186
35190
  "@ant-design/cssinjs": "^1.11.1",
35187
35191
  "@ant-design/icons": "^5.1.4",
@@ -35203,9 +35207,9 @@ const name = "@nocobase/client", version = "1.5.0", license = "AGPL-3.0", main =
35203
35207
  "@formily/reactive-react": "^2.2.27",
35204
35208
  "@formily/shared": "^2.2.27",
35205
35209
  "@formily/validator": "^2.2.27",
35206
- "@nocobase/evaluators": "1.5.0",
35207
- "@nocobase/sdk": "1.5.0",
35208
- "@nocobase/utils": "1.5.0",
35210
+ "@nocobase/evaluators": "1.5.2",
35211
+ "@nocobase/sdk": "1.5.2",
35212
+ "@nocobase/utils": "1.5.2",
35209
35213
  ahooks: "^3.7.2",
35210
35214
  antd: "5.12.8",
35211
35215
  "antd-style": "3.7.1",
@@ -39730,27 +39734,26 @@ const getSourceData = (e, t) => {
39730
39734
  }
39731
39735
  `, InternalPopoverNester = observer$1(
39732
39736
  (e) => {
39733
- var C;
39734
- const { options: t } = useAssociationFieldContext(), [n, o] = useState(!1), { t: r } = useTranslation(), i = useFieldSchema();
39735
- i["x-component-props"].enableLink = !1;
39736
- const a = useRef(), l = P(x({}, e), {
39737
+ const { field: t } = useAssociationFieldContext(), [n, o] = useState(!1), r = useFieldSchema();
39738
+ r["x-component-props"].enableLink = !1;
39739
+ const i = useRef(), a = P(x({}, e), {
39737
39740
  shouldMountElement: !0
39738
- }), c = /* @__PURE__ */ jsx("div", { ref: a, className: `${InternalPopoverNesterContentCss} popover-subform-container`, children: /* @__PURE__ */ jsx(InternalNester, x({}, l)) }), u = () => a.current, d = useContext(ActionContext), p = {
39739
- getContainer: u
39740
- }, { getAriaLabel: m } = useGetAriaLabelOfPopover(), h = e.Container || StablePopover, g = useCallback((b) => {
39741
- o(b);
39742
- }, []), f = useMemo(() => ({ padding: "0px" }), []);
39743
- return /* @__PURE__ */ jsxs(ActionContextProvider, { value: P(x({}, d), { modalProps: p }), children: [
39741
+ }), l = /* @__PURE__ */ jsx("div", { ref: i, className: `${InternalPopoverNesterContentCss} popover-subform-container`, children: /* @__PURE__ */ jsx(InternalNester, x({}, a)) }), c = () => i.current, u = useContext(ActionContext), d = {
39742
+ getContainer: c
39743
+ }, { getAriaLabel: p } = useGetAriaLabelOfPopover(), m = e.Container || StablePopover, h = useCallback((f) => {
39744
+ o(f);
39745
+ }, []), g = useMemo(() => ({ padding: "0px" }), []);
39746
+ return /* @__PURE__ */ jsxs(ActionContextProvider, { value: P(x({}, u), { modalProps: d }), children: [
39744
39747
  /* @__PURE__ */ jsx(
39745
- h,
39748
+ m,
39746
39749
  {
39747
- overlayStyle: f,
39748
- content: c,
39750
+ overlayStyle: g,
39751
+ content: l,
39749
39752
  trigger: "click",
39750
39753
  placement: "topLeft",
39751
39754
  open: n,
39752
- onOpenChange: g,
39753
- title: r((C = t == null ? void 0 : t.uiSchema) == null ? void 0 : C.rawTitle),
39755
+ onOpenChange: h,
39756
+ title: (t == null ? void 0 : t.title) || "",
39754
39757
  children: /* @__PURE__ */ jsxs("span", { style: { cursor: "pointer", display: "flex" }, children: [
39755
39758
  /* @__PURE__ */ jsx(
39756
39759
  "div",
@@ -39769,7 +39772,7 @@ const getSourceData = (e, t) => {
39769
39772
  "div",
39770
39773
  {
39771
39774
  role: "button",
39772
- "aria-label": m("mask"),
39775
+ "aria-label": p("mask"),
39773
39776
  onClick: () => o(!1),
39774
39777
  style: {
39775
39778
  position: "fixed",