@nocobase/client 1.5.19 → 1.5.21
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/application/Application.d.ts +2 -0
- package/es/index.mjs +17 -7
- package/lib/index.js +6 -3
- package/package.json +5 -5
|
@@ -69,6 +69,7 @@ export declare class Application {
|
|
|
69
69
|
schemaSettingsManager: SchemaSettingsManager;
|
|
70
70
|
dataSourceManager: DataSourceManager;
|
|
71
71
|
name: string;
|
|
72
|
+
favicon: string;
|
|
72
73
|
loading: boolean;
|
|
73
74
|
maintained: boolean;
|
|
74
75
|
maintaining: boolean;
|
|
@@ -78,6 +79,7 @@ export declare class Application {
|
|
|
78
79
|
get pm(): PluginManager;
|
|
79
80
|
get disableAcl(): boolean;
|
|
80
81
|
get isWsAuthorized(): boolean;
|
|
82
|
+
updateFavicon(favicon?: string): void;
|
|
81
83
|
setWsAuthorized(authorized: boolean): void;
|
|
82
84
|
constructor(options?: ApplicationOptions);
|
|
83
85
|
private initListeners;
|
package/es/index.mjs
CHANGED
|
@@ -12076,9 +12076,11 @@ const InternalDetailsBlockProvider = (e) => {
|
|
|
12076
12076
|
}
|
|
12077
12077
|
return { params: n, parseVariableLoading: o };
|
|
12078
12078
|
}, DetailsBlockProvider = withDynamicSchemaProps((e) => {
|
|
12079
|
-
const { params: t, parseVariableLoading: n } = useCompatDetailsBlockParams(e), o = useCollectionRecordData(), { association: r, dataSource: i
|
|
12079
|
+
const { params: t, parseVariableLoading: n } = useCompatDetailsBlockParams(e), o = useCollectionRecordData(), { association: r, dataSource: i, action: a } = e;
|
|
12080
|
+
useCollectionManager_deprecated(i);
|
|
12081
|
+
const { __collection: l } = o || {}, { designable: c } = useDesignable(), u = e.collection;
|
|
12080
12082
|
let d = !0;
|
|
12081
|
-
!c && l && (d = l === u);
|
|
12083
|
+
!c && l && a === "get" && !r && (d = l === u);
|
|
12082
12084
|
const p = useUpdate();
|
|
12083
12085
|
return !d || n ? null : /* @__PURE__ */ jsx(TemplateBlockProvider, { onTemplateLoaded: p, children: /* @__PURE__ */ jsx(BlockProvider, P(x({ name: "details" }, e), { params: t, children: /* @__PURE__ */ jsx(InternalDetailsBlockProvider, x({}, e)) })) });
|
|
12084
12086
|
}), useDetailsBlockContext = () => useContext(DetailsBlockContext), useDetailsBlockProps = () => {
|
|
@@ -18606,6 +18608,7 @@ class Application {
|
|
|
18606
18608
|
I(this, "schemaSettingsManager");
|
|
18607
18609
|
I(this, "dataSourceManager");
|
|
18608
18610
|
I(this, "name");
|
|
18611
|
+
I(this, "favicon");
|
|
18609
18612
|
I(this, "loading", !0);
|
|
18610
18613
|
I(this, "maintained", !1);
|
|
18611
18614
|
I(this, "maintaining", !1);
|
|
@@ -18630,6 +18633,10 @@ class Application {
|
|
|
18630
18633
|
get isWsAuthorized() {
|
|
18631
18634
|
return this.wsAuthorized;
|
|
18632
18635
|
}
|
|
18636
|
+
updateFavicon(t) {
|
|
18637
|
+
let n = document.querySelector('link[rel="shortcut icon"]');
|
|
18638
|
+
t && (this.favicon = t), n ? n.href = this.favicon || "/favicon/favicon.ico" : (n = document.createElement("link"), n.rel = "shortcut icon", n.href = this.favicon || "/favicon/favicon.ico", document.head.appendChild(n));
|
|
18639
|
+
}
|
|
18633
18640
|
setWsAuthorized(t) {
|
|
18634
18641
|
this.wsAuthorized = t;
|
|
18635
18642
|
}
|
|
@@ -18749,7 +18756,7 @@ class Application {
|
|
|
18749
18756
|
code: "LOAD_ERROR"
|
|
18750
18757
|
}, n(t)), console.error(t, this.error);
|
|
18751
18758
|
}
|
|
18752
|
-
this.loading = !1;
|
|
18759
|
+
this.loading = !1, this.updateFavicon();
|
|
18753
18760
|
});
|
|
18754
18761
|
}
|
|
18755
18762
|
loadWebSocket() {
|
|
@@ -27585,6 +27592,9 @@ const formItemWrapCss = css`
|
|
|
27585
27592
|
max-width: 100%;
|
|
27586
27593
|
}
|
|
27587
27594
|
`, formItemLabelCss = css`
|
|
27595
|
+
.ant-card-body {
|
|
27596
|
+
padding: 0px !important;
|
|
27597
|
+
}
|
|
27588
27598
|
> .ant-formily-item-label {
|
|
27589
27599
|
display: none;
|
|
27590
27600
|
}
|
|
@@ -35206,7 +35216,7 @@ function addAppVersion(e, t) {
|
|
|
35206
35216
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
35207
35217
|
}), e;
|
|
35208
35218
|
}
|
|
35209
|
-
const name = "@nocobase/client", version = "1.5.
|
|
35219
|
+
const name = "@nocobase/client", version = "1.5.21", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
35210
35220
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
35211
35221
|
"@ant-design/cssinjs": "^1.11.1",
|
|
35212
35222
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -35228,9 +35238,9 @@ const name = "@nocobase/client", version = "1.5.19", license = "AGPL-3.0", main
|
|
|
35228
35238
|
"@formily/reactive-react": "^2.2.27",
|
|
35229
35239
|
"@formily/shared": "^2.2.27",
|
|
35230
35240
|
"@formily/validator": "^2.2.27",
|
|
35231
|
-
"@nocobase/evaluators": "1.5.
|
|
35232
|
-
"@nocobase/sdk": "1.5.
|
|
35233
|
-
"@nocobase/utils": "1.5.
|
|
35241
|
+
"@nocobase/evaluators": "1.5.21",
|
|
35242
|
+
"@nocobase/sdk": "1.5.21",
|
|
35243
|
+
"@nocobase/utils": "1.5.21",
|
|
35234
35244
|
ahooks: "^3.7.2",
|
|
35235
35245
|
antd: "5.12.8",
|
|
35236
35246
|
"antd-style": "3.7.1",
|