@nocobase/client 1.8.31 → 1.8.33
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 +13 -10
- package/es/schema-component/antd/upload/shared.d.ts +1 -1
- package/lib/index.js +7 -4
- package/lib/locale/cron/zh-CN.json +33 -0
- package/lib/locale/cron/zh-TW.json +33 -0
- package/lib/locale/{de-DE.js → de-DE.json} +472 -472
- package/lib/locale/{en-US.js → en-US.json} +233 -233
- package/lib/locale/es-ES.json +816 -0
- package/lib/locale/fr-FR.json +836 -0
- package/lib/locale/{it-IT.js → it-IT.json} +355 -355
- package/lib/locale/ja-JP.json +1054 -0
- package/lib/locale/ko-KR.json +927 -0
- package/lib/locale/nl-NL.json +1064 -0
- package/lib/locale/pt-BR.json +796 -0
- package/lib/locale/ru-RU.json +625 -0
- package/lib/locale/tr-TR.json +623 -0
- package/lib/locale/uk-UA.json +839 -0
- package/lib/locale/zh-CN.json +1145 -0
- package/lib/locale/zh-TW.json +930 -0
- package/package.json +5 -5
- package/lib/locale/cron/zh-CN.js +0 -33
- package/lib/locale/cron/zh-TW.js +0 -33
- package/lib/locale/es-ES.js +0 -816
- package/lib/locale/fr-FR.js +0 -836
- package/lib/locale/ja-JP.js +0 -1054
- package/lib/locale/ko-KR.js +0 -927
- package/lib/locale/nl-NL.js +0 -1064
- package/lib/locale/pt-BR.js +0 -796
- package/lib/locale/ru-RU.js +0 -625
- package/lib/locale/tr-TR.js +0 -623
- package/lib/locale/uk-UA.js +0 -839
- package/lib/locale/zh-CN.js +0 -1145
- package/lib/locale/zh-TW.js +0 -930
package/es/index.mjs
CHANGED
|
@@ -8785,7 +8785,7 @@ function addAppVersion(e, t) {
|
|
|
8785
8785
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
8786
8786
|
}), e;
|
|
8787
8787
|
}
|
|
8788
|
-
const name = "@nocobase/client", version = "1.8.
|
|
8788
|
+
const name = "@nocobase/client", version = "1.8.33", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
8789
8789
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
8790
8790
|
"@ant-design/cssinjs": "^1.11.1",
|
|
8791
8791
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -8806,9 +8806,9 @@ const name = "@nocobase/client", version = "1.8.31", license = "AGPL-3.0", main
|
|
|
8806
8806
|
"@formily/reactive-react": "^2.2.27",
|
|
8807
8807
|
"@formily/shared": "^2.2.27",
|
|
8808
8808
|
"@formily/validator": "^2.2.27",
|
|
8809
|
-
"@nocobase/evaluators": "1.8.
|
|
8810
|
-
"@nocobase/sdk": "1.8.
|
|
8811
|
-
"@nocobase/utils": "1.8.
|
|
8809
|
+
"@nocobase/evaluators": "1.8.33",
|
|
8810
|
+
"@nocobase/sdk": "1.8.33",
|
|
8811
|
+
"@nocobase/utils": "1.8.33",
|
|
8812
8812
|
ahooks: "^3.7.2",
|
|
8813
8813
|
antd: "5.24.2",
|
|
8814
8814
|
"antd-style": "3.7.1",
|
|
@@ -22210,7 +22210,7 @@ const SchemaSettingsModalItem = (e) => {
|
|
|
22210
22210
|
);
|
|
22211
22211
|
}, SchemaSettingsLinkageRules = function(t) {
|
|
22212
22212
|
var w;
|
|
22213
|
-
const { collectionName: o, readPretty: n, Component: r, afterSubmit: a, title: i, returnScope: l } = t, c = useFieldSchema(), { form: u } = useFormBlockContext(), { dn: d } = useDesignable(), { t: p } = useTranslation(), { getTemplateById: m } = useSchemaTemplateManager(), h = useVariables$1(), g = useLocalVariables$1(), f = useRecord(), { type: C } = useFormBlockType(), b = (w = t == null ? void 0 : t.category) != null ? w : LinkageRuleCategory.default, y = (t == null ? void 0 : t.type) || (c != null && c["x-action"] || ["Action", "Action.Link"].includes(c["x-component"]) ? "button" : "field"), S = findGridSchema(c) || c, v = useLinkageCollectionFilterOptions(o), F = useLinkageCollectionFieldOptions(o, n), I = {
|
|
22213
|
+
const { collectionName: o, readPretty: n, Component: r, afterSubmit: a, title: i, returnScope: l } = t, c = useFieldSchema(), { form: u } = useFormBlockContext(), { dn: d } = useDesignable(), { t: p } = useTranslation(), { getTemplateById: m } = useSchemaTemplateManager(), h = useVariables$1(), g = useLocalVariables$1(), f = useRecord(), { type: C } = useFormBlockType(), b = (w = t == null ? void 0 : t.category) != null ? w : LinkageRuleCategory.default, y = (t == null ? void 0 : t.type) || (c != null && c["x-action"] || ["Action", "Action.Link", "WorkbenchAction"].includes(c["x-component"]) ? "button" : "field"), S = findGridSchema(c) || c, v = useLinkageCollectionFilterOptions(o), F = useLinkageCollectionFieldOptions(o, n), I = {
|
|
22214
22214
|
[LinkageRuleCategory.default]: p("Linkage rules"),
|
|
22215
22215
|
[LinkageRuleCategory.style]: p("Style")
|
|
22216
22216
|
}, R = LinkageRuleDataKeyMap[b], T = useCallback(() => (S == null ? void 0 : S[R]) || (c == null ? void 0 : c[R]) || [], [S, c, R]), D = i || I[b] || p("Linkage rules"), B = useFlag(), $ = useMemo(
|
|
@@ -30824,7 +30824,7 @@ const DragHandler = (e) => {
|
|
|
30824
30824
|
open: i,
|
|
30825
30825
|
onDropdownVisibleChange: l
|
|
30826
30826
|
}, e), {
|
|
30827
|
-
allowClear: !
|
|
30827
|
+
allowClear: !1,
|
|
30828
30828
|
style: {
|
|
30829
30829
|
width: "100%",
|
|
30830
30830
|
minWidth: 100,
|
|
@@ -30950,7 +30950,7 @@ const DragHandler = (e) => {
|
|
|
30950
30950
|
};
|
|
30951
30951
|
}, BlockItem = withDynamicSchemaProps(
|
|
30952
30952
|
(e) => {
|
|
30953
|
-
const { className: t, children: o, style: n } = useProps(e), { componentCls: r, hashId: a } = useStyles$9(), i = useFieldSchema(), { render: l } = useSchemaToolbarRender(i), { getAriaLabel: c } = useGetAriaLabelOfBlockItem(e.name), u = useMemo(() => c(), [c]), d = useCollection(), p = i["x-decorator"] === "FormItem" && i["x-block-linkage-rules"], m = /* @__PURE__ */ jsxs(
|
|
30953
|
+
const { className: t, children: o, style: n } = useProps(e), { componentCls: r, hashId: a } = useStyles$9(), i = useFieldSchema(), { render: l } = useSchemaToolbarRender(i), { getAriaLabel: c } = useGetAriaLabelOfBlockItem(e.name), u = useMemo(() => c(), [c]), d = useCollection(), p = i["x-decorator"] === "FormItem" && i["x-block-linkage-rules"], m = i["x-component"] === "Iframe" && i["x-block-linkage-rules"], h = /* @__PURE__ */ jsxs(
|
|
30954
30954
|
SortableItem,
|
|
30955
30955
|
{
|
|
30956
30956
|
role: "button",
|
|
@@ -30963,7 +30963,7 @@ const DragHandler = (e) => {
|
|
|
30963
30963
|
]
|
|
30964
30964
|
}
|
|
30965
30965
|
);
|
|
30966
|
-
return d && !p
|
|
30966
|
+
return d && !p && !m ? h : /* @__PURE__ */ jsx(BlockLinkageRuleProvider, { children: h });
|
|
30967
30967
|
},
|
|
30968
30968
|
{ displayName: "BlockItem" }
|
|
30969
30969
|
), TestDesigner = () => {
|
|
@@ -31644,7 +31644,7 @@ const useParseDefaultValue = () => {
|
|
|
31644
31644
|
const j = transformVariableValue(B, {
|
|
31645
31645
|
targetCollectionField: D
|
|
31646
31646
|
});
|
|
31647
|
-
j == null || j === "" ? e.mounted && (e.setInitialValue(void 0), e.setValue(void 0)) : p() ? h === 0 && m(j) : e.setInitialValue(j), e.loading = !1;
|
|
31647
|
+
j == null || j === "" ? e.mounted && (e.setInitialValue(void 0), e.setValue(void 0)) : p() ? h === 0 && m(j) : (e.setInitialValue(j), e.setValue(j)), e.loading = !1;
|
|
31648
31648
|
} else
|
|
31649
31649
|
!/\{\{.+\}\}/g.test(t.default) && e.setInitialValue && e.setInitialValue(t.default);
|
|
31650
31650
|
}), v = _.debounce(S, DEBOUNCE_WAIT);
|
|
@@ -31690,6 +31690,9 @@ const formItemWrapCss = css`
|
|
|
31690
31690
|
display: inline;
|
|
31691
31691
|
}
|
|
31692
31692
|
}
|
|
31693
|
+
.ant-formily-item-label label {
|
|
31694
|
+
word-break: normal;
|
|
31695
|
+
}
|
|
31693
31696
|
`, formItemLabelCss = css`
|
|
31694
31697
|
.ant-card-body {
|
|
31695
31698
|
padding: 0px !important;
|
|
@@ -43757,7 +43760,7 @@ function useBeforeUpload(e) {
|
|
|
43757
43760
|
}));
|
|
43758
43761
|
}
|
|
43759
43762
|
const a = validate(r, e);
|
|
43760
|
-
return a ? (
|
|
43763
|
+
return a ? (o.status = "error", o.response = t(a)) : o.status === "error" && (delete r.status, delete r.response), a ? !1 : Promise.resolve(r);
|
|
43761
43764
|
},
|
|
43762
43765
|
[e]
|
|
43763
43766
|
);
|
|
@@ -87,4 +87,4 @@ export declare function toValueItem(data: any): any;
|
|
|
87
87
|
export declare const toItem: (file: any) => any;
|
|
88
88
|
export declare const toFileList: (fileList: any) => any[];
|
|
89
89
|
export declare function validate(file: any, rules: Record<string, any>): string;
|
|
90
|
-
export declare function useBeforeUpload(rules: any): (file: any, fileList: any) => any
|
|
90
|
+
export declare function useBeforeUpload(rules: any): (file: any, fileList: any) => false | Promise<any>;
|