bitz-react-admin-ui 2.0.7 → 2.0.8

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 (218) 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/IconCuowu.mjs +8 -2
  4. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  5. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  6. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  11. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  12. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  13. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  14. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  16. package/dist/assets/iconfont/IconMore.mjs +26 -4
  17. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  18. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  19. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  20. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  21. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  22. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  23. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  25. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +41 -8
  32. package/dist/components/BitzAddressBook/index.mjs +122 -35
  33. package/dist/components/BitzAppPage/index.mjs +18 -4
  34. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +23 -9
  37. package/dist/components/BitzCalendar/index.mjs +52 -19
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  39. package/dist/components/BitzCascader/index.mjs +6 -2
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  42. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  43. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +11 -1
  47. package/dist/components/BitzDrawer/index.mjs +17 -2
  48. package/dist/components/BitzEmpty/index.mjs +6 -2
  49. package/dist/components/BitzException/index.mjs +6 -1
  50. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  51. package/dist/components/BitzFluentInput/index.mjs +23 -4
  52. package/dist/components/BitzFluentSelect/index.mjs +24 -5
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  62. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  63. package/dist/components/BitzFullScreen/index.mjs +9 -6
  64. package/dist/components/BitzHighlight/Child.mjs +23 -9
  65. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  66. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  67. package/dist/components/BitzHighlight/style.mjs +4 -1
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +12 -5
  70. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  71. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  72. package/dist/components/BitzList/List.mjs +17 -3
  73. package/dist/components/BitzList/LoadMore.mjs +29 -20
  74. package/dist/components/BitzLoadMore/index.mjs +34 -14
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  76. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +24 -11
  79. package/dist/components/BitzNoData/index.mjs +4 -1
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  82. package/dist/components/BitzPageContainer/index.mjs +107 -46
  83. package/dist/components/BitzPageHeader/index.mjs +89 -21
  84. package/dist/components/BitzPagination/index.mjs +62 -14
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  87. package/dist/components/BitzQRCode/index.mjs +6 -1
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  91. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  92. package/dist/components/BitzRefresh/index.mjs +5 -1
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +31 -1
  99. package/dist/components/BitzSwitch/index.mjs +7 -2
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  105. package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
  106. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  107. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  108. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  112. package/dist/components/BitzTable/Store/index.mjs +68 -45
  113. package/dist/components/BitzTable/Store/utils/index.mjs +30 -14
  114. package/dist/components/BitzTable/Table/index.mjs +305 -145
  115. package/dist/components/BitzTable/Table/style.mjs +10 -1
  116. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +10 -0
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +100 -0
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +10 -0
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +103 -0
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +13 -0
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +88 -0
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +14 -0
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +261 -0
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +6 -0
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +17 -0
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.d.ts +8 -0
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +13 -0
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +10 -0
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +163 -0
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +11 -0
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +44 -0
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +2 -0
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +249 -0
  135. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
  136. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +64 -19
  139. package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
  140. package/dist/components/BitzTable/ToolBar/index.mjs +6 -4
  141. package/dist/components/BitzTableOperations/index.mjs +13 -3
  142. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  143. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  144. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
  145. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
  146. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  147. package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
  148. package/dist/components/BitzTableSelect/index.mjs +61 -13
  149. package/dist/components/BitzTag/index.mjs +1 -1
  150. package/dist/components/BitzTheme/index.mjs +6 -6
  151. package/dist/components/BitzTimeline/index.mjs +11 -1
  152. package/dist/components/BitzTimer/Form.mjs +32 -11
  153. package/dist/components/BitzTimer/Timer.mjs +76 -38
  154. package/dist/components/BitzTimer/index.mjs +66 -43
  155. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  156. package/dist/components/BitzToast/index.mjs +1 -1
  157. package/dist/components/BitzTree/index.mjs +4 -1
  158. package/dist/components/BitzUeEditor/index.mjs +5 -5
  159. package/dist/components/BitzUpload/index.mjs +81 -43
  160. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  161. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  162. package/dist/hooks/use-event-listener.mjs +11 -2
  163. package/dist/hooks/use-lock-fn.mjs +13 -10
  164. package/dist/hooks/use-scroll-parent.mjs +16 -14
  165. package/dist/hooks/useEvent.mjs +7 -4
  166. package/dist/hooks/useMergedState.mjs +11 -11
  167. package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
  168. package/dist/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +15 -0
  169. package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
  170. package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
  171. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
  172. package/dist/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +5 -0
  173. package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
  174. package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
  175. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
  176. package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2179 -0
  177. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
  178. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
  179. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
  180. package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
  181. package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
  182. package/dist/node_modules/lodash-es/_Set.mjs +7 -0
  183. package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
  184. package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
  185. package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
  186. package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
  187. package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
  188. package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
  189. package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  190. package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  191. package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  192. package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
  193. package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
  194. package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
  195. package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
  196. package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
  197. package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  198. package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
  199. package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
  200. package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
  201. package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  202. package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
  203. package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
  204. package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
  205. package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
  206. package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
  207. package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
  208. package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  209. package/dist/node_modules/lodash-es/_parent.mjs +8 -0
  210. package/dist/node_modules/lodash-es/isMap.mjs +8 -0
  211. package/dist/node_modules/lodash-es/isSet.mjs +8 -0
  212. package/dist/node_modules/lodash-es/keys.mjs +9 -0
  213. package/dist/node_modules/lodash-es/last.mjs +7 -0
  214. package/dist/node_modules/lodash-es/omit.mjs +24 -0
  215. package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
  216. package/dist/style.css +1 -1
  217. package/dist/utils/create.mjs +7 -1
  218. package/package.json +1 -1
@@ -11,24 +11,30 @@ function ye(e) {
11
11
  size: b,
12
12
  zebra: $,
13
13
  bordered: ee
14
- }, [T, x] = Q(() => {
15
- var n, a, l, s;
16
- const { persistenceType: t, persistenceKey: c, onlineGet: i } = e.stylesConfigState || {};
17
- if (c && t && typeof window < "u" && t !== "online") {
18
- const o = window[t];
19
- try {
20
- const u = o == null ? void 0 : o.getItem(c);
21
- if (u)
22
- return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? g(JSON.parse(u), (a = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : a.defaultValue) : JSON.parse(u);
23
- } catch (u) {
24
- console.warn(u);
14
+ }, [T, x] = Q(
15
+ () => {
16
+ var n, a, l, s;
17
+ const { persistenceType: t, persistenceKey: c, onlineGet: i } = e.stylesConfigState || {};
18
+ if (c && t && typeof window < "u" && t !== "online") {
19
+ const o = window[t];
20
+ try {
21
+ const u = o == null ? void 0 : o.getItem(c);
22
+ if (u)
23
+ return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? g(
24
+ JSON.parse(u),
25
+ (a = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : a.defaultValue
26
+ ) : JSON.parse(u);
27
+ } catch (u) {
28
+ console.warn(u);
29
+ }
25
30
  }
31
+ return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || ((s = e.stylesConfigState) == null ? void 0 : s.defaultValue) || K;
32
+ },
33
+ {
34
+ value: ((O = e.stylesConfigState) == null ? void 0 : O.value) || e.stylesConfig,
35
+ onChange: ((J = e.stylesConfigState) == null ? void 0 : J.onChange) || e.onStylesConfigChange
26
36
  }
27
- return e.stylesConfig || ((l = e.stylesConfigState) == null ? void 0 : l.value) || ((s = e.stylesConfigState) == null ? void 0 : s.defaultValue) || K;
28
- }, {
29
- value: ((O = e.stylesConfigState) == null ? void 0 : O.value) || e.stylesConfig,
30
- onChange: ((J = e.stylesConfigState) == null ? void 0 : J.onChange) || e.onStylesConfigChange
31
- });
37
+ );
32
38
  m(() => {
33
39
  var i, n;
34
40
  if (!((i = e.stylesConfigState) != null && i.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
@@ -58,7 +64,9 @@ function ye(e) {
58
64
  (i = n == null ? void 0 : n(a)) == null || i.then((l) => {
59
65
  var o, u;
60
66
  const s = g(l, (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.value);
61
- x((u = Object.keys(s ?? {})) != null && u.length ? s ?? {} : K);
67
+ x(
68
+ (u = Object.keys(s ?? {})) != null && u.length ? s ?? {} : K
69
+ );
62
70
  });
63
71
  } catch (l) {
64
72
  console.warn(l);
@@ -70,33 +78,41 @@ function ye(e) {
70
78
  if ((l = e == null ? void 0 : e.columnsState) != null && l.defaultValue)
71
79
  return e.columnsState.defaultValue;
72
80
  const t = ((o = (s = e.columns) == null ? void 0 : s.filter((f) => f.fixed === "left")) == null ? void 0 : o.map((f, y) => ({ ...f, order: y }))) ?? [], c = ((A = (u = e.columns) == null ? void 0 : u.filter((f) => f.fixed === "right")) == null ? void 0 : A.map((f, y) => ({ ...f, order: y }))) ?? [], i = ((H = (F = e.columns) == null ? void 0 : F.filter((f) => !["left", "right"].includes(f.fixed))) == null ? void 0 : H.map((f, y) => ({ ...f, order: y }))) ?? [], n = [...t, ...i, ...c], a = {};
73
- return n == null || n.forEach(({ key: f, dataIndex: y, order: te, fixed: ne, disabled: ce }, ie) => {
74
- const L = oe(f ?? y, ie);
75
- L && (a[L] = {
76
- show: !0,
77
- order: te,
78
- fixed: ne,
79
- disabled: ce
80
- });
81
- }), a;
82
- }, [e.columns]), [w, S] = Q(() => {
83
- var n, a, l, s;
84
- const { persistenceType: t, persistenceKey: c, onlineGet: i } = e.columnsState || {};
85
- if (c && t && typeof window < "u" && t !== "online") {
86
- const o = window[t];
87
- try {
88
- const u = o == null ? void 0 : o.getItem(c);
89
- if (u)
90
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? g(JSON.parse(u), (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue) : JSON.parse(u);
91
- } catch (u) {
92
- console.warn(u);
81
+ return n == null || n.forEach(
82
+ ({ key: f, dataIndex: y, order: te, fixed: ne, disabled: ce }, ie) => {
83
+ const L = oe(f ?? y, ie);
84
+ L && (a[L] = {
85
+ show: !0,
86
+ order: te,
87
+ fixed: ne,
88
+ disabled: ce
89
+ });
93
90
  }
91
+ ), a;
92
+ }, [e.columns]), [w, S] = Q(
93
+ () => {
94
+ var n, a, l, s;
95
+ const { persistenceType: t, persistenceKey: c, onlineGet: i } = e.columnsState || {};
96
+ if (c && t && typeof window < "u" && t !== "online") {
97
+ const o = window[t];
98
+ try {
99
+ const u = o == null ? void 0 : o.getItem(c);
100
+ if (u)
101
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? g(
102
+ JSON.parse(u),
103
+ (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue
104
+ ) : JSON.parse(u);
105
+ } catch (u) {
106
+ console.warn(u);
107
+ }
108
+ }
109
+ return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((s = e.columnsState) == null ? void 0 : s.defaultValue) || d;
110
+ },
111
+ {
112
+ value: ((j = e.columnsState) == null ? void 0 : j.value) || e.columnsStateMap,
113
+ onChange: ((I = e.columnsState) == null ? void 0 : I.onChange) || e.onColumnsStateChange
94
114
  }
95
- return e.columnsStateMap || ((l = e.columnsState) == null ? void 0 : l.value) || ((s = e.columnsState) == null ? void 0 : s.defaultValue) || d;
96
- }, {
97
- value: ((j = e.columnsState) == null ? void 0 : j.value) || e.columnsStateMap,
98
- onChange: ((I = e.columnsState) == null ? void 0 : I.onChange) || e.onColumnsStateChange
99
- });
115
+ );
100
116
  m(() => {
101
117
  var n, a;
102
118
  const { persistenceType: t, persistenceKey: c, onlineGet: i } = e.columnsState || {};
@@ -104,7 +120,12 @@ function ye(e) {
104
120
  const l = window[t];
105
121
  try {
106
122
  const s = l == null ? void 0 : l.getItem(c);
107
- s ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? S(g(JSON.parse(s), (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue)) : S(JSON.parse(s)) : S(d);
123
+ s ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? S(
124
+ g(
125
+ JSON.parse(s),
126
+ (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue
127
+ )
128
+ ) : S(JSON.parse(s)) : S(d);
108
129
  } catch (s) {
109
130
  console.warn(s);
110
131
  }
@@ -164,7 +185,9 @@ function ye(e) {
164
185
  (i = n == null ? void 0 : n(a)) == null || i.then((l) => {
165
186
  var o, u;
166
187
  const s = g(l, (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.value);
167
- S((u = Object.keys(s ?? {})) != null && u.length ? s ?? {} : d);
188
+ S(
189
+ (u = Object.keys(s ?? {})) != null && u.length ? s ?? {} : d
190
+ );
168
191
  });
169
192
  } catch (l) {
170
193
  console.warn(l);
@@ -203,7 +226,7 @@ function ye(e) {
203
226
  }
204
227
  const de = ae({}), Te = (e) => {
205
228
  const C = ye(e.initValue);
206
- return le.jsx(de.Provider, { value: C, children: e.children });
229
+ return /* @__PURE__ */ le.jsx(de.Provider, { value: C, children: e.children });
207
230
  };
208
231
  export {
209
232
  de as BitzTableContext,
@@ -1,25 +1,41 @@
1
- const g = (n, e) => {
2
- let o = 0, t = 0;
1
+ const a = (r, f) => {
2
+ let i = 0, t = 0;
3
3
  return {
4
- filterColumns: ((s, f) => s.map((r) => {
5
- const i = h((r == null ? void 0 : r.key) || (r == null ? void 0 : r.dataIndex), r.index), d = f[i];
6
- return d && d.show === !1 ? (r.width ? o += r.width : t += 1, !1) : { ...r, ...d };
7
- }))(n, e).filter(Boolean),
8
- width: o,
4
+ filterColumns: ((o, s) => o.map((e) => {
5
+ const n = h((e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex), e.index), d = s[n];
6
+ return d && d.show === !1 ? (e.width ? i += e.width : t += 1, !1) : { ...e, ...d };
7
+ }))(r, f).filter(Boolean),
8
+ width: i,
9
9
  autoWidthColLength: t
10
10
  };
11
- }, h = (n, e) => n ? Array.isArray(n) ? n.join("-") : n.toString() : `${e}`, a = (n) => (e, o) => {
12
- var i, d, x, c;
13
- const { fixed: t, index: u } = e, { fixed: l, index: s } = o;
11
+ }, h = (r, f) => r ? Array.isArray(r) ? r.join("-") : r.toString() : `${f}`, y = (r) => (f, i) => {
12
+ var n, d, c, x;
13
+ const { fixed: t, index: u } = f, { fixed: l, index: o } = i;
14
14
  if (t === "left" && l !== "left" || l === "right" && t !== "right")
15
15
  return -2;
16
16
  if (l === "left" && t !== "left" || t === "right" && l !== "right")
17
17
  return 2;
18
- const f = e.key || `${u}`, r = o.key || `${s}`;
19
- return (i = n[f]) != null && i.order || (d = n[r]) != null && d.order ? (((x = n[f]) == null ? void 0 : x.order) || 0) - (((c = n[r]) == null ? void 0 : c.order) || 0) : (e.index || 0) - (o.index || 0);
18
+ const s = f.key || `${u}`, e = i.key || `${o}`;
19
+ return (n = r[s]) != null && n.order || (d = r[e]) != null && d.order ? (((c = r[s]) == null ? void 0 : c.order) || 0) - (((x = r[e]) == null ? void 0 : x.order) || 0) : (f.index || 0) - (i.index || 0);
20
20
  };
21
+ function g(r, f, i) {
22
+ const t = {};
23
+ let u = "";
24
+ const l = (o, s, e) => {
25
+ for (const n in o)
26
+ if (o.hasOwnProperty(n) && (typeof o[n] == "object" && o[n] !== null && (u = n, t[n] = { ...o[n] }, l(o[n], s, e)), n === s)) {
27
+ const d = t[u];
28
+ t[u] = {
29
+ ...d,
30
+ [s]: d.disabled || d.fixed ? !0 : e
31
+ }, u = "";
32
+ }
33
+ };
34
+ return l(r, f, i), t;
35
+ }
21
36
  export {
22
- a as columnSort,
37
+ y as columnSort,
23
38
  h as genColumnKey,
24
- g as loopFilter
39
+ a as loopFilter,
40
+ g as updateNestedObject
25
41
  };