bitz-react-admin-ui 2.2.8 → 2.2.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 (169) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
  6. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
  8. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  9. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  10. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  16. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  17. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  18. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  20. package/dist/assets/iconfont/IconMore.mjs +26 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  22. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  23. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  24. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  25. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  29. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  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/BitzConvert/DropdownToButton/index.mjs +14 -11
  49. package/dist/components/BitzConvert/index.mjs +1 -1
  50. package/dist/components/BitzDescriptions/index.mjs +11 -1
  51. package/dist/components/BitzDrawer/index.mjs +17 -2
  52. package/dist/components/BitzEmpty/index.mjs +6 -2
  53. package/dist/components/BitzException/index.mjs +6 -1
  54. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  55. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  56. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  57. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  58. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  59. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  60. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  61. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
  62. package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
  63. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  64. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  65. package/dist/components/BitzFullScreen/index.mjs +9 -6
  66. package/dist/components/BitzHighlight/Child.mjs +23 -9
  67. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  68. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  69. package/dist/components/BitzHighlight/style.mjs +4 -1
  70. package/dist/components/BitzImage/index.mjs +1 -1
  71. package/dist/components/BitzImage/previewImage.mjs +12 -5
  72. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  73. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  74. package/dist/components/BitzList/List.mjs +17 -3
  75. package/dist/components/BitzList/LoadMore.mjs +29 -20
  76. package/dist/components/BitzLoadMore/index.mjs +34 -14
  77. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  78. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  79. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  80. package/dist/components/BitzModal/index.mjs +24 -11
  81. package/dist/components/BitzNoData/index.mjs +4 -1
  82. package/dist/components/BitzNoMore/index.mjs +1 -1
  83. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  84. package/dist/components/BitzPageContainer/index.mjs +107 -46
  85. package/dist/components/BitzPageHeader/index.mjs +89 -21
  86. package/dist/components/BitzPagination/index.mjs +71 -22
  87. package/dist/components/BitzPopover/index.mjs +4 -4
  88. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  89. package/dist/components/BitzQRCode/index.mjs +6 -1
  90. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  91. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  92. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  93. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  94. package/dist/components/BitzRefresh/index.mjs +5 -1
  95. package/dist/components/BitzRemark/index.mjs +4 -4
  96. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  97. package/dist/components/BitzSearch/index.mjs +1 -1
  98. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  99. package/dist/components/BitzSelect/index.mjs +1 -1
  100. package/dist/components/BitzSkeleton/index.mjs +31 -1
  101. package/dist/components/BitzSwitch/index.mjs +7 -2
  102. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  103. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  104. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
  105. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  106. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  107. package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
  108. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  109. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  110. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  111. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  112. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
  113. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  114. package/dist/components/BitzTable/Store/index.mjs +121 -89
  115. package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
  116. package/dist/components/BitzTable/SubTable/index.mjs +100 -52
  117. package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
  118. package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
  119. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  120. package/dist/components/BitzTable/Table/index.mjs +395 -187
  121. package/dist/components/BitzTable/Table/style.mjs +11 -1
  122. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
  133. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
  134. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
  135. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  136. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
  139. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  140. package/dist/components/BitzTableOperations/index.mjs +13 -3
  141. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  142. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  143. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
  144. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
  145. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  146. package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
  147. package/dist/components/BitzTableSelect/index.mjs +61 -13
  148. package/dist/components/BitzTag/index.mjs +1 -1
  149. package/dist/components/BitzTheme/index.mjs +6 -6
  150. package/dist/components/BitzTimeline/index.mjs +11 -1
  151. package/dist/components/BitzTimer/Form.mjs +32 -11
  152. package/dist/components/BitzTimer/Timer.mjs +76 -38
  153. package/dist/components/BitzTimer/index.mjs +66 -43
  154. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  155. package/dist/components/BitzToast/index.mjs +1 -1
  156. package/dist/components/BitzTree/index.mjs +4 -1
  157. package/dist/components/BitzUeEditor/index.mjs +5 -5
  158. package/dist/components/BitzUpload/index.mjs +81 -43
  159. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  160. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  161. package/dist/hooks/use-event-listener.mjs +11 -2
  162. package/dist/hooks/use-lock-fn.mjs +13 -10
  163. package/dist/hooks/use-scroll-parent.mjs +16 -14
  164. package/dist/hooks/useEvent.mjs +7 -4
  165. package/dist/hooks/useMergedState.mjs +11 -11
  166. package/dist/style.css +1 -1
  167. package/dist/utils/WithFluent.mjs +27 -12
  168. package/dist/utils/create.mjs +7 -1
  169. package/package.json +1 -1
@@ -98,18 +98,21 @@ const Q = () => {
98
98
  }
99
99
  }
100
100
  ];
101
- T({
102
- theme: h,
103
- token: s,
104
- hashId: r,
105
- path: [e]
106
- }, () => [
107
- g(e, d),
108
- u(a, s),
109
- v(l, s),
110
- C(c, s),
111
- y(m, p)
112
- ]);
101
+ T(
102
+ {
103
+ theme: h,
104
+ token: s,
105
+ hashId: r,
106
+ path: [e]
107
+ },
108
+ () => [
109
+ g(e, d),
110
+ u(a, s),
111
+ v(l, s),
112
+ C(c, s),
113
+ y(m, p)
114
+ ]
115
+ );
113
116
  const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), z = n(d, r);
114
117
  return {
115
118
  gap: B,
@@ -8,7 +8,14 @@ const p = (r, s) => r == null ? void 0 : r.map((t) => {
8
8
  return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
9
9
  }), j = ({ menu: r, overlayClassName: s, ...t }) => {
10
10
  const { popupClassName: o } = n(), a = m(() => p(r == null ? void 0 : r.items, o), [r == null ? void 0 : r.items]);
11
- return e.jsx(c, { ...t, menu: { ...r, items: a }, overlayClassName: d(o, s) });
11
+ return /* @__PURE__ */ e.jsx(
12
+ c,
13
+ {
14
+ ...t,
15
+ menu: { ...r, items: a },
16
+ overlayClassName: d(o, s)
17
+ }
18
+ );
12
19
  };
13
20
  export {
14
21
  j as default
@@ -89,12 +89,15 @@ const P = () => {
89
89
  }
90
90
  ];
91
91
  };
92
- C({
93
- theme: c,
94
- token: a,
95
- hashId: i,
96
- path: [o]
97
- }, () => [w(o, m, a)]);
92
+ C(
93
+ {
94
+ theme: c,
95
+ token: a,
96
+ hashId: i,
97
+ path: [o]
98
+ },
99
+ () => [w(o, m, a)]
100
+ );
98
101
  const h = `${T}${m}`;
99
102
  return {
100
103
  popupClassName: y(o, h, i)
@@ -5,15 +5,28 @@ import { useMemo as m } from "react";
5
5
  import c from "./style.mjs";
6
6
  import d from "../Dropdown/style.mjs";
7
7
  import x from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
8
- const i = (t, o) => t == null ? void 0 : t.map((e) => {
8
+ const a = (t, o) => t == null ? void 0 : t.map((e) => {
9
9
  const r = { ...e };
10
- return r != null && r.children && (r.children = i(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
11
- }), y = ({ ...t }) => {
10
+ return r != null && r.children && (r.children = a(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
11
+ }), y = ({
12
+ ...t
13
+ }) => {
12
14
  const { btnClassName: o } = c();
13
- return s.jsx(n, { className: o, type: "text", ...t });
15
+ return /* @__PURE__ */ s.jsx(n, { className: o, type: "text", ...t });
14
16
  }, S = ({ menu: t, children: o }) => {
15
- const { btnClassName: e } = c(), { popupClassName: r } = d(), a = m(() => i(t == null ? void 0 : t.items, r), [t == null ? void 0 : t.items]);
16
- return s.jsx(p, { menu: { ...t, items: a }, overlayClassName: r, trigger: ["click"], children: s.jsx(n, { className: e, type: "text", children: s.jsxs(l, { size: 2, children: [s.jsx("span", { children: o }), s.jsx(x, {})] }) }) });
17
+ const { btnClassName: e } = c(), { popupClassName: r } = d(), i = m(() => a(t == null ? void 0 : t.items, r), [t == null ? void 0 : t.items]);
18
+ return /* @__PURE__ */ s.jsx(
19
+ p,
20
+ {
21
+ menu: { ...t, items: i },
22
+ overlayClassName: r,
23
+ trigger: ["click"],
24
+ children: /* @__PURE__ */ s.jsx(n, { className: e, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 2, children: [
25
+ /* @__PURE__ */ s.jsx("span", { children: o }),
26
+ /* @__PURE__ */ s.jsx(x, {})
27
+ ] }) })
28
+ }
29
+ );
17
30
  };
18
31
  export {
19
32
  y as BitzSelectionBarButton,
@@ -5,12 +5,18 @@ import { useContext as i, useMemo as p, useEffect as f } from "react";
5
5
  import { BitzTableContext as C } from "../Store/index.mjs";
6
6
  import u from "./style.mjs";
7
7
  const v = ({ show: e, children: s }) => {
8
- const { blockClassName: a, showCls: o, btnClassName: x, batchOperationClassName: r, alertContentClassName: N } = u(), { setSelected: m } = i(C), l = p(() => n(a, {
8
+ const {
9
+ blockClassName: a,
10
+ showCls: o,
11
+ btnClassName: x,
12
+ batchOperationClassName: r,
13
+ alertContentClassName: N
14
+ } = u(), { setSelected: m } = i(C), l = p(() => n(a, {
9
15
  [`${o}`]: e
10
16
  }), [e]);
11
17
  return f(() => {
12
18
  m(e ?? !1);
13
- }, [e]), t.jsx("div", { className: l, children: t.jsx(c.Compact, { className: r, children: s || t.jsx("div", {}) }) });
19
+ }, [e]), /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(c.Compact, { className: r, children: s || /* @__PURE__ */ t.jsx("div", {}) }) });
14
20
  };
15
21
  export {
16
22
  v as default
@@ -98,14 +98,24 @@ const V = () => {
98
98
  }
99
99
  ];
100
100
  };
101
- G({
102
- theme: b,
103
- token: i,
104
- hashId: o,
105
- path: [r]
106
- }, () => [
107
- g(r, l, s, m, f, i)
108
- ]);
101
+ G(
102
+ {
103
+ theme: b,
104
+ token: i,
105
+ hashId: o,
106
+ path: [r]
107
+ },
108
+ () => [
109
+ g(
110
+ r,
111
+ l,
112
+ s,
113
+ m,
114
+ f,
115
+ i
116
+ )
117
+ ]
118
+ );
109
119
  const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
110
120
  return {
111
121
  blockClassName: d,
@@ -1,5 +1,5 @@
1
1
  import { j as ve } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Table as oe } from "antd";
2
+ import { Table as le } from "antd";
3
3
  import N from "../../../hooks/useMergedState.mjs";
4
4
  import { createContext as Ve, useRef as Oe, useState as fe, useContext as Ne, useEffect as S, useMemo as g, useCallback as z } from "react";
5
5
  import { genColumnKey as re } from "./utils/index.mjs";
@@ -18,8 +18,8 @@ const Je = {
18
18
  })
19
19
  }, Ie = [
20
20
  Je,
21
- oe.SELECTION_COLUMN,
22
- oe.EXPAND_COLUMN
21
+ le.SELECTION_COLUMN,
22
+ le.EXPAND_COLUMN
23
23
  ];
24
24
  function Me(e) {
25
25
  var H, k, R, L, P, U, D, _, G, Z, A, F, X, q, Q, W, Y, $, p, ee, te, ne, ie, ae, ce;
@@ -27,24 +27,30 @@ function Me(e) {
27
27
  size: E,
28
28
  zebra: ge,
29
29
  bordered: Ce
30
- }, [y, J] = N(() => {
31
- var n, l, c, o;
32
- const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.stylesConfigState || {};
33
- if (i && t && typeof window < "u" && t !== "online") {
34
- const f = window[t];
35
- try {
36
- const r = f == null ? void 0 : f.getItem(i);
37
- if (r)
38
- return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
39
- } catch (r) {
40
- console.warn(r);
30
+ }, [y, J] = N(
31
+ () => {
32
+ var n, o, c, l;
33
+ const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.stylesConfigState || {};
34
+ if (i && t && typeof window < "u" && t !== "online") {
35
+ const f = window[t];
36
+ try {
37
+ const r = f == null ? void 0 : f.getItem(i);
38
+ if (r)
39
+ return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? C(
40
+ JSON.parse(r),
41
+ (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue
42
+ ) : JSON.parse(r);
43
+ } catch (r) {
44
+ console.warn(r);
45
+ }
41
46
  }
47
+ return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((l = e.stylesConfigState) == null ? void 0 : l.defaultValue) || v;
48
+ },
49
+ {
50
+ value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
51
+ onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
42
52
  }
43
- return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((o = e.stylesConfigState) == null ? void 0 : o.defaultValue) || v;
44
- }, {
45
- value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
46
- onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
47
- });
53
+ );
48
54
  S(() => {
49
55
  var a, n;
50
56
  if (!((a = e.stylesConfigState) != null && a.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
@@ -55,9 +61,9 @@ function Me(e) {
55
61
  // onlineChange
56
62
  } = e.stylesConfigState;
57
63
  if (t !== "online") {
58
- const l = window[t];
64
+ const o = window[t];
59
65
  try {
60
- l == null || l.setItem(i, JSON.stringify(y));
66
+ o == null || o.setItem(i, JSON.stringify(y));
61
67
  } catch (c) {
62
68
  console.warn(c), M();
63
69
  }
@@ -69,12 +75,14 @@ function Me(e) {
69
75
  ]), S(() => {
70
76
  var t, i, a;
71
77
  if ((t = e.stylesConfigState) != null && t.persistenceKey && ((i = e.stylesConfigState) == null ? void 0 : i.persistenceType) === "online") {
72
- const { onlineGet: n, persistenceKey: l } = e.stylesConfigState;
78
+ const { onlineGet: n, persistenceKey: o } = e.stylesConfigState;
73
79
  try {
74
- (a = n == null ? void 0 : n(l)) == null || a.then((c) => {
80
+ (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
75
81
  var f;
76
- const o = C(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
77
- J(Object.keys(o).length ? o : v);
82
+ const l = C(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
83
+ J(
84
+ Object.keys(l).length ? l : v
85
+ );
78
86
  });
79
87
  } catch (c) {
80
88
  console.warn(c);
@@ -96,41 +104,52 @@ function Me(e) {
96
104
  }
97
105
  };
98
106
  return s == null || s.forEach((a, n) => {
99
- const { title: l, isOperationCol: c } = a, o = re(a, n);
100
- o && !c && t.fields.push({
101
- field: o,
102
- title: l,
107
+ const { title: o, isOperationCol: c } = a, l = re(a, n);
108
+ l && !c && t.fields.push({
109
+ field: l,
110
+ title: o,
103
111
  show: !0
104
112
  });
105
113
  }), t;
106
- }, [s]), [V, x] = N(() => {
107
- var n, l, c, o;
108
- const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
109
- if (i && t && typeof window < "u" && t !== "online") {
110
- const f = window[t];
111
- try {
112
- const r = f == null ? void 0 : f.getItem(i);
113
- if (r)
114
- return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
115
- } catch (r) {
116
- console.warn(r);
114
+ }, [s]), [V, x] = N(
115
+ () => {
116
+ var n, o, c, l;
117
+ const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
118
+ if (i && t && typeof window < "u" && t !== "online") {
119
+ const f = window[t];
120
+ try {
121
+ const r = f == null ? void 0 : f.getItem(i);
122
+ if (r)
123
+ return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? C(
124
+ JSON.parse(r),
125
+ (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
126
+ ) : JSON.parse(r);
127
+ } catch (r) {
128
+ console.warn(r);
129
+ }
117
130
  }
131
+ return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((l = e.exportConfigState) == null ? void 0 : l.defaultValue) || w;
132
+ },
133
+ {
134
+ value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
135
+ onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
118
136
  }
119
- return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((o = e.exportConfigState) == null ? void 0 : o.defaultValue) || w;
120
- }, {
121
- value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
122
- onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
123
- });
137
+ );
124
138
  S(() => {
125
- var n, l;
139
+ var n, o;
126
140
  const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
127
141
  if (i && t && typeof window < "u" && t !== "online") {
128
142
  const c = window[t];
129
143
  try {
130
- const o = c == null ? void 0 : c.getItem(i);
131
- o ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(C(JSON.parse(o), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue)) : x(JSON.parse(o)) : x(w);
132
- } catch (o) {
133
- console.warn(o);
144
+ const l = c == null ? void 0 : c.getItem(i);
145
+ l ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(
146
+ C(
147
+ JSON.parse(l),
148
+ (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
149
+ )
150
+ ) : x(JSON.parse(l)) : x(w);
151
+ } catch (l) {
152
+ console.warn(l);
134
153
  }
135
154
  }
136
155
  }, [
@@ -147,9 +166,9 @@ function Me(e) {
147
166
  // onlineChange
148
167
  } = e.exportConfigState;
149
168
  if (t !== "online") {
150
- const l = window[t];
169
+ const o = window[t];
151
170
  try {
152
- l == null || l.setItem(i, JSON.stringify(V));
171
+ o == null || o.setItem(i, JSON.stringify(V));
153
172
  } catch (c) {
154
173
  console.warn(c), B();
155
174
  }
@@ -161,12 +180,14 @@ function Me(e) {
161
180
  ]), S(() => {
162
181
  var t, i, a;
163
182
  if ((t = e.exportConfigState) != null && t.persistenceKey && ((i = e.exportConfigState) == null ? void 0 : i.persistenceType) === "online") {
164
- const { onlineGet: n, persistenceKey: l } = e.exportConfigState;
183
+ const { onlineGet: n, persistenceKey: o } = e.exportConfigState;
165
184
  try {
166
- (a = n == null ? void 0 : n(l)) == null || a.then((c) => {
185
+ (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
167
186
  var f;
168
- const o = C(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
169
- x(Object.keys(o).length ? o : w);
187
+ const l = C(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
188
+ x(
189
+ Object.keys(l).length ? l : w
190
+ );
170
191
  });
171
192
  } catch (c) {
172
193
  console.warn(c);
@@ -174,47 +195,58 @@ function Me(e) {
174
195
  }
175
196
  }, []);
176
197
  const h = g(() => {
177
- var c, o, f, r;
198
+ var c, l, f, r;
178
199
  if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
179
200
  return e.columnsState.defaultValue;
180
- const t = ((o = s == null ? void 0 : s.filter((d) => d.fixed === "left")) == null ? void 0 : o.map((d, m) => ({ ...d, order: m }))) ?? [], i = ((f = s == null ? void 0 : s.filter((d) => d.fixed === "right")) == null ? void 0 : f.map((d, m) => ({ ...d, order: m }))) ?? [], a = ((r = s == null ? void 0 : s.filter((d) => !["left", "right"].includes(d.fixed))) == null ? void 0 : r.map((d, m) => ({ ...d, order: m }))) ?? [], n = [...t, ...a, ...i], l = {};
201
+ const t = ((l = s == null ? void 0 : s.filter((d) => d.fixed === "left")) == null ? void 0 : l.map((d, m) => ({ ...d, order: m }))) ?? [], i = ((f = s == null ? void 0 : s.filter((d) => d.fixed === "right")) == null ? void 0 : f.map((d, m) => ({ ...d, order: m }))) ?? [], a = ((r = s == null ? void 0 : s.filter((d) => !["left", "right"].includes(d.fixed))) == null ? void 0 : r.map((d, m) => ({ ...d, order: m }))) ?? [], n = [...t, ...a, ...i], o = {};
181
202
  return n == null || n.forEach((d, m) => {
182
- const { order: Te, fixed: Ke, disabled: be } = d, le = re(d, m);
183
- le && (l[le] = {
203
+ const { order: Te, fixed: Ke, disabled: be } = d, oe = re(d, m);
204
+ oe && (o[oe] = {
184
205
  show: !0,
185
206
  order: Te,
186
207
  fixed: Ke,
187
208
  disabled: be
188
209
  });
189
- }), l;
190
- }, [s]), [O, T] = N(() => {
191
- var n, l, c, o;
192
- const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
193
- if (i && t && typeof window < "u" && t !== "online") {
194
- const f = window[t];
195
- try {
196
- const r = f == null ? void 0 : f.getItem(i);
197
- if (r)
198
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? C(JSON.parse(r), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
199
- } catch (r) {
200
- console.warn(r);
210
+ }), o;
211
+ }, [s]), [O, T] = N(
212
+ () => {
213
+ var n, o, c, l;
214
+ const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
215
+ if (i && t && typeof window < "u" && t !== "online") {
216
+ const f = window[t];
217
+ try {
218
+ const r = f == null ? void 0 : f.getItem(i);
219
+ if (r)
220
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? C(
221
+ JSON.parse(r),
222
+ (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
223
+ ) : JSON.parse(r);
224
+ } catch (r) {
225
+ console.warn(r);
226
+ }
201
227
  }
228
+ return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((l = e.columnsState) == null ? void 0 : l.defaultValue) || h;
229
+ },
230
+ {
231
+ value: ((A = e.columnsState) == null ? void 0 : A.value) || e.columnsStateMap,
232
+ onChange: ((F = e.columnsState) == null ? void 0 : F.onChange) || e.onColumnsStateChange
202
233
  }
203
- return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((o = e.columnsState) == null ? void 0 : o.defaultValue) || h;
204
- }, {
205
- value: ((A = e.columnsState) == null ? void 0 : A.value) || e.columnsStateMap,
206
- onChange: ((F = e.columnsState) == null ? void 0 : F.onChange) || e.onColumnsStateChange
207
- });
234
+ );
208
235
  S(() => {
209
- var n, l;
236
+ var n, o;
210
237
  const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
211
238
  if (i && t && typeof window < "u" && t !== "online") {
212
239
  const c = window[t];
213
240
  try {
214
- const o = c == null ? void 0 : c.getItem(i);
215
- o ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? T(C(JSON.parse(o), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue)) : T(JSON.parse(o)) : T(h);
216
- } catch (o) {
217
- console.warn(o);
241
+ const l = c == null ? void 0 : c.getItem(i);
242
+ l ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? T(
243
+ C(
244
+ JSON.parse(l),
245
+ (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
246
+ )
247
+ ) : T(JSON.parse(l)) : T(h);
248
+ } catch (l) {
249
+ console.warn(l);
218
250
  }
219
251
  }
220
252
  }, [
@@ -263,9 +295,9 @@ function Me(e) {
263
295
  // onlineChange
264
296
  } = e.columnsState;
265
297
  if (t !== "online") {
266
- const l = window[t];
298
+ const o = window[t];
267
299
  try {
268
- l == null || l.setItem(i, JSON.stringify(O));
300
+ o == null || o.setItem(i, JSON.stringify(O));
269
301
  } catch (c) {
270
302
  console.warn(c), I();
271
303
  }
@@ -277,12 +309,12 @@ function Me(e) {
277
309
  ]), S(() => {
278
310
  var t, i, a;
279
311
  if ((t = e.columnsState) != null && t.persistenceKey && ((i = e.columnsState) == null ? void 0 : i.persistenceType) === "online") {
280
- const { onlineGet: n, persistenceKey: l } = e.columnsState;
312
+ const { onlineGet: n, persistenceKey: o } = e.columnsState;
281
313
  try {
282
- (a = n == null ? void 0 : n(l)) == null || a.then((c) => {
314
+ (a = n == null ? void 0 : n(o)) == null || a.then((c) => {
283
315
  var f;
284
- const o = C(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
285
- T(Object.keys(o).length ? o : h);
316
+ const l = C(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
317
+ T(Object.keys(l).length ? l : h);
286
318
  });
287
319
  } catch (c) {
288
320
  console.warn(c);
@@ -335,7 +367,7 @@ function Me(e) {
335
367
  }
336
368
  const Be = Ve({}), _e = (e) => {
337
369
  const K = Me(e.initValue);
338
- return ve.jsx(Be.Provider, { value: K, children: e.children });
370
+ return /* @__PURE__ */ ve.jsx(Be.Provider, { value: K, children: e.children });
339
371
  };
340
372
  export {
341
373
  Be as BitzTableContext,
@@ -1,42 +1,42 @@
1
- const h = (e, i) => {
2
- let o = 0, n = 0;
1
+ const u = (e, d) => {
2
+ let o = 0, r = 0;
3
3
  return {
4
- filterColumns: ((d, l) => d.map((r) => {
5
- const t = y(r, r.index), s = l[t];
6
- return s && s.show === !1 ? (typeof r.width == "number" ? o += r.width : n += 1, !1) : { ...r, ...s };
7
- }))(e, i).filter(Boolean),
4
+ filterColumns: ((i, l) => i.map((n) => {
5
+ const t = h(n, n.index), s = l[t];
6
+ return s && s.show === !1 ? (typeof n.width == "number" ? o += n.width : r += 1, !1) : { ...n, ...s };
7
+ }))(e, d).filter(Boolean),
8
8
  hiddenTotalWidth: Math.floor(o),
9
- autoWidthColLength: n
9
+ autoWidthColLength: r
10
10
  };
11
- }, y = (e, i) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${i}`, c = (e) => (i, o) => {
12
- var t, s, u, x;
13
- const { fixed: n, index: a } = i, { fixed: f, index: d } = o;
14
- if (n === "left" && f !== "left" || f === "right" && n !== "right")
11
+ }, h = (e, d) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${d}`, c = (e) => (d, o) => {
12
+ var t, s, x, y;
13
+ const { fixed: r, index: a } = d, { fixed: f, index: i } = o;
14
+ if (r === "left" && f !== "left" || f === "right" && r !== "right")
15
15
  return -2;
16
- if (f === "left" && n !== "left" || n === "right" && f !== "right")
16
+ if (f === "left" && r !== "left" || r === "right" && f !== "right")
17
17
  return 2;
18
- const l = i.key || `${a}`, r = o.key || `${d}`;
19
- return (t = e[l]) != null && t.order || (s = e[r]) != null && s.order ? (((u = e[l]) == null ? void 0 : u.order) || 0) - (((x = e[r]) == null ? void 0 : x.order) || 0) : (i.index || 0) - (o.index || 0);
18
+ const l = d.key || `${a}`, n = o.key || `${i}`;
19
+ return (t = e[l]) != null && t.order || (s = e[n]) != null && s.order ? (((x = e[l]) == null ? void 0 : x.order) || 0) - (((y = e[n]) == null ? void 0 : y.order) || 0) : (d.index || 0) - (o.index || 0);
20
20
  };
21
- function k(e, i, o) {
22
- const n = {};
21
+ function k(e, d, o) {
22
+ const r = {};
23
23
  let a = "";
24
- const f = (d, l, r) => {
25
- for (const t in d)
26
- if (d.hasOwnProperty(t) && (typeof d[t] == "object" && d[t] !== null && (a = t, n[t] = { ...d[t] }, f(d[t], l, r)), t === l)) {
27
- const s = n[a];
28
- n[a] = {
24
+ const f = (i, l, n) => {
25
+ for (const t in i)
26
+ if (i.hasOwnProperty(t) && (typeof i[t] == "object" && i[t] !== null && (a = t, r[t] = { ...i[t] }, f(i[t], l, n)), t === l)) {
27
+ const s = r[a];
28
+ r[a] = {
29
29
  ...s,
30
- [l]: r
30
+ [l]: n
31
31
  // [prop]: current.disabled || current.fixed ? true : val,
32
32
  }, a = "";
33
33
  }
34
34
  };
35
- return f(e, i, o), n;
35
+ return f(e, d, o), r;
36
36
  }
37
37
  export {
38
38
  c as columnSort,
39
- y as genColumnKey,
40
- h as loopFilter,
39
+ h as genColumnKey,
40
+ u as loopFilter,
41
41
  k as updateNestedObject
42
42
  };