react-toolkits 0.7.4 → 0.8.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/CHANGELOG.md +12 -0
- package/lib/{index-H3-CmTVc.chunk.js → index-8JONOQAK.chunk.js} +2 -2
- package/lib/{index-X2-aY9Ow.chunk.js → index-BlEj3_VH.chunk.js} +3 -3
- package/lib/{index-tt8Ly0hD.chunk.js → index-FoGmJTbt.chunk.js} +1 -1
- package/lib/{index-Mf5yjhe9.chunk.js → index-IsFpMW3Y.chunk.js} +2 -2
- package/lib/{index-M6E4_PL_.chunk.js → index-eatlLTJL.chunk.js} +1 -1
- package/lib/{index-XnAMw8hH.chunk.js → index-gwEnohlC.chunk.js} +1 -1
- package/lib/{index-7em3F_R8.chunk.js → index-p7w-DDEg.chunk.js} +3 -3
- package/lib/{index-R2QzNKQK.chunk.js → index-vrUqXsvD.chunk.js} +1 -1
- package/lib/{index---7H2ENO.chunk.js → index-y0Pm6C9x.chunk.js} +34 -34
- package/lib/index.d.ts +6 -6
- package/lib/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as S, j as e, b as $ } from "./index
|
|
1
|
+
import { u as S, j as e, b as $ } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { Collapse as D, Checkbox as k, Row as G, Col as _, Skeleton as T, Typography as A, Divider as w, Card as K, Space as M, Select as E, Button as N, Empty as O } from "antd";
|
|
3
|
-
import { d as R, e as B } from "./index-
|
|
3
|
+
import { d as R, e as B } from "./index-vrUqXsvD.chunk.js";
|
|
4
4
|
import { useState as P, useCallback as F, useEffect as b } from "react";
|
|
5
5
|
const q = (x) => {
|
|
6
6
|
const { permissions: l, readonly: t, expand: d, value: r, onChange: a } = x, [m, p] = P([]), [g, u] = P({}), [c, f] = P(r ?? []), C = S(), h = F((s) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as t, j as i } from "./index
|
|
1
|
+
import { u as t, j as i } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as r } from "antd";
|
|
3
3
|
import { useParams as c, Link as p } from "react-router-dom";
|
|
4
|
-
import { P as u } from "./index-
|
|
5
|
-
import { u as x } from "./index-
|
|
4
|
+
import { P as u } from "./index-8JONOQAK.chunk.js";
|
|
5
|
+
import { u as x } from "./index-vrUqXsvD.chunk.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const k = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as st, g as at, u as it, j as c, Q as ut } from "./index
|
|
1
|
+
import { c as st, g as at, u as it, j as c, Q as ut } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { Card as ot, Form as H, Row as ct, Col as E, Input as Z, Select as K, Typography as lt } from "antd";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as M, _ as N, f as b, u as U, j as e, P as h, H as z, Q as H, h as S } from "./index
|
|
1
|
+
import { A as M, _ as N, f as b, u as U, j as e, P as h, H as z, Q as H, h as S } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { App as y, Row as R, Col as E, Tag as L, Space as G, Card as D, Form as c, Input as j, Select as f } from "antd";
|
|
3
3
|
import { p as I } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as P } from "react-router-dom";
|
|
5
|
-
import { f as Q, g as _, h as k, i as $ } from "./index-
|
|
5
|
+
import { f as Q, g as _, h as k, i as $ } from "./index-vrUqXsvD.chunk.js";
|
|
6
6
|
import * as O from "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var q = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "user-add", theme: "outlined" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as y, u as M, b as S, d as G, r as f, j as c, l as h } from "./index
|
|
1
|
+
import { a as y, u as M, b as S, d as G, r as f, j as c, l as h } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { Typography as i, Space as g, Alert as z, Form as s, Input as _, Button as o, Divider as C } from "antd";
|
|
3
3
|
import { useSearchParams as u, useLocation as m, Navigate as F } from "react-router-dom";
|
|
4
4
|
import "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as T, _, e as M, b as N, f as b, u as f, j as e, P as j, r as z, H as P, Q as $, h as A } from "./index
|
|
1
|
+
import { A as T, _, e as M, b as N, f as b, u as f, j as e, P as j, r as z, H as P, Q as $, h as A } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import { App as w, Space as H, Card as G, Form as m, Input as S } from "antd";
|
|
3
3
|
import { p as k } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as B } from "react-router-dom";
|
|
5
|
-
import { P as I } from "./index-
|
|
6
|
-
import { a as E, b as V, c as q } from "./index-
|
|
5
|
+
import { P as I } from "./index-8JONOQAK.chunk.js";
|
|
6
|
+
import { a as E, b as V, c as q } from "./index-vrUqXsvD.chunk.js";
|
|
7
7
|
import * as U from "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var D = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z" } }] }, name: "usergroup-add", theme: "outlined" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as O, w as W, i as h, k as x, s as z, m as w, n as V, U as R, o as U, b as G, r as n, e as K } from "./index
|
|
1
|
+
import { I as O, w as W, i as h, k as x, s as z, m as w, n as V, U as R, o as U, b as G, r as n, e as K } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import L, { useRef as o, useCallback as N, useState as $ } from "react";
|
|
3
3
|
const P = O ? (e) => {
|
|
4
4
|
e();
|
|
@@ -1062,28 +1062,28 @@ var Za = { exports: {} };
|
|
|
1062
1062
|
(function() {
|
|
1063
1063
|
var t = {}.hasOwnProperty;
|
|
1064
1064
|
function r() {
|
|
1065
|
-
for (var
|
|
1066
|
-
var
|
|
1067
|
-
|
|
1068
|
-
var i = typeof o;
|
|
1069
|
-
if (i === "string" || i === "number")
|
|
1070
|
-
n.push(o);
|
|
1071
|
-
else if (Array.isArray(o)) {
|
|
1072
|
-
if (o.length) {
|
|
1073
|
-
var c = r.apply(null, o);
|
|
1074
|
-
c && n.push(c);
|
|
1075
|
-
}
|
|
1076
|
-
} else if (i === "object") {
|
|
1077
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
1078
|
-
n.push(o.toString());
|
|
1079
|
-
continue;
|
|
1080
|
-
}
|
|
1081
|
-
for (var u in o)
|
|
1082
|
-
t.call(o, u) && o[u] && n.push(u);
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1065
|
+
for (var o = "", i = 0; i < arguments.length; i++) {
|
|
1066
|
+
var c = arguments[i];
|
|
1067
|
+
c && (o = a(o, n(c)));
|
|
1085
1068
|
}
|
|
1086
|
-
return
|
|
1069
|
+
return o;
|
|
1070
|
+
}
|
|
1071
|
+
function n(o) {
|
|
1072
|
+
if (typeof o == "string" || typeof o == "number")
|
|
1073
|
+
return o;
|
|
1074
|
+
if (typeof o != "object")
|
|
1075
|
+
return "";
|
|
1076
|
+
if (Array.isArray(o))
|
|
1077
|
+
return r.apply(null, o);
|
|
1078
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
|
|
1079
|
+
return o.toString();
|
|
1080
|
+
var i = "";
|
|
1081
|
+
for (var c in o)
|
|
1082
|
+
t.call(o, c) && o[c] && (i = a(i, c));
|
|
1083
|
+
return i;
|
|
1084
|
+
}
|
|
1085
|
+
function a(o, i) {
|
|
1086
|
+
return i ? o ? o + " " + i : o + i : o;
|
|
1087
1087
|
}
|
|
1088
1088
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
1089
1089
|
})();
|
|
@@ -5016,7 +5016,7 @@ function Lg(e) {
|
|
|
5016
5016
|
contextHolder: /* @__PURE__ */ E.jsx("div", { children: i })
|
|
5017
5017
|
};
|
|
5018
5018
|
}
|
|
5019
|
-
const mg = gt(() => import("./index-
|
|
5019
|
+
const mg = gt(() => import("./index-gwEnohlC.chunk.js")), vg = gt(() => import("./index-FoGmJTbt.chunk.js")), yg = gt(() => import("./index-eatlLTJL.chunk.js")), bg = gt(() => import("./index-BlEj3_VH.chunk.js")), Eg = gt(() => import("./index-p7w-DDEg.chunk.js")), Sg = gt(() => import("./index-IsFpMW3Y.chunk.js")), Ma = (e, t) => () => /* @__PURE__ */ E.jsx(us, { ...t, children: /* @__PURE__ */ E.jsx(lg, { children: /* @__PURE__ */ E.jsx(e, {}) }) }), wg = () => /* @__PURE__ */ E.jsxs(ka, { children: [
|
|
5020
5020
|
/* @__PURE__ */ E.jsx(ke, { index: !0, element: /* @__PURE__ */ E.jsx(qi, { to: "user" }) }),
|
|
5021
5021
|
/* @__PURE__ */ E.jsx(ke, { path: "user", element: /* @__PURE__ */ E.jsx(Sg, {}) }),
|
|
5022
5022
|
/* @__PURE__ */ E.jsx(ke, { path: "role", element: /* @__PURE__ */ E.jsx(Eg, {}) }),
|
|
@@ -5036,21 +5036,21 @@ function Mg(e, t) {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
export {
|
|
5038
5038
|
on as A,
|
|
5039
|
-
|
|
5039
|
+
bn as B,
|
|
5040
5040
|
us as C,
|
|
5041
5041
|
Ig as D,
|
|
5042
|
-
|
|
5042
|
+
fi as E,
|
|
5043
5043
|
Qo as F,
|
|
5044
5044
|
kA as G,
|
|
5045
5045
|
Dg as H,
|
|
5046
5046
|
xa as I,
|
|
5047
|
-
|
|
5048
|
-
|
|
5047
|
+
Pg as J,
|
|
5048
|
+
Mg as K,
|
|
5049
5049
|
lg as L,
|
|
5050
5050
|
JA as N,
|
|
5051
5051
|
Fg as P,
|
|
5052
5052
|
Bg as Q,
|
|
5053
|
-
|
|
5053
|
+
Ba as R,
|
|
5054
5054
|
ae as U,
|
|
5055
5055
|
lt as _,
|
|
5056
5056
|
Ct as a,
|
|
@@ -5068,15 +5068,15 @@ export {
|
|
|
5068
5068
|
$e as m,
|
|
5069
5069
|
$r as n,
|
|
5070
5070
|
Qt as o,
|
|
5071
|
-
|
|
5072
|
-
|
|
5071
|
+
jg as p,
|
|
5072
|
+
Ng as q,
|
|
5073
5073
|
jt as r,
|
|
5074
5074
|
dt as s,
|
|
5075
|
-
|
|
5075
|
+
gg as t,
|
|
5076
5076
|
Ge as u,
|
|
5077
|
-
|
|
5077
|
+
tg as v,
|
|
5078
5078
|
ti as w,
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5079
|
+
ng as x,
|
|
5080
|
+
jr as y,
|
|
5081
|
+
MA as z
|
|
5082
5082
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -262,22 +262,22 @@ declare interface QueryListPayload<Arg = any> {
|
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
export declare interface QueryListProps<Item = any, Values = any, Response = any, Arg extends Values = Values> extends Pick<TableProps<Item>, 'columns' | 'rowKey' | 'tableLayout' | 'expandable' | 'rowSelection' | 'bordered'> {
|
|
265
|
-
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
266
265
|
code?: string;
|
|
267
266
|
isGlobalNS?: boolean;
|
|
268
|
-
extra?: (form: FormInstance<Values>) => ReactNode;
|
|
269
|
-
onTableChange?: TableProps<Item>['onChange'];
|
|
270
267
|
action: string;
|
|
271
268
|
method?: string;
|
|
269
|
+
refreshInterval?: number;
|
|
270
|
+
onePage?: boolean;
|
|
271
|
+
defaultSize?: number;
|
|
272
272
|
headers?: RequestOptions['headers'] | ((payload: QueryListPayload<Arg>) => RequestOptions['headers']);
|
|
273
273
|
body?: RequestOptions['body'] | ((payload: QueryListPayload<Arg>) => RequestOptions['body']);
|
|
274
274
|
params?: RequestOptions['params'] | ((payload: QueryListPayload<Arg>) => RequestOptions['params']);
|
|
275
|
+
renderForm?: (form: FormInstance<Values>) => ReactNode;
|
|
276
|
+
extra?: (form: FormInstance<Values>) => ReactNode;
|
|
277
|
+
onTableChange?: TableProps<Item>['onChange'];
|
|
275
278
|
afterSuccess?: (action: QueryListAction, data: QueryListDataType<Item>) => void;
|
|
276
|
-
onePage?: boolean;
|
|
277
|
-
defaultSize?: number;
|
|
278
279
|
getTotal?: (response: Response) => number;
|
|
279
280
|
getDataSource?: (response: Response) => Item[];
|
|
280
|
-
refreshInterval?: number;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
export declare interface QueryListRef<Item = any, Values = any> {
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as i, D as u, F as n, G as m, H as p,
|
|
1
|
+
import { C as i, D as u, F as n, G as m, H as p, p as l, L as d, N as x, P as y, q as L, Q as P, t as S, R as g, v as G, x as T, y as c, z as h, r as q, h as F, B as Q, e as R, E as f, f as k, a as v, b as B, u as C, J as D, K as E } from "./index-y0Pm6C9x.chunk.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "react-dom";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-toolkits",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"packageManager": "^pnpm@8.7.5",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"vite": "^5.0.10",
|
|
71
71
|
"vite-plugin-dts": "^3.6.4",
|
|
72
72
|
"@flow97/eslint-config-mono": "0.0.4",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
73
|
+
"tsconfig": "0.0.5",
|
|
74
|
+
"tailwind-config": "0.1.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"antd": "^5.12.2",
|