react-toolkits 0.8.50 → 0.8.52

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,9 +1,9 @@
1
- import { A as T, _ as U, c as P, d as _, u as y, a as b, j as e, P as j, r as z, H as $, Q as F, b as L } from "./index-j-_vPBvt.chunk.js";
1
+ import { A as T, _ as U, c as P, d as _, u as y, a as b, j as e, P as j, r as z, H as $, Q as F, b as L } from "./index-r3ceFc80.chunk.js";
2
2
  import { App as f, Space as G, Card as B, Form as g, Input as A } from "antd";
3
3
  import { p as k } from "./immer-BLf7GM7E.chunk.js";
4
4
  import { Link as E } from "react-router-dom";
5
- import { P as v } from "./index-otQCfOM4.chunk.js";
6
- import { d as q, e as D, f as N } from "./index-8eu00YF4.chunk.js";
5
+ import { P as v } from "./index-_N4Uyz7R.chunk.js";
6
+ import { d as q, e as D, f as N } from "./index-9YOxGlF2.chunk.js";
7
7
  import * as I from "react";
8
8
  import "react-dom";
9
9
  var Q = { 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,8 +1,8 @@
1
- import { a as t, j as i } from "./index-j-_vPBvt.chunk.js";
1
+ import { a as t, j as i } from "./index-r3ceFc80.chunk.js";
2
2
  import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as l } from "antd";
3
3
  import { useParams as c, Link as x } from "react-router-dom";
4
- import { P as j } from "./index-otQCfOM4.chunk.js";
5
- import { g as p } from "./index-8eu00YF4.chunk.js";
4
+ import { P as j } from "./index-_N4Uyz7R.chunk.js";
5
+ import { g as p } from "./index-9YOxGlF2.chunk.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  const k = () => {
package/lib/index.d.ts CHANGED
@@ -274,13 +274,12 @@ export declare enum QueryListAction {
274
274
  Init = "init"
275
275
  }
276
276
 
277
- declare interface QueryListDataType<Item, Response> {
277
+ declare interface QueryListDataType<Item> {
278
278
  dataSource: Item[];
279
279
  total: number;
280
- originalData: Response;
281
280
  }
282
281
 
283
- declare type QueryListMutator = <Item = any, Response = any>(action: string, data?: QueryListDataType<Item, Response> | Promise<QueryListDataType<Item, Response>> | MutatorCallback<QueryListDataType<Item, Response>>, opts?: MutatorOptions<QueryListDataType<Item, Response>>) => void;
282
+ declare type QueryListMutator = <Item = any>(action: string, data?: QueryListDataType<Item> | Promise<QueryListDataType<Item>> | MutatorCallback<QueryListDataType<Item>>, opts?: MutatorOptions<QueryListDataType<Item>>) => void;
284
283
 
285
284
  declare interface QueryListPayload<FormValues = any> {
286
285
  page?: number;
@@ -302,14 +301,15 @@ export declare interface QueryListProps<Item = any, Values = any, Response = any
302
301
  renderForm?: (form: FormInstance<Values>) => ReactNode;
303
302
  extra?: (form: FormInstance<Values>) => ReactNode;
304
303
  onTableChange?: TableProps<Item>['onChange'];
305
- afterSuccess?: (action: QueryListAction, data: QueryListDataType<Item, Response>) => void;
304
+ afterSuccess?: (action: QueryListAction, data: QueryListDataType<Item>) => void;
306
305
  getTotal?: (response: Response) => number;
307
306
  getDataSource?: (response: Response) => Item[];
308
307
  }
309
308
 
310
309
  export declare interface QueryListRef<Item = any, Values = any, Response = any> {
311
- data: QueryListDataType<Item, Response>;
310
+ data: QueryListDataType<Item>;
312
311
  form: FormInstance<Values>;
312
+ originalData: Response | undefined;
313
313
  }
314
314
 
315
315
  declare interface QueryListState {
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r, D as u, F as n, G as m, H as d, i as l, L as p, N as L, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as M, S as T, q as h, t as k, v as q, r as Q, b as R, x as v, y as B, z as C, c as N, B as f, u as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-j-_vPBvt.chunk.js";
1
+ import { C as r, D as u, F as n, G as m, H as d, i as l, L as p, N as L, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as M, S as T, q as h, t as k, v as q, r as Q, b as R, x as v, y as B, z as C, c as N, B as f, u as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-r3ceFc80.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.8.50",
3
+ "version": "0.8.52",
4
4
  "packageManager": "^pnpm@8.7.5",
5
5
  "sideEffects": [
6
6
  "**/*.css"