ez-react-antd 0.2.0 → 0.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"IconShow.d.ts","sourceRoot":"","sources":["../../../src/IconSelect/IconShow/IconShow.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM7C,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACxB;AAiBD,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA8BrC;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"IconShow.d.ts","sourceRoot":"","sources":["../../../src/IconSelect/IconShow/IconShow.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM7C,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAiBD,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CA8BrC;AAED,eAAe,QAAQ,CAAC"}
@@ -53,6 +53,12 @@ export interface RemoteSelectProp {
53
53
  mode?: 'multiple' | 'tags' | undefined;
54
54
  /** 是否禁用,默认 false */
55
55
  disabled?: boolean | undefined;
56
+ /**
57
+ * 自定义label构建函数
58
+ * @param data 服务器返回的每一条原始数据
59
+ * @returns 构建后的label字符串
60
+ */
61
+ labelBuilder?: (data: any) => string;
56
62
  }
57
63
  /**
58
64
  * 远程下拉选择组件状态接口
@@ -94,6 +100,13 @@ export interface RemoteSelectState {
94
100
  * metaDataInValue
95
101
  * onChange={(data) => console.log(data)}
96
102
  * />
103
+ *
104
+ * // 自定义label构建
105
+ * <RemoteSelect
106
+ * api="/api/permissions"
107
+ * labelBuilder={(data) => `${data.code} - ${data.name}`}
108
+ * onChange={(value) => console.log(value)}
109
+ * />
97
110
  */
98
111
  declare class RemoteSelect extends React.Component<RemoteSelectProp, RemoteSelectState> {
99
112
  static contextType: React.Context<EzAntdConfig>;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoteSelect.d.ts","sourceRoot":"","sources":["../../src/RemoteSelect/RemoteSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAiB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa;IACb,UAAU,CAAC,EAAE;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,6BAA6B;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uBAAuB;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2BAA2B;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,2BAA2B;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,YAAY;IACZ,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,kBAAkB;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,YAAY;IACZ,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any) => void | Promise<void>;
9
+ /** 是否显示(优先级最高,默认为 true) */
10
+ isShow?: boolean;
9
11
  /** 权限码(可选,不传则不进行权限控制) */
10
- permission?: string;
12
+ permission?: string | string[];
13
+ /** 角色码(可选,不传则不进行角色控制) */
14
+ role?: string | string[];
15
+ /** 是否需要验证登录状态,默认为 true */
16
+ requireAuth?: boolean;
11
17
  /** 确认配置(可选) */
12
18
  confirm?: boolean | {
13
19
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/TableActions/ActionButton/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAChC,WAAW;IACX,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,OAAO,CAAC,EAAE,OAAO,GAAG;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;KAC/B,CAAC;IACF,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAChD,oBAAoB;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED;;;;;;;;;;;;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;;;;;;;;;GAaG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAgF7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -5,8 +5,14 @@ export interface ActionConfig {
5
5
  type: ActionType;
6
6
  /** 点击事件 */
7
7
  onClick: (record: any) => void | Promise<void>;
8
+ /** 是否显示(优先级最高,默认为 true) */
9
+ isShow?: boolean;
8
10
  /** 权限码(可选) */
9
- permission?: string;
11
+ permission?: string | string[];
12
+ /** 角色码(可选) */
13
+ role?: string | string[];
14
+ /** 是否需要验证登录状态,默认为 true */
15
+ requireAuth?: boolean;
10
16
  /** 是否需要确认(可选) */
11
17
  confirm?: boolean | {
12
18
  title?: string;
@@ -21,8 +27,6 @@ export interface ActionConfig {
21
27
  icon?: React.ReactNode;
22
28
  /** 自定义样式类名 */
23
29
  className?: string;
24
- /** 是否显示(用于条件渲染) */
25
- visible?: boolean;
26
30
  /** 是否禁用 */
27
31
  disabled?: boolean;
28
32
  }
@@ -51,6 +55,7 @@ export interface TableActionsProps {
51
55
  * {
52
56
  * type: 'delete',
53
57
  * permission: 'user:delete',
58
+ * role: 'admin',
54
59
  * confirm: {
55
60
  * title: '确认删除?',
56
61
  * content: '删除后无法恢复'
@@ -61,6 +66,7 @@ export interface TableActionsProps {
61
66
  * type: 'custom',
62
67
  * icon: <CustomIcon />,
63
68
  * tooltip: '自定义操作',
69
+ * requireAuth: false,
64
70
  * onClick: () => handleCustom()
65
71
  * }
66
72
  * ]}
@@ -1 +1 @@
1
- {"version":3,"file":"TableActions.d.ts","sourceRoot":"","sources":["../../src/TableActions/TableActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,qBAAqB,CAAC;AAE7B,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,eAAe,GACf,SAAS,GACT,OAAO,GACP,SAAS,GACT,QAAQ,CAAC;AA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M,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyC7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as a from "react";
2
- import S, { useState as s1, useRef as xo, useEffect as P1, createContext as N4, useContext as D2, version as Do, useCallback as o2, useMemo as a1 } from "react";
2
+ import B, { useState as s1, useRef as xo, useEffect as P1, createContext as N4, useContext as D2, version as Do, useCallback as o2, useMemo as a1 } from "react";
3
3
  import { Spin as So, Drawer as Bo, Button as Y, Select as $o, Card as Lo, Divider as Io, Table as s2, Form as S2, Input as B2, Cascader as _o, Tree as ko, Tooltip as o1, Upload as d2, message as R1, Modal as G1, Dropdown as Po, Avatar as $2, Menu as qo, Layout as L2, Switch as jo, Result as V4 } from "antd";
4
4
  import { Link as Qo, useLocation as M4, useNavigate as I2, useParams as Uo, useSearchParams as Wo, Navigate as Go } from "react-router";
5
5
  import { connect as _2 } from "react-redux";
@@ -17,13 +17,13 @@ var v2;
17
17
  function Xo() {
18
18
  if (v2) return z1;
19
19
  v2 = 1;
20
- var c = S, e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, i = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ var c = B, e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, i = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
21
21
  function d(v, u, h) {
22
- var m, p = {}, O = null, R = null;
23
- h !== void 0 && (O = "" + h), u.key !== void 0 && (O = "" + u.key), u.ref !== void 0 && (R = u.ref);
22
+ var m, p = {}, O = null, M = null;
23
+ h !== void 0 && (O = "" + h), u.key !== void 0 && (O = "" + u.key), u.ref !== void 0 && (M = u.ref);
24
24
  for (m in u) l.call(u, m) && !o.hasOwnProperty(m) && (p[m] = u[m]);
25
25
  if (v && v.defaultProps) for (m in u = v.defaultProps, u) p[m] === void 0 && (p[m] = u[m]);
26
- return { $$typeof: e, type: v, key: O, ref: R, props: p, _owner: i.current };
26
+ return { $$typeof: e, type: v, key: O, ref: M, props: p, _owner: i.current };
27
27
  }
28
28
  return z1.Fragment = t, z1.jsx = d, z1.jsxs = d, z1;
29
29
  }
@@ -31,35 +31,35 @@ var w1 = {};
31
31
  var u2;
32
32
  function es() {
33
33
  return u2 || (u2 = 1, process.env.NODE_ENV !== "production" && (function() {
34
- var c = S, e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), d = /* @__PURE__ */ Symbol.for("react.provider"), v = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.offscreen"), B = Symbol.iterator, V = "@@iterator";
34
+ var c = B, e = /* @__PURE__ */ Symbol.for("react.element"), t = /* @__PURE__ */ Symbol.for("react.portal"), l = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), d = /* @__PURE__ */ Symbol.for("react.provider"), v = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.offscreen"), T = Symbol.iterator, V = "@@iterator";
35
35
  function z(s) {
36
36
  if (s === null || typeof s != "object")
37
37
  return null;
38
- var g = B && s[B] || s[V];
38
+ var g = T && s[T] || s[V];
39
39
  return typeof g == "function" ? g : null;
40
40
  }
41
41
  var L = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
42
- function D(s) {
42
+ function S(s) {
43
43
  {
44
44
  for (var g = arguments.length, w = new Array(g > 1 ? g - 1 : 0), N = 1; N < g; N++)
45
45
  w[N - 1] = arguments[N];
46
- M("error", s, w);
46
+ H("error", s, w);
47
47
  }
48
48
  }
49
- function M(s, g, w) {
49
+ function H(s, g, w) {
50
50
  {
51
- var N = L.ReactDebugCurrentFrame, y = N.getStackAddendum();
52
- y !== "" && (g += "%s", w = w.concat([y]));
53
- var x = w.map(function(b) {
51
+ var N = L.ReactDebugCurrentFrame, A = N.getStackAddendum();
52
+ A !== "" && (g += "%s", w = w.concat([A]));
53
+ var D = w.map(function(b) {
54
54
  return String(b);
55
55
  });
56
- x.unshift("Warning: " + g), Function.prototype.apply.call(console[s], console, x);
56
+ D.unshift("Warning: " + g), Function.prototype.apply.call(console[s], console, D);
57
57
  }
58
58
  }
59
- var T = !1, H = !1, q = !1, b1 = !1, X1 = !1, T1;
59
+ var y = !1, R = !1, q = !1, b1 = !1, X1 = !1, T1;
60
60
  T1 = /* @__PURE__ */ Symbol.for("react.module.reference");
61
61
  function e4(s) {
62
- return !!(typeof s == "string" || typeof s == "function" || s === l || s === o || X1 || s === i || s === h || s === m || b1 || s === R || T || H || q || typeof s == "object" && s !== null && (s.$$typeof === O || s.$$typeof === p || s.$$typeof === d || s.$$typeof === v || s.$$typeof === u || // This needs to include all possible module reference object
62
+ return !!(typeof s == "string" || typeof s == "function" || s === l || s === o || X1 || s === i || s === h || s === m || b1 || s === M || y || R || q || typeof s == "object" && s !== null && (s.$$typeof === O || s.$$typeof === p || s.$$typeof === d || s.$$typeof === v || s.$$typeof === u || // This needs to include all possible module reference object
63
63
  // types supported by any Flight configuration anywhere since
64
64
  // we don't know which Flight build this will end up being used
65
65
  // with.
@@ -69,8 +69,8 @@ function es() {
69
69
  var N = s.displayName;
70
70
  if (N)
71
71
  return N;
72
- var y = g.displayName || g.name || "";
73
- return y !== "" ? w + "(" + y + ")" : w;
72
+ var A = g.displayName || g.name || "";
73
+ return A !== "" ? w + "(" + A + ")" : w;
74
74
  }
75
75
  function y1(s) {
76
76
  return s.displayName || "Context";
@@ -78,7 +78,7 @@ function es() {
78
78
  function G(s) {
79
79
  if (s == null)
80
80
  return null;
81
- if (typeof s.tag == "number" && D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
81
+ if (typeof s.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof s == "function")
82
82
  return s.displayName || s.name || null;
83
83
  if (typeof s == "string")
84
84
  return s;
@@ -110,9 +110,9 @@ function es() {
110
110
  var N = s.displayName || null;
111
111
  return N !== null ? N : G(s.type) || "Memo";
112
112
  case O: {
113
- var y = s, x = y._payload, b = y._init;
113
+ var A = s, D = A._payload, b = A._init;
114
114
  try {
115
- return G(b(x));
115
+ return G(b(D));
116
116
  } catch {
117
117
  return null;
118
118
  }
@@ -179,7 +179,7 @@ function es() {
179
179
  })
180
180
  });
181
181
  }
182
- e1 < 0 && D("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
182
+ e1 < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
183
183
  }
184
184
  }
185
185
  var h1 = L.ReactCurrentDispatcher, m1;
@@ -188,8 +188,8 @@ function es() {
188
188
  if (m1 === void 0)
189
189
  try {
190
190
  throw Error();
191
- } catch (y) {
192
- var N = y.stack.trim().match(/\n( *(at )?)/);
191
+ } catch (A) {
192
+ var N = A.stack.trim().match(/\n( *(at )?)/);
193
193
  m1 = N && N[1] || "";
194
194
  }
195
195
  return `
@@ -211,10 +211,10 @@ function es() {
211
211
  }
212
212
  var N;
213
213
  p1 = !0;
214
- var y = Error.prepareStackTrace;
214
+ var A = Error.prepareStackTrace;
215
215
  Error.prepareStackTrace = void 0;
216
- var x;
217
- x = h1.current, h1.current = null, a4();
216
+ var D;
217
+ D = h1.current, h1.current = null, a4();
218
218
  try {
219
219
  if (g) {
220
220
  var b = function() {
@@ -267,7 +267,7 @@ function es() {
267
267
  }
268
268
  }
269
269
  } finally {
270
- p1 = !1, h1.current = x, c4(), Error.prepareStackTrace = y;
270
+ p1 = !1, h1.current = D, c4(), Error.prepareStackTrace = A;
271
271
  }
272
272
  var l1 = s ? s.displayName || s.name : "", t1 = l1 ? c1(l1) : "";
273
273
  return typeof s == "function" && r1.set(s, t1), t1;
@@ -299,9 +299,9 @@ function es() {
299
299
  case p:
300
300
  return Z(s.type, g, w);
301
301
  case O: {
302
- var N = s, y = N._payload, x = N._init;
302
+ var N = s, A = N._payload, D = N._init;
303
303
  try {
304
- return Z(x(y), g, w);
304
+ return Z(D(A), g, w);
305
305
  } catch {
306
306
  }
307
307
  }
@@ -316,11 +316,11 @@ function es() {
316
316
  } else
317
317
  K4.setExtraStackFrame(null);
318
318
  }
319
- function fo(s, g, w, N, y) {
319
+ function fo(s, g, w, N, A) {
320
320
  {
321
- var x = Function.call.bind(K);
321
+ var D = Function.call.bind(K);
322
322
  for (var b in s)
323
- if (x(s, b)) {
323
+ if (D(s, b)) {
324
324
  var C = void 0;
325
325
  try {
326
326
  if (typeof s[b] != "function") {
@@ -331,7 +331,7 @@ function es() {
331
331
  } catch ($) {
332
332
  C = $;
333
333
  }
334
- C && !(C instanceof Error) && (L1(y), D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", w, b, typeof C), L1(null)), C instanceof Error && !(C.message in g1) && (g1[C.message] = !0, L1(y), D("Failed %s type: %s", w, C.message), L1(null));
334
+ C && !(C instanceof Error) && (L1(A), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", N || "React class", w, b, typeof C), L1(null)), C instanceof Error && !(C.message in g1) && (g1[C.message] = !0, L1(A), S("Failed %s type: %s", w, C.message), L1(null));
335
335
  }
336
336
  }
337
337
  }
@@ -357,7 +357,7 @@ function es() {
357
357
  }
358
358
  function J4(s) {
359
359
  if (ho(s))
360
- return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(s)), Y4(s);
360
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(s)), Y4(s);
361
361
  }
362
362
  var Z4 = L.ReactCurrentOwner, mo = {
363
363
  key: !0,
@@ -387,7 +387,7 @@ function es() {
387
387
  function wo(s, g) {
388
388
  {
389
389
  var w = function() {
390
- X4 || (X4 = !0, D("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
390
+ X4 || (X4 = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
391
391
  };
392
392
  w.isReactWarning = !0, Object.defineProperty(s, "key", {
393
393
  get: w,
@@ -398,7 +398,7 @@ function es() {
398
398
  function Oo(s, g) {
399
399
  {
400
400
  var w = function() {
401
- e2 || (e2 = !0, D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
401
+ e2 || (e2 = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", g));
402
402
  };
403
403
  w.isReactWarning = !0, Object.defineProperty(s, "ref", {
404
404
  get: w,
@@ -406,7 +406,7 @@ function es() {
406
406
  });
407
407
  }
408
408
  }
409
- var Eo = function(s, g, w, N, y, x, b) {
409
+ var Eo = function(s, g, w, N, A, D, b) {
410
410
  var C = {
411
411
  // This tag allows us to uniquely identify this as a React Element
412
412
  $$typeof: e,
@@ -416,7 +416,7 @@ function es() {
416
416
  ref: w,
417
417
  props: b,
418
418
  // Record the component responsible for creating this element.
419
- _owner: x
419
+ _owner: D
420
420
  };
421
421
  return C._store = {}, Object.defineProperty(C._store, "validated", {
422
422
  configurable: !1,
@@ -432,25 +432,25 @@ function es() {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !1,
435
- value: y
435
+ value: A
436
436
  }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
437
437
  };
438
- function No(s, g, w, N, y) {
438
+ function No(s, g, w, N, A) {
439
439
  {
440
- var x, b = {}, C = null, P = null;
441
- w !== void 0 && (J4(w), C = "" + w), go(g) && (J4(g.key), C = "" + g.key), po(g) && (P = g.ref, zo(g, y));
442
- for (x in g)
443
- K.call(g, x) && !mo.hasOwnProperty(x) && (b[x] = g[x]);
440
+ var D, b = {}, C = null, P = null;
441
+ w !== void 0 && (J4(w), C = "" + w), go(g) && (J4(g.key), C = "" + g.key), po(g) && (P = g.ref, zo(g, A));
442
+ for (D in g)
443
+ K.call(g, D) && !mo.hasOwnProperty(D) && (b[D] = g[D]);
444
444
  if (s && s.defaultProps) {
445
445
  var $ = s.defaultProps;
446
- for (x in $)
447
- b[x] === void 0 && (b[x] = $[x]);
446
+ for (D in $)
447
+ b[D] === void 0 && (b[D] = $[D]);
448
448
  }
449
449
  if (C || P) {
450
450
  var I = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
451
451
  C && wo(b, I), P && Oo(b, I);
452
452
  }
453
- return Eo(s, C, P, y, N, Z4.current, b);
453
+ return Eo(s, C, P, A, N, Z4.current, b);
454
454
  }
455
455
  }
456
456
  var i4 = L.ReactCurrentOwner, t2 = L.ReactDebugCurrentFrame;
@@ -504,7 +504,7 @@ Check the top-level render call using <` + w + ">.");
504
504
  return;
505
505
  c2[w] = !0;
506
506
  var N = "";
507
- s && s._owner && s._owner !== i4.current && (N = " It was passed a child from " + G(s._owner.type) + "."), n1(s), D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, N), n1(null);
507
+ s && s._owner && s._owner !== i4.current && (N = " It was passed a child from " + G(s._owner.type) + "."), n1(s), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, N), n1(null);
508
508
  }
509
509
  }
510
510
  function n2(s, g) {
@@ -519,9 +519,9 @@ Check the top-level render call using <` + w + ">.");
519
519
  else if (s4(s))
520
520
  s._store && (s._store.validated = !0);
521
521
  else if (s) {
522
- var y = z(s);
523
- if (typeof y == "function" && y !== s.entries)
524
- for (var x = y.call(s), b; !(b = x.next()).done; )
522
+ var A = z(s);
523
+ if (typeof A == "function" && A !== s.entries)
524
+ for (var D = A.call(s), b; !(b = D.next()).done; )
525
525
  s4(b.value) && r2(b.value, g);
526
526
  }
527
527
  }
@@ -545,10 +545,10 @@ Check the top-level render call using <` + w + ">.");
545
545
  fo(w, s.props, "prop", N, s);
546
546
  } else if (g.PropTypes !== void 0 && !o4) {
547
547
  o4 = !0;
548
- var y = G(g);
549
- D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
548
+ var A = G(g);
549
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
550
550
  }
551
- typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
551
+ typeof g.getDefaultProps == "function" && !g.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
552
552
  }
553
553
  }
554
554
  function Ro(s) {
@@ -556,15 +556,15 @@ Check the top-level render call using <` + w + ">.");
556
556
  for (var g = Object.keys(s.props), w = 0; w < g.length; w++) {
557
557
  var N = g[w];
558
558
  if (N !== "children" && N !== "key") {
559
- n1(s), D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), n1(null);
559
+ n1(s), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", N), n1(null);
560
560
  break;
561
561
  }
562
562
  }
563
- s.ref !== null && (n1(s), D("Invalid attribute `ref` supplied to `React.Fragment`."), n1(null));
563
+ s.ref !== null && (n1(s), S("Invalid attribute `ref` supplied to `React.Fragment`."), n1(null));
564
564
  }
565
565
  }
566
566
  var l2 = {};
567
- function i2(s, g, w, N, y, x) {
567
+ function i2(s, g, w, N, A, D) {
568
568
  {
569
569
  var b = e4(s);
570
570
  if (!b) {
@@ -573,9 +573,9 @@ Check the top-level render call using <` + w + ">.");
573
573
  var P = Vo();
574
574
  P ? C += P : C += a2();
575
575
  var $;
576
- s === null ? $ = "null" : l4(s) ? $ = "array" : s !== void 0 && s.$$typeof === e ? ($ = "<" + (G(s.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof s, D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, C);
576
+ s === null ? $ = "null" : l4(s) ? $ = "array" : s !== void 0 && s.$$typeof === e ? ($ = "<" + (G(s.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof s, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, C);
577
577
  }
578
- var I = No(s, g, w, y, x);
578
+ var I = No(s, g, w, A, D);
579
579
  if (I == null)
580
580
  return I;
581
581
  if (b) {
@@ -587,7 +587,7 @@ Check the top-level render call using <` + w + ">.");
587
587
  n2(U[l1], s);
588
588
  Object.freeze && Object.freeze(U);
589
589
  } else
590
- D("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
590
+ S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
591
591
  else
592
592
  n2(U, s);
593
593
  }
@@ -597,7 +597,7 @@ Check the top-level render call using <` + w + ">.");
597
597
  }), d4 = j.length > 0 ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}";
598
598
  if (!l2[t1 + d4]) {
599
599
  var Ao = j.length > 0 ? "{" + j.join(": ..., ") + ": ...}" : "{}";
600
- D(`A props object containing a "key" prop is being spread into JSX:
600
+ S(`A props object containing a "key" prop is being spread into JSX:
601
601
  let props = %s;
602
602
  <%s {...props} />
603
603
  React keys must be passed directly to JSX without using spread:
@@ -651,16 +651,16 @@ const H4 = ({
651
651
  if (v.current)
652
652
  try {
653
653
  v.current(m, h);
654
- } catch (R) {
655
- console.error("Grid onChange error:", R);
654
+ } catch (M) {
655
+ console.error("Grid onChange error:", M);
656
656
  }
657
657
  let p;
658
658
  const O = () => {
659
659
  clearTimeout(p), p = setTimeout(() => {
660
- const R = f4(), B = v4(R);
661
- if (d(B), v.current)
660
+ const M = f4(), T = v4(M);
661
+ if (d(T), v.current)
662
662
  try {
663
- v.current(B, R);
663
+ v.current(T, M);
664
664
  } catch (V) {
665
665
  console.error("Grid onChange error:", V);
666
666
  }
@@ -712,7 +712,7 @@ function k2(c = 150) {
712
712
  }
713
713
  };
714
714
  }
715
- class zk extends S.Component {
715
+ class zk extends B.Component {
716
716
  static defaultProps = {
717
717
  loading: !1
718
718
  };
@@ -1317,8 +1317,8 @@ function U2(c) {
1317
1317
  var p = (e.styles || C4(h)).filter(function(O) {
1318
1318
  if (!["prepend", "prependQueue"].includes(O.getAttribute(M2)))
1319
1319
  return !1;
1320
- var R = Number(O.getAttribute(H2) || 0);
1321
- return o >= R;
1320
+ var M = Number(O.getAttribute(H2) || 0);
1321
+ return o >= M;
1322
1322
  });
1323
1323
  if (p.length)
1324
1324
  return h.insertBefore(u, p[p.length - 1].nextSibling), u;
@@ -1421,11 +1421,11 @@ function C2() {
1421
1421
  }, {});
1422
1422
  }
1423
1423
  function E4(c, e, t) {
1424
- return t ? /* @__PURE__ */ S.createElement(c.tag, W(W({
1424
+ return t ? /* @__PURE__ */ B.createElement(c.tag, W(W({
1425
1425
  key: e
1426
1426
  }, C2(c.attrs)), t), (c.children || []).map(function(l, i) {
1427
1427
  return E4(l, "".concat(e, "-").concat(c.tag, "-").concat(i));
1428
- })) : /* @__PURE__ */ S.createElement(c.tag, W({
1428
+ })) : /* @__PURE__ */ B.createElement(c.tag, W({
1429
1429
  key: e
1430
1430
  }, C2(c.attrs)), (c.children || []).map(function(l, i) {
1431
1431
  return E4(l, "".concat(e, "-").concat(c.tag, "-").concat(i));
@@ -1562,12 +1562,12 @@ function Z2() {
1562
1562
  var $s = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
1563
1563
  T4(g4.primary);
1564
1564
  var n = /* @__PURE__ */ a.forwardRef(function(c, e) {
1565
- var t = c.className, l = c.icon, i = c.spin, o = c.rotate, d = c.tabIndex, v = c.onClick, u = c.twoToneColor, h = Y1(c, $s), m = a.useContext(K1), p = m.prefixCls, O = p === void 0 ? "anticon" : p, R = m.rootClassName, B = p4(R, O, k(k({}, "".concat(O, "-").concat(l.name), !!l.name), "".concat(O, "-spin"), !!i || l.name === "loading"), t), V = d;
1565
+ var t = c.className, l = c.icon, i = c.spin, o = c.rotate, d = c.tabIndex, v = c.onClick, u = c.twoToneColor, h = Y1(c, $s), m = a.useContext(K1), p = m.prefixCls, O = p === void 0 ? "anticon" : p, M = m.rootClassName, T = p4(M, O, k(k({}, "".concat(O, "-").concat(l.name), !!l.name), "".concat(O, "-spin"), !!i || l.name === "loading"), t), V = d;
1566
1566
  V === void 0 && v && (V = -1);
1567
1567
  var z = o ? {
1568
1568
  msTransform: "rotate(".concat(o, "deg)"),
1569
1569
  transform: "rotate(".concat(o, "deg)")
1570
- } : void 0, L = Y2(u), D = P2(L, 2), M = D[0], T = D[1];
1570
+ } : void 0, L = Y2(u), S = P2(L, 2), H = S[0], y = S[1];
1571
1571
  return /* @__PURE__ */ a.createElement("span", r({
1572
1572
  role: "img",
1573
1573
  "aria-label": l.name
@@ -1575,11 +1575,11 @@ var n = /* @__PURE__ */ a.forwardRef(function(c, e) {
1575
1575
  ref: e,
1576
1576
  tabIndex: V,
1577
1577
  onClick: v,
1578
- className: B
1578
+ className: T
1579
1579
  }), /* @__PURE__ */ a.createElement(d1, {
1580
1580
  icon: l,
1581
- primaryColor: M,
1582
- secondaryColor: T,
1581
+ primaryColor: H,
1582
+ secondaryColor: y,
1583
1583
  style: z
1584
1584
  }));
1585
1585
  });
@@ -7703,13 +7703,13 @@ var M_ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
7703
7703
  }));
7704
7704
  }, ao = /* @__PURE__ */ a.forwardRef(H_);
7705
7705
  process.env.NODE_ENV !== "production" && (ao.displayName = "ZoomOutOutlined");
7706
- var k1 = { exports: {} }, A = {};
7706
+ var k1 = { exports: {} }, F = {};
7707
7707
  var b2;
7708
7708
  function R_() {
7709
- if (b2) return A;
7709
+ if (b2) return F;
7710
7710
  b2 = 1;
7711
- var c = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.server_context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.offscreen"), B;
7712
- B = /* @__PURE__ */ Symbol.for("react.module.reference");
7711
+ var c = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.server_context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.offscreen"), T;
7712
+ T = /* @__PURE__ */ Symbol.for("react.module.reference");
7713
7713
  function V(z) {
7714
7714
  if (typeof z == "object" && z !== null) {
7715
7715
  var L = z.$$typeof;
@@ -7740,52 +7740,52 @@ function R_() {
7740
7740
  }
7741
7741
  }
7742
7742
  }
7743
- return A.ContextConsumer = d, A.ContextProvider = o, A.Element = c, A.ForwardRef = u, A.Fragment = t, A.Lazy = O, A.Memo = p, A.Portal = e, A.Profiler = i, A.StrictMode = l, A.Suspense = h, A.SuspenseList = m, A.isAsyncMode = function() {
7743
+ return F.ContextConsumer = d, F.ContextProvider = o, F.Element = c, F.ForwardRef = u, F.Fragment = t, F.Lazy = O, F.Memo = p, F.Portal = e, F.Profiler = i, F.StrictMode = l, F.Suspense = h, F.SuspenseList = m, F.isAsyncMode = function() {
7744
7744
  return !1;
7745
- }, A.isConcurrentMode = function() {
7745
+ }, F.isConcurrentMode = function() {
7746
7746
  return !1;
7747
- }, A.isContextConsumer = function(z) {
7747
+ }, F.isContextConsumer = function(z) {
7748
7748
  return V(z) === d;
7749
- }, A.isContextProvider = function(z) {
7749
+ }, F.isContextProvider = function(z) {
7750
7750
  return V(z) === o;
7751
- }, A.isElement = function(z) {
7751
+ }, F.isElement = function(z) {
7752
7752
  return typeof z == "object" && z !== null && z.$$typeof === c;
7753
- }, A.isForwardRef = function(z) {
7753
+ }, F.isForwardRef = function(z) {
7754
7754
  return V(z) === u;
7755
- }, A.isFragment = function(z) {
7755
+ }, F.isFragment = function(z) {
7756
7756
  return V(z) === t;
7757
- }, A.isLazy = function(z) {
7757
+ }, F.isLazy = function(z) {
7758
7758
  return V(z) === O;
7759
- }, A.isMemo = function(z) {
7759
+ }, F.isMemo = function(z) {
7760
7760
  return V(z) === p;
7761
- }, A.isPortal = function(z) {
7761
+ }, F.isPortal = function(z) {
7762
7762
  return V(z) === e;
7763
- }, A.isProfiler = function(z) {
7763
+ }, F.isProfiler = function(z) {
7764
7764
  return V(z) === i;
7765
- }, A.isStrictMode = function(z) {
7765
+ }, F.isStrictMode = function(z) {
7766
7766
  return V(z) === l;
7767
- }, A.isSuspense = function(z) {
7767
+ }, F.isSuspense = function(z) {
7768
7768
  return V(z) === h;
7769
- }, A.isSuspenseList = function(z) {
7769
+ }, F.isSuspenseList = function(z) {
7770
7770
  return V(z) === m;
7771
- }, A.isValidElementType = function(z) {
7772
- return typeof z == "string" || typeof z == "function" || z === t || z === i || z === l || z === h || z === m || z === R || typeof z == "object" && z !== null && (z.$$typeof === O || z.$$typeof === p || z.$$typeof === o || z.$$typeof === d || z.$$typeof === u || z.$$typeof === B || z.getModuleId !== void 0);
7773
- }, A.typeOf = V, A;
7771
+ }, F.isValidElementType = function(z) {
7772
+ return typeof z == "string" || typeof z == "function" || z === t || z === i || z === l || z === h || z === m || z === M || typeof z == "object" && z !== null && (z.$$typeof === O || z.$$typeof === p || z.$$typeof === o || z.$$typeof === d || z.$$typeof === u || z.$$typeof === T || z.getModuleId !== void 0);
7773
+ }, F.typeOf = V, F;
7774
7774
  }
7775
- var F = {};
7775
+ var x = {};
7776
7776
  var T2;
7777
7777
  function C_() {
7778
7778
  return T2 || (T2 = 1, process.env.NODE_ENV !== "production" && (function() {
7779
- var c = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.server_context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.offscreen"), B = !1, V = !1, z = !1, L = !1, D = !1, M;
7780
- M = /* @__PURE__ */ Symbol.for("react.module.reference");
7781
- function T(E) {
7782
- return !!(typeof E == "string" || typeof E == "function" || E === t || E === i || D || E === l || E === h || E === m || L || E === R || B || V || z || typeof E == "object" && E !== null && (E.$$typeof === O || E.$$typeof === p || E.$$typeof === o || E.$$typeof === d || E.$$typeof === u || // This needs to include all possible module reference object
7779
+ var c = /* @__PURE__ */ Symbol.for("react.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), t = /* @__PURE__ */ Symbol.for("react.fragment"), l = /* @__PURE__ */ Symbol.for("react.strict_mode"), i = /* @__PURE__ */ Symbol.for("react.profiler"), o = /* @__PURE__ */ Symbol.for("react.provider"), d = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.server_context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), h = /* @__PURE__ */ Symbol.for("react.suspense"), m = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), O = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.offscreen"), T = !1, V = !1, z = !1, L = !1, S = !1, H;
7780
+ H = /* @__PURE__ */ Symbol.for("react.module.reference");
7781
+ function y(E) {
7782
+ return !!(typeof E == "string" || typeof E == "function" || E === t || E === i || S || E === l || E === h || E === m || L || E === M || T || V || z || typeof E == "object" && E !== null && (E.$$typeof === O || E.$$typeof === p || E.$$typeof === o || E.$$typeof === d || E.$$typeof === u || // This needs to include all possible module reference object
7783
7783
  // types supported by any Flight configuration anywhere since
7784
7784
  // we don't know which Flight build this will end up being used
7785
7785
  // with.
7786
- E.$$typeof === M || E.getModuleId !== void 0));
7786
+ E.$$typeof === H || E.getModuleId !== void 0));
7787
7787
  }
7788
- function H(E) {
7788
+ function R(E) {
7789
7789
  if (typeof E == "object" && E !== null) {
7790
7790
  var Z = E.$$typeof;
7791
7791
  switch (Z) {
@@ -7825,43 +7825,43 @@ function C_() {
7825
7825
  return u1 || (u1 = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
7826
7826
  }
7827
7827
  function S1(E) {
7828
- return H(E) === d;
7828
+ return R(E) === d;
7829
7829
  }
7830
7830
  function B1(E) {
7831
- return H(E) === o;
7831
+ return R(E) === o;
7832
7832
  }
7833
7833
  function a4(E) {
7834
7834
  return typeof E == "object" && E !== null && E.$$typeof === c;
7835
7835
  }
7836
7836
  function c4(E) {
7837
- return H(E) === u;
7837
+ return R(E) === u;
7838
7838
  }
7839
7839
  function h1(E) {
7840
- return H(E) === t;
7840
+ return R(E) === t;
7841
7841
  }
7842
7842
  function m1(E) {
7843
- return H(E) === O;
7843
+ return R(E) === O;
7844
7844
  }
7845
7845
  function c1(E) {
7846
- return H(E) === p;
7846
+ return R(E) === p;
7847
7847
  }
7848
7848
  function p1(E) {
7849
- return H(E) === e;
7849
+ return R(E) === e;
7850
7850
  }
7851
7851
  function r1(E) {
7852
- return H(E) === i;
7852
+ return R(E) === i;
7853
7853
  }
7854
7854
  function r4(E) {
7855
- return H(E) === l;
7855
+ return R(E) === l;
7856
7856
  }
7857
7857
  function $1(E) {
7858
- return H(E) === h;
7858
+ return R(E) === h;
7859
7859
  }
7860
7860
  function n4(E) {
7861
- return H(E) === m;
7861
+ return R(E) === m;
7862
7862
  }
7863
- F.ContextConsumer = q, F.ContextProvider = b1, F.Element = X1, F.ForwardRef = T1, F.Fragment = e4, F.Lazy = t4, F.Memo = y1, F.Portal = G, F.Profiler = J, F.StrictMode = e1, F.Suspense = A1, F.SuspenseList = F1, F.isAsyncMode = x1, F.isConcurrentMode = D1, F.isContextConsumer = S1, F.isContextProvider = B1, F.isElement = a4, F.isForwardRef = c4, F.isFragment = h1, F.isLazy = m1, F.isMemo = c1, F.isPortal = p1, F.isProfiler = r1, F.isStrictMode = r4, F.isSuspense = $1, F.isSuspenseList = n4, F.isValidElementType = T, F.typeOf = H;
7864
- })()), F;
7863
+ x.ContextConsumer = q, x.ContextProvider = b1, x.Element = X1, x.ForwardRef = T1, x.Fragment = e4, x.Lazy = t4, x.Memo = y1, x.Portal = G, x.Profiler = J, x.StrictMode = e1, x.Suspense = A1, x.SuspenseList = F1, x.isAsyncMode = x1, x.isConcurrentMode = D1, x.isContextConsumer = S1, x.isContextProvider = B1, x.isElement = a4, x.isForwardRef = c4, x.isFragment = h1, x.isLazy = m1, x.isMemo = c1, x.isPortal = p1, x.isProfiler = r1, x.isStrictMode = r4, x.isSuspense = $1, x.isSuspenseList = n4, x.isValidElementType = y, x.typeOf = R;
7864
+ })()), x;
7865
7865
  }
7866
7866
  var y2;
7867
7867
  function b_() {
@@ -7897,17 +7897,17 @@ var y_ = function(e, t) {
7897
7897
  }, x_ = ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"], U4 = /* @__PURE__ */ a.forwardRef(function(c, e) {
7898
7898
  var t = c.className, l = c.component, i = c.viewBox, o = c.spin, d = c.rotate, v = c.tabIndex, u = c.onClick, h = c.children, m = Y1(c, x_), p = a.useRef(), O = F_(p, e);
7899
7899
  O4(!!(l || h), "Should have `component` prop or `children`."), J2(p);
7900
- var R = a.useContext(K1), B = R.prefixCls, V = B === void 0 ? "anticon" : B, z = R.rootClassName, L = p4(z, V, k({}, "".concat(V, "-spin"), !!o && !!l), t), D = p4(k({}, "".concat(V, "-spin"), !!o)), M = d ? {
7900
+ var M = a.useContext(K1), T = M.prefixCls, V = T === void 0 ? "anticon" : T, z = M.rootClassName, L = p4(z, V, k({}, "".concat(V, "-spin"), !!o && !!l), t), S = p4(k({}, "".concat(V, "-spin"), !!o)), H = d ? {
7901
7901
  msTransform: "rotate(".concat(d, "deg)"),
7902
7902
  transform: "rotate(".concat(d, "deg)")
7903
- } : void 0, T = W(W({}, Fs), {}, {
7904
- className: D,
7905
- style: M,
7903
+ } : void 0, y = W(W({}, Fs), {}, {
7904
+ className: S,
7905
+ style: H,
7906
7906
  viewBox: i
7907
7907
  });
7908
- i || delete T.viewBox;
7909
- var H = function() {
7910
- return l ? /* @__PURE__ */ a.createElement(l, T, h) : h ? (O4(!!i || a.Children.count(h) === 1 && /* @__PURE__ */ a.isValidElement(h) && a.Children.only(h).type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), /* @__PURE__ */ a.createElement("svg", r({}, T, {
7908
+ i || delete y.viewBox;
7909
+ var R = function() {
7910
+ return l ? /* @__PURE__ */ a.createElement(l, y, h) : h ? (O4(!!i || a.Children.count(h) === 1 && /* @__PURE__ */ a.isValidElement(h) && a.Children.only(h).type === "use", "Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."), /* @__PURE__ */ a.createElement("svg", r({}, y, {
7911
7911
  viewBox: i
7912
7912
  }), h)) : null;
7913
7913
  }, q = v;
@@ -7918,7 +7918,7 @@ var y_ = function(e, t) {
7918
7918
  tabIndex: q,
7919
7919
  onClick: u,
7920
7920
  className: L
7921
- }), H());
7921
+ }), R());
7922
7922
  });
7923
7923
  U4.displayName = "AntdIcon";
7924
7924
  var D_ = ["type", "children"], co = /* @__PURE__ */ new Set();
@@ -8789,7 +8789,7 @@ const U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8789
8789
  getTwoToneColor: Z2,
8790
8790
  setTwoToneColor: T4
8791
8791
  }, Symbol.toStringTag, { value: "Module" }));
8792
- class L_ extends S.Component {
8792
+ class L_ extends B.Component {
8793
8793
  static defaultProps = {
8794
8794
  closeTxt: "关闭",
8795
8795
  placement: "right",
@@ -8888,7 +8888,7 @@ const ro = {
8888
8888
  hasPermission: (c) => (console.warn("EzAntd: hasPermission method not configured"), !1),
8889
8889
  hasRole: (c) => (console.warn("EzAntd: hasRole method not configured"), !1)
8890
8890
  }, f1 = N4(ro), no = () => D2(f1), wk = ({ children: c, value: e }) => /* @__PURE__ */ f.jsx(f1.Provider, { value: { ...ro, ...e }, children: c });
8891
- class Ok extends S.Component {
8891
+ class Ok extends B.Component {
8892
8892
  static contextType = f1;
8893
8893
  static defaultProps = {
8894
8894
  labelKey: "name",
@@ -8941,8 +8941,9 @@ class Ok extends S.Component {
8941
8941
  let u = [];
8942
8942
  for (let h = 0; h < v.length; h++) {
8943
8943
  let m = v[h];
8944
+ const p = this.props.labelBuilder ? this.props.labelBuilder(m) : m[this.props.labelKey];
8944
8945
  u.push({
8945
- label: m[this.props.labelKey],
8946
+ label: p,
8946
8947
  value: m[this.props.valueKey]
8947
8948
  }), this.keyMapMetaDatas[m[this.props.valueKey]] = m;
8948
8949
  }
@@ -8994,7 +8995,7 @@ class Ok extends S.Component {
8994
8995
  );
8995
8996
  }
8996
8997
  }
8997
- class lo extends S.Component {
8998
+ class lo extends B.Component {
8998
8999
  ref;
8999
9000
  resizeObserver = null;
9000
9001
  static defaultProps = {
@@ -9008,7 +9009,7 @@ class lo extends S.Component {
9008
9009
  showHeader: !0
9009
9010
  };
9010
9011
  constructor(e) {
9011
- super(e), this.ref = S.createRef(), this.loadingData = this.loadingData.bind(this), this.handleGridChange = this.handleGridChange.bind(this), this.handlePageChange = this.handlePageChange.bind(this), this.handleShowSizeChange = this.handleShowSizeChange.bind(this), this.getRowKey = this.getRowKey.bind(this), this.showTotal = this.showTotal.bind(this), this.state = {
9012
+ super(e), this.ref = B.createRef(), this.loadingData = this.loadingData.bind(this), this.handleGridChange = this.handleGridChange.bind(this), this.handlePageChange = this.handlePageChange.bind(this), this.handleShowSizeChange = this.handleShowSizeChange.bind(this), this.getRowKey = this.getRowKey.bind(this), this.showTotal = this.showTotal.bind(this), this.state = {
9012
9013
  clientWidth: 0,
9013
9014
  isMobile: !1
9014
9015
  };
@@ -9107,16 +9108,16 @@ class lo extends S.Component {
9107
9108
  notShowLoading: u,
9108
9109
  loading: h,
9109
9110
  showHeader: m
9110
- } = this.props, { clientWidth: p, isMobile: O } = this.state, R = {
9111
+ } = this.props, { clientWidth: p, isMobile: O } = this.state, M = {
9111
9112
  total: e.total || 0,
9112
9113
  current: e.currentPage || 1,
9113
9114
  pageSize: e.pageSize || 10
9114
- }, B = {
9115
+ }, T = {
9115
9116
  position: ["bottomRight"],
9116
- current: R.current,
9117
- pageSize: R.pageSize,
9117
+ current: M.current,
9118
+ pageSize: M.pageSize,
9118
9119
  pageSizeOptions: ["16", "25", "32", "64", "128"],
9119
- total: R.total,
9120
+ total: M.total,
9120
9121
  size: "small",
9121
9122
  showQuickJumper: !1,
9122
9123
  hideOnSinglePage: !0,
@@ -9137,10 +9138,10 @@ class lo extends S.Component {
9137
9138
  (e.data || []).map(
9138
9139
  (V, z) => this.renderMobileCard(V, z)
9139
9140
  ),
9140
- R.total > 0 && /* @__PURE__ */ f.jsxs("div", { className: "mobile-pagination", children: [
9141
+ M.total > 0 && /* @__PURE__ */ f.jsxs("div", { className: "mobile-pagination", children: [
9141
9142
  /* @__PURE__ */ f.jsxs("div", { className: "pagination-info", children: [
9142
9143
  "共 ",
9143
- R.total,
9144
+ M.total,
9144
9145
  " 条"
9145
9146
  ] }),
9146
9147
  /* @__PURE__ */ f.jsx(
@@ -9150,7 +9151,7 @@ class lo extends S.Component {
9150
9151
  columns: [],
9151
9152
  showHeader: !1,
9152
9153
  pagination: {
9153
- ...B,
9154
+ ...T,
9154
9155
  simple: !0,
9155
9156
  size: "default",
9156
9157
  showSizeChanger: !1
@@ -9172,7 +9173,7 @@ class lo extends S.Component {
9172
9173
  scroll: p === 0 ? void 0 : { x: p - 0.1 - (t || 0) },
9173
9174
  showHeader: m,
9174
9175
  rowKey: this.getRowKey,
9175
- pagination: B
9176
+ pagination: T
9176
9177
  }
9177
9178
  )
9178
9179
  )
@@ -9189,7 +9190,7 @@ function I_(c, e) {
9189
9190
  };
9190
9191
  }
9191
9192
  const __ = _2(I_), W4 = __(lo), k_ = N4({ isMobile: !1 });
9192
- class P_ extends S.Component {
9193
+ class P_ extends B.Component {
9193
9194
  constructor(e) {
9194
9195
  super(e), this.handleWidthChange = this.handleWidthChange.bind(this), this.state = { width: "250px", isMobile: !1 };
9195
9196
  }
@@ -9218,7 +9219,7 @@ class P_ extends S.Component {
9218
9219
  ] });
9219
9220
  }
9220
9221
  }
9221
- class io extends S.Component {
9222
+ class io extends B.Component {
9222
9223
  /** 表单实例引用,用于获取/设置表单值 */
9223
9224
  formRef;
9224
9225
  /** 静态属性:搜索项子组件 */
@@ -9240,7 +9241,7 @@ class io extends S.Component {
9240
9241
  isMobile: !1
9241
9242
  };
9242
9243
  constructor(e) {
9243
- super(e), this.handleSearch = this.handleSearch.bind(this), this.resetForm = this.resetForm.bind(this), this.handleGridChange = this.handleGridChange.bind(this), this.setFormValues = this.setFormValues.bind(this), this.formRef = S.createRef();
9244
+ super(e), this.handleSearch = this.handleSearch.bind(this), this.resetForm = this.resetForm.bind(this), this.handleGridChange = this.handleGridChange.bind(this), this.setFormValues = this.setFormValues.bind(this), this.formRef = B.createRef();
9244
9245
  }
9245
9246
  /**
9246
9247
  * 处理响应式布局变化
@@ -9269,7 +9270,9 @@ class io extends S.Component {
9269
9270
  payload: {
9270
9271
  currentPage: 1,
9271
9272
  ...e
9272
- }
9273
+ },
9274
+ queryParamName: this.props.paramName,
9275
+ dataStore: this.props.dataStore
9273
9276
  });
9274
9277
  }
9275
9278
  /**
@@ -9371,12 +9374,12 @@ function q_(c, e) {
9371
9374
  };
9372
9375
  }
9373
9376
  const j_ = _2(q_)(io);
9374
- class Ek extends S.Component {
9377
+ class Ek extends B.Component {
9375
9378
  render() {
9376
9379
  return /* @__PURE__ */ f.jsx(Qo, { style: { display: "inline" }, ...this.props });
9377
9380
  }
9378
9381
  }
9379
- class Nk extends S.Component {
9382
+ class Nk extends B.Component {
9380
9383
  static contextType = f1;
9381
9384
  /** 选中值映射原始数据 */
9382
9385
  valueMapMetaDate;
@@ -9542,7 +9545,7 @@ const Q_ = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID()
9542
9545
  var e = Math.random() * 16 | 0, t = c == "x" ? e : e & 3 | 8;
9543
9546
  return t.toString(16);
9544
9547
  }), W1 = Q_, { Search: U_ } = B2;
9545
- class Vk extends S.Component {
9548
+ class Vk extends B.Component {
9546
9549
  /** 默认属性配置 */
9547
9550
  static defaultProps = {
9548
9551
  needQueryParam: !1,
@@ -9769,7 +9772,7 @@ const W_ = () => {
9769
9772
  const c = /* @__PURE__ */ new Date(), e = (u, h = 2) => String(u).padStart(h, "0"), t = c.getFullYear(), l = e(c.getMonth() + 1), i = e(c.getDate()), o = e(c.getHours()), d = e(c.getMinutes()), v = e(c.getMilliseconds(), 3);
9770
9773
  return `${t}${l}${i}${o}${d}${v}`;
9771
9774
  };
9772
- class Mk extends S.Component {
9775
+ class Mk extends B.Component {
9773
9776
  static contextType = f1;
9774
9777
  /** 标记是否为组件内部触发的值变化 */
9775
9778
  slefChange;
@@ -9939,7 +9942,7 @@ class Mk extends S.Component {
9939
9942
  ) : /* @__PURE__ */ f.jsx(d2, { ...e, children: this.state.fileList.length < this.props.limit && /* @__PURE__ */ f.jsx("span", { children: "+ 选择图片" }) });
9940
9943
  }
9941
9944
  }
9942
- let Hk = class extends S.Component {
9945
+ let Hk = class extends B.Component {
9943
9946
  bgc;
9944
9947
  optionColor;
9945
9948
  keyMapRow;
@@ -10182,7 +10185,7 @@ let Hk = class extends S.Component {
10182
10185
  ] });
10183
10186
  }
10184
10187
  };
10185
- class Ck extends S.Component {
10188
+ class Ck extends B.Component {
10186
10189
  static defaultProps = {
10187
10190
  primaryKey: "id",
10188
10191
  limit: Number.MAX_VALUE,
@@ -10405,15 +10408,15 @@ function oo(c) {
10405
10408
  j1[i] && (t = /* @__PURE__ */ f.jsx("span", { className: "anticon", children: /* @__PURE__ */ f.jsx(f2, { icon: j1[i], style: e }) }));
10406
10409
  } else if (l.startsWith("antd$")) {
10407
10410
  let i = l.split("$")[1];
10408
- U1[i] && (t = S.createElement(U1[i], { style: e }));
10411
+ U1[i] && (t = B.createElement(U1[i], { style: e }));
10409
10412
  }
10410
10413
  return t;
10411
10414
  }
10412
10415
  const so = "icon_select", A2 = 35;
10413
- class K_ extends S.Component {
10416
+ class K_ extends B.Component {
10414
10417
  listRef;
10415
10418
  constructor(e) {
10416
- super(e), this.listRef = S.createRef();
10419
+ super(e), this.listRef = B.createRef();
10417
10420
  }
10418
10421
  /** 计算每行显示的数量 */
10419
10422
  getItemsPerRow(e) {
@@ -10436,8 +10439,8 @@ class K_ extends S.Component {
10436
10439
  rowHeight: A2,
10437
10440
  style: { overflowX: "hidden", height: e, width: t },
10438
10441
  rowComponent: ({ index: p, style: O }) => {
10439
- const R = p * v, B = d.slice(R, R + v);
10440
- return /* @__PURE__ */ f.jsx("div", { className: "icon_select_option_container", style: { ...O }, children: B.map((V) => {
10442
+ const M = p * v, T = d.slice(M, M + v);
10443
+ return /* @__PURE__ */ f.jsx("div", { className: "icon_select_option_container", style: { ...O }, children: T.map((V) => {
10441
10444
  let z = "option_item";
10442
10445
  return V === h && (z = "option_item option_item_selected"), /* @__PURE__ */ f.jsx(
10443
10446
  o1,
@@ -10468,12 +10471,12 @@ const Y_ = ({ data: c }) => {
10468
10471
  /* @__PURE__ */ f.jsx("span", { style: { marginLeft: "5px" }, children: e })
10469
10472
  ] });
10470
10473
  };
10471
- class Tk extends S.Component {
10474
+ class Tk extends B.Component {
10472
10475
  selectRef;
10473
10476
  selectOptions;
10474
10477
  optionMap;
10475
10478
  constructor(e) {
10476
- super(e), this.selectRef = S.createRef(), this.buildIconSelectOptions(), this.state = {
10479
+ super(e), this.selectRef = B.createRef(), this.buildIconSelectOptions(), this.state = {
10477
10480
  selectWidth: 200
10478
10481
  }, this.updateWidth = this.updateWidth.bind(this);
10479
10482
  }
@@ -10600,55 +10603,55 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10600
10603
  onClickMenu: t,
10601
10604
  collapsed: l = !1
10602
10605
  }) => {
10603
- const i = M4(), o = I2(), { hasPermission: d, hasRole: v } = no(), [u, h] = s1(void 0), m = o2((M) => !(M.show === !1 || M.permission !== void 0 && d && !d(M.permission) || M.role !== void 0 && v && !v(M.role)), [d, v]), p = o2((M) => {
10604
- const T = [];
10605
- for (const H of M)
10606
- if (m(H))
10607
- if (!H.childrens || H.childrens.length < 1)
10608
- T.push({
10609
- key: H.id,
10610
- icon: H.icon,
10611
- label: H.title
10606
+ const i = M4(), o = I2(), { hasPermission: d, hasRole: v } = no(), [u, h] = s1(void 0), m = o2((H) => !(H.show === !1 || H.permission !== void 0 && d && !d(H.permission) || H.role !== void 0 && v && !v(H.role)), [d, v]), p = o2((H) => {
10607
+ const y = [];
10608
+ for (const R of H)
10609
+ if (m(R))
10610
+ if (!R.childrens || R.childrens.length < 1)
10611
+ y.push({
10612
+ key: R.id,
10613
+ icon: R.icon,
10614
+ label: R.title
10612
10615
  });
10613
10616
  else {
10614
- const q = p(H.childrens);
10615
- q && q.length > 0 && T.push({
10616
- key: H.id,
10617
- icon: H.icon,
10618
- label: H.title,
10617
+ const q = p(R.childrens);
10618
+ q && q.length > 0 && y.push({
10619
+ key: R.id,
10620
+ icon: R.icon,
10621
+ label: R.title,
10619
10622
  children: q
10620
10623
  });
10621
10624
  }
10622
- return T;
10625
+ return y;
10623
10626
  }, [m]), O = a1(() => {
10624
- const M = /* @__PURE__ */ new Map(), T = [...c];
10625
- for (; T.length > 0; ) {
10626
- const H = T.shift();
10627
- M.set(H.id, H), H.childrens && T.push(...H.childrens);
10627
+ const H = /* @__PURE__ */ new Map(), y = [...c];
10628
+ for (; y.length > 0; ) {
10629
+ const R = y.shift();
10630
+ H.set(R.id, R), R.childrens && y.push(...R.childrens);
10628
10631
  }
10629
- return M;
10630
- }, [c]), R = a1(() => {
10631
- let M = i.pathname;
10632
- M.endsWith("/") && (M = M.substring(0, M.length - 1));
10633
- const T = Array.from(O.values());
10634
- let H = M;
10635
- for (; H !== "/" && H !== ""; ) {
10636
- for (const q of T)
10637
- if (H.indexOf(q.path) !== -1)
10632
+ return H;
10633
+ }, [c]), M = a1(() => {
10634
+ let H = i.pathname;
10635
+ H.endsWith("/") && (H = H.substring(0, H.length - 1));
10636
+ const y = Array.from(O.values());
10637
+ let R = H;
10638
+ for (; R !== "/" && R !== ""; ) {
10639
+ for (const q of y)
10640
+ if (R.indexOf(q.path) !== -1)
10638
10641
  return q;
10639
- H = H.substring(0, H.lastIndexOf("/"));
10642
+ R = R.substring(0, R.lastIndexOf("/"));
10640
10643
  }
10641
- }, [i.pathname, O]), B = a1(() => {
10642
- const M = [];
10643
- let T = R;
10644
- for (; T && T.parentId && T.parentId !== "$"; )
10645
- M.push(T.parentId), T = O.get(T.parentId);
10646
- return M;
10647
- }, [R, O]), V = a1(() => R ? [R.id] : [], [R]), z = a1(() => p(c), [c, p]), L = (M) => {
10648
- const T = O.get(M.key);
10649
- T && (t && t(T), o(T.path));
10650
- }, D = (M) => {
10651
- h(M);
10644
+ }, [i.pathname, O]), T = a1(() => {
10645
+ const H = [];
10646
+ let y = M;
10647
+ for (; y && y.parentId && y.parentId !== "$"; )
10648
+ H.push(y.parentId), y = O.get(y.parentId);
10649
+ return H;
10650
+ }, [M, O]), V = a1(() => M ? [M.id] : [], [M]), z = a1(() => p(c), [c, p]), L = (H) => {
10651
+ const y = O.get(H.key);
10652
+ y && (t && t(y), o(y.path));
10653
+ }, S = (H) => {
10654
+ h(H);
10652
10655
  };
10653
10656
  return /* @__PURE__ */ f.jsx(
10654
10657
  qo,
@@ -10657,9 +10660,9 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10657
10660
  className: e === "dark" ? "admin_dark_sider_menu" : "",
10658
10661
  mode: "inline",
10659
10662
  onClick: L,
10660
- onOpenChange: D,
10663
+ onOpenChange: S,
10661
10664
  selectedKeys: V,
10662
- openKeys: l ? void 0 : u ?? B,
10665
+ openKeys: l ? void 0 : u ?? T,
10663
10666
  items: z
10664
10667
  }
10665
10668
  );
@@ -10685,14 +10688,14 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10685
10688
  const { isMobile: u } = k2(), [h, m] = s1(u), [p, O] = s1(V1.DARK);
10686
10689
  if (window.parent !== window)
10687
10690
  return /* @__PURE__ */ f.jsx(f.Fragment, { children: e });
10688
- const R = () => {
10691
+ const M = () => {
10689
10692
  m(!h);
10690
- }, B = () => {
10693
+ }, T = () => {
10691
10694
  u && m(!0);
10692
10695
  }, V = () => u && !h ? "admin_layout_container admin_layout_container_drawer_open" : "admin_layout_container", z = () => u ? "admin_layout_container_header_normal admin_layout_container_header_broken" : h ? "admin_layout_container_header_normal admin_layout_container_header_close" : "admin_layout_container_header_normal admin_layout_container_header_open", L = () => {
10693
- const M = "admin_layout_sider_normal";
10694
- return !h && u ? `${M} admin_layout_sider_open_broken` : h && u ? "admin_layout_sider_collapsed_broken" : h ? M : `${M} admin_layout_sider_open`;
10695
- }, D = u ? F2.COLLAPSED_WIDTH_MOBILE : F2.COLLAPSED_WIDTH_PC;
10696
+ const H = "admin_layout_sider_normal";
10697
+ return !h && u ? `${H} admin_layout_sider_open_broken` : h && u ? "admin_layout_sider_collapsed_broken" : h ? H : `${H} admin_layout_sider_open`;
10698
+ }, S = u ? F2.COLLAPSED_WIDTH_MOBILE : F2.COLLAPSED_WIDTH_PC;
10696
10699
  return /* @__PURE__ */ f.jsx("div", { className: `admin_layout_box${u ? " admin_layout_mobile" : ""}`, children: /* @__PURE__ */ f.jsxs(L2, { children: [
10697
10700
  /* @__PURE__ */ f.jsxs(
10698
10701
  ak,
@@ -10703,9 +10706,9 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10703
10706
  className: L(),
10704
10707
  theme: p,
10705
10708
  breakpoint: "md",
10706
- collapsedWidth: D,
10707
- onBreakpoint: (M) => {
10708
- m(!!M);
10709
+ collapsedWidth: S,
10710
+ onBreakpoint: (H) => {
10711
+ m(!!H);
10709
10712
  },
10710
10713
  children: [
10711
10714
  /* @__PURE__ */ f.jsxs("div", { className: "admin_layout_logo", children: [
@@ -10717,7 +10720,7 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10717
10720
  {
10718
10721
  theme: p,
10719
10722
  menus: c,
10720
- onClickMenu: B,
10723
+ onClickMenu: T,
10721
10724
  collapsed: h
10722
10725
  }
10723
10726
  ) }) }),
@@ -10732,8 +10735,8 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10732
10735
  checked: p === V1.DARK,
10733
10736
  unCheckedChildren: "light",
10734
10737
  checkedChildren: "dark",
10735
- onChange: (M) => {
10736
- O(M ? V1.DARK : V1.LIGHT);
10738
+ onChange: (H) => {
10739
+ O(H ? V1.DARK : V1.LIGHT);
10737
10740
  }
10738
10741
  }
10739
10742
  )
@@ -10743,9 +10746,9 @@ const J_ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
10743
10746
  ),
10744
10747
  /* @__PURE__ */ f.jsxs("div", { className: V(), children: [
10745
10748
  /* @__PURE__ */ f.jsxs(tk, { className: z(), style: { padding: 0 }, children: [
10746
- /* @__PURE__ */ f.jsx("div", { className: "admin_layout_sider_switch_button", children: S.createElement(h ? $4 : B4, {
10749
+ /* @__PURE__ */ f.jsx("div", { className: "admin_layout_sider_switch_button", children: B.createElement(h ? $4 : B4, {
10747
10750
  className: "trigger",
10748
- onClick: R
10751
+ onClick: M
10749
10752
  }) }),
10750
10753
  /* @__PURE__ */ f.jsx(
10751
10754
  Z_,
@@ -10853,7 +10856,7 @@ const rk = (c) => {
10853
10856
  }
10854
10857
  ) : null;
10855
10858
  };
10856
- class Sk extends S.Component {
10859
+ class Sk extends B.Component {
10857
10860
  /** 主键到行数据的映射表,用于快速查找完整行数据 */
10858
10861
  keyMapRow;
10859
10862
  /** 默认属性配置 */
@@ -11011,7 +11014,7 @@ class Sk extends S.Component {
11011
11014
  );
11012
11015
  }
11013
11016
  }
11014
- class Bk extends S.Component {
11017
+ class Bk extends B.Component {
11015
11018
  constructor(e) {
11016
11019
  super(e), this.state = {
11017
11020
  showModal: !1
@@ -11060,48 +11063,61 @@ const ik = ({
11060
11063
  icon: c,
11061
11064
  tooltip: e,
11062
11065
  onClick: t,
11063
- permission: l,
11064
- confirm: i,
11065
- className: o = "",
11066
- disabled: d = !1,
11067
- placement: v = "top",
11068
- record: u
11066
+ isShow: l = !0,
11067
+ permission: i,
11068
+ role: o,
11069
+ requireAuth: d = !0,
11070
+ confirm: v,
11071
+ className: u = "",
11072
+ disabled: h = !1,
11073
+ placement: m = "top",
11074
+ record: p
11069
11075
  }) => {
11070
- const h = async () => {
11071
- if (!d)
11072
- if (i) {
11073
- const p = typeof i == "boolean" ? {} : i;
11076
+ if (!l)
11077
+ return null;
11078
+ const O = async () => {
11079
+ if (!h)
11080
+ if (v) {
11081
+ const T = typeof v == "boolean" ? {} : v;
11074
11082
  G1.confirm({
11075
- title: p.title || "确认操作?",
11083
+ title: T.title || "确认操作?",
11076
11084
  icon: /* @__PURE__ */ f.jsx(F4, {}),
11077
- content: p.content || "请确认是否继续",
11078
- okText: p.okText || "确认",
11079
- okType: p.okType || "primary",
11080
- cancelText: p.cancelText || "取消",
11085
+ content: T.content || "请确认是否继续",
11086
+ okText: T.okText || "确认",
11087
+ okType: T.okType || "primary",
11088
+ cancelText: T.cancelText || "取消",
11081
11089
  async onOk() {
11082
11090
  try {
11083
- await t(u);
11084
- } catch (O) {
11085
- console.error("操作失败:", O), R1.error("操作失败");
11091
+ await t(p);
11092
+ } catch (V) {
11093
+ console.error("操作失败:", V), R1.error("操作失败");
11086
11094
  }
11087
11095
  }
11088
11096
  });
11089
11097
  } else
11090
11098
  try {
11091
- await t(u);
11092
- } catch (p) {
11093
- console.error("操作失败:", p), R1.error("操作失败");
11099
+ await t(p);
11100
+ } catch (T) {
11101
+ console.error("操作失败:", T), R1.error("操作失败");
11094
11102
  }
11095
- }, m = /* @__PURE__ */ f.jsx(o1, { placement: v, title: e, children: /* @__PURE__ */ f.jsx(
11103
+ }, M = /* @__PURE__ */ f.jsx(o1, { placement: m, title: e, children: /* @__PURE__ */ f.jsx(
11096
11104
  "span",
11097
11105
  {
11098
- className: `action-button ${o} ${d ? "action-button-disabled" : ""}`,
11099
- onClick: h,
11100
- style: { cursor: d ? "not-allowed" : "pointer" },
11106
+ className: `action-button ${u} ${h ? "action-button-disabled" : ""}`,
11107
+ onClick: O,
11108
+ style: { cursor: h ? "not-allowed" : "pointer" },
11101
11109
  children: c
11102
11110
  }
11103
11111
  ) });
11104
- return l ? /* @__PURE__ */ f.jsx(ik, { permission: l, children: m }) : m;
11112
+ return i !== void 0 || o !== void 0 || d !== !0 ? /* @__PURE__ */ f.jsx(
11113
+ ik,
11114
+ {
11115
+ permission: i,
11116
+ role: o,
11117
+ requireAuth: d,
11118
+ children: M
11119
+ }
11120
+ ) : M;
11105
11121
  }, sk = {
11106
11122
  view: {
11107
11123
  icon: /* @__PURE__ */ f.jsx(x4, {}),
@@ -11149,7 +11165,7 @@ const ik = ({
11149
11165
  className: ""
11150
11166
  }
11151
11167
  }, $k = ({ actions: c, record: e, className: t }) => /* @__PURE__ */ f.jsx("div", { className: `table-actions${t ? " " + t : ""}`, children: c.map((l, i) => {
11152
- if (l.visible === !1)
11168
+ if (l.isShow === !1)
11153
11169
  return null;
11154
11170
  const o = sk[l.type], d = l.icon || o?.icon, v = l.tooltip || o?.tooltip || "", u = l.className || o?.className || "";
11155
11171
  return d ? /* @__PURE__ */ f.jsx(
@@ -11158,7 +11174,10 @@ const ik = ({
11158
11174
  icon: d,
11159
11175
  tooltip: v,
11160
11176
  onClick: l.onClick,
11177
+ isShow: l.isShow,
11161
11178
  permission: l.permission,
11179
+ role: l.role,
11180
+ requireAuth: l.requireAuth,
11162
11181
  confirm: l.confirm,
11163
11182
  className: u,
11164
11183
  disabled: l.disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ez-react-antd",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "基于 Ant Design 的公共组件库",
5
5
  "main": "./dist/ez-react-antd.umd.js",
6
6
  "module": "./dist/ez-react-antd.es.js",