bitz-react-admin-ui 1.9.7 → 1.9.9
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/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFluentInput/index.mjs +24 -20
- package/dist/components/BitzFluentSelect/index.mjs +19 -15
- 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/ActionBar/style.mjs +9 -9
- package/dist/components/BitzTable/ActionCol/style.mjs +8 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +7 -7
- package/dist/components/BitzTable/SelectionBar/style.mjs +5 -5
- package/dist/components/BitzTable/Store/index.d.ts +2 -2
- package/dist/components/BitzTable/Store/index.mjs +21 -19
- package/dist/components/BitzTable/Table/index.mjs +235 -211
- package/dist/components/BitzTable/Table/style.d.ts +4 -34
- package/dist/components/BitzTable/Table/style.mjs +8 -4
- package/dist/components/BitzTable/Table/utils.mjs +12 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +244 -236
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -27
- package/dist/components/BitzTable/ToolBar/DensityIcon/index.mjs +36 -28
- package/dist/components/BitzTable/ToolBar/style.mjs +5 -5
- package/dist/components/BitzTable/index.d.ts +5 -3
- package/dist/components/BitzTable/index.mjs +7 -7
- package/dist/components/BitzTableSelect/Picker/index.d.ts +5 -2
- package/dist/components/BitzTableSelect/SelectPopup/getData.d.ts +1 -1
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +32 -34
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +108 -109
- package/dist/components/BitzTableSelect/TableCell/index.mjs +1 -1
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +7 -7
- package/dist/components/BitzTableSelect/index.d.ts +2 -2
- 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/node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs +9 -0
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
|
|
2
|
+
import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useRef as O, useEffect as R } from "react";
|
|
3
3
|
import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
|
|
4
|
-
import N from "../../
|
|
4
|
+
import N from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
|
|
6
6
|
import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
|
|
7
7
|
N.extend(B);
|
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { css as
|
|
3
|
-
import { theme as d, Input as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { css as a } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
+
import { theme as d, Input as i } from "antd";
|
|
4
|
+
import { useMemo as m } from "react";
|
|
5
|
+
import u from "../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs";
|
|
6
|
+
const $ = ({
|
|
7
|
+
placeholder: r,
|
|
8
|
+
hideFluent: f,
|
|
8
9
|
...e
|
|
9
10
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
11
|
+
const { token: t } = d.useToken(), o = m(() => {
|
|
12
|
+
const c = e.value, s = e.defaultValue, n = c || s;
|
|
13
|
+
return u(e.value) || u(e.defaultValue) ? !0 : !(n === void 0 || n === "" || n === null);
|
|
14
|
+
}, [e.value, e.defaultValue]);
|
|
15
|
+
return f ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: r, ...e }) : /* @__PURE__ */ l.jsxs(
|
|
12
16
|
"div",
|
|
13
17
|
{
|
|
14
|
-
className:
|
|
18
|
+
className: a`
|
|
15
19
|
position: relative;
|
|
16
20
|
&:focus-within {
|
|
17
21
|
label {
|
|
18
22
|
top: 0;
|
|
19
|
-
background-color: ${
|
|
20
|
-
font-size:
|
|
21
|
-
color: ${
|
|
23
|
+
background-color: ${t.colorBgBase};
|
|
24
|
+
font-size: ${t.fontSizeSM}px;
|
|
25
|
+
color: ${t.colorTextPlaceholder};
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
`,
|
|
25
29
|
children: [
|
|
26
|
-
/* @__PURE__ */ l.jsx(
|
|
30
|
+
/* @__PURE__ */ l.jsx(i, { allowClear: !0, ...e }),
|
|
27
31
|
/* @__PURE__ */ l.jsx(
|
|
28
32
|
"label",
|
|
29
33
|
{
|
|
30
|
-
className:
|
|
34
|
+
className: a`
|
|
31
35
|
position: absolute;
|
|
32
|
-
top: ${
|
|
36
|
+
top: ${o ? 0 : "50%"};
|
|
33
37
|
left: 7px;
|
|
34
38
|
z-index: 10;
|
|
35
39
|
white-space: nowrap;
|
|
@@ -38,13 +42,13 @@ const w = ({
|
|
|
38
42
|
transform: translateY(-50%);
|
|
39
43
|
pointer-events: none;
|
|
40
44
|
transition: all 0.1s ease-out;
|
|
41
|
-
font-size: ${
|
|
42
|
-
background-color: ${
|
|
43
|
-
color: ${
|
|
45
|
+
font-size: ${o ? t.fontSizeSM : t.fontSize}px;
|
|
46
|
+
background-color: ${o ? t.colorBgBase : "transparent"};
|
|
47
|
+
color: ${t.colorTextPlaceholder};
|
|
44
48
|
padding: 0 2px;
|
|
45
49
|
border-radius: 2px;
|
|
46
50
|
`,
|
|
47
|
-
children:
|
|
51
|
+
children: r
|
|
48
52
|
}
|
|
49
53
|
)
|
|
50
54
|
]
|
|
@@ -52,5 +56,5 @@ const w = ({
|
|
|
52
56
|
);
|
|
53
57
|
};
|
|
54
58
|
export {
|
|
55
|
-
|
|
59
|
+
$ as default
|
|
56
60
|
};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { j as l } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { css as n } from "../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
3
|
-
import { theme as d, Select as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
|
|
3
|
+
import { theme as d, Select as i } from "antd";
|
|
4
|
+
import { useMemo as m } from "react";
|
|
5
|
+
import u from "../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.mjs";
|
|
6
|
+
const S = ({
|
|
6
7
|
placeholder: a,
|
|
7
|
-
hideFluent:
|
|
8
|
+
hideFluent: c,
|
|
8
9
|
...e
|
|
9
10
|
}) => {
|
|
10
|
-
const
|
|
11
|
-
|
|
11
|
+
const { token: t } = d.useToken(), o = m(() => {
|
|
12
|
+
const f = e.value, s = e.defaultValue, r = f || s;
|
|
13
|
+
return u(e.value) || u(e.defaultValue) ? !0 : !(r === void 0 || r === "" || r === null);
|
|
14
|
+
}, [e.value, e.defaultValue]);
|
|
15
|
+
return c ? /* @__PURE__ */ l.jsx(i, { allowClear: !0, placeholder: a, ...e }) : /* @__PURE__ */ l.jsxs(
|
|
12
16
|
"div",
|
|
13
17
|
{
|
|
14
18
|
className: n`
|
|
@@ -16,20 +20,20 @@ const w = ({
|
|
|
16
20
|
&:focus-within {
|
|
17
21
|
label {
|
|
18
22
|
top: 0;
|
|
19
|
-
background-color: ${
|
|
20
|
-
font-size:
|
|
21
|
-
color: ${
|
|
23
|
+
background-color: ${t.colorBgBase};
|
|
24
|
+
font-size: ${t.fontSizeSM}px;
|
|
25
|
+
color: ${t.colorTextPlaceholder};
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
`,
|
|
25
29
|
children: [
|
|
26
|
-
/* @__PURE__ */ l.jsx(
|
|
30
|
+
/* @__PURE__ */ l.jsx(i, { allowClear: !0, ...e }),
|
|
27
31
|
/* @__PURE__ */ l.jsx(
|
|
28
32
|
"label",
|
|
29
33
|
{
|
|
30
34
|
className: n`
|
|
31
35
|
position: absolute;
|
|
32
|
-
top: ${
|
|
36
|
+
top: ${o ? 0 : "50%"};
|
|
33
37
|
left: 7px;
|
|
34
38
|
z-index: 10;
|
|
35
39
|
white-space: nowrap;
|
|
@@ -38,9 +42,9 @@ const w = ({
|
|
|
38
42
|
transform: translateY(-50%);
|
|
39
43
|
pointer-events: none;
|
|
40
44
|
transition: all 0.1s ease-out;
|
|
41
|
-
font-size: ${
|
|
42
|
-
background-color: ${
|
|
43
|
-
color: ${
|
|
45
|
+
font-size: ${o ? t.fontSizeSM : t.fontSize}px;
|
|
46
|
+
background-color: ${o ? t.colorBgBase : "transparent"};
|
|
47
|
+
color: ${t.colorTextPlaceholder};
|
|
44
48
|
padding: 0 2px;
|
|
45
49
|
border-radius: 2px;
|
|
46
50
|
`,
|
|
@@ -52,5 +56,5 @@ const w = ({
|
|
|
52
56
|
);
|
|
53
57
|
};
|
|
54
58
|
export {
|
|
55
|
-
|
|
59
|
+
S as default
|
|
56
60
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
|
|
2
|
-
import o from "../../
|
|
2
|
+
import o from "../../_virtual/dayjs.min.mjs";
|
|
3
3
|
var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
|
|
4
4
|
const i = a((e, k) => ({
|
|
5
5
|
colHeight: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useState as y, useEffect as j, useMemo as D } from "react";
|
|
3
3
|
import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
|
|
4
|
-
import n from "../../
|
|
4
|
+
import n from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { useBitzFuiCalendarStore as S, CalendarTypeEnum as C } from "./BitzFuiCalendarStore.mjs";
|
|
6
6
|
import N from "./CalendarAgendumItem.mjs";
|
|
7
7
|
import x from "./CalendarAgendum.module.less.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as a } from "react";
|
|
3
3
|
import e from "./CalendarAgendum.module.less.mjs";
|
|
4
|
-
import l from "../../
|
|
4
|
+
import l from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { Button as c } from "antd";
|
|
6
6
|
const d = (_, s) => {
|
|
7
7
|
let t = s.diff(_, "minute"), m;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { memo as m, useMemo as r } from "react";
|
|
3
|
-
import d from "../../
|
|
3
|
+
import d from "../../_virtual/dayjs.min.mjs";
|
|
4
4
|
import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
const n = (t) => {
|
|
6
6
|
const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { memo as C, useMemo as i } from "react";
|
|
3
3
|
import { Space as c, Button as o, DatePicker as b, Dropdown as h } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import g from "../../
|
|
5
|
+
import g from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import T from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
|
|
8
8
|
import _ from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
|
|
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
|
|
|
4
4
|
import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import F from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
6
6
|
import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
|
|
7
|
-
import r from "../../
|
|
7
|
+
import r from "../../_virtual/dayjs.min.mjs";
|
|
8
8
|
import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
|
|
9
9
|
r.extend(M);
|
|
10
10
|
r.extend(F);
|
|
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
|
|
|
3
3
|
import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
|
|
6
|
-
import e from "../../
|
|
6
|
+
import e from "../../_virtual/dayjs.min.mjs";
|
|
7
7
|
import "./index.less.mjs";
|
|
8
8
|
e.extend(A);
|
|
9
9
|
e.extend(H);
|
|
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { useMemo as d } from "react";
|
|
3
3
|
import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
|
|
4
4
|
import T from "./BitzMeetingTimeItem.mjs";
|
|
5
|
-
import m from "../../
|
|
5
|
+
import m from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
m.extend(p);
|
|
8
8
|
const x = (a) => {
|
|
@@ -10,12 +10,12 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@an
|
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
11
|
import A from "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
13
|
+
import { BitzTableContext as N } from "../Store/index.mjs";
|
|
14
|
+
import f from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import w from "../../BitzTheme/index.mjs";
|
|
16
16
|
const Q = (m) => {
|
|
17
|
-
const { theme: g, hashId: n, token: i } = w.useToken(), { tableSize: s } = D(N), u = v(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn",
|
|
18
|
-
var $, b, T, S,
|
|
17
|
+
const { theme: g, hashId: n, token: i } = w.useToken(), { tableSize: s } = D(N), u = v(() => m ?? s ?? "lg", [m, s]), r = "bitzTableActionBarBlock", a = "actionBtn", c = "ActionBtn", p = "dropdownBtn", B = (o, l, t, e) => {
|
|
18
|
+
var $, b, T, S, z;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
[`.${o} .${l}`]: {
|
|
@@ -50,11 +50,11 @@ const Q = (m) => {
|
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
[`.${o} .xs${t}`]: {
|
|
53
|
-
fontSize: (
|
|
53
|
+
fontSize: (z = e.Table.xsTable) == null ? void 0 : z.fontSize
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
];
|
|
57
|
-
},
|
|
57
|
+
}, h = (o, l, t) => [
|
|
58
58
|
{
|
|
59
59
|
[`.${o} .${l}`]: {
|
|
60
60
|
"&:hover": {
|
|
@@ -80,11 +80,11 @@ const Q = (m) => {
|
|
|
80
80
|
path: [r]
|
|
81
81
|
},
|
|
82
82
|
() => [
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
B(r, a, c, i),
|
|
84
|
+
h(r, p, i)
|
|
85
85
|
]
|
|
86
86
|
);
|
|
87
|
-
const d = `${u}${c}`, x =
|
|
87
|
+
const d = `${u}${c}`, x = f(a, d, n), y = f(a, p, d, n);
|
|
88
88
|
return { blockCls: r, addBtnClassName: x, btnClassName: y };
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useContext as
|
|
1
|
+
import { useContext as H, useMemo as N } from "react";
|
|
2
2
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
3
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
4
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
@@ -8,14 +8,14 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@an
|
|
|
8
8
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
9
9
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
|
-
import
|
|
11
|
+
import T from "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { BitzTableContext as E } from "../Store/index.mjs";
|
|
14
14
|
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import w from "../../BitzTheme/index.mjs";
|
|
16
16
|
const Q = () => {
|
|
17
|
-
const { tableSize: i } =
|
|
18
|
-
|
|
17
|
+
const { tableSize: i } = H(E);
|
|
18
|
+
N(() => i ?? "lg", [i]);
|
|
19
19
|
const { theme: h, hashId: r, token: s } = w.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", B = 24, g = (t, o) => [
|
|
20
20
|
{
|
|
21
21
|
[`.${t}`]: {
|
|
@@ -98,7 +98,7 @@ const Q = () => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
|
-
|
|
101
|
+
T(
|
|
102
102
|
{
|
|
103
103
|
theme: h,
|
|
104
104
|
token: s,
|
|
@@ -113,7 +113,7 @@ const Q = () => {
|
|
|
113
113
|
y(m, p)
|
|
114
114
|
]
|
|
115
115
|
);
|
|
116
|
-
const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r),
|
|
116
|
+
const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), z = n(d, r);
|
|
117
117
|
return {
|
|
118
118
|
gap: B,
|
|
119
119
|
defaultCls: e,
|
|
@@ -122,7 +122,7 @@ const Q = () => {
|
|
|
122
122
|
dropdownBtnClassName: S,
|
|
123
123
|
skeletonBtnClassName: x,
|
|
124
124
|
skeletonClassName: b,
|
|
125
|
-
maskClassName:
|
|
125
|
+
maskClassName: z
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
export {
|
|
@@ -10,12 +10,12 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@an
|
|
|
10
10
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
11
11
|
import C from "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
13
|
+
import { BitzTableContext as B } from "../Store/index.mjs";
|
|
14
|
+
import y from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import D from "../../BitzTheme/index.mjs";
|
|
16
16
|
const P = () => {
|
|
17
|
-
const { tableSize: t } = $(
|
|
18
|
-
var r, p, d, l, u,
|
|
17
|
+
const { tableSize: t } = $(B), T = g(() => t ?? "lg", [t]), { theme: c, hashId: i, token: a } = D.useToken(), m = "OperationColDropdownBtn", o = "operationColDropdownBtn", w = (x, n, e) => {
|
|
18
|
+
var r, p, d, l, u, z, s, S, f, b;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
21
21
|
[`.${x}`]: {
|
|
@@ -67,13 +67,13 @@ const P = () => {
|
|
|
67
67
|
[`.md${n}`]: {
|
|
68
68
|
fontSize: (u = e.Table.mdTable) == null ? void 0 : u.fontSize,
|
|
69
69
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
70
|
-
fontSize: (((
|
|
70
|
+
fontSize: (((z = e.Table.mdTable) == null ? void 0 : z.fontSize) || e.fontSize) - 2
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
[`.sm${n}`]: {
|
|
76
|
-
fontSize: (
|
|
76
|
+
fontSize: (s = e.Table.smTable) == null ? void 0 : s.fontSize,
|
|
77
77
|
".ant-dropdown-menu-submenu-expand-icon": {
|
|
78
78
|
fontSize: (((S = e.Table.smTable) == null ? void 0 : S.fontSize) || e.fontSize) - 2
|
|
79
79
|
}
|
|
@@ -100,7 +100,7 @@ const P = () => {
|
|
|
100
100
|
);
|
|
101
101
|
const h = `${T}${m}`;
|
|
102
102
|
return {
|
|
103
|
-
popupClassName:
|
|
103
|
+
popupClassName: y(o, h, i)
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
export {
|
|
@@ -11,10 +11,10 @@ import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@an
|
|
|
11
11
|
import G from "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
12
12
|
import "../../../node_modules/.store/@ant-design_cssinjs@1.18.5/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
13
|
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
14
|
-
import {
|
|
14
|
+
import { BitzTableContext as I } from "../Store/index.mjs";
|
|
15
15
|
import R from "../../BitzTheme/index.mjs";
|
|
16
16
|
const V = () => {
|
|
17
|
-
const { tableSize: a } = C(I), S = O(() => a ?? "lg", [a]), { theme: b, hashId: o, token: i } = R.useToken(), r = "bitzTableSelectionBar", s = "batchOperation", m = "selectionAction", f = "alertContent", l = "show", g = (t, y, N, v,
|
|
17
|
+
const { tableSize: a } = C(I), S = O(() => a ?? "lg", [a]), { theme: b, hashId: o, token: i } = R.useToken(), r = "bitzTableSelectionBar", s = "batchOperation", m = "selectionAction", f = "alertContent", l = "show", g = (t, y, B, N, v, e) => {
|
|
18
18
|
var p, h, c, $, z;
|
|
19
19
|
return [
|
|
20
20
|
{
|
|
@@ -38,7 +38,7 @@ const V = () => {
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
[`.${t} .${
|
|
41
|
+
[`.${t} .${B}`]: {
|
|
42
42
|
fontSize: "inherit",
|
|
43
43
|
height: "100%",
|
|
44
44
|
overflow: "auto hidden",
|
|
@@ -48,7 +48,7 @@ const V = () => {
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
[`.${t} .${
|
|
51
|
+
[`.${t} .${v}`]: {
|
|
52
52
|
height: "100%",
|
|
53
53
|
"span, strong": {
|
|
54
54
|
wordBreak: "keep-all"
|
|
@@ -56,7 +56,7 @@ const V = () => {
|
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
[`.${t} .${
|
|
59
|
+
[`.${t} .${N}`]: {
|
|
60
60
|
fontSize: "inherit",
|
|
61
61
|
color: "#fff",
|
|
62
62
|
height: "100%",
|
|
@@ -59,7 +59,7 @@ declare function useContainer(props: UseContainerProps): {
|
|
|
59
59
|
clearPersistenceStorage: () => void;
|
|
60
60
|
defaultColumnKeyMap: Record<string, ColumnsConfigProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const
|
|
62
|
+
declare const BitzTableContext: import("react").Context<{
|
|
63
63
|
uuid: string;
|
|
64
64
|
persistenceType: "online" | "localStorage" | "sessionStorage" | undefined;
|
|
65
65
|
persistenceKey: any;
|
|
@@ -83,5 +83,5 @@ declare const Container: React.FC<{
|
|
|
83
83
|
initValue: UseContainerProps<any>;
|
|
84
84
|
children: React.ReactNode;
|
|
85
85
|
}>;
|
|
86
|
-
export {
|
|
86
|
+
export { BitzTableContext };
|
|
87
87
|
export default Container;
|
|
@@ -6,8 +6,8 @@ import { getUuid as X } from "../../../utils/uuid.mjs";
|
|
|
6
6
|
import { BitzConfigContext as Y } from "../../BitzConfigProvider/context.mjs";
|
|
7
7
|
import d from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs";
|
|
8
8
|
function Z(e) {
|
|
9
|
-
var T, V, v, O, b, x, J, M, N, j, I, P, E, k,
|
|
10
|
-
const r = U(X()),
|
|
9
|
+
var T, V, v, O, b, x, J, M, N, j, I, P, E, k, B, R, D;
|
|
10
|
+
const r = U(X()), z = U([]), q = (T = H(Y).Table) == null ? void 0 : T.defaultSize, w = e.defaultSize ?? q ?? "lg", [h, g] = G(
|
|
11
11
|
() => {
|
|
12
12
|
var n, c, a, l;
|
|
13
13
|
const { persistenceType: t, persistenceKey: i, onlineGet: u } = e.sizeState || {};
|
|
@@ -24,7 +24,7 @@ function Z(e) {
|
|
|
24
24
|
console.warn(s);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
return e.size || ((a = e.sizeState) == null ? void 0 : a.value) || ((l = e.sizeState) == null ? void 0 : l.defaultValue) ||
|
|
27
|
+
return e.size || ((a = e.sizeState) == null ? void 0 : a.value) || ((l = e.sizeState) == null ? void 0 : l.defaultValue) || w;
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
value: ((V = e.sizeState) == null ? void 0 : V.value) || e.size,
|
|
@@ -59,7 +59,7 @@ function Z(e) {
|
|
|
59
59
|
try {
|
|
60
60
|
(u = n == null ? void 0 : n(c)) == null || u.then((a) => {
|
|
61
61
|
var l;
|
|
62
|
-
g(a ?? ((l = e == null ? void 0 : e.sizeState) == null ? void 0 : l.value) ??
|
|
62
|
+
g(a ?? ((l = e == null ? void 0 : e.sizeState) == null ? void 0 : l.value) ?? w);
|
|
63
63
|
});
|
|
64
64
|
} catch (a) {
|
|
65
65
|
console.warn(a);
|
|
@@ -71,14 +71,16 @@ function Z(e) {
|
|
|
71
71
|
if ((i = e == null ? void 0 : e.columnsState) != null && i.defaultValue)
|
|
72
72
|
return e.columnsState.defaultValue;
|
|
73
73
|
const t = {};
|
|
74
|
-
return (u = e.columns) == null || u.forEach(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
return (u = e.columns) == null || u.forEach(
|
|
75
|
+
({ key: n, dataIndex: c, fixed: a, disable: l }, o) => {
|
|
76
|
+
const s = W(n ?? c, o);
|
|
77
|
+
s && (t[s] = {
|
|
78
|
+
show: !0,
|
|
79
|
+
fixed: a,
|
|
80
|
+
disable: l
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
), t;
|
|
82
84
|
}, [e.columns]), [y, f] = G(
|
|
83
85
|
() => {
|
|
84
86
|
var n, c, a, l;
|
|
@@ -179,24 +181,24 @@ function Z(e) {
|
|
|
179
181
|
persistenceType: (P = e.columnsState) == null ? void 0 : P.persistenceType,
|
|
180
182
|
persistenceKey: (E = e.columnsState) == null ? void 0 : E.persistenceKey,
|
|
181
183
|
onlineChange: (k = e.columnsState) == null ? void 0 : k.onlineChange,
|
|
182
|
-
sortKeyColumns:
|
|
184
|
+
sortKeyColumns: z.current,
|
|
183
185
|
setSortKeyColumns: (t) => {
|
|
184
|
-
|
|
186
|
+
z.current = t;
|
|
185
187
|
},
|
|
186
188
|
columnsMap: y,
|
|
187
189
|
setColumnsMap: f,
|
|
188
190
|
setTableSize: g,
|
|
189
|
-
defaultTableSize:
|
|
191
|
+
defaultTableSize: w,
|
|
190
192
|
tableSize: h,
|
|
191
|
-
sizeStorageType: (
|
|
192
|
-
sizeStorageKey: (
|
|
193
|
+
sizeStorageType: (B = e.sizeState) == null ? void 0 : B.persistenceType,
|
|
194
|
+
sizeStorageKey: (R = e.sizeState) == null ? void 0 : R.persistenceKey,
|
|
193
195
|
onlineSizeChange: (D = e.sizeState) == null ? void 0 : D.onlineChange,
|
|
194
196
|
columns: e.columns,
|
|
195
197
|
clearPersistenceStorage: K,
|
|
196
198
|
defaultColumnKeyMap: S
|
|
197
199
|
};
|
|
198
200
|
return Object.defineProperty(C, "sortKeyColumns", {
|
|
199
|
-
get: () =>
|
|
201
|
+
get: () => z.current
|
|
200
202
|
}), Object.defineProperty(C, "uuid", {
|
|
201
203
|
get: () => r.current
|
|
202
204
|
}), C;
|
|
@@ -206,6 +208,6 @@ const _ = F({}), ce = (e) => {
|
|
|
206
208
|
return /* @__PURE__ */ A.jsx(_.Provider, { value: r, children: e.children });
|
|
207
209
|
};
|
|
208
210
|
export {
|
|
209
|
-
_ as
|
|
211
|
+
_ as BitzTableContext,
|
|
210
212
|
ce as default
|
|
211
213
|
};
|