bitz-react-admin-ui 2.3.3 → 2.3.4
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/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +8 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -24
- package/dist/components/BitzTable/Table/index.mjs +137 -133
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +43 -45
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +49 -49
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useRef as se, useContext as ce, useState as v,
|
|
3
|
-
import { Row as b, Col as a, Space as
|
|
2
|
+
import { useRef as se, useContext as ce, useState as v, useCallback as ne, useMemo as _, useEffect as ie } from "react";
|
|
3
|
+
import { Row as b, Col as a, Space as A, Form as h, Select as F, Spin as ae, Typography as pe, Flex as ue, Empty as O } from "antd";
|
|
4
4
|
import de from "../../BitzPagination/index.mjs";
|
|
5
5
|
import xe from "../../BitzTable/index.mjs";
|
|
6
|
-
import
|
|
6
|
+
import G from "../../BitzButton/index.mjs";
|
|
7
7
|
import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
|
|
8
8
|
import Se from "../TextBlock/index.mjs";
|
|
9
9
|
import fe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
@@ -13,40 +13,40 @@ import { BitzConfigContext as we } from "../../BitzConfigProvider/context.mjs";
|
|
|
13
13
|
import "./index.less.mjs";
|
|
14
14
|
import Te from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
|
|
15
15
|
import ge from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
16
|
-
function
|
|
17
|
-
columns:
|
|
16
|
+
function Ge({
|
|
17
|
+
columns: H,
|
|
18
18
|
tableData: y,
|
|
19
19
|
total: W,
|
|
20
20
|
loading: p,
|
|
21
21
|
loadingFailed: j,
|
|
22
22
|
loadAgain: $,
|
|
23
|
-
page:
|
|
23
|
+
page: B,
|
|
24
24
|
onPageChange: q,
|
|
25
25
|
searchInput: J,
|
|
26
|
-
showToolTagSelect:
|
|
26
|
+
showToolTagSelect: P,
|
|
27
27
|
toolTags: L,
|
|
28
28
|
onToolTagChange: w,
|
|
29
29
|
lrLayout: T,
|
|
30
|
-
parentRender:
|
|
31
|
-
keys:
|
|
32
|
-
rows:
|
|
30
|
+
parentRender: z,
|
|
31
|
+
keys: E,
|
|
32
|
+
rows: I,
|
|
33
33
|
fieldNames: t,
|
|
34
34
|
onChange: x,
|
|
35
35
|
onDropdownVisibleChange: S
|
|
36
36
|
}) {
|
|
37
|
-
var
|
|
38
|
-
const
|
|
39
|
-
Z(
|
|
37
|
+
var k, M, K;
|
|
38
|
+
const R = se(null), g = fe(R), { token: s } = be.useToken(), C = ((k = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : k.tableSpaceBetweenPage) ?? 10, Q = ((M = ce(we).TableSelect) == null ? void 0 : M.defaultSize) ?? "md", [c, U] = v([]), [r, X] = v([]), [Y, Z] = v(void 0), D = (o, l) => {
|
|
39
|
+
Z(o), w == null || w(o, l), o || (S(!0), setTimeout(() => {
|
|
40
40
|
S(!1);
|
|
41
41
|
}, 0));
|
|
42
|
-
}, V =
|
|
42
|
+
}, V = me(H, y, B), N = {
|
|
43
43
|
selectedRowKeys: c,
|
|
44
|
-
onSelect: (
|
|
45
|
-
if (
|
|
46
|
-
c.push(
|
|
44
|
+
onSelect: (o, l) => {
|
|
45
|
+
if (l)
|
|
46
|
+
c.push(o[t.value]), r.push(o), x(c, r);
|
|
47
47
|
else {
|
|
48
48
|
const u = r.filter(
|
|
49
|
-
(d) => d[t.value] !==
|
|
49
|
+
(d) => d[t.value] !== o[t.value]
|
|
50
50
|
);
|
|
51
51
|
x(
|
|
52
52
|
u.map((d) => d[t.value]),
|
|
@@ -54,9 +54,9 @@ function He({
|
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
onSelectAll: (
|
|
57
|
+
onSelectAll: (o, l, u) => {
|
|
58
58
|
const d = u.map((i) => i[t.value]);
|
|
59
|
-
if (
|
|
59
|
+
if (o) {
|
|
60
60
|
const i = c.concat(d), f = r.concat(u);
|
|
61
61
|
x(i, f);
|
|
62
62
|
} else {
|
|
@@ -64,29 +64,29 @@ function He({
|
|
|
64
64
|
u.forEach((m) => {
|
|
65
65
|
f.set(m[t.value], m);
|
|
66
66
|
});
|
|
67
|
-
const
|
|
67
|
+
const le = r == null ? void 0 : r.filter(
|
|
68
68
|
(m) => !f.has(m[t.value])
|
|
69
69
|
);
|
|
70
|
-
x(i,
|
|
70
|
+
x(i, le);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
}, ee = ne(() => he(t.items, p), [t.items, p]), te = (
|
|
74
|
-
|
|
73
|
+
}, ee = ne(() => he(t.items, p), [t.items, p]), te = (o, l) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
|
|
74
|
+
o[0],
|
|
75
75
|
" ",
|
|
76
|
-
/* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children:
|
|
76
|
+
/* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: l }),
|
|
77
77
|
" ",
|
|
78
|
-
|
|
78
|
+
o[1]
|
|
79
79
|
] }), re = () => {
|
|
80
|
-
const
|
|
80
|
+
const o = (l) => {
|
|
81
81
|
const u = r.findIndex(
|
|
82
|
-
(i) => i[t.value] ===
|
|
82
|
+
(i) => i[t.value] === l[t.value]
|
|
83
83
|
), d = c.findIndex(
|
|
84
|
-
(i) => i ===
|
|
84
|
+
(i) => i === l[t.value]
|
|
85
85
|
);
|
|
86
86
|
r.splice(u, 1), c.splice(d, 1), x(c, r);
|
|
87
87
|
};
|
|
88
88
|
return /* @__PURE__ */ e.jsxs(
|
|
89
|
-
|
|
89
|
+
A,
|
|
90
90
|
{
|
|
91
91
|
direction: "vertical",
|
|
92
92
|
style: {
|
|
@@ -96,7 +96,7 @@ function He({
|
|
|
96
96
|
overflow: "hidden auto"
|
|
97
97
|
},
|
|
98
98
|
children: [
|
|
99
|
-
r.map((
|
|
99
|
+
r.map((l) => /* @__PURE__ */ e.jsxs(
|
|
100
100
|
ue,
|
|
101
101
|
{
|
|
102
102
|
justify: "space-between",
|
|
@@ -108,7 +108,7 @@ function He({
|
|
|
108
108
|
overflow: "hidden"
|
|
109
109
|
},
|
|
110
110
|
children: [
|
|
111
|
-
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value:
|
|
111
|
+
/* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: l[t.label] }) }),
|
|
112
112
|
/* @__PURE__ */ e.jsx(
|
|
113
113
|
ge,
|
|
114
114
|
{
|
|
@@ -117,32 +117,32 @@ function He({
|
|
|
117
117
|
fontSize: 13,
|
|
118
118
|
cursor: "pointer"
|
|
119
119
|
},
|
|
120
|
-
onClick: () => l
|
|
120
|
+
onClick: () => o(l)
|
|
121
121
|
}
|
|
122
122
|
)
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
|
-
|
|
125
|
+
l[t.value]
|
|
126
126
|
)),
|
|
127
|
-
!r.length && /* @__PURE__ */ e.jsx(
|
|
127
|
+
!r.length && /* @__PURE__ */ e.jsx(O, { image: O.PRESENTED_IMAGE_SIMPLE })
|
|
128
128
|
]
|
|
129
129
|
}
|
|
130
130
|
);
|
|
131
|
-
}, n =
|
|
131
|
+
}, n = _(() => je(T, P), [T, P]), oe = _(() => ye(
|
|
132
132
|
{ loadingTable: p },
|
|
133
133
|
{ loadingFailedTable: j },
|
|
134
134
|
"bitzSelectTable"
|
|
135
135
|
), [j, p]);
|
|
136
136
|
return ie(() => {
|
|
137
|
-
U(
|
|
138
|
-
}, [
|
|
139
|
-
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T &&
|
|
140
|
-
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(
|
|
137
|
+
U(E ?? []), X(I ?? []);
|
|
138
|
+
}, [E, I]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
|
|
139
|
+
/* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && z && z(C, g == null ? void 0 : g.height) }),
|
|
140
|
+
/* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(A, { direction: "vertical", size: C, style: { width: "100%" }, children: [
|
|
141
141
|
/* @__PURE__ */ e.jsx(h, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(b, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(a, { span: 24, children: /* @__PURE__ */ e.jsxs(b, { justify: "space-between", gutter: [16, 16], children: [
|
|
142
142
|
/* @__PURE__ */ e.jsx(a, { span: n.right.search, children: /* @__PURE__ */ e.jsx(h.Item, { children: J }) }),
|
|
143
143
|
/* @__PURE__ */ e.jsx(a, { span: n.right.operation, children: /* @__PURE__ */ e.jsxs(b, { justify: "end", gutter: 8, children: [
|
|
144
144
|
/* @__PURE__ */ e.jsx(a, { span: n.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsx(
|
|
145
|
-
|
|
145
|
+
F,
|
|
146
146
|
{
|
|
147
147
|
allowClear: !0,
|
|
148
148
|
className: "tableSelectPopupToolTagSelect",
|
|
@@ -161,7 +161,7 @@ function He({
|
|
|
161
161
|
) }) }),
|
|
162
162
|
/* @__PURE__ */ e.jsx(a, { span: n.right.totalSelect, children: /* @__PURE__ */ e.jsx(h.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
|
|
163
163
|
/* @__PURE__ */ e.jsx(
|
|
164
|
-
|
|
164
|
+
F,
|
|
165
165
|
{
|
|
166
166
|
style: { width: "100%" },
|
|
167
167
|
mode: "multiple",
|
|
@@ -182,7 +182,7 @@ function He({
|
|
|
182
182
|
) })
|
|
183
183
|
] }) }) }),
|
|
184
184
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
185
|
-
|
|
185
|
+
G,
|
|
186
186
|
{
|
|
187
187
|
type: "primary",
|
|
188
188
|
danger: !0,
|
|
@@ -191,7 +191,7 @@ function He({
|
|
|
191
191
|
}
|
|
192
192
|
) }),
|
|
193
193
|
/* @__PURE__ */ e.jsx(a, { span: n.right.button, children: /* @__PURE__ */ e.jsx(
|
|
194
|
-
|
|
194
|
+
G,
|
|
195
195
|
{
|
|
196
196
|
type: "primary",
|
|
197
197
|
onClick: () => x([], [], "confirm"),
|
|
@@ -203,7 +203,7 @@ function He({
|
|
|
203
203
|
/* @__PURE__ */ e.jsx(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
|
-
ref:
|
|
206
|
+
ref: R,
|
|
207
207
|
...j && {
|
|
208
208
|
className: "pointerMouse",
|
|
209
209
|
onClick: () => $()
|
|
@@ -227,10 +227,10 @@ function He({
|
|
|
227
227
|
rowSelection: N,
|
|
228
228
|
columns: V,
|
|
229
229
|
dataSource: y,
|
|
230
|
-
className:
|
|
230
|
+
className: oe,
|
|
231
231
|
...ee(),
|
|
232
232
|
style: {
|
|
233
|
-
"--tableBody-bootomBorderColor": ((
|
|
233
|
+
"--tableBody-bootomBorderColor": ((K = s.Table) == null ? void 0 : K.borderColor) || s.colorBorderSecondary
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
)
|
|
@@ -245,7 +245,7 @@ function He({
|
|
|
245
245
|
className: "tableSelectPopupTablePagination",
|
|
246
246
|
size: "small",
|
|
247
247
|
enableControl: !0,
|
|
248
|
-
pagination:
|
|
248
|
+
pagination: B,
|
|
249
249
|
total: W,
|
|
250
250
|
dataSource: y,
|
|
251
251
|
paginationEmit: q
|
|
@@ -255,5 +255,5 @@ function He({
|
|
|
255
255
|
] });
|
|
256
256
|
}
|
|
257
257
|
export {
|
|
258
|
-
|
|
258
|
+
Ge as default
|
|
259
259
|
};
|