bitz-react-admin-ui 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/_virtual/dayjs.min.mjs +5 -2
  2. package/dist/_virtual/dayjs.min2.mjs +4 -0
  3. package/dist/_virtual/index.mjs +2 -2
  4. package/dist/_virtual/index2.mjs +2 -2
  5. package/dist/assets/iconfont/IconColumnCancelFixed.d.ts +7 -0
  6. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +35 -0
  7. package/dist/assets/iconfont/IconColumnFixedLeft.d.ts +7 -0
  8. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +35 -0
  9. package/dist/assets/iconfont/IconColumnFixedRight.d.ts +7 -0
  10. package/dist/assets/iconfont/IconColumnFixedRight.mjs +35 -0
  11. package/dist/assets/iconfont/IconDragOrder.d.ts +7 -0
  12. package/dist/assets/iconfont/IconDragOrder.mjs +35 -0
  13. package/dist/assets/iconfont/index.d.ts +5 -1
  14. package/dist/assets/iconfont/index.mjs +105 -89
  15. package/dist/components/BitzCalendar/index.mjs +1 -1
  16. package/dist/components/BitzDayJs/index.mjs +1 -1
  17. package/dist/components/BitzFluentInput/index.d.ts +2 -5
  18. package/dist/components/BitzFluentInput/index.mjs +4 -58
  19. package/dist/components/BitzFluentSelect/index.d.ts +4 -5
  20. package/dist/components/BitzFluentSelect/index.mjs +4 -58
  21. package/dist/components/BitzFluentTreeSelect/index.mjs +6 -0
  22. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  23. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  24. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  25. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  26. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  27. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  28. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  29. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  30. package/dist/components/BitzTable/Select/index.d.ts +4 -0
  31. package/dist/components/BitzTable/Select/index.mjs +11 -0
  32. package/dist/components/BitzTable/Select/style.d.ts +4 -0
  33. package/dist/components/BitzTable/Select/style.mjs +66 -0
  34. package/dist/components/BitzTable/Store/index.d.ts +43 -9
  35. package/dist/components/BitzTable/Store/index.mjs +259 -146
  36. package/dist/components/BitzTable/Store/utils/index.mjs +26 -25
  37. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +73 -61
  38. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +118 -61
  39. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +4 -3
  40. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +48 -47
  41. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +5 -1
  42. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +84 -15
  43. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +59 -50
  44. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +1 -1
  45. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +47 -21
  46. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +5 -0
  47. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +89 -0
  48. package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +1 -2
  49. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +46 -32
  50. package/dist/components/BitzTable/ToolBar/index.d.ts +5 -2
  51. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +148 -123
  52. package/dist/components/BitzTableSelect/TextBlock/index.mjs +21 -18
  53. package/dist/index.d.ts +1 -0
  54. package/dist/index.mjs +94 -92
  55. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  56. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  57. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  58. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  59. package/dist/style.css +1 -1
  60. package/dist/utils/WithFluent.d.ts +9 -0
  61. package/dist/utils/WithFluent.mjs +58 -0
  62. package/dist/utils/time.mjs +1 -1
  63. package/package.json +2 -1
  64. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +0 -5
  65. package/dist/node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +0 -15
@@ -2,7 +2,7 @@ import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/
2
2
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
3
3
  import "react";
4
4
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
5
- import { unit as a } from "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/util/index.mjs";
5
+ import { unit as e } from "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/util/index.mjs";
6
6
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
7
7
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
8
8
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
@@ -12,15 +12,15 @@ import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/
12
12
  import "../../../../node_modules/.store/@ant-design_cssinjs@1.19.1/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
13
13
  import { css as r } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
14
14
  const n = (o) => {
15
- var i, e, t;
15
+ var a, t, i;
16
16
  return r`
17
17
  .ant-modal-content {
18
- background-color: ${(i = o.Modal) == null ? void 0 : i.contentBg};
18
+ background-color: ${(a = o.Modal) == null ? void 0 : a.contentBg};
19
19
 
20
20
  .ant-modal-header {
21
21
  font-size: 16px;
22
22
  font-weight: 700;
23
- background-color: ${(e = o.Modal) == null ? void 0 : e.headerBg};
23
+ background-color: ${(t = o.Modal) == null ? void 0 : t.headerBg};
24
24
  }
25
25
 
26
26
  .ant-modal-body {
@@ -31,7 +31,7 @@ const n = (o) => {
31
31
  text-align: left;
32
32
  margin: 0;
33
33
  padding: 20px;
34
- background-color: ${(t = o.Modal) == null ? void 0 : t.footerBg};
34
+ background-color: ${(i = o.Modal) == null ? void 0 : i.footerBg};
35
35
  }
36
36
  }
37
37
  `;
@@ -47,7 +47,7 @@ const n = (o) => {
47
47
  width: 100%;
48
48
  height: 100%;
49
49
  background-color: var(--sortCard-bgColor);
50
- border-radius: ${a(o.borderRadius)};
50
+ border-radius: ${e(o.borderRadius)};
51
51
  padding: 6px;
52
52
  padding-block-end: 10px;
53
53
  box-sizing: border-box;
@@ -71,27 +71,28 @@ const n = (o) => {
71
71
  }
72
72
 
73
73
  .sortItem {
74
- border-radius: ${a(o.borderRadius)};
74
+ border-radius: ${e(o.borderRadius)};
75
75
 
76
76
  &:hover {
77
77
  background-color: ${o.colorBgContainer};
78
78
  }
79
-
79
+
80
80
  .dragIcon {
81
81
  height: 100%;
82
82
  padding-inline: 8px;
83
-
84
- &, & span {
83
+
84
+ &,
85
+ & span {
85
86
  cursor: inherit;
86
87
  }
87
88
  }
88
-
89
+
89
90
  .ant-checkbox-wrapper {
90
91
  /* width: calc(100% - 66px); */
91
92
  flex: 1;
92
93
  padding-block: 6px;
93
94
  padding-inline-end: 8px;
94
-
95
+
95
96
  & > span:last-child {
96
97
  flex: 1;
97
98
  padding-right: 0;
@@ -136,11 +137,13 @@ const n = (o) => {
136
137
  }
137
138
  `, l = (o) => r`
138
139
  .stylesConfigFormContent {
139
-
140
+ display: flex;
141
+ flex-direction: column;
142
+
140
143
  .ant-form-item {
141
144
  width: 100%;
142
145
 
143
- & label {
146
+ .ant-form-item-label > label {
144
147
  height: auto;
145
148
  font-weight: 600;
146
149
  }
@@ -164,8 +167,10 @@ const n = (o) => {
164
167
  grid-template-columns: repeat(5, 2fr);
165
168
  }
166
169
 
167
- .scope label {
168
- font-weight: normal;
170
+ .scope {
171
+ flex: 1;
172
+ display: flex;
173
+ align-items: flex-end;
169
174
  }
170
175
 
171
176
  .ant-radio-wrapper {
@@ -175,7 +180,7 @@ const n = (o) => {
175
180
  font-weight: normal !important;
176
181
  background-color: ${o.colorBgLayout};
177
182
  background-color: var(--radioCard-bgColor);
178
- border-radius: ${a(o.borderRadiusLG)};
183
+ border-radius: ${e(o.borderRadiusLG)};
179
184
  margin-inline-end: 0;
180
185
  box-sizing: border-box;
181
186
  position: relative;
@@ -215,9 +220,29 @@ const n = (o) => {
215
220
  }
216
221
  }
217
222
  }
218
- `, y = (o) => r`
219
- &.tableConfigModal {
223
+ `, c = (o) => r`
224
+ .exportConfigFormContent {
225
+ display: flex;
226
+ flex-direction: column;
227
+ row-gap: 10px;
228
+
229
+ .ant-form-item {
230
+ width: 100%;
231
+
232
+ .ant-form-item-label > label {
233
+ height: auto;
234
+ font-weight: 600;
235
+ }
236
+ }
220
237
 
238
+ .exportFields .ant-checkbox-group {
239
+ display: grid;
240
+ grid-template-columns: repeat(3, 1fr);
241
+ gap: 8px;
242
+ }
243
+ }
244
+ `, v = (o) => r`
245
+ &.tableConfigModal {
221
246
  ${n(o)}
222
247
 
223
248
  .pointerCursor {
@@ -240,7 +265,6 @@ const n = (o) => {
240
265
  }
241
266
 
242
267
  .segmentedWrapper {
243
-
244
268
  }
245
269
 
246
270
  .containerBody {
@@ -251,10 +275,12 @@ const n = (o) => {
251
275
  ${d(o)}
252
276
 
253
277
  ${l(o)}
278
+
279
+ ${c()}
254
280
  }
255
281
  }
256
282
  }
257
283
  `;
258
284
  export {
259
- y as styles
285
+ v as styles
260
286
  };
@@ -0,0 +1,5 @@
1
+ declare const AnyDataTotalLabel: ({ onClick, hide }: {
2
+ onClick: any;
3
+ hide: any;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default AnyDataTotalLabel;
@@ -0,0 +1,89 @@
1
+ import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { css as u } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
+ import { Tooltip as x, Flex as b, Typography as c, InputNumber as S, Select as j } from "antd";
4
+ import { useState as a } from "react";
5
+ import y from "../../Select/index.mjs";
6
+ const { Option: m } = j, V = ({
7
+ onClick: i,
8
+ hide: d
9
+ }) => {
10
+ const [f, s] = a(!1), [h, r] = a(!1), [o, p] = a("page"), [t, l] = a(1), g = () => {
11
+ if (!h) {
12
+ if (!t && typeof t != "number" || t <= 0) {
13
+ s(!0), setTimeout(() => {
14
+ s(!1), r(!1);
15
+ }, 2e3);
16
+ return;
17
+ }
18
+ r(!0), i == null || i("any", { value: t, type: o }), d(), setTimeout(() => {
19
+ r(!1), p("page"), l(1);
20
+ }, 200);
21
+ }
22
+ };
23
+ return /* @__PURE__ */ e.jsx(x, { open: f, title: "数字必须大于等于1", getTooltipContainer: (n) => n.parentElement.parentElement.parentElement, children: /* @__PURE__ */ e.jsxs(b, { align: "center", gap: 8, onClick: (n) => n.stopPropagation(), children: [
24
+ /* @__PURE__ */ e.jsx(c.Text, { style: { fontSize: "var(--fontSize)" }, children: "导出" }),
25
+ /* @__PURE__ */ e.jsx(
26
+ S,
27
+ {
28
+ controls: !1,
29
+ min: 1,
30
+ value: t,
31
+ onChange: (n) => l(n),
32
+ style: { width: 100 },
33
+ size: "small",
34
+ addonAfter: /* @__PURE__ */ e.jsxs(
35
+ y,
36
+ {
37
+ value: o,
38
+ onChange: p,
39
+ className: u`
40
+ width: auto;
41
+ height: calc(var(--fontSize) + 12px);
42
+
43
+ .ant-select-selection-item {
44
+ padding-right: 0 !important;
45
+ }
46
+
47
+ .ant-select-selector {
48
+ width: auto !important;
49
+ padding-inline: 8px !important;
50
+ }
51
+ `,
52
+ popupMatchSelectWidth: !1,
53
+ suffixIcon: !1,
54
+ children: [
55
+ /* @__PURE__ */ e.jsx(m, { value: "page", children: "页" }),
56
+ /* @__PURE__ */ e.jsx(m, { value: "pieces", children: "条" })
57
+ ]
58
+ }
59
+ ),
60
+ className: u`
61
+ .ant-input-number-group-wrapper {
62
+ height: calc(var(--fontSize) + 12px);
63
+ }
64
+ .ant-input-number-wrapper,
65
+ .ant-input-number,
66
+ .ant-input-number-input-wrap,
67
+ .ant-input-number-input {
68
+ height: 100% !important;
69
+ }
70
+
71
+ .ant-input-number-group-addon {
72
+ width: auto;
73
+ }
74
+ `
75
+ }
76
+ ),
77
+ /* @__PURE__ */ e.jsx(
78
+ c.Link,
79
+ {
80
+ style: { userSelect: "none", fontSize: "var(--fontSize)" },
81
+ onClick: g,
82
+ children: "下载"
83
+ }
84
+ )
85
+ ] }) });
86
+ };
87
+ export {
88
+ V as default
89
+ };
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { BitzDropdownToButtonProps } from '@/components/BitzConvert';
3
2
  import { ExportEvent } from '..';
4
- interface ExportIconProps extends Pick<BitzDropdownToButtonProps, 'menu' | 'tipText'> {
3
+ interface ExportIconProps {
5
4
  order?: number;
6
5
  icon?: ReactNode;
7
6
  loading?: boolean;
@@ -1,45 +1,59 @@
1
- import { j as e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { memo as u, useMemo as x } from "react";
3
- import c from "../style.mjs";
4
- import f from "../../../BitzButton/index.mjs";
5
- import d from "../../../BitzConvert/index.mjs";
6
- import j from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
7
- const y = ({
8
- show: r = !0,
9
- order: s,
10
- loading: m,
11
- onClick: t,
12
- icon: n = /* @__PURE__ */ e.jsx(j, {}),
13
- menu: o,
14
- tipText: i
1
+ import { j as r } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { memo as u, useState as d } from "react";
3
+ import f from "../style.mjs";
4
+ import c from "../../../BitzButton/index.mjs";
5
+ import x from "../../Dropdown/index.mjs";
6
+ import y from "./AnyDataTotalLabel.mjs";
7
+ import { css as b } from "../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
8
+ import h from "../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownloadOutlined.mjs";
9
+ const j = ({
10
+ show: a = !0,
11
+ order: m,
12
+ loading: n,
13
+ onClick: e,
14
+ icon: s = /* @__PURE__ */ r.jsx(h, {})
15
15
  }) => {
16
- const { toolbarItemClassName: l } = c(), p = x(() => o || {
17
- items: [
18
- { key: "excel", label: "导出查询结果为Excel" }
19
- ],
20
- onClick: ({ key: a }) => t == null ? void 0 : t(a)
21
- }, [o, t]);
22
- return r ? /* @__PURE__ */ e.jsx(
23
- d.DropdownToButton,
16
+ const { toolbarItemClassName: l } = f(), [p, o] = d(!1);
17
+ return a ? /* @__PURE__ */ r.jsx(
18
+ x,
24
19
  {
25
- menu: p,
20
+ open: p,
21
+ onOpenChange: o,
22
+ menu: {
23
+ items: [
24
+ { key: "current", label: "仅导出当前页" },
25
+ { key: "all", label: "导出全部数据" },
26
+ { type: "divider" },
27
+ {
28
+ key: "any",
29
+ label: /* @__PURE__ */ r.jsx(y, { onClick: (t, i) => e == null ? void 0 : e(t, i), hide: () => o(!1) }),
30
+ className: b`
31
+ cursor: default !important;
32
+
33
+ &:hover {
34
+ background-color: inherit !important;
35
+ }
36
+ `
37
+ }
38
+ ],
39
+ onClick: ({ key: t }) => e == null ? void 0 : e(t)
40
+ },
26
41
  trigger: ["click"],
27
- showTootip: !1,
28
- tipText: i || "导出",
29
- children: /* @__PURE__ */ e.jsx(
30
- f,
42
+ disabled: n,
43
+ getPopupContainer: (t) => t.parentElement.parentElement.parentElement,
44
+ children: /* @__PURE__ */ r.jsx(
45
+ c,
31
46
  {
32
47
  type: "text",
33
48
  className: l,
34
- disabled: m,
35
- icon: n,
36
- style: { order: s },
49
+ icon: s,
50
+ style: { order: m },
37
51
  children: "下载"
38
52
  }
39
53
  )
40
54
  }
41
55
  ) : null;
42
- }, g = u(y);
56
+ }, B = u(j);
43
57
  export {
44
- g as default
58
+ B as default
45
59
  };
@@ -2,8 +2,11 @@ import { DensitySize } from '../Store';
2
2
  import { MouseEventHandler } from 'react';
3
3
  import { ToolEnum } from '../../../components/BitzConfigProvider/context';
4
4
  import { ColumnsConfigProps } from '..';
5
- export type MenuKeysType = 'excel';
6
- export type ExportEvent = (key: MenuKeysType) => void;
5
+ export type MenuKeysType = 'current' | 'all' | 'any';
6
+ export type ExportEvent = (key: MenuKeysType, info?: {
7
+ value: number;
8
+ type: 'page' | 'pieces';
9
+ }) => void;
7
10
  export type ToolsConfigType = {
8
11
  /** 表格设置按钮 */
9
12
  config?: ConfigType;