@nocobase/client 1.5.0-beta.12 → 1.5.0-beta.13
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 +11 -18
- package/lib/index.js +92 -92
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -7763,9 +7763,7 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7763
7763
|
title: "{{t('Nickname')}}",
|
|
7764
7764
|
"x-decorator": "FormItem",
|
|
7765
7765
|
"x-component": "Input",
|
|
7766
|
-
"x-
|
|
7767
|
-
e.initialValue && (e.disabled = !0);
|
|
7768
|
-
}
|
|
7766
|
+
"x-disabled": "{{ enableEditProfile === false }}"
|
|
7769
7767
|
},
|
|
7770
7768
|
username: {
|
|
7771
7769
|
type: "string",
|
|
@@ -7774,9 +7772,7 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7774
7772
|
"x-component": "Input",
|
|
7775
7773
|
"x-validator": { username: !0 },
|
|
7776
7774
|
required: !0,
|
|
7777
|
-
"x-
|
|
7778
|
-
e.initialValue && (e.disabled = !0);
|
|
7779
|
-
}
|
|
7775
|
+
"x-disabled": "{{ enableEditProfile === false }}"
|
|
7780
7776
|
},
|
|
7781
7777
|
email: {
|
|
7782
7778
|
type: "string",
|
|
@@ -7784,18 +7780,14 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7784
7780
|
"x-decorator": "FormItem",
|
|
7785
7781
|
"x-component": "Input",
|
|
7786
7782
|
"x-validator": "email",
|
|
7787
|
-
"x-
|
|
7788
|
-
e.initialValue && (e.disabled = !0);
|
|
7789
|
-
}
|
|
7783
|
+
"x-disabled": "{{ enableEditProfile === false }}"
|
|
7790
7784
|
},
|
|
7791
7785
|
phone: {
|
|
7792
7786
|
type: "string",
|
|
7793
7787
|
title: '{{t("Phone")}}',
|
|
7794
7788
|
"x-decorator": "FormItem",
|
|
7795
7789
|
"x-component": "Input",
|
|
7796
|
-
"x-
|
|
7797
|
-
e.initialValue && (e.disabled = !0);
|
|
7798
|
-
}
|
|
7790
|
+
"x-disabled": "{{ enableEditProfile === false }}"
|
|
7799
7791
|
},
|
|
7800
7792
|
footer: {
|
|
7801
7793
|
"x-component": "Action.Drawer.Footer",
|
|
@@ -7811,6 +7803,7 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7811
7803
|
submit: {
|
|
7812
7804
|
title: "Submit",
|
|
7813
7805
|
"x-component": "Action",
|
|
7806
|
+
"x-disabled": "{{ enableEditProfile === false }}",
|
|
7814
7807
|
"x-component-props": {
|
|
7815
7808
|
type: "primary",
|
|
7816
7809
|
useAction: "{{ useSaveCurrentUserValues }}"
|
|
@@ -7833,7 +7826,7 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7833
7826
|
/* @__PURE__ */ jsx(ActionContextProvider, { value: { visible: t, setVisible: n }, children: /* @__PURE__ */ jsx("div", { onClick: (l) => l.stopPropagation(), children: /* @__PURE__ */ jsx(
|
|
7834
7827
|
SchemaComponent,
|
|
7835
7828
|
{
|
|
7836
|
-
scope: { useCurrentUserValues, useCloseAction: useCloseAction$2, useSaveCurrentUserValues },
|
|
7829
|
+
scope: { useCurrentUserValues, useCloseAction: useCloseAction$2, useSaveCurrentUserValues, enableEditProfile: i },
|
|
7837
7830
|
schema: schema$3
|
|
7838
7831
|
}
|
|
7839
7832
|
) }) })
|
|
@@ -7994,7 +7987,7 @@ const useCurrentUserSettingsMenu = () => {
|
|
|
7994
7987
|
})),
|
|
7995
7988
|
defaultValue: t.language,
|
|
7996
7989
|
onChange: (l) => V(void 0, null, function* () {
|
|
7997
|
-
yield n.resource("users").
|
|
7990
|
+
yield n.resource("users").updateLang({
|
|
7998
7991
|
values: {
|
|
7999
7992
|
appLang: l
|
|
8000
7993
|
}
|
|
@@ -34816,7 +34809,7 @@ function addAppVersion(e, t) {
|
|
|
34816
34809
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
34817
34810
|
}), e;
|
|
34818
34811
|
}
|
|
34819
|
-
const name = "@nocobase/client", version = "1.5.0-beta.
|
|
34812
|
+
const name = "@nocobase/client", version = "1.5.0-beta.13", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
34820
34813
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
34821
34814
|
"@ant-design/cssinjs": "^1.11.1",
|
|
34822
34815
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -34838,9 +34831,9 @@ const name = "@nocobase/client", version = "1.5.0-beta.12", license = "AGPL-3.0"
|
|
|
34838
34831
|
"@formily/reactive-react": "^2.2.27",
|
|
34839
34832
|
"@formily/shared": "^2.2.27",
|
|
34840
34833
|
"@formily/validator": "^2.2.27",
|
|
34841
|
-
"@nocobase/evaluators": "1.5.0-beta.
|
|
34842
|
-
"@nocobase/sdk": "1.5.0-beta.
|
|
34843
|
-
"@nocobase/utils": "1.5.0-beta.
|
|
34834
|
+
"@nocobase/evaluators": "1.5.0-beta.13",
|
|
34835
|
+
"@nocobase/sdk": "1.5.0-beta.13",
|
|
34836
|
+
"@nocobase/utils": "1.5.0-beta.13",
|
|
34844
34837
|
ahooks: "^3.7.2",
|
|
34845
34838
|
antd: "5.12.8",
|
|
34846
34839
|
"antd-style": "3.7.1",
|