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
@@ -0,0 +1,16 @@
1
+ import { __read as f, __assign as n } from "../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.mjs";
2
+ import { useState as m, useCallback as S } from "react";
3
+ import { isFunction as _ } from "../utils/index.mjs";
4
+ var c = function(o) {
5
+ var r = f(m(o), 2), s = r[0], u = r[1], i = S(function(t) {
6
+ u(function(e) {
7
+ var a = _(t) ? t(e) : t;
8
+ return a ? n(n({}, e), a) : e;
9
+ });
10
+ }, []);
11
+ return [s, i];
12
+ };
13
+ const v = c;
14
+ export {
15
+ v as default
16
+ };
@@ -0,0 +1,28 @@
1
+ import { __spreadArray as m, __read as l } from "../../../../../tslib@2.6.2/node_modules/tslib/tslib.es6.mjs";
2
+ import c from "../../../../../lodash@4.17.21/node_modules/lodash/throttle.mjs";
3
+ import { useMemo as i } from "react";
4
+ import s from "../useLatest/index.mjs";
5
+ import p from "../useUnmount/index.mjs";
6
+ import { isFunction as v } from "../utils/index.mjs";
7
+ import d from "../utils/isDev.mjs";
8
+ function _(o, r) {
9
+ var a;
10
+ d && (v(o) || console.error("useThrottleFn expected parameter is a function, got ".concat(typeof o)));
11
+ var n = s(o), f = (a = r == null ? void 0 : r.wait) !== null && a !== void 0 ? a : 1e3, t = i(function() {
12
+ return c(function() {
13
+ for (var u = [], e = 0; e < arguments.length; e++)
14
+ u[e] = arguments[e];
15
+ return n.current.apply(n, m([], l(u), !1));
16
+ }, f, r);
17
+ }, []);
18
+ return p(function() {
19
+ t.cancel();
20
+ }), {
21
+ run: t,
22
+ cancel: t.cancel,
23
+ flush: t.flush
24
+ };
25
+ }
26
+ export {
27
+ _ as default
28
+ };
@@ -0,0 +1,6 @@
1
+ import { useEffect as e } from "react";
2
+ import { createUpdateEffect as t } from "../createUpdateEffect/index.mjs";
3
+ const r = t(e);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,5 @@
1
+ import { _ as o } from "./_root.mjs";
2
+ var r = o, a = r.Symbol, t = a;
3
+ export {
4
+ t as _
5
+ };
@@ -0,0 +1,11 @@
1
+ import { _ as e } from "./_Symbol.mjs";
2
+ import { _ as o } from "./_getRawTag.mjs";
3
+ import { _ as a } from "./_objectToString.mjs";
4
+ var n = e, g = o, i = a, T = "[object Null]", b = "[object Undefined]", r = n ? n.toStringTag : void 0;
5
+ function f(t) {
6
+ return t == null ? t === void 0 ? b : T : r && r in Object(t) ? g(t) : i(t);
7
+ }
8
+ var s = f;
9
+ export {
10
+ s as _
11
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as e } from "./_trimmedEndIndex.mjs";
2
+ var a = e, m = /^\s+/;
3
+ function d(r) {
4
+ return r && r.slice(0, a(r) + 1).replace(m, "");
5
+ }
6
+ var t = d;
7
+ export {
8
+ t as _
9
+ };
@@ -0,0 +1,5 @@
1
+ import { commonjsGlobal as o } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
+ var e = typeof o == "object" && o && o.Object === Object && o, a = e;
3
+ export {
4
+ a as _
5
+ };
@@ -0,0 +1,16 @@
1
+ import { _ as c } from "./_Symbol.mjs";
2
+ var a = c, e = Object.prototype, s = e.hasOwnProperty, y = e.toString, t = a ? a.toStringTag : void 0;
3
+ function f(r) {
4
+ var o = s.call(r, t), n = r[t];
5
+ try {
6
+ r[t] = void 0;
7
+ var i = !0;
8
+ } catch {
9
+ }
10
+ var g = y.call(r);
11
+ return i && (o ? r[t] = n : delete r[t]), g;
12
+ }
13
+ var T = f;
14
+ export {
15
+ T as _
16
+ };
@@ -0,0 +1,8 @@
1
+ var o = Object.prototype, r = o.toString;
2
+ function e(t) {
3
+ return r.call(t);
4
+ }
5
+ var n = e;
6
+ export {
7
+ n as _
8
+ };
@@ -0,0 +1,5 @@
1
+ import { _ as e } from "./_freeGlobal.mjs";
2
+ var r = e, o = typeof self == "object" && self && self.Object === Object && self, t = r || o || Function("return this")(), l = t;
3
+ export {
4
+ l as _
5
+ };
@@ -0,0 +1,10 @@
1
+ var t = /\s/;
2
+ function n(r) {
3
+ for (var e = r.length; e-- && t.test(r.charAt(e)); )
4
+ ;
5
+ return e;
6
+ }
7
+ var d = n;
8
+ export {
9
+ d as _
10
+ };
@@ -0,0 +1,55 @@
1
+ import { i as M } from "./isObject.mjs";
2
+ import { n as S } from "./now.mjs";
3
+ import { t as y } from "./toNumber.mjs";
4
+ var N = M, h = S, _ = y, O = "Expected a function", R = Math.max, j = Math.min;
5
+ function A(x, i, a) {
6
+ var u, d, l, f, n, r, o = 0, b = !1, m = !1, v = !0;
7
+ if (typeof x != "function")
8
+ throw new TypeError(O);
9
+ i = _(i) || 0, N(a) && (b = !!a.leading, m = "maxWait" in a, l = m ? R(_(a.maxWait) || 0, i) : l, v = "trailing" in a ? !!a.trailing : v);
10
+ function g(e) {
11
+ var t = u, c = d;
12
+ return u = d = void 0, o = e, f = x.apply(c, t), f;
13
+ }
14
+ function p(e) {
15
+ return o = e, n = setTimeout(s, i), b ? g(e) : f;
16
+ }
17
+ function W(e) {
18
+ var t = e - r, c = e - o, I = i - t;
19
+ return m ? j(I, l - c) : I;
20
+ }
21
+ function E(e) {
22
+ var t = e - r, c = e - o;
23
+ return r === void 0 || t >= i || t < 0 || m && c >= l;
24
+ }
25
+ function s() {
26
+ var e = h();
27
+ if (E(e))
28
+ return k(e);
29
+ n = setTimeout(s, W(e));
30
+ }
31
+ function k(e) {
32
+ return n = void 0, v && u ? g(e) : (u = d = void 0, f);
33
+ }
34
+ function C() {
35
+ n !== void 0 && clearTimeout(n), o = 0, u = r = d = n = void 0;
36
+ }
37
+ function L() {
38
+ return n === void 0 ? f : k(h());
39
+ }
40
+ function T() {
41
+ var e = h(), t = E(e);
42
+ if (u = arguments, d = this, r = e, t) {
43
+ if (n === void 0)
44
+ return p(r);
45
+ if (m)
46
+ return clearTimeout(n), n = setTimeout(s, i), g(r);
47
+ }
48
+ return n === void 0 && (n = setTimeout(s, i)), f;
49
+ }
50
+ return T.cancel = C, T.flush = L, T;
51
+ }
52
+ var q = A;
53
+ export {
54
+ q as d
55
+ };
@@ -0,0 +1,8 @@
1
+ function n(t) {
2
+ var e = typeof t;
3
+ return t != null && (e == "object" || e == "function");
4
+ }
5
+ var c = n;
6
+ export {
7
+ c as i
8
+ };
@@ -0,0 +1,7 @@
1
+ function t(e) {
2
+ return e != null && typeof e == "object";
3
+ }
4
+ var i = t;
5
+ export {
6
+ i
7
+ };
@@ -0,0 +1,10 @@
1
+ import { _ as i } from "./_baseGetTag.mjs";
2
+ import { i as s } from "./isObjectLike.mjs";
3
+ var t = i, b = s, e = "[object Symbol]";
4
+ function r(o) {
5
+ return typeof o == "symbol" || b(o) && t(o) == e;
6
+ }
7
+ var y = r;
8
+ export {
9
+ y as i
10
+ };
@@ -0,0 +1,7 @@
1
+ import { _ as o } from "./_root.mjs";
2
+ var r = o, n = function() {
3
+ return r.Date.now();
4
+ }, a = n;
5
+ export {
6
+ a as n
7
+ };
@@ -0,0 +1,19 @@
1
+ import { getDefaultExportFromCjs as n } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
+ import { d as l } from "./debounce.mjs";
3
+ import { i as o } from "./isObject.mjs";
4
+ var f = l, d = o, g = "Expected a function";
5
+ function u(i, a, t) {
6
+ var r = !0, e = !0;
7
+ if (typeof i != "function")
8
+ throw new TypeError(g);
9
+ return d(t) && (r = "leading" in t ? !!t.leading : r, e = "trailing" in t ? !!t.trailing : e), f(i, a, {
10
+ leading: r,
11
+ maxWait: a,
12
+ trailing: e
13
+ });
14
+ }
15
+ var c = u;
16
+ const b = /* @__PURE__ */ n(c);
17
+ export {
18
+ b as default
19
+ };
@@ -0,0 +1,23 @@
1
+ import { _ as o } from "./_baseTrim.mjs";
2
+ import { i as n } from "./isObject.mjs";
3
+ import { i as m } from "./isSymbol.mjs";
4
+ var b = o, s = n, e = m, f = 0 / 0, p = /^[-+]0x[0-9a-f]+$/i, y = /^0b[01]+$/i, a = /^0o[0-7]+$/i, c = parseInt;
5
+ function I(r) {
6
+ if (typeof r == "number")
7
+ return r;
8
+ if (e(r))
9
+ return f;
10
+ if (s(r)) {
11
+ var t = typeof r.valueOf == "function" ? r.valueOf() : r;
12
+ r = s(t) ? t + "" : t;
13
+ }
14
+ if (typeof r != "string")
15
+ return r === 0 ? r : +r;
16
+ r = b(r);
17
+ var i = y.test(r);
18
+ return i || a.test(r) ? c(r.slice(2), i ? 2 : 8) : p.test(r) ? f : +r;
19
+ }
20
+ var x = I;
21
+ export {
22
+ x as t
23
+ };
@@ -1,68 +1,79 @@
1
- function y(e, c) {
1
+ var p = function() {
2
+ return p = Object.assign || function(a) {
3
+ for (var t, r = 1, n = arguments.length; r < n; r++) {
4
+ t = arguments[r];
5
+ for (var e in t)
6
+ Object.prototype.hasOwnProperty.call(t, e) && (a[e] = t[e]);
7
+ }
8
+ return a;
9
+ }, p.apply(this, arguments);
10
+ };
11
+ function s(o, a) {
2
12
  var t = {};
3
- for (var r in e)
4
- Object.prototype.hasOwnProperty.call(e, r) && c.indexOf(r) < 0 && (t[r] = e[r]);
5
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
6
- for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
7
- c.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (t[r[n]] = e[r[n]]);
13
+ for (var r in o)
14
+ Object.prototype.hasOwnProperty.call(o, r) && a.indexOf(r) < 0 && (t[r] = o[r]);
15
+ if (o != null && typeof Object.getOwnPropertySymbols == "function")
16
+ for (var n = 0, r = Object.getOwnPropertySymbols(o); n < r.length; n++)
17
+ a.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(o, r[n]) && (t[r[n]] = o[r[n]]);
8
18
  return t;
9
19
  }
10
- function d(e, c, t, r) {
11
- function n(o) {
12
- return o instanceof t ? o : new t(function(f) {
13
- f(o);
20
+ function d(o, a, t, r) {
21
+ function n(e) {
22
+ return e instanceof t ? e : new t(function(c) {
23
+ c(e);
14
24
  });
15
25
  }
16
- return new (t || (t = Promise))(function(o, f) {
17
- function u(l) {
26
+ return new (t || (t = Promise))(function(e, c) {
27
+ function u(f) {
18
28
  try {
19
- a(r.next(l));
29
+ l(r.next(f));
20
30
  } catch (i) {
21
- f(i);
31
+ c(i);
22
32
  }
23
33
  }
24
- function p(l) {
34
+ function y(f) {
25
35
  try {
26
- a(r.throw(l));
36
+ l(r.throw(f));
27
37
  } catch (i) {
28
- f(i);
38
+ c(i);
29
39
  }
30
40
  }
31
- function a(l) {
32
- l.done ? o(l.value) : n(l.value).then(u, p);
41
+ function l(f) {
42
+ f.done ? e(f.value) : n(f.value).then(u, y);
33
43
  }
34
- a((r = r.apply(e, c || [])).next());
44
+ l((r = r.apply(o, a || [])).next());
35
45
  });
36
46
  }
37
- function s(e, c) {
38
- var t = typeof Symbol == "function" && e[Symbol.iterator];
47
+ function h(o, a) {
48
+ var t = typeof Symbol == "function" && o[Symbol.iterator];
39
49
  if (!t)
40
- return e;
41
- var r = t.call(e), n, o = [], f;
50
+ return o;
51
+ var r = t.call(o), n, e = [], c;
42
52
  try {
43
- for (; (c === void 0 || c-- > 0) && !(n = r.next()).done; )
44
- o.push(n.value);
53
+ for (; (a === void 0 || a-- > 0) && !(n = r.next()).done; )
54
+ e.push(n.value);
45
55
  } catch (u) {
46
- f = { error: u };
56
+ c = { error: u };
47
57
  } finally {
48
58
  try {
49
59
  n && !n.done && (t = r.return) && t.call(r);
50
60
  } finally {
51
- if (f)
52
- throw f.error;
61
+ if (c)
62
+ throw c.error;
53
63
  }
54
64
  }
55
- return o;
65
+ return e;
56
66
  }
57
- function h(e, c, t) {
67
+ function v(o, a, t) {
58
68
  if (t || arguments.length === 2)
59
- for (var r = 0, n = c.length, o; r < n; r++)
60
- (o || !(r in c)) && (o || (o = Array.prototype.slice.call(c, 0, r)), o[r] = c[r]);
61
- return e.concat(o || Array.prototype.slice.call(c));
69
+ for (var r = 0, n = a.length, e; r < n; r++)
70
+ (e || !(r in a)) && (e || (e = Array.prototype.slice.call(a, 0, r)), e[r] = a[r]);
71
+ return o.concat(e || Array.prototype.slice.call(a));
62
72
  }
63
73
  export {
74
+ p as __assign,
64
75
  d as __awaiter,
65
- s as __read,
66
- y as __rest,
67
- h as __spreadArray
76
+ h as __read,
77
+ s as __rest,
78
+ v as __spreadArray
68
79
  };
@@ -0,0 +1,23 @@
1
+ function a(r) {
2
+ var n, f, t = "";
3
+ if (typeof r == "string" || typeof r == "number")
4
+ t += r;
5
+ else if (typeof r == "object")
6
+ if (Array.isArray(r)) {
7
+ var o = r.length;
8
+ for (n = 0; n < o; n++)
9
+ r[n] && (f = a(r[n])) && (t && (t += " "), t += f);
10
+ } else
11
+ for (f in r)
12
+ r[f] && (t && (t += " "), t += f);
13
+ return t;
14
+ }
15
+ function i() {
16
+ for (var r, n, f = 0, t = "", o = arguments.length; f < o; f++)
17
+ (r = arguments[f]) && (n = a(r)) && (t && (t += " "), t += n);
18
+ return t;
19
+ }
20
+ export {
21
+ i as clsx,
22
+ i as default
23
+ };