bitz-react-admin-ui 2.5.4 → 2.5.5

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 (197) 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/BitzFluentTimePicker/index.mjs +1 -1
  58. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  59. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  60. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  61. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  62. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  63. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  64. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
  65. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
  66. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
  67. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  68. package/dist/components/BitzFullScreen/index.mjs +6 -9
  69. package/dist/components/BitzHighlight/Child.mjs +9 -23
  70. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  71. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  72. package/dist/components/BitzHighlight/style.mjs +1 -4
  73. package/dist/components/BitzImage/index.mjs +1 -1
  74. package/dist/components/BitzImage/previewImage.mjs +5 -12
  75. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  76. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  77. package/dist/components/BitzList/List.mjs +3 -17
  78. package/dist/components/BitzList/LoadMore.mjs +20 -29
  79. package/dist/components/BitzLoadMore/index.mjs +14 -34
  80. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  81. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  82. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  83. package/dist/components/BitzModal/index.mjs +11 -24
  84. package/dist/components/BitzNoData/index.mjs +1 -4
  85. package/dist/components/BitzNoMore/index.mjs +1 -1
  86. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  87. package/dist/components/BitzPageContainer/index.mjs +46 -107
  88. package/dist/components/BitzPageHeader/index.mjs +21 -89
  89. package/dist/components/BitzPagination/index.mjs +22 -71
  90. package/dist/components/BitzPopover/index.mjs +4 -4
  91. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  92. package/dist/components/BitzQRCode/index.mjs +1 -6
  93. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  94. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  95. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  96. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  97. package/dist/components/BitzRefresh/index.mjs +1 -5
  98. package/dist/components/BitzRemark/index.mjs +4 -4
  99. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  100. package/dist/components/BitzSearch/index.mjs +1 -1
  101. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  102. package/dist/components/BitzSelect/index.mjs +1 -1
  103. package/dist/components/BitzSkeleton/index.mjs +1 -31
  104. package/dist/components/BitzSwitch/index.mjs +2 -7
  105. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  106. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  107. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
  108. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  109. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  110. package/dist/components/BitzTable/ActionCol/index.mjs +33 -129
  111. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  112. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  113. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  114. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  115. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
  116. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  117. package/dist/components/BitzTable/Store/index.mjs +170 -207
  118. package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
  119. package/dist/components/BitzTable/SubTable/index.mjs +43 -91
  120. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +37 -59
  121. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  122. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  123. package/dist/components/BitzTable/Table/index.mjs +292 -515
  124. package/dist/components/BitzTable/Table/style.mjs +1 -10
  125. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  126. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +148 -256
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +21 -97
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +52 -106
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  139. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +13 -57
  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 +84 -235
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +21 -84
  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.d.ts +9 -0
  156. package/dist/components/BitzText/index.less.mjs +4 -0
  157. package/dist/components/BitzText/index.mjs +37 -0
  158. package/dist/components/BitzText/utils.d.ts +4 -0
  159. package/dist/components/BitzText/utils.mjs +5 -0
  160. package/dist/components/BitzTheme/index.mjs +6 -6
  161. package/dist/components/BitzTimeline/index.mjs +1 -11
  162. package/dist/components/BitzTimer/Form.mjs +11 -32
  163. package/dist/components/BitzTimer/Timer.mjs +38 -76
  164. package/dist/components/BitzTimer/index.mjs +43 -66
  165. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  166. package/dist/components/BitzToast/index.mjs +1 -1
  167. package/dist/components/BitzTooltip/index.d.ts +17 -0
  168. package/dist/components/BitzTooltip/index.mjs +66 -0
  169. package/dist/components/BitzTooltip/style.d.ts +4 -0
  170. package/dist/components/BitzTooltip/style.mjs +47 -0
  171. package/dist/components/BitzTooltip/utils.d.ts +2 -0
  172. package/dist/components/BitzTooltip/utils.mjs +4 -0
  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 +2 -0
  184. package/dist/index.mjs +42 -38
  185. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
  186. package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
  187. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
  188. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
  189. package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
  190. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  191. package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
  192. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  193. package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
  194. package/dist/style.css +1 -1
  195. package/dist/utils/WithFluent.mjs +7 -28
  196. package/dist/utils/create.mjs +1 -7
  197. package/package.json +1 -1
@@ -1,66 +1,22 @@
1
1
  import { j as r } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { Modal as N, Typography as k, Card as B, Flex as m } from "antd";
3
- import { useMemo as f, useState as F, useRef as h } from "react";
2
+ import { Modal as N, Typography as k, Card as B, Flex as f } from "antd";
3
+ import { useMemo as m, useState as F, useRef as h } from "react";
4
4
  import H from "../../../BitzTheme/index.mjs";
5
5
  import R from "../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
6
  import { styles as T } from "./style.mjs";
7
- function $({
8
- open: l,
9
- title: C,
10
- close: g,
11
- closeAfter: p,
12
- getContainer: x,
13
- footer: y,
14
- extra: t,
15
- children: j
16
- }) {
17
- const { token: o } = H.useToken(), n = f(() => o.mode === "dark", [o.mode]), [i, b] = F(0), M = () => {
7
+ function $({ open: l, title: C, close: g, closeAfter: p, getContainer: x, footer: y, extra: t, children: j }) {
8
+ const { token: o } = H.useToken(), n = m(() => o.mode === "dark", [o.mode]), [i, b] = F(0), M = () => {
18
9
  p(), b(i + 1);
19
- }, e = h(null), s = h(null), c = f(() => {
20
- var a, d, u;
21
- return e.current && s.current ? ((a = e.current) == null ? void 0 : a.clientHeight) - ((d = s.current) == null ? void 0 : d.clientHeight) - 24 : e.current && !t ? (u = e.current) == null ? void 0 : u.clientHeight : "100%";
10
+ }, e = h(null), s = h(null), a = m(() => {
11
+ var c, d, u;
12
+ return e.current && s.current ? ((c = e.current) == null ? void 0 : c.clientHeight) - ((d = s.current) == null ? void 0 : d.clientHeight) - 24 : e.current && !t ? (u = e.current) == null ? void 0 : u.clientHeight : "100%";
22
13
  }, [e.current, s.current, t]);
23
- return /* @__PURE__ */ r.jsx(
24
- N,
25
- {
26
- className: R(T(o), "tableConfigModal"),
27
- title: /* @__PURE__ */ r.jsx(k.Title, { style: { fontSize: 16, margin: 0 }, children: C }),
28
- getContainer: x,
29
- open: l,
30
- onCancel: g,
31
- afterClose: M,
32
- style: {
33
- "--sortCard-bgColor": n ? "#444" : "#f2f2f2",
34
- "--sortCard-titleColor": n ? "#ccc" : "#777",
35
- "--radioCard-bgColor": n ? "#444" : "#F2F2F2",
36
- "--radioCard-bgHoverColor": n ? "#333" : o.colorBgContainer
37
- },
38
- width: 700,
39
- footer: y,
40
- children: /* @__PURE__ */ r.jsx(B, { className: "container", bordered: !1, children: /* @__PURE__ */ r.jsxs(
41
- m,
42
- {
43
- ref: e,
44
- vertical: !0,
45
- align: "center",
46
- gap: 24,
47
- style: { height: "100%" },
48
- children: [
49
- t && /* @__PURE__ */ r.jsx("div", { className: "extraContent", ref: s, children: t }),
50
- l && /* @__PURE__ */ r.jsx(
51
- m,
52
- {
53
- className: "containerBody",
54
- style: { height: c || "100%" },
55
- children: j(c)
56
- }
57
- )
58
- ]
59
- },
60
- i
61
- ) })
62
- }
63
- );
14
+ return r.jsx(N, { className: R(T(o), "tableConfigModal"), title: r.jsx(k.Title, { style: { fontSize: 16, margin: 0 }, children: C }), getContainer: x, open: l, onCancel: g, afterClose: M, style: {
15
+ "--sortCard-bgColor": n ? "#444" : "#f2f2f2",
16
+ "--sortCard-titleColor": n ? "#ccc" : "#777",
17
+ "--radioCard-bgColor": n ? "#444" : "#F2F2F2",
18
+ "--radioCard-bgHoverColor": n ? "#333" : o.colorBgContainer
19
+ }, width: 700, footer: y, children: r.jsx(B, { className: "container", bordered: !1, children: r.jsxs(f, { ref: e, vertical: !0, align: "center", gap: 24, style: { height: "100%" }, children: [t && r.jsx("div", { className: "extraContent", ref: s, children: t }), l && r.jsx(f, { className: "containerBody", style: { height: a || "100%" }, children: j(a) })] }, i) }) });
64
20
  }
65
21
  export {
66
22
  $ as default
@@ -1,25 +1,14 @@
1
1
  import { j as o } from "../../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { memo as a, useContext as c } from "react";
3
- import { Tooltip as p } from "antd";
4
- import f from "../style.mjs";
5
- import d from "../../../BitzButton/index.mjs";
6
- import { BitzTableContext as u } from "../../Store/index.mjs";
2
+ import { memo as c, useContext as a } from "react";
3
+ import { Tooltip as u } from "antd";
4
+ import p from "../style.mjs";
5
+ import f from "../../../BitzButton/index.mjs";
6
+ import { BitzTableContext as d } from "../../Store/index.mjs";
7
7
  import x from "../../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/ReloadOutlined.mjs";
8
8
  const h = (t) => {
9
- const { onClick: e, order: r, show: s = !0, icon: n = /* @__PURE__ */ o.jsx(x, {}) } = t, { loading: l, selected: m } = c(u), { toolbarItemClassName: i } = f();
10
- return s ? /* @__PURE__ */ o.jsx(p, { title: "刷新", open: !1, children: /* @__PURE__ */ o.jsx(
11
- d,
12
- {
13
- type: "text",
14
- className: i,
15
- disabled: l || m,
16
- onClick: e,
17
- icon: n,
18
- style: { order: r },
19
- children: "刷新"
20
- }
21
- ) }) : null;
22
- }, z = a(h);
9
+ const { onClick: e, order: r, show: s = !0, icon: n = o.jsx(x, {}) } = t, { loading: i, selected: l } = a(d), { toolbarItemClassName: m } = p();
10
+ return s ? o.jsx(u, { title: "刷新", open: !1, children: o.jsx(f, { type: "text", className: m, disabled: i || l, onClick: e, icon: n, style: { order: r }, children: "刷新" }) }) : null;
11
+ }, k = c(h);
23
12
  export {
24
- z as default
13
+ k as default
25
14
  };
@@ -8,15 +8,7 @@ import I from "../ExportIcon/index.mjs";
8
8
  import { BitzConfigContext as R } from "../../../BitzConfigProvider/context.mjs";
9
9
  import { BitzToolBarContext as b } from "./context.mjs";
10
10
  import { BitzTableContext as k } from "../../Store/index.mjs";
11
- const F = ["export", "refresh", "fullscreen", "config"], J = ({
12
- size: W,
13
- tools: l,
14
- toolsConfig: m,
15
- exclude: t,
16
- onExport: p,
17
- onRefresh: d,
18
- onColumnChange: a
19
- }) => {
11
+ const F = ["export", "refresh", "fullscreen", "config"], J = ({ size: W, tools: l, toolsConfig: m, exclude: t, onExport: p, onRefresh: d, onColumnChange: a }) => {
20
12
  const { Table: e } = c(R), { selected: u, setToolbarWidth: x } = c(k), i = h(() => {
21
13
  const s = l || (e == null ? void 0 : e.toolbar) || F;
22
14
  return t != null && t.length ? s.filter((n) => !t.includes(n)) : s;
@@ -33,46 +25,7 @@ const F = ["export", "refresh", "fullscreen", "config"], J = ({
33
25
  }, [i]), f = g(null);
34
26
  return C(() => {
35
27
  f.current && x(f.current.clientWidth);
36
- }, [f.current]), /* @__PURE__ */ r.jsx(b.Provider, { value: m ?? {}, children: /* @__PURE__ */ r.jsx(
37
- j,
38
- {
39
- ref: f,
40
- style: { height: "100%", ...u && { zIndex: 10 } },
41
- children: /* @__PURE__ */ r.jsxs(z.Compact, { children: [
42
- /* @__PURE__ */ r.jsx(
43
- I,
44
- {
45
- order: o.export.order,
46
- show: o.export.show,
47
- onClick: p
48
- }
49
- ),
50
- /* @__PURE__ */ r.jsx(
51
- B,
52
- {
53
- order: o.refresh.order,
54
- show: o.refresh.show,
55
- onClick: d
56
- }
57
- ),
58
- /* @__PURE__ */ r.jsx(
59
- E,
60
- {
61
- order: o.fullscreen.order,
62
- show: o.fullscreen.show
63
- }
64
- ),
65
- /* @__PURE__ */ r.jsx(
66
- T,
67
- {
68
- order: o.config.order,
69
- show: o.config.show,
70
- onChange: a
71
- }
72
- )
73
- ] })
74
- }
75
- ) });
28
+ }, [f.current]), r.jsx(b.Provider, { value: m ?? {}, children: r.jsx(j, { ref: f, style: { height: "100%", ...u && { zIndex: 10 } }, children: r.jsxs(z.Compact, { children: [r.jsx(I, { order: o.export.order, show: o.export.show, onClick: p }), r.jsx(B, { order: o.refresh.order, show: o.refresh.show, onClick: d }), r.jsx(E, { order: o.fullscreen.order, show: o.fullscreen.show }), r.jsx(T, { order: o.config.order, show: o.config.show, onChange: a })] }) }) });
76
29
  };
77
30
  export {
78
31
  J as default
@@ -71,12 +71,7 @@ const W = () => {
71
71
  x(r, l, m, i)
72
72
  ]);
73
73
  const y = `${u}${m}`;
74
- return { toolbarItemClassName: D(
75
- r,
76
- { [`${l}`]: h },
77
- y,
78
- n
79
- ) };
74
+ return { toolbarItemClassName: D(r, { [`${l}`]: h }, y, n) };
80
75
  };
81
76
  export {
82
77
  W as default
@@ -1,19 +1,9 @@
1
1
  import { j as t } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { Space as p, Button as n } from "antd";
3
3
  const m = ({ record: a = {}, operations: r = [], tableOperationEmit: s = () => {
4
- }, ...l }) => /* @__PURE__ */ t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: /* @__PURE__ */ t.jsx(p, { children: r.map((e, i) => /* @__PURE__ */ t.jsx(
5
- n,
6
- {
7
- className: `${(e == null ? void 0 : e.className) || ""}`,
8
- type: e.type == "edit" ? "primary" : "default",
9
- danger: e.type == "delete",
10
- onClick: () => {
11
- s(e.type, a);
12
- },
13
- children: e.label
14
- },
15
- i
16
- )) }) });
4
+ }, ...l }) => t.jsx("div", { className: "bitzTableOperationsBlock", ...l, children: t.jsx(p, { children: r.map((e, i) => t.jsx(n, { className: `${(e == null ? void 0 : e.className) || ""}`, type: e.type == "edit" ? "primary" : "default", danger: e.type == "delete", onClick: () => {
5
+ s(e.type, a);
6
+ }, children: e.label }, i)) }) });
17
7
  export {
18
8
  m as default
19
9
  };
@@ -3,54 +3,21 @@ import { useState as r, useEffect as j } from "react";
3
3
  import { Select as b, Drawer as w, Input as S } from "antd";
4
4
  import k from "../../BitzButton/index.mjs";
5
5
  import "./index.less.mjs";
6
- const h = ({
7
- value: s,
8
- placeholder: a = "请选择",
9
- fieldNames: p = {
10
- label: "name",
11
- value: "key"
12
- },
13
- onChange: t,
14
- ...y
15
- }) => {
16
- const [c, m] = r([]), [f, l] = r([]), [n, o] = r(!1), u = () => {
6
+ const T = ({ value: s, placeholder: i = "请选择", fieldNames: p = {
7
+ label: "name",
8
+ value: "key"
9
+ }, onChange: t, ...y }) => {
10
+ const [c, m] = r([]), [n, l] = r([]), [f, o] = r(!1), u = () => {
17
11
  l([]), t == null || t([], []);
18
- }, d = (x, i) => {
19
- l(i), t == null || t(x, i);
12
+ }, d = (x, a) => {
13
+ l(a), t == null || t(x, a);
20
14
  };
21
15
  return j(() => {
22
16
  if (s && !Array.isArray(s))
23
- throw new Error(
24
- `form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`
25
- );
17
+ throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${s}`);
26
18
  m(s ?? []);
27
- }, [s]), /* @__PURE__ */ e.jsxs("div", { children: [
28
- /* @__PURE__ */ e.jsx(
29
- b,
30
- {
31
- style: { width: "200px" },
32
- allowClear: !0,
33
- mode: "tags",
34
- maxTagCount: "responsive",
35
- value: c,
36
- options: f,
37
- fieldNames: p,
38
- showSearch: !1,
39
- open: !1,
40
- placeholder: a,
41
- popupClassName: "tableSelectPopupBlock",
42
- dropdownRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
43
- onClick: () => o(!0),
44
- onClear: u,
45
- onChange: d
46
- }
47
- ),
48
- /* @__PURE__ */ e.jsxs(w, { open: n, placement: "bottom", height: "100%", children: [
49
- /* @__PURE__ */ e.jsx(S, {}),
50
- /* @__PURE__ */ e.jsx(k, { onClick: () => o(!1), children: "关闭" })
51
- ] })
52
- ] });
19
+ }, [s]), e.jsxs("div", { children: [e.jsx(b, { style: { width: "200px" }, allowClear: !0, mode: "tags", maxTagCount: "responsive", value: c, options: n, fieldNames: p, showSearch: !1, open: !1, placeholder: i, popupClassName: "tableSelectPopupBlock", dropdownRender: () => e.jsx(e.Fragment, {}), onClick: () => o(!0), onClear: u, onChange: d }), e.jsxs(w, { open: f, placement: "bottom", height: "100%", children: [e.jsx(S, {}), e.jsx(k, { onClick: () => o(!1), children: "关闭" })] })] });
53
20
  };
54
21
  export {
55
- h as default
22
+ T as default
56
23
  };
@@ -1,94 +1,25 @@
1
- import { j as x } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useState as o, useEffect as b } from "react";
3
- import { Select as M } from "antd";
4
- import Q from "../SelectPopup/index.mjs";
5
- function Z({
6
- value: l,
7
- options: r,
8
- columns: j,
9
- tableData: w,
10
- total: T,
11
- loading: a,
12
- loadingFailed: k,
13
- loadAgain: y,
14
- page: E,
15
- onPageChange: A,
16
- searchInput: B,
17
- showToolTagSelect: D,
18
- toolTags: V,
19
- onToolTagChange: d,
20
- lrLayout: v,
21
- parentRender: F,
22
- mode: N = "multiple",
23
- placeholder: O = "请选择",
24
- fieldNames: p,
25
- onChange: e,
26
- onPopupVisibleChange: f,
27
- ...$
28
- }) {
29
- const [S, q] = o([]), [u, c] = o([]), [i, m] = o(!1), [z, G] = o(!1), H = () => {
30
- c([]), e == null || e([], []);
31
- }, I = (t, s, L) => {
32
- L === "confirm" ? m(!1) : (c([...s]), e == null || e([...t], [...s]));
33
- }, J = (t, s) => {
34
- c(s), e == null || e(t, s);
35
- }, K = (t) => {
36
- !i && t && m(!0), !z && !t && i && m(!1), f == null || f(t);
1
+ import { j as u } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useState as a, useEffect as d } from "react";
3
+ import { Select as H } from "antd";
4
+ import J from "../SelectPopup/index.mjs";
5
+ function W({ value: t, options: o, columns: S, tableData: T, total: b, loading: w, loadingFailed: x, loadAgain: j, page: y, onPageChange: D, searchInput: k, showToolTagSelect: A, toolTags: E, onToolTagChange: N, lrLayout: V, parentRender: B, mode: F = "multiple", placeholder: g = "请选择", fieldNames: m, onChange: e, onPopupVisibleChange: c, ...v }) {
6
+ const [p, I] = a([]), [n, s] = a([]), [i, f] = a(!1), [L, O] = a(!1), $ = () => {
7
+ s([]), e == null || e([], []);
8
+ }, h = (l, r, G) => {
9
+ G === "confirm" && (s([...r]), e == null || e([...l], [...r]), f(!1));
10
+ }, q = (l, r) => {
11
+ s(r), e == null || e(l, r);
12
+ }, z = (l) => {
13
+ !i && l && f(!0), !L && !l && i && f(!1), c == null || c(l);
37
14
  };
38
- return b(() => {
39
- if (l && !Array.isArray(l))
40
- throw new Error(
41
- `form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${l}`
42
- );
43
- q(l ?? []);
44
- }, [l]), b(() => {
45
- r != null && r.length && c(r);
46
- }, [r]), /* @__PURE__ */ x.jsx(
47
- M,
48
- {
49
- allowClear: !0,
50
- className: "tableSelectBlock",
51
- mode: "multiple",
52
- maxTagCount: "responsive",
53
- value: S,
54
- options: u,
55
- fieldNames: p,
56
- showSearch: !1,
57
- open: i,
58
- placeholder: O,
59
- popupClassName: "tableSelectPopupBlock",
60
- dropdownRender: () => /* @__PURE__ */ x.jsx(
61
- Q,
62
- {
63
- columns: j,
64
- tableData: w,
65
- total: T,
66
- page: E,
67
- onPageChange: A,
68
- searchInput: B,
69
- loading: a,
70
- loadingFailed: k,
71
- loadAgain: y,
72
- keys: S,
73
- rows: u,
74
- fieldNames: p,
75
- onChange: I,
76
- onDropdownVisibleChange: G,
77
- showToolTagSelect: D,
78
- toolTags: V,
79
- onToolTagChange: d,
80
- lrLayout: v,
81
- parentRender: F,
82
- mode: N
83
- }
84
- ),
85
- onClear: H,
86
- onDropdownVisibleChange: K,
87
- onChange: J,
88
- ...$
89
- }
90
- );
15
+ return d(() => {
16
+ if (t && !Array.isArray(t))
17
+ throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${t}`);
18
+ I(t ?? []);
19
+ }, [t]), d(() => {
20
+ o != null && o.length && s(o);
21
+ }, [o]), u.jsx(H, { allowClear: !0, className: "tableSelectBlock", mode: "multiple", maxTagCount: "responsive", value: p, options: n, fieldNames: m, showSearch: !1, open: i, placeholder: g, popupClassName: "tableSelectPopupBlock", dropdownRender: () => u.jsx(J, { columns: S, tableData: T, total: b, page: y, onPageChange: D, searchInput: k, loading: w, loadingFailed: x, loadAgain: j, keys: p, rows: n, fieldNames: m, onChange: h, onDropdownVisibleChange: O, showToolTagSelect: A, toolTags: E, onToolTagChange: N, lrLayout: V, parentRender: B, mode: F }), onClear: $, onDropdownVisibleChange: z, onChange: q, ...v });
91
22
  }
92
23
  export {
93
- Z as default
24
+ W as default
94
25
  };
@@ -1,23 +1,21 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import p from "../../BitzDescriptions/index.mjs";
3
- import m from "../TableCell/index.mjs";
2
+ import m from "../../BitzDescriptions/index.mjs";
3
+ import a from "../TableCell/index.mjs";
4
4
  import u from "../TextBlock/index.mjs";
5
- import { defaultValue as a } from "../utils.mjs";
5
+ import { defaultValue as d } from "../utils.mjs";
6
6
  const R = (o, n, e) => {
7
- const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
7
+ const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
8
8
  ...r,
9
- render: (t, c, g) => {
10
- const f = (n == null ? void 0 : n.length) === 1 ? !1 : g + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
9
+ render: (t, f, c) => {
10
+ const g = (n == null ? void 0 : n.length) === 1 ? !1 : c + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
11
11
  if (r != null && r.render) {
12
- const s = r.render(t, c, g);
12
+ const s = r.render(t, f, c);
13
13
  if (typeof s == "object" && s !== null)
14
14
  return s;
15
- if (["boolean", "number", "bigint", "string"].includes(
16
- typeof s
17
- ))
18
- return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
15
+ if (["boolean", "number", "bigint", "string"].includes(typeof s))
16
+ return i.jsx(a, { value: `${s}`, isLatterHalf: g });
19
17
  }
20
- return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: a }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
18
+ return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value: d }) : i.jsx(a, { value: t, isLatterHalf: g });
21
19
  }
22
20
  }));
23
21
  return [
@@ -26,7 +24,7 @@ const R = (o, n, e) => {
26
24
  // rowScope: 'row',
27
25
  className: "numRow",
28
26
  width: 60,
29
- render: (r, t, c) => c + 1 + (e.page - 1) * e.size
27
+ render: (r, t, f) => f + 1 + (e.page - 1) * e.size
30
28
  },
31
29
  ...l
32
30
  ];
@@ -38,16 +36,8 @@ const R = (o, n, e) => {
38
36
  },
39
37
  expandedRowRender: (e) => {
40
38
  var r;
41
- const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = /* @__PURE__ */ i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
42
- return /* @__PURE__ */ i.jsx(
43
- p,
44
- {
45
- size: "small",
46
- bordered: !0,
47
- items: l,
48
- column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 }
49
- }
50
- );
39
+ const l = (r = e[o]) == null ? void 0 : r.map((t) => (typeof t.label == "string" && (t.label = i.jsx(u, { minRows: 1, maxRows: 5, value: t.label })), typeof t.children == "string" && (t.children = i.jsx(u, { minRows: 1, maxRows: 5, value: t.children })), t));
40
+ return i.jsx(m, { size: "small", bordered: !0, items: l, column: { xs: 1, sm: 1, md: 1, lg: 2, xl: 2, xxl: 2 } });
51
41
  }
52
42
  }
53
43
  } : null, y = (o, n) => {