@nocobase/client 1.3.0-beta → 1.3.2-beta
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 +20 -23
- package/es/schema-component/antd/action/Action.Page.d.ts +7 -2
- package/lib/index.js +3 -3
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -4077,7 +4077,7 @@ function addAppVersion(e, t) {
|
|
|
4077
4077
|
addAppVersion((n = e.properties) == null ? void 0 : n[o], t);
|
|
4078
4078
|
}), e;
|
|
4079
4079
|
}
|
|
4080
|
-
const name = "@nocobase/client", version$1 = "1.3.
|
|
4080
|
+
const name = "@nocobase/client", version$1 = "1.3.2-beta", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
4081
4081
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
4082
4082
|
"@ant-design/cssinjs": "^1.11.1",
|
|
4083
4083
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -4098,9 +4098,9 @@ const name = "@nocobase/client", version$1 = "1.3.0-beta", license = "AGPL-3.0",
|
|
|
4098
4098
|
"@formily/reactive-react": "^2.2.27",
|
|
4099
4099
|
"@formily/shared": "^2.2.27",
|
|
4100
4100
|
"@formily/validator": "^2.2.27",
|
|
4101
|
-
"@nocobase/evaluators": "1.3.
|
|
4102
|
-
"@nocobase/sdk": "1.3.
|
|
4103
|
-
"@nocobase/utils": "1.3.
|
|
4101
|
+
"@nocobase/evaluators": "1.3.2-beta",
|
|
4102
|
+
"@nocobase/sdk": "1.3.2-beta",
|
|
4103
|
+
"@nocobase/utils": "1.3.2-beta",
|
|
4104
4104
|
ahooks: "^3.7.2",
|
|
4105
4105
|
antd: "^5.12.8",
|
|
4106
4106
|
"antd-style": "3.4.5",
|
|
@@ -4148,7 +4148,7 @@ const name = "@nocobase/client", version$1 = "1.3.0-beta", license = "AGPL-3.0",
|
|
|
4148
4148
|
"axios-mock-adapter": "^1.20.0",
|
|
4149
4149
|
dumi: "2.2.14",
|
|
4150
4150
|
"dumi-theme-nocobase": "^0.2.28"
|
|
4151
|
-
},
|
|
4151
|
+
}, clientPkg = {
|
|
4152
4152
|
name,
|
|
4153
4153
|
version: version$1,
|
|
4154
4154
|
license,
|
|
@@ -4157,8 +4157,7 @@ const name = "@nocobase/client", version$1 = "1.3.0-beta", license = "AGPL-3.0",
|
|
|
4157
4157
|
types,
|
|
4158
4158
|
dependencies,
|
|
4159
4159
|
peerDependencies,
|
|
4160
|
-
devDependencies
|
|
4161
|
-
gitHead
|
|
4160
|
+
devDependencies
|
|
4162
4161
|
};
|
|
4163
4162
|
function createDesignable(e) {
|
|
4164
4163
|
return new Designable(e);
|
|
@@ -19951,19 +19950,17 @@ const ActionBarContext = React.createContext({
|
|
|
19951
19950
|
[]
|
|
19952
19951
|
);
|
|
19953
19952
|
return { getContainerDOM: useCallback(() => e, [e]) };
|
|
19954
|
-
}
|
|
19955
|
-
|
|
19956
|
-
|
|
19957
|
-
|
|
19958
|
-
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
{ displayName: "ActionPage" }
|
|
19966
|
-
);
|
|
19953
|
+
};
|
|
19954
|
+
function ActionPage({ level: e }) {
|
|
19955
|
+
const t = useFieldSchema(), o = useActionContext(), { getContainerDOM: n } = usePopupOrSubpagesContainerDOM(), { styles: r } = useActionPageStyle(), i = useTabsContext(), a = useMemo(() => ({
|
|
19956
|
+
// 20 is the z-index value of the main page
|
|
19957
|
+
zIndex: 20 + e
|
|
19958
|
+
}), [e]);
|
|
19959
|
+
if (!o.visible)
|
|
19960
|
+
return null;
|
|
19961
|
+
const l = /* @__PURE__ */ jsx("div", { className: r.container, style: a, children: /* @__PURE__ */ jsx(TabsContextProvider, F(h({}, i), { tabBarExtraContent: /* @__PURE__ */ jsx(BackButtonUsedInSubPage, {}), children: /* @__PURE__ */ jsx(RecursionField, { schema: t, onlyRenderProperties: !0 }) })) }), c = n();
|
|
19962
|
+
return c ? createPortal(l, c) : l;
|
|
19963
|
+
}
|
|
19967
19964
|
ActionPage.Footer = observer$1(
|
|
19968
19965
|
() => null,
|
|
19969
19966
|
{ displayName: "ActionPage.Footer" }
|
|
@@ -26597,11 +26594,11 @@ function getTypedConstantOption(e, t, o) {
|
|
|
26597
26594
|
const n = Object.values(ConstantTypes).filter((a) => a.value !== "null"), r = (t ? n.filter(
|
|
26598
26595
|
(a) => Array.isArray(t) && t.filter((l) => Array.isArray(l) ? l[0] === a.value : l === a.value).length || t === !0
|
|
26599
26596
|
) : n).map(
|
|
26600
|
-
(a) => Object.keys(
|
|
26601
|
-
(l, c) =>
|
|
26597
|
+
(a) => Object.keys(o).reduce(
|
|
26598
|
+
(l, c) => c in a ? Object.assign(l, {
|
|
26602
26599
|
[o[c]]: a[c]
|
|
26603
26600
|
}) : l,
|
|
26604
|
-
a
|
|
26601
|
+
h({}, a)
|
|
26605
26602
|
)
|
|
26606
26603
|
);
|
|
26607
26604
|
return {
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
10
|
-
export declare
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export declare function ActionPage({ level }: {
|
|
11
|
+
level: any;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export declare namespace ActionPage {
|
|
14
|
+
var Footer: React.MemoExoticComponent<import("@formily/react").ReactFC<unknown>>;
|
|
15
|
+
}
|
|
11
16
|
export default ActionPage;
|