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.
Files changed (25) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/components/BitzCalendar/index.mjs +1 -1
  4. package/dist/components/BitzDayJs/index.mjs +1 -1
  5. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  6. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTable/ActionCol/index.mjs +1 -1
  16. package/dist/components/BitzTable/ActionCol/style.mjs +8 -7
  17. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -24
  18. package/dist/components/BitzTable/Table/index.mjs +137 -133
  19. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +43 -45
  20. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +49 -49
  21. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  22. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  23. package/dist/style.css +1 -1
  24. package/dist/utils/time.mjs +1 -1
  25. 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, useMemo as B, useCallback as ne, useEffect as ie } from "react";
3
- import { Row as b, Col as a, Space as F, Form as h, Select as G, Spin as ae, Typography as pe, Flex as ue, Empty as H } from "antd";
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 O from "../../BitzButton/index.mjs";
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 He({
17
- columns: P,
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: z,
23
+ page: B,
24
24
  onPageChange: q,
25
25
  searchInput: J,
26
- showToolTagSelect: E,
26
+ showToolTagSelect: P,
27
27
  toolTags: L,
28
28
  onToolTagChange: w,
29
29
  lrLayout: T,
30
- parentRender: I,
31
- keys: R,
32
- rows: C,
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 K, _, A;
38
- const k = se(null), g = fe(k), { token: s } = be.useToken(), M = ((K = s == null ? void 0 : s.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, Q = ((_ = ce(we).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [c, U] = v([]), [r, X] = v([]), [Y, Z] = v(void 0), D = (l, o) => {
39
- Z(l), w == null || w(l, o), l || (S(!0), setTimeout(() => {
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 = B(() => me(P, y, z), [P]), N = {
42
+ }, V = me(H, y, B), N = {
43
43
  selectedRowKeys: c,
44
- onSelect: (l, o) => {
45
- if (o)
46
- c.push(l[t.value]), r.push(l), x(c, r);
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] !== l[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: (l, o, u) => {
57
+ onSelectAll: (o, l, u) => {
58
58
  const d = u.map((i) => i[t.value]);
59
- if (l) {
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 oe = r == null ? void 0 : r.filter(
67
+ const le = r == null ? void 0 : r.filter(
68
68
  (m) => !f.has(m[t.value])
69
69
  );
70
- x(i, oe);
70
+ x(i, le);
71
71
  }
72
72
  }
73
- }, ee = ne(() => he(t.items, p), [t.items, p]), te = (l, o) => /* @__PURE__ */ e.jsxs("span", { style: { color: s.colorText }, children: [
74
- l[0],
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: o }),
76
+ /* @__PURE__ */ e.jsx("span", { style: { color: s.colorPrimary, fontWeight: 600 }, children: l }),
77
77
  " ",
78
- l[1]
78
+ o[1]
79
79
  ] }), re = () => {
80
- const l = (o) => {
80
+ const o = (l) => {
81
81
  const u = r.findIndex(
82
- (i) => i[t.value] === o[t.value]
82
+ (i) => i[t.value] === l[t.value]
83
83
  ), d = c.findIndex(
84
- (i) => i === o[t.value]
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
- F,
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((o) => /* @__PURE__ */ e.jsxs(
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: o[t.label] }) }),
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(o)
120
+ onClick: () => o(l)
121
121
  }
122
122
  )
123
123
  ]
124
124
  },
125
- o[t.value]
125
+ l[t.value]
126
126
  )),
127
- !r.length && /* @__PURE__ */ e.jsx(H, { image: H.PRESENTED_IMAGE_SIMPLE })
127
+ !r.length && /* @__PURE__ */ e.jsx(O, { image: O.PRESENTED_IMAGE_SIMPLE })
128
128
  ]
129
129
  }
130
130
  );
131
- }, n = B(() => je(T, E), [T, E]), le = B(() => ye(
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(R ?? []), X(C ?? []);
138
- }, [R, C]), /* @__PURE__ */ e.jsxs(b, { gutter: n.gutter, children: [
139
- /* @__PURE__ */ e.jsx(a, { span: n.left.span, children: T && I && I(M, g == null ? void 0 : g.height) }),
140
- /* @__PURE__ */ e.jsx(a, { span: n.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
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
- G,
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
- G,
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
- O,
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
- O,
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: k,
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: le,
230
+ className: oe,
231
231
  ...ee(),
232
232
  style: {
233
- "--tableBody-bootomBorderColor": ((A = s.Table) == null ? void 0 : A.borderColor) || s.colorBorderSecondary
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: z,
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
- He as default
258
+ Ge as default
259
259
  };