@nocobase/client 1.5.21 → 1.5.22
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 +31 -17
- package/lib/index.js +3 -3
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import * as ahooks from "ahooks";
|
|
|
58
58
|
import { useSetState, useRequest as useRequest$1, useBoolean, useUpdate, useMemoizedFn, useDeepCompareEffect, useLocalStorageState, useEventListener, useCreation, useDebounce } from "ahooks";
|
|
59
59
|
import * as antd from "antd";
|
|
60
60
|
import { notification, Result, Button, Space as Space$1, Radio as Radio$1, Input as Input$3, Tag, Spin, Select as Select$1, theme as theme$1, App, ConfigProvider, message, Popover, Menu as Menu$1, Modal, Typography, Tooltip, Skeleton, Table as Table$3, Drawer as Drawer$1, Slider, Tree as Tree$2, Alert, Flex, Switch, Divider as Divider$1, Empty, DatePicker as DatePicker$1, Card, Collapse, Badge, Dropdown, Cascader as Cascader$1, Image, InputNumber as InputNumber$1, Tabs as Tabs$1, TreeSelect as TreeSelect$2, Upload as Upload$1, Progress, AutoComplete as AutoComplete$1, Checkbox as Checkbox$1, ColorPicker as ColorPicker$1, List as List$1, Col, QRCode, Pagination as Pagination$1, TimePicker as TimePicker$1, Row, Popconfirm, Layout as Layout$1 } from "antd";
|
|
61
|
-
import _, { filter, get, capitalize, cloneDeep as cloneDeep$1, isArray, every, some, findIndex, set, isObject as isObject$1, isEmpty as isEmpty$1, isString, omit, isEqual, concat, last, clone, debounce, castArray, uniqBy, differenceBy, unionBy, isFunction as isFunction$1, isBoolean, toString, uniq as uniq$2, pick as pick$1 } from "lodash";
|
|
61
|
+
import _, { filter, get, capitalize, cloneDeep as cloneDeep$1, isArray, every, some, findIndex, set, isObject as isObject$1, isEmpty as isEmpty$1, isString, omit, isEqual, concat, last, clone, debounce as debounce$1, castArray, uniqBy, differenceBy, unionBy, isFunction as isFunction$1, isBoolean, toString, uniq as uniq$2, pick as pick$1 } from "lodash";
|
|
62
62
|
import template from "lodash/template";
|
|
63
63
|
import React, { createContext, useContext, useMemo, useRef, useEffect, isValidElement, useCallback, memo, useState, Suspense, useDeferredValue, createElement, Fragment as Fragment$1, startTransition, useLayoutEffect, forwardRef, useImperativeHandle, lazy as lazy$1, createRef } from "react";
|
|
64
64
|
import * as ReactRouterDom from "react-router-dom";
|
|
@@ -117,12 +117,13 @@ import * as formilyValidator from "@formily/validator";
|
|
|
117
117
|
import { registerValidateRules, setValidateLanguage } from "@formily/validator";
|
|
118
118
|
import * as antdStyle from "antd-style";
|
|
119
119
|
import { useAntdToken, createStyles, createGlobalStyle } from "antd-style";
|
|
120
|
-
import { createStyles as
|
|
120
|
+
import { createStyles as Cn } from "antd-style";
|
|
121
121
|
import axios from "axios";
|
|
122
122
|
import * as FileSaver from "file-saver";
|
|
123
123
|
import { saveAs } from "file-saver";
|
|
124
124
|
import * as ReactRouter from "react-router";
|
|
125
125
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
126
|
+
import debounce from "lodash/debounce";
|
|
126
127
|
import { loadableResource } from "react-imported-component";
|
|
127
128
|
import { PageHeader } from "@ant-design/pro-layout";
|
|
128
129
|
import LRUCache from "lru-cache";
|
|
@@ -16933,8 +16934,8 @@ const RenderButton = ({
|
|
|
16933
16934
|
RenderButton.displayName = "RenderButton";
|
|
16934
16935
|
const RenderButtonInner = observer$1(
|
|
16935
16936
|
(e) => {
|
|
16936
|
-
var
|
|
16937
|
-
const
|
|
16937
|
+
var R, k;
|
|
16938
|
+
const A = e, {
|
|
16938
16939
|
designable: t,
|
|
16939
16940
|
field: n,
|
|
16940
16941
|
aclCtx: o,
|
|
@@ -16953,7 +16954,7 @@ const RenderButtonInner = observer$1(
|
|
|
16953
16954
|
Designer: C,
|
|
16954
16955
|
designerProps: b,
|
|
16955
16956
|
title: S
|
|
16956
|
-
} =
|
|
16957
|
+
} = A, y = W(A, [
|
|
16957
16958
|
"designable",
|
|
16958
16959
|
"field",
|
|
16959
16960
|
"aclCtx",
|
|
@@ -16973,9 +16974,22 @@ const RenderButtonInner = observer$1(
|
|
|
16973
16974
|
"designerProps",
|
|
16974
16975
|
"title"
|
|
16975
16976
|
]);
|
|
16976
|
-
if (!t && ((
|
|
16977
|
+
if (!t && ((R = n == null ? void 0 : n.data) != null && R.hidden || !o))
|
|
16977
16978
|
return null;
|
|
16978
|
-
const v =
|
|
16979
|
+
const v = useCallback(
|
|
16980
|
+
debounce(
|
|
16981
|
+
(D, j = !0) => {
|
|
16982
|
+
d(D, j);
|
|
16983
|
+
},
|
|
16984
|
+
300,
|
|
16985
|
+
{ leading: !0, trailing: !1 }
|
|
16986
|
+
),
|
|
16987
|
+
[d]
|
|
16988
|
+
);
|
|
16989
|
+
useEffect(() => () => {
|
|
16990
|
+
v.cancel();
|
|
16991
|
+
}, []);
|
|
16992
|
+
const F = S || (n == null ? void 0 : n.title);
|
|
16979
16993
|
return /* @__PURE__ */ jsxs(
|
|
16980
16994
|
SortableItem,
|
|
16981
16995
|
P(x({
|
|
@@ -16983,16 +16997,16 @@ const RenderButtonInner = observer$1(
|
|
|
16983
16997
|
"aria-label": u()
|
|
16984
16998
|
}, y), {
|
|
16985
16999
|
onMouseEnter: c,
|
|
16986
|
-
loading: ((
|
|
17000
|
+
loading: ((k = n == null ? void 0 : n.data) == null ? void 0 : k.loading) || i,
|
|
16987
17001
|
icon: typeof r == "string" ? /* @__PURE__ */ jsx(Icon, { type: r }) : r,
|
|
16988
17002
|
disabled: a,
|
|
16989
17003
|
style: l,
|
|
16990
|
-
onClick:
|
|
17004
|
+
onClick: v,
|
|
16991
17005
|
component: p || Button,
|
|
16992
17006
|
className: cls(m, h, g, "nb-action"),
|
|
16993
17007
|
type: f === "danger" ? void 0 : f,
|
|
16994
17008
|
children: [
|
|
16995
|
-
|
|
17009
|
+
F && /* @__PURE__ */ jsx("span", { className: r ? "nb-action-title" : null, children: F }),
|
|
16996
17010
|
/* @__PURE__ */ jsx(C, x({}, b))
|
|
16997
17011
|
]
|
|
16998
17012
|
})
|
|
@@ -35216,7 +35230,7 @@ function addAppVersion(e, t) {
|
|
|
35216
35230
|
addAppVersion((o = e.properties) == null ? void 0 : o[n], t);
|
|
35217
35231
|
}), e;
|
|
35218
35232
|
}
|
|
35219
|
-
const name = "@nocobase/client", version = "1.5.
|
|
35233
|
+
const name = "@nocobase/client", version = "1.5.22", license = "AGPL-3.0", main = "lib/index.js", module = "es/index.mjs", types = "es/index.d.ts", dependencies = {
|
|
35220
35234
|
"@ahooksjs/use-url-state": "3.5.1",
|
|
35221
35235
|
"@ant-design/cssinjs": "^1.11.1",
|
|
35222
35236
|
"@ant-design/icons": "^5.1.4",
|
|
@@ -35238,9 +35252,9 @@ const name = "@nocobase/client", version = "1.5.21", license = "AGPL-3.0", main
|
|
|
35238
35252
|
"@formily/reactive-react": "^2.2.27",
|
|
35239
35253
|
"@formily/shared": "^2.2.27",
|
|
35240
35254
|
"@formily/validator": "^2.2.27",
|
|
35241
|
-
"@nocobase/evaluators": "1.5.
|
|
35242
|
-
"@nocobase/sdk": "1.5.
|
|
35243
|
-
"@nocobase/utils": "1.5.
|
|
35255
|
+
"@nocobase/evaluators": "1.5.22",
|
|
35256
|
+
"@nocobase/sdk": "1.5.22",
|
|
35257
|
+
"@nocobase/utils": "1.5.22",
|
|
35244
35258
|
ahooks: "^3.7.2",
|
|
35245
35259
|
antd: "5.12.8",
|
|
35246
35260
|
"antd-style": "3.7.1",
|
|
@@ -35910,7 +35924,7 @@ const useFieldComponentOptions = () => {
|
|
|
35910
35924
|
return l === HeightMode.FULL_HEIGHT ? window.innerHeight - a : c;
|
|
35911
35925
|
}, useTableSize = () => {
|
|
35912
35926
|
const [e, t] = useState(), n = useRef(null), o = useTableHeight(), r = useCallback(
|
|
35913
|
-
debounce(() => {
|
|
35927
|
+
debounce$1(() => {
|
|
35914
35928
|
var c;
|
|
35915
35929
|
if (!n.current)
|
|
35916
35930
|
return;
|
|
@@ -43079,7 +43093,7 @@ function IconField(e) {
|
|
|
43079
43093
|
width: "26em",
|
|
43080
43094
|
[`${c ? "height" : "maxHeight"}`]: "20em",
|
|
43081
43095
|
overflowY: "auto"
|
|
43082
|
-
}, f = debounce((C) => {
|
|
43096
|
+
}, f = debounce$1((C) => {
|
|
43083
43097
|
var S;
|
|
43084
43098
|
const b = (S = C == null ? void 0 : C.trim()) != null ? S : "";
|
|
43085
43099
|
m(
|
|
@@ -64214,7 +64228,7 @@ export {
|
|
|
64214
64228
|
createReadPrettyFormBlockSchema,
|
|
64215
64229
|
createRouterManager,
|
|
64216
64230
|
createSelectSchemaSettingsItem,
|
|
64217
|
-
|
|
64231
|
+
Cn as createStyles,
|
|
64218
64232
|
createSwitchSettingsItem,
|
|
64219
64233
|
createTableBlockSchema,
|
|
64220
64234
|
createTableBlockUISchema,
|