bitz-react-admin-ui 2.4.6 → 2.4.8
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/dist/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +67 -0
- package/dist/components/BitzTable/Table/index.d.ts +26 -26
- package/dist/components/BitzTable/Table/index.mjs +393 -368
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +6 -6
- package/dist/components/BitzTable/index.d.ts +3 -0
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +1 -1
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +50 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +4 -4
- package/dist/components/BitzTableSelect/index.d.ts +0 -1
- package/dist/components/BitzTableSelect/index.mjs +17 -19
- package/dist/components/BitzTableSelect/utils.d.ts +4 -0
- package/dist/components/BitzTableSelect/utils.mjs +5 -0
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { css as
|
|
2
|
-
import { columnsSortStyles as l, appearanceConfigStyles as
|
|
1
|
+
import { css as n } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
2
|
+
import { columnsSortStyles as l, appearanceConfigStyles as r, exportConfigStyles as i } from "../ColConfigIcon/style.mjs";
|
|
3
3
|
const f = (o) => {
|
|
4
4
|
var t, a, e;
|
|
5
|
-
return
|
|
5
|
+
return n`
|
|
6
6
|
&.tableConfigModal {
|
|
7
7
|
.ant-modal-content {
|
|
8
8
|
max-height: calc(100vh - 200px);
|
|
@@ -35,9 +35,9 @@ const f = (o) => {
|
|
|
35
35
|
|
|
36
36
|
${l(o)}
|
|
37
37
|
|
|
38
|
-
${
|
|
38
|
+
${r(o)}
|
|
39
39
|
|
|
40
|
-
${
|
|
40
|
+
${i(o)}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -47,7 +47,7 @@ const f = (o) => {
|
|
|
47
47
|
align-self: flex-end;
|
|
48
48
|
text-align: left;
|
|
49
49
|
margin: 0;
|
|
50
|
-
padding:
|
|
50
|
+
padding-inline: 24px;
|
|
51
51
|
background-color: ${(e = o.Modal) == null ? void 0 : e.footerBg};
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -39,6 +39,9 @@ interface BitzTableActionProps<T = any> {
|
|
|
39
39
|
type ActionGroupFunType<T> = (record: T, index: number) => Action<T>[];
|
|
40
40
|
type CustomActionsProps<T> = {
|
|
41
41
|
custom: CustomActionsFunType<T>;
|
|
42
|
+
fieldsName?: {
|
|
43
|
+
label?: string;
|
|
44
|
+
};
|
|
42
45
|
request?: (record: T, index: number) => Promise<CustomAction[]>;
|
|
43
46
|
onClick?: (key: any) => void;
|
|
44
47
|
};
|
|
@@ -2,7 +2,7 @@ import { j as i } from "../../../node_modules/.store/react@18.3.1/node_modules/r
|
|
|
2
2
|
import p from "../../BitzDescriptions/index.mjs";
|
|
3
3
|
import m from "../TableCell/index.mjs";
|
|
4
4
|
import u from "../TextBlock/index.mjs";
|
|
5
|
-
import { defaultValue as a } from "../
|
|
5
|
+
import { defaultValue as a } from "../utils.mjs";
|
|
6
6
|
const R = (o, n, e) => {
|
|
7
7
|
const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
|
|
8
8
|
...r,
|
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
import { j as x } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as c, useEffect as b } from "react";
|
|
3
|
-
import { Select as
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import { Select as U } from "antd";
|
|
4
|
+
import W from "../SelectPopup/index.mjs";
|
|
5
|
+
import { isNotFalsy as X } from "../utils.mjs";
|
|
6
|
+
function P({
|
|
6
7
|
value: S,
|
|
7
|
-
options:
|
|
8
|
+
options: s,
|
|
8
9
|
columns: j,
|
|
9
10
|
tableData: k,
|
|
10
11
|
total: v,
|
|
11
12
|
loading: w,
|
|
12
|
-
loadingFailed:
|
|
13
|
-
loadAgain:
|
|
14
|
-
page:
|
|
15
|
-
onPageChange:
|
|
16
|
-
searchInput:
|
|
17
|
-
showToolTagSelect:
|
|
18
|
-
toolTags:
|
|
19
|
-
onToolTagChange:
|
|
20
|
-
lrLayout:
|
|
21
|
-
parentRender:
|
|
22
|
-
mode:
|
|
23
|
-
placeholder:
|
|
13
|
+
loadingFailed: y,
|
|
14
|
+
loadAgain: B,
|
|
15
|
+
page: D,
|
|
16
|
+
onPageChange: E,
|
|
17
|
+
searchInput: N,
|
|
18
|
+
showToolTagSelect: T,
|
|
19
|
+
toolTags: F,
|
|
20
|
+
onToolTagChange: O,
|
|
21
|
+
lrLayout: V,
|
|
22
|
+
parentRender: a,
|
|
23
|
+
mode: q = "single",
|
|
24
|
+
placeholder: z = "请选择",
|
|
24
25
|
fieldNames: p,
|
|
25
26
|
onChange: e,
|
|
26
27
|
onPopupVisibleChange: f,
|
|
27
|
-
...
|
|
28
|
+
...A
|
|
28
29
|
}) {
|
|
29
|
-
const [o,
|
|
30
|
+
const [o, G] = c(), [u, r] = c(), [i, m] = c(!1), [H, I] = c(!1), J = () => {
|
|
30
31
|
r([]), e == null || e([], []);
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
r(
|
|
35
|
-
},
|
|
36
|
-
!i && t && m(!0), !
|
|
32
|
+
}, K = (t, l, Q) => {
|
|
33
|
+
Q === "confirm" ? m(!1) : (r(l), e == null || e(t, l));
|
|
34
|
+
}, L = (t, l) => {
|
|
35
|
+
r(l), e == null || e(t, l);
|
|
36
|
+
}, M = (t) => {
|
|
37
|
+
!i && t && m(!0), !H && !t && i && m(!1), f == null || f(t);
|
|
37
38
|
};
|
|
38
39
|
return b(() => {
|
|
39
|
-
|
|
40
|
+
G(S);
|
|
40
41
|
}, [S]), b(() => {
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
|
|
42
|
+
s != null && s.length && r(s);
|
|
43
|
+
}, [s]), /* @__PURE__ */ x.jsx(
|
|
44
|
+
U,
|
|
44
45
|
{
|
|
45
46
|
allowClear: !0,
|
|
46
47
|
className: "tableSelectBlock",
|
|
@@ -49,40 +50,40 @@ function a({
|
|
|
49
50
|
fieldNames: p,
|
|
50
51
|
showSearch: !1,
|
|
51
52
|
open: i,
|
|
52
|
-
placeholder:
|
|
53
|
+
placeholder: z,
|
|
53
54
|
popupClassName: "tableSelectPopupBlock",
|
|
54
55
|
dropdownRender: () => /* @__PURE__ */ x.jsx(
|
|
55
|
-
|
|
56
|
+
W,
|
|
56
57
|
{
|
|
57
58
|
columns: j,
|
|
58
59
|
tableData: k,
|
|
59
60
|
total: v,
|
|
60
|
-
page:
|
|
61
|
-
onPageChange:
|
|
62
|
-
searchInput:
|
|
61
|
+
page: D,
|
|
62
|
+
onPageChange: E,
|
|
63
|
+
searchInput: N,
|
|
63
64
|
loading: w,
|
|
64
|
-
loadingFailed:
|
|
65
|
-
loadAgain:
|
|
66
|
-
keys: o ? [o] : [],
|
|
65
|
+
loadingFailed: y,
|
|
66
|
+
loadAgain: B,
|
|
67
|
+
keys: X(o) ? [o] : [],
|
|
67
68
|
rows: u,
|
|
68
69
|
fieldNames: p,
|
|
69
|
-
onChange:
|
|
70
|
-
onDropdownVisibleChange:
|
|
71
|
-
showToolTagSelect:
|
|
72
|
-
toolTags:
|
|
73
|
-
onToolTagChange:
|
|
74
|
-
lrLayout:
|
|
75
|
-
parentRender:
|
|
76
|
-
mode:
|
|
70
|
+
onChange: K,
|
|
71
|
+
onDropdownVisibleChange: I,
|
|
72
|
+
showToolTagSelect: T,
|
|
73
|
+
toolTags: F,
|
|
74
|
+
onToolTagChange: O,
|
|
75
|
+
lrLayout: V,
|
|
76
|
+
parentRender: a,
|
|
77
|
+
mode: q
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
|
-
onClear:
|
|
80
|
-
onDropdownVisibleChange:
|
|
81
|
-
onChange:
|
|
82
|
-
...
|
|
80
|
+
onClear: J,
|
|
81
|
+
onDropdownVisibleChange: M,
|
|
82
|
+
onChange: L,
|
|
83
|
+
...A
|
|
83
84
|
}
|
|
84
85
|
);
|
|
85
86
|
}
|
|
86
87
|
export {
|
|
87
|
-
|
|
88
|
+
P as default
|
|
88
89
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as m } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { theme as c, Input as p } from "antd";
|
|
3
3
|
import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { tablePaddingInline as f } from "../../BitzConfigProvider/context.mjs";
|
|
5
|
+
import { defaultValue as x } from "../utils.mjs";
|
|
5
6
|
import "./index.less.mjs";
|
|
6
|
-
import { tablePaddingInline as x } from "../../BitzConfigProvider/context.mjs";
|
|
7
7
|
const { TextArea: u } = p, h = ({
|
|
8
8
|
maxRows: t = 1,
|
|
9
9
|
minRows: s,
|
|
@@ -12,12 +12,12 @@ const { TextArea: u } = p, h = ({
|
|
|
12
12
|
className: r
|
|
13
13
|
}) => {
|
|
14
14
|
var n;
|
|
15
|
-
const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ??
|
|
15
|
+
const { token: a } = c.useToken(), i = ((n = a.Table) == null ? void 0 : n.cellPaddingInline) ?? f, l = {
|
|
16
16
|
"--cell-text-maxRows": t,
|
|
17
17
|
...o && {
|
|
18
18
|
fontWeight: o
|
|
19
19
|
},
|
|
20
|
-
...e ===
|
|
20
|
+
...e === x && {
|
|
21
21
|
paddingInline: i
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -67,5 +67,4 @@ export interface BitzTableSelectProps<T extends BaseOptionType, ValueType extend
|
|
|
67
67
|
}
|
|
68
68
|
/** 下拉表格组件 */
|
|
69
69
|
declare function BitzTableSelect<T extends BaseOptionType>({ columns, tableData, loading, loadingFailed, loadAgain, total, page, onPageChange, onSearch, showToolTagSelect, placeholder, mode, fieldNames, onChange, popupAppendWidth: w, ...rest }: BitzTableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
70
|
-
export declare const defaultValue = "-";
|
|
71
70
|
export default BitzTableSelect;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { j as m } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as p } from "react";
|
|
3
3
|
import { isMobile as A } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
4
|
import L from "./Select/index.mjs";
|
|
5
5
|
import W from "./Picker/index.mjs";
|
|
6
6
|
import z from "./SingleSelect/index.mjs";
|
|
7
|
-
function
|
|
8
|
-
columns:
|
|
7
|
+
function k({
|
|
8
|
+
columns: s,
|
|
9
9
|
tableData: a,
|
|
10
|
-
loading:
|
|
11
|
-
loadingFailed:
|
|
10
|
+
loading: b,
|
|
11
|
+
loadingFailed: d,
|
|
12
12
|
loadAgain: x,
|
|
13
13
|
total: j,
|
|
14
|
-
page:
|
|
14
|
+
page: o,
|
|
15
15
|
onPageChange: F,
|
|
16
16
|
onSearch: M,
|
|
17
17
|
showToolTagSelect: e = !1,
|
|
18
|
-
placeholder:
|
|
18
|
+
placeholder: u = "请选择",
|
|
19
19
|
mode: f,
|
|
20
20
|
fieldNames: c,
|
|
21
21
|
onChange: t,
|
|
22
22
|
popupAppendWidth: r,
|
|
23
23
|
...i
|
|
24
24
|
}) {
|
|
25
|
-
const S =
|
|
25
|
+
const S = p(() => i.lrLayout ? e ? 900 + (r || 0) : 830 + (r || 0) : e ? 750 + (r || 0) : 700 + (r || 0), [i.lrLayout, e, r]), E = (l, n) => {
|
|
26
26
|
f === "single" ? t == null || t(l == null ? void 0 : l[0], n == null ? void 0 : n[0]) : t == null || t(l, n);
|
|
27
|
-
}, y =
|
|
27
|
+
}, y = p(() => f === "single" ? z : L, [f]);
|
|
28
28
|
return /* @__PURE__ */ m.jsx(m.Fragment, { children: A ? /* @__PURE__ */ m.jsx(
|
|
29
29
|
W,
|
|
30
30
|
{
|
|
@@ -36,27 +36,27 @@ function $({
|
|
|
36
36
|
throw new Error("Function not implemented.");
|
|
37
37
|
},
|
|
38
38
|
total: 0,
|
|
39
|
-
page:
|
|
39
|
+
page: o,
|
|
40
40
|
onPageChange: function() {
|
|
41
41
|
throw new Error("Function not implemented.");
|
|
42
42
|
},
|
|
43
|
-
placeholder:
|
|
43
|
+
placeholder: u,
|
|
44
44
|
fieldNames: c,
|
|
45
45
|
...i
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ m.jsx(
|
|
48
48
|
y,
|
|
49
49
|
{
|
|
50
|
-
columns:
|
|
50
|
+
columns: s,
|
|
51
51
|
tableData: a,
|
|
52
|
-
loading:
|
|
53
|
-
loadingFailed:
|
|
52
|
+
loading: b,
|
|
53
|
+
loadingFailed: d,
|
|
54
54
|
loadAgain: x,
|
|
55
55
|
total: j,
|
|
56
|
-
page:
|
|
56
|
+
page: o,
|
|
57
57
|
onPageChange: F,
|
|
58
58
|
onSearch: M,
|
|
59
|
-
placeholder:
|
|
59
|
+
placeholder: u,
|
|
60
60
|
fieldNames: c,
|
|
61
61
|
onChange: E,
|
|
62
62
|
popupMatchSelectWidth: S,
|
|
@@ -65,8 +65,6 @@ function $({
|
|
|
65
65
|
}
|
|
66
66
|
) });
|
|
67
67
|
}
|
|
68
|
-
const k = "-";
|
|
69
68
|
export {
|
|
70
|
-
|
|
71
|
-
k as defaultValue
|
|
69
|
+
k as default
|
|
72
70
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function o(r) {
|
|
2
|
+
var f, n, t = "";
|
|
3
|
+
if (typeof r == "string" || typeof r == "number")
|
|
4
|
+
t += r;
|
|
5
|
+
else if (typeof r == "object")
|
|
6
|
+
if (Array.isArray(r))
|
|
7
|
+
for (f = 0; f < r.length; f++)
|
|
8
|
+
r[f] && (n = o(r[f])) && (t && (t += " "), t += n);
|
|
9
|
+
else
|
|
10
|
+
for (f in r)
|
|
11
|
+
r[f] && (t && (t += " "), t += f);
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function a() {
|
|
15
|
+
for (var r, f, n = 0, t = ""; n < arguments.length; )
|
|
16
|
+
(r = arguments[n++]) && (f = o(r)) && (t && (t += " "), t += f);
|
|
17
|
+
return t;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
a as clsx,
|
|
21
|
+
a as default
|
|
22
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as e } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
2
|
import { __module as r } from "../../../../../_virtual/index.mjs";
|
|
3
3
|
import { __require as o } from "../../../react-is@16.13.1/node_modules/react-is/index.mjs";
|
|
4
|
-
import { __require as
|
|
5
|
-
import { __require as
|
|
4
|
+
import { __require as p } from "./factoryWithTypeCheckers.mjs";
|
|
5
|
+
import { __require as t } from "./factoryWithThrowingShims.mjs";
|
|
6
6
|
if (process.env.NODE_ENV !== "production") {
|
|
7
7
|
var s = o(), i = !0;
|
|
8
|
-
r.exports =
|
|
8
|
+
r.exports = p()(s.isElement, i);
|
|
9
9
|
} else
|
|
10
|
-
r.exports =
|
|
11
|
-
var
|
|
12
|
-
const q = /* @__PURE__ */ e(
|
|
10
|
+
r.exports = t()();
|
|
11
|
+
var a = r.exports;
|
|
12
|
+
const q = /* @__PURE__ */ e(a);
|
|
13
13
|
export {
|
|
14
|
-
q as default
|
|
14
|
+
q as default,
|
|
15
|
+
a as p
|
|
15
16
|
};
|