@nocobase/client 1.2.38-alpha → 1.2.39-alpha
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
|
@@ -3977,7 +3977,7 @@ function addAppVersion(e, t) {
|
|
|
3977
3977
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
3978
3978
|
}), e;
|
|
3979
3979
|
}
|
|
3980
|
-
const name = "@nocobase/client", version$1 = "1.2.
|
|
3980
|
+
const name = "@nocobase/client", version$1 = "1.2.39-alpha", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
3981
3981
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
3982
3982
|
"@ant-design/cssinjs": "^1.11.1",
|
|
3983
3983
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -3998,9 +3998,9 @@ const name = "@nocobase/client", version$1 = "1.2.38-alpha", license = "AGPL-3.0
|
|
|
3998
3998
|
"@formily/reactive-react": "^2.2.27",
|
|
3999
3999
|
"@formily/shared": "^2.2.27",
|
|
4000
4000
|
"@formily/validator": "^2.2.27",
|
|
4001
|
-
"@nocobase/evaluators": "1.2.
|
|
4002
|
-
"@nocobase/sdk": "1.2.
|
|
4003
|
-
"@nocobase/utils": "1.2.
|
|
4001
|
+
"@nocobase/evaluators": "1.2.39-alpha",
|
|
4002
|
+
"@nocobase/sdk": "1.2.39-alpha",
|
|
4003
|
+
"@nocobase/utils": "1.2.39-alpha",
|
|
4004
4004
|
ahooks: "^3.7.2",
|
|
4005
4005
|
antd: "^5.12.8",
|
|
4006
4006
|
"antd-style": "3.4.5",
|
|
@@ -5538,16 +5538,16 @@ const mergeFilter = (e, t = "$and") => {
|
|
|
5538
5538
|
$and: Object.keys(e).map((i) => {
|
|
5539
5539
|
let a = _.get(e, i);
|
|
5540
5540
|
const l = o(`${n}.${i}`);
|
|
5541
|
-
return l != null && l.target && (a = getValuesByPath(a, l.targetKey || "id"), i = `${i}.${l.targetKey || "id"}`), a ? {
|
|
5541
|
+
return l != null && l.target && (a = getValuesByPath(a, l.targetKey || "id"), i = `${i}.${l.targetKey || "id"}`), !a && a !== 0 && a !== !1 ? null : {
|
|
5542
5542
|
[i]: {
|
|
5543
5543
|
[t[i] || "$eq"]: a
|
|
5544
5544
|
}
|
|
5545
|
-
}
|
|
5545
|
+
};
|
|
5546
5546
|
}).filter(Boolean)
|
|
5547
5547
|
}), useAssociatedFields = () => {
|
|
5548
5548
|
const { fields: e } = useCollection_deprecated();
|
|
5549
5549
|
return e.filter((t) => isAssocField(t)) || [];
|
|
5550
|
-
}, isAssocField = (e) => ["o2o", "oho", "obo", "m2o", "createdBy", "updatedBy", "o2m", "m2m", "linkTo", "chinaRegion"].includes(
|
|
5550
|
+
}, isAssocField = (e) => ["o2o", "oho", "obo", "m2o", "createdBy", "updatedBy", "o2m", "m2m", "linkTo", "chinaRegion", "mbm"].includes(
|
|
5551
5551
|
e == null ? void 0 : e.interface
|
|
5552
5552
|
), isSameCollection = (e, t) => e.name === t.name && e.dataSource === t.dataSource, useFilterAPI = () => {
|
|
5553
5553
|
const e = useFieldSchema(), { getDataBlocks: t } = useFilterBlock(), { targets: o, uid: n } = findFilterTargets(e), r = t(), [i, a] = useState(() => o && o.some((u) => r.some((d) => d.uid === u.uid))), l = Object.keys(o || {});
|
|
@@ -15493,8 +15493,9 @@ const useFormItemProps = () => {
|
|
|
15493
15493
|
{
|
|
15494
15494
|
forceProps: {
|
|
15495
15495
|
style: {
|
|
15496
|
-
|
|
15497
|
-
|
|
15496
|
+
overflowX: "auto",
|
|
15497
|
+
maxWidth: "100%",
|
|
15498
|
+
float: "right"
|
|
15498
15499
|
}
|
|
15499
15500
|
},
|
|
15500
15501
|
children: /* @__PURE__ */ jsx(DefaultValueProvider, { isAllowToSetDefaultValue: () => !1, children: /* @__PURE__ */ jsx(FormBlockProvider, g({ name: "filter-form" }, e)) })
|
|
@@ -21852,7 +21853,7 @@ const ActionLink = withDynamicSchemaProps(
|
|
|
21852
21853
|
"addChild",
|
|
21853
21854
|
"onMouseEnter",
|
|
21854
21855
|
"refreshDataBlockRequest"
|
|
21855
|
-
]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: k } = useStyles$d(), { t: w } = useTranslation(), [M, N] = useState(!1), [E, O] = useState(!1), z = useDesigner(), R = useField(), { run: j, element: B, disabled: T } = a(x), D = useFieldSchema(), $ = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = D["x-toolbar-props"] || D["x-designer-props"], H = (me = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : me.openMode, Y = (he = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : he.openSize, W = (ge = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, X = q.disabled || R.disabled || ((fe = R.data) == null ? void 0 : fe.disabled) || f || T, Q = useMemo(() => (D == null ? void 0 : D["x-linkage-rules"]) || [], [D == null ? void 0 : D["x-linkage-rules"]]), { designable: J } = useDesignable(), oe = useComponent(i) || i, { modal: re } = App.useApp(), te = useVariables(), se = useLocalVariables({ currentForm: { values: L } }), { getAriaLabel: ae } = useGetAriaLabelOfAction(u), ce = useDataBlockRequest(), ue = useMemo(() => {
|
|
21856
|
+
]), v = useACLActionParamsContext(), { wrapSSR: I, componentCls: A, hashId: k } = useStyles$d(), { t: w } = useTranslation(), [M, N] = useState(!1), [E, O] = useState(!1), z = useDesigner(), R = useField(), { run: j, element: B, disabled: T } = a(x), D = useFieldSchema(), $ = useCompile(), q = useForm(), L = useCollectionRecordData(), G = useCollectionParentRecordData(), U = D["x-toolbar-props"] || D["x-designer-props"], H = (me = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : me.openMode, Y = (he = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : he.openSize, W = (ge = D == null ? void 0 : D["x-component-props"]) == null ? void 0 : ge.refreshDataBlockRequest, X = q.disabled || R.disabled || ((fe = R.data) == null ? void 0 : fe.disabled) || f || T, Q = useMemo(() => (D == null ? void 0 : D["x-linkage-rules"]) || [], [D == null ? void 0 : D["x-linkage-rules"]]), { designable: J } = useDesignable(), oe = useComponent(i) || i, { modal: re } = App.useApp(), te = useVariables(), se = useLocalVariables({ currentForm: { values: L, readPretty: !1 } }), { getAriaLabel: ae } = useGetAriaLabelOfAction(u), ce = useDataBlockRequest(), ue = useMemo(() => {
|
|
21856
21857
|
const Z = u || $(D.title);
|
|
21857
21858
|
return _.isString(Z) ? w(Z) : Z;
|
|
21858
21859
|
}, [u, D.title, w]);
|
|
@@ -45573,7 +45574,8 @@ const string = [
|
|
|
45573
45574
|
type: "string",
|
|
45574
45575
|
name: "simplePaginate",
|
|
45575
45576
|
"x-decorator": "FormItem",
|
|
45576
|
-
"x-component": "Checkbox"
|
|
45577
|
+
"x-component": "Checkbox",
|
|
45578
|
+
description: '{{t("Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data")}}'
|
|
45577
45579
|
},
|
|
45578
45580
|
presetFields: {
|
|
45579
45581
|
title: '{{t("Preset fields")}}',
|