bitz-react-admin-ui 2.5.9 → 2.6.0

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 (183) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +25 -4
  2. package/dist/assets/iconfont/IconClose.mjs +24 -3
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
  6. package/dist/assets/iconfont/IconCuowu.mjs +23 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
  8. package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
  9. package/dist/assets/iconfont/IconFabu.mjs +35 -5
  10. package/dist/assets/iconfont/IconFanhui.mjs +25 -4
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +25 -4
  16. package/dist/assets/iconfont/IconJincoude.mjs +25 -4
  17. package/dist/assets/iconfont/IconJinggao.mjs +25 -4
  18. package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
  20. package/dist/assets/iconfont/IconMore.mjs +41 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +27 -6
  22. package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
  23. package/dist/assets/iconfont/IconSousuo.mjs +27 -6
  24. package/dist/assets/iconfont/IconTejincou.mjs +25 -4
  25. package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +27 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +28 -7
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
  29. package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
  34. package/dist/assets/iconfont/index.mjs +33 -33
  35. package/dist/components/BitzAddTag/index.mjs +41 -8
  36. package/dist/components/BitzAddressBook/index.mjs +122 -35
  37. package/dist/components/BitzAppPage/index.mjs +18 -4
  38. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  39. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  40. package/dist/components/BitzButton/index.mjs +23 -9
  41. package/dist/components/BitzCalendar/index.mjs +52 -19
  42. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  43. package/dist/components/BitzCascader/index.mjs +6 -2
  44. package/dist/components/BitzCollapse/index.mjs +4 -4
  45. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  46. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  47. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  48. package/dist/components/BitzDescriptions/index.mjs +11 -1
  49. package/dist/components/BitzDrawer/index.mjs +17 -2
  50. package/dist/components/BitzEmpty/index.mjs +6 -2
  51. package/dist/components/BitzException/index.mjs +6 -1
  52. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  53. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  54. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  55. package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
  57. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  58. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  59. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  60. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  61. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  62. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  63. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
  64. package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
  65. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
  66. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  67. package/dist/components/BitzFullScreen/index.mjs +9 -6
  68. package/dist/components/BitzHighlight/Child.mjs +23 -9
  69. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  70. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  71. package/dist/components/BitzHighlight/style.mjs +4 -1
  72. package/dist/components/BitzImage/index.mjs +1 -1
  73. package/dist/components/BitzImage/previewImage.mjs +12 -5
  74. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  75. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  76. package/dist/components/BitzList/List.mjs +17 -3
  77. package/dist/components/BitzList/LoadMore.mjs +29 -20
  78. package/dist/components/BitzLoadMore/index.mjs +34 -14
  79. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  80. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  81. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  82. package/dist/components/BitzModal/index.mjs +24 -11
  83. package/dist/components/BitzNoData/index.mjs +4 -1
  84. package/dist/components/BitzNoMore/index.mjs +1 -1
  85. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  86. package/dist/components/BitzPageContainer/index.mjs +107 -46
  87. package/dist/components/BitzPageHeader/index.mjs +89 -21
  88. package/dist/components/BitzPagination/index.mjs +71 -22
  89. package/dist/components/BitzPopover/index.mjs +4 -4
  90. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  91. package/dist/components/BitzQRCode/index.mjs +6 -1
  92. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  93. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  94. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  95. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  96. package/dist/components/BitzRefresh/index.mjs +5 -1
  97. package/dist/components/BitzRemark/index.mjs +4 -4
  98. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  99. package/dist/components/BitzSearch/index.mjs +1 -1
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  101. package/dist/components/BitzSelect/index.mjs +1 -1
  102. package/dist/components/BitzSkeleton/index.mjs +31 -1
  103. package/dist/components/BitzSwitch/index.mjs +7 -2
  104. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  105. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  106. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
  107. package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
  108. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  109. package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
  110. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  111. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  112. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  113. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  114. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
  115. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  116. package/dist/components/BitzTable/Store/index.mjs +170 -133
  117. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
  118. package/dist/components/BitzTable/Store/utils/index.mjs +48 -38
  119. package/dist/components/BitzTable/SubTable/index.mjs +91 -43
  120. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +57 -40
  121. package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
  122. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  123. package/dist/components/BitzTable/Table/index.mjs +476 -213
  124. package/dist/components/BitzTable/Table/style.mjs +10 -1
  125. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  126. package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +83 -27
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +278 -150
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +129 -38
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +97 -43
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +38 -9
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
  139. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +37 -8
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
  143. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  144. package/dist/components/BitzTableOperations/index.mjs +13 -3
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  146. package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
  150. package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
  151. package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
  152. package/dist/components/BitzTableSelect/index.mjs +65 -14
  153. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  154. package/dist/components/BitzTag/index.mjs +1 -1
  155. package/dist/components/BitzText/index.mjs +41 -14
  156. package/dist/components/BitzText/utils.mjs +3 -3
  157. package/dist/components/BitzTheme/index.mjs +6 -6
  158. package/dist/components/BitzTimeline/index.mjs +11 -1
  159. package/dist/components/BitzTimer/Form.mjs +32 -11
  160. package/dist/components/BitzTimer/Timer.mjs +76 -38
  161. package/dist/components/BitzTimer/index.mjs +66 -43
  162. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  163. package/dist/components/BitzToast/index.mjs +1 -1
  164. package/dist/components/BitzTooltip/index.mjs +47 -17
  165. package/dist/components/BitzTooltip/style.mjs +9 -6
  166. package/dist/components/BitzTooltip/utils.mjs +2 -2
  167. package/dist/components/BitzTree/index.mjs +4 -1
  168. package/dist/components/BitzUeEditor/index.mjs +5 -5
  169. package/dist/components/BitzUpload/index.mjs +81 -43
  170. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  171. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  172. package/dist/hooks/use-event-listener.mjs +11 -2
  173. package/dist/hooks/use-lock-fn.mjs +13 -10
  174. package/dist/hooks/use-scroll-parent.mjs +16 -14
  175. package/dist/hooks/useEvent.mjs +7 -4
  176. package/dist/hooks/useMergedState.mjs +11 -11
  177. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useDebounceFn/index.mjs +29 -0
  178. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs +7 -0
  179. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +37 -34
  180. package/dist/style.css +1 -1
  181. package/dist/utils/WithFluent.mjs +27 -5
  182. package/dist/utils/create.mjs +7 -1
  183. package/package.json +1 -1
@@ -1,33 +1,101 @@
1
1
  import { j as s } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useState as k } from "react";
3
- import j from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
- import { createNamespace as B } from "../../utils/create.mjs";
5
- import { Avatar as C, Space as y, Breadcrumb as w } from "antd";
2
+ import { useState as B } from "react";
3
+ import p from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { createNamespace as C } from "../../utils/create.mjs";
5
+ import { Avatar as R, Space as w, Breadcrumb as y } from "antd";
6
6
  import A from "../../node_modules/.store/rc-resize-observer@1.4.0/node_modules/rc-resize-observer/es/index.mjs";
7
7
  import "./index.less.mjs";
8
8
  import F from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/ArrowRightOutlined.mjs";
9
9
  import O from "../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/ArrowLeftOutlined.mjs";
10
- const P = (t, e, i, n) => !i || !n ? null : s.jsx("div", { className: `${t}-back ${e}`.trim(), children: s.jsx("div", { role: "button", onClick: (c) => {
11
- n == null || n(c);
12
- }, className: `${t}-back-button ${e}`.trim(), "aria-label": "back", children: i }) }), T = (t, e) => {
10
+ const P = (e, t, i, n) => !i || !n ? null : /* @__PURE__ */ s.jsx("div", { className: `${e}-back ${t}`.trim(), children: /* @__PURE__ */ s.jsx(
11
+ "div",
12
+ {
13
+ role: "button",
14
+ onClick: (o) => {
15
+ n == null || n(o);
16
+ },
17
+ className: `${e}-back-button ${t}`.trim(),
18
+ "aria-label": "back",
19
+ children: i
20
+ }
21
+ ) }), T = (e, t) => {
13
22
  var i;
14
- return (i = t.items) != null && i.length ? s.jsx(w, { ...t, className: j(`${e}-breadcrumb`, t.className) }) : null;
15
- }, H = (t, e = "ltr") => t.backIcon !== void 0 ? t.backIcon : e === "rtl" ? s.jsx(F, {}) : s.jsx(O, {}), S = (t, e, i = "ltr", n) => {
16
- const { title: c, avatar: l, subTitle: a, tags: m, extra: d, onBack: f } = e, o = `${t}-heading`, r = c || a || m || d;
23
+ return (i = e.items) != null && i.length ? /* @__PURE__ */ s.jsx(
24
+ y,
25
+ {
26
+ ...e,
27
+ className: p(`${t}-breadcrumb`, e.className)
28
+ }
29
+ ) : null;
30
+ }, H = (e, t = "ltr") => e.backIcon !== void 0 ? e.backIcon : t === "rtl" ? /* @__PURE__ */ s.jsx(F, {}) : /* @__PURE__ */ s.jsx(O, {}), S = (e, t, i = "ltr", n) => {
31
+ const {
32
+ title: o,
33
+ avatar: l,
34
+ subTitle: a,
35
+ tags: m,
36
+ extra: d,
37
+ onBack: f
38
+ } = t, c = `${e}-heading`, r = o || a || m || d;
17
39
  if (!r)
18
40
  return null;
19
- const u = H(e, i), $ = P(t, n, u, f), x = $ || l || r;
20
- return s.jsxs("div", { className: o + " " + n, children: [x && s.jsxs("div", { className: `${o}-left ${n}`.trim(), children: [$, l && s.jsx(C, { className: j(`${o}-avatar`, n, l.className), ...l }), c && s.jsx("span", { className: `${o}-title ${n}`.trim(), title: typeof c == "string" ? c : void 0, children: c }), a && s.jsx("span", { className: `${o}-sub-title ${n}`.trim(), title: typeof a == "string" ? a : void 0, children: a }), m && s.jsx("span", { className: `${o}-tags ${n}`.trim(), children: m })] }), d && s.jsx("span", { className: `${o}-extra ${n}`.trim(), children: s.jsx(y, { children: d }) })] });
21
- }, E = (t, e, i) => s.jsx("div", { className: `${t}-content ${i}`.trim(), children: e }), L = (t, e, i) => e ? s.jsx("div", { className: `${t}-footer ${i}`.trim(), children: e }) : null, X = (t) => {
22
- const [e, i] = B("bitz-page-header"), n = "ltr", c = "id_123123", [l, a] = k(!1), m = ({ width: R }) => a(R < 768), { style: d, footer: f, children: o, breadcrumb: r, breadcrumbRender: u, className: $, contentWidth: x } = t, p = (() => (r && !(r != null && r.items) && (r != null && r.routes) && (r.items = r.routes), r != null && r.items ? T(r, e) : null))(), v = r && "props" in r, D = (u == null ? void 0 : u({ ...t, prefixCls: e }, p)) ?? p, N = v ? r : D, z = j(e, c, $, {
23
- [`${e}-has-breadcrumb`]: !!N,
24
- [`${e}-has-footer`]: !!f,
41
+ const u = H(t, i), $ = P(e, n, u, f), x = $ || l || r;
42
+ return /* @__PURE__ */ s.jsxs("div", { className: c + " " + n, children: [
43
+ x && /* @__PURE__ */ s.jsxs("div", { className: `${c}-left ${n}`.trim(), children: [
44
+ $,
45
+ l && /* @__PURE__ */ s.jsx(
46
+ R,
47
+ {
48
+ className: p(
49
+ `${c}-avatar`,
50
+ n,
51
+ l.className
52
+ ),
53
+ ...l
54
+ }
55
+ ),
56
+ o && /* @__PURE__ */ s.jsx(
57
+ "span",
58
+ {
59
+ className: `${c}-title ${n}`.trim(),
60
+ title: typeof o == "string" ? o : void 0,
61
+ children: o
62
+ }
63
+ ),
64
+ a && /* @__PURE__ */ s.jsx(
65
+ "span",
66
+ {
67
+ className: `${c}-sub-title ${n}`.trim(),
68
+ title: typeof a == "string" ? a : void 0,
69
+ children: a
70
+ }
71
+ ),
72
+ m && /* @__PURE__ */ s.jsx("span", { className: `${c}-tags ${n}`.trim(), children: m })
73
+ ] }),
74
+ d && /* @__PURE__ */ s.jsx("span", { className: `${c}-extra ${n}`.trim(), children: /* @__PURE__ */ s.jsx(w, { children: d }) })
75
+ ] });
76
+ }, E = (e, t, i) => /* @__PURE__ */ s.jsx("div", { className: `${e}-content ${i}`.trim(), children: t }), L = (e, t, i) => t ? /* @__PURE__ */ s.jsx("div", { className: `${e}-footer ${i}`.trim(), children: t }) : null, X = (e) => {
77
+ const [t, i] = C("bitz-page-header"), n = "ltr", o = "id_123123", [l, a] = B(!1), m = ({ width: z }) => a(z < 768), {
78
+ style: d,
79
+ footer: f,
80
+ children: c,
81
+ breadcrumb: r,
82
+ breadcrumbRender: u,
83
+ className: $,
84
+ contentWidth: x
85
+ } = e, N = (() => (r && !(r != null && r.items) && (r != null && r.routes) && (r.items = r.routes), r != null && r.items ? T(r, t) : null))(), h = r && "props" in r, D = (u == null ? void 0 : u({ ...e, prefixCls: t }, N)) ?? N, j = h ? r : D, k = p(t, o, $, {
86
+ [`${t}-has-breadcrumb`]: !!j,
87
+ [`${t}-has-footer`]: !!f,
25
88
  // [`${prefixCls}-rtl`]: direction === 'rtl',
26
- [`${e}-compact`]: l,
27
- [`${e}-wide`]: x === "Fixed",
28
- [`${e}-ghost`]: !0
29
- }), g = S(e, t, n, c), h = o && E(e, o, c), b = L(e, f, c);
30
- return !N && !g && !b && !h ? null : s.jsx(A, { onResize: m, children: s.jsxs("div", { className: z, style: d, children: [N, g, h, b] }) });
89
+ [`${t}-compact`]: l,
90
+ [`${t}-wide`]: x === "Fixed",
91
+ [`${t}-ghost`]: !0
92
+ }), g = S(t, e, n, o), v = c && E(t, c, o), b = L(t, f, o);
93
+ return !j && !g && !b && !v ? null : /* @__PURE__ */ s.jsx(A, { onResize: m, children: /* @__PURE__ */ s.jsxs("div", { className: k, style: d, children: [
94
+ j,
95
+ g,
96
+ v,
97
+ b
98
+ ] }) });
31
99
  };
32
100
  export {
33
101
  X as default
@@ -1,32 +1,81 @@
1
- import { j as i } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useState as l, useMemo as z, useEffect as B, useImperativeHandle as M } from "react";
3
- import { Pagination as b } from "antd";
4
- import { isMobile as v } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
1
+ import { j as s } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useState as l, useMemo as c, useEffect as y, useImperativeHandle as B } from "react";
3
+ import { Pagination as M } from "antd";
4
+ import { isMobile as b } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
5
5
  import H from "../BitzHighlight/index.mjs";
6
6
  import "./index.less.mjs";
7
7
  let g = !0;
8
- const O = ({ enableControl: a = !1, pagination: u = {
9
- page: 1,
10
- size: 10
11
- }, pageSizeOptions: c = [10, 20, 50, 100], total: j = 0, dataSource: n = [], resetPage: h = 0, paginationEmit: m = () => {
12
- }, direction: w = "end", totalText: x = "共", totalItemText: C = "条", hideTotalText: S, elRefInstance: d, refInstance: P, ...T }) => {
13
- const [p, o] = l(1), [f, $] = l(10), t = z(() => a ? u : { page: p, size: f }, [a, u, p, f]), r = z(() => h, [h]);
14
- B(() => {
15
- r != 0 && o(r);
16
- }, [r]);
17
- const k = (e, s) => {
18
- o(e), g && m(e, s);
19
- }, y = (e, s) => {
20
- g = !1, $(s), setTimeout(() => {
21
- o(1), m(1, s), setTimeout(() => {
8
+ const Q = ({
9
+ enableControl: u = !1,
10
+ pagination: a = {
11
+ page: 1,
12
+ size: 10
13
+ },
14
+ pageSizeOptions: z = [10, 20, 50, 100],
15
+ total: j = 0,
16
+ dataSource: r = [],
17
+ resetPage: m = 0,
18
+ paginationEmit: f = () => {
19
+ },
20
+ direction: x = "end",
21
+ totalText: w = "共",
22
+ totalItemText: d = "条",
23
+ hideTotalText: C,
24
+ elRefInstance: P,
25
+ refInstance: S,
26
+ ...T
27
+ }) => {
28
+ const [h, o] = l(1), [p, $] = l(10), t = c(() => u ? a : { page: h, size: p }, [u, a, h, p]), n = c(() => m, [m]);
29
+ y(() => {
30
+ n != 0 && o(n);
31
+ }, [n]);
32
+ const k = (e, i) => {
33
+ o(e), g && f(e, i);
34
+ }, v = (e, i) => {
35
+ g = !1, $(i), setTimeout(() => {
36
+ o(1), f(1, i), setTimeout(() => {
22
37
  g = !0;
23
38
  }, 10);
24
39
  }, 10);
25
40
  };
26
- return M(P, () => ({
27
- getSize: () => t.size
28
- }), [t]), i.jsx(i.Fragment, { children: (n == null ? void 0 : n.length) != 0 && !v && i.jsx("div", { ref: d, className: "bitzPaginationBlock", style: { justifyContent: w }, children: i.jsx(b, { total: j, defaultCurrent: t.page, current: t.page, pageSize: t.size, showSizeChanger: !0, showQuickJumper: !0, pageSizeOptions: c, showTotal: S ? void 0 : (e) => i.jsx(H, { highlightTag: "strong", keywords: `${e}`, sourceString: `${x} ${e} ${C}` }), onChange: k, onShowSizeChange: y, ...T }) }) });
41
+ return B(
42
+ S,
43
+ () => ({
44
+ getSize: () => t.size
45
+ }),
46
+ [t]
47
+ ), /* @__PURE__ */ s.jsx(s.Fragment, { children: (r == null ? void 0 : r.length) != 0 && !b && /* @__PURE__ */ s.jsx(
48
+ "div",
49
+ {
50
+ ref: P,
51
+ className: "bitzPaginationBlock",
52
+ style: { justifyContent: x },
53
+ children: /* @__PURE__ */ s.jsx(
54
+ M,
55
+ {
56
+ total: j,
57
+ defaultCurrent: t.page,
58
+ current: t.page,
59
+ pageSize: t.size,
60
+ showSizeChanger: !0,
61
+ showQuickJumper: !0,
62
+ pageSizeOptions: z,
63
+ showTotal: C ? void 0 : (e) => /* @__PURE__ */ s.jsx(
64
+ H,
65
+ {
66
+ highlightTag: "strong",
67
+ keywords: `${e}`,
68
+ sourceString: `${w} ${e} ${d}`
69
+ }
70
+ ),
71
+ onChange: k,
72
+ onShowSizeChange: v,
73
+ ...T
74
+ }
75
+ )
76
+ }
77
+ ) });
29
78
  };
30
79
  export {
31
- O as default
80
+ Q as default
32
81
  };
@@ -1,16 +1,16 @@
1
1
  import { j as o } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as c, useEffect as m } from "react";
3
3
  import { Typography as f } from "antd";
4
- import r from "./BitzPopover.module.less.mjs";
5
- const { Paragraph: u } = f, E = (t) => {
6
- const { children: a, ellipsis: e = !1, ...n } = t, [l, s] = c(), p = () => {
4
+ import t from "./BitzPopover.module.less.mjs";
5
+ const { Paragraph: u } = f, E = (r) => {
6
+ const { children: a, ellipsis: e = !1, ...n } = r, [p, s] = c(), l = () => {
7
7
  s(!1);
8
8
  }, i = () => {
9
9
  s(e);
10
10
  };
11
11
  return m(() => {
12
12
  s(e);
13
- }, [e]), o.jsx("div", { ...n, className: r.bitzPopoverBlock, onMouseEnter: p, onMouseLeave: i, children: o.jsx(u, { ellipsis: l, className: r.Paragraph, children: a }) });
13
+ }, [e]), /* @__PURE__ */ o.jsx("div", { ...n, className: t.bitzPopoverBlock, onMouseEnter: l, onMouseLeave: i, children: /* @__PURE__ */ o.jsx(u, { ellipsis: p, className: t.Paragraph, children: a }) });
14
14
  };
15
15
  export {
16
16
  E as default
@@ -12,8 +12,8 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
12
12
  pulling: "下拉即可刷新...",
13
13
  loosing: "释放即可刷新...",
14
14
  loading: "加载中..."
15
- }, Z = (E) => {
16
- const e = C(E, {
15
+ }, Z = (v) => {
16
+ const e = C(v, {
17
17
  headHeight: 50,
18
18
  animationDuration: 300,
19
19
  successDuration: 500
@@ -27,19 +27,23 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
27
27
  return {
28
28
  height: `${e.headHeight}px`
29
29
  };
30
- }, c = D(() => s.status !== "loading" && s.status !== "success" && !m, [s.status, m]), v = (t) => {
30
+ }, l = D(() => s.status !== "loading" && s.status !== "success" && !m, [s.status, m]), y = (t) => {
31
31
  const r = +(e.pullDistance || e.headHeight);
32
32
  return t > r && (t < r * 2 ? t = r + (t - r) / 2 : t = r * 1.5 + (t - r * 2) / 4), Math.round(t);
33
33
  }, u = (t, r) => {
34
- const l = +(e.pullDistance || e.headHeight), a = { distance: t };
35
- r ? a.status = "loading" : t === 0 ? a.status = "normal" : t < l ? a.status = "pulling" : a.status = "loosing", n(a);
36
- }, T = () => s.status === "normal" ? "" : e[`${s.status}Text`] || G[s.status], y = () => {
34
+ const c = +(e.pullDistance || e.headHeight), a = { distance: t };
35
+ r ? a.status = "loading" : t === 0 ? a.status = "normal" : t < c ? a.status = "pulling" : a.status = "loosing", n(a);
36
+ }, T = () => s.status === "normal" ? "" : e[`${s.status}Text`] || G[s.status], E = () => {
37
37
  var a;
38
38
  const { status: t, distance: r } = s;
39
39
  if (typeof e[`${s.status}Text`] == "function")
40
40
  return (a = e[`${s.status}Text`]) == null ? void 0 : a.call(e, { distance: r });
41
- const l = [];
42
- return F.includes(t) && l.push(f.jsx("div", { className: "bitz-pull-refresh__text", children: T() }, "text")), t === "loading" && l.push(f.jsx("div", { className: "bitz-pull-refresh__loading", children: T() })), l;
41
+ const c = [];
42
+ return F.includes(t) && c.push(
43
+ /* @__PURE__ */ f.jsx("div", { className: "bitz-pull-refresh__text", children: T() }, "text")
44
+ ), t === "loading" && c.push(
45
+ /* @__PURE__ */ f.jsx("div", { className: "bitz-pull-refresh__loading", children: T() })
46
+ ), c;
43
47
  }, b = () => {
44
48
  n({ status: "success" }), setTimeout(() => {
45
49
  u(0);
@@ -54,30 +58,55 @@ const L = 50, F = ["pulling", "loosing", "success"], G = {
54
58
  const r = Y(t.target);
55
59
  i.current = P(r) === 0, i.current && (n({ duration: 0 }), o.start(t));
56
60
  }, R = (t) => {
57
- c() && x(t.nativeEvent);
61
+ l() && x(t.nativeEvent);
58
62
  }, N = D(
59
63
  (t) => {
60
- c() && (i.current || x(t), o.move(t), i.current && o.deltaY.current >= 0 && o.isVertical() ? (u(v(o.deltaY.current)), z(t)) : u(0));
64
+ l() && (i.current || x(t), o.move(t), i.current && o.deltaY.current >= 0 && o.isVertical() ? (u(y(o.deltaY.current)), z(t)) : u(0));
61
65
  },
62
66
  // eslint-disable-next-line react-hooks/exhaustive-deps
63
- [i.current, o.deltaY.current, c]
67
+ [i.current, o.deltaY.current, l]
64
68
  ), S = async () => {
65
- i.current && o.deltaY && c() && (n({ duration: +g }), s.status === "loosing" ? (u(+e.headHeight, !0), await j(), setTimeout(() => {
69
+ i.current && o.deltaY && l() && (n({ duration: +g }), s.status === "loosing" ? (u(+e.headHeight, !0), await j(), setTimeout(() => {
66
70
  var t;
67
71
  return (t = e.onRefreshEnd) == null ? void 0 : t.call(e);
68
72
  })) : u(0));
69
73
  };
70
74
  w("touchmove", N, {
71
75
  target: p.current,
72
- depends: [i.current, c(), o.deltaY]
76
+ depends: [i.current, l(), o.deltaY]
73
77
  }), M(() => {
74
78
  n({ duration: +g }), s.refreshing ? u(+e.headHeight, !0) : e.successText ? b() : u(0, !1);
75
79
  }, [s.refreshing]);
76
- const $ = k(() => ({
77
- transitionDuration: `${s.duration}ms`,
78
- transform: s.distance ? `translate3d(0,${s.distance}px, 0)` : ""
79
- }), [s.duration, s.distance]);
80
- return f.jsx("div", { ref: H, className: d(e.className, "bitz-pull-refresh"), style: e.style, children: f.jsxs("div", { ref: p, className: d("bitz-pull-refresh__track"), style: $, onTouchStart: R, onTouchEnd: S, onTouchCancel: S, children: [f.jsx("div", { className: d("bitz-pull-refresh__head"), style: _(), children: y() }), e.children] }) });
80
+ const $ = k(
81
+ () => ({
82
+ transitionDuration: `${s.duration}ms`,
83
+ transform: s.distance ? `translate3d(0,${s.distance}px, 0)` : ""
84
+ }),
85
+ [s.duration, s.distance]
86
+ );
87
+ return /* @__PURE__ */ f.jsx(
88
+ "div",
89
+ {
90
+ ref: H,
91
+ className: d(e.className, "bitz-pull-refresh"),
92
+ style: e.style,
93
+ children: /* @__PURE__ */ f.jsxs(
94
+ "div",
95
+ {
96
+ ref: p,
97
+ className: d("bitz-pull-refresh__track"),
98
+ style: $,
99
+ onTouchStart: R,
100
+ onTouchEnd: S,
101
+ onTouchCancel: S,
102
+ children: [
103
+ /* @__PURE__ */ f.jsx("div", { className: d("bitz-pull-refresh__head"), style: _(), children: E() }),
104
+ e.children
105
+ ]
106
+ }
107
+ )
108
+ }
109
+ );
81
110
  };
82
111
  export {
83
112
  Z as default
@@ -1,6 +1,11 @@
1
1
  import { j as t } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { QRCode as r } from "antd";
3
- const m = (o) => t.jsx(r, { ...o });
3
+ const m = (o) => /* @__PURE__ */ t.jsx(
4
+ r,
5
+ {
6
+ ...o
7
+ }
8
+ );
4
9
  export {
5
10
  m as default
6
11
  };
@@ -1,5 +1,5 @@
1
1
  import { j as o } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import c, { memo as B, useMemo as I } from "react";
2
+ import c, { memo as B, useMemo as D } from "react";
3
3
  import { Col as w, Row as H, Form as U, Space as q, Button as x } from "antd";
4
4
  import J from "../../hooks/useMergedState.mjs";
5
5
  import L from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
@@ -31,54 +31,72 @@ const O = (s, i, f) => s == null ? void 0 : s.flatMap((n) => {
31
31
  onChange: s.onCollapse
32
32
  }
33
33
  ), { split: n, items: S, spanSize: p, showLength: d, searchGutter: N, showHiddenNum: j, form: u, baseClassName: E, onReset: g, onFinish: P } = s;
34
- let h = 0, F = 0, $ = !1, y = 0, t = 0;
34
+ let h = 0, F = 0, $ = !1, y = 0, a = 0;
35
35
  const V = O(S, s.ignoreRules, u).map((e, r) => {
36
- var m, C, D, M;
37
- const l = c.isValidElement(e) ? ((m = e == null ? void 0 : e.props) == null ? void 0 : m.colSize) ?? 1 : 1, a = Math.min(p.span * (l || 1), 24);
38
- h += a, y += l, r === 0 && ($ = a === 24 && !((C = e == null ? void 0 : e.props) != null && C.hidden));
39
- const z = ((D = e == null ? void 0 : e.props) == null ? void 0 : D.hidden) || // 如果收起了
36
+ var m, C, M, I;
37
+ const l = c.isValidElement(e) ? ((m = e == null ? void 0 : e.props) == null ? void 0 : m.colSize) ?? 1 : 1, t = Math.min(p.span * (l || 1), 24);
38
+ h += t, y += l, r === 0 && ($ = t === 24 && !((C = e == null ? void 0 : e.props) != null && C.hidden));
39
+ const z = ((M = e == null ? void 0 : e.props) == null ? void 0 : M.hidden) || // 如果收起了
40
40
  i && ($ || // 如果 超过显示长度 且 总长度超过了 24
41
41
  y > d - 1) && !!r && h >= 24;
42
42
  F += 1;
43
- const b = c.isValidElement(e) && (e.key || `${(M = e.props) == null ? void 0 : M.name}`) || r;
43
+ const b = c.isValidElement(e) && (e.key || `${(I = e.props) == null ? void 0 : I.name}`) || r;
44
44
  return c.isValidElement(e) && z ? s.preserve ? {
45
45
  itemDom: c.cloneElement(e, {
46
46
  hidden: !0,
47
47
  key: b || r
48
48
  }),
49
49
  hidden: !0,
50
- colSpan: a
50
+ colSpan: t
51
51
  } : {
52
52
  itemDom: null,
53
53
  colSpan: 0,
54
54
  hidden: !0
55
55
  } : {
56
56
  itemDom: e,
57
- colSpan: a,
57
+ colSpan: t,
58
58
  hidden: !1
59
59
  };
60
60
  }), G = V.map((e, r) => {
61
61
  var m, C;
62
- const { itemDom: l, colSpan: a } = e;
62
+ const { itemDom: l, colSpan: t } = e;
63
63
  if ((m = l == null ? void 0 : l.props) == null ? void 0 : m.hidden)
64
64
  return l;
65
65
  const b = c.isValidElement(l) && (l.key || `${(C = l.props) == null ? void 0 : C.name}`) || r;
66
- return 24 - t % 24 < a && (h += 24 - t % 24, t += 24 - t % 24), t += a, n && t % 24 === 0 && r < F - 1 ? o.jsx(w, { span: a, className: `${s.baseClassName}-row-split-line ${s.baseClassName}-row-split`.trim(), children: l }, b) : o.jsx(w, { className: `${s.baseClassName}-row-split`.trim(), span: a, children: l }, b);
66
+ return 24 - a % 24 < t && (h += 24 - a % 24, a += 24 - a % 24), a += t, n && a % 24 === 0 && r < F - 1 ? /* @__PURE__ */ o.jsx(w, { span: t, className: `${s.baseClassName}-row-split-line ${s.baseClassName}-row-split`.trim(), children: l }, b) : /* @__PURE__ */ o.jsx(w, { className: `${s.baseClassName}-row-split`.trim(), span: t, children: l }, b);
67
67
  });
68
68
  j && V.filter((e) => e.hidden).length;
69
- const K = I(() => !(h < 24 || y <= d), [y, d, h]), Q = I(() => {
69
+ const K = D(() => !(h < 24 || y <= d), [y, d, h]), Q = D(() => {
70
70
  var r, l;
71
- const e = t % 24 + (((r = s.submitterColSpanProps) == null ? void 0 : r.span) ?? p.span);
71
+ const e = a % 24 + (((r = s.submitterColSpanProps) == null ? void 0 : r.span) ?? p.span);
72
72
  return e > 24 ? 24 - (((l = s.submitterColSpanProps) == null ? void 0 : l.span) ?? p.span) : 24 - e;
73
- }, [t, t % 24 + (((k = s.submitterColSpanProps) == null ? void 0 : k.span) ?? p.span), (R = s.submitterColSpanProps) == null ? void 0 : R.span]), _ = () => {
73
+ }, [a, a % 24 + (((k = s.submitterColSpanProps) == null ? void 0 : k.span) ?? p.span), (R = s.submitterColSpanProps) == null ? void 0 : R.span]), _ = () => {
74
74
  u.resetFields(), g == null || g();
75
75
  }, A = () => {
76
76
  const e = u.getFieldsValue();
77
77
  P == null || P(e);
78
78
  };
79
- return o.jsxs(H, { gutter: N, justify: "start", className: L(`${E}-row`), children: [G, o.jsx(w, { span: p.span, offset: Q, className: L((v = s.submitterColSpanProps) == null ? void 0 : v.className), ...s.submitterColSpanProps, style: {
80
- textAlign: "end"
81
- }, children: o.jsx(U.Item, { label: " ", colon: !1, shouldUpdate: !1, className: `${E}-actions`.trim(), children: o.jsxs(q, { children: [o.jsx(x, { onClick: A, type: "primary", children: "搜索" }), o.jsx(x, { onClick: _, children: "重置" }), K ? o.jsx(x, { type: "text", onClick: () => f(!i), children: i ? "展开" : "收起" }) : null] }) }) }, "submitter")] }, "resize-observer-row");
79
+ return /* @__PURE__ */ o.jsxs(H, { gutter: N, justify: "start", className: L(`${E}-row`), children: [
80
+ G,
81
+ /* @__PURE__ */ o.jsx(
82
+ w,
83
+ {
84
+ span: p.span,
85
+ offset: Q,
86
+ className: L((v = s.submitterColSpanProps) == null ? void 0 : v.className),
87
+ ...s.submitterColSpanProps,
88
+ style: {
89
+ textAlign: "end"
90
+ },
91
+ children: /* @__PURE__ */ o.jsx(U.Item, { label: " ", colon: !1, shouldUpdate: !1, className: `${E}-actions`.trim(), children: /* @__PURE__ */ o.jsxs(q, { children: [
92
+ /* @__PURE__ */ o.jsx(x, { onClick: A, type: "primary", children: "搜索" }),
93
+ /* @__PURE__ */ o.jsx(x, { onClick: _, children: "重置" }),
94
+ K ? /* @__PURE__ */ o.jsx(x, { type: "text", onClick: () => f(!i), children: i ? "展开" : "收起" }) : null
95
+ ] }) })
96
+ },
97
+ "submitter"
98
+ )
99
+ ] }, "resize-observer-row");
82
100
  }, se = B(T);
83
101
  export {
84
102
  se as default
@@ -1,18 +1,25 @@
1
1
  import { j as r } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { create as h, useModal as y, antdDrawerV5 as F } from "@ebay/nice-modal-react";
3
- import { Button as a, Divider as f, Form as x } from "antd";
4
- import { useMemo as D } from "react";
5
- import j from "../BitzFloatLayout/index.mjs";
2
+ import { create as h, useModal as y, antdDrawerV5 as x } from "@ebay/nice-modal-react";
3
+ import { Form as F, Button as a, Divider as f } from "antd";
4
+ import { useMemo as j } from "react";
5
+ import w from "../BitzFloatLayout/index.mjs";
6
6
  import "./index.less.mjs";
7
- const w = (n) => {
8
- const { preserve: u, form: o, items: e, onReset: t, onFinish: s } = n, l = y(), c = () => {
9
- o.resetFields(), t == null || t(), l.hide();
10
- }, m = () => {
7
+ const D = (n) => {
8
+ const { preserve: c, form: o, items: e, onReset: t, onFinish: l } = n, s = y(), m = () => {
9
+ o.resetFields(), t == null || t(), s.hide();
10
+ }, d = () => {
11
11
  const i = o.getFieldsValue();
12
- s == null || s(i), l.hide();
13
- }, d = r.jsxs("div", { className: "QueryFilterDrawerFooter", children: [r.jsx(a, { onClick: c, block: !0, size: "large", children: "重置" }), r.jsx(f, { type: "vertical" }), r.jsx(a, { onClick: m, block: !0, size: "large", type: "primary", children: "搜索" })] }), p = D(() => (e == null ? void 0 : e.length) > 2 ? e.slice(1) : null, [e]);
14
- return r.jsx(j, { ...F(l), title: "高级筛选", children: r.jsxs("div", { className: "QueryFilterDrawerBody", children: [r.jsx(x, { className: "QueryFilterDrawerForm", onReset: t, preserve: u, form: o, layout: "horizontal", children: p }), d] }) });
15
- }, C = h(w);
12
+ l == null || l(i), s.hide();
13
+ }, u = /* @__PURE__ */ r.jsxs("div", { className: "QueryFilterDrawerFooter", children: [
14
+ /* @__PURE__ */ r.jsx(a, { onClick: m, block: !0, size: "large", children: "重置" }),
15
+ /* @__PURE__ */ r.jsx(f, { type: "vertical" }),
16
+ /* @__PURE__ */ r.jsx(a, { onClick: d, block: !0, size: "large", type: "primary", children: "搜索" })
17
+ ] }), p = j(() => (e == null ? void 0 : e.length) > 2 ? e.slice(1) : null, [e]);
18
+ return /* @__PURE__ */ r.jsx(w, { ...x(s), title: "高级筛选", children: /* @__PURE__ */ r.jsxs("div", { className: "QueryFilterDrawerBody", children: [
19
+ /* @__PURE__ */ r.jsx(F, { className: "QueryFilterDrawerForm", onReset: t, preserve: c, form: o, layout: "horizontal", children: p }),
20
+ u
21
+ ] }) });
22
+ }, B = h(D);
16
23
  export {
17
- C as default
24
+ B as default
18
25
  };
@@ -20,7 +20,10 @@ const b = (r) => {
20
20
  ...r
21
21
  });
22
22
  };
23
- return e.jsxs("div", { className: "QueryFilterMobile", children: [e.jsx("div", { className: "search", children: m }), e.jsx("div", { className: "more", children: e.jsx(c, { onClick: n, icon: e.jsx(a, { name: "more" }) }) })] });
23
+ return /* @__PURE__ */ e.jsxs("div", { className: "QueryFilterMobile", children: [
24
+ /* @__PURE__ */ e.jsx("div", { className: "search", children: m }),
25
+ /* @__PURE__ */ e.jsx("div", { className: "more", children: /* @__PURE__ */ e.jsx(c, { onClick: n, icon: /* @__PURE__ */ e.jsx(a, { name: "more" }) }) })
26
+ ] });
24
27
  };
25
28
  export {
26
29
  b as default