bitz-react-admin-ui 2.5.3 → 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 (198) 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 +48 -93
  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.d.ts +1 -2
  122. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  123. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  124. package/dist/components/BitzTable/Table/index.mjs +336 -513
  125. package/dist/components/BitzTable/Table/style.mjs +1 -10
  126. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  127. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +148 -256
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +21 -97
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +52 -106
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  139. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  140. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  141. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +13 -57
  142. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  143. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
  144. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  145. package/dist/components/BitzTableOperations/index.mjs +3 -13
  146. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  147. package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
  148. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
  149. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +84 -235
  150. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +21 -84
  151. package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
  152. package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
  153. package/dist/components/BitzTableSelect/index.mjs +14 -65
  154. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  155. package/dist/components/BitzTag/index.mjs +1 -1
  156. package/dist/components/BitzText/index.d.ts +9 -0
  157. package/dist/components/BitzText/index.less.mjs +4 -0
  158. package/dist/components/BitzText/index.mjs +37 -0
  159. package/dist/components/BitzText/utils.d.ts +4 -0
  160. package/dist/components/BitzText/utils.mjs +5 -0
  161. package/dist/components/BitzTheme/index.mjs +6 -6
  162. package/dist/components/BitzTimeline/index.mjs +1 -11
  163. package/dist/components/BitzTimer/Form.mjs +11 -32
  164. package/dist/components/BitzTimer/Timer.mjs +38 -76
  165. package/dist/components/BitzTimer/index.mjs +43 -66
  166. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  167. package/dist/components/BitzToast/index.mjs +1 -1
  168. package/dist/components/BitzTooltip/index.d.ts +17 -0
  169. package/dist/components/BitzTooltip/index.mjs +66 -0
  170. package/dist/components/BitzTooltip/style.d.ts +4 -0
  171. package/dist/components/BitzTooltip/style.mjs +47 -0
  172. package/dist/components/BitzTooltip/utils.d.ts +2 -0
  173. package/dist/components/BitzTooltip/utils.mjs +4 -0
  174. package/dist/components/BitzTree/index.mjs +1 -4
  175. package/dist/components/BitzUeEditor/index.mjs +5 -5
  176. package/dist/components/BitzUpload/index.mjs +43 -81
  177. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  178. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  179. package/dist/hooks/use-event-listener.mjs +2 -11
  180. package/dist/hooks/use-lock-fn.mjs +10 -13
  181. package/dist/hooks/use-scroll-parent.mjs +14 -16
  182. package/dist/hooks/useEvent.mjs +4 -7
  183. package/dist/hooks/useMergedState.mjs +11 -11
  184. package/dist/index.d.ts +2 -0
  185. package/dist/index.mjs +42 -38
  186. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
  187. package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
  188. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
  189. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
  190. package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
  191. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  192. package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
  193. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  194. package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
  195. package/dist/style.css +1 -1
  196. package/dist/utils/WithFluent.mjs +7 -28
  197. package/dist/utils/create.mjs +1 -7
  198. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { j as Ve } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { Table as le } from "antd";
3
- import v from "../../../hooks/useMergedState.mjs";
4
- import { createContext as ve, useRef as ze, useState as K, useContext as Ne, useEffect as d, useMemo as g, useCallback as z } from "react";
5
- import { genColumnKey as N } from "./utils/index.mjs";
6
- import { getUuid as Ee } from "../../../utils/uuid.mjs";
7
- import { BitzConfigContext as Ie } from "../../BitzConfigProvider/context.mjs";
1
+ import { j as ve } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { Table as fe } from "antd";
3
+ import z from "../../../hooks/useMergedState.mjs";
4
+ import { createContext as ze, useRef as Ne, useState as K, useContext as Ee, useEffect as d, useMemo as g, useCallback as N } from "react";
5
+ import { genColumnKey as E } from "./utils/index.mjs";
6
+ import { getUuid as Ie } from "../../../utils/uuid.mjs";
7
+ import { BitzConfigContext as Je } from "../../BitzConfigProvider/context.mjs";
8
8
  import m from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
9
- const Je = {
9
+ const Be = {
10
10
  fixed: "left",
11
11
  className: "sorterCol",
12
12
  isDragSorterCol: !0,
@@ -16,41 +16,35 @@ const Je = {
16
16
  onCell: () => ({
17
17
  "data-column-name": "dragSorterCell"
18
18
  })
19
- }, Be = [
20
- Je,
21
- le.SELECTION_COLUMN,
22
- le.EXPAND_COLUMN
19
+ }, je = [
20
+ Be,
21
+ fe.SELECTION_COLUMN,
22
+ fe.EXPAND_COLUMN
23
23
  ];
24
- function je(e) {
25
- var k, H, R, L, P, U, D, _, F, G, W, Z, A, X, q, Q, Y, $, p, ee, te, ne, ie, ae, oe;
26
- const T = ze(Ee()), [fe, re] = K(!1), [se, ue] = K(!1), [de, ye] = K(0), s = Ne(Ie).Table, Se = s == null ? void 0 : s.defaultSize, E = e.size ?? e.defaultSize ?? Se ?? "lg", Ce = e.zebra ?? e.defaultZebra ?? (s == null ? void 0 : s.zebra) ?? !0, ge = e.bordered ?? e.defaultBordered ?? (s == null ? void 0 : s.bordered) ?? "row-column", O = e.defaultStylesConfig || {
27
- size: E,
28
- zebra: Ce,
29
- bordered: ge
30
- }, [y, I] = v(
31
- () => {
32
- var n, c, l, a;
33
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = 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 ? m(
40
- JSON.parse(r),
41
- (c = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : c.defaultValue
42
- ) : JSON.parse(r);
43
- } catch (r) {
44
- console.warn(r);
45
- }
24
+ function Me(e) {
25
+ var H, R, L, P, U, D, _, F, G, W, Z, A, X, q, Q, Y, $, p, ee, te, ne, ie, ae, oe, le;
26
+ const T = Ne(Ie()), [re, se] = K(!1), [ue, de] = K(!1), [ye, Se] = K(0), s = Ee(Je).Table, Ce = s == null ? void 0 : s.defaultSize, I = e.size ?? e.defaultSize ?? Ce ?? "lg", ge = e.zebra ?? e.defaultZebra ?? (s == null ? void 0 : s.zebra) ?? !0, me = e.bordered ?? e.defaultBordered ?? (s == null ? void 0 : s.bordered) ?? "row-column", O = e.defaultStylesConfig || {
27
+ size: I,
28
+ zebra: ge,
29
+ bordered: me
30
+ }, [y, J] = z(() => {
31
+ var n, l, c, a;
32
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = 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 ? m(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);
46
41
  }
47
- return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
48
- },
49
- {
50
- value: ((k = e.stylesConfigState) == null ? void 0 : k.value) || e.stylesConfig,
51
- onChange: ((H = e.stylesConfigState) == null ? void 0 : H.onChange) || e.onStylesConfigChange
52
42
  }
53
- );
43
+ return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
44
+ }, {
45
+ value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
46
+ onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
47
+ });
54
48
  d(() => {
55
49
  var o, n;
56
50
  if (!((o = e.stylesConfigState) != null && o.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
@@ -61,35 +55,33 @@ function je(e) {
61
55
  // onlineChange
62
56
  } = e.stylesConfigState;
63
57
  if (t !== "online") {
64
- const c = window[t];
58
+ const l = window[t];
65
59
  try {
66
- c == null || c.setItem(i, JSON.stringify(y));
67
- } catch (l) {
68
- console.warn(l), B();
60
+ l == null || l.setItem(i, JSON.stringify(y));
61
+ } catch (c) {
62
+ console.warn(c), j();
69
63
  }
70
64
  }
71
65
  }, [
72
- (R = e.stylesConfigState) == null ? void 0 : R.persistenceKey,
66
+ (L = e.stylesConfigState) == null ? void 0 : L.persistenceKey,
73
67
  y,
74
- (L = e.stylesConfigState) == null ? void 0 : L.persistenceType
68
+ (P = e.stylesConfigState) == null ? void 0 : P.persistenceType
75
69
  ]), d(() => {
76
70
  var t, i, o;
77
71
  if ((t = e.stylesConfigState) != null && t.persistenceKey && ((i = e.stylesConfigState) == null ? void 0 : i.persistenceType) === "online") {
78
- const { onlineGet: n, persistenceKey: c } = e.stylesConfigState;
72
+ const { onlineGet: n, persistenceKey: l } = e.stylesConfigState;
79
73
  try {
80
- (o = n == null ? void 0 : n(c)) == null || o.then((l) => {
74
+ (o = n == null ? void 0 : n(l)) == null || o.then((c) => {
81
75
  var f;
82
- const a = m(l ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
83
- I(
84
- Object.keys(a).length ? a : O
85
- );
76
+ const a = m(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
77
+ J(Object.keys(a).length ? a : O);
86
78
  });
87
- } catch (l) {
88
- console.warn(l);
79
+ } catch (c) {
80
+ console.warn(c);
89
81
  }
90
82
  }
91
83
  }, []);
92
- const u = g(() => (e.columns ?? []).filter((t) => !Be.includes(t)), [e.columns]), x = g(() => {
84
+ const u = g(() => (e.columns ?? []).filter((t) => !je.includes(t)), [e.columns]), h = g(() => {
93
85
  var i;
94
86
  if ((i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue)
95
87
  return e.exportConfigState.defaultValue;
@@ -101,58 +93,47 @@ function je(e) {
101
93
  }
102
94
  };
103
95
  return u.forEach((o, n) => {
104
- const { title: c, isOperationCol: l } = o, a = N(o, n);
105
- a && !l && t.fields.push({
96
+ const { title: l, isOperationCol: c } = o, a = E(o, n);
97
+ a && !c && t.fields.push({
106
98
  field: a,
107
- title: c,
99
+ title: l,
108
100
  show: !0
109
101
  });
110
102
  }), t;
111
- }, [u]), [V, h] = v(
112
- () => {
113
- var n, c, l, a;
114
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
115
- if (i && t && typeof window < "u" && t !== "online") {
116
- const f = window[t];
117
- try {
118
- const r = f == null ? void 0 : f.getItem(i);
119
- if (r)
120
- return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? m(
121
- JSON.parse(r),
122
- (c = e == null ? void 0 : e.exportConfigState) == null ? void 0 : c.defaultValue
123
- ) : JSON.parse(r);
124
- } catch (r) {
125
- console.warn(r);
126
- }
103
+ }, [u]), [V, x] = z(() => {
104
+ var n, l, c, a;
105
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
106
+ if (i && t && typeof window < "u" && t !== "online") {
107
+ const f = window[t];
108
+ try {
109
+ const r = f == null ? void 0 : f.getItem(i);
110
+ if (r)
111
+ return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
112
+ } catch (r) {
113
+ console.warn(r);
127
114
  }
128
- return e.exportConfig || ((l = e.exportConfigState) == null ? void 0 : l.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || x;
129
- },
130
- {
131
- value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
132
- onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
133
115
  }
134
- );
116
+ return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || h;
117
+ }, {
118
+ value: ((U = e.exportConfigState) == null ? void 0 : U.value) || e.exportConfig,
119
+ onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
120
+ });
135
121
  d(() => {
136
- var n, c;
122
+ var n, l;
137
123
  const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
138
124
  if (i && t && typeof window < "u" && t !== "online") {
139
- const l = window[t];
125
+ const c = window[t];
140
126
  try {
141
- const a = l == null ? void 0 : l.getItem(i);
142
- a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? h(
143
- m(
144
- JSON.parse(a),
145
- (c = e == null ? void 0 : e.exportConfigState) == null ? void 0 : c.defaultValue
146
- )
147
- ) : h(JSON.parse(a)) : h(x);
127
+ const a = c == null ? void 0 : c.getItem(i);
128
+ a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(m(JSON.parse(a), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue)) : x(JSON.parse(a)) : x(h);
148
129
  } catch (a) {
149
130
  console.warn(a);
150
131
  }
151
132
  }
152
133
  }, [
153
- (D = e.exportConfigState) == null ? void 0 : D.persistenceKey,
154
- (_ = e.exportConfigState) == null ? void 0 : _.persistenceType,
155
- x
134
+ (_ = e.exportConfigState) == null ? void 0 : _.persistenceKey,
135
+ (F = e.exportConfigState) == null ? void 0 : F.persistenceType,
136
+ h
156
137
  ]), d(() => {
157
138
  var o, n;
158
139
  if (!((o = e.exportConfigState) != null && o.persistenceKey) || !((n = e.exportConfigState) != null && n.persistenceType) || typeof window > "u")
@@ -163,100 +144,82 @@ function je(e) {
163
144
  // onlineChange
164
145
  } = e.exportConfigState;
165
146
  if (t !== "online") {
166
- const c = window[t];
147
+ const l = window[t];
167
148
  try {
168
- c == null || c.setItem(i, JSON.stringify(V));
169
- } catch (l) {
170
- console.warn(l), j();
149
+ l == null || l.setItem(i, JSON.stringify(V));
150
+ } catch (c) {
151
+ console.warn(c), M();
171
152
  }
172
153
  }
173
154
  }, [
174
- (F = e.exportConfigState) == null ? void 0 : F.persistenceKey,
155
+ (G = e.exportConfigState) == null ? void 0 : G.persistenceKey,
175
156
  V,
176
- (G = e.exportConfigState) == null ? void 0 : G.persistenceType
157
+ (W = e.exportConfigState) == null ? void 0 : W.persistenceType
177
158
  ]), d(() => {
178
159
  var t, i, o;
179
160
  if ((t = e.exportConfigState) != null && t.persistenceKey && ((i = e.exportConfigState) == null ? void 0 : i.persistenceType) === "online") {
180
- const { onlineGet: n, persistenceKey: c } = e.exportConfigState;
161
+ const { onlineGet: n, persistenceKey: l } = e.exportConfigState;
181
162
  try {
182
- (o = n == null ? void 0 : n(c)) == null || o.then((l) => {
163
+ (o = n == null ? void 0 : n(l)) == null || o.then((c) => {
183
164
  var f;
184
- const a = m(l ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
185
- h(
186
- Object.keys(a).length ? a : x
187
- );
165
+ const a = m(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
166
+ x(Object.keys(a).length ? a : h);
188
167
  });
189
- } catch (l) {
190
- console.warn(l);
168
+ } catch (c) {
169
+ console.warn(c);
191
170
  }
192
171
  }
193
172
  }, []);
194
173
  const S = g(() => {
195
- var l;
196
- if ((l = e == null ? void 0 : e.columnsState) != null && l.defaultValue)
174
+ var c;
175
+ if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
197
176
  return e.columnsState.defaultValue;
198
- const t = u.filter((a) => a.fixed === "left").map((a, f) => ({ ...a, order: f })), i = u.filter((a) => a.fixed === "right").map((a, f) => ({ ...a, order: f })), o = u.filter((a) => !["left", "right"].includes(a.fixed)).map((a, f) => ({ ...a, order: f })), n = [...t, ...o, ...i], c = {};
177
+ const t = u.filter((a) => a.fixed === "left").map((a, f) => ({ ...a, order: f })), i = u.filter((a) => a.fixed === "right").map((a, f) => ({ ...a, order: f })), o = u.filter((a) => !["left", "right"].includes(a.fixed)).map((a, f) => ({ ...a, order: f })), n = [...t, ...o, ...i], l = {};
199
178
  return n.forEach((a, f) => {
200
- const {
201
- order: r,
202
- /*width,*/
203
- fixed: Ke,
204
- disabled: Oe
205
- } = a, ce = N(a, f);
206
- ce && (c[ce] = {
179
+ const { order: r, width: ce, fixed: Oe, disabled: Ve } = a, v = E(a, f);
180
+ v && (l[v] = {
207
181
  show: !0,
208
182
  order: r,
209
- fixed: Ke,
210
- disabled: Oe
211
- });
212
- }), c;
213
- }, [u]), [me, we] = K(!1), [C, w] = v(
214
- () => {
215
- var n, c, l, a;
216
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
217
- if (i && t && typeof window < "u" && t !== "online") {
218
- const f = window[t];
219
- try {
220
- const r = f == null ? void 0 : f.getItem(i);
221
- if (r)
222
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(
223
- JSON.parse(r),
224
- (c = e == null ? void 0 : e.columnsState) == null ? void 0 : c.defaultValue
225
- ) : JSON.parse(r);
226
- } catch (r) {
227
- console.warn(r);
228
- }
183
+ fixed: Oe,
184
+ disabled: Ve
185
+ }, typeof ce == "number" && (l[v].width = ce));
186
+ }), l;
187
+ }, [u]), [we, he] = K(!1), [C, w] = z(() => {
188
+ var n, l, c, a;
189
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
190
+ if (i && t && typeof window < "u" && t !== "online") {
191
+ const f = window[t];
192
+ try {
193
+ const r = f == null ? void 0 : f.getItem(i);
194
+ if (r)
195
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
196
+ } catch (r) {
197
+ console.warn(r);
229
198
  }
230
- return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
231
- },
232
- {
233
- value: ((W = e.columnsState) == null ? void 0 : W.value) || e.columnsStateMap,
234
- onChange: ((Z = e.columnsState) == null ? void 0 : Z.onChange) || e.onColumnsStateChange
235
199
  }
236
- );
200
+ return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
201
+ }, {
202
+ value: ((Z = e.columnsState) == null ? void 0 : Z.value) || e.columnsStateMap,
203
+ onChange: ((A = e.columnsState) == null ? void 0 : A.onChange) || e.onColumnsStateChange
204
+ });
237
205
  d(() => {
238
- var n, c;
206
+ var n, l;
239
207
  const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
240
208
  if (i && t && typeof window < "u" && t !== "online") {
241
- const l = window[t];
209
+ const c = window[t];
242
210
  try {
243
- const a = l == null ? void 0 : l.getItem(i);
244
- a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(
245
- m(
246
- JSON.parse(a),
247
- (c = e == null ? void 0 : e.columnsState) == null ? void 0 : c.defaultValue
248
- )
249
- ) : w(JSON.parse(a)) : w(S);
211
+ const a = c == null ? void 0 : c.getItem(i);
212
+ a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(m(JSON.parse(a), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue)) : w(JSON.parse(a)) : w(S);
250
213
  } catch (a) {
251
214
  console.warn(a);
252
215
  }
253
216
  }
254
217
  }, [
255
- (A = e.columnsState) == null ? void 0 : A.persistenceKey,
256
- (X = e.columnsState) == null ? void 0 : X.persistenceType,
218
+ (X = e.columnsState) == null ? void 0 : X.persistenceKey,
219
+ (q = e.columnsState) == null ? void 0 : q.persistenceType,
257
220
  S
258
221
  ]);
259
- const J = z(() => {
222
+ const B = N(() => {
260
223
  const { persistenceType: t, persistenceKey: i } = e.columnsState || {};
261
224
  if (!i || !t || typeof window > "u")
262
225
  return;
@@ -266,7 +229,7 @@ function je(e) {
266
229
  } catch (n) {
267
230
  console.warn(n);
268
231
  }
269
- }, [e.columnsState]), B = z(() => {
232
+ }, [e.columnsState]), j = N(() => {
270
233
  const { persistenceType: t, persistenceKey: i } = e.stylesConfigState || {};
271
234
  if (!i || !t || typeof window > "u")
272
235
  return;
@@ -276,7 +239,7 @@ function je(e) {
276
239
  } catch (n) {
277
240
  console.warn(n);
278
241
  }
279
- }, [e.stylesConfigState]), j = z(() => {
242
+ }, [e.stylesConfigState]), M = N(() => {
280
243
  const { persistenceType: t, persistenceKey: i } = e.exportConfigState || {};
281
244
  if (!i || !t || typeof window > "u")
282
245
  return;
@@ -297,93 +260,93 @@ function je(e) {
297
260
  // onlineChange
298
261
  } = e.columnsState;
299
262
  if (t !== "online") {
300
- const c = window[t];
263
+ const l = window[t];
301
264
  try {
302
- c == null || c.setItem(i, JSON.stringify(C));
303
- } catch (l) {
304
- console.warn(l), J();
265
+ l == null || l.setItem(i, JSON.stringify(C));
266
+ } catch (c) {
267
+ console.warn(c), B();
305
268
  }
306
269
  }
307
270
  }, [
308
- (q = e.columnsState) == null ? void 0 : q.persistenceKey,
271
+ (Q = e.columnsState) == null ? void 0 : Q.persistenceKey,
309
272
  C,
310
- (Q = e.columnsState) == null ? void 0 : Q.persistenceType
273
+ (Y = e.columnsState) == null ? void 0 : Y.persistenceType
311
274
  ]), d(() => {
312
275
  var t, i, o;
313
276
  if ((t = e.columnsState) != null && t.persistenceKey && ((i = e.columnsState) == null ? void 0 : i.persistenceType) === "online") {
314
- const { onlineGet: n, persistenceKey: c } = e.columnsState;
277
+ const { onlineGet: n, persistenceKey: l } = e.columnsState;
315
278
  try {
316
- (o = n == null ? void 0 : n(c)) == null || o.then((l) => {
279
+ (o = n == null ? void 0 : n(l)) == null || o.then((c) => {
317
280
  var f;
318
- const a = m(l ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
319
- w(a), we(!0);
281
+ const a = m(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
282
+ w(a), he(!0);
320
283
  });
321
- } catch (l) {
322
- console.warn(l);
284
+ } catch (c) {
285
+ console.warn(c);
323
286
  }
324
287
  }
325
288
  }, []), d(() => {
326
289
  var i, o;
327
290
  const t = u.findIndex((n) => n == null ? void 0 : n.isOperationCol);
328
291
  if (t >= 0) {
329
- const n = u[t], c = N(n, t);
330
- !(((i = C == null ? void 0 : C[c]) == null ? void 0 : i.fixed) === ((o = S == null ? void 0 : S[c]) == null ? void 0 : o.fixed)) && Object.keys(C ?? {}).length === 0 && w(S);
292
+ const n = u[t], l = E(n, t);
293
+ !(((i = C == null ? void 0 : C[l]) == null ? void 0 : i.fixed) === ((o = S == null ? void 0 : S[l]) == null ? void 0 : o.fixed)) && Object.keys(C ?? {}).length === 0 && w(S);
331
294
  }
332
295
  }, [S, C]);
333
- const xe = g(() => (e == null ? void 0 : e.rowHoverable) ?? (s == null ? void 0 : s.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, s == null ? void 0 : s.rowHoverable]), he = g(() => e.zebra ?? y.zebra, [e.zebra, y.zebra]), b = g(() => e.bordered ?? y.bordered, [e.bordered, y.bordered]), Te = g(() => ["column", "row-column"].includes(b), [b]), be = g(() => {
296
+ const xe = g(() => (e == null ? void 0 : e.rowHoverable) ?? (s == null ? void 0 : s.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, s == null ? void 0 : s.rowHoverable]), Te = g(() => e.zebra ?? y.zebra, [e.zebra, y.zebra]), b = g(() => e.bordered ?? y.bordered, [e.bordered, y.bordered]), be = g(() => ["column", "row-column"].includes(b), [b]), Ke = g(() => {
334
297
  let t = !1;
335
298
  return ["hide", "column"].includes(b) && (t = !0), t;
336
- }, [b]), M = {
299
+ }, [b]), k = {
337
300
  loading: e.loading ?? !1,
338
301
  uuid: T.current,
339
- fullscreen: fe,
340
- setFullscreen: re,
341
- selected: se,
342
- setSelected: ue,
343
- toolbarWidth: de,
344
- setToolbarWidth: ye,
302
+ fullscreen: re,
303
+ setFullscreen: se,
304
+ selected: ue,
305
+ setSelected: de,
306
+ toolbarWidth: ye,
307
+ setToolbarWidth: Se,
345
308
  columns: e.columns,
346
309
  baseColumns: u,
347
- persistenceType: (Y = e.columnsState) == null ? void 0 : Y.persistenceType,
348
- persistenceKey: ($ = e.columnsState) == null ? void 0 : $.persistenceKey,
349
- onlineChange: (p = e.columnsState) == null ? void 0 : p.onlineChange,
350
- finish: me,
310
+ persistenceType: ($ = e.columnsState) == null ? void 0 : $.persistenceType,
311
+ persistenceKey: (p = e.columnsState) == null ? void 0 : p.persistenceKey,
312
+ onlineChange: (ee = e.columnsState) == null ? void 0 : ee.onlineChange,
313
+ finish: we,
351
314
  columnsMap: C,
352
315
  setColumnsMap: w,
353
316
  defaultColumnKeyMap: S,
354
- clearPersistenceStorage: J,
317
+ clearPersistenceStorage: B,
355
318
  stylesConfig: y,
356
- setTableStylesConfig: I,
357
- defaultTableSize: E,
319
+ setTableStylesConfig: J,
320
+ defaultTableSize: I,
358
321
  tableSize: y.size,
359
- stylesStorageType: (ee = e.stylesConfigState) == null ? void 0 : ee.persistenceType,
360
- stylesStorageKey: (te = e.stylesConfigState) == null ? void 0 : te.persistenceKey,
361
- onlineStylesConfigChange: (ne = e.stylesConfigState) == null ? void 0 : ne.onlineChange,
362
- clearStylesConfigCache: B,
322
+ stylesStorageType: (te = e.stylesConfigState) == null ? void 0 : te.persistenceType,
323
+ stylesStorageKey: (ne = e.stylesConfigState) == null ? void 0 : ne.persistenceKey,
324
+ onlineStylesConfigChange: (ie = e.stylesConfigState) == null ? void 0 : ie.onlineChange,
325
+ clearStylesConfigCache: j,
363
326
  defaultTableStylesConfig: O,
364
327
  exportConfig: V,
365
- setTableExportConfig: h,
366
- defaultTableExportConfig: x,
367
- exportStorageType: (ie = e.exportConfigState) == null ? void 0 : ie.persistenceType,
368
- exportStorageKey: (ae = e.exportConfigState) == null ? void 0 : ae.persistenceKey,
369
- onlineExportConfigChange: (oe = e.exportConfigState) == null ? void 0 : oe.onlineChange,
370
- clearExportConfigCache: j,
371
- zebra: he,
328
+ setTableExportConfig: x,
329
+ defaultTableExportConfig: h,
330
+ exportStorageType: (ae = e.exportConfigState) == null ? void 0 : ae.persistenceType,
331
+ exportStorageKey: (oe = e.exportConfigState) == null ? void 0 : oe.persistenceKey,
332
+ onlineExportConfigChange: (le = e.exportConfigState) == null ? void 0 : le.onlineChange,
333
+ clearExportConfigCache: M,
334
+ zebra: Te,
372
335
  rowHoverable: xe,
373
- showColumnBorder: Te,
374
- hideRowBorder: be
336
+ showColumnBorder: be,
337
+ hideRowBorder: Ke
375
338
  };
376
- return Object.defineProperty(M, "uuid", {
339
+ return Object.defineProperty(k, "uuid", {
377
340
  get: () => T.current
378
- }), M;
341
+ }), k;
379
342
  }
380
- const Me = ve({}), Fe = (e) => {
381
- const T = je(e.initValue);
382
- return /* @__PURE__ */ Ve.jsx(Me.Provider, { value: T, children: e.children });
343
+ const ke = ze({}), Ge = (e) => {
344
+ const T = Me(e.initValue);
345
+ return ve.jsx(ke.Provider, { value: T, children: e.children });
383
346
  };
384
347
  export {
385
- Me as BitzTableContext,
386
- Je as SORTER_COLUMN,
387
- Fe as default,
388
- Be as toolCols
348
+ ke as BitzTableContext,
349
+ Be as SORTER_COLUMN,
350
+ Ge as default,
351
+ je as toolCols
389
352
  };
@@ -1,41 +1,41 @@
1
- const l = (e, i, x) => ((f, d) => f.map((t) => {
2
- const s = u(t, t.index), o = d[s];
3
- return o && o.show === !1 ? !1 : {
4
- ...t,
5
- ...o
6
- // ...(item?.isOperationCol && !finish) && {
7
- // width: item?.width,
8
- // },
1
+ const l = (r, d, x) => ((i, o) => i.map((e) => {
2
+ const s = c(e, e.index), f = o[s];
3
+ return f && f.show === !1 ? !1 : {
4
+ ...e,
5
+ ...f,
6
+ ...(e == null ? void 0 : e.isOperationCol) && !x && {
7
+ width: e == null ? void 0 : e.width
8
+ }
9
9
  };
10
- }))(e, i).filter(Boolean), u = (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}`, k = (e) => (i, x) => {
11
- var r, y, a, c;
12
- const { fixed: n, index: f } = i, { fixed: d, index: t } = x;
13
- if (n === "left" && d !== "left" || d === "right" && n !== "right")
10
+ }))(r, d).filter(Boolean), c = (r, d) => "key" in r && r.key !== void 0 && r.key !== null ? r.key : r.dataIndex ? Array.isArray(r.dataIndex) ? r.dataIndex.join("-") : r.dataIndex : `${d}`, h = (r) => (d, x) => {
11
+ var n, a, y, u;
12
+ const { fixed: t, index: i } = d, { fixed: o, index: e } = x;
13
+ if (t === "left" && o !== "left" || o === "right" && t !== "right")
14
14
  return -2;
15
- if (d === "left" && n !== "left" || n === "right" && d !== "right")
15
+ if (o === "left" && t !== "left" || t === "right" && o !== "right")
16
16
  return 2;
17
- const s = i.key || `${f}`, o = x.key || `${t}`;
18
- return (r = e[s]) != null && r.order || (y = e[o]) != null && y.order ? (((a = e[s]) == null ? void 0 : a.order) || 0) - (((c = e[o]) == null ? void 0 : c.order) || 0) : (i.index || 0) - (x.index || 0);
17
+ const s = d.key || `${i}`, f = x.key || `${e}`;
18
+ return (n = r[s]) != null && n.order || (a = r[f]) != null && a.order ? (((y = r[s]) == null ? void 0 : y.order) || 0) - (((u = r[f]) == null ? void 0 : u.order) || 0) : (d.index || 0) - (x.index || 0);
19
19
  };
20
- function h(e, i, x) {
21
- const n = {};
22
- let f = "";
23
- const d = (t, s, o) => {
24
- for (const r in t)
25
- if (t.hasOwnProperty(r) && (typeof t[r] == "object" && t[r] !== null && (f = r, n[r] = { ...t[r] }, d(t[r], s, o)), r === s)) {
26
- const y = n[f];
27
- n[f] = {
28
- ...y,
29
- [s]: o
20
+ function k(r, d, x) {
21
+ const t = {};
22
+ let i = "";
23
+ const o = (e, s, f) => {
24
+ for (const n in e)
25
+ if (e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && (i = n, t[n] = { ...e[n] }, o(e[n], s, f)), n === s)) {
26
+ const a = t[i];
27
+ t[i] = {
28
+ ...a,
29
+ [s]: f
30
30
  // [prop]: current.disabled || current.fixed ? true : val,
31
- }, f = "";
31
+ }, i = "";
32
32
  }
33
33
  };
34
- return d(e, i, x), n;
34
+ return o(r, d, x), t;
35
35
  }
36
36
  export {
37
- k as columnSort,
38
- u as genColumnKey,
37
+ h as columnSort,
38
+ c as genColumnKey,
39
39
  l as loopFilter,
40
- h as updateNestedObject
40
+ k as updateNestedObject
41
41
  };