bitz-react-admin-ui 1.6.5 → 1.6.7

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 (84) hide show
  1. package/README.md +2 -2
  2. package/dist/bitz-ui.mjs +126 -120
  3. package/dist/components/BitzFluentInput/index.mjs +20 -17
  4. package/dist/components/BitzFluentSelect/index.mjs +20 -18
  5. package/dist/components/BitzList/List.mjs +28 -0
  6. package/dist/components/BitzList/LoadMore.mjs +69 -0
  7. package/dist/components/BitzList/index.less.mjs +4 -0
  8. package/dist/components/BitzList/index.mjs +6 -0
  9. package/dist/components/BitzPullRefresh/PullRefresh.mjs +113 -0
  10. package/dist/components/BitzPullRefresh/index.mjs +6 -0
  11. package/dist/components/BitzPullRefresh/style/index.less.mjs +4 -0
  12. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +133 -94
  13. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +64 -0
  14. package/dist/components/BitzTable/ActionBar/Button.mjs +10 -0
  15. package/dist/components/BitzTable/ActionBar/index.mjs +6 -60
  16. package/dist/components/BitzTable/ActionBar/style.mjs +36 -32
  17. package/dist/components/BitzTable/ActionCol/index.mjs +29 -28
  18. package/dist/components/BitzTable/Table/index.mjs +302 -253
  19. package/dist/components/BitzTable/TableSkeleton/index.mjs +46 -42
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +179 -173
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/DndItem.mjs +28 -26
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +10 -9
  23. package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +1 -1
  24. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +28 -25
  25. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +3 -2
  26. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +23 -14
  27. package/dist/components/BitzTable/ToolBar/style.mjs +29 -20
  28. package/dist/hooks/use-event-listener.mjs +40 -0
  29. package/dist/hooks/use-lock-fn.mjs +21 -0
  30. package/dist/hooks/use-scroll-parent.mjs +34 -0
  31. package/dist/hooks/use-touch.mjs +33 -0
  32. package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +751 -1050
  33. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSetState/index.mjs +16 -0
  34. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
  35. package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
  36. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +5 -0
  37. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +11 -0
  38. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +9 -0
  39. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +5 -0
  40. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +16 -0
  41. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +8 -0
  42. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_root.mjs +5 -0
  43. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
  44. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +55 -0
  45. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObject.mjs +8 -0
  46. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +7 -0
  47. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +10 -0
  48. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/now.mjs +7 -0
  49. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/throttle.mjs +19 -0
  50. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/toNumber.mjs +23 -0
  51. package/dist/node_modules/.store/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +48 -37
  52. package/dist/node_modules/_clsx@2.1.0@clsx/dist/clsx.mjs +23 -0
  53. package/dist/style.css +1 -1
  54. package/dist/type/bitz-ui.d.ts +2 -0
  55. package/dist/type/components/BitzList/List.d.ts +4 -0
  56. package/dist/type/components/BitzList/LoadMore.d.ts +4 -0
  57. package/dist/type/components/BitzList/PropsType.d.ts +35 -0
  58. package/dist/type/components/BitzList/index.d.ts +5 -0
  59. package/dist/type/components/BitzPagination/index.d.ts +8 -2
  60. package/dist/type/components/BitzPullRefresh/PropsType.d.ts +43 -0
  61. package/dist/type/components/BitzPullRefresh/PullRefresh.d.ts +4 -0
  62. package/dist/type/components/BitzPullRefresh/index.d.ts +5 -0
  63. package/dist/type/components/BitzSelect/component/BitzSelectMobile.d.ts +1 -0
  64. package/dist/type/components/BitzTable/ActionBar/ActionBar.d.ts +37 -0
  65. package/dist/type/components/BitzTable/ActionBar/Button.d.ts +6 -0
  66. package/dist/type/components/BitzTable/ActionBar/index.d.ts +6 -33
  67. package/dist/type/components/BitzTable/ActionBar/style.d.ts +2 -2
  68. package/dist/type/components/BitzTable/Store/index.d.ts +2 -3
  69. package/dist/type/components/BitzTable/Table/index.d.ts +2 -2
  70. package/dist/type/components/BitzTable/TableSkeleton/index.d.ts +1 -1
  71. package/dist/type/components/BitzTable/ToolBar/ExportIcon/index.d.ts +2 -1
  72. package/dist/type/components/BitzTable/ToolBar/style.d.ts +1 -2
  73. package/dist/type/components/BitzTable/index.d.ts +6 -7
  74. package/dist/type/hooks/use-event-listener.d.ts +11 -0
  75. package/dist/type/hooks/use-lock-fn.d.ts +2 -0
  76. package/dist/type/hooks/use-scroll-parent.d.ts +9 -0
  77. package/dist/type/hooks/use-touch.d.ts +18 -0
  78. package/dist/type/pages/Login2/useRowSelection.d.ts +6 -4
  79. package/dist/type/pages/Test/index.d.ts +3 -0
  80. package/dist/type/utils/get-default-props.d.ts +2 -0
  81. package/dist/type/utils/scroll.d.ts +6 -0
  82. package/dist/utils/get-default-props.mjs +12 -0
  83. package/dist/utils/scroll.mjs +15 -0
  84. package/package.json +2 -1
@@ -1,10 +1,10 @@
1
1
  import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import b from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
3
- import { Dropdown as g, Space as B, Skeleton as w } from "antd";
3
+ import { Dropdown as N, Space as B, Skeleton as w } from "antd";
4
4
  import { useRef as y, useMemo as C } from "react";
5
5
  import h from "../../BitzButton/index.mjs";
6
6
  import k from "./style.mjs";
7
- const N = ({
7
+ const g = ({
8
8
  skeletonCls: n,
9
9
  ...s
10
10
  }) => /* @__PURE__ */ t.jsxs(h, { type: "text", ...s, children: [
@@ -30,75 +30,76 @@ function z({
30
30
  const {
31
31
  gap: p,
32
32
  primaryBtnClassName: i,
33
- dangerBtnClassName: r,
33
+ dangerBtnClassName: o,
34
34
  dropdownBtnClassName: l,
35
35
  maskClassName: m,
36
- skeletonBtnClassName: x,
37
- skeletonClassName: u
36
+ skeletonBtnClassName: u,
37
+ skeletonClassName: x
38
38
  } = k(), f = C(() => {
39
- const o = s.length >= 4 ? 2 : s.length, a = s.slice(0, o), c = [];
39
+ const r = s.length >= 4 ? 2 : s.length, a = s.slice(0, r), c = [];
40
40
  if (a != null && a.length && a.forEach((e, j) => {
41
41
  c.push(
42
42
  n ? /* @__PURE__ */ t.jsx(
43
- N,
43
+ g,
44
44
  {
45
- className: x,
46
- skeletonCls: u,
45
+ className: u,
46
+ skeletonCls: x,
47
47
  children: e == null ? void 0 : e.label
48
48
  },
49
49
  j
50
- ) : e.children ? /* @__PURE__ */ t.jsx(g, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
50
+ ) : e.children ? /* @__PURE__ */ t.jsx(N, { menu: { items: e.children }, children: /* @__PURE__ */ t.jsx(
51
51
  h,
52
52
  {
53
53
  type: "text",
54
- className: e.danger ? r : i,
54
+ className: e.danger ? o : i,
55
55
  children: e == null ? void 0 : e.label
56
56
  }
57
57
  ) }, j) : /* @__PURE__ */ t.jsx(
58
58
  h,
59
59
  {
60
60
  type: "text",
61
- className: e.danger ? r : i,
61
+ className: e.danger ? o : i,
62
62
  onClick: e == null ? void 0 : e.onClick,
63
63
  children: e == null ? void 0 : e.label
64
64
  },
65
65
  j
66
66
  )
67
67
  );
68
- }), o === 2 && s.length >= 4) {
68
+ }), r === 2 && s.length >= 4) {
69
69
  const e = s.slice(2, s.length);
70
70
  c.push(
71
71
  n ? /* @__PURE__ */ t.jsx(
72
- N,
72
+ g,
73
73
  {
74
- className: x,
75
- skeletonCls: u,
74
+ className: u,
75
+ skeletonCls: x,
76
76
  children: "更多"
77
77
  },
78
78
  5
79
- ) : /* @__PURE__ */ t.jsx(g, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: l, children: "更多" }) }, 5)
79
+ ) : /* @__PURE__ */ t.jsx(N, { menu: { items: e }, children: /* @__PURE__ */ t.jsx(h, { type: "text", className: l, children: "更多" }) }, 5)
80
80
  );
81
81
  }
82
82
  return c;
83
83
  }, [n, s]);
84
- return /* @__PURE__ */ t.jsxs("div", { onClick: (o) => o.stopPropagation(), children: [
85
- /* @__PURE__ */ t.jsx(B, { size: p, ref: d, children: f }),
84
+ return /* @__PURE__ */ t.jsxs("div", { onClick: (r) => r.stopPropagation(), children: [
85
+ /* @__PURE__ */ t.jsx(B, { size: p, ref: d, className: "actionGroup", children: f }),
86
86
  /* @__PURE__ */ t.jsx("div", { className: m })
87
87
  ] });
88
88
  }
89
- function D(n) {
90
- const { actionGroup: s, loading: d, ...p } = n, { gap: i } = k(), r = y(null), l = b(r), m = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
89
+ function T(n) {
90
+ const { actionGroup: s, loading: d, ...p } = n, { gap: i } = k(), o = y(null), l = b(o), m = C(() => l != null && l.width ? l.width + i * 2 + 1 : 181, [l, i]);
91
91
  return C(() => ({
92
- width: m,
93
- mobileHideRow: !0,
92
+ width: Math.floor(m),
93
+ mobileHide: !0,
94
94
  isOperationCol: !0,
95
95
  title: "操作",
96
96
  fixed: "right",
97
97
  key: "operationCol",
98
98
  dataIndex: "operationCol",
99
+ className: "operationCol",
99
100
  disable: !0,
100
- render: (u, f, o) => {
101
- const a = s(f, o).filter(
101
+ render: (x, f, r) => {
102
+ const a = s(f, r).filter(
102
103
  (c) => c.type != "detail"
103
104
  );
104
105
  return /* @__PURE__ */ t.jsx(
@@ -106,14 +107,14 @@ function D(n) {
106
107
  {
107
108
  loading: d,
108
109
  actionGroup: a,
109
- refInstance: r
110
+ refInstance: o
110
111
  }
111
112
  );
112
113
  },
113
114
  ...p
114
- }), [m, r, d, s]);
115
+ }), [m, o, d, s]);
115
116
  }
116
117
  export {
117
118
  z as BitzTableAction,
118
- D as default
119
+ T as default
119
120
  };