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,265 +1,114 @@
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 ce, useState as B, useCallback as ne, useMemo as A, useEffect as ie } from "react";
3
- import { Row as y, Col as p, Space as F, Form as j, Select as H, Spin as ae, Typography as pe, Flex as ue, Empty as O } 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
- import xe from "../../BitzTable/index.mjs";
5
+ import he from "../../BitzTable/index.mjs";
6
6
  import G from "../../BitzButton/index.mjs";
7
- import { getColumns as me, getExpandable as he, getLayoutConfig as je } from "./getData.mjs";
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 ye from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
12
- import { BitzConfigContext as ge } 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: q,
19
- tableData: g,
20
- total: J,
21
- loading: u,
22
- loadingFailed: f,
23
- loadAgain: L,
24
- page: z,
25
- onPageChange: Q,
26
- searchInput: U,
27
- showToolTagSelect: P,
28
- toolTags: W,
29
- onToolTagChange: w,
30
- lrLayout: T,
31
- parentRender: E,
32
- keys: R,
33
- rows: I,
34
- fieldNames: t,
35
- mode: k,
36
- onChange: d,
37
- onDropdownVisibleChange: b
38
- }) {
39
- var K, _, $;
40
- const C = re(null), v = fe(C), { token: n } = be.useToken(), M = ((K = n == null ? void 0 : n.BitzTableSelect) == null ? void 0 : K.tableSpaceBetweenPage) ?? 10, X = ((_ = ce(ge).TableSelect) == null ? void 0 : _.defaultSize) ?? "md", [i, Y] = B([]), [c, Z] = B([]), [D, V] = B(void 0), N = (o, s) => {
41
- V(o), w == null || w(o, s), o || (b(!0), setTimeout(() => {
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(() => {
42
21
  b(!1);
43
22
  }, 0));
44
- }, ee = me(q, g, z), te = {
23
+ }, ee = xe(q, y, E), te = {
45
24
  type: k === "single" ? "radio" : "checkbox",
46
- selectedRowKeys: i,
25
+ selectedRowKeys: c,
47
26
  ...k === "single" ? {
48
27
  onChange(o, s) {
49
- d(o, s);
28
+ d(o), h(s);
50
29
  }
51
30
  } : {
52
31
  onSelect: (o, s) => {
53
32
  if (s) {
54
- const l = i.concat([o[t.value]]), r = c.concat([o]);
55
- d(l, r);
33
+ const r = c.concat([o[t.value]]), n = l.concat([o]);
34
+ d(r), h(n);
56
35
  } else {
57
- const l = c.filter(
58
- (r) => r[t.value] !== o[t.value]
59
- );
60
- d(
61
- l.map((r) => r[t.value]),
62
- l
63
- );
36
+ const r = l.filter((n) => n[t.value] !== o[t.value]);
37
+ d(r.map((n) => n[t.value])), h(r);
64
38
  }
65
39
  },
66
- onSelectAll: (o, s, l) => {
67
- const r = l.map((x) => x[t.value]);
40
+ onSelectAll: (o, s, r) => {
41
+ const n = r.map((x) => x[t.value]);
68
42
  if (o) {
69
- const x = i.concat(r), m = c.concat(l);
70
- d(x, m);
43
+ const x = c.concat(n), m = l.concat(r);
44
+ d(x), h(m);
71
45
  } else {
72
- const x = i == null ? void 0 : i.filter((h) => !r.includes(h)), m = /* @__PURE__ */ new Map();
73
- l.forEach((h) => {
74
- m.set(h[t.value], h);
46
+ const x = c == null ? void 0 : c.filter((j) => !n.includes(j)), m = /* @__PURE__ */ new Map();
47
+ r.forEach((j) => {
48
+ m.set(j[t.value], j);
75
49
  });
76
- const S = c == null ? void 0 : c.filter(
77
- (h) => !m.has(h[t.value])
78
- );
79
- d(x, S);
50
+ const f = l == null ? void 0 : l.filter((j) => !m.has(j[t.value]));
51
+ d(x), h(f);
80
52
  }
81
53
  }
82
54
  }
83
- }, oe = ne(() => he(t.items, u), [t.items, u]), se = () => {
55
+ }, oe = ce(() => me(t.items, p), [t.items, p]), se = () => {
84
56
  const o = (s) => {
85
- const l = [...i], r = [...c], x = l.findIndex((S) => S === s[t.value]), m = r.findIndex(
86
- (S) => S[t.value] === s[t.value]
87
- );
88
- r.splice(m, 1), l.splice(x, 1), d(l, r);
57
+ const r = [...c], n = [...l], x = r.findIndex((f) => f === s[t.value]), m = n.findIndex((f) => f[t.value] === s[t.value]);
58
+ n.splice(m, 1), r.splice(x, 1), d(r), h(n);
89
59
  };
90
- return /* @__PURE__ */ e.jsxs(
91
- F,
92
- {
93
- direction: "vertical",
94
- style: {
95
- width: "calc(100% - 5px)",
96
- paddingRight: 5,
97
- maxHeight: c.length ? 220 : "auto",
98
- overflow: "hidden auto"
99
- },
100
- children: [
101
- c.map((s) => /* @__PURE__ */ e.jsxs(
102
- ue,
103
- {
104
- justify: "space-between",
105
- style: {
106
- padding: "4px 8px",
107
- border: `1px solid ${n.colorBorder}`,
108
- backgroundColor: "#f5f5f5",
109
- borderRadius: n.borderRadiusSM,
110
- overflow: "hidden"
111
- },
112
- children: [
113
- /* @__PURE__ */ e.jsx("div", { style: { width: "calc(100% - 15px)" }, children: /* @__PURE__ */ e.jsx(Se, { value: s[t.label] }) }),
114
- /* @__PURE__ */ e.jsx(
115
- ve,
116
- {
117
- style: {
118
- color: n.colorError,
119
- fontSize: 13,
120
- cursor: "pointer"
121
- },
122
- onClick: () => o(s)
123
- }
124
- )
125
- ]
126
- },
127
- s[t.value]
128
- )),
129
- !c.length && /* @__PURE__ */ e.jsx(O, { image: O.PRESENTED_IMAGE_SIMPLE })
130
- ]
131
- }
132
- );
133
- }, a = A(() => je(T, P), [T, P]), le = A(() => ye(
134
- { loadingTable: u },
135
- { loadingFailedTable: f },
136
- "bitzSelectTable"
137
- ), [f, 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]);
138
77
  return ie(() => {
139
- Y(R ?? []), Z(I ?? []);
140
- }, [R, I]), /* @__PURE__ */ e.jsxs(y, { gutter: a.gutter, children: [
141
- /* @__PURE__ */ e.jsx(p, { span: a.left.span, children: T && E && E(M, v == null ? void 0 : v.height) }),
142
- /* @__PURE__ */ e.jsx(p, { span: a.right.span, children: /* @__PURE__ */ e.jsxs(F, { direction: "vertical", size: M, style: { width: "100%" }, children: [
143
- /* @__PURE__ */ e.jsx(j, { 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: [
144
- /* @__PURE__ */ e.jsx(p, { span: a.right.search, children: /* @__PURE__ */ e.jsx(j.Item, { children: U }) }),
145
- /* @__PURE__ */ e.jsx(p, { span: a.right.operation, children: /* @__PURE__ */ e.jsxs(y, { justify: "end", gutter: 8, children: [
146
- /* @__PURE__ */ e.jsx(p, { span: a.right.toolTagSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsx(
147
- H,
148
- {
149
- allowClear: !0,
150
- className: "tableSelectPopupToolTagSelect",
151
- style: {
152
- width: "100%",
153
- "--toolTagSelect-color": u ? n.colorTextDisabled : n.colorText
154
- },
155
- placeholder: "常用标签",
156
- showSearch: !1,
157
- disabled: u,
158
- options: W,
159
- value: D,
160
- onChange: N,
161
- onDropdownVisibleChange: b
162
- }
163
- ) }) }),
164
- /* @__PURE__ */ e.jsx(p, { span: a.right.totalSelect, children: /* @__PURE__ */ e.jsx(j.Item, { children: /* @__PURE__ */ e.jsxs("div", { className: "tableSelectPopupTotalSelect", children: [
165
- /* @__PURE__ */ e.jsx(
166
- H,
167
- {
168
- style: { width: "100%" },
169
- mode: "multiple",
170
- placeholder: "",
171
- showSearch: !1,
172
- options: c,
173
- value: i,
174
- fieldNames: t,
175
- popupClassName: "tableSelectPopupTotalPopup",
176
- dropdownRender: se,
177
- tagRender: () => /* @__PURE__ */ e.jsx(e.Fragment, {}),
178
- onDropdownVisibleChange: b
179
- }
180
- ),
181
- /* @__PURE__ */ e.jsx("div", { className: "tableSelectPopupTotalSelectTip", children: /* @__PURE__ */ e.jsx(
182
- we,
183
- {
184
- highlightTag: "strong",
185
- sourceString: `已选择 ${i.length || 0} 条数据`,
186
- keywords: `${i.length || 0}`
187
- }
188
- ) })
189
- ] }) }) }),
190
- /* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
191
- G,
192
- {
193
- type: "primary",
194
- danger: !0,
195
- onClick: () => d([], [], "clear"),
196
- children: "清空"
197
- }
198
- ) }),
199
- /* @__PURE__ */ e.jsx(p, { span: a.right.button, children: /* @__PURE__ */ e.jsx(
200
- G,
201
- {
202
- type: "primary",
203
- onClick: () => d([], [], "confirm"),
204
- children: "确认"
205
- }
206
- ) })
207
- ] }) })
208
- ] }) }) }) }),
209
- /* @__PURE__ */ e.jsx(
210
- "div",
211
- {
212
- ref: C,
213
- ...f && {
214
- className: "pointerMouse",
215
- onClick: () => L()
216
- },
217
- children: /* @__PURE__ */ e.jsx(
218
- ae,
219
- {
220
- spinning: f,
221
- indicator: /* @__PURE__ */ e.jsx(Te, {}),
222
- tip: /* @__PURE__ */ e.jsx(pe.Text, { type: "danger", children: "加载失败,点击重试" }),
223
- children: /* @__PURE__ */ e.jsx(
224
- xe,
225
- {
226
- size: X,
227
- rowKey: t.value,
228
- loading: u,
229
- bordered: "row-column",
230
- scroll: { x: 1, y: 400 },
231
- showPagination: !1,
232
- showTableTool: !1,
233
- rowSelection: te,
234
- columns: ee,
235
- dataSource: g,
236
- className: le,
237
- ...oe(),
238
- style: {
239
- "--tableBody-bootomBorderColor": (($ = n.Table) == null ? void 0 : $.borderColor) || n.colorBorderSecondary
240
- }
241
- }
242
- )
243
- }
244
- )
245
- }
246
- ),
247
- /* @__PURE__ */ e.jsx(j, { children: /* @__PURE__ */ e.jsx(j.Item, { style: { marginBottom: 0 }, children: /* @__PURE__ */ e.jsx(
248
- de,
249
- {
250
- disabled: u,
251
- className: "tableSelectPopupTablePagination",
252
- size: "small",
253
- enableControl: !0,
254
- pagination: z,
255
- total: J,
256
- dataSource: g,
257
- paginationEmit: Q
258
- }
259
- ) }) })
260
- ] }) })
261
- ] });
78
+ d(R ?? []), h(I ?? []);
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 }) }) })] }) })] });
262
111
  }
263
112
  export {
264
- Ge as default
113
+ Oe as default
265
114
  };
@@ -1,89 +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 c, useEffect as b } from "react";
3
- import { Select as U } from "antd";
4
- import W from "../SelectPopup/index.mjs";
5
- import { isNotFalsy as X } from "../utils.mjs";
6
- function P({
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: O,
21
- lrLayout: V,
22
- parentRender: a,
23
- mode: q = "single",
24
- placeholder: z = "请选择",
25
- fieldNames: p,
26
- onChange: e,
27
- onPopupVisibleChange: f,
28
- ...A
29
- }) {
30
- const [o, G] = c(), [u, r] = c(), [i, m] = c(!1), [H, I] = c(!1), J = () => {
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 = () => {
31
8
  r([]), e == null || e([], []);
32
- }, K = (t, l, Q) => {
33
- Q === "confirm" ? m(!1) : (r(l), e == null || e(t, l));
34
- }, L = (t, l) => {
35
- r(l), e == null || e(t, l);
36
- }, M = (t) => {
37
- !i && t && m(!0), !H && !t && i && m(!1), f == null || f(t);
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
- return b(() => {
40
- G(S);
41
- }, [S]), b(() => {
42
- s != null && s.length && r(s);
43
- }, [s]), /* @__PURE__ */ x.jsx(
44
- U,
45
- {
46
- allowClear: !0,
47
- className: "tableSelectBlock",
48
- value: o,
49
- options: u,
50
- fieldNames: p,
51
- showSearch: !1,
52
- open: i,
53
- placeholder: z,
54
- popupClassName: "tableSelectPopupBlock",
55
- dropdownRender: () => /* @__PURE__ */ x.jsx(
56
- W,
57
- {
58
- columns: j,
59
- tableData: k,
60
- total: v,
61
- page: D,
62
- onPageChange: E,
63
- searchInput: N,
64
- loading: w,
65
- loadingFailed: y,
66
- loadAgain: B,
67
- keys: X(o) ? [o] : [],
68
- rows: u,
69
- fieldNames: p,
70
- onChange: K,
71
- onDropdownVisibleChange: I,
72
- showToolTagSelect: T,
73
- toolTags: F,
74
- onToolTagChange: O,
75
- lrLayout: V,
76
- parentRender: a,
77
- mode: q
78
- }
79
- ),
80
- onClear: J,
81
- onDropdownVisibleChange: M,
82
- onChange: L,
83
- ...A
84
- }
85
- );
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 });
86
23
  }
87
24
  export {
88
- P as default
25
+ h as default
89
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
  };