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.
- package/README.md +2 -2
- package/dist/bitz-ui.mjs +126 -120
- package/dist/components/BitzFluentInput/index.mjs +20 -17
- package/dist/components/BitzFluentSelect/index.mjs +20 -18
- package/dist/components/BitzList/List.mjs +28 -0
- package/dist/components/BitzList/LoadMore.mjs +69 -0
- package/dist/components/BitzList/index.less.mjs +4 -0
- package/dist/components/BitzList/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +113 -0
- package/dist/components/BitzPullRefresh/index.mjs +6 -0
- package/dist/components/BitzPullRefresh/style/index.less.mjs +4 -0
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +133 -94
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +64 -0
- package/dist/components/BitzTable/ActionBar/Button.mjs +10 -0
- package/dist/components/BitzTable/ActionBar/index.mjs +6 -60
- package/dist/components/BitzTable/ActionBar/style.mjs +36 -32
- package/dist/components/BitzTable/ActionCol/index.mjs +29 -28
- package/dist/components/BitzTable/Table/index.mjs +302 -253
- package/dist/components/BitzTable/TableSkeleton/index.mjs +46 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +179 -173
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/DndItem.mjs +28 -26
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +10 -9
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +1 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +28 -25
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +3 -2
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +23 -14
- package/dist/components/BitzTable/ToolBar/style.mjs +29 -20
- package/dist/hooks/use-event-listener.mjs +40 -0
- package/dist/hooks/use-lock-fn.mjs +21 -0
- package/dist/hooks/use-scroll-parent.mjs +34 -0
- package/dist/hooks/use-touch.mjs +33 -0
- package/dist/node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +751 -1050
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSetState/index.mjs +16 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useThrottleFn/index.mjs +28 -0
- package/dist/node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useUpdateEffect/index.mjs +6 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_Symbol.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseGetTag.mjs +11 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_baseTrim.mjs +9 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_freeGlobal.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_getRawTag.mjs +16 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_objectToString.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_root.mjs +5 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +55 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObject.mjs +8 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isObjectLike.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/isSymbol.mjs +10 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/now.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/throttle.mjs +19 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/toNumber.mjs +23 -0
- package/dist/node_modules/.store/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs +48 -37
- package/dist/node_modules/_clsx@2.1.0@clsx/dist/clsx.mjs +23 -0
- package/dist/style.css +1 -1
- package/dist/type/bitz-ui.d.ts +2 -0
- package/dist/type/components/BitzList/List.d.ts +4 -0
- package/dist/type/components/BitzList/LoadMore.d.ts +4 -0
- package/dist/type/components/BitzList/PropsType.d.ts +35 -0
- package/dist/type/components/BitzList/index.d.ts +5 -0
- package/dist/type/components/BitzPagination/index.d.ts +8 -2
- package/dist/type/components/BitzPullRefresh/PropsType.d.ts +43 -0
- package/dist/type/components/BitzPullRefresh/PullRefresh.d.ts +4 -0
- package/dist/type/components/BitzPullRefresh/index.d.ts +5 -0
- package/dist/type/components/BitzSelect/component/BitzSelectMobile.d.ts +1 -0
- package/dist/type/components/BitzTable/ActionBar/ActionBar.d.ts +37 -0
- package/dist/type/components/BitzTable/ActionBar/Button.d.ts +6 -0
- package/dist/type/components/BitzTable/ActionBar/index.d.ts +6 -33
- package/dist/type/components/BitzTable/ActionBar/style.d.ts +2 -2
- package/dist/type/components/BitzTable/Store/index.d.ts +2 -3
- package/dist/type/components/BitzTable/Table/index.d.ts +2 -2
- package/dist/type/components/BitzTable/TableSkeleton/index.d.ts +1 -1
- package/dist/type/components/BitzTable/ToolBar/ExportIcon/index.d.ts +2 -1
- package/dist/type/components/BitzTable/ToolBar/style.d.ts +1 -2
- package/dist/type/components/BitzTable/index.d.ts +6 -7
- package/dist/type/hooks/use-event-listener.d.ts +11 -0
- package/dist/type/hooks/use-lock-fn.d.ts +2 -0
- package/dist/type/hooks/use-scroll-parent.d.ts +9 -0
- package/dist/type/hooks/use-touch.d.ts +18 -0
- package/dist/type/pages/Login2/useRowSelection.d.ts +6 -4
- package/dist/type/pages/Test/index.d.ts +3 -0
- package/dist/type/utils/get-default-props.d.ts +2 -0
- package/dist/type/utils/scroll.d.ts +6 -0
- package/dist/utils/get-default-props.mjs +12 -0
- package/dist/utils/scroll.mjs +15 -0
- 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,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,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,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,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
|
|
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
|
|
4
|
-
Object.prototype.hasOwnProperty.call(
|
|
5
|
-
if (
|
|
6
|
-
for (var n = 0, r = Object.getOwnPropertySymbols(
|
|
7
|
-
|
|
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(
|
|
11
|
-
function n(
|
|
12
|
-
return
|
|
13
|
-
|
|
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(
|
|
17
|
-
function u(
|
|
26
|
+
return new (t || (t = Promise))(function(e, c) {
|
|
27
|
+
function u(f) {
|
|
18
28
|
try {
|
|
19
|
-
|
|
29
|
+
l(r.next(f));
|
|
20
30
|
} catch (i) {
|
|
21
|
-
|
|
31
|
+
c(i);
|
|
22
32
|
}
|
|
23
33
|
}
|
|
24
|
-
function
|
|
34
|
+
function y(f) {
|
|
25
35
|
try {
|
|
26
|
-
|
|
36
|
+
l(r.throw(f));
|
|
27
37
|
} catch (i) {
|
|
28
|
-
|
|
38
|
+
c(i);
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
41
|
+
function l(f) {
|
|
42
|
+
f.done ? e(f.value) : n(f.value).then(u, y);
|
|
33
43
|
}
|
|
34
|
-
|
|
44
|
+
l((r = r.apply(o, a || [])).next());
|
|
35
45
|
});
|
|
36
46
|
}
|
|
37
|
-
function
|
|
38
|
-
var t = typeof Symbol == "function" &&
|
|
47
|
+
function h(o, a) {
|
|
48
|
+
var t = typeof Symbol == "function" && o[Symbol.iterator];
|
|
39
49
|
if (!t)
|
|
40
|
-
return
|
|
41
|
-
var r = t.call(
|
|
50
|
+
return o;
|
|
51
|
+
var r = t.call(o), n, e = [], c;
|
|
42
52
|
try {
|
|
43
|
-
for (; (
|
|
44
|
-
|
|
53
|
+
for (; (a === void 0 || a-- > 0) && !(n = r.next()).done; )
|
|
54
|
+
e.push(n.value);
|
|
45
55
|
} catch (u) {
|
|
46
|
-
|
|
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 (
|
|
52
|
-
throw
|
|
61
|
+
if (c)
|
|
62
|
+
throw c.error;
|
|
53
63
|
}
|
|
54
64
|
}
|
|
55
|
-
return
|
|
65
|
+
return e;
|
|
56
66
|
}
|
|
57
|
-
function
|
|
67
|
+
function v(o, a, t) {
|
|
58
68
|
if (t || arguments.length === 2)
|
|
59
|
-
for (var r = 0, n =
|
|
60
|
-
(
|
|
61
|
-
return
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
+
};
|