bitz-react-admin-ui 2.1.6 → 2.1.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.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +6 -0
- package/dist/components/BitzConfigProvider/index.d.ts +2 -0
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +35 -35
- package/dist/components/BitzTable/Store/utils/index.mjs +24 -24
- package/dist/components/BitzTable/Table/index.d.ts +3 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +4 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +116 -109
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +5 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +24 -25
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +18 -10
- package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +57 -76
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +41 -55
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +3 -0
- package/dist/components/BitzTable/ToolBar/ExportIcon/styles.mjs +47 -0
- package/dist/components/BitzTable/ToolBar/index.d.ts +3 -3
- package/dist/components/BitzTable/index.d.ts +2 -2
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -14
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +82 -80
- package/dist/components/BitzTableSelect/TableCell/index.mjs +25 -23
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +17 -16
- package/dist/components/BitzTableSelect/index.d.ts +1 -0
- package/dist/components/BitzTableSelect/index.mjs +33 -31
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,50 +1,52 @@
|
|
|
1
1
|
import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { useMemo as c, useState as p } from "react";
|
|
3
|
+
import { Input as d } from "antd";
|
|
4
|
+
import u from "../TextBlock/index.mjs";
|
|
5
|
+
import t from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
+
import x from "../../BitzTheme/index.mjs";
|
|
6
7
|
import "./index.less.mjs";
|
|
7
|
-
import
|
|
8
|
-
const { TextArea:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import f from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CloseOutlined.mjs";
|
|
9
|
+
const { TextArea: B } = d, b = ({ value: l, isLatterHalf: n = !1 }) => {
|
|
10
|
+
var r;
|
|
11
|
+
const { token: o } = x.useToken(), a = ((r = o == null ? void 0 : o.BitzTableSelect) == null ? void 0 : r.paddingBlock) ?? 10, i = c(() => ({
|
|
12
|
+
paddingBlock: a,
|
|
11
13
|
paddingInline: 24
|
|
12
|
-
}), [
|
|
14
|
+
}), [o]), [m, s] = p(!1);
|
|
13
15
|
return /* @__PURE__ */ e.jsxs(
|
|
14
16
|
"div",
|
|
15
17
|
{
|
|
16
18
|
className: "cellBlock",
|
|
17
|
-
style:
|
|
18
|
-
onFocus: () =>
|
|
19
|
-
onBlur: () =>
|
|
19
|
+
style: i,
|
|
20
|
+
onFocus: () => s(!0),
|
|
21
|
+
onBlur: () => s(!1),
|
|
20
22
|
children: [
|
|
21
|
-
/* @__PURE__ */ e.jsx(
|
|
23
|
+
/* @__PURE__ */ e.jsx(u, { className: t("cellText"), value: l }),
|
|
22
24
|
/* @__PURE__ */ e.jsxs(
|
|
23
25
|
"div",
|
|
24
26
|
{
|
|
25
|
-
className:
|
|
27
|
+
className: t(
|
|
26
28
|
"tipBlock",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
n ? "toTop" : "toBottom",
|
|
30
|
+
m ? "show" : ""
|
|
29
31
|
),
|
|
30
32
|
style: {
|
|
31
33
|
paddingInlineStart: 24 - 2,
|
|
32
34
|
paddingInlineEnd: 24 - 4,
|
|
33
|
-
paddingBlock:
|
|
35
|
+
paddingBlock: a
|
|
34
36
|
},
|
|
35
37
|
children: [
|
|
36
38
|
/* @__PURE__ */ e.jsx(
|
|
37
|
-
|
|
39
|
+
f,
|
|
38
40
|
{
|
|
39
|
-
className:
|
|
40
|
-
onClick: () =>
|
|
41
|
+
className: t("closeIcon", n ? "top" : "bottom"),
|
|
42
|
+
onClick: () => s(!1)
|
|
41
43
|
}
|
|
42
44
|
),
|
|
43
45
|
/* @__PURE__ */ e.jsx(
|
|
44
|
-
|
|
46
|
+
B,
|
|
45
47
|
{
|
|
46
48
|
className: "tipText",
|
|
47
|
-
value:
|
|
49
|
+
value: l,
|
|
48
50
|
autoSize: {
|
|
49
51
|
minRows: 1,
|
|
50
52
|
maxRows: 100
|
|
@@ -61,5 +63,5 @@ const { TextArea: x } = d, g = ({ value: t, isLatterHalf: l = !1 }) => {
|
|
|
61
63
|
);
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
b as default
|
|
65
67
|
};
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Input as
|
|
3
|
-
import
|
|
2
|
+
import { Input as l } from "antd";
|
|
3
|
+
import m from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { defaultValue as n } from "../index.mjs";
|
|
4
5
|
import "./index.less.mjs";
|
|
5
|
-
const { TextArea:
|
|
6
|
-
maxRows:
|
|
6
|
+
const { TextArea: p } = l, j = ({
|
|
7
|
+
maxRows: t = 1,
|
|
7
8
|
minRows: o,
|
|
8
9
|
bold: s,
|
|
9
|
-
value:
|
|
10
|
+
value: e,
|
|
10
11
|
className: r
|
|
11
12
|
}) => {
|
|
12
|
-
const
|
|
13
|
-
"--cell-text-maxRows":
|
|
13
|
+
const a = {
|
|
14
|
+
"--cell-text-maxRows": t,
|
|
14
15
|
...s && {
|
|
15
16
|
fontWeight: s
|
|
16
17
|
},
|
|
17
|
-
|
|
18
|
+
...e === n && {
|
|
18
19
|
paddingInline: 24
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
return /* @__PURE__ */ i.jsx(
|
|
22
|
-
|
|
23
|
+
p,
|
|
23
24
|
{
|
|
24
|
-
className:
|
|
25
|
-
title:
|
|
26
|
-
value:
|
|
25
|
+
className: m("textBlock", r),
|
|
26
|
+
title: e,
|
|
27
|
+
value: e,
|
|
27
28
|
readOnly: !0,
|
|
28
29
|
size: "small",
|
|
29
30
|
variant: "borderless",
|
|
30
31
|
autoSize: {
|
|
31
|
-
minRows: o ??
|
|
32
|
-
maxRows:
|
|
32
|
+
minRows: o ?? t,
|
|
33
|
+
maxRows: t
|
|
33
34
|
},
|
|
34
|
-
style:
|
|
35
|
+
style: a
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
j as default
|
|
40
41
|
};
|
|
@@ -65,4 +65,5 @@ export interface BitzTableSelectProps<T extends BaseOptionType> extends AntSelec
|
|
|
65
65
|
}
|
|
66
66
|
/** 下拉表格组件 */
|
|
67
67
|
declare function BitzTableSelect<T extends BaseOptionType>({ columns, tableData, loading, loadingFailed, loadAgain, total, page, onPageChange, onSearch, showToolTagSelect, placeholder, fieldNames, offsetWidth, ...rest }: BitzTableSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export declare const defaultValue = "-";
|
|
68
69
|
export default BitzTableSelect;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { j as t } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as j } from "react";
|
|
3
|
-
import { isMobile as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { isMobile as d } from "../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
+
import F from "./Select/index.mjs";
|
|
5
|
+
import M from "./Picker/index.mjs";
|
|
6
6
|
function z({
|
|
7
7
|
columns: l,
|
|
8
|
-
tableData:
|
|
9
|
-
loading:
|
|
10
|
-
loadingFailed:
|
|
11
|
-
loadAgain:
|
|
8
|
+
tableData: u,
|
|
9
|
+
loading: m,
|
|
10
|
+
loadingFailed: c,
|
|
11
|
+
loadAgain: p,
|
|
12
12
|
total: s,
|
|
13
|
-
page:
|
|
14
|
-
onPageChange:
|
|
15
|
-
onSearch:
|
|
16
|
-
showToolTagSelect:
|
|
17
|
-
placeholder:
|
|
13
|
+
page: o,
|
|
14
|
+
onPageChange: f,
|
|
15
|
+
onSearch: b,
|
|
16
|
+
showToolTagSelect: e = !1,
|
|
17
|
+
placeholder: i = "请选择",
|
|
18
18
|
fieldNames: a,
|
|
19
19
|
offsetWidth: n,
|
|
20
|
-
...
|
|
20
|
+
...r
|
|
21
21
|
}) {
|
|
22
|
-
const x = j(() =>
|
|
23
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children:
|
|
24
|
-
|
|
22
|
+
const x = j(() => r.lrLayout ? e ? 900 + (n || 0) : 830 + (n || 0) : e ? 750 + (n || 0) : 700 + (n || 0), [r.lrLayout, e, n]);
|
|
23
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: d ? /* @__PURE__ */ t.jsx(
|
|
24
|
+
M,
|
|
25
25
|
{
|
|
26
26
|
columns: [],
|
|
27
27
|
tableData: [],
|
|
@@ -31,34 +31,36 @@ function z({
|
|
|
31
31
|
throw new Error("Function not implemented.");
|
|
32
32
|
},
|
|
33
33
|
total: 0,
|
|
34
|
-
page:
|
|
34
|
+
page: o,
|
|
35
35
|
onPageChange: function() {
|
|
36
36
|
throw new Error("Function not implemented.");
|
|
37
37
|
},
|
|
38
|
-
placeholder:
|
|
38
|
+
placeholder: i,
|
|
39
39
|
fieldNames: a,
|
|
40
|
-
...
|
|
40
|
+
...r
|
|
41
41
|
}
|
|
42
42
|
) : /* @__PURE__ */ t.jsx(
|
|
43
|
-
|
|
43
|
+
F,
|
|
44
44
|
{
|
|
45
45
|
columns: l,
|
|
46
|
-
tableData:
|
|
47
|
-
loading:
|
|
48
|
-
loadingFailed:
|
|
49
|
-
loadAgain:
|
|
46
|
+
tableData: u,
|
|
47
|
+
loading: m,
|
|
48
|
+
loadingFailed: c,
|
|
49
|
+
loadAgain: p,
|
|
50
50
|
total: s,
|
|
51
|
-
page:
|
|
52
|
-
onPageChange:
|
|
53
|
-
onSearch:
|
|
54
|
-
placeholder:
|
|
51
|
+
page: o,
|
|
52
|
+
onPageChange: f,
|
|
53
|
+
onSearch: b,
|
|
54
|
+
placeholder: i,
|
|
55
55
|
fieldNames: a,
|
|
56
56
|
popupMatchSelectWidth: x,
|
|
57
|
-
showToolTagSelect:
|
|
58
|
-
...
|
|
57
|
+
showToolTagSelect: e,
|
|
58
|
+
...r
|
|
59
59
|
}
|
|
60
60
|
) });
|
|
61
61
|
}
|
|
62
|
+
const A = "-";
|
|
62
63
|
export {
|
|
63
|
-
z as default
|
|
64
|
+
z as default,
|
|
65
|
+
A as defaultValue
|
|
64
66
|
};
|