bitz-react-admin-ui 2.10.7-beta.2 → 2.10.7-beta.4

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 (186) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +5 -18
  2. package/dist/assets/iconfont/IconClose.mjs +5 -18
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +5 -18
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +5 -18
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +5 -18
  6. package/dist/assets/iconfont/IconCuowu.mjs +5 -18
  7. package/dist/assets/iconfont/IconDragOrder.mjs +5 -18
  8. package/dist/assets/iconfont/IconDuigoux.mjs +5 -18
  9. package/dist/assets/iconfont/IconFabu.mjs +8 -27
  10. package/dist/assets/iconfont/IconFanhui.mjs +5 -18
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -18
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +9 -35
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +9 -35
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -18
  15. package/dist/assets/iconfont/IconIcon21.mjs +5 -18
  16. package/dist/assets/iconfont/IconJincoude.mjs +5 -18
  17. package/dist/assets/iconfont/IconJinggao.mjs +5 -18
  18. package/dist/assets/iconfont/IconKuansongde.mjs +5 -18
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +9 -35
  20. package/dist/assets/iconfont/IconMore.mjs +9 -34
  21. package/dist/assets/iconfont/IconShanchu.mjs +5 -18
  22. package/dist/assets/iconfont/IconShanchu1.mjs +8 -27
  23. package/dist/assets/iconfont/IconSousuo.mjs +5 -18
  24. package/dist/assets/iconfont/IconTejincou.mjs +5 -18
  25. package/dist/assets/iconfont/IconTekuansong.mjs +5 -18
  26. package/dist/assets/iconfont/IconTishi1.mjs +5 -18
  27. package/dist/assets/iconfont/IconTuodong.mjs +5 -18
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +8 -29
  29. package/dist/assets/iconfont/IconWufengexian.mjs +5 -19
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +5 -18
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +8 -28
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +5 -18
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -18
  34. package/dist/assets/iconfont/index.mjs +4 -1
  35. package/dist/components/BitzAddTag/index.mjs +17 -38
  36. package/dist/components/BitzAddressBook/index.mjs +33 -81
  37. package/dist/components/BitzAppRefresh/index.mjs +11 -17
  38. package/dist/components/BitzBetterScroll/index.mjs +13 -1
  39. package/dist/components/BitzButton/index.mjs +33 -25
  40. package/dist/components/BitzCalendar/index.mjs +42 -60
  41. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +25 -47
  42. package/dist/components/BitzCascader/index.mjs +5 -1
  43. package/dist/components/BitzCollapse/index.mjs +5 -2
  44. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  45. package/dist/components/BitzConfirmModal/index.mjs +22 -25
  46. package/dist/components/BitzDayJs/index.mjs +1 -1
  47. package/dist/components/BitzDescriptions/index.mjs +1 -11
  48. package/dist/components/BitzDrawer/index.mjs +14 -18
  49. package/dist/components/BitzEmpty/index.mjs +5 -1
  50. package/dist/components/BitzException/index.mjs +1 -6
  51. package/dist/components/BitzFloatLayout/index.mjs +14 -2
  52. package/dist/components/BitzFluentDatePicker/index.mjs +4 -1
  53. package/dist/components/BitzFluentRangePicker/index.mjs +4 -1
  54. package/dist/components/BitzFluentRangeTimePicker/index.mjs +4 -1
  55. package/dist/components/BitzFluentTimePicker/index.mjs +4 -1
  56. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  57. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +15 -15
  58. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +4 -2
  59. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +13 -24
  60. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  61. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +10 -14
  62. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +25 -46
  63. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -17
  64. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +19 -20
  65. package/dist/components/BitzFuiCalendar/index.mjs +3 -1
  66. package/dist/components/BitzFullScreen/index.mjs +40 -17
  67. package/dist/components/BitzHighlight/Child.mjs +12 -9
  68. package/dist/components/BitzHighlight/Highlight.mjs +10 -8
  69. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  70. package/dist/components/BitzHighlight/style.mjs +25 -22
  71. package/dist/components/BitzImage/index.mjs +5 -1
  72. package/dist/components/BitzImage/previewImage.mjs +5 -12
  73. package/dist/components/BitzLanguageTabs/index.mjs +29 -20
  74. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  75. package/dist/components/BitzList/List.mjs +1 -15
  76. package/dist/components/BitzList/LoadMore.mjs +23 -22
  77. package/dist/components/BitzLoadMore/index.mjs +7 -13
  78. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +12 -10
  79. package/dist/components/BitzMeetingTime/index.mjs +15 -4
  80. package/dist/components/BitzMobileLoading/index.mjs +3 -1
  81. package/dist/components/BitzModal/index.mjs +13 -20
  82. package/dist/components/BitzNoData/index.mjs +8 -1
  83. package/dist/components/BitzNoMore/index.mjs +4 -1
  84. package/dist/components/BitzOrganizationSelection/index.mjs +32 -30
  85. package/dist/components/BitzPageContainer/index.mjs +21 -42
  86. package/dist/components/BitzPageHeader/index.mjs +14 -48
  87. package/dist/components/BitzPagination/index.mjs +9 -38
  88. package/dist/components/BitzPopover/index.mjs +8 -2
  89. package/dist/components/BitzPullRefresh/PullRefresh.mjs +43 -45
  90. package/dist/components/BitzQRCode/index.mjs +1 -6
  91. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +23 -20
  92. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +7 -1
  93. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +3 -1
  94. package/dist/components/BitzQueryFilter/index.mjs +7 -39
  95. package/dist/components/BitzRefresh/index.mjs +13 -4
  96. package/dist/components/BitzRemark/index.mjs +6 -1
  97. package/dist/components/BitzSearch/index.mjs +12 -2
  98. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +49 -99
  99. package/dist/components/BitzSelect/index.mjs +10 -2
  100. package/dist/components/BitzSkeleton/index.mjs +1 -31
  101. package/dist/components/BitzTabbar/BitzTabbar.mjs +7 -13
  102. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +15 -3
  103. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +41 -86
  104. package/dist/components/BitzTable/ActionBar/Button.mjs +4 -1
  105. package/dist/components/BitzTable/ActionBar/style.mjs +62 -67
  106. package/dist/components/BitzTable/ActionCol/index.mjs +65 -166
  107. package/dist/components/BitzTable/ActionCol/style.mjs +74 -88
  108. package/dist/components/BitzTable/Dropdown/index.mjs +15 -11
  109. package/dist/components/BitzTable/Dropdown/style.mjs +66 -70
  110. package/dist/components/BitzTable/SelectionBar/Button.mjs +22 -16
  111. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +15 -13
  112. package/dist/components/BitzTable/SelectionBar/style.mjs +79 -96
  113. package/dist/components/BitzTable/Store/index.mjs +126 -152
  114. package/dist/components/BitzTable/Store/utils/index.mjs +11 -2
  115. package/dist/components/BitzTable/SubTable/index.mjs +63 -68
  116. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +27 -37
  117. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -19
  118. package/dist/components/BitzTable/Table/SortableRow.mjs +32 -34
  119. package/dist/components/BitzTable/Table/TdCell.mjs +14 -12
  120. package/dist/components/BitzTable/Table/index.mjs +418 -532
  121. package/dist/components/BitzTable/Table/useScrollConfig.mjs +18 -10
  122. package/dist/components/BitzTable/Table/utils.mjs +20 -21
  123. package/dist/components/BitzTable/TextOverflow/index.mjs +15 -14
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +0 -1
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +120 -119
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +114 -120
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +26 -37
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +340 -342
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +23 -33
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -30
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +168 -145
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +12 -9
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +29 -17
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +233 -170
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +51 -54
  136. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +53 -53
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -33
  138. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +52 -39
  139. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +1 -1
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -38
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +34 -20
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +32 -44
  143. package/dist/components/BitzTable/ToolBar/style.mjs +59 -58
  144. package/dist/components/BitzTableOperations/index.mjs +8 -13
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +4 -23
  146. package/dist/components/BitzTableSelect/Select/index.mjs +2 -48
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +16 -22
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +72 -156
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +1 -43
  150. package/dist/components/BitzTableSelect/TableCell/index.mjs +24 -52
  151. package/dist/components/BitzTableSelect/TextBlock/index.mjs +10 -18
  152. package/dist/components/BitzTableSelect/index.mjs +5 -39
  153. package/dist/components/BitzTag/index.mjs +10 -2
  154. package/dist/components/BitzText/index.mjs +37 -42
  155. package/dist/components/BitzTheme/index.mjs +5 -1
  156. package/dist/components/BitzTimeline/index.mjs +1 -11
  157. package/dist/components/BitzTimer/Form.mjs +32 -38
  158. package/dist/components/BitzTimer/Timer.mjs +8 -23
  159. package/dist/components/BitzTimer/index.mjs +36 -35
  160. package/dist/components/BitzToast/Toast/index.mjs +24 -12
  161. package/dist/components/BitzToast/index.mjs +7 -1
  162. package/dist/components/BitzTooltip/index.mjs +35 -45
  163. package/dist/components/BitzTooltip/style.mjs +41 -38
  164. package/dist/components/BitzUeEditor/config.mjs +183 -185
  165. package/dist/components/BitzUeEditor/index.mjs +10 -2
  166. package/dist/components/BitzUpload/index.mjs +56 -67
  167. package/dist/components/BitzWebAppDrawer/index.mjs +4 -18
  168. package/dist/components/BitzWebAppModal/index.mjs +6 -1
  169. package/dist/hooks/use-event-listener.mjs +4 -5
  170. package/dist/hooks/use-lock-fn.mjs +10 -13
  171. package/dist/hooks/use-scroll-parent.mjs +4 -4
  172. package/dist/hooks/useEvent.mjs +4 -7
  173. package/dist/hooks/useMergedState.mjs +6 -1
  174. package/dist/node_modules/dayjs/locale/zh-cn.mjs +10 -10
  175. package/dist/style.css +1 -1
  176. package/dist/utils/WithFluent.mjs +13 -9
  177. package/dist/utils/create.mjs +1 -7
  178. package/dist/utils/get-default-props.mjs +3 -1
  179. package/dist/utils/time.mjs +8 -8
  180. package/package.json +5 -5
  181. package/dist/_virtual/dayjs.min.mjs +0 -4
  182. package/dist/components/BitzTable/Select/index.d.ts +0 -3
  183. package/dist/components/BitzTable/Select/style.d.ts +0 -4
  184. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +0 -11
  185. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +0 -3
  186. package/dist/node_modules/dayjs/dayjs.min.mjs +0 -297
@@ -4,22 +4,24 @@ import i from "../../../node_modules/classnames/index.mjs";
4
4
  import { useContext as n, useMemo as p } from "react";
5
5
  import { BitzTableContext as x } from "../Store/index.mjs";
6
6
  import d from "./style.mjs";
7
- const N = ({ children: o }) => {
8
- const { blockClassName: r, showCls: a, batchOperationClassName: m } = d(), { selected: s, toolbarWidth: e } = n(x), l = p(() => i(r, {
7
+ const N = ({
8
+ children: o
9
+ }) => {
10
+ const {
11
+ blockClassName: r,
12
+ showCls: a,
13
+ batchOperationClassName: m
14
+ } = d(), {
15
+ selected: s,
16
+ toolbarWidth: e
17
+ } = n(x), l = p(() => i(r, {
9
18
  [`${a}`]: s
10
19
  }), [s]);
11
- return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
12
- c.Compact,
13
- {
14
- className: m,
15
- style: {
16
- ...e && {
17
- width: `calc(100% - 50px - ${e}px)`
18
- }
19
- },
20
- children: o || /* @__PURE__ */ t.jsx("div", {})
20
+ return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(c.Compact, { className: m, style: {
21
+ ...e && {
22
+ width: `calc(100% - 50px - ${e}px)`
21
23
  }
22
- ) });
24
+ }, children: o || /* @__PURE__ */ t.jsx("div", {}) }) });
23
25
  };
24
26
  export {
25
27
  N as default
@@ -18,108 +18,91 @@ import i from "../../../node_modules/classnames/index.mjs";
18
18
  import { BitzTableContext as A } from "../Store/index.mjs";
19
19
  import D from "../../BitzTheme/index.mjs";
20
20
  const ot = () => {
21
- const { tableSize: n } = R(A), d = Y(() => n ?? "lg", [n]), { theme: T, hashId: o, token: a } = D.useToken(), r = "bitzTableSelectionBar", s = "batchOperation", m = "selectionAction", f = "alertContent", l = "show", x = (t, C, O, G, I, e) => {
21
+ const {
22
+ tableSize: n
23
+ } = R(A), d = Y(() => n ?? "lg", [n]), {
24
+ theme: T,
25
+ hashId: o,
26
+ token: a
27
+ } = D.useToken(), r = "bitzTableSelectionBar", s = "batchOperation", m = "selectionAction", f = "alertContent", l = "show", x = (t, C, O, G, I, e) => {
22
28
  var p, h, c, $, z, S, b, g, u;
23
- return [
24
- {
25
- [`.${t}`]: {
26
- height: "var(--toolbar-height)",
27
- display: "flex",
28
- justifyContent: "space-between",
29
- columnGap: 50,
30
- alignItems: "center",
31
- color: "#fff",
32
- backgroundColor: e.colorPrimary,
33
- position: "absolute",
34
- inset: 0,
35
- transform: "translateY(100%)",
36
- transition: "transform 0.2s"
37
- }
38
- },
39
- {
40
- [`.${t}.${C}`]: {
41
- transform: "translateY(0%)"
42
- }
43
- },
44
- {
45
- [`.${t} .${O}`]: {
46
- fontSize: "inherit",
47
- height: "100%",
48
- overflow: "auto hidden",
49
- "::-webkit-scrollbar": {
50
- height: 4
51
- }
52
- }
53
- },
54
- {
55
- [`.${t} .${I}`]: {
56
- height: "100%",
57
- "span, strong": {
58
- wordBreak: "keep-all"
59
- }
60
- }
61
- },
62
- {
63
- [`.${t} .${G}`]: {
64
- fontSize: "inherit",
65
- color: "#fff",
66
- height: "100%",
67
- borderRadius: 0,
68
- paddingBlock: 0,
69
- borderColor: "transparent",
70
- "&:hover": {
71
- color: "#fff !important"
72
- },
73
- "&:active": {
74
- color: "#fff !important"
75
- }
76
- }
77
- },
78
- {
79
- [`.${t}.xl${t}`]: {
80
- fontSize: (p = e.Table.xlTable) == null ? void 0 : p.fontSize
81
- }
82
- },
83
- {
84
- [`.${t}.lg${t}`]: {
85
- fontSize: (c = (h = e.Table) == null ? void 0 : h.lgTable) == null ? void 0 : c.fontSize
86
- }
87
- },
88
- {
89
- [`.${t}.md${t}`]: {
90
- fontSize: (z = ($ = e.Table) == null ? void 0 : $.mdTable) == null ? void 0 : z.fontSize
29
+ return [{
30
+ [`.${t}`]: {
31
+ height: "var(--toolbar-height)",
32
+ display: "flex",
33
+ justifyContent: "space-between",
34
+ columnGap: 50,
35
+ alignItems: "center",
36
+ color: "#fff",
37
+ backgroundColor: e.colorPrimary,
38
+ position: "absolute",
39
+ inset: 0,
40
+ transform: "translateY(100%)",
41
+ transition: "transform 0.2s"
42
+ }
43
+ }, {
44
+ [`.${t}.${C}`]: {
45
+ transform: "translateY(0%)"
46
+ }
47
+ }, {
48
+ [`.${t} .${O}`]: {
49
+ fontSize: "inherit",
50
+ height: "100%",
51
+ overflow: "auto hidden",
52
+ "::-webkit-scrollbar": {
53
+ height: 4
91
54
  }
92
- },
93
- {
94
- [`.${t}.sm${t}`]: {
95
- fontSize: (b = (S = e.Table) == null ? void 0 : S.smTable) == null ? void 0 : b.fontSize
55
+ }
56
+ }, {
57
+ [`.${t} .${I}`]: {
58
+ height: "100%",
59
+ "span, strong": {
60
+ wordBreak: "keep-all"
96
61
  }
97
- },
98
- {
99
- [`.${t}.xs${t}`]: {
100
- fontSize: (u = (g = e.Table) == null ? void 0 : g.xsTable) == null ? void 0 : u.fontSize
62
+ }
63
+ }, {
64
+ [`.${t} .${G}`]: {
65
+ fontSize: "inherit",
66
+ color: "#fff",
67
+ height: "100%",
68
+ borderRadius: 0,
69
+ paddingBlock: 0,
70
+ borderColor: "transparent",
71
+ "&:hover": {
72
+ color: "#fff !important"
73
+ },
74
+ "&:active": {
75
+ color: "#fff !important"
101
76
  }
102
77
  }
103
- ];
78
+ }, {
79
+ [`.${t}.xl${t}`]: {
80
+ fontSize: (p = e.Table.xlTable) == null ? void 0 : p.fontSize
81
+ }
82
+ }, {
83
+ [`.${t}.lg${t}`]: {
84
+ fontSize: (c = (h = e.Table) == null ? void 0 : h.lgTable) == null ? void 0 : c.fontSize
85
+ }
86
+ }, {
87
+ [`.${t}.md${t}`]: {
88
+ fontSize: (z = ($ = e.Table) == null ? void 0 : $.mdTable) == null ? void 0 : z.fontSize
89
+ }
90
+ }, {
91
+ [`.${t}.sm${t}`]: {
92
+ fontSize: (b = (S = e.Table) == null ? void 0 : S.smTable) == null ? void 0 : b.fontSize
93
+ }
94
+ }, {
95
+ [`.${t}.xs${t}`]: {
96
+ fontSize: (u = (g = e.Table) == null ? void 0 : g.xsTable) == null ? void 0 : u.fontSize
97
+ }
98
+ }];
104
99
  };
105
- j(
106
- {
107
- theme: T,
108
- token: a,
109
- hashId: o,
110
- path: [r]
111
- },
112
- () => [
113
- x(
114
- r,
115
- l,
116
- s,
117
- m,
118
- f,
119
- a
120
- )
121
- ]
122
- );
100
+ j({
101
+ theme: T,
102
+ token: a,
103
+ hashId: o,
104
+ path: [r]
105
+ }, () => [x(r, l, s, m, f, a)]);
123
106
  const w = `${d}${r}`, y = i(r, w, o), B = i(m, o), N = i(f, o), v = i(s, o);
124
107
  return {
125
108
  blockClassName: y,
@@ -16,61 +16,39 @@ const Ze = {
16
16
  onCell: () => ({
17
17
  "data-column-name": "dragSorterCell"
18
18
  })
19
- }, _e = [
20
- Ze,
21
- fe.SELECTION_COLUMN,
22
- fe.EXPAND_COLUMN
23
- ], ue = 5;
19
+ }, _e = [Ze, fe.SELECTION_COLUMN, fe.EXPAND_COLUMN], ue = 5;
24
20
  function Fe(e) {
25
21
  var j, k, R, L, U, A, D, Z, _, F, W, X, q, Q, Y, $, G, p, ee, te, ne, ie, ae, oe, ce, le, re;
26
22
  const T = Re(Ae()), [de, ye] = w(!1), [Se, ge] = w(!1), [Ce, me] = w(0), r = Le(De).Table, E = e.defaultSize ?? (r == null ? void 0 : r.defaultSize) ?? "lg", we = e.defaultZebra ?? (r == null ? void 0 : r.zebra) ?? !0, he = e.defaultBordered ?? (r == null ? void 0 : r.bordered) ?? "row-column", xe = e.defaultPageSize ?? (r == null ? void 0 : r.pageSize) ?? 10, Te = e.defaultOrderBy ?? (r == null ? void 0 : r.orderBy) ?? "desc", V = S(() => {
27
23
  var t;
28
- return y(
29
- {
30
- size: E,
31
- zebra: we,
32
- bordered: he,
33
- pageSize: xe,
34
- orderBy: Te
35
- },
36
- (t = e.stylesConfigState) == null ? void 0 : t.defaultValue
37
- );
38
- }, [
39
- e.defaultSize,
40
- r == null ? void 0 : r.defaultSize,
41
- e.defaultZebra,
42
- r == null ? void 0 : r.zebra,
43
- e.defaultBordered,
44
- r == null ? void 0 : r.bordered,
45
- e.defaultPageSize,
46
- r == null ? void 0 : r.pageSize,
47
- e.defaultOrderBy,
48
- r == null ? void 0 : r.orderBy,
49
- (j = e.stylesConfigState) == null ? void 0 : j.defaultValue
50
- ]), [C, I] = v(
51
- () => {
52
- var n, o, a;
53
- const { persistenceType: t, persistenceKey: c } = e.stylesConfigState || {};
54
- if (c && t && typeof window < "u" && (console.log("persistenceType", t), t !== "online")) {
55
- const i = window[t];
56
- try {
57
- const l = i == null ? void 0 : i.getItem(c);
58
- if (l)
59
- return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? y(
60
- JSON.parse(l),
61
- (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue
62
- ) : JSON.parse(l);
63
- } catch (l) {
64
- console.warn(l);
65
- }
24
+ return y({
25
+ size: E,
26
+ zebra: we,
27
+ bordered: he,
28
+ pageSize: xe,
29
+ orderBy: Te
30
+ }, (t = e.stylesConfigState) == null ? void 0 : t.defaultValue);
31
+ }, [e.defaultSize, r == null ? void 0 : r.defaultSize, e.defaultZebra, r == null ? void 0 : r.zebra, e.defaultBordered, r == null ? void 0 : r.bordered, e.defaultPageSize, r == null ? void 0 : r.pageSize, e.defaultOrderBy, r == null ? void 0 : r.orderBy, (j = e.stylesConfigState) == null ? void 0 : j.defaultValue]), [C, I] = v(() => {
32
+ var n, o, a;
33
+ const {
34
+ persistenceType: t,
35
+ persistenceKey: c
36
+ } = e.stylesConfigState || {};
37
+ if (c && t && typeof window < "u" && (console.log("persistenceType", t), t !== "online")) {
38
+ const i = window[t];
39
+ try {
40
+ const l = i == null ? void 0 : i.getItem(c);
41
+ if (l)
42
+ return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? y(JSON.parse(l), (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue) : JSON.parse(l);
43
+ } catch (l) {
44
+ console.warn(l);
66
45
  }
67
- return e.stylesConfig || ((a = e.stylesConfigState) == null ? void 0 : a.value) || V;
68
- },
69
- {
70
- value: ((k = e.stylesConfigState) == null ? void 0 : k.value) || e.stylesConfig,
71
- onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
72
46
  }
73
- );
47
+ return e.stylesConfig || ((a = e.stylesConfigState) == null ? void 0 : a.value) || V;
48
+ }, {
49
+ value: ((k = e.stylesConfigState) == null ? void 0 : k.value) || e.stylesConfig,
50
+ onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
51
+ });
74
52
  g(() => {
75
53
  var n, o;
76
54
  if (!((n = e.stylesConfigState) != null && n.persistenceKey) || !((o = e.stylesConfigState) != null && o.persistenceType) || typeof window > "u")
@@ -88,17 +66,19 @@ function Fe(e) {
88
66
  console.warn(i), H();
89
67
  }
90
68
  }
91
- }, [
92
- (L = e.stylesConfigState) == null ? void 0 : L.persistenceKey,
93
- C,
94
- (U = e.stylesConfigState) == null ? void 0 : U.persistenceType
95
- ]), g(() => {
69
+ }, [(L = e.stylesConfigState) == null ? void 0 : L.persistenceKey, C, (U = e.stylesConfigState) == null ? void 0 : U.persistenceType]), g(() => {
96
70
  var t, c, n;
97
71
  if ((t = e.stylesConfigState) != null && t.persistenceKey && ((c = e.stylesConfigState) == null ? void 0 : c.persistenceType) === "online") {
98
- const { onlineGet: o, persistenceKey: a } = e.stylesConfigState;
72
+ const {
73
+ onlineGet: o,
74
+ persistenceKey: a
75
+ } = e.stylesConfigState;
99
76
  try {
100
77
  (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
101
- const { config: l, global: s } = i ?? {};
78
+ const {
79
+ config: l,
80
+ global: s
81
+ } = i ?? {};
102
82
  I({
103
83
  ...V,
104
84
  ...s,
@@ -110,9 +90,7 @@ function Fe(e) {
110
90
  }
111
91
  }
112
92
  }, []);
113
- const f = S(() => (e.columns ?? []).filter(
114
- (t) => !_e.includes(t) && t.title
115
- ), [e.columns]), h = S(() => {
93
+ const f = S(() => (e.columns ?? []).filter((t) => !_e.includes(t) && t.title), [e.columns]), h = S(() => {
116
94
  var o;
117
95
  const t = {
118
96
  fields: [],
@@ -138,52 +116,43 @@ function Fe(e) {
138
116
  }), t.fields = a;
139
117
  }
140
118
  return (o = e == null ? void 0 : e.exportConfigState) != null && o.defaultValue ? y(t, e.exportConfigState.defaultValue) : t;
141
- }, [f]), [z, x] = v(
142
- () => {
143
- var n, o, a;
144
- const { persistenceType: t, persistenceKey: c } = e.exportConfigState || {};
145
- if (c && t && typeof window < "u" && t !== "online") {
146
- const i = window[t];
147
- try {
148
- const l = i == null ? void 0 : i.getItem(c);
149
- if (l)
150
- return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? y(
151
- JSON.parse(l),
152
- (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
153
- ) : JSON.parse(l);
154
- } catch (l) {
155
- console.warn(l);
156
- }
119
+ }, [f]), [z, x] = v(() => {
120
+ var n, o, a;
121
+ const {
122
+ persistenceType: t,
123
+ persistenceKey: c
124
+ } = e.exportConfigState || {};
125
+ if (c && t && typeof window < "u" && t !== "online") {
126
+ const i = window[t];
127
+ try {
128
+ const l = i == null ? void 0 : i.getItem(c);
129
+ if (l)
130
+ return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? y(JSON.parse(l), (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue) : JSON.parse(l);
131
+ } catch (l) {
132
+ console.warn(l);
157
133
  }
158
- return e.exportConfig || ((a = e.exportConfigState) == null ? void 0 : a.value) || h;
159
- },
160
- {
161
- value: ((A = e.exportConfigState) == null ? void 0 : A.value) || e.exportConfig,
162
- onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
163
134
  }
164
- );
135
+ return e.exportConfig || ((a = e.exportConfigState) == null ? void 0 : a.value) || h;
136
+ }, {
137
+ value: ((A = e.exportConfigState) == null ? void 0 : A.value) || e.exportConfig,
138
+ onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
139
+ });
165
140
  g(() => {
166
141
  var n, o;
167
- const { persistenceType: t, persistenceKey: c } = e.exportConfigState || {};
142
+ const {
143
+ persistenceType: t,
144
+ persistenceKey: c
145
+ } = e.exportConfigState || {};
168
146
  if (c && t && typeof window < "u" && t !== "online") {
169
147
  const a = window[t];
170
148
  try {
171
149
  const i = a == null ? void 0 : a.getItem(c);
172
- i ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(
173
- y(
174
- JSON.parse(i),
175
- (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
176
- )
177
- ) : x(JSON.parse(i)) : x(h);
150
+ i ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(y(JSON.parse(i), (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue)) : x(JSON.parse(i)) : x(h);
178
151
  } catch (i) {
179
152
  console.warn(i);
180
153
  }
181
154
  }
182
- }, [
183
- (Z = e.exportConfigState) == null ? void 0 : Z.persistenceKey,
184
- (_ = e.exportConfigState) == null ? void 0 : _.persistenceType,
185
- h
186
- ]), g(() => {
155
+ }, [(Z = e.exportConfigState) == null ? void 0 : Z.persistenceKey, (_ = e.exportConfigState) == null ? void 0 : _.persistenceType, h]), g(() => {
187
156
  var n, o;
188
157
  if (!((n = e.exportConfigState) != null && n.persistenceKey) || !((o = e.exportConfigState) != null && o.persistenceType) || typeof window > "u")
189
158
  return;
@@ -200,21 +169,18 @@ function Fe(e) {
200
169
  console.warn(i), M();
201
170
  }
202
171
  }
203
- }, [
204
- (F = e.exportConfigState) == null ? void 0 : F.persistenceKey,
205
- z,
206
- (W = e.exportConfigState) == null ? void 0 : W.persistenceType
207
- ]), g(() => {
172
+ }, [(F = e.exportConfigState) == null ? void 0 : F.persistenceKey, z, (W = e.exportConfigState) == null ? void 0 : W.persistenceType]), g(() => {
208
173
  var t, c, n;
209
174
  if ((t = e.exportConfigState) != null && t.persistenceKey && ((c = e.exportConfigState) == null ? void 0 : c.persistenceType) === "online") {
210
- const { onlineGet: o, persistenceKey: a } = e.exportConfigState;
175
+ const {
176
+ onlineGet: o,
177
+ persistenceKey: a
178
+ } = e.exportConfigState;
211
179
  try {
212
180
  (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
213
181
  var s;
214
182
  const l = y(i ?? {}, (s = e == null ? void 0 : e.exportConfigState) == null ? void 0 : s.value);
215
- x(
216
- Object.keys(l).length ? l : h
217
- );
183
+ x(Object.keys(l).length ? l : h);
218
184
  });
219
185
  } catch (i) {
220
186
  console.warn(i);
@@ -225,9 +191,22 @@ function Fe(e) {
225
191
  var i;
226
192
  if ((i = e == null ? void 0 : e.columnsState) != null && i.defaultValue)
227
193
  return e.columnsState.defaultValue;
228
- const t = f.filter((l) => l.fixed === "left").map((l, s) => ({ ...l, order: s })), c = f.filter((l) => l.fixed === "right").map((l, s) => ({ ...l, order: s })), n = f.filter((l) => !["left", "right"].includes(l.fixed)).map((l, s) => ({ ...l, order: s })), o = [...t, ...n, ...c], a = {};
194
+ const t = f.filter((l) => l.fixed === "left").map((l, s) => ({
195
+ ...l,
196
+ order: s
197
+ })), c = f.filter((l) => l.fixed === "right").map((l, s) => ({
198
+ ...l,
199
+ order: s
200
+ })), n = f.filter((l) => !["left", "right"].includes(l.fixed)).map((l, s) => ({
201
+ ...l,
202
+ order: s
203
+ })), o = [...t, ...n, ...c], a = {};
229
204
  return o.forEach((l, s) => {
230
- const { order: He, fixed: Me, disabled: Pe } = l, se = B(l, s);
205
+ const {
206
+ order: He,
207
+ fixed: Me,
208
+ disabled: Pe
209
+ } = l, se = B(l, s);
231
210
  se && (a[se] = {
232
211
  show: !0,
233
212
  order: He,
@@ -235,54 +214,48 @@ function Fe(e) {
235
214
  disabled: Pe
236
215
  });
237
216
  }), a;
238
- }, [f]), [Ke, Oe] = w(!1), [d, m] = v(
239
- () => {
240
- var n, o, a, i;
241
- const { persistenceType: t, persistenceKey: c } = e.columnsState || {};
242
- if (c && t && typeof window < "u" && t !== "online") {
243
- const l = window[t];
244
- try {
245
- const s = l == null ? void 0 : l.getItem(c);
246
- if (s)
247
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? y(
248
- JSON.parse(s),
249
- (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
250
- ) : JSON.parse(s);
251
- } catch (s) {
252
- console.warn(s);
253
- }
217
+ }, [f]), [Ke, Oe] = w(!1), [d, m] = v(() => {
218
+ var n, o, a, i;
219
+ const {
220
+ persistenceType: t,
221
+ persistenceKey: c
222
+ } = e.columnsState || {};
223
+ if (c && t && typeof window < "u" && t !== "online") {
224
+ const l = window[t];
225
+ try {
226
+ const s = l == null ? void 0 : l.getItem(c);
227
+ if (s)
228
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? y(JSON.parse(s), (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue) : JSON.parse(s);
229
+ } catch (s) {
230
+ console.warn(s);
254
231
  }
255
- return e.columnsStateMap || ((a = e.columnsState) == null ? void 0 : a.value) || ((i = e.columnsState) == null ? void 0 : i.defaultValue) || {};
256
- },
257
- {
258
- value: ((X = e.columnsState) == null ? void 0 : X.value) || e.columnsStateMap,
259
- onChange: ((q = e.columnsState) == null ? void 0 : q.onChange) || e.onColumnsStateChange
260
232
  }
261
- );
233
+ return e.columnsStateMap || ((a = e.columnsState) == null ? void 0 : a.value) || ((i = e.columnsState) == null ? void 0 : i.defaultValue) || {};
234
+ }, {
235
+ value: ((X = e.columnsState) == null ? void 0 : X.value) || e.columnsStateMap,
236
+ onChange: ((q = e.columnsState) == null ? void 0 : q.onChange) || e.onColumnsStateChange
237
+ });
262
238
  g(() => {
263
239
  var n, o;
264
- const { persistenceType: t, persistenceKey: c } = e.columnsState || {};
240
+ const {
241
+ persistenceType: t,
242
+ persistenceKey: c
243
+ } = e.columnsState || {};
265
244
  if (c && t && typeof window < "u" && t !== "online") {
266
245
  const a = window[t];
267
246
  try {
268
247
  const i = a == null ? void 0 : a.getItem(c);
269
- i ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(
270
- y(
271
- JSON.parse(i),
272
- (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
273
- )
274
- ) : m(JSON.parse(i)) : m(u);
248
+ i ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(y(JSON.parse(i), (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue)) : m(JSON.parse(i)) : m(u);
275
249
  } catch (i) {
276
250
  console.warn(i);
277
251
  }
278
252
  }
279
- }, [
280
- (Q = e.columnsState) == null ? void 0 : Q.persistenceKey,
281
- (Y = e.columnsState) == null ? void 0 : Y.persistenceType,
282
- u
283
- ]);
253
+ }, [(Q = e.columnsState) == null ? void 0 : Q.persistenceKey, (Y = e.columnsState) == null ? void 0 : Y.persistenceType, u]);
284
254
  const J = N(() => {
285
- const { persistenceType: t, persistenceKey: c } = e.columnsState || {};
255
+ const {
256
+ persistenceType: t,
257
+ persistenceKey: c
258
+ } = e.columnsState || {};
286
259
  if (!c || !t || typeof window > "u")
287
260
  return;
288
261
  const n = window[t];
@@ -292,7 +265,10 @@ function Fe(e) {
292
265
  console.warn(o);
293
266
  }
294
267
  }, [e.columnsState]), H = N(() => {
295
- const { persistenceType: t, persistenceKey: c } = e.stylesConfigState || {};
268
+ const {
269
+ persistenceType: t,
270
+ persistenceKey: c
271
+ } = e.stylesConfigState || {};
296
272
  if (!c || !t || typeof window > "u")
297
273
  return;
298
274
  const n = window[t];
@@ -302,7 +278,10 @@ function Fe(e) {
302
278
  console.warn(o);
303
279
  }
304
280
  }, [e.stylesConfigState]), M = N(() => {
305
- const { persistenceType: t, persistenceKey: c } = e.exportConfigState || {};
281
+ const {
282
+ persistenceType: t,
283
+ persistenceKey: c
284
+ } = e.exportConfigState || {};
306
285
  if (!c || !t || typeof window > "u")
307
286
  return;
308
287
  const n = window[t];
@@ -329,14 +308,13 @@ function Fe(e) {
329
308
  console.warn(i), J();
330
309
  }
331
310
  }
332
- }, [
333
- ($ = e.columnsState) == null ? void 0 : $.persistenceKey,
334
- d,
335
- (G = e.columnsState) == null ? void 0 : G.persistenceType
336
- ]), g(() => {
311
+ }, [($ = e.columnsState) == null ? void 0 : $.persistenceKey, d, (G = e.columnsState) == null ? void 0 : G.persistenceType]), g(() => {
337
312
  var t, c, n;
338
313
  if ((t = e.columnsState) != null && t.persistenceKey && ((c = e.columnsState) == null ? void 0 : c.persistenceType) === "online") {
339
- const { onlineGet: o, persistenceKey: a } = e.columnsState;
314
+ const {
315
+ onlineGet: o,
316
+ persistenceKey: a
317
+ } = e.columnsState;
340
318
  try {
341
319
  (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
342
320
  var s;
@@ -365,11 +343,7 @@ function Fe(e) {
365
343
  b(!1), O(0);
366
344
  }, Je = () => {
367
345
  var t, c, n;
368
- (n = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || n.call(
369
- t,
370
- (c = e.columnsState) == null ? void 0 : c.persistenceKey,
371
- d
372
- ), b(!1), O(0);
346
+ (n = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || n.call(t, (c = e.columnsState) == null ? void 0 : c.persistenceKey, d), b(!1), O(0);
373
347
  }, P = {
374
348
  loading: e.loading ?? !1,
375
349
  dataSource: e.dataSource,
@@ -20,7 +20,13 @@ const I = (e, r) => ((t, i) => t.map((d) => {
20
20
  return e.forEach(n), r;
21
21
  }, g = (e) => (r, n) => {
22
22
  var s, l, x, u;
23
- const { fixed: t, index: i } = r, { fixed: d, index: f } = n;
23
+ const {
24
+ fixed: t,
25
+ index: i
26
+ } = r, {
27
+ fixed: d,
28
+ index: f
29
+ } = n;
24
30
  if (t === "left" && d !== "left" || d === "right" && t !== "right")
25
31
  return -2;
26
32
  if (d === "left" && t !== "left" || t === "right" && d !== "right")
@@ -29,7 +35,10 @@ const I = (e, r) => ((t, i) => t.map((d) => {
29
35
  return (s = e[o]) != null && s.order || (l = e[a]) != null && l.order ? (((x = e[o]) == null ? void 0 : x.order) || 0) - (((u = e[a]) == null ? void 0 : u.order) || 0) : (r.index || 0) - (n.index || 0);
30
36
  };
31
37
  function K(e, r, n) {
32
- return y.mapValues(e, (t) => ({ ...t, [r]: n }));
38
+ return y.mapValues(e, (t) => ({
39
+ ...t,
40
+ [r]: n
41
+ }));
33
42
  }
34
43
  const p = (e, r) => {
35
44
  let n = {};