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
@@ -1,36 +1,60 @@
1
1
  import { j as e } from "../../../../../node_modules/react/jsx-runtime.mjs";
2
- import B from "../../../../../assets/iconfont/IconKuansongde.mjs";
3
- import N from "../../../../../assets/iconfont/IconTekuansong.mjs";
4
- import W from "../../../../../assets/iconfont/IconJincoude.mjs";
5
- import E from "../../../../../assets/iconfont/IconZhongdengde.mjs";
6
- import A from "../../../../../assets/iconfont/IconTejincou.mjs";
7
- import V from "../../../../../assets/iconfont/IconWufengexian.mjs";
8
- import $ from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
9
- import D from "../../../../../assets/iconfont/IconHangfengexian.mjs";
10
- import J from "../../../../../assets/iconfont/IconLiefengexian.mjs";
11
- import K from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
12
- import L from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
13
- import { BitzConfigContext as M } from "../../../../BitzConfigProvider/context.mjs";
14
- import { BitzTableContext as O } from "../../../Store/index.mjs";
2
+ import W from "../../../../../assets/iconfont/IconKuansongde.mjs";
3
+ import E from "../../../../../assets/iconfont/IconTekuansong.mjs";
4
+ import A from "../../../../../assets/iconfont/IconJincoude.mjs";
5
+ import J from "../../../../../assets/iconfont/IconZhongdengde.mjs";
6
+ import _ from "../../../../../assets/iconfont/IconTejincou.mjs";
7
+ import M from "../../../../../assets/iconfont/IconWufengexian.mjs";
8
+ import O from "../../../../../assets/iconfont/IconHangliefengexian.mjs";
9
+ import Q from "../../../../../assets/iconfont/IconHangfengexian.mjs";
10
+ import Z from "../../../../../assets/iconfont/IconLiefengexian.mjs";
11
+ import D from "../../../../../assets/iconfont/IconYoubanmawentianchong.mjs";
12
+ import K from "../../../../../assets/iconfont/IconWubanmawentianchong.mjs";
13
+ import { BitzConfigContext as L } from "../../../../BitzConfigProvider/context.mjs";
14
+ import { BitzTableContext as V } from "../../../Store/index.mjs";
15
15
  import Y from "../../../../BitzTheme/index.mjs";
16
- import { RedoOutlined as Z } from "@ant-design/icons";
17
- import { Form as i, Radio as u, Row as q, Col as S, Button as Q } from "antd";
18
- import U from "../../../../../node_modules/classnames/index.mjs";
19
- import { forwardRef as X, useRef as P, useEffect as h, useMemo as _, useContext as j, useImperativeHandle as ee, useState as oe, memo as re } from "react";
20
- import { BitzToolBarContext as le } from "../../Wrapper/context.mjs";
21
- import r from "./RadioCard.mjs";
22
- import se from "./ScopeSwitch.mjs";
23
- const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
24
- ...n,
25
- label: `${n.label}(默认)`
26
- } : n), ne = X(({ display: s, postHeight: f }, n) => {
27
- var g, z;
28
- const { token: o } = Y.useToken(), b = P(null);
29
- h(() => {
30
- var l;
31
- f((l = b.current) == null ? void 0 : l.clientHeight);
16
+ import { RedoOutlined as q } from "@ant-design/icons";
17
+ import { Form as n, Radio as u, Row as $, Col as S, Button as U } from "antd";
18
+ import X from "../../../../../node_modules/classnames/index.mjs";
19
+ import { forwardRef as ee, useRef as w, useEffect as j, useMemo as oe, useContext as b, useImperativeHandle as re, useState as le, memo as ie } from "react";
20
+ import { BitzToolBarContext as se } from "../../Wrapper/context.mjs";
21
+ import l from "./RadioCard.mjs";
22
+ import ne from "./ScopeSwitch.mjs";
23
+ import { useLingui as C } from "@lingui/react";
24
+ const te = ({
25
+ defaultSize: s,
26
+ items: f
27
+ }) => {
28
+ const {
29
+ _: x
30
+ } = C();
31
+ return f.map((o) => o.key === s ? {
32
+ ...o,
33
+ label: x(
34
+ /*i18n*/
35
+ {
36
+ id: "liwwaI",
37
+ values: {
38
+ 0: o.label
39
+ }
40
+ }
41
+ )
42
+ } : o);
43
+ }, ae = ee(({
44
+ display: s,
45
+ postHeight: f
46
+ }, x) => {
47
+ var z, v;
48
+ const {
49
+ _: o
50
+ } = C(), {
51
+ token: r
52
+ } = Y.useToken(), y = w(null);
53
+ j(() => {
54
+ var i;
55
+ f((i = y.current) == null ? void 0 : i.clientHeight);
32
56
  }, []);
33
- const C = _(() => ({
57
+ const R = oe(() => ({
34
58
  display: "flex",
35
59
  width: s ? "100%" : 0,
36
60
  pointerEvents: s ? "auto" : "none",
@@ -41,160 +65,199 @@ const ie = ({ defaultSize: s, items: f }) => f.map((n) => n.key === s ? {
41
65
  left: 0,
42
66
  right: 0
43
67
  }
44
- }), [s]), w = {
68
+ }), [s]), H = {
45
69
  size: 26,
46
- color: o.colorPrimary
47
- }, [a] = i.useForm(), H = (g = j(M).Table) == null ? void 0 : g.stylesScope, { defaultTableSize: R, stylesConfig: y, defaultTableStylesConfig: x } = j(O), t = (z = j(le).config) == null ? void 0 : z.stylesConfig, c = (l, m) => {
48
- var v, I;
70
+ color: r.colorPrimary
71
+ }, [a] = n.useForm(), k = (z = b(L).Table) == null ? void 0 : z.stylesScope, {
72
+ defaultTableSize: B,
73
+ stylesConfig: g,
74
+ defaultTableStylesConfig: p
75
+ } = b(V), t = (v = b(se).config) == null ? void 0 : v.stylesConfig, c = (i, m) => {
76
+ var P, I;
49
77
  let d = m;
50
- return (v = t == null ? void 0 : t[l]) != null && v.disabled && (d = U(m, "disabledControl")), {
51
- disabled: (I = t == null ? void 0 : t[l]) == null ? void 0 : I.disabled,
78
+ return (P = t == null ? void 0 : t[i]) != null && P.disabled && (d = X(m, "disabledControl")), {
79
+ disabled: (I = t == null ? void 0 : t[i]) == null ? void 0 : I.disabled,
52
80
  className: d
53
81
  };
54
82
  };
55
- h(() => {
83
+ j(() => {
56
84
  a.setFieldsValue({
57
- ...x,
58
- ...y,
59
- stylesScope: H === "global"
85
+ ...p,
86
+ ...g,
87
+ stylesScope: k === "global"
60
88
  });
61
- }, [y, x]);
62
- const k = () => {
89
+ }, [g, p]);
90
+ const F = () => {
63
91
  a.setFieldsValue({
64
- ...x,
92
+ ...p,
65
93
  stylesScope: !1
66
94
  });
67
- }, F = ie({
68
- defaultSize: R,
69
- items: [
70
- {
71
- key: "xs",
72
- label: "特紧凑",
73
- icon: A
74
- },
95
+ }, G = te({
96
+ defaultSize: B,
97
+ items: [{
98
+ key: "xs",
99
+ label: o(
100
+ /*i18n*/
101
+ {
102
+ id: "iZ4WSd"
103
+ }
104
+ ),
105
+ icon: _
106
+ }, {
107
+ key: "sm",
108
+ label: o(
109
+ /*i18n*/
110
+ {
111
+ id: "W1ol+r"
112
+ }
113
+ ),
114
+ icon: A
115
+ }, {
116
+ key: "md",
117
+ label: o(
118
+ /*i18n*/
119
+ {
120
+ id: "iuR5P4"
121
+ }
122
+ ),
123
+ icon: J
124
+ }, {
125
+ key: "lg",
126
+ label: o(
127
+ /*i18n*/
128
+ {
129
+ id: "kKoOyf"
130
+ }
131
+ ),
132
+ icon: W
133
+ }, {
134
+ key: "xl",
135
+ label: o(
136
+ /*i18n*/
137
+ {
138
+ id: "6QWPkM"
139
+ }
140
+ ),
141
+ icon: E
142
+ }]
143
+ });
144
+ re(x, () => ({
145
+ getFormInstance: () => a
146
+ }));
147
+ const h = w(null), [N, T] = le("auto");
148
+ return j(() => {
149
+ h && T(h.current.clientWidth + 10);
150
+ }, []), /* @__PURE__ */ e.jsx("div", { style: R, ref: y, children: /* @__PURE__ */ e.jsxs(n, { form: a, style: {
151
+ width: "100%"
152
+ }, labelCol: {
153
+ span: 3
154
+ }, labelAlign: "left", colon: !1, className: "stylesConfigFormContent", children: [
155
+ /* @__PURE__ */ e.jsx(n.Item, { label: o(
156
+ /*i18n*/
75
157
  {
76
- key: "sm",
77
- label: "紧凑",
78
- icon: W
79
- },
158
+ id: "a4wCNJ"
159
+ }
160
+ ), name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: G.map(({
161
+ key: i,
162
+ label: m,
163
+ icon: d
164
+ }) => /* @__PURE__ */ e.jsx(l, { label: m, value: i, children: /* @__PURE__ */ e.jsx(d, { ...H }) }, i)) }) }),
165
+ /* @__PURE__ */ e.jsx(n.Item, { label: o(
166
+ /*i18n*/
80
167
  {
81
- key: "md",
82
- label: "中等",
83
- icon: E
84
- },
168
+ id: "/w3zDE"
169
+ }
170
+ ), name: "bordered", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("bordered", "splitBorderRadioGroup"), children: [
171
+ /* @__PURE__ */ e.jsx(l, { label: o(
172
+ /*i18n*/
173
+ {
174
+ id: "EseB3J"
175
+ }
176
+ ), value: "hide", children: /* @__PURE__ */ e.jsx(M, { size: 26, color: r.colorPrimaryHover }) }),
177
+ /* @__PURE__ */ e.jsx(l, { label: o(
178
+ /*i18n*/
179
+ {
180
+ id: "nnvA12"
181
+ }
182
+ ), value: "row", children: /* @__PURE__ */ e.jsx(Q, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) }),
183
+ /* @__PURE__ */ e.jsx(l, { label: o(
184
+ /*i18n*/
185
+ {
186
+ id: "iM6yAp"
187
+ }
188
+ ), value: "column", children: /* @__PURE__ */ e.jsx(Z, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) }),
189
+ /* @__PURE__ */ e.jsx(l, { label: o(
190
+ /*i18n*/
191
+ {
192
+ id: "PbzBaa"
193
+ }
194
+ ), value: "row-column", children: /* @__PURE__ */ e.jsx(O, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary, r.colorPrimary, r.colorPrimaryHover] }) })
195
+ ] }) }),
196
+ /* @__PURE__ */ e.jsx(n.Item, { label: o(
197
+ /*i18n*/
85
198
  {
86
- key: "lg",
87
- label: "宽松",
88
- icon: B
89
- },
199
+ id: "l5izxf"
200
+ }
201
+ ), name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("zebra", "zebraRadioGroup"), children: [
202
+ /* @__PURE__ */ e.jsx(l, { label: o(
203
+ /*i18n*/
204
+ {
205
+ id: "B0/8Pd"
206
+ }
207
+ ), value: !0, children: /* @__PURE__ */ e.jsx(D, { size: 26, color: [r.colorPrimaryHover, r.colorPrimary] }) }),
208
+ /* @__PURE__ */ e.jsx(l, { label: o(
209
+ /*i18n*/
210
+ {
211
+ id: "lQCj9N"
212
+ }
213
+ ), value: !1, children: /* @__PURE__ */ e.jsx(K, { size: 26, color: r.colorPrimaryHover }) })
214
+ ] }) }),
215
+ /* @__PURE__ */ e.jsx(n.Item, { label: o(
216
+ /*i18n*/
90
217
  {
91
- key: "xl",
92
- label: "特宽松",
93
- icon: N
218
+ id: "64GRJc"
94
219
  }
95
- ]
96
- });
97
- ee(n, () => ({
98
- getFormInstance: () => a
99
- }));
100
- const p = P(null), [T, G] = oe("auto");
101
- return h(() => {
102
- p && G(p.current.clientWidth + 10);
103
- }, []), /* @__PURE__ */ e.jsx("div", { style: C, ref: b, children: /* @__PURE__ */ e.jsxs(
104
- i,
105
- {
106
- form: a,
107
- style: { width: "100%" },
108
- labelCol: { span: 3 },
109
- labelAlign: "left",
110
- colon: !1,
111
- className: "stylesConfigFormContent",
112
- children: [
113
- /* @__PURE__ */ e.jsx(i.Item, { label: "行高", name: "size", children: /* @__PURE__ */ e.jsx(u.Group, { ...c("size", "sizeRadioGroup"), children: F.map(({ key: l, label: m, icon: d }) => /* @__PURE__ */ e.jsx(r, { label: m, value: l, children: /* @__PURE__ */ e.jsx(d, { ...w }) }, l)) }) }),
114
- /* @__PURE__ */ e.jsx(i.Item, { label: "分割线", name: "bordered", children: /* @__PURE__ */ e.jsxs(
115
- u.Group,
116
- {
117
- ...c("bordered", "splitBorderRadioGroup"),
118
- children: [
119
- /* @__PURE__ */ e.jsx(r, { label: "无分割线", value: "hide", children: /* @__PURE__ */ e.jsx(V, { size: 26, color: o.colorPrimaryHover }) }),
120
- /* @__PURE__ */ e.jsx(r, { label: "行分割线", value: "row", children: /* @__PURE__ */ e.jsx(
121
- D,
122
- {
123
- size: 26,
124
- color: [
125
- o.colorPrimaryHover,
126
- o.colorPrimary,
127
- o.colorPrimary,
128
- o.colorPrimaryHover
129
- ]
130
- }
131
- ) }),
132
- /* @__PURE__ */ e.jsx(r, { label: "列分割线", value: "column", children: /* @__PURE__ */ e.jsx(
133
- J,
134
- {
135
- size: 26,
136
- color: [
137
- o.colorPrimaryHover,
138
- o.colorPrimary,
139
- o.colorPrimary,
140
- o.colorPrimaryHover
141
- ]
142
- }
143
- ) }),
144
- /* @__PURE__ */ e.jsx(r, { label: "行列分割线", value: "row-column", children: /* @__PURE__ */ e.jsx(
145
- $,
146
- {
147
- size: 26,
148
- color: [
149
- o.colorPrimaryHover,
150
- o.colorPrimary,
151
- o.colorPrimary,
152
- o.colorPrimaryHover
153
- ]
154
- }
155
- ) })
156
- ]
157
- }
158
- ) }),
159
- /* @__PURE__ */ e.jsx(i.Item, { label: "斑马纹", name: "zebra", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("zebra", "zebraRadioGroup"), children: [
160
- /* @__PURE__ */ e.jsx(r, { label: "有斑马纹", value: !0, children: /* @__PURE__ */ e.jsx(
161
- K,
162
- {
163
- size: 26,
164
- color: [o.colorPrimaryHover, o.colorPrimary]
165
- }
166
- ) }),
167
- /* @__PURE__ */ e.jsx(r, { label: "无斑马纹", value: !1, children: /* @__PURE__ */ e.jsx(
168
- L,
169
- {
170
- size: 26,
171
- color: o.colorPrimaryHover
172
- }
173
- ) })
174
- ] }) }),
175
- /* @__PURE__ */ e.jsx(i.Item, { label: "分页设置", name: "pageSize", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("pageSize", "pageSizeGroup"), children: [
176
- /* @__PURE__ */ e.jsx(r, { label: "10条", value: 10, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
177
- /* @__PURE__ */ e.jsx(r, { label: "20条", value: 20, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
178
- /* @__PURE__ */ e.jsx(r, { label: "50条", value: 50, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
179
- /* @__PURE__ */ e.jsx(r, { label: "100条", value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
180
- ] }) }),
181
- /* @__PURE__ */ e.jsxs(q, { gutter: 16, className: "scopeAndReset", children: [
182
- /* @__PURE__ */ e.jsx(S, { ref: p, style: { width: T }, className: "scope", children: /* @__PURE__ */ e.jsx(i.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(se, {}) }) }),
183
- /* @__PURE__ */ e.jsx(S, { style: { alignSelf: "flex-end" }, className: "reset", children: /* @__PURE__ */ e.jsx(
184
- Q,
185
- {
186
- type: "link",
187
- icon: /* @__PURE__ */ e.jsx(Z, {}),
188
- size: "small",
189
- onClick: k,
190
- children: "重置"
191
- }
192
- ) })
193
- ] })
194
- ]
195
- }
196
- ) });
197
- }), Re = re(ne);
220
+ ), name: "pageSize", children: /* @__PURE__ */ e.jsxs(u.Group, { ...c("pageSize", "pageSizeGroup"), children: [
221
+ /* @__PURE__ */ e.jsx(l, { label: o(
222
+ /*i18n*/
223
+ {
224
+ id: "F/ysye"
225
+ }
226
+ ), value: 10, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
227
+ /* @__PURE__ */ e.jsx(l, { label: o(
228
+ /*i18n*/
229
+ {
230
+ id: "awEmig"
231
+ }
232
+ ), value: 20, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
233
+ /* @__PURE__ */ e.jsx(l, { label: o(
234
+ /*i18n*/
235
+ {
236
+ id: "NGYqZh"
237
+ }
238
+ ), value: 50, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) }),
239
+ /* @__PURE__ */ e.jsx(l, { label: o(
240
+ /*i18n*/
241
+ {
242
+ id: "RQryOB"
243
+ }
244
+ ), value: 100, children: /* @__PURE__ */ e.jsx(e.Fragment, {}) })
245
+ ] }) }),
246
+ /* @__PURE__ */ e.jsxs($, { gutter: 16, className: "scopeAndReset", children: [
247
+ /* @__PURE__ */ e.jsx(S, { ref: h, style: {
248
+ width: N
249
+ }, className: "scope", children: /* @__PURE__ */ e.jsx(n.Item, { name: "stylesScope", children: /* @__PURE__ */ e.jsx(ne, {}) }) }),
250
+ /* @__PURE__ */ e.jsx(S, { style: {
251
+ alignSelf: "flex-end"
252
+ }, className: "reset", children: /* @__PURE__ */ e.jsx(U, { type: "link", icon: /* @__PURE__ */ e.jsx(q, {}), size: "small", onClick: F, children: o(
253
+ /*i18n*/
254
+ {
255
+ id: "3mjHNG"
256
+ }
257
+ ) }) })
258
+ ] })
259
+ ] }) });
260
+ }), Fe = ie(ae);
198
261
  export {
199
- Re as default
262
+ Fe as default
200
263
  };
@@ -1,30 +1,46 @@
1
1
  import { j as t } from "../../../../node_modules/react/jsx-runtime.mjs";
2
- import { useRef as y, useContext as S, useState as b, useEffect as w, useMemo as k } from "react";
3
- import { theme as z, Popconfirm as I, Statistic as R } from "antd";
2
+ import { useRef as S, useContext as w, useState as b, useEffect as R, useMemo as k } from "react";
3
+ import { theme as z, Popconfirm as I, Statistic as N } from "antd";
4
4
  import { SettingOutlined as B } from "@ant-design/icons";
5
- import N from "./ColumnConfigModal.mjs";
5
+ import q from "./ColumnConfigModal.mjs";
6
6
  import E from "../style.mjs";
7
7
  import M from "../../../BitzButton/index.mjs";
8
8
  import { BitzTableContext as O } from "../../Store/index.mjs";
9
9
  import { css as T } from "../../../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
10
- const f = "表格设置", K = (e) => {
11
- const { order: m, show: u = !0, icon: d = /* @__PURE__ */ t.jsx(B, {}) } = e, { token: p } = z.useToken(), s = y(), {
12
- fullscreen: r,
10
+ import { useLingui as _ } from "@lingui/react";
11
+ const J = (e) => {
12
+ const {
13
+ _: i
14
+ } = _(), a = i(
15
+ /*i18n*/
16
+ {
17
+ id: "8e00XN"
18
+ }
19
+ ), {
20
+ order: u,
21
+ show: d = !0,
22
+ icon: p = /* @__PURE__ */ t.jsx(B, {})
23
+ } = e, {
24
+ token: x
25
+ } = z.useToken(), s = S(), {
26
+ fullscreen: l,
13
27
  isSaving: n,
14
28
  countdown: o,
15
- cancelAutoSave: x,
16
- immediateSave: a,
17
- setCountdown: C
18
- } = S(O), { toolbarItemClassName: g } = E(), [h, l] = b(!1);
19
- w(() => (n && o > 0 ? s.current = setInterval(() => {
20
- C((i) => i - 1);
21
- }, 1e3) : clearInterval(s.current), o === 0 && n && a(), () => clearInterval(s.current)), [n, o]);
22
- const j = k(() => r ? !1 : void 0, [r]), v = T`
29
+ cancelAutoSave: C,
30
+ immediateSave: c,
31
+ setCountdown: g
32
+ } = w(O), {
33
+ toolbarItemClassName: h
34
+ } = E(), [j, m] = b(!1);
35
+ R(() => (n && o > 0 ? s.current = setInterval(() => {
36
+ g((r) => r - 1);
37
+ }, 1e3) : clearInterval(s.current), o === 0 && n && c(), () => clearInterval(s.current)), [n, o]);
38
+ const v = k(() => l ? !1 : void 0, [l]), y = T`
23
39
  .ant-statistic {
24
40
  display: inline-block;
25
41
  }
26
42
  .ant-statistic-content {
27
- font-size: ${p.fontSize}px;
43
+ font-size: ${x.fontSize}px;
28
44
  }
29
45
  .ant-statistic-content-value-int {
30
46
  font-weight: 600;
@@ -43,48 +59,29 @@ const f = "表格设置", K = (e) => {
43
59
  }
44
60
  }
45
61
  `;
46
- return u ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
47
- /* @__PURE__ */ t.jsx(
48
- N,
49
- {
50
- open: h,
51
- title: f,
52
- onChange: async (...i) => {
53
- var c;
54
- return (c = e.onChange) == null ? void 0 : c.call(e, ...i);
55
- },
56
- getContainer: j,
57
- close: () => l(!1)
58
- }
59
- ),
60
- /* @__PURE__ */ t.jsx(
61
- I,
62
+ return d ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
63
+ /* @__PURE__ */ t.jsx(q, { open: j, title: a, onChange: async (...r) => {
64
+ var f;
65
+ return (f = e.onChange) == null ? void 0 : f.call(e, ...r);
66
+ }, getContainer: v, close: () => m(!1) }),
67
+ /* @__PURE__ */ t.jsx(I, { placement: "topRight", title: i(
68
+ /*i18n*/
62
69
  {
63
- placement: "topRight",
64
- title: "是否保存列宽设置",
65
- open: n,
66
- description: /* @__PURE__ */ t.jsxs("span", { children: [
67
- /* @__PURE__ */ t.jsx(R, { value: o, suffix: "秒" }),
68
- "后将自动保存"
69
- ] }),
70
- onConfirm: a,
71
- onCancel: x,
72
- overlayClassName: v,
73
- children: /* @__PURE__ */ t.jsx(
74
- M,
75
- {
76
- type: "text",
77
- className: g,
78
- onClick: () => l(!0),
79
- icon: d,
80
- style: { order: m },
81
- children: f
82
- }
83
- )
70
+ id: "2elRSm"
84
71
  }
85
- )
72
+ ), open: n, description: /* @__PURE__ */ t.jsxs("span", { children: [
73
+ /* @__PURE__ */ t.jsx(N, { value: o, suffix: i(
74
+ /*i18n*/
75
+ {
76
+ id: "wqqZo1"
77
+ }
78
+ ) }),
79
+ "后将自动保存"
80
+ ] }), onConfirm: c, onCancel: C, overlayClassName: y, children: /* @__PURE__ */ t.jsx(M, { type: "text", className: h, onClick: () => m(!0), icon: p, style: {
81
+ order: u
82
+ }, children: a }) })
86
83
  ] }) : null;
87
84
  };
88
85
  export {
89
- K as default
86
+ J as default
90
87
  };