@nocobase/client 1.6.22 → 1.6.23
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 +29 -24
- package/lib/index.js +4 -4
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -9194,7 +9194,7 @@ function addAppVersion(e, t) {
|
|
|
9194
9194
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
9195
9195
|
}), e;
|
|
9196
9196
|
}
|
|
9197
|
-
const name = "@nocobase/client", version = "1.6.
|
|
9197
|
+
const name = "@nocobase/client", version = "1.6.23", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
9198
9198
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
9199
9199
|
"@ant-design/cssinjs": "^1.11.1",
|
|
9200
9200
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -9216,9 +9216,9 @@ const name = "@nocobase/client", version = "1.6.22", license = "AGPL-3.0", main
|
|
|
9216
9216
|
"@formily/reactive-react": "^2.2.27",
|
|
9217
9217
|
"@formily/shared": "^2.2.27",
|
|
9218
9218
|
"@formily/validator": "^2.2.27",
|
|
9219
|
-
"@nocobase/evaluators": "1.6.
|
|
9220
|
-
"@nocobase/sdk": "1.6.
|
|
9221
|
-
"@nocobase/utils": "1.6.
|
|
9219
|
+
"@nocobase/evaluators": "1.6.23",
|
|
9220
|
+
"@nocobase/sdk": "1.6.23",
|
|
9221
|
+
"@nocobase/utils": "1.6.23",
|
|
9222
9222
|
ahooks: "^3.7.2",
|
|
9223
9223
|
antd: "5.12.8",
|
|
9224
9224
|
"antd-style": "3.7.1",
|
|
@@ -20623,7 +20623,7 @@ const DynamicComponent$1 = (e) => {
|
|
|
20623
20623
|
c("Syntax references"),
|
|
20624
20624
|
":"
|
|
20625
20625
|
] }),
|
|
20626
|
-
/* @__PURE__ */ jsx("a", { href: "https://
|
|
20626
|
+
/* @__PURE__ */ jsx("a", { href: "https://docs.nocobase.com/handbook/calculation-engines/formula", target: "_blank", rel: "noreferrer", children: "Formula.js" })
|
|
20627
20627
|
] })
|
|
20628
20628
|
] })
|
|
20629
20629
|
}, v = (I) => i ? i.indexOf(I) > -1 : !0, F = [
|
|
@@ -37374,9 +37374,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
37374
37374
|
]
|
|
37375
37375
|
}
|
|
37376
37376
|
) });
|
|
37377
|
-
return isBulkEditAction(o) && (ue = /* @__PURE__ */ jsx(TabsContextProvider, { children: ue })), $(
|
|
37378
|
-
b ? /* @__PURE__ */ jsx(RecordProvider, { record: null, parent: N, children: /* @__PURE__ */ jsx(TreeRecordProvider, { parent: S, children: ue }) }) : ue
|
|
37379
|
-
);
|
|
37377
|
+
return isBulkEditAction(o) && (ue = /* @__PURE__ */ jsx(TabsContextProvider, { children: ue })), $(b ? /* @__PURE__ */ jsx(TreeRecordProvider, { parent: S, children: ue }) : ue);
|
|
37380
37378
|
});
|
|
37381
37379
|
InternalAction.displayName = "InternalAction";
|
|
37382
37380
|
Action.Popover = function e(t) {
|
|
@@ -45652,39 +45650,46 @@ const commonOptions$h = {
|
|
|
45652
45650
|
}
|
|
45653
45651
|
});
|
|
45654
45652
|
}, AssociateActionProvider = (e) => {
|
|
45655
|
-
const [t, n] = useState([]), o = useCollection(), { resource: r,
|
|
45653
|
+
const [t, n] = useState([]), o = useCollection(), { resource: r, block: i, __parent: a } = useBlockRequestContext(), l = useActionContext(), { isMobile: c } = useOpenModeContext() || {}, [u, d] = useState([]);
|
|
45654
|
+
useEffect(() => {
|
|
45655
|
+
var g;
|
|
45656
|
+
(g = r == null ? void 0 : r.list) == null || g.call(r).then((f) => {
|
|
45657
|
+
var C;
|
|
45658
|
+
d(((C = f.data) == null ? void 0 : C.data) || []);
|
|
45659
|
+
});
|
|
45660
|
+
}, [r]);
|
|
45661
|
+
const p = {
|
|
45656
45662
|
size: "small",
|
|
45657
45663
|
onChange: e == null ? void 0 : e.onChange,
|
|
45658
45664
|
selectedRows: t,
|
|
45659
45665
|
setSelectedRows: n
|
|
45660
|
-
},
|
|
45661
|
-
const { selectedRows:
|
|
45666
|
+
}, m = () => {
|
|
45667
|
+
const { selectedRows: g } = useContext(RecordPickerContext), { setVisible: f, setSubmitted: C, setFormValueChanged: b } = useActionContext();
|
|
45662
45668
|
return {
|
|
45663
|
-
onClick(
|
|
45669
|
+
onClick(y, v) {
|
|
45664
45670
|
return V(this, null, function* () {
|
|
45665
|
-
var
|
|
45671
|
+
var F, I;
|
|
45666
45672
|
yield r.add({
|
|
45667
|
-
values:
|
|
45668
|
-
}),
|
|
45673
|
+
values: g
|
|
45674
|
+
}), v && (v == null || v()), f == null || f(!1), C == null || C(!0), i && i !== "TableField" && ((I = (F = a == null ? void 0 : a.service) == null ? void 0 : F.refresh) == null || I.call(F), f == null || f(!1), b == null || b(!1));
|
|
45669
45675
|
});
|
|
45670
45676
|
}
|
|
45671
45677
|
};
|
|
45672
|
-
},
|
|
45673
|
-
|
|
45674
|
-
|
|
45675
|
-
|
|
45676
|
-
|
|
45677
|
-
return C.length ? { $and: [{ [`${h}.$ne`]: C }] } : {};
|
|
45678
|
+
}, h = () => {
|
|
45679
|
+
const g = (o == null ? void 0 : o.filterTargetKey) || "id";
|
|
45680
|
+
if (u) {
|
|
45681
|
+
const f = u.map((b) => b[g]).filter(Boolean);
|
|
45682
|
+
return f.length ? { $and: [{ [`${g}.$ne`]: f }] } : {};
|
|
45678
45683
|
}
|
|
45679
45684
|
return {};
|
|
45680
45685
|
};
|
|
45681
45686
|
return /* @__PURE__ */ jsx(
|
|
45682
45687
|
ActionContextProvider,
|
|
45683
45688
|
{
|
|
45684
|
-
value: P(x({},
|
|
45685
|
-
openMode:
|
|
45689
|
+
value: P(x({}, l), {
|
|
45690
|
+
openMode: c ? "drawer" : l.openMode
|
|
45686
45691
|
}),
|
|
45687
|
-
children: /* @__PURE__ */ jsx(RecordPickerProvider, P(x({},
|
|
45692
|
+
children: /* @__PURE__ */ jsx(RecordPickerProvider, P(x({}, p), { children: /* @__PURE__ */ jsx(SchemaComponentOptions, { scope: { useTableSelectorProps: useTableSelectorProps$2, usePickActionProps: m }, children: /* @__PURE__ */ jsx(TableSelectorParamsProvider, { params: { filter: h() }, children: e.children }) }) }))
|
|
45688
45693
|
}
|
|
45689
45694
|
);
|
|
45690
45695
|
}, ParentCollectionFields$1 = () => {
|