bitz-react-admin-ui 2.5.5 → 2.5.7

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