bitz-react-admin-ui 2.7.9 → 2.7.11

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 (180) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +4 -25
  2. package/dist/assets/iconfont/IconClose.mjs +3 -24
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
  6. package/dist/assets/iconfont/IconCuowu.mjs +2 -23
  7. package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
  8. package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
  9. package/dist/assets/iconfont/IconFabu.mjs +5 -35
  10. package/dist/assets/iconfont/IconFanhui.mjs +4 -25
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
  15. package/dist/assets/iconfont/IconIcon21.mjs +4 -25
  16. package/dist/assets/iconfont/IconJincoude.mjs +4 -25
  17. package/dist/assets/iconfont/IconJinggao.mjs +4 -25
  18. package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
  20. package/dist/assets/iconfont/IconMore.mjs +4 -41
  21. package/dist/assets/iconfont/IconShanchu.mjs +6 -27
  22. package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
  23. package/dist/assets/iconfont/IconSousuo.mjs +6 -27
  24. package/dist/assets/iconfont/IconTejincou.mjs +4 -25
  25. package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
  26. package/dist/assets/iconfont/IconTishi1.mjs +6 -27
  27. package/dist/assets/iconfont/IconTuodong.mjs +7 -28
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
  29. package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
  34. package/dist/assets/iconfont/index.mjs +33 -33
  35. package/dist/components/BitzAddTag/index.mjs +8 -41
  36. package/dist/components/BitzAddressBook/index.mjs +35 -122
  37. package/dist/components/BitzAppPage/index.mjs +4 -18
  38. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  39. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  40. package/dist/components/BitzButton/index.mjs +9 -23
  41. package/dist/components/BitzCalendar/index.mjs +19 -52
  42. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  43. package/dist/components/BitzCascader/index.mjs +2 -6
  44. package/dist/components/BitzCollapse/index.mjs +4 -4
  45. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  46. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  47. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  48. package/dist/components/BitzDescriptions/index.mjs +1 -11
  49. package/dist/components/BitzDrawer/index.mjs +2 -17
  50. package/dist/components/BitzEmpty/index.mjs +2 -6
  51. package/dist/components/BitzException/index.mjs +1 -6
  52. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  53. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  54. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  55. package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
  57. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  58. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  59. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  60. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  61. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  62. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  63. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
  64. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
  65. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
  66. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  67. package/dist/components/BitzFullScreen/index.mjs +6 -9
  68. package/dist/components/BitzHighlight/Child.mjs +9 -23
  69. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  70. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  71. package/dist/components/BitzHighlight/style.mjs +1 -4
  72. package/dist/components/BitzImage/index.mjs +1 -1
  73. package/dist/components/BitzImage/previewImage.mjs +5 -12
  74. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  75. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  76. package/dist/components/BitzList/List.mjs +3 -17
  77. package/dist/components/BitzList/LoadMore.mjs +20 -29
  78. package/dist/components/BitzLoadMore/index.mjs +14 -34
  79. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  80. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  81. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  82. package/dist/components/BitzModal/index.mjs +11 -24
  83. package/dist/components/BitzNoData/index.mjs +1 -4
  84. package/dist/components/BitzNoMore/index.mjs +1 -1
  85. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  86. package/dist/components/BitzPageContainer/index.mjs +46 -107
  87. package/dist/components/BitzPageHeader/index.mjs +21 -89
  88. package/dist/components/BitzPagination/index.mjs +22 -71
  89. package/dist/components/BitzPopover/index.mjs +4 -4
  90. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  91. package/dist/components/BitzQRCode/index.mjs +1 -6
  92. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  93. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  94. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  95. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  96. package/dist/components/BitzRefresh/index.mjs +1 -5
  97. package/dist/components/BitzRemark/index.mjs +4 -4
  98. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  99. package/dist/components/BitzSearch/index.mjs +1 -1
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  101. package/dist/components/BitzSelect/index.mjs +1 -1
  102. package/dist/components/BitzSkeleton/index.mjs +1 -31
  103. package/dist/components/BitzSwitch/index.mjs +2 -7
  104. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  105. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  106. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
  107. package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
  108. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  109. package/dist/components/BitzTable/ActionCol/index.mjs +44 -182
  110. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  111. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  112. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  113. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  114. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
  115. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  116. package/dist/components/BitzTable/Store/index.mjs +62 -103
  117. package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
  118. package/dist/components/BitzTable/SubTable/index.mjs +73 -122
  119. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
  120. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  121. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  122. package/dist/components/BitzTable/Table/index.mjs +295 -544
  123. package/dist/components/BitzTable/Table/style.mjs +1 -10
  124. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  125. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +31 -105
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +159 -346
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +38 -135
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +5 -18
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +49 -121
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +18 -62
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +16 -59
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
  139. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +5 -20
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +14 -46
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
  143. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  144. package/dist/components/BitzTableOperations/index.mjs +3 -13
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  146. package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
  150. package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
  151. package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
  152. package/dist/components/BitzTableSelect/index.mjs +14 -65
  153. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  154. package/dist/components/BitzTag/index.mjs +1 -1
  155. package/dist/components/BitzText/index.mjs +14 -41
  156. package/dist/components/BitzText/utils.mjs +3 -3
  157. package/dist/components/BitzTheme/index.mjs +6 -6
  158. package/dist/components/BitzTimeline/index.mjs +1 -11
  159. package/dist/components/BitzTimer/Form.mjs +11 -32
  160. package/dist/components/BitzTimer/Timer.mjs +38 -76
  161. package/dist/components/BitzTimer/index.mjs +43 -66
  162. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  163. package/dist/components/BitzToast/index.mjs +1 -1
  164. package/dist/components/BitzTooltip/index.mjs +20 -59
  165. package/dist/components/BitzTooltip/style.mjs +6 -9
  166. package/dist/components/BitzTooltip/utils.mjs +2 -2
  167. package/dist/components/BitzTree/index.mjs +1 -4
  168. package/dist/components/BitzUeEditor/index.mjs +5 -5
  169. package/dist/components/BitzUpload/index.mjs +43 -81
  170. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  171. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  172. package/dist/hooks/use-event-listener.mjs +2 -11
  173. package/dist/hooks/use-lock-fn.mjs +10 -13
  174. package/dist/hooks/use-scroll-parent.mjs +14 -16
  175. package/dist/hooks/useEvent.mjs +4 -7
  176. package/dist/hooks/useMergedState.mjs +11 -11
  177. package/dist/style.css +1 -1
  178. package/dist/utils/WithFluent.mjs +3 -9
  179. package/dist/utils/create.mjs +1 -7
  180. package/package.json +1 -1
@@ -1,53 +1,27 @@
1
1
  import { j as o } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
- import { DndContext as j, closestCenter as u, DragOverlay as h } from "../../../../../node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { SortableContext as v, rectSortingStrategy as y, arrayMove as l } from "../../../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
- import { useState as C } from "react";
2
+ import { DndContext as p, closestCenter as j, DragOverlay as u } from "../../../../../node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
+ import { SortableContext as C, rectSortingStrategy as v, arrayMove as l } from "../../../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
+ import { useState as y } from "react";
5
5
  import m from "./DndItem.mjs";
6
- const E = ({ dataList: r, keys: a, onChange: x, onMoveEnd: d }) => {
7
- const [s, c] = C(-1), f = (t) => {
6
+ const N = ({ dataList: n, keys: a, onChange: x, onMoveEnd: d }) => {
7
+ const [s, c] = y(-1), f = (t) => {
8
8
  const { active: e } = t;
9
9
  e && c(e.data.current.sortable.index);
10
- }, D = (t) => {
10
+ }, g = (t) => {
11
11
  const { over: e } = t;
12
12
  if (e) {
13
- const n = e.data.current.sortable.index;
14
- s !== n && (g(s, n), c(-1));
13
+ const r = e.data.current.sortable.index;
14
+ s !== r && (D(s, r), c(-1));
15
15
  }
16
- }, g = (t, e) => {
17
- const n = l(a, t, e), i = l(r, t, e);
18
- d(i, n);
19
- }, p = (t, e) => {
20
- const n = r.findIndex((S) => S.field === t), i = JSON.parse(JSON.stringify(r));
21
- i[n].show = e, x(i);
16
+ }, D = (t, e) => {
17
+ const r = l(a, t, e), i = l(n, t, e);
18
+ d(i, r);
19
+ }, S = (t, e) => {
20
+ const r = n.findIndex((h) => h.field === t), i = JSON.parse(JSON.stringify(n));
21
+ i[r].show = e, x(i);
22
22
  };
23
- return /* @__PURE__ */ o.jsx(
24
- j,
25
- {
26
- collisionDetection: u,
27
- onDragStart: f,
28
- onDragEnd: D,
29
- onDragCancel: () => c(-1),
30
- children: /* @__PURE__ */ o.jsx(v, { items: a, strategy: y, children: /* @__PURE__ */ o.jsxs("div", { className: "sortList", children: [
31
- r.map((t) => /* @__PURE__ */ o.jsx(
32
- m,
33
- {
34
- item: t,
35
- onCheckboxChange: p
36
- },
37
- t.field
38
- )),
39
- /* @__PURE__ */ o.jsx(h, { children: s !== -1 && /* @__PURE__ */ o.jsx(
40
- m,
41
- {
42
- item: r[s],
43
- isDragOverlay: !0
44
- },
45
- r[s].field
46
- ) })
47
- ] }) })
48
- }
49
- );
23
+ return o.jsx(p, { collisionDetection: j, onDragStart: f, onDragEnd: g, onDragCancel: () => c(-1), children: o.jsx(C, { items: a, strategy: v, children: o.jsxs("div", { className: "sortList", children: [n.map((t) => o.jsx(m, { item: t, onCheckboxChange: S }, t.field)), o.jsx(u, { children: s !== -1 && o.jsx(m, { item: n[s], isDragOverlay: !0 }, n[s].field) })] }) }) });
50
24
  };
51
25
  export {
52
- E as default
26
+ N as default
53
27
  };
@@ -1,26 +1,21 @@
1
- import { j as t } from "../../../../../node_modules/react/jsx-runtime.mjs";
1
+ import { j as n } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
2
  import { BitzTableContext as Q } from "../../../Store/index.mjs";
3
3
  import U from "../../../../BitzTheme/index.mjs";
4
4
  import { findParentFirstNodeByClass as W } from "../../../../../utils/findNode.mjs";
5
5
  import { css as X } from "../../../../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
6
- import { Form as T, Flex as C, Checkbox as Y, Button as Z, Radio as u, InputNumber as H, Select as ee } from "antd";
7
- import { memo as te, useRef as I, useEffect as K, useMemo as p, useContext as ne, useState as h, useImperativeHandle as oe } from "react";
6
+ import { Form as k, Flex as C, Checkbox as Y, Button as Z, Radio as d, InputNumber as H, Select as ee } from "antd";
7
+ import { memo as ne, useRef as D, useEffect as I, useMemo as p, useContext as te, useState as h, useImperativeHandle as oe } from "react";
8
8
  import le from "./DndList.mjs";
9
9
  import se from "../../../../../node_modules/lodash-es/merge.mjs";
10
10
  import re from "../../../../../node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
11
- function ae({
12
- display: s,
13
- postHeight: r,
14
- showSelectRadio: j = !1,
15
- refInstance: M
16
- }) {
17
- const { token: O } = U.useToken();
18
- I(null);
19
- const m = I(null);
20
- K(() => {
11
+ function ie({ display: s, postHeight: r, showSelectRadio: j = !1, refInstance: M }) {
12
+ const { token: K } = U.useToken();
13
+ D(null);
14
+ const m = D(null);
15
+ I(() => {
21
16
  m.current && (r == null || r(m.current.clientHeight));
22
17
  }, [m.current]);
23
- const P = p(() => ({
18
+ const O = p(() => ({
24
19
  // display: display ? 'flex' : 'none'
25
20
  width: s ? "100%" : 0,
26
21
  pointerEvents: s ? "auto" : "none",
@@ -31,154 +26,62 @@ function ae({
31
26
  left: 0,
32
27
  right: 0
33
28
  }
34
- }), [s]), a = ne(Q), N = a.defaultTableExportConfig, y = a.exportConfigHardCodedValue, v = a.exportConfig, w = a.selected, n = a.pagination, i = a.total, [c, A] = h([]), [f, d] = h([]), [k, b] = h("current"), [x, R] = h("page"), [E, S] = h(1);
35
- K(() => {
36
- var V, z, B, F;
29
+ }), [s]), i = te(Q), b = i.defaultTableExportConfig, y = i.exportConfigHardCodedValue, v = i.exportConfig, w = i.selected, t = i.pagination, a = i.total, [c, A] = h([]), [u, f] = h([]), [E, F] = h("current"), [x, T] = h("page"), [B, N] = h(1);
30
+ I(() => {
31
+ var R, S, V, z;
37
32
  let e = { ...v };
38
- y && (e = se(v, y)), d(e.fields), A(e.fields.map((J) => J.field));
33
+ y && (e = se(v, y)), f(e.fields), A(e.fields.map((J) => J.field));
39
34
  let g = j && w ? "selectedRows" : e.config.key;
40
- b(g), R(((z = (V = e.config) == null ? void 0 : V.info) == null ? void 0 : z.type) ?? "page"), S(((F = (B = e.config) == null ? void 0 : B.info) == null ? void 0 : F.value) ?? 1);
35
+ F(g), T(((S = (R = e.config) == null ? void 0 : R.info) == null ? void 0 : S.type) ?? "page"), N(((z = (V = e.config) == null ? void 0 : V.info) == null ? void 0 : z.value) ?? 1);
41
36
  }, [v, y, j, w]);
42
- const l = p(() => f.filter((e) => e.show).map((e) => e.field), [f]), D = p(() => c.length === l.length, [c, l]), L = p(() => l.length > 0 && l.length < c.length, [l, c]), _ = ({ target: e }) => {
43
- d(f.map((o) => ({ ...o, show: e.checked })));
37
+ const l = p(() => u.filter((e) => e.show).map((e) => e.field), [u]), P = p(() => c.length === l.length, [c, l]), L = p(() => l.length > 0 && l.length < c.length, [l, c]), _ = ({ target: e }) => {
38
+ f(u.map((o) => ({ ...o, show: e.checked })));
44
39
  }, $ = (e, o) => {
45
- d(e), A(o);
40
+ f(e), A(o);
46
41
  }, G = p(() => {
47
42
  if (x === "page") {
48
- if (i && (n != null && n.size)) {
49
- let e = Math.floor(i / (n == null ? void 0 : n.size));
50
- return i % (n == null ? void 0 : n.size) && e++, e;
43
+ if (a && (t != null && t.size)) {
44
+ let e = Math.floor(a / (t == null ? void 0 : t.size));
45
+ return a % (t == null ? void 0 : t.size) && e++, e;
51
46
  }
52
47
  return 1;
53
48
  }
54
- return i;
55
- }, [x, n, i]), q = () => {
56
- d(N.fields), b(N.config.key);
49
+ return a;
50
+ }, [x, t, a]), q = () => {
51
+ f(b.fields), F(b.config.key);
57
52
  };
58
53
  return oe(M, () => ({
59
54
  getExportConfig: () => {
60
55
  const e = {
61
56
  fields: [],
62
57
  config: {
63
- key: k,
58
+ key: E,
64
59
  info: void 0
65
60
  }
66
61
  };
67
- return f.forEach((o) => {
62
+ return u.forEach((o) => {
68
63
  let g = !1;
69
64
  l.includes(o.field) && (g = !0), e.fields.push({ ...o, show: g });
70
- }), k === "any" && (e.config.info = {
65
+ }), E === "any" && (e.config.info = {
71
66
  type: x,
72
- value: (E || 0) < 1 ? 1 : E || 1
67
+ value: (B || 0) < 1 ? 1 : B || 1
73
68
  }), { ...e };
74
69
  },
75
70
  hasOne: () => l.length > 0
76
- })), /* @__PURE__ */ t.jsx("div", { ref: m, style: P, children: /* @__PURE__ */ t.jsxs(
77
- T,
78
- {
79
- style: { width: "100%" },
80
- labelCol: { span: 3 },
81
- labelAlign: "left",
82
- colon: !1,
83
- className: "exportConfigFormContent",
84
- ...r && {
85
- style: { paddingTop: 16 }
86
- },
87
- children: [
88
- /* @__PURE__ */ t.jsx(T.Item, { label: "导出字段", className: "exportFields", children: /* @__PURE__ */ t.jsxs(C, { gap: 8, vertical: !0, children: [
89
- /* @__PURE__ */ t.jsxs(C, { gap: 20, className: "checkAllAndReset", children: [
90
- /* @__PURE__ */ t.jsx(
91
- Y,
92
- {
93
- checked: D,
94
- indeterminate: L,
95
- onChange: _,
96
- style: { alignSelf: "flex-start" },
97
- children: /* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "全选" })
98
- }
99
- ),
100
- r && /* @__PURE__ */ t.jsx(
101
- Z,
102
- {
103
- type: "link",
104
- icon: /* @__PURE__ */ t.jsx(re, {}),
105
- size: "small",
106
- onClick: q,
107
- className: X`
71
+ })), n.jsx("div", { ref: m, style: O, children: n.jsxs(k, { style: { width: "100%" }, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "exportConfigFormContent", ...r && {
72
+ style: { paddingTop: 16 }
73
+ }, children: [n.jsx(k.Item, { label: "导出字段", className: "exportFields", children: n.jsxs(C, { gap: 8, vertical: !0, children: [n.jsxs(C, { gap: 20, className: "checkAllAndReset", children: [n.jsx(Y, { checked: P, indeterminate: L, onChange: _, style: { alignSelf: "flex-start" }, children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "全选" }) }), r && n.jsx(Z, { type: "link", icon: n.jsx(re, {}), size: "small", onClick: q, className: X`
108
74
  &:hover {
109
- color: ${O.colorPrimary} !important;
75
+ color: ${K.colorPrimary} !important;
110
76
  }
111
- `,
112
- children: /* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "重置" })
113
- }
114
- )
115
- ] }),
116
- /* @__PURE__ */ t.jsx(
117
- le,
118
- {
119
- dataList: f,
120
- keys: c,
121
- onChange: d,
122
- onMoveEnd: $
123
- }
124
- )
125
- ] }) }),
126
- /* @__PURE__ */ t.jsx(
127
- T.Item,
128
- {
129
- label: "导出设置",
130
- className: "exportTotal",
131
- ...r && {
132
- style: { paddingBottom: 8 }
133
- },
134
- children: /* @__PURE__ */ t.jsx(
135
- u.Group,
136
- {
137
- value: k,
138
- onChange: ({ target: e }) => b(e.value),
139
- children: /* @__PURE__ */ t.jsxs(C, { vertical: !0, gap: 8, align: "flex-start", children: [
140
- j && w && /* @__PURE__ */ t.jsx(u, { value: "selectedRows", children: "导出选中数据" }),
141
- /* @__PURE__ */ t.jsx(u, { value: "current", children: "仅导出当前页" }),
142
- /* @__PURE__ */ t.jsx(u, { value: "any", children: /* @__PURE__ */ t.jsxs(C, { align: "center", gap: 8, children: [
143
- /* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }),
144
- /* @__PURE__ */ t.jsx(
145
- H,
146
- {
147
- controls: !1,
148
- precision: 0,
149
- min: 1,
150
- max: G,
151
- value: E,
152
- onChange: (e) => S(e),
153
- style: { width: 120 },
154
- addonAfter: /* @__PURE__ */ t.jsx(
155
- ee,
156
- {
157
- value: x,
158
- onChange: R,
159
- options: [
160
- { label: "页", value: "page" },
161
- { label: "条", value: "pieces" }
162
- ],
163
- onClick: (e) => e.preventDefault(),
164
- getPopupContainer: (e) => W(e, "containerBody")
165
- }
166
- )
167
- }
168
- ),
169
- /* @__PURE__ */ t.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })
170
- ] }) }),
171
- /* @__PURE__ */ t.jsx(u, { value: "all", children: "导出全部数据" })
172
- ] })
173
- }
174
- )
175
- }
176
- )
177
- ]
178
- }
179
- ) });
77
+ `, children: n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "重置" }) })] }), n.jsx(le, { dataList: u, keys: c, onChange: f, onMoveEnd: $ })] }) }), n.jsx(k.Item, { label: "导出设置", className: "exportTotal", ...r && {
78
+ style: { paddingBottom: 8 }
79
+ }, children: n.jsx(d.Group, { value: E, onChange: ({ target: e }) => F(e.value), children: n.jsxs(C, { vertical: !0, gap: 8, align: "flex-start", children: [j && w && n.jsx(d, { value: "selectedRows", children: "导出选中数据" }), n.jsx(d, { value: "current", children: "仅导出当前页" }), n.jsx(d, { value: "any", children: n.jsxs(C, { align: "center", gap: 8, children: [n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "导出" }), n.jsx(H, { controls: !1, precision: 0, min: 1, max: G, value: B, onChange: (e) => N(e), style: { width: 120 }, addonAfter: n.jsx(ee, { value: x, onChange: T, options: [
80
+ { label: "页", value: "page" },
81
+ { label: "条", value: "pieces" }
82
+ ], onClick: (e) => e.preventDefault(), getPopupContainer: (e) => W(e, "containerBody") }) }), n.jsx("span", { style: { whiteSpace: "nowrap" }, children: "数据" })] }) }), n.jsx(d, { value: "all", children: "导出全部数据" })] }) }) })] }) });
180
83
  }
181
- const Ce = te(ae);
84
+ const Ce = ne(ie);
182
85
  export {
183
86
  Ce as default
184
87
  };
@@ -1,13 +1,6 @@
1
1
  import { j as r } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
2
  import { Radio as i, Flex as o, Typography as s } from "antd";
3
- const d = ({
4
- label: e,
5
- value: t,
6
- children: a
7
- }) => /* @__PURE__ */ r.jsx(i, { value: t, children: /* @__PURE__ */ r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [
8
- a,
9
- /* @__PURE__ */ r.jsx(s.Text, { children: e })
10
- ] }) });
3
+ const x = ({ label: e, value: t, children: a }) => r.jsx(i, { value: t, children: r.jsxs(o, { vertical: !0, align: "center", gap: 8, children: [a, r.jsx(s.Text, { children: e })] }) });
11
4
  export {
12
- d as default
5
+ x as default
13
6
  };
@@ -1,22 +1,9 @@
1
1
  import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
- import { Flex as l, Switch as i } from "antd";
3
- import { useId as n } from "react";
4
- const s = "stylesScope", h = ({ value: t, disabled: o, onChange: c }) => {
5
- const r = n();
6
- return /* @__PURE__ */ e.jsxs(l, { align: "center", gap: 10, children: [
7
- /* @__PURE__ */ e.jsx("label", { htmlFor: `${s}${r}`, className: "stylesScopeLabel", children: "应用到全局表格" }),
8
- /* @__PURE__ */ e.jsx(
9
- i,
10
- {
11
- id: `${s}${r}`,
12
- value: t,
13
- onChange: c,
14
- disabled: o,
15
- checkedChildren: "是",
16
- unCheckedChildren: "否"
17
- }
18
- )
19
- ] });
2
+ import { Flex as c, Switch as u } from "antd";
3
+ import { useId as i } from "react";
4
+ const r = "stylesScope", h = ({ value: o, disabled: t, onChange: l }) => {
5
+ const s = i();
6
+ return e.jsxs(c, { align: "center", gap: 10, children: [e.jsx("label", { htmlFor: `${r}${s}`, className: "stylesScopeLabel", children: "应用到全局表格" }), e.jsx(u, { id: `${r}${s}`, value: o, onChange: l, disabled: t, checkedChildren: "是", unCheckedChildren: "否" })] });
20
7
  };
21
8
  export {
22
9
  h as default
@@ -1,36 +1,36 @@
1
1
  import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
- import G from "../../../../../assets/iconfont/IconKuansongde.mjs";
3
- import N from "../../../../../assets/iconfont/IconTekuansong.mjs";
4
- import W from "../../../../../assets/iconfont/IconJincoude.mjs";
5
- import E from "../../../../../assets/iconfont/IconZhongdengde.mjs";
6
- import A from "../../../../../assets/iconfont/IconTejincou.mjs";
7
- import V from "../../../../../assets/iconfont/IconWufengexian.mjs";
8
- import $ from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
9
- import D from "../../../../../assets/iconfont/IconHangfengexian.mjs";
2
+ import T from "../../../../../assets/iconfont/IconKuansongde.mjs";
3
+ import A from "../../../../../assets/iconfont/IconTekuansong.mjs";
4
+ import G from "../../../../../assets/iconfont/IconJincoude.mjs";
5
+ import N from "../../../../../assets/iconfont/IconZhongdengde.mjs";
6
+ import W from "../../../../../assets/iconfont/IconTejincou.mjs";
7
+ import D from "../../../../../assets/iconfont/IconWufengexian.mjs";
8
+ import V from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
9
+ import $ from "../../../../../assets/iconfont/IconHangfengexian.mjs";
10
10
  import J from "../../../../../assets/iconfont/IconLiefengexian.mjs";
11
11
  import K from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
12
12
  import L from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
13
13
  import { BitzConfigContext as M } from "../../../../BitzConfigProvider/context.mjs";
14
14
  import { BitzTableContext as O } from "../../../Store/index.mjs";
15
15
  import Y from "../../../../BitzTheme/index.mjs";
16
- import { Form as n, Radio as p, Row as Z, Col as P, Button as q } from "antd";
16
+ import { Form as n, Radio as p, Row as Z, Col as I, Button as q } from "antd";
17
17
  import Q from "../../../../../node_modules/classnames/index.mjs";
18
- import { forwardRef as U, useRef as v, useEffect as x, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
18
+ import { forwardRef as U, useRef as P, useEffect as x, useMemo as X, useContext as h, useImperativeHandle as _, useState as ee, memo as oe } from "react";
19
19
  import { BitzToolBarContext as re } from "../../Wrapper/context.mjs";
20
20
  import s from "./RadioCard.mjs";
21
21
  import le from "./ScopeSwitch.mjs";
22
22
  import se from "../../../../../node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
23
- const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
23
+ const te = ({ defaultSize: l, items: u }) => u.map((t) => t.key === l ? {
24
24
  ...t,
25
25
  label: `${t.label}(默认)`
26
- } : t), ie = U(({ display: l, postHeight: d }, t) => {
26
+ } : t), ie = U(({ display: l, postHeight: u }, t) => {
27
27
  var j, g;
28
- const { token: o } = Y.useToken(), y = v(null);
28
+ const { token: o } = Y.useToken(), y = P(null);
29
29
  x(() => {
30
30
  var r;
31
- d((r = y.current) == null ? void 0 : r.clientHeight);
31
+ u((r = y.current) == null ? void 0 : r.clientHeight);
32
32
  }, []);
33
- const C = X(() => ({
33
+ const v = X(() => ({
34
34
  display: "flex",
35
35
  width: l ? "100%" : 0,
36
36
  pointerEvents: l ? "auto" : "none",
@@ -44,151 +44,79 @@ const te = ({ defaultSize: l, items: d }) => d.map((t) => t.key === l ? {
44
44
  }), [l]), S = {
45
45
  size: 26,
46
46
  color: o.colorPrimary
47
- }, [a] = n.useForm(), w = (j = h(M).Table) == null ? void 0 : j.stylesScope, { defaultTableSize: H, stylesConfig: R, defaultTableStylesConfig: b } = h(O), i = (g = h(re).config) == null ? void 0 : g.stylesConfig, u = (r, c) => {
48
- var z, I;
47
+ }, [a] = n.useForm(), B = (j = h(M).Table) == null ? void 0 : j.stylesScope, { defaultTableSize: w, stylesConfig: E, defaultTableStylesConfig: b } = h(O), i = (g = h(re).config) == null ? void 0 : g.stylesConfig, d = (r, c) => {
48
+ var C, z;
49
49
  let m = c;
50
- return (z = i == null ? void 0 : i[r]) != null && z.disabled && (m = Q(c, "disabledControl")), {
51
- disabled: (I = i == null ? void 0 : i[r]) == null ? void 0 : I.disabled,
50
+ return (C = i == null ? void 0 : i[r]) != null && C.disabled && (m = Q(c, "disabledControl")), {
51
+ disabled: (z = i == null ? void 0 : i[r]) == null ? void 0 : z.disabled,
52
52
  className: m
53
53
  };
54
54
  };
55
55
  x(() => {
56
56
  a.setFieldsValue({
57
57
  ...b,
58
- ...R,
59
- stylesScope: w === "global"
58
+ ...E,
59
+ stylesScope: B === "global"
60
60
  });
61
61
  }, []);
62
- const k = () => {
62
+ const H = () => {
63
63
  a.setFieldsValue({
64
64
  ...b,
65
65
  stylesScope: !1
66
66
  });
67
- }, T = te({
68
- defaultSize: H,
67
+ }, R = te({
68
+ defaultSize: w,
69
69
  items: [
70
70
  {
71
71
  key: "xs",
72
72
  label: "特紧凑",
73
- icon: A
73
+ icon: W
74
74
  },
75
75
  {
76
76
  key: "sm",
77
77
  label: "紧凑",
78
- icon: W
78
+ icon: G
79
79
  },
80
80
  {
81
81
  key: "md",
82
82
  label: "中等",
83
- icon: E
83
+ icon: N
84
84
  },
85
85
  {
86
86
  key: "lg",
87
87
  label: "宽松",
88
- icon: G
88
+ icon: T
89
89
  },
90
90
  {
91
91
  key: "xl",
92
92
  label: "特宽松",
93
- icon: N
93
+ icon: A
94
94
  }
95
95
  ]
96
96
  });
97
97
  _(t, () => ({
98
98
  getFormInstance: () => a
99
99
  }));
100
- const f = v(null), [B, F] = ee("auto");
100
+ const f = P(null), [F, k] = ee("auto");
101
101
  return x(() => {
102
- f && F(f.current.clientWidth + 10);
103
- }, []), /* @__PURE__ */ e.jsx("div", { style: C, ref: y, children: /* @__PURE__ */ e.jsxs(
104
- n,
105
- {
106
- form: a,
107
- style: { width: "100%" },
108
- labelCol: { span: 3 },
109
- labelAlign: "left",
110
- colon: !1,
111
- className: "stylesConfigFormContent",
112
- children: [
113
- /* @__PURE__ */ e.jsx(n.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(p.Group, { ...u("size", "sizeRadioGroup"), children: T.map(({ key: r, label: c, icon: m }) => /* @__PURE__ */ e.jsx(s, { label: c, value: r, children: /* @__PURE__ */ e.jsx(m, { ...S }) }, r)) }) }),
114
- /* @__PURE__ */ e.jsx(n.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
115
- p.Group,
116
- {
117
- ...u("bordered", "splitBorderRadioGroup"),
118
- children: [
119
- /* @__PURE__ */ e.jsx(s, { label: "无分割线", value: "hide", children: /* @__PURE__ */ e.jsx(V, { size: 26, color: o.colorPrimaryHover }) }),
120
- /* @__PURE__ */ e.jsx(s, { label: "行分割线", value: "row", children: /* @__PURE__ */ e.jsx(
121
- D,
122
- {
123
- size: 26,
124
- color: [
125
- o.colorPrimaryHover,
126
- o.colorPrimary,
127
- o.colorPrimary,
128
- o.colorPrimaryHover
129
- ]
130
- }
131
- ) }),
132
- /* @__PURE__ */ e.jsx(s, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
133
- J,
134
- {
135
- size: 26,
136
- color: [
137
- o.colorPrimaryHover,
138
- o.colorPrimary,
139
- o.colorPrimary,
140
- o.colorPrimaryHover
141
- ]
142
- }
143
- ) }),
144
- /* @__PURE__ */ e.jsx(s, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
145
- $,
146
- {
147
- size: 26,
148
- color: [
149
- o.colorPrimaryHover,
150
- o.colorPrimary,
151
- o.colorPrimary,
152
- o.colorPrimaryHover
153
- ]
154
- }
155
- ) })
156
- ]
157
- }
158
- ) }),
159
- /* @__PURE__ */ e.jsx(n.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(p.Group, { ...u("zebra", "zebraRadioGroup"), children: [
160
- /* @__PURE__ */ e.jsx(s, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
161
- K,
162
- {
163
- size: 26,
164
- color: [o.colorPrimaryHover, o.colorPrimary]
165
- }
166
- ) }),
167
- /* @__PURE__ */ e.jsx(s, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
168
- L,
169
- {
170
- size: 26,
171
- color: o.colorPrimaryHover
172
- }
173
- ) })
174
- ] }) }),
175
- /* @__PURE__ */ e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [
176
- /* @__PURE__ */ e.jsx(P, { ref: f, style: { width: B }, className: "scope", children: /* @__PURE__ */ e.jsx(n.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(le, {}) }) }),
177
- /* @__PURE__ */ e.jsx(P, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
178
- q,
179
- {
180
- type: "link",
181
- icon: /* @__PURE__ */ e.jsx(se, {}),
182
- size: "small",
183
- onClick: k,
184
- children: "重置"
185
- }
186
- ) })
187
- ] })
188
- ]
189
- }
190
- ) });
191
- }), Re = oe(ie);
102
+ f && k(f.current.clientWidth + 10);
103
+ }, []), e.jsx("div", { style: v, ref: y, children: e.jsxs(n, { form: a, style: { width: "100%" }, labelCol: { span: 3 }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [e.jsx(n.Item, { label: "行高", name: "size", children: e.jsx(p.Group, { ...d("size", "sizeRadioGroup"), children: R.map(({ key: r, label: c, icon: m }) => e.jsx(s, { label: c, value: r, children: e.jsx(m, { ...S }) }, r)) }) }), e.jsx(n.Item, { label: "分割线", name: "bordered", children: e.jsxs(p.Group, { ...d("bordered", "splitBorderRadioGroup"), children: [e.jsx(s, { label: "无分割线", value: "hide", children: e.jsx(D, { size: 26, color: o.colorPrimaryHover }) }), e.jsx(s, { label: "行分割线", value: "row", children: e.jsx($, { size: 26, color: [
104
+ o.colorPrimaryHover,
105
+ o.colorPrimary,
106
+ o.colorPrimary,
107
+ o.colorPrimaryHover
108
+ ] }) }), e.jsx(s, { label: "列分割线", value: "column", children: e.jsx(J, { size: 26, color: [
109
+ o.colorPrimaryHover,
110
+ o.colorPrimary,
111
+ o.colorPrimary,
112
+ o.colorPrimaryHover
113
+ ] }) }), e.jsx(s, { label: "行列分割线", value: "row-column", children: e.jsx(V, { size: 26, color: [
114
+ o.colorPrimaryHover,
115
+ o.colorPrimary,
116
+ o.colorPrimary,
117
+ o.colorPrimaryHover
118
+ ] }) })] }) }), e.jsx(n.Item, { label: "斑马纹", name: "zebra", children: e.jsxs(p.Group, { ...d("zebra", "zebraRadioGroup"), children: [e.jsx(s, { label: "有斑马纹", value: !0, children: e.jsx(K, { size: 26, color: [o.colorPrimaryHover, o.colorPrimary] }) }), e.jsx(s, { label: "无斑马纹", value: !1, children: e.jsx(L, { size: 26, color: o.colorPrimaryHover }) })] }) }), e.jsxs(Z, { gutter: 16, className: "scopeAndReset", children: [e.jsx(I, { ref: f, style: { width: F }, className: "scope", children: e.jsx(n.Item, { name: "stylesScope", children: e.jsx(le, {}) }) }), e.jsx(I, { style: { alignSelf: "flex-end" }, className: "reset", children: e.jsx(q, { type: "link", icon: e.jsx(se, {}), size: "small", onClick: H, children: "重置" }) })] })] }) });
119
+ }), Ee = oe(ie);
192
120
  export {
193
- Re as default
121
+ Ee as default
194
122
  };