bitz-react-admin-ui 2.1.0 → 2.1.2

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 (159) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  4. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  5. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  6. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  11. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  12. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  13. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  14. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  16. package/dist/assets/iconfont/IconMore.mjs +26 -4
  17. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  18. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  19. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  20. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  21. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  22. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  23. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  25. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +41 -8
  32. package/dist/components/BitzAddressBook/index.mjs +122 -35
  33. package/dist/components/BitzAppPage/index.mjs +18 -4
  34. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +23 -9
  37. package/dist/components/BitzCalendar/index.mjs +52 -19
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  39. package/dist/components/BitzCascader/index.mjs +6 -2
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  42. package/dist/components/BitzConfigProvider/index.mjs +14 -13
  43. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +11 -1
  47. package/dist/components/BitzDrawer/index.mjs +17 -2
  48. package/dist/components/BitzEmpty/index.mjs +6 -2
  49. package/dist/components/BitzException/index.mjs +6 -1
  50. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  51. package/dist/components/BitzFluentInput/index.mjs +23 -4
  52. package/dist/components/BitzFluentSelect/index.mjs +24 -5
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  62. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  63. package/dist/components/BitzFullScreen/index.mjs +9 -6
  64. package/dist/components/BitzHighlight/Child.mjs +23 -9
  65. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  66. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  67. package/dist/components/BitzHighlight/style.mjs +4 -1
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +12 -5
  70. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  71. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  72. package/dist/components/BitzList/List.mjs +17 -3
  73. package/dist/components/BitzList/LoadMore.mjs +29 -20
  74. package/dist/components/BitzLoadMore/index.mjs +34 -14
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  76. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +24 -11
  79. package/dist/components/BitzNoData/index.mjs +4 -1
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  82. package/dist/components/BitzPageContainer/index.mjs +107 -46
  83. package/dist/components/BitzPageHeader/index.mjs +89 -21
  84. package/dist/components/BitzPagination/index.mjs +62 -14
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  87. package/dist/components/BitzQRCode/index.mjs +6 -1
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  91. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  92. package/dist/components/BitzRefresh/index.mjs +5 -1
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +31 -1
  99. package/dist/components/BitzSwitch/index.mjs +7 -2
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  105. package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
  106. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  107. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  108. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  112. package/dist/components/BitzTable/Store/index.mjs +68 -45
  113. package/dist/components/BitzTable/Table/index.mjs +305 -145
  114. package/dist/components/BitzTable/Table/style.mjs +10 -1
  115. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  116. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +82 -47
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +95 -21
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -28
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +246 -138
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +6 -4
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +142 -85
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -11
  124. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
  125. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  126. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
  127. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +52 -9
  128. package/dist/components/BitzTable/ToolBar/index.d.ts +2 -2
  129. package/dist/components/BitzTable/index.d.ts +2 -2
  130. package/dist/components/BitzTable/index.mjs +2 -2
  131. package/dist/components/BitzTableOperations/index.mjs +13 -3
  132. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  133. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  134. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
  135. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
  136. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  137. package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
  138. package/dist/components/BitzTableSelect/index.mjs +61 -13
  139. package/dist/components/BitzTag/index.mjs +1 -1
  140. package/dist/components/BitzTheme/index.mjs +6 -6
  141. package/dist/components/BitzTimeline/index.mjs +11 -1
  142. package/dist/components/BitzTimer/Form.mjs +32 -11
  143. package/dist/components/BitzTimer/Timer.mjs +76 -38
  144. package/dist/components/BitzTimer/index.mjs +66 -43
  145. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  146. package/dist/components/BitzToast/index.mjs +1 -1
  147. package/dist/components/BitzTree/index.mjs +4 -1
  148. package/dist/components/BitzUeEditor/index.mjs +5 -5
  149. package/dist/components/BitzUpload/index.mjs +81 -43
  150. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  151. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  152. package/dist/hooks/use-event-listener.mjs +11 -2
  153. package/dist/hooks/use-lock-fn.mjs +13 -10
  154. package/dist/hooks/use-scroll-parent.mjs +16 -14
  155. package/dist/hooks/useEvent.mjs +7 -4
  156. package/dist/hooks/useMergedState.mjs +11 -11
  157. package/dist/style.css +1 -1
  158. package/dist/utils/create.mjs +7 -1
  159. package/package.json +1 -1
@@ -1,25 +1,91 @@
1
- import { j as m } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useState as i, useEffect as u } from "react";
3
- import { Select as q } from "antd";
4
- import z from "../SelectPopup/index.mjs";
5
- function K({ value: o, options: t, columns: b, tableData: S, total: d, loading: T, loadingFailed: V, loadAgain: w, page: x, onPageChange: g, searchInput: h, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A, placeholder: E = "请选择", fieldNames: p, onChange: e, ...N }) {
6
- const [n, P] = i([]), [f, r] = i([]), [a, c] = i(!1), [B, F] = i(!1), v = () => {
7
- r([]), e == null || e([], []);
8
- }, I = (l, s, $) => {
9
- $ === "confirm" ? c(!1) : (r([...s]), e == null || e([...l], [...s]));
10
- }, L = (l, s) => {
11
- r(s), e == null || e(l, s);
12
- }, O = (l) => {
13
- !a && l && c(!0), !B && !l && a && c(!1);
1
+ import { j as S } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useState as i, useEffect as b } from "react";
3
+ import { Select as I } from "antd";
4
+ import J from "../SelectPopup/index.mjs";
5
+ function U({
6
+ value: l,
7
+ options: t,
8
+ columns: a,
9
+ tableData: n,
10
+ total: x,
11
+ loading: V,
12
+ loadingFailed: j,
13
+ loadAgain: w,
14
+ page: T,
15
+ onPageChange: k,
16
+ searchInput: y,
17
+ showToolTagSelect: E,
18
+ toolTags: A,
19
+ onToolTagChange: B,
20
+ lrLayout: D,
21
+ parentRender: P,
22
+ placeholder: d = "请选择",
23
+ fieldNames: p,
24
+ onChange: e,
25
+ ...v
26
+ }) {
27
+ const [m, F] = i([]), [u, o] = i([]), [c, f] = i(!1), [N, O] = i(!1), $ = () => {
28
+ o([]), e == null || e([], []);
29
+ }, q = (s, r, H) => {
30
+ H === "confirm" ? f(!1) : (o([...r]), e == null || e([...s], [...r]));
31
+ }, z = (s, r) => {
32
+ o(r), e == null || e(s, r);
33
+ }, G = (s) => {
34
+ !c && s && f(!0), !N && !s && c && f(!1);
14
35
  };
15
- return u(() => {
16
- if (o && !Array.isArray(o))
17
- throw new Error(`form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${o}`);
18
- P(o ?? []);
19
- }, [o]), u(() => {
20
- t != null && t.length && r(t);
21
- }, [t]), m.jsx(q, { allowClear: !0, className: "tableSelectBlock", mode: "multiple", maxTagCount: "responsive", value: n, options: f, fieldNames: p, showSearch: !1, open: a, placeholder: E, popupClassName: "tableSelectPopupBlock", dropdownRender: () => m.jsx(z, { columns: b, tableData: S, total: d, page: x, onPageChange: g, searchInput: h, loading: T, loadingFailed: V, loadAgain: w, keys: n, rows: f, fieldNames: p, onChange: I, onDropdownVisibleChange: F, showToolTagSelect: j, toolTags: y, onToolTagChange: D, lrLayout: k, parentRender: A }), onClear: v, onDropdownVisibleChange: O, onChange: L, ...N });
36
+ return b(() => {
37
+ if (l && !Array.isArray(l))
38
+ throw new Error(
39
+ `form表单在使用setFieldValue给TableSelect组件赋值时请确认值为数组类型, \`value\`: ${l}`
40
+ );
41
+ F(l ?? []);
42
+ }, [l]), b(() => {
43
+ t != null && t.length && o(t);
44
+ }, [t]), /* @__PURE__ */ S.jsx(
45
+ I,
46
+ {
47
+ allowClear: !0,
48
+ className: "tableSelectBlock",
49
+ mode: "multiple",
50
+ maxTagCount: "responsive",
51
+ value: m,
52
+ options: u,
53
+ fieldNames: p,
54
+ showSearch: !1,
55
+ open: c,
56
+ placeholder: d,
57
+ popupClassName: "tableSelectPopupBlock",
58
+ dropdownRender: () => /* @__PURE__ */ S.jsx(
59
+ J,
60
+ {
61
+ columns: a,
62
+ tableData: n,
63
+ total: x,
64
+ page: T,
65
+ onPageChange: k,
66
+ searchInput: y,
67
+ loading: V,
68
+ loadingFailed: j,
69
+ loadAgain: w,
70
+ keys: m,
71
+ rows: u,
72
+ fieldNames: p,
73
+ onChange: q,
74
+ onDropdownVisibleChange: O,
75
+ showToolTagSelect: E,
76
+ toolTags: A,
77
+ onToolTagChange: B,
78
+ lrLayout: D,
79
+ parentRender: P
80
+ }
81
+ ),
82
+ onClear: $,
83
+ onDropdownVisibleChange: G,
84
+ onChange: z,
85
+ ...v
86
+ }
87
+ );
22
88
  }
23
89
  export {
24
- K as default
90
+ U as default
25
91
  };
@@ -1,21 +1,23 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import m from "../../BitzDescriptions/index.mjs";
3
- import a from "../TableCell/index.mjs";
2
+ import p from "../../BitzDescriptions/index.mjs";
3
+ import m from "../TableCell/index.mjs";
4
4
  import u from "../TextBlock/index.mjs";
5
5
  const b = (o, n, e) => {
6
- const l = o.map((r) => (typeof r.title == "string" && (r.title = i.jsx(u, { value: r.title, bold: 600 })), {
6
+ const l = o.map((r) => (typeof r.title == "string" && (r.title = /* @__PURE__ */ i.jsx(u, { value: r.title, bold: 600 })), {
7
7
  ...r,
8
8
  width: "auto",
9
- render: (t, c, f) => {
10
- const g = (n == null ? void 0 : n.length) === 1 ? !1 : f + 1 > ((n == null ? void 0 : n.length) || 0) / 2;
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;
11
11
  if (r != null && r.render) {
12
- const s = r.render(t, c, f);
12
+ const s = r.render(t, c, g);
13
13
  if (typeof s == "object")
14
14
  return s;
15
- if (["boolean", "number", "bigint", "string"].includes(typeof s))
16
- return i.jsx(a, { value: `${s}`, isLatterHalf: g });
15
+ if (["boolean", "number", "bigint", "string"].includes(
16
+ typeof s
17
+ ))
18
+ return /* @__PURE__ */ i.jsx(m, { value: `${s}`, isLatterHalf: f });
17
19
  }
18
- return !t && !["boolean", "number", "bigint"].includes(typeof t) ? i.jsx(u, { value: "-" }) : i.jsx(a, { value: t, isLatterHalf: g });
20
+ return !t && !["boolean", "number", "bigint"].includes(typeof t) ? /* @__PURE__ */ i.jsx(u, { value: "-" }) : /* @__PURE__ */ i.jsx(m, { value: t, isLatterHalf: f });
19
21
  }
20
22
  }));
21
23
  return [
@@ -36,8 +38,16 @@ const b = (o, n, e) => {
36
38
  },
37
39
  expandedRowRender: (e) => {
38
40
  var r;
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 } });
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
+ );
41
51
  }
42
52
  }
43
53
  } : null, w = (o, n) => {
@@ -1,10 +1,10 @@
1
1
  import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as ee, useState as y, useMemo as g, useCallback as te, useEffect as re } from "react";
3
- import { Row as m, Col as c, Space as k, Form as d, Select as F, Spin as oe, Typography as le, Flex as se, Empty as A } from "antd";
3
+ import { Row as m, Col as c, Space as k, Form as d, Select as M, Spin as oe, Typography as le, Flex as se, Empty as K } from "antd";
4
4
  import ce from "../../BitzPagination/index.mjs";
5
- import ne from "../../BitzTable/index.mjs";
6
- import M from "../../BitzButton/index.mjs";
7
- import { getColumns as ie, getExpandable as ae, getLayoutConfig as de } from "./getData.mjs";
5
+ import ie from "../../BitzTable/index.mjs";
6
+ import F from "../../BitzButton/index.mjs";
7
+ import { getColumns as ne, getExpandable as ae, getLayoutConfig as de } from "./getData.mjs";
8
8
  import pe from "../TextBlock/index.mjs";
9
9
  import ue from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
10
10
  import xe from "../../BitzTheme/index.mjs";
@@ -12,52 +12,222 @@ import me from "../../../node_modules/.store/classnames@2.5.1/node_modules/class
12
12
  import "./index.less.mjs";
13
13
  import he from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/InfoCircleOutlined.mjs";
14
14
  import je from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
15
- function ze({ columns: w, tableData: h, total: K, loading: n, loadingFailed: p, loadAgain: D, page: T, onPageChange: N, searchInput: _, showToolTagSelect: B, toolTags: G, onToolTagChange: j, lrLayout: b, parentRender: E, keys: R, rows: P, fieldNames: l, onChange: u, onDropdownVisibleChange: x }) {
16
- var I, z;
17
- const v = ee(null), f = ue(v), { token: t } = xe.useToken(), C = ((I = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : I.tableSpaceBetweenPage) ?? 10, [a, H] = y([]), [i, L] = y([]), [O, W] = y(void 0), $ = (o, r) => {
18
- W(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
15
+ function Ce({
16
+ columns: T,
17
+ tableData: h,
18
+ total: N,
19
+ loading: i,
20
+ loadingFailed: p,
21
+ loadAgain: _,
22
+ page: w,
23
+ onPageChange: A,
24
+ searchInput: G,
25
+ showToolTagSelect: v,
26
+ toolTags: H,
27
+ onToolTagChange: j,
28
+ lrLayout: b,
29
+ parentRender: P,
30
+ keys: R,
31
+ rows: B,
32
+ fieldNames: l,
33
+ onChange: u,
34
+ onDropdownVisibleChange: x
35
+ }) {
36
+ var z, C;
37
+ const E = ee(null), f = ue(E), { token: t } = xe.useToken(), I = ((z = t == null ? void 0 : t.BitzTableSelect) == null ? void 0 : z.tableSpaceBetweenPage) ?? 10, [a, L] = y([]), [n, O] = y([]), [W, $] = y(void 0), q = (o, r) => {
38
+ $(o), j == null || j(o, r), o || (x(!0), setTimeout(() => {
19
39
  x(!1);
20
40
  }, 0));
21
- }, q = g(() => ie(w, h, T), [w]), J = {
41
+ }, J = g(() => ne(T, h, w), [T]), Q = {
22
42
  selectedRowKeys: a,
23
43
  preserveSelectedRowKeys: !0,
24
44
  onChange(o, r) {
25
45
  u(o, r);
26
46
  }
27
- }, Q = te(() => ae(l.items, n), [l.items]), U = (o, r) => e.jsxs("span", { style: { color: t.colorText }, children: [o[0], " ", e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }), " ", o[1]] }), X = () => {
47
+ }, U = te(() => ae(l.items, i), [l.items]), X = (o, r) => /* @__PURE__ */ e.jsxs("span", { style: { color: t.colorText }, children: [
48
+ o[0],
49
+ " ",
50
+ /* @__PURE__ */ e.jsx("span", { style: { color: t.colorPrimary, fontWeight: 600 }, children: r }),
51
+ " ",
52
+ o[1]
53
+ ] }), Y = () => {
28
54
  const o = (r) => {
29
- const Z = i.findIndex((S) => S[l.value] === r[l.value]), V = a.findIndex((S) => S === r[l.value]);
30
- i.splice(Z, 1), a.splice(V, 1), u(a, i);
55
+ const D = n.findIndex(
56
+ (S) => S[l.value] === r[l.value]
57
+ ), V = a.findIndex(
58
+ (S) => S === r[l.value]
59
+ );
60
+ n.splice(D, 1), a.splice(V, 1), u(a, n);
31
61
  };
32
- return e.jsxs(k, { direction: "vertical", style: {
33
- width: "calc(100% - 5px)",
34
- paddingRight: 5,
35
- maxHeight: i.length ? 220 : "auto",
36
- overflow: "hidden auto"
37
- }, children: [i.map((r) => e.jsxs(se, { justify: "space-between", style: {
38
- padding: "4px 8px",
39
- border: `1px solid ${t.colorBorder}`,
40
- backgroundColor: "#f5f5f5",
41
- borderRadius: t.borderRadiusSM,
42
- overflow: "hidden"
43
- }, children: [e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: e.jsx(pe, { value: r[l.label] }) }), e.jsx(je, { style: {
44
- color: t.colorError,
45
- fontSize: 13,
46
- cursor: "pointer"
47
- }, onClick: () => o(r) })] }, r[l.value])), !i.length && e.jsx(A, { image: A.PRESENTED_IMAGE_SIMPLE })] });
48
- }, s = g(() => de(b, B), [b, B]), Y = g(() => me({ loadingTable: n }, { loadingFailedTable: p }, "bitzSelectTable"), [p, n]);
62
+ return /* @__PURE__ */ e.jsxs(
63
+ k,
64
+ {
65
+ direction: "vertical",
66
+ style: {
67
+ width: "calc(100% - 5px)",
68
+ paddingRight: 5,
69
+ maxHeight: n.length ? 220 : "auto",
70
+ overflow: "hidden auto"
71
+ },
72
+ children: [
73
+ n.map((r) => /* @__PURE__ */ e.jsxs(
74
+ se,
75
+ {
76
+ justify: "space-between",
77
+ style: {
78
+ padding: "4px 8px",
79
+ border: `1px solid ${t.colorBorder}`,
80
+ backgroundColor: "#f5f5f5",
81
+ borderRadius: t.borderRadiusSM,
82
+ overflow: "hidden"
83
+ },
84
+ children: [
85
+ /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(pe, { value: r[l.label] }) }),
86
+ /* @__PURE__ */ e.jsx(
87
+ je,
88
+ {
89
+ style: {
90
+ color: t.colorError,
91
+ fontSize: 13,
92
+ cursor: "pointer"
93
+ },
94
+ onClick: () => o(r)
95
+ }
96
+ )
97
+ ]
98
+ },
99
+ r[l.value]
100
+ )),
101
+ !n.length && /* @__PURE__ */ e.jsx(K, { image: K.PRESENTED_IMAGE_SIMPLE })
102
+ ]
103
+ }
104
+ );
105
+ }, s = g(() => de(b, v), [b, v]), Z = g(() => me(
106
+ { loadingTable: i },
107
+ { loadingFailedTable: p },
108
+ "bitzSelectTable"
109
+ ), [p, i]);
49
110
  return re(() => {
50
- H(R ?? []), L(P ?? []);
51
- }, [R, P]), e.jsxs(m, { gutter: s.gutter, children: [e.jsx(c, { span: s.left.span, children: b && E && E(C, f == null ? void 0 : f.height) }), e.jsx(c, { span: s.right.span, children: e.jsxs(k, { direction: "vertical", size: C, style: { width: "100%" }, children: [e.jsx(d, { className: "tableSelectPopupSearchForm", children: e.jsx(m, { gutter: [16, 16], children: e.jsx(c, { span: 24, children: e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [e.jsx(c, { span: s.right.search, children: e.jsx(d.Item, { children: _ }) }), e.jsx(c, { span: s.right.operation, children: e.jsxs(m, { justify: "end", gutter: 8, children: [e.jsx(c, { span: s.right.toolTagSelect, children: e.jsx(d.Item, { children: e.jsx(F, { allowClear: !0, className: "tableSelectPopupToolTagSelect", style: {
52
- width: "100%",
53
- "--toolTagSelect-color": n ? t.colorTextDisabled : t.colorText
54
- }, placeholder: "常用标签", showSearch: !1, disabled: n, options: G, value: O, onChange: $, onDropdownVisibleChange: x }) }) }), e.jsx(c, { span: s.right.totalSelect, children: e.jsx(d.Item, { children: e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [e.jsx(F, { style: { width: "100%" }, mode: "multiple", placeholder: "", showSearch: !1, options: i, value: a, fieldNames: l, popupClassName: "tableSelectPopupTotalPopup", dropdownRender: X, tagRender: () => e.jsx(e.Fragment, {}), onDropdownVisibleChange: x }), e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: U(["已选择", "条数据"], a.length || 0) })] }) }) }), e.jsx(c, { span: s.right.button, children: e.jsx(M, { type: "primary", danger: !0, onClick: () => u([], [], "clear"), children: "清空" }) }), e.jsx(c, { span: s.right.button, children: e.jsx(M, { type: "primary", onClick: () => u([], [], "confirm"), children: "确认" }) })] }) })] }) }) }) }), e.jsx("div", { ref: v, ...p && {
55
- className: "pointerMouse",
56
- onClick: () => D()
57
- }, children: e.jsx(oe, { spinning: p, indicator: e.jsx(he, {}), tip: e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }), children: e.jsx(ne, { rowKey: l.value, loading: n, bordered: "row-column", tableLayout: "fixed", scroll: { x: 1, y: 400 }, showPagination: !1, showTableTool: !1, rowSelection: J, columns: q, dataSource: h, className: Y, ...Q(), style: {
58
- "--tableBody-bootomBorderColor": ((z = t.Table) == null ? void 0 : z.borderColor) || t.colorBorderSecondary
59
- } }) }) }), e.jsx(d, { children: e.jsx(d.Item, { style: { marginBottom: 0 }, children: e.jsx(ce, { disabled: n, className: "tableSelectPopupTablePagination", size: "small", enableControl: !0, pagination: T, total: K, dataSource: h, paginationEmit: N }) }) })] }) })] });
111
+ L(R ?? []), O(B ?? []);
112
+ }, [R, B]), /* @__PURE__ */ e.jsxs(m, { gutter: s.gutter, children: [
113
+ /* @__PURE__ */ e.jsx(c, { span: s.left.span, children: b && P && P(I, f == null ? void 0 : f.height) }),
114
+ /* @__PURE__ */ e.jsx(c, { span: s.right.span, children: /* @__PURE__ */ e.jsxs(k, { direction: "vertical", size: I, style: { width: "100%" }, children: [
115
+ /* @__PURE__ */ e.jsx(d, { className: "tableSelectPopupSearchForm", children: /* @__PURE__ */ e.jsx(m, { gutter: [16, 16], children: /* @__PURE__ */ e.jsx(c, { span: 24, children: /* @__PURE__ */ e.jsxs(m, { justify: "space-between", gutter: [16, 16], children: [
116
+ /* @__PURE__ */ e.jsx(c, { span: s.right.search, children: /* @__PURE__ */ e.jsx(d.Item, { children: G }) }),
117
+ /* @__PURE__ */ e.jsx(c, { span: s.right.operation, children: /* @__PURE__ */ e.jsxs(m, { justify: "end", gutter: 8, children: [
118
+ /* @__PURE__ */ e.jsx(c, { span: s.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsx(
119
+ M,
120
+ {
121
+ allowClear: !0,
122
+ className: "tableSelectPopupToolTagSelect",
123
+ style: {
124
+ width: "100%",
125
+ "--toolTagSelect-color": i ? t.colorTextDisabled : t.colorText
126
+ },
127
+ placeholder: "常用标签",
128
+ showSearch: !1,
129
+ disabled: i,
130
+ options: H,
131
+ value: W,
132
+ onChange: q,
133
+ onDropdownVisibleChange: x
134
+ }
135
+ ) }) }),
136
+ /* @__PURE__ */ e.jsx(c, { span: s.right.totalSelect, children: /* @__PURE__ */ e.jsx(d.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
137
+ /* @__PURE__ */ e.jsx(
138
+ M,
139
+ {
140
+ style: { width: "100%" },
141
+ mode: "multiple",
142
+ placeholder: "",
143
+ showSearch: !1,
144
+ options: n,
145
+ value: a,
146
+ fieldNames: l,
147
+ popupClassName: "tableSelectPopupTotalPopup",
148
+ dropdownRender: Y,
149
+ tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
150
+ onDropdownVisibleChange: x
151
+ }
152
+ ),
153
+ /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: X(
154
+ ["已选择", "条数据"],
155
+ a.length || 0
156
+ ) })
157
+ ] }) }) }),
158
+ /* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
159
+ F,
160
+ {
161
+ type: "primary",
162
+ danger: !0,
163
+ onClick: () => u([], [], "clear"),
164
+ children: "清空"
165
+ }
166
+ ) }),
167
+ /* @__PURE__ */ e.jsx(c, { span: s.right.button, children: /* @__PURE__ */ e.jsx(
168
+ F,
169
+ {
170
+ type: "primary",
171
+ onClick: () => u([], [], "confirm"),
172
+ children: "确认"
173
+ }
174
+ ) })
175
+ ] }) })
176
+ ] }) }) }) }),
177
+ /* @__PURE__ */ e.jsx(
178
+ "div",
179
+ {
180
+ ref: E,
181
+ ...p && {
182
+ className: "pointerMouse",
183
+ onClick: () => _()
184
+ },
185
+ children: /* @__PURE__ */ e.jsx(
186
+ oe,
187
+ {
188
+ spinning: p,
189
+ indicator: /* @__PURE__ */ e.jsx(he, {}),
190
+ tip: /* @__PURE__ */ e.jsx(le.Text, { type: "danger", children: "加载失败,点击重试" }),
191
+ children: /* @__PURE__ */ e.jsx(
192
+ ie,
193
+ {
194
+ rowKey: l.value,
195
+ loading: i,
196
+ bordered: "row-column",
197
+ tableLayout: "fixed",
198
+ scroll: { x: 1, y: 400 },
199
+ showPagination: !1,
200
+ showTableTool: !1,
201
+ rowSelection: Q,
202
+ columns: J,
203
+ dataSource: h,
204
+ className: Z,
205
+ ...U(),
206
+ style: {
207
+ "--tableBody-bootomBorderColor": ((C = t.Table) == null ? void 0 : C.borderColor) || t.colorBorderSecondary
208
+ }
209
+ }
210
+ )
211
+ }
212
+ )
213
+ }
214
+ ),
215
+ /* @__PURE__ */ e.jsx(d, { children: /* @__PURE__ */ e.jsx(d.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
216
+ ce,
217
+ {
218
+ disabled: i,
219
+ className: "tableSelectPopupTablePagination",
220
+ size: "small",
221
+ enableControl: !0,
222
+ pagination: w,
223
+ total: N,
224
+ dataSource: h,
225
+ paginationEmit: A
226
+ }
227
+ ) }) })
228
+ ] }) })
229
+ ] });
60
230
  }
61
231
  export {
62
- ze as default
232
+ Ce as default
63
233
  };
@@ -10,14 +10,55 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
10
10
  paddingBlock: 12,
11
11
  paddingInline: 24
12
12
  }), [n]), [r, o] = m(!1);
13
- return e.jsxs("div", { className: "cellBlock", style: a, onFocus: () => o(!0), onBlur: () => o(!1), children: [e.jsx(p, { className: s("cellText"), value: t }), e.jsxs("div", { className: s("tipBlock", l ? "toTop" : "toBottom", r ? "show" : ""), style: {
14
- paddingInlineStart: 24 - 2,
15
- paddingInlineEnd: 24 - 4,
16
- paddingBlock: 12
17
- }, children: [e.jsx(u, { className: s("closeIcon", l ? "top" : "bottom"), onClick: () => o(!1) }), e.jsx(x, { className: "tipText", value: t, autoSize: {
18
- minRows: 1,
19
- maxRows: 100
20
- }, variant: "borderless", readOnly: !0 })] })] });
13
+ return /* @__PURE__ */ e.jsxs(
14
+ "div",
15
+ {
16
+ className: "cellBlock",
17
+ style: a,
18
+ onFocus: () => o(!0),
19
+ onBlur: () => o(!1),
20
+ children: [
21
+ /* @__PURE__ */ e.jsx(p, { className: s("cellText"), value: t }),
22
+ /* @__PURE__ */ e.jsxs(
23
+ "div",
24
+ {
25
+ className: s(
26
+ "tipBlock",
27
+ l ? "toTop" : "toBottom",
28
+ r ? "show" : ""
29
+ ),
30
+ style: {
31
+ paddingInlineStart: 24 - 2,
32
+ paddingInlineEnd: 24 - 4,
33
+ paddingBlock: 12
34
+ },
35
+ children: [
36
+ /* @__PURE__ */ e.jsx(
37
+ u,
38
+ {
39
+ className: s("closeIcon", l ? "top" : "bottom"),
40
+ onClick: () => o(!1)
41
+ }
42
+ ),
43
+ /* @__PURE__ */ e.jsx(
44
+ x,
45
+ {
46
+ className: "tipText",
47
+ value: t,
48
+ autoSize: {
49
+ minRows: 1,
50
+ maxRows: 100
51
+ },
52
+ variant: "borderless",
53
+ readOnly: !0
54
+ }
55
+ )
56
+ ]
57
+ }
58
+ )
59
+ ]
60
+ }
61
+ );
21
62
  };
22
63
  export {
23
64
  g as default
@@ -1,19 +1,37 @@
1
- import { j as l } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Input as m } from "antd";
3
- import i from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
1
+ import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { Input as l } from "antd";
3
+ import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
4
  import "./index.less.mjs";
5
- const { TextArea: n } = m, f = ({ maxRows: t = 1, minRows: o, bold: e, value: s, className: r }) => {
5
+ const { TextArea: n } = l, u = ({
6
+ maxRows: t = 1,
7
+ minRows: o,
8
+ bold: e,
9
+ value: s,
10
+ className: r
11
+ }) => {
6
12
  const a = {
7
13
  "--cell-text-maxRows": t,
8
14
  ...e && {
9
15
  fontWeight: e
10
16
  }
11
17
  };
12
- return l.jsx(n, { className: i("textBlock", r), title: s, value: s, readOnly: !0, size: "small", variant: "borderless", autoSize: {
13
- minRows: o ?? t,
14
- maxRows: t
15
- }, style: a });
18
+ return /* @__PURE__ */ i.jsx(
19
+ n,
20
+ {
21
+ className: m("textBlock", r),
22
+ title: s,
23
+ value: s,
24
+ readOnly: !0,
25
+ size: "small",
26
+ variant: "borderless",
27
+ autoSize: {
28
+ minRows: o ?? t,
29
+ maxRows: t
30
+ },
31
+ style: a
32
+ }
33
+ );
16
34
  };
17
35
  export {
18
- f as default
36
+ u as default
19
37
  };
@@ -1,16 +1,64 @@
1
- import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useMemo as b } from "react";
3
- import { isMobile as x } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import h from "./Select/index.mjs";
5
- import j from "./Picker/index.mjs";
6
- function y({ columns: i, tableData: m, loading: u, loadingFailed: p, loadAgain: c, total: d, page: o, onPageChange: s, onSearch: g, showToolTagSelect: a = !1, placeholder: t = "请选择", fieldNames: r, offsetWidth: e, ...n }) {
7
- const f = b(() => n.lrLayout ? a ? 900 + (e || 0) : 830 + (e || 0) : a ? 750 + (e || 0) : 700 + (e || 0), [n.lrLayout, a, e]);
8
- return l.jsx(l.Fragment, { children: x ? l.jsx(j, { columns: [], tableData: [], loading: !1, loadingFailed: !1, loadAgain: function() {
9
- throw new Error("Function not implemented.");
10
- }, total: 0, page: o, onPageChange: function() {
11
- throw new Error("Function not implemented.");
12
- }, placeholder: t, fieldNames: r, ...n }) : l.jsx(h, { columns: i, tableData: m, loading: u, loadingFailed: p, loadAgain: c, total: d, page: o, onPageChange: s, onSearch: g, placeholder: t, fieldNames: r, popupMatchSelectWidth: f, showToolTagSelect: a, ...n }) });
1
+ import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useMemo as j } from "react";
3
+ import { isMobile as F } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import M from "./Select/index.mjs";
5
+ import d from "./Picker/index.mjs";
6
+ function z({
7
+ columns: l,
8
+ tableData: m,
9
+ loading: u,
10
+ loadingFailed: p,
11
+ loadAgain: c,
12
+ total: s,
13
+ page: i,
14
+ onPageChange: b,
15
+ onSearch: f,
16
+ showToolTagSelect: r = !1,
17
+ placeholder: o = "请选择",
18
+ fieldNames: a,
19
+ offsetWidth: n,
20
+ ...e
21
+ }) {
22
+ const x = j(() => e.lrLayout ? r ? 900 + (n || 0) : 830 + (n || 0) : r ? 750 + (n || 0) : 700 + (n || 0), [e.lrLayout, r, n]);
23
+ return /* @__PURE__ */ t.jsx(t.Fragment, { children: F ? /* @__PURE__ */ t.jsx(
24
+ d,
25
+ {
26
+ columns: [],
27
+ tableData: [],
28
+ loading: !1,
29
+ loadingFailed: !1,
30
+ loadAgain: function() {
31
+ throw new Error("Function not implemented.");
32
+ },
33
+ total: 0,
34
+ page: i,
35
+ onPageChange: function() {
36
+ throw new Error("Function not implemented.");
37
+ },
38
+ placeholder: o,
39
+ fieldNames: a,
40
+ ...e
41
+ }
42
+ ) : /* @__PURE__ */ t.jsx(
43
+ M,
44
+ {
45
+ columns: l,
46
+ tableData: m,
47
+ loading: u,
48
+ loadingFailed: p,
49
+ loadAgain: c,
50
+ total: s,
51
+ page: i,
52
+ onPageChange: b,
53
+ onSearch: f,
54
+ placeholder: o,
55
+ fieldNames: a,
56
+ popupMatchSelectWidth: x,
57
+ showToolTagSelect: r,
58
+ ...e
59
+ }
60
+ ) });
13
61
  }
14
62
  export {
15
- y as default
63
+ z as default
16
64
  };
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { Tag as a } from "antd";
3
3
  const p = ({ color: t = "default", closable: e = !1, ...o }) => {
4
4
  const r = { color: t, closable: e, ...o };
5
- return s.jsx(a, { ...r, children: r.children });
5
+ return /* @__PURE__ */ s.jsx(a, { ...r, children: r.children });
6
6
  };
7
7
  export {
8
8
  p as default