bitz-react-admin-ui 2.5.7 → 2.5.9

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