bitz-react-admin-ui 2.5.7 → 2.5.9

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 (190) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/assets/iconfont/IconChenggong.mjs +4 -25
  4. package/dist/assets/iconfont/IconClose.mjs +3 -24
  5. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
  6. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
  7. package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
  8. package/dist/assets/iconfont/IconCuowu.mjs +2 -23
  9. package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
  10. package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
  11. package/dist/assets/iconfont/IconFabu.mjs +5 -35
  12. package/dist/assets/iconfont/IconFanhui.mjs +4 -25
  13. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
  14. package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
  15. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
  16. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
  17. package/dist/assets/iconfont/IconIcon21.mjs +4 -25
  18. package/dist/assets/iconfont/IconJincoude.mjs +4 -25
  19. package/dist/assets/iconfont/IconJinggao.mjs +4 -25
  20. package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
  21. package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
  22. package/dist/assets/iconfont/IconMore.mjs +4 -41
  23. package/dist/assets/iconfont/IconShanchu.mjs +6 -27
  24. package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
  25. package/dist/assets/iconfont/IconSousuo.mjs +6 -27
  26. package/dist/assets/iconfont/IconTejincou.mjs +4 -25
  27. package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
  28. package/dist/assets/iconfont/IconTishi1.mjs +6 -27
  29. package/dist/assets/iconfont/IconTuodong.mjs +7 -28
  30. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
  31. package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
  32. package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
  33. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
  34. package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
  35. package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
  36. package/dist/assets/iconfont/index.mjs +33 -33
  37. package/dist/components/BitzAddTag/index.mjs +8 -41
  38. package/dist/components/BitzAddressBook/index.mjs +35 -122
  39. package/dist/components/BitzAppPage/index.mjs +4 -18
  40. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  41. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  42. package/dist/components/BitzButton/index.mjs +9 -23
  43. package/dist/components/BitzCalendar/index.mjs +19 -52
  44. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  45. package/dist/components/BitzCascader/index.mjs +2 -6
  46. package/dist/components/BitzCollapse/index.mjs +4 -4
  47. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  48. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  49. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  50. package/dist/components/BitzDescriptions/index.mjs +1 -11
  51. package/dist/components/BitzDrawer/index.mjs +2 -17
  52. package/dist/components/BitzEmpty/index.mjs +2 -6
  53. package/dist/components/BitzException/index.mjs +1 -6
  54. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  55. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  57. package/dist/components/BitzFluentRangeTimePicker/index.d.ts +5 -0
  58. package/dist/components/BitzFluentRangeTimePicker/index.mjs +10 -0
  59. package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
  60. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  61. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  62. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  63. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  64. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  65. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  66. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
  67. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
  68. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
  69. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  70. package/dist/components/BitzFullScreen/index.mjs +6 -9
  71. package/dist/components/BitzHighlight/Child.mjs +9 -23
  72. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  73. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  74. package/dist/components/BitzHighlight/style.mjs +1 -4
  75. package/dist/components/BitzImage/index.mjs +1 -1
  76. package/dist/components/BitzImage/previewImage.mjs +5 -12
  77. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  78. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  79. package/dist/components/BitzList/List.mjs +3 -17
  80. package/dist/components/BitzList/LoadMore.mjs +20 -29
  81. package/dist/components/BitzLoadMore/index.mjs +14 -34
  82. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  83. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  84. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  85. package/dist/components/BitzModal/index.mjs +11 -24
  86. package/dist/components/BitzNoData/index.mjs +1 -4
  87. package/dist/components/BitzNoMore/index.mjs +1 -1
  88. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  89. package/dist/components/BitzPageContainer/index.mjs +46 -107
  90. package/dist/components/BitzPageHeader/index.mjs +21 -89
  91. package/dist/components/BitzPagination/index.mjs +22 -71
  92. package/dist/components/BitzPopover/index.mjs +4 -4
  93. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  94. package/dist/components/BitzQRCode/index.mjs +1 -6
  95. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  96. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  97. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  98. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  99. package/dist/components/BitzRefresh/index.mjs +1 -5
  100. package/dist/components/BitzRemark/index.mjs +4 -4
  101. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  102. package/dist/components/BitzSearch/index.mjs +1 -1
  103. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  104. package/dist/components/BitzSelect/index.mjs +1 -1
  105. package/dist/components/BitzSkeleton/index.mjs +1 -31
  106. package/dist/components/BitzSwitch/index.mjs +2 -7
  107. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  108. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  109. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
  110. package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
  111. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  112. package/dist/components/BitzTable/ActionCol/index.mjs +33 -129
  113. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  114. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  115. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  116. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  117. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
  118. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  119. package/dist/components/BitzTable/Store/index.d.ts +11 -2
  120. package/dist/components/BitzTable/Store/index.mjs +200 -224
  121. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
  122. package/dist/components/BitzTable/Store/utils/index.mjs +41 -30
  123. package/dist/components/BitzTable/SubTable/index.mjs +43 -91
  124. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
  125. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  126. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  127. package/dist/components/BitzTable/Table/index.mjs +230 -475
  128. package/dist/components/BitzTable/Table/style.mjs +1 -10
  129. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  130. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +27 -83
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +143 -251
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +2 -1
  138. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +63 -116
  139. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  140. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +43 -97
  141. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
  142. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +10 -1
  143. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +13 -42
  144. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
  145. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  146. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +8 -37
  147. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  148. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
  149. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  150. package/dist/components/BitzTableOperations/index.mjs +3 -13
  151. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  152. package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
  153. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
  154. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
  155. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
  156. package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
  157. package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
  158. package/dist/components/BitzTableSelect/index.mjs +14 -65
  159. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  160. package/dist/components/BitzTag/index.mjs +1 -1
  161. package/dist/components/BitzText/index.mjs +14 -41
  162. package/dist/components/BitzText/utils.mjs +3 -3
  163. package/dist/components/BitzTheme/index.mjs +6 -6
  164. package/dist/components/BitzTimeline/index.mjs +1 -11
  165. package/dist/components/BitzTimer/Form.mjs +11 -32
  166. package/dist/components/BitzTimer/Timer.mjs +38 -76
  167. package/dist/components/BitzTimer/index.mjs +43 -66
  168. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  169. package/dist/components/BitzToast/index.mjs +1 -1
  170. package/dist/components/BitzTooltip/index.mjs +17 -47
  171. package/dist/components/BitzTooltip/style.mjs +6 -9
  172. package/dist/components/BitzTooltip/utils.mjs +2 -2
  173. package/dist/components/BitzTree/index.mjs +1 -4
  174. package/dist/components/BitzUeEditor/index.mjs +5 -5
  175. package/dist/components/BitzUpload/index.mjs +43 -81
  176. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  177. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  178. package/dist/hooks/use-event-listener.mjs +2 -11
  179. package/dist/hooks/use-lock-fn.mjs +10 -13
  180. package/dist/hooks/use-scroll-parent.mjs +14 -16
  181. package/dist/hooks/useEvent.mjs +4 -7
  182. package/dist/hooks/useMergedState.mjs +11 -11
  183. package/dist/index.d.ts +1 -0
  184. package/dist/index.mjs +108 -106
  185. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  186. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/utils/WithFluent.mjs +5 -27
  189. package/dist/utils/create.mjs +1 -7
  190. package/package.json +1 -1
@@ -1,267 +1,159 @@
1
1
  import { j as l } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { findParentFirstNodeByClass as pe } from "../../../../../utils/findNode.mjs";
3
3
  import { css as me } from "../../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
4
- import { theme as ge, Flex as D, Typography as P, Space as xe, Checkbox as Ce, Button as ye } from "antd";
5
- import { forwardRef as ke, useRef as we, useState as m, useEffect as O, useMemo as S, useContext as Me, useImperativeHandle as Se, memo as Le } from "react";
4
+ import { theme as ge, Flex as T, Typography as P, Space as xe, Checkbox as Ce, Button as ye } from "antd";
5
+ import { forwardRef as ke, useRef as Le, useState as m, useEffect as D, useMemo as M, useContext as we, useImperativeHandle as Me, memo as Se } from "react";
6
6
  import { useImmer as je } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
7
7
  import "../../../index.mjs";
8
- import { columnSort as be, genColumnKey as Ke, updateNestedObject as L } from "../../../Store/utils/index.mjs";
8
+ import { columnSort as be, genColumnKey as Ke, updateNestedObject as S } from "../../../Store/utils/index.mjs";
9
9
  import $ from "./DndList.mjs";
10
10
  import { BitzTableContext as Re } from "../../../Store/index.mjs";
11
- import ve from "../../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
12
- import Ee from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
13
- const Ne = ke(
14
- ({ display: q }, ee) => {
15
- const { token: te } = ge.useToken(), N = we(null), [A, se] = m(0);
16
- O(() => {
17
- const e = pe(N.current, "ant-card-body");
18
- if (e) {
19
- const { paddingBlockStart: s, paddingBlockEnd: t } = window.getComputedStyle(e), n = parseInt(s) + parseInt(t), o = e.clientHeight - n, c = e.firstElementChild;
20
- if (c) {
21
- const { rowGap: r } = window.getComputedStyle(c), i = c == null ? void 0 : c.querySelector(".extraContent"), p = i == null ? void 0 : i.clientHeight, a = o - p - parseInt(r), { rowGap: _ } = window.getComputedStyle(N.current), z = a - parseInt(_) - 36;
22
- se(z);
23
- }
11
+ import Ee from "../../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
12
+ import Ne from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
13
+ const Ae = ke(({ display: q }, ee) => {
14
+ const { token: te } = ge.useToken(), A = Le(null), [z, se] = m("auto");
15
+ D(() => {
16
+ const e = pe(A.current, "ant-card-body");
17
+ if (e) {
18
+ const { paddingBlockStart: s, paddingBlockEnd: t } = window.getComputedStyle(e), o = parseInt(s) + parseInt(t), n = e.clientHeight - o, c = e.firstElementChild;
19
+ if (c) {
20
+ const { rowGap: r } = window.getComputedStyle(c), i = c == null ? void 0 : c.querySelector(".extraContent"), p = i == null ? void 0 : i.clientHeight, a = n - p - parseInt(r), { rowGap: _ } = window.getComputedStyle(A.current), H = a - parseInt(_) - 36;
21
+ se(H);
24
22
  }
25
- }, [N.current]);
26
- const oe = S(() => ({
27
- display: q ? "flex" : "none",
28
- width: "100%"
29
- }), [q]), { defaultColumnKeyMap: J, baseColumns: Q, columnsMap: U } = Me(Re), [d, V] = je({});
30
- O(() => {
31
- const e = Object.keys(U).length ? U : J;
32
- V(e);
33
- }, []);
34
- const W = S(() => ((s, t) => s.map((n) => {
35
- var z;
36
- const { key: o, dataIndex: c, children: r, ...i } = n, p = Ke(
37
- n,
38
- [t == null ? void 0 : t.columnKey, i.index].join("-")
39
- ), a = d[p || "null"] || {
23
+ }
24
+ }, [A.current]);
25
+ const ne = M(() => ({
26
+ display: q ? "flex" : "none",
27
+ width: "100%"
28
+ }), [q]), { defaultColumnKeyMap: J, baseColumns: Q, columnsMap: U } = we(Re), [d, V] = je({});
29
+ D(() => {
30
+ const e = Object.keys(U).length ? U : J;
31
+ V(e);
32
+ }, []);
33
+ const W = M(() => ((s, t) => s.map((o) => {
34
+ var H;
35
+ const { key: n, dataIndex: c, children: r, ...i } = o, p = Ke(o, [t == null ? void 0 : t.columnKey, i.index].join("-")), a = d[p || "null"] || {
36
+ show: !0
37
+ };
38
+ return {
39
+ key: p,
40
+ ...Ne(i, ["className"]),
41
+ selectable: !1,
42
+ disabled: a.disabled === !0,
43
+ disableCheckbox: typeof a.disabled == "boolean" ? a == null ? void 0 : a.disabled : (H = a == null ? void 0 : a.disabled) == null ? void 0 : H.checkbox,
44
+ isLeaf: t ? !0 : void 0,
45
+ ...a
46
+ };
47
+ }))(Q ?? []).sort(be(d)), [d, Q]);
48
+ D(() => {
49
+ var o, n;
50
+ const e = {}, s = {}, t = {};
51
+ for (const c in d)
52
+ ((o = d[c]) == null ? void 0 : o.fixed) === "left" ? e[c] = d[c] : ((n = d[c]) == null ? void 0 : n.fixed) === "right" ? s[c] = d[c] : t[c] = d[c];
53
+ g(e), x(s), C(t);
54
+ }, [d]);
55
+ const [j, I] = m([]), [y, b] = m([]), [h, g] = m({}), [K, B] = m([]), [k, R] = m([]), [u, x] = m({}), [E, F] = m([]), [L, N] = m([]), [f, C] = m({});
56
+ D(() => {
57
+ const e = [], s = [], t = [], o = [], n = [], c = [];
58
+ W.forEach((r) => {
59
+ r.fixed === "left" ? (e.push(r), s.push(r.key)) : r.fixed === "right" ? (t.push(r), o.push(r.key)) : (n.push(r), c.push(r.key));
60
+ }), I(e), b(s), B(t), R(o), F(n), N(c);
61
+ }, [W]);
62
+ const oe = (e) => {
63
+ g(e);
64
+ }, ce = (e, s) => {
65
+ g(e), b(s);
66
+ }, re = (e) => {
67
+ x(e);
68
+ }, le = (e, s) => {
69
+ x(e), R(s);
70
+ }, ie = (e) => {
71
+ C(e);
72
+ }, ae = (e, s) => {
73
+ C(e), N(s);
74
+ }, X = (e, s, t, o) => {
75
+ const n = { ...s[e] };
76
+ delete s[e], C({
77
+ ...f,
78
+ [e]: { ...n, fixed: void 0, order: E.length }
79
+ });
80
+ const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
81
+ F([...E, { ...r, fixed: void 0 }]);
82
+ const i = o.splice(c, 1);
83
+ return N([...L, ...i]), { map: s, list: t, keys: o };
84
+ }, Y = (e, s, t, o) => {
85
+ const n = { ...s[e] };
86
+ delete s[e], g({
87
+ ...h,
88
+ [e]: { ...n, fixed: "left", order: j.length, show: !0 }
89
+ });
90
+ const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
91
+ I([...j, { ...r, fixed: "left" }]);
92
+ const i = o.splice(c, 1);
93
+ return b([...y, ...i]), { map: s, list: t, keys: o };
94
+ }, Z = (e, s, t, o) => {
95
+ const n = { ...s[e] };
96
+ delete s[e], x({
97
+ ...u,
98
+ [e]: {
99
+ ...n,
100
+ fixed: "right",
101
+ order: K.length,
40
102
  show: !0
41
- };
42
- return {
43
- key: p,
44
- ...Ee(i, ["className"]),
45
- selectable: !1,
46
- disabled: a.disabled === !0,
47
- disableCheckbox: typeof a.disabled == "boolean" ? a == null ? void 0 : a.disabled : (z = a == null ? void 0 : a.disabled) == null ? void 0 : z.checkbox,
48
- isLeaf: t ? !0 : void 0,
49
- ...a
50
- };
51
- }))(Q ?? []).sort(be(d)), [d, Q]);
52
- O(() => {
53
- var n, o;
54
- const e = {}, s = {}, t = {};
55
- for (const c in d)
56
- ((n = d[c]) == null ? void 0 : n.fixed) === "left" ? e[c] = d[c] : ((o = d[c]) == null ? void 0 : o.fixed) === "right" ? s[c] = d[c] : t[c] = d[c];
57
- g(e), x(s), C(t);
58
- }, [d]);
59
- const [j, I] = m([]), [y, b] = m([]), [h, g] = m({}), [K, H] = m([]), [k, R] = m([]), [f, x] = m({}), [v, T] = m([]), [w, E] = m([]), [u, C] = m({});
60
- O(() => {
61
- const e = [], s = [], t = [], n = [], o = [], c = [];
62
- W.forEach((r) => {
63
- r.fixed === "left" ? (e.push(r), s.push(r.key)) : r.fixed === "right" ? (t.push(r), n.push(r.key)) : (o.push(r), c.push(r.key));
64
- }), I(e), b(s), H(t), R(n), T(o), E(c);
65
- }, [W]);
66
- const ne = (e) => {
67
- g(e);
68
- }, ce = (e, s) => {
69
- g(e), b(s);
70
- }, re = (e) => {
71
- x(e);
72
- }, le = (e, s) => {
73
- x(e), R(s);
74
- }, ie = (e) => {
75
- C(e);
76
- }, ae = (e, s) => {
77
- C(e), E(s);
78
- }, X = (e, s, t, n) => {
79
- const o = { ...s[e] };
80
- delete s[e], C({
81
- ...u,
82
- [e]: { ...o, fixed: void 0, order: v.length }
83
- });
84
- const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
85
- T([...v, { ...r, fixed: void 0 }]);
86
- const i = n.splice(c, 1);
87
- return E([...w, ...i]), { map: s, list: t, keys: n };
88
- }, Y = (e, s, t, n) => {
89
- const o = { ...s[e] };
90
- delete s[e], g({
91
- ...h,
92
- [e]: { ...o, fixed: "left", order: j.length, show: !0 }
93
- });
94
- const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
95
- I([...j, { ...r, fixed: "left" }]);
96
- const i = n.splice(c, 1);
97
- return b([...y, ...i]), { map: s, list: t, keys: n };
98
- }, Z = (e, s, t, n) => {
99
- const o = { ...s[e] };
100
- delete s[e], x({
101
- ...f,
102
- [e]: {
103
- ...o,
104
- fixed: "right",
105
- order: K.length,
106
- show: !0
107
- }
108
- });
109
- const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
110
- H([...K, { ...r, fixed: "right" }]);
111
- const i = n.splice(c, 1);
112
- return R([...k, ...i]), { map: s, list: t, keys: n };
113
- }, F = (e, s) => {
114
- if (s === "left") {
115
- const { map: t, list: n, keys: o } = X(
116
- e,
117
- h,
118
- j,
119
- y
120
- );
121
- g({ ...t }), I([...n]), b([...o]);
122
- } else if (s === "center") {
123
- const { map: t, list: n, keys: o } = Y(
124
- e,
125
- u,
126
- v,
127
- w
128
- );
129
- C({ ...t }), T([...n]), E([...o]);
130
- } else {
131
- const { map: t, list: n, keys: o } = Y(
132
- e,
133
- f,
134
- K,
135
- k
136
- );
137
- x({ ...t }), H([...n]), R([...o]);
138
103
  }
139
- }, G = (e, s) => {
140
- if (s === "left") {
141
- const { map: t, list: n, keys: o } = Z(
142
- e,
143
- h,
144
- j,
145
- y
146
- );
147
- g({ ...t }), I([...n]), b([...o]);
148
- } else if (s === "center") {
149
- const { map: t, list: n, keys: o } = Z(
150
- e,
151
- u,
152
- v,
153
- w
154
- );
155
- C({ ...t }), T([...n]), E([...o]);
156
- } else {
157
- const { map: t, list: n, keys: o } = X(
158
- e,
159
- f,
160
- K,
161
- k
162
- );
163
- x({ ...t }), H([...n]), R([...o]);
164
- }
165
- }, de = ({ target: e }) => {
166
- e.checked ? (g(L(h, "show", !0)), C(L(u, "show", !0)), x(L(f, "show", !0))) : (g(L(h, "show", !1)), C(L(u, "show", !1)), x(L(f, "show", !1)));
167
- }, B = S(() => [...y, ...w, ...k], [y, w, k]), M = S(() => {
168
- var s, t, n;
169
- const e = [];
170
- for (const o in h)
171
- (s = h[o]) != null && s.show && e.push(o);
172
- for (const o in u)
173
- (t = u[o]) != null && t.show && e.push(o);
174
- for (const o in f)
175
- (n = f[o]) != null && n.show && e.push(o);
176
- return e;
177
- }, [h, u, f]), he = S(() => B.length === M.length, [B, M]), fe = S(() => M.length > 0 && M.length < B.length, [M, B]), ue = () => {
178
- V({ ...J });
179
- };
180
- return Se(ee, () => ({
181
- getLeftSortColumns: () => h,
182
- getCenterSortColumns: () => u,
183
- getRightSortColumns: () => f,
184
- getCheckedKeys: () => M
185
- })), /* @__PURE__ */ l.jsxs(D, { vertical: !0, gap: 16, style: oe, ref: N, children: [
186
- /* @__PURE__ */ l.jsxs("div", { className: "sortContent", children: [
187
- /* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
188
- /* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "固定在左侧" }),
189
- /* @__PURE__ */ l.jsx(
190
- $,
191
- {
192
- placement: "left",
193
- dataList: j,
194
- keys: y,
195
- columnsMap: h,
196
- onLeftClick: F,
197
- onRightClick: G,
198
- onChange: ne,
199
- onMoveEnd: ce
200
- }
201
- )
202
- ] }),
203
- /* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
204
- /* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "不固定" }),
205
- /* @__PURE__ */ l.jsx(
206
- $,
207
- {
208
- placement: "center",
209
- dataList: v,
210
- keys: w,
211
- columnsMap: u,
212
- onLeftClick: F,
213
- onRightClick: G,
214
- onChange: ie,
215
- onMoveEnd: ae
216
- }
217
- )
218
- ] }),
219
- /* @__PURE__ */ l.jsxs(D, { vertical: !0, className: "sortCard", gap: 6, style: { height: A }, children: [
220
- /* @__PURE__ */ l.jsx(P.Title, { level: 5, className: "title", children: "固定在右侧" }),
221
- /* @__PURE__ */ l.jsx(
222
- $,
223
- {
224
- placement: "right",
225
- dataList: K,
226
- keys: k,
227
- columnsMap: f,
228
- onLeftClick: F,
229
- onRightClick: G,
230
- onChange: re,
231
- onMoveEnd: le
232
- }
233
- )
234
- ] })
235
- ] }),
236
- /* @__PURE__ */ l.jsxs(xe, { size: 16, align: "end", style: { height: 36 }, children: [
237
- /* @__PURE__ */ l.jsx(
238
- Ce,
239
- {
240
- indeterminate: fe,
241
- checked: he,
242
- onChange: de,
243
- children: "全选"
244
- }
245
- ),
246
- /* @__PURE__ */ l.jsx(
247
- ye,
248
- {
249
- type: "link",
250
- icon: /* @__PURE__ */ l.jsx(ve, {}),
251
- size: "small",
252
- onClick: ue,
253
- className: me`
104
+ });
105
+ const c = t.findIndex((p) => p.key === e), r = t.splice(c, 1)[0];
106
+ B([...K, { ...r, fixed: "right" }]);
107
+ const i = o.splice(c, 1);
108
+ return R([...k, ...i]), { map: s, list: t, keys: o };
109
+ }, O = (e, s) => {
110
+ if (s === "left") {
111
+ const { map: t, list: o, keys: n } = X(e, h, j, y);
112
+ g({ ...t }), I([...o]), b([...n]);
113
+ } else if (s === "center") {
114
+ const { map: t, list: o, keys: n } = Y(e, f, E, L);
115
+ C({ ...t }), F([...o]), N([...n]);
116
+ } else {
117
+ const { map: t, list: o, keys: n } = Y(e, u, K, k);
118
+ x({ ...t }), B([...o]), R([...n]);
119
+ }
120
+ }, G = (e, s) => {
121
+ if (s === "left") {
122
+ const { map: t, list: o, keys: n } = Z(e, h, j, y);
123
+ g({ ...t }), I([...o]), b([...n]);
124
+ } else if (s === "center") {
125
+ const { map: t, list: o, keys: n } = Z(e, f, E, L);
126
+ C({ ...t }), F([...o]), N([...n]);
127
+ } else {
128
+ const { map: t, list: o, keys: n } = X(e, u, K, k);
129
+ x({ ...t }), B([...o]), R([...n]);
130
+ }
131
+ }, de = ({ target: e }) => {
132
+ e.checked ? (g(S(h, "show", !0)), C(S(f, "show", !0)), x(S(u, "show", !0))) : (g(S(h, "show", !1)), C(S(f, "show", !1)), x(S(u, "show", !1)));
133
+ }, v = M(() => [...y, ...L, ...k], [y, L, k]), w = M(() => {
134
+ var s, t, o;
135
+ const e = [];
136
+ for (const n in h)
137
+ (s = h[n]) != null && s.show && e.push(n);
138
+ for (const n in f)
139
+ (t = f[n]) != null && t.show && e.push(n);
140
+ for (const n in u)
141
+ (o = u[n]) != null && o.show && e.push(n);
142
+ return e;
143
+ }, [h, f, u]), he = M(() => v.length === w.length, [v, w]), ue = M(() => w.length > 0 && w.length < v.length, [w, v]), fe = () => {
144
+ V({ ...J });
145
+ };
146
+ return Me(ee, () => ({
147
+ getLeftSortColumns: () => h,
148
+ getCenterSortColumns: () => f,
149
+ getRightSortColumns: () => u,
150
+ getCheckedKeys: () => w
151
+ })), l.jsxs(T, { vertical: !0, gap: 16, style: ne, ref: A, children: [l.jsxs("div", { className: "sortContent", children: [l.jsxs(T, { vertical: !0, className: "sortCard", gap: 6, style: { height: z }, children: [l.jsx(P.Title, { level: 5, className: "title", children: "固定在左侧" }), l.jsx($, { placement: "left", dataList: j, keys: y, columnsMap: h, onLeftClick: O, onRightClick: G, onChange: oe, onMoveEnd: ce })] }), l.jsxs(T, { vertical: !0, className: "sortCard", gap: 6, style: { height: z }, children: [l.jsx(P.Title, { level: 5, className: "title", children: "不固定" }), l.jsx($, { placement: "center", dataList: E, keys: L, columnsMap: f, onLeftClick: O, onRightClick: G, onChange: ie, onMoveEnd: ae })] }), l.jsxs(T, { vertical: !0, className: "sortCard", gap: 6, style: { height: z }, children: [l.jsx(P.Title, { level: 5, className: "title", children: "固定在右侧" }), l.jsx($, { placement: "right", dataList: K, keys: k, columnsMap: u, onLeftClick: O, onRightClick: G, onChange: re, onMoveEnd: le })] })] }), l.jsxs(xe, { size: 16, align: "end", style: { height: 36 }, children: [l.jsx(Ce, { indeterminate: ue, checked: he, onChange: de, children: "全选" }), l.jsx(ye, { type: "link", icon: l.jsx(Ee, {}), size: "small", onClick: fe, className: me`
254
152
  &:hover {
255
153
  color: ${te.colorPrimary} !important;
256
154
  }
257
- `,
258
- children: "重置"
259
- }
260
- )
261
- ] })
262
- ] });
263
- }
264
- ), qe = Le(Ne);
155
+ `, children: "重置" })] })] });
156
+ }), qe = Se(Ae);
265
157
  export {
266
158
  qe as default
267
159
  };
@@ -1,69 +1,35 @@
1
1
  import { j as e } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import j, { useState as I } from "react";
3
3
  import { useSortable as x } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
- import { CSS as D } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
- import { theme as y, Flex as a, Checkbox as N } from "antd";
6
- import h from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { CSS as y } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
+ import { theme as D, Flex as a, Checkbox as h } from "antd";
6
+ import N from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
7
  import w from "../../../../../assets/iconfont/IconDragOrder.mjs";
8
- const R = ({
9
- item: t,
10
- onCheckboxChange: r,
11
- isDragOverlay: l
12
- }) => {
13
- const {
14
- attributes: i,
15
- isDragging: o,
16
- setNodeRef: c,
17
- listeners: f,
18
- transform: m,
19
- transition: d
20
- } = x({
8
+ const R = ({ item: t, onCheckboxChange: r, isDragOverlay: l }) => {
9
+ const { attributes: i, isDragging: o, setNodeRef: c, listeners: f, transform: m, transition: d } = x({
21
10
  id: t == null ? void 0 : t.field
22
11
  // disabled: item?.disabled,
23
- }), { token: s } = y.useToken(), u = {
12
+ }), { token: s } = D.useToken(), u = {
24
13
  gap: 8,
25
14
  transition: d,
26
- transform: D.Transform.toString(m),
15
+ transform: y.Transform.toString(m),
27
16
  ...o && {
28
17
  opacity: 0.6
29
18
  },
30
19
  ...l && {
31
20
  backgroundColor: s.colorBgContainer
32
21
  }
33
- }, [p, n] = I(!1), g = ({ target: S }) => {
22
+ }, [g, n] = I(!1), p = ({ target: S }) => {
34
23
  r == null || r(t.field, S.checked);
35
24
  };
36
- return /* @__PURE__ */ e.jsxs(
37
- a,
38
- {
39
- align: "center",
40
- className: h({ sortItemDragging: o }, "sortItem"),
41
- style: u,
42
- ref: c,
43
- onMouseEnter: () => n(!0),
44
- onMouseLeave: () => n(!1),
45
- ...i,
46
- children: [
47
- /* @__PURE__ */ e.jsx(a, { align: "center", className: "dragIcon", ...f, children: /* @__PURE__ */ e.jsx(
48
- w,
49
- {
50
- size: s.fontSize + 4,
51
- style: { opacity: p ? 1 : 0.3 }
52
- }
53
- ) }),
54
- /* @__PURE__ */ e.jsx(
55
- N,
56
- {
57
- value: t.field,
58
- checked: t.show,
59
- onChange: g,
60
- title: t.title,
61
- children: t.title
62
- }
63
- )
64
- ]
65
- }
66
- );
25
+ return e.jsxs(a, { align: "center", className: N({ sortItemDragging: o }, "sortItem"), style: u, ref: c, onMouseEnter: () => n(!0), onMouseLeave: () => n(!1), ...i, children: [e.jsx(a, { align: "center", className: "dragIcon", ...f, children: e.jsx(w, { size: s.fontSize + 4, style: { opacity: g ? 1 : 0.3 } }) }), e.jsx(h, {
26
+ value: t.field,
27
+ checked: t.show,
28
+ onChange: p,
29
+ // className={checkboxCls}
30
+ title: t.title,
31
+ children: t.title
32
+ })] });
67
33
  }, B = j.memo(R);
68
34
  export {
69
35
  B as default
@@ -1,53 +1,27 @@
1
1
  import { j as o } from "../../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { DndContext as j, closestCenter as u, DragOverlay as h } from "../../../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { SortableContext as v, rectSortingStrategy as y, arrayMove as l } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/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/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
+ import { SortableContext as C, rectSortingStrategy as v, arrayMove as l } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/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
  };
@@ -9,8 +9,9 @@ interface ExportConfigComponentProps<T extends boolean> {
9
9
  display: boolean;
10
10
  parentHeight?: any;
11
11
  showSelectRadio: T;
12
+ fromExportIcon?: boolean;
12
13
  refInstance: Ref<ExportConfigImperativeProps<BooleanConvertType<T>>>;
13
14
  }
14
- declare function ExportConfig<T extends boolean>({ display, showSelectRadio, refInstance, }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
15
+ declare function ExportConfig<T extends boolean>({ display, showSelectRadio, fromExportIcon, refInstance, }: ExportConfigComponentProps<T>): import("react/jsx-runtime").JSX.Element;
15
16
  declare const _default: import("react").MemoExoticComponent<typeof ExportConfig>;
16
17
  export default _default;