@nocobase/client 1.6.0 → 1.6.1
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
|
@@ -9151,7 +9151,7 @@ function addAppVersion(e, t) {
|
|
|
9151
9151
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
9152
9152
|
}), e;
|
|
9153
9153
|
}
|
|
9154
|
-
const name = "@nocobase/client", version = "1.6.
|
|
9154
|
+
const name = "@nocobase/client", version = "1.6.1", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
9155
9155
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
9156
9156
|
"@ant-design/cssinjs": "^1.11.1",
|
|
9157
9157
|
"@ant-design/icons": "^5.6.1",
|
|
@@ -9173,9 +9173,9 @@ const name = "@nocobase/client", version = "1.6.0", license = "AGPL-3.0", main =
|
|
|
9173
9173
|
"@formily/reactive-react": "^2.2.27",
|
|
9174
9174
|
"@formily/shared": "^2.2.27",
|
|
9175
9175
|
"@formily/validator": "^2.2.27",
|
|
9176
|
-
"@nocobase/evaluators": "1.6.
|
|
9177
|
-
"@nocobase/sdk": "1.6.
|
|
9178
|
-
"@nocobase/utils": "1.6.
|
|
9176
|
+
"@nocobase/evaluators": "1.6.1",
|
|
9177
|
+
"@nocobase/sdk": "1.6.1",
|
|
9178
|
+
"@nocobase/utils": "1.6.1",
|
|
9179
9179
|
ahooks: "^3.7.2",
|
|
9180
9180
|
antd: "5.12.8",
|
|
9181
9181
|
"antd-style": "3.7.1",
|
|
@@ -11308,6 +11308,8 @@ function getPopupContextFromActionOrAssociationFieldSchema(e) {
|
|
|
11308
11308
|
}
|
|
11309
11309
|
const popupsContextStorage = {}, getStoredPopupContext = (e) => popupsContextStorage[e], storePopupContext = (e, t) => {
|
|
11310
11310
|
popupsContextStorage[e] = t;
|
|
11311
|
+
}, deletePopupContext = (e) => {
|
|
11312
|
+
delete popupsContextStorage[e];
|
|
11311
11313
|
}, blockServicesStorage = {}, getBlockService = (e) => blockServicesStorage[e], storeBlockService = (e, t) => {
|
|
11312
11314
|
blockServicesStorage[e] = t;
|
|
11313
11315
|
}, getPopupParamsFromPath = _.memoize((e) => e.split("/popups/").filter(Boolean).map((o) => {
|
|
@@ -11429,8 +11431,15 @@ ${JSON.stringify(L, null, 2)}`
|
|
|
11429
11431
|
), N = useCallback(() => {
|
|
11430
11432
|
if (!f())
|
|
11431
11433
|
return I == null ? void 0 : I(!1);
|
|
11432
|
-
t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 }), removePopupLayerState(g);
|
|
11433
|
-
}, [
|
|
11434
|
+
t(withSearchParams(removeLastPopupPath(o.pathname)), { replace: !0 }), removePopupLayerState(g), m != null && m.popupuid && deletePopupContext(m.popupuid);
|
|
11435
|
+
}, [
|
|
11436
|
+
f,
|
|
11437
|
+
I,
|
|
11438
|
+
t,
|
|
11439
|
+
o == null ? void 0 : o.pathname,
|
|
11440
|
+
g,
|
|
11441
|
+
m == null ? void 0 : m.popupuid
|
|
11442
|
+
]), j = useCallback(
|
|
11434
11443
|
(R) => {
|
|
11435
11444
|
const M = v(), $ = w({
|
|
11436
11445
|
tabKey: R,
|
|
@@ -13712,7 +13721,7 @@ function getOperators() {
|
|
|
13712
13721
|
return Array.isArray(r) ? !r.some((a) => (a || "").includes(i)) : (r = r || "", !r.includes(i));
|
|
13713
13722
|
},
|
|
13714
13723
|
$anyOf: function(r, i) {
|
|
13715
|
-
return r.length === 0 ? !1 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.some((l) => i.includes(l))) : r.some((a) => i.includes(a));
|
|
13724
|
+
return r == null || r.length === 0 ? !1 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.some((l) => i.includes(l))) : r.some((a) => i.includes(a));
|
|
13716
13725
|
},
|
|
13717
13726
|
$noneOf: function(r, i) {
|
|
13718
13727
|
return !r || (r == null ? void 0 : r.length) === 0 ? !0 : Array.isArray(r) && Array.isArray(i) && r.some((a) => Array.isArray(a)) ? r.some((a) => a.every((l) => !i.some((c) => l.includes(c)))) : i.some((a) => !r.includes(a));
|
|
@@ -50001,7 +50010,7 @@ const useColumnsDeepMemoized = (e) => {
|
|
|
50001
50010
|
render: (N, j) => {
|
|
50002
50011
|
var R;
|
|
50003
50012
|
const O = (R = n.value) == null ? void 0 : R.indexOf(j), B = n.address.concat(j.__index || O);
|
|
50004
|
-
return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: j, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: j.__index || O, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord(j), record: j, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: S, basePath: B, children: /* @__PURE__ */ jsx("span", { role: "button", className: h, children: /* @__PURE__ */ jsx(RecursionField, { basePath: B, schema: S, onlyRenderProperties: !0 }) }) }) }) }) });
|
|
50013
|
+
return /* @__PURE__ */ jsx(SubFormProvider, { value: { value: j, collection: f, fieldSchema: r.parent }, children: /* @__PURE__ */ jsx(RecordIndexProvider, { index: j.__index || O, children: /* @__PURE__ */ jsx(RecordProvider, { isNew: isNewRecord(j), record: j, parent: u, children: /* @__PURE__ */ jsx(ColumnFieldProvider, { schema: S, basePath: B, children: /* @__PURE__ */ jsx("span", { role: "button", className: h, children: /* @__PURE__ */ jsx(RecursionField, { basePath: B, schema: S, onlyRenderProperties: !0 }) }, O) }) }) }) });
|
|
50005
50014
|
},
|
|
50006
50015
|
onCell: (N, j) => ({
|
|
50007
50016
|
record: N,
|
|
@@ -49,6 +49,7 @@ export declare const getStoredPopupContext: (popupUid: string) => PopupContextSt
|
|
|
49
49
|
* @param params
|
|
50
50
|
*/
|
|
51
51
|
export declare const storePopupContext: (popupUid: string, params: PopupContextStorage) => void;
|
|
52
|
+
export declare const deletePopupContext: (popupUid: string) => void;
|
|
52
53
|
export declare const getBlockService: (popupUid: string) => {
|
|
53
54
|
service: any;
|
|
54
55
|
};
|