bitz-react-admin-ui 2.1.9 → 2.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.
Files changed (63) hide show
  1. package/dist/components/BitzPagination/index.d.ts +4 -0
  2. package/dist/components/BitzPagination/index.mjs +22 -21
  3. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +26 -22
  4. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  5. package/dist/components/BitzTable/ActionCol/index.mjs +61 -61
  6. package/dist/components/BitzTable/SelectionBar/Button.d.ts +2 -3
  7. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -25
  8. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +19 -38
  9. package/dist/components/BitzTable/Store/index.d.ts +43 -22
  10. package/dist/components/BitzTable/Store/index.mjs +128 -125
  11. package/dist/components/BitzTable/Store/utils/index.d.ts +4 -5
  12. package/dist/components/BitzTable/Store/utils/index.mjs +31 -31
  13. package/dist/components/BitzTable/SubTable/index.mjs +90 -106
  14. package/dist/components/BitzTable/Table/SortTableContext.d.ts +12 -0
  15. package/dist/components/BitzTable/Table/SortTableContext.mjs +25 -0
  16. package/dist/components/BitzTable/Table/SortableRow.d.ts +7 -0
  17. package/dist/components/BitzTable/Table/SortableRow.mjs +54 -0
  18. package/dist/components/BitzTable/Table/index.d.ts +14 -1
  19. package/dist/components/BitzTable/Table/index.mjs +319 -273
  20. package/dist/components/BitzTable/Table/style.d.ts +2 -1
  21. package/dist/components/BitzTable/Table/style.mjs +17 -15
  22. package/dist/components/BitzTable/Table/utils.mjs +17 -16
  23. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +1 -0
  24. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +84 -97
  25. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +5 -4
  26. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +66 -60
  27. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +78 -72
  28. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +1 -3
  29. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +190 -189
  30. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.d.ts +8 -0
  31. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +94 -0
  32. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.d.ts +10 -0
  33. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +58 -0
  34. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +13 -7
  35. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +119 -80
  36. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +2 -2
  37. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +26 -29
  38. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +3 -1
  39. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +53 -77
  40. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +2 -2
  41. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +12 -0
  42. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +61 -0
  43. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +50 -59
  44. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +22 -23
  45. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +18 -0
  46. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +50 -0
  47. package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +2 -0
  48. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +58 -0
  49. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +21 -21
  50. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +20 -22
  51. package/dist/components/BitzTable/ToolBar/index.d.ts +12 -11
  52. package/dist/components/BitzTable/ToolBar/style.mjs +41 -46
  53. package/dist/components/BitzTable/index.d.ts +4 -2
  54. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.mjs +5 -0
  55. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs +15 -0
  56. package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1098 -753
  57. package/dist/style.css +1 -1
  58. package/dist/utils/findNode.d.ts +2 -2
  59. package/package.json +1 -1
  60. package/dist/components/BitzTable/Select/index.mjs +0 -11
  61. package/dist/components/BitzTable/Select/style.mjs +0 -66
  62. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +0 -78
  63. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +0 -47
@@ -1,88 +1,94 @@
1
- import { j as m } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { genColumnKey as C, columnSort as S } from "../../../Store/utils/index.mjs";
3
- import { DndContext as D } from "../../../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
4
- import { restrictToVerticalAxis as y, restrictToWindowEdges as E } from "../../../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
5
- import { SortableContext as I, verticalListSortingStrategy as K, arrayMove as A } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
6
- import { Flex as N } from "antd";
7
- import { useMemo as T, useState as F } from "react";
8
- import R from "./DndItem.mjs";
9
- import V from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
10
- const P = ({
11
- placement: u,
12
- dataList: n,
13
- keys: f,
14
- columnsMap: s,
15
- onLeftClick: a,
1
+ import { j as s } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { genColumnKey as w, columnSort as S } from "../../../Store/utils/index.mjs";
3
+ import { DndContext as I, closestCenter as E, DragOverlay as K } from "../../../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
4
+ import { restrictToVerticalAxis as k, restrictToWindowEdges as A } from "../../../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
5
+ import { SortableContext as N, verticalListSortingStrategy as O, arrayMove as T } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
6
+ import { Flex as F } from "antd";
7
+ import { useMemo as R, useState as V } from "react";
8
+ import u from "./DndItem.mjs";
9
+ import W from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
10
+ const U = ({
11
+ placement: g,
12
+ dataList: t,
13
+ keys: d,
14
+ columnsMap: c,
15
+ onLeftClick: h,
16
16
  onRightClick: p,
17
- onChange: h,
18
- onMoveEnd: d
17
+ onChange: j,
18
+ onMoveEnd: v
19
19
  }) => {
20
- const g = T(() => {
21
- const o = [];
22
- return n != null && n.length && (n == null || n.map(
23
- ({ key: r, dataIndex: e, ...i }) => {
24
- const c = C(
25
- r || e,
26
- [r || e].join("-")
27
- ), t = s[c || "null"];
28
- return o.push({
29
- key: c,
30
- ...V(i, ["className"]),
31
- selectable: !1,
32
- disabled: (t == null ? void 0 : t.disabled) === !0,
33
- show: t == null ? void 0 : t.show
34
- }), t;
35
- }
36
- )), o.sort(S(s));
37
- }, [s, n]), [x, l] = F(-1), v = (o) => {
38
- const { active: r } = o;
39
- r && l(r.data.current.sortable.index);
40
- }, b = (o) => {
41
- const { over: r } = o;
20
+ const x = R(() => {
21
+ const e = [];
22
+ return t != null && t.length && (t == null || t.map((r) => {
23
+ const { key: o, dataIndex: l, ...m } = r, a = w(r, [o || l].join("-")), n = c[a || "null"];
24
+ return e.push({
25
+ key: a,
26
+ ...W(m, ["className"]),
27
+ selectable: !1,
28
+ disabled: (n == null ? void 0 : n.disabled) === !0,
29
+ show: n == null ? void 0 : n.show
30
+ }), n;
31
+ })), e.sort(S(c));
32
+ }, [c, t]), [i, f] = V(-1), y = (e) => {
33
+ const { active: r } = e;
34
+ r && f(r.data.current.sortable.index);
35
+ }, D = (e) => {
36
+ const { over: r } = e;
42
37
  if (r) {
43
- const e = r.data.current.sortable.index;
44
- x !== e && (j(x, e), l(-1));
38
+ const o = r.data.current.sortable.index;
39
+ i !== o && (C(i, o), f(-1));
45
40
  }
46
- }, j = (o, r) => {
47
- const e = {}, i = A(f, o, r);
48
- i.forEach((c, t) => {
49
- e[c] = { ...s[c], order: t };
50
- }), d(e, i);
51
- }, w = (o, r) => {
52
- const e = { ...s };
53
- e[o] = { ...e[o], show: r }, h(
54
- e
41
+ }, C = (e, r) => {
42
+ const o = {}, l = T(d, e, r);
43
+ l.forEach((m, a) => {
44
+ o[m] = { ...c[m], order: a };
45
+ }), v(o, l);
46
+ }, b = (e, r) => {
47
+ const o = { ...c };
48
+ o[e] = { ...o[e], show: r }, j(
49
+ o
55
50
  /*, newCheckedKeys*/
56
51
  );
57
52
  };
58
- return /* @__PURE__ */ m.jsx(
59
- D,
53
+ return /* @__PURE__ */ s.jsx(
54
+ I,
60
55
  {
61
- modifiers: [y, E],
62
- onDragStart: v,
63
- onDragEnd: b,
64
- onDragCancel: () => l(-1),
65
- children: /* @__PURE__ */ m.jsx(
66
- I,
56
+ modifiers: [k, A],
57
+ collisionDetection: E,
58
+ onDragStart: y,
59
+ onDragEnd: D,
60
+ onDragCancel: () => f(-1),
61
+ children: /* @__PURE__ */ s.jsx(
62
+ N,
67
63
  {
68
- items: f,
69
- strategy: K,
70
- children: /* @__PURE__ */ m.jsx(N, { vertical: !0, className: "sortList", children: g.map((o) => /* @__PURE__ */ m.jsx(
71
- R,
72
- {
73
- item: o,
74
- placement: u,
75
- onLeftClick: a,
76
- onRightClick: p,
77
- onCheckboxChange: w
78
- },
79
- o.key
80
- )) })
64
+ items: d,
65
+ strategy: O,
66
+ children: /* @__PURE__ */ s.jsxs(F, { vertical: !0, className: "sortList", children: [
67
+ x.map((e) => /* @__PURE__ */ s.jsx(
68
+ u,
69
+ {
70
+ item: e,
71
+ placement: g,
72
+ onLeftClick: h,
73
+ onRightClick: p,
74
+ onCheckboxChange: b
75
+ },
76
+ e.key
77
+ )),
78
+ /* @__PURE__ */ s.jsx(K, { children: i !== -1 && /* @__PURE__ */ s.jsx(
79
+ u,
80
+ {
81
+ item: x[i],
82
+ isDragOverlay: !0
83
+ },
84
+ x[i].key
85
+ ) })
86
+ ] })
81
87
  }
82
88
  )
83
89
  }
84
90
  );
85
91
  };
86
92
  export {
87
- P as default
93
+ U as default
88
94
  };
@@ -1,14 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  interface ColumnsSortProps {
3
3
  display: boolean;
4
+ parentHeight?: any;
4
5
  }
5
6
  export interface ColumnsSortImperativeProps {
6
7
  getLeftSortColumns: () => any;
7
- getLeftSortKeys: () => any[];
8
8
  getCenterSortColumns: () => any;
9
- getCenterSortKeys: () => any[];
10
9
  getRightSortColumns: () => any;
11
- getRightSortKeys: () => any[];
12
10
  getCheckedKeys: () => any[];
13
11
  }
14
12
  declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ColumnsSortProps & import("react").RefAttributes<ColumnsSortImperativeProps>>>;